/*! For license information please see main.c37bc242.js.LICENSE.txt */ (()=>{var e={75493:(e,a,n)=>{"use strict";n.d(a,{Ay:()=>Qa,nc:()=>Va});var t,i,r,s,d,o,l=n(24762);!function(e){e.SignUp="signup",e.SignOut="signout",e.SignIn="signin",e.Loading="loading",e.SignedOut="signedout",e.SignedIn="signedin",e.SigningUp="signingup",e.ConfirmSignUp="confirmSignUp",e.confirmingSignUpCustomFlow="confirmsignupcustomflow",e.ConfirmSignIn="confirmSignIn",e.confirmingSignInCustomFlow="confirmingsignincustomflow",e.VerifyingAttributes="verifyingattributes",e.ForgotPassword="forgotpassword",e.ResetPassword="resettingpassword",e.SettingMFA="settingMFA",e.TOTPSetup="TOTPSetup",e.CustomConfirmSignIn="customConfirmSignIn",e.VerifyContact="verifyContact"}(t||(t={})),function(e){e.TOTP="TOTP",e.SMS="SMS",e.NOMFA="NOMFA"}(i||(i={})),function(e){e.SoftwareTokenMFA="SOFTWARE_TOKEN_MFA",e.SMSMFA="SMS_MFA",e.NewPasswordRequired="NEW_PASSWORD_REQUIRED",e.MFASetup="MFA_SETUP",e.CustomChallenge="CUSTOM_CHALLENGE"}(r||(r={})),function(e){e.Password="password"}(s||(s={})),function(e){e.username="username",e.email="email",e.phone_number="phone_number"}(d||(d={})),function(e){e.Public="public",e.Private="private",e.Protected="protected"}(o||(o={}));var u,c,m=n(99701);!function(e){e.BACK_TO_SIGN_IN="Back to Sign In",e.CHANGE_PASSWORD_ACTION="Change",e.CHANGE_PASSWORD="Change Password",e.CODE_LABEL="Verification code",e.CODE_PLACEHOLDER="Enter code",e.CONFIRM_SIGN_UP_CODE_LABEL="Confirmation Code",e.CONFIRM_SIGN_UP_CODE_PLACEHOLDER="Enter your code",e.CONFIRM_SIGN_UP_HEADER_TEXT="Confirm Sign up",e.CONFIRM_SIGN_UP_LOST_CODE="Lost your code?",e.CONFIRM_SIGN_UP_RESEND_CODE="Resend Code",e.CONFIRM_SIGN_UP_SUBMIT_BUTTON_TEXT="Confirm",e.CONFIRM_SMS_CODE="Confirm SMS Code",e.CONFIRM_TOTP_CODE="Confirm TOTP Code",e.CONFIRM="Confirm",e.CREATE_ACCOUNT_TEXT="Create account",e.EMAIL_LABEL="Email Address *",e.EMAIL_PLACEHOLDER="Enter your email address",e.FORGOT_PASSWORD_TEXT="Forgot your password?",e.LESS_THAN_TWO_MFA_VALUES_MESSAGE="Less than two MFA types available",e.NEW_PASSWORD_LABEL="New password",e.NEW_PASSWORD_PLACEHOLDER="Enter your new password",e.NO_ACCOUNT_TEXT="No account?",e.USERNAME_REMOVE_WHITESPACE="Username cannot contain whitespace",e.PASSWORD_REMOVE_WHITESPACE="Password cannot start or end with whitespace",e.PASSWORD_LABEL="Password *",e.PASSWORD_PLACEHOLDER="Enter your password",e.PHONE_LABEL="Phone Number *",e.PHONE_PLACEHOLDER="(555) 555-1212",e.QR_CODE_ALT="qrcode",e.RESET_PASSWORD_TEXT="Reset password",e.RESET_YOUR_PASSWORD="Reset your password",e.SELECT_MFA_TYPE_HEADER_TEXT="Select MFA Type",e.SELECT_MFA_TYPE_SUBMIT_BUTTON_TEXT="Verify",e.SEND_CODE="Send Code",e.SUBMIT="Submit",e.SETUP_TOTP_REQUIRED="TOTP needs to be configured",e.SIGN_IN_ACTION="Sign In",e.SIGN_IN_HEADER_TEXT="Sign in to your account",e.SIGN_IN_TEXT="Sign in",e.SIGN_IN_WITH_AMAZON="Sign in with Amazon",e.SIGN_IN_WITH_AUTH0="Sign in with Auth0",e.SIGN_IN_WITH_AWS="Sign in with AWS",e.SIGN_IN_WITH_FACEBOOK="Sign in with Facebook",e.SIGN_IN_WITH_GOOGLE="Sign in with Google",e.SIGN_OUT="Sign Out",e.SIGN_UP_EMAIL_PLACEHOLDER="Email",e.SIGN_UP_HAVE_ACCOUNT_TEXT="Have an account?",e.SIGN_UP_HEADER_TEXT="Create a new account",e.SIGN_UP_PASSWORD_PLACEHOLDER="Password",e.SIGN_UP_SUBMIT_BUTTON_TEXT="Create Account",e.SIGN_UP_USERNAME_PLACEHOLDER="Username",e.SUCCESS_MFA_TYPE="Success! Your MFA Type is now:",e.TOTP_HEADER_TEXT="Scan then enter verification code",e.TOTP_LABEL="Enter Security Code:",e.TOTP_ISSUER="AWSCognito",e.TOTP_SETUP_FAILURE="TOTP Setup has failed",e.TOTP_SUBMIT_BUTTON_TEXT="Verify Security Token",e.TOTP_SUCCESS_MESSAGE="Setup TOTP successfully!",e.UNABLE_TO_SETUP_MFA_AT_THIS_TIME="Failed! Unable to configure MFA at this time",e.USERNAME_LABEL="Username *",e.USERNAME_PLACEHOLDER="Enter your username",e.VERIFY_CONTACT_EMAIL_LABEL="Email",e.VERIFY_CONTACT_HEADER_TEXT="Account recovery requires verified contact information",e.VERIFY_CONTACT_PHONE_LABEL="Phone Number",e.VERIFY_CONTACT_SUBMIT_LABEL="Submit",e.VERIFY_CONTACT_VERIFY_LABEL="Verify",e.ADDRESS_LABEL="Address",e.ADDRESS_PLACEHOLDER="Enter your address",e.NICKNAME_LABEL="Nickname",e.NICKNAME_PLACEHOLDER="Enter your nickname",e.BIRTHDATE_LABEL="Birthday",e.BIRTHDATE_PLACEHOLDER="Enter your birthday",e.PICTURE_LABEL="Picture URL",e.PICTURE_PLACEHOLDER="Enter your picture URL",e.FAMILY_NAME_LABEL="Family Name",e.FAMILY_NAME_PLACEHOLDER="Enter your family name",e.PREFERRED_USERNAME_LABEL="Preferred Username",e.PREFERRED_USERNAME_PLACEHOLDER="Enter your preferred username",e.GENDER_LABEL="Gender",e.GENDER_PLACEHOLDER="Enter your gender",e.PROFILE_LABEL="Profile URL",e.PROFILE_PLACEHOLDER="Enter your profile URL",e.GIVEN_NAME_LABEL="First Name",e.GIVEN_NAME_PLACEHOLDER="Enter your first name",e.ZONEINFO_LABEL="Time zone",e.ZONEINFO_PLACEHOLDER="Enter your time zone",e.LOCALE_LABEL="Locale",e.LOCALE_PLACEHOLDER="Enter your locale",e.UPDATED_AT_LABEL="Updated At",e.UPDATED_AT_PLACEHOLDER="Enter the time the information was last updated",e.MIDDLE_NAME_LABEL="Middle Name",e.MIDDLE_NAME_PLACEHOLDER="Enter your middle name",e.WEBSITE_LABEL="Website",e.WEBSITE_PLACEHOLDER="Enter your website",e.NAME_LABEL="Full Name",e.NAME_PLACEHOLDER="Enter your full name",e.PHOTO_PICKER_TITLE="Picker Title",e.PHOTO_PICKER_HINT="Ancillary text or content may occupy this space here",e.PHOTO_PICKER_PLACEHOLDER_HINT="Placeholder hint",e.PHOTO_PICKER_BUTTON_TEXT="Button",e.IMAGE_PICKER_TITLE="Add Profile Photo",e.IMAGE_PICKER_HINT="Preview the image before upload",e.IMAGE_PICKER_PLACEHOLDER_HINT="Tap to image select",e.IMAGE_PICKER_BUTTON_TEXT="Upload",e.PICKER_TEXT="Pick a file",e.TEXT_FALLBACK_CONTENT="Fallback Content",e.CONFIRM_SIGN_UP_FAILED="Confirm Sign Up Failed",e.SIGN_UP_FAILED="Sign Up Failed"}(u||(u={})),function(e){e.CHATBOT_TITLE="ChatBot Lex",e.TEXT_INPUT_PLACEHOLDER="Write a message",e.VOICE_INPUT_PLACEHOLDER="Click mic to speak",e.CHAT_DISABLED_ERROR="Error: Either voice or text must be enabled for the chatbot",e.NO_BOT_NAME_ERROR="Error: Bot name must be provided to ChatBot"}(c||(c={}));var f=Object.assign(Object.assign(Object.assign({},u),m.f),c),p=n(98256),b=n(94647),h=n(21963);n(64801);const _=h.N;var v="UI Auth",y=function(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))},g=function(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]{let{icon:a,title:n,active:t,onClick:i}=e;return(0,D.jsx)(T.so,{className:"ButtomMenu",children:(0,D.jsx)(q.W1,{children:(0,D.jsx)(T.N_,{backgroundColor:t?"#eeeeee":"white",p:1,_hover:{textDecor:"none",backgroundColor:"#eeeeee"},w:"auto",onClick:i,children:(0,D.jsxs)(q.IU,{paddingX:"0",textAlign:"center",children:[(0,D.jsx)(T.so,{justifyContent:"center",children:(0,D.jsx)(T.az,{textAlign:"center",children:(0,D.jsx)(C._V,{src:a,boxSize:"45px"})})}),(0,D.jsx)(T.so,{justifyContent:"center",fontSize:"1sm",children:n})]})})})})},N=e=>[{icon:j.c.home_icon,title:e.KT_0047_06,active:!1,pathname:"/top"},{icon:j.c.bottom_story_mode,title:e.KT_0047_01,active:!1,pathname:"/stories/1"},{icon:j.c.bottom_self_learning,title:e.KT_0047_02,active:!1,pathname:"/self_study"},{icon:j.c.bottom_japan_online2,title:e.KT_0047_03,active:!1,pathname:"/online_lesson"}],O=(0,I.memo)((e=>{let{children:a}=e;const[n,t]=(0,I.useState)({}),[i,r]=(0,I.useState)(!1),s=(0,S.G)((e=>e.router)),{pathname:d}=(0,x.zy)(),o=(0,x.W6)(),l=(0,I.useCallback)((()=>{d.includes("signin")||d.includes("subscription")||d.includes("questionnaire")||d.includes("hiragana_a-n")||d.includes("hiragana_ga-po")||d.includes("hiragana_kya-pyo")||d.includes("hiragana_a-n_contents")||d.includes("hiragana_ga-po_contents")||d.includes("hiragana_kya-ryo_contents")||d.includes("hiragana_gya-pyo_contents")||d.includes("hiragana_exercises")||d.includes("hiragana_question")||d.includes("hiragana_answer")||d.includes("hiragana_goal")||d.includes("katakana_a-n")||d.includes("katakana_ga-po")||d.includes("katakana_kya-pyo")||d.includes("katakana_a-n_contents")||d.includes("katakana_ga-po_contents")||d.includes("katakana_kya-ryo_contents")||d.includes("katakana_gya-pyo_contents")||d.includes("katakana_ie-dou_contents")||d.includes("katakana_fuyu-deyu_contents")||d.includes("katakana_exercises")||d.includes("katakana_question")||d.includes("katakana_answer")||d.includes("katakana_goal")||d.includes("/grammar/")||d.includes("/story/")||d.includes("/expression/")||d.includes("/exercises/")||d.includes("/question/")||d.includes("/answer/")||d.includes("/goal/")||d.includes("/drills_list")||d.includes("/drills_top")||d.includes("/drills_question/")||d.includes("/drills_answer")||d.includes("/drills_goal/")||d.includes("/times")||d.includes("/wordbank_noun")||d.includes("/wordbank_verb")||d.includes("/wordbank_adjective")||d.includes("/word_cards/")||d.includes("/grammar_list")||d.includes("/grammar_notes/")||d.includes("/dates")||d.includes("/study_records")||d.includes("/proficiency-test")?r(!0):r(!1)}),[d]);return(0,I.useEffect)((()=>{t((0,F.l$)()),l()}),[l]),d.includes("room-call")?(0,D.jsx)(T.mc,{className:"room-call-div-container",children:a}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(T.mc,{className:"Shell-children",paddingInline:"0em",width:"100%",maxWidth:"100%",minHeight:"100svh",children:a}),(0,D.jsx)(T.so,{userSelect:"none",direction:"row",position:"fixed",bottom:"0",width:"100%",justifyContent:"center",textAlign:"center",fontSize:"sm",bgColor:"white",zIndex:"100",hidden:i,children:N(n).map(((e,a)=>{const n="top",t="stories",i="self_study",r="online_lesson";let d="";return e.pathname.includes(n)?d=n:e.pathname.includes(t)?d=t:e.pathname.includes(i)?d=i:e.pathname.includes(r)&&(d=r),(0,D.jsx)("span",{id:d,children:(0,D.jsx)(Z,{icon:e.icon,title:e.title,active:e.pathname===s.location.pathname,onClick:()=>o.push(e.pathname)},a)},a)}))})]})}));var R=n(46797),z=n(79984),U=n(39993),P=n(35066),H=n(22554),B=n(29709),M=n(37663);const K=()=>{const e=j.c.logo01_tate,a={};a.ja=n(9115),a.en=n(10565),a.vn=n(77490);const[t,i]=(0,I.useState)(!1),[r,s]=(0,I.useState)(!1),[d,o]=(0,I.useState)("ja"),l=(0,x.W6)();return(0,I.useEffect)((()=>{localStorage.hasOwnProperty(M.l.systemLanguage)&&o(String(localStorage.getItem(M.l.systemLanguage)))}),[]),(0,D.jsxs)(T.BJ,{id:"bg-image",pb:"5px",m:"auto",w:"414px",bgSize:"cover",boxSizing:"content-box",bgColor:"white",justify:"center",children:[(0,D.jsx)(T.so,{justifyContent:"center",height:"60%",children:(0,D.jsx)(C._V,{id:"logo-image",src:e,px:"20px",mt:"60px",mb:"20px"})}),(0,D.jsx)(T.so,{textAlign:"center",justifyContent:"center",px:"20px",children:(0,D.jsx)(T.EY,{fontSize:"16px",children:a[d].KT_0002_01})}),(0,D.jsxs)(T.so,{justifyContent:"center",pb:"20px",children:[(0,D.jsx)(P.Sc,{m:"10px",size:"lg",value:"false",isRequired:!0,onChange:e=>i(e.target.checked)}),(0,D.jsx)(T.N_,{href:B.UA,target:"_blank",m:"10px",color:"orange",fontWeight:"bold",fontSize:"13px",children:a[d].KT_0002_02}),(0,D.jsx)(P.Sc,{m:"10px",size:"lg",value:"false",isRequired:!0,onChange:e=>s(e.target.checked)}),(0,D.jsx)(T.N_,{href:B.GO,target:"_blank",m:"10px",color:"orange",fontWeight:"bold",fontSize:"13px",children:a[d].KT_0002_03})]}),(0,D.jsx)(T.so,{justifyContent:"center",margin:"5px",pb:"20px",children:(0,D.jsx)(T.az,{children:(0,D.jsx)(H.$n,{id:"start_btn",className:"btn-border",onClick:()=>{l.push("/start"),localStorage.setItem(M.l.agreed,"true")},textColor:"white",bgColor:"orange",w:"200px",disabled:!(t&&r),children:a[d].KT_0002_04})})}),(0,D.jsx)(T.so,{justifyContent:"center",margin:"5px",pt:"50px",pb:"20px",children:(0,D.jsx)(T.az,{children:"Copyright \xa9SUN Co.,Ltd All Rights Reserved"})})]})};var L=n(40848),V=n(78510),Q=n(67682),W=n(73033),G=n(13892);const X=W.Ik({email:W.Yj().email("\u6b63\u3057\u3044\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044").required("\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u5fc5\u9808\u3067\u3059"),nick_name:W.Yj().required("\u30cb\u30c3\u30af\u30cd\u30fc\u30e0\u306f\u5fc5\u9808\u3067\u3059")}),Y=()=>{const e=j.c.logo01_tate,a=j.c.cancel_white,t={};t.ja=n(9115),t.en=n(10565),t.vn=n(77490);const[i,r]=(0,I.useState)(""),[s,d]=(0,I.useState)(""),[o,l]=(0,I.useState)(""),[u,c]=(0,I.useState)("ja"),m=(0,x.W6)();(0,I.useEffect)((()=>{localStorage.hasOwnProperty(M.l.systemLanguage)&&c(String(localStorage.getItem(M.l.systemLanguage)))}),[]);const f=e=>{o?v():_(),e.preventDefault()},[p,b]=(0,I.useState)(""),h=()=>{b("")},_=async()=>{},v=async()=>{_()};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(L.aF,{isOpen:"resultSuccesstModal"===p,onClose:h,isCentered:!0,children:[(0,D.jsx)(L.mH,{}),(0,D.jsxs)(L.$m,{userSelect:"none",maxWidth:"345px",children:[(0,D.jsx)(L.rQ,{bgColor:"blue",roundedTop:"md",textColor:"white",textAlign:"center",children:t[u].KT_0008_11}),(0,D.jsxs)(L.cw,{children:[(0,D.jsx)("p",{children:t[u].KT_0008_12}),(0,D.jsx)("p",{children:t[u].KT_0008_13})]}),(0,D.jsx)(L.jl,{children:(0,D.jsx)(H.$n,{onClick:()=>m.push("/signIn"),children:"\u30b5\u30a4\u30f3\u30a4\u30f3\u753b\u9762\u3078"})})]})]}),(0,D.jsxs)(L.aF,{isOpen:"resultFailModal"===p,onClose:h,isCentered:!0,children:[(0,D.jsx)(L.mH,{}),(0,D.jsxs)(L.$m,{userSelect:"none",maxWidth:"345px",children:[(0,D.jsx)(L.rQ,{bgColor:"blue",roundedTop:"md",textColor:"white",textAlign:"center",children:t[u].KT_0008_11}),(0,D.jsx)(L.cw,{children:(0,D.jsx)("p",{children:""})}),(0,D.jsx)(L.jl,{children:(0,D.jsx)(H.$n,{className:"btn-border",onClick:h,textColor:"white",bgColor:"gray",width:"30%",children:(0,D.jsx)(C._V,{src:a,boxSize:"20px"})})})]})]}),(0,D.jsxs)(L.aF,{isOpen:"abortModal"===p,onClose:h,closeOnOverlayClick:!1,children:[(0,D.jsx)(L.mH,{}),(0,D.jsxs)(L.$m,{userSelect:"none",maxWidth:"345px",children:[(0,D.jsx)(L.rQ,{bgColor:"blue",roundedTop:"md",textColor:"white",textAlign:"center",children:t[u].KT_0008_07}),(0,D.jsx)(G.l1,{initialValues:{email:i,nickName:s},validationSchema:X,validateOnMount:!0,onSubmit:e=>{},children:(0,D.jsxs)(G.lV,{onSubmit:f,children:[(0,D.jsx)(L.cw,{children:(0,D.jsxs)(V.MJ,{isRequired:!0,children:[(0,D.jsx)(V.lR,{children:t[u].KT_0008_08}),(0,D.jsxs)(T.so,{justifyContent:"center",alignItems:"center",cursor:"pointer",h:"50px",backgroundColor:"white",children:[(0,D.jsx)(Q.Wf,{pointerEvents:"none"}),(0,D.jsx)(Q.pd,{type:"email",placeholder:"example@mail.com",size:"lg",required:!0,id:"email",pattern:"[\\w\\-\\._\\+]+@[\\w\\-\\._]+\\.[A-Za-z]+",onChange:e=>r(e.currentTarget.value)})]}),(0,D.jsx)(V.lR,{children:t[u].KT_0008_09}),(0,D.jsxs)(T.so,{justifyContent:"center",alignItems:"center",cursor:"pointer",h:"50px",backgroundColor:"white",children:[(0,D.jsx)(Q.Wf,{pointerEvents:"none"}),(0,D.jsx)(Q.pd,{type:"text",placeholder:"nickname",size:"lg",required:!0,id:"nick_name",minLength:1,onChange:e=>d(e.currentTarget.value)})]})]})}),(0,D.jsxs)(L.jl,{children:[(0,D.jsx)(H.$n,{className:"btn-border",onClick:h,textColor:"white",bgColor:"gray",width:"30%",children:(0,D.jsx)(C._V,{src:a,boxSize:"20px"})}),(0,D.jsx)(H.$n,{type:"submit",className:"btn-border",textColor:"white",bgColor:"orange",ml:"10px",width:"70%",children:t[u].KT_0008_10})]})]})})]})]}),(0,D.jsxs)(L.aF,{isOpen:"groupModal"===p,onClose:h,closeOnOverlayClick:!1,children:[(0,D.jsx)(L.mH,{}),(0,D.jsxs)(L.$m,{userSelect:"none",maxWidth:"345px",children:[(0,D.jsx)(L.rQ,{bgColor:"blue",roundedTop:"md",textColor:"white",textAlign:"center",children:t[u].KT_0008_07}),(0,D.jsx)(G.l1,{initialValues:{activationCode:o,email:i,nickName:s},validationSchema:X,validateOnMount:!0,onSubmit:e=>{},children:(0,D.jsxs)(G.lV,{onSubmit:f,children:[(0,D.jsx)(L.cw,{children:(0,D.jsxs)(V.MJ,{isRequired:!0,children:[(0,D.jsx)(V.lR,{children:t[u].KT_0008_16}),(0,D.jsxs)(T.so,{justifyContent:"center",alignItems:"center",cursor:"pointer",h:"50px",backgroundColor:"white",children:[(0,D.jsx)(Q.Wf,{pointerEvents:"none"}),(0,D.jsx)(Q.pd,{type:"string",placeholder:"abcd1234",size:"lg",required:!0,id:"activationCode",pattern:"[a-z0-9]{8}",onChange:e=>l(e.currentTarget.value)})]}),(0,D.jsx)(V.lR,{children:t[u].KT_0008_08}),(0,D.jsxs)(T.so,{justifyContent:"center",alignItems:"center",cursor:"pointer",h:"50px",backgroundColor:"white",children:[(0,D.jsx)(Q.Wf,{pointerEvents:"none"}),(0,D.jsx)(Q.pd,{type:"email",placeholder:"example@mail.com",size:"lg",required:!0,id:"email",pattern:"[\\w\\-\\._\\+]+@[\\w\\-\\._]+\\.[A-Za-z]+",onChange:e=>r(e.currentTarget.value)})]}),(0,D.jsx)(V.lR,{children:t[u].KT_0008_09}),(0,D.jsxs)(T.so,{justifyContent:"center",alignItems:"center",cursor:"pointer",h:"50px",backgroundColor:"white",children:[(0,D.jsx)(Q.Wf,{pointerEvents:"none"}),(0,D.jsx)(Q.pd,{type:"text",placeholder:"nickname",size:"lg",required:!0,id:"nick_name",minLength:1,onChange:e=>d(e.currentTarget.value)})]})]})}),(0,D.jsxs)(L.jl,{children:[(0,D.jsx)(H.$n,{className:"btn-border",onClick:h,textColor:"white",bgColor:"gray",width:"30%",children:(0,D.jsx)(C._V,{src:a,boxSize:"20px"})}),(0,D.jsx)(H.$n,{type:"submit",className:"btn-border",textColor:"white",bgColor:"orange",ml:"10px",width:"70%",children:t[u].KT_0008_10})]})]})})]})]}),(0,D.jsxs)(T.BJ,{id:"bg-image",pb:"5px",m:"auto",w:"414px",bgSize:"cover",boxSizing:"content-box",bgColor:"white",justify:"center",children:[(0,D.jsx)(T.so,{justifyContent:"center",height:"60%",children:(0,D.jsx)(C._V,{id:"logo-image",src:e,px:"20px",mt:"60px",mb:"20px"})}),(0,D.jsx)(T.so,{textAlign:"center",justifyContent:"center",px:"50px",fontSize:"13px",children:t[u].KT_0008_03}),(0,D.jsx)(T.so,{justifyContent:"center",margin:"5px",pb:"20px",children:(0,D.jsx)(T.az,{children:(0,D.jsx)(H.$n,{id:"signin_btn",className:"btn-border",onClick:()=>{m.push("/signin")},textColor:"white",bgColor:"orange",w:"300px",children:t[u].KT_0008_04})})})]})]})};var J=n(84626);const $=()=>{const e=j.c.logo01_tate,a={};a.ja=n(9115),a.en=n(10565),a.vn=n(77490);const[t,i]=(0,I.useState)("ja"),r=(0,x.W6)();return(0,I.useEffect)((()=>{localStorage.hasOwnProperty(M.l.systemLanguage)&&i(String(localStorage.getItem(M.l.systemLanguage)))}),[]),(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(T.BJ,{id:"bg-image",pb:"5px",m:"auto",w:"414px",bgSize:"cover",boxSizing:"content-box",bgColor:"white",justify:"center",children:[(0,D.jsx)(T.so,{justifyContent:"center",height:"60%",children:(0,D.jsx)(C._V,{id:"logo-image",src:e,px:"20px",mt:"60px",mb:"20px"})}),(0,D.jsx)(T.so,{textAlign:"center",justifyContent:"center",px:"50px",pb:"20px",children:(0,D.jsx)(T.EY,{fontSize:"24px",children:a[t].KT_0001_01})}),(0,D.jsx)(T.so,{id:"lang_dw",justifyContent:"center",margin:"5px",pb:"20px",children:(0,D.jsx)("form",{children:(0,D.jsxs)(J.l6,{id:"select_lang",size:"md",minWidth:"300px",onChange:e=>{return a=e.currentTarget.value,console.log(a),void i(a);var a},value:t,children:[(0,D.jsx)("option",{value:"ja",children:"\u65e5\u672c\u8a9e"}),(0,D.jsx)("option",{value:"en",children:"English"}),(0,D.jsx)("option",{value:"vn",children:"Ti\u1ebfng Vi\u1ec7t"})]})})}),(0,D.jsx)(T.so,{justifyContent:"center",margin:"5px",pb:"20px",children:(0,D.jsx)(H.$n,{id:"single_btn",className:"btn-border",onClick:()=>(localStorage.setItem(M.l.systemLanguage,t),localStorage.setItem(M.l.translationLanguage,"ja"==t?"en":"vn"==t?"vn":t),void r.push("/agree")),textColor:"white",bgColor:"orange",w:"300px",children:a[t].KT_0001_02})}),(0,D.jsx)(T.so,{textAlign:"center",justifyContent:"center",px:"50px",pb:"20px",children:(0,D.jsx)(T.EY,{fontSize:"18px",children:a[t].KT_0001_03})})]})})};var ee=n(59177),ae=n(54804);const ne={ja:"\u30da\u30fc\u30b8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002",en:"Page not found.",vn:"Kh\xf4ng t\xecm th\u1ea5y trang."},te={ja:"\u4e0d\u660e\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002",en:"Unknown error occurred.",vn:"X\u1ea3y ra l\u1ed7i kh\xf4ng x\xe1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c."},ie={ja:"\u4e0d\u660e\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002",en:"Unknown error occurred.",vn:"X\u1ea3y ra l\u1ed7i kh\xf4ng x\xe1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c."};var re=n(70966),se=n(6452);const de=e=>{let{children:a}=e;const{goErrorPage:n}=(0,se.A)(),{sendErrorLog:t}=(0,re.A)();return(0,D.jsx)(ee.ErrorBoundary,{FallbackComponent:e=>{let{error:a}=e;return(0,I.useEffect)((()=>{n({errorCode:ae.b.E_9000,error:a})}),[]),(0,D.jsx)(D.Fragment,{})},onError:(e,a)=>{t({error:"".concat(e,"\n'").concat(a.componentStack),errorCode:ae.b.E_9000,message:te.ja})},children:a})},oe=e=>{let{errorCode:a,error:n,message:t}=e;const{goErrorPage:i}=(0,se.A)(),{sendErrorLog:r}=(0,re.A)();return(0,I.useEffect)((()=>{(async()=>{await r({error:n,errorCode:a,message:null!==t&&void 0!==t?t:ie.ja}),await i({errorCode:a,error:n})})()}),[a]),(0,D.jsx)(D.Fragment,{})},le=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return new Promise(((t,i)=>{e().then(t).catch((r=>{setTimeout((()=>{-1!==a?le(e,a-1,n).then(t,i):i(r)}),n)}))}))};var ue=n(63867),ce=n(34868),me=n(96432),fe=n(63057);function pe(e){var a,n,t,i;let{maintenances:r}=e;const s=(0,F.l$)();let d=String(localStorage.getItem(M.l.systemLanguage));return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(L.aF,{isOpen:!0,onClose:()=>{},children:[(0,D.jsx)(L.mH,{}),(0,D.jsx)(L.$m,{minW:"35rem",children:(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(L.cw,{children:[(0,D.jsx)(T.Tk,{align:"center",justify:"center",children:(0,D.jsx)(T.DZ,{as:"h2",size:"xl",mb:"4",marginTop:15,children:s.under_maintenance_0001})}),(0,D.jsx)(T.EY,{fontSize:"lg",children:s.under_maintenance_0002}),(0,D.jsx)(T.EY,{fontSize:"lg",mb:"4",children:s.under_maintenance_0003}),(0,D.jsx)(T.EY,{fontSize:"lg",mb:"4",marginTop:"30px",children:s.under_maintenance_0004}),(0,D.jsx)(T.EY,{fontSize:"xl",mb:"4",marginTop:"30px",children:s.under_maintenance_0005}),(0,D.jsxs)(T.EY,{fontSize:"lg",mb:"4",children:[(0,fe.am)(null===(a=r[0])||void 0===a?void 0:a.start_datetime,d)," ~"," ",(0,fe.am)(null===(n=r[0])||void 0===n?void 0:n.end_datetime,d)]}),(0,D.jsx)(T.EY,{fontSize:"xl",mb:"4",mt:"30px",children:s.under_maintenance_0006}),(0,D.jsx)(T.EY,{fontSize:"lg",mb:"4",children:null===(t=r[0])||void 0===t?void 0:t.maintenance_title}),(0,D.jsx)(T.EY,{fontSize:"lg",mb:"8",children:null===(i=r[0])||void 0===i?void 0:i.maintenance_detail})]})})})]})})}const be=e=>{let{children:a}=e;const n=(0,S.G)((e=>e.user)),{sendUserEvent:i,sendUserEventByNotAuth:r}=(0,me.A)();(0,I.useEffect)((()=>{if(n.authState===t.SignedIn&&n.user){const e=n.user["cognito:username"];(0,ce.Bx)((()=>ce.QS.mobileAppControllerCreateActiveLearnerLog(e))),(0,ce.Bx)((()=>ce.QS.organizationsControllerGetOperationalStatus())).then((e=>{var a;(null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.data.length)>0&&!0===e.data.data[0].status&&(d("UnderMaintenanceModal"),l(e.data.data[0].data))})),i("page_view")}else r("page_view")}),[]);const[s,d]=(0,I.useState)(""),[o,l]=(0,I.useState)("");return(0,D.jsxs)(D.Fragment,{children:[a,"UnderMaintenanceModal"===s&&(0,D.jsx)(pe,{maintenances:o})]})};var he=n(93002),_e=n(76282),ve=n(1031),ye=n(88877),ge=n(2127),we=(n(32454),n(20471)),Te=n(89532);const ke=e=>{let{onCloseModal:a}=e;const n=(0,F.l$)(),t=(0,x.zy)(),[i,r]=(0,I.useState)(!1),s=(0,x.W6)();return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(L.aF,{isOpen:!0,onClose:a,children:[(0,D.jsx)(L.mH,{}),(0,D.jsxs)(L.$m,{maxWidth:"345px",textAlign:"center",children:[(0,D.jsx)(L.rQ,{fontSize:"sm",bgColor:"salmon",roundedTop:"md",children:n.KT_0099_01}),(0,D.jsx)(L.cw,{children:n.KT_0099_02}),(0,D.jsxs)(L.jl,{justifyContent:"space-evenly",children:[(0,D.jsx)(H.$n,{className:"btn-border",textColor:"white",bgColor:"gray",width:"40%",onClick:()=>{r(!0),localStorage.removeItem(M.l.exerciseJson),a(),r(!1)},disabled:i,children:n.KT_0099_03}),(0,D.jsx)(H.$n,{className:"btn-border",textColor:"white",bgColor:"orange",width:"40%",onClick:async()=>{if(r(!0),!t.pathname.includes("episodeCompletion")){const e=sessionStorage.getItem(we.y.StudySessionId),a=e?parseInt(e):0;await(0,Te.d)(B.Vg.EXIT,a),sessionStorage.removeItem(we.y.StudySessionId)}const e=localStorage.getItem(M.l.episodeId);s.push("/stories/".concat(e)),r(!1)},disabled:i,children:n.KT_0099_04})]})]})]})})},Ee=()=>{const e=String(localStorage.getItem(M.l.storyLabel)),a=String(localStorage.getItem(M.l.storyTitle)),[n,t]=(0,I.useState)("");return(0,D.jsxs)(D.Fragment,{children:["ExitModal"===n&&(0,D.jsx)(ke,{onCloseModal:()=>{t("")}}),(0,D.jsx)(T.so,{width:"100%",background:"cornsilk",children:(0,D.jsxs)(T.zt,{width:"100%",m:2,children:[(0,D.jsxs)(T.az,{display:"flex",bg:"#f9ba66",height:"70px",width:{base:"95%",sm:"97%",md:"98%"},borderTopLeftRadius:"50px",borderBottomLeftRadius:"50px",borderTopRightRadius:"md",borderBottomRightRadius:"md",alignItems:"center",children:[(0,D.jsx)(T.az,{bg:"#fc9e2d",color:"white",borderRadius:"50%",width:"70px",height:"70px",display:"flex",justifyContent:"center",alignItems:"center",children:(0,D.jsx)(T.EY,{fontSize:"lg",children:e})}),(0,D.jsx)(T.az,{width:"80%",display:"flex",alignItems:"center",justifyContent:"center",m:1,children:(0,D.jsx)(T.EY,{fontWeight:"medium",children:a})})]}),(0,D.jsx)(T.az,{color:"#ed7f35",fontSize:"30px",display:"flex",alignItems:"center",justifyContent:"center",m:1,onClick:()=>{t("ExitModal")},children:(0,D.jsx)(ge.Fl6,{})})]})})]})},Ie=e=>{let{currentQuestion:a,langOption:n,setLangOption:t,kanaOption:i,setKanaOption:r}=e;const s=(0,F.l$)(),d=j.c.kana_icon_s,o=j.c.baseline_translate_black_lite,l=String(localStorage.getItem(M.l.systemLanguage));return(0,D.jsxs)(T.zt,{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",pl:{base:5,sm:7,md:10},pr:{base:5,sm:7,md:10},children:[(0,D.jsxs)(T.az,{border:"2px",height:{base:"30px",md:"35px",lg:"45px"},borderColor:"black",display:"flex",alignItems:"center",justifyContent:"center",padding:{base:1,md:2,lg:3},fontSize:{base:"12px",md:"16px",lg:"20px"},children:[s.KT_0024_06,a]}),(0,D.jsxs)(T.zt,{children:[(0,D.jsx)(T.az,{border:"2px",width:{base:"30px",md:"35px",lg:"45px"},height:{base:"30px",md:"35px",lg:"45px"},background:"kana"===i?"#afd31a":"#fff",borderRadius:"md",borderColor:"#bdc0b1",display:"flex",justifyContent:"center",alignItems:"center",onClick:()=>{"ja"===i?(localStorage.setItem(M.l.displayJPMode,"kana"),r("kana")):(localStorage.setItem(M.l.displayJPMode,"ja"),r("ja"))},_hover:{background:"#fff",borderColor:"#afd31a",cursor:"pointer"},children:(0,D.jsx)(C._V,{w:"30px",h:"30px",src:d})}),(0,D.jsx)(T.az,{border:"2px",width:{base:"30px",md:"35px",lg:"45px"},height:{base:"30px",md:"35px",lg:"45px"},background:n===l?"#afd31a":"#fff",borderRadius:"md",borderColor:"#bdc0b1",display:"flex",justifyContent:"center",alignItems:"center",onClick:()=>{"ja"===l?t("ja"===n?"en":"ja"):"ja"===n?(t(l),localStorage.setItem(M.l.translationFlg,"true")):(t("ja"),localStorage.setItem(M.l.translationFlg,"false"))},_hover:{background:"#fff",borderColor:"#afd31a",cursor:"pointer"},children:(0,D.jsx)(C._V,{w:"30px",h:"30px",src:o})})]})]})};var xe=n(23390),Se=n(95922),Ae=n(49986),qe=n(5615),Ce=n(84202);const Fe=e=>{var a,n;let{baseQuestion:t,selectedAnswer:i,kanaOption:r,onCloseModal:s,handleNextQuestion:d}=e;const{evaluteCorrect:o,correct:l}=t,u=(0,F.l$)(),c=j.c.circle_play_outline_white,[m,f]=(0,I.useState)("ja"),p=o===i;(0,I.useEffect)((()=>{b()}),[]),(0,I.useEffect)((()=>{const e=new Audio(p?qe:Ce);return e.play().catch((e=>console.error("\u30aa\u30fc\u30c7\u30a3\u30aa\u518d\u751f\u306b\u5931\u6557:",e))),()=>{e.pause(),e.currentTime=0}}),[p]);const b=()=>{let e="en";localStorage.hasOwnProperty(M.l.systemLanguage)||localStorage.setItem(M.l.systemLanguage,"en"),e=String(localStorage.getItem(M.l.systemLanguage)),f(e)};return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(L.aF,{isOpen:!0,onClose:s,closeOnOverlayClick:!1,scrollBehavior:"inside",children:[(0,D.jsx)(L.mH,{}),(0,D.jsxs)(L.$m,{h:"80vh",w:{base:"320px",sm:"400px"},borderRadius:"20px",children:[(0,D.jsx)(L.rQ,{textAlign:"center"}),(0,D.jsxs)(L.cw,{h:"80vh",overflowY:"auto",children:[(0,D.jsx)(T.zt,{gap:1,pb:3,children:p?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(xe.sxA,{size:"25px",strokeWidth:"4",color:"red"}),(0,D.jsx)(T.EY,{fontWeight:"bold",fontSize:"xl",children:"\u305b\u3044\u304b\u3044!"})]}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Se.clO,{size:"25px",strokeWidth:"2",color:"#2c93de"}),(0,D.jsx)(T.EY,{fontWeight:"bold",fontSize:"xl",children:"\u3056\u3093\u306d\u3093..."})]})}),(0,D.jsxs)(T.Tk,{gap:1,alignItems:"flex-start",children:[(0,D.jsx)(T.az,{justifyContent:"center",color:"white",fontSize:"sm",bgColor:"orange",borderRadius:"2xl",p:3,children:(0,D.jsx)(T.EY,{fontSize:"xl",children:"\u3053\u305f\u3048"})}),(null===(a=l[r])||void 0===a?void 0:a.split("\n").map(((e,a)=>(0,D.jsx)(T.az,{fontWeight:"medium",fontSize:"xl",marginLeft:10,children:e},a))))||null,(null===(n=l["ja"===m?"en":m])||void 0===n?void 0:n.split("\n").map(((e,a)=>(0,D.jsx)(T.az,{fontWeight:"medium",fontSize:"xl",marginLeft:10,children:e},a))))||null]})]}),(0,D.jsx)(L.jl,{children:(0,D.jsx)(T.so,{justifyContent:"center",w:"100%",children:(0,D.jsxs)(H.$n,{w:"150px",h:"60px",mb:"20px",justifyContent:"center",color:"white",fontSize:"sm",bgColor:"orange",border:"1px solid black",boxShadow:"0 3px black",onClick:()=>{const e=p?Ae.F.CORRECT:Ae.F.INCORRECT;d(e)},children:[(0,D.jsx)(C._V,{mr:"5px",src:c,sizes:"md",h:"20px"}),(0,D.jsx)(T.EY,{fontSize:"15px",children:u.KT_0024_05})]})})})]})]})})},je=e=>{let{baseQuestion:a,langOption:n,kanaOption:t,selectedAnswer:i,setSelectedAnswer:r,handleNextQuestion:s}=e;const{question:d,answers:o,indicative:l}=a,u=(0,F.l$)(),c=j.c.circle_play_outline_white,[m,f]=(0,I.useState)("");return(0,D.jsxs)(D.Fragment,{children:["ResultModal"===m&&(0,D.jsx)(Fe,{baseQuestion:a,selectedAnswer:i,kanaOption:t,onCloseModal:()=>{f("")},handleNextQuestion:s}),(0,D.jsx)(T.BJ,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",m:1,children:(0,D.jsxs)(T.az,{fontSize:{base:"16px",md:"20px",lg:"24px"},ml:10,mr:10,children:[(0,D.jsx)(T.EY,{mb:2,children:"ja"===n?l[t]:l[n]}),d[t].split("\n").map(((e,a)=>(0,D.jsx)(T.az,{fontWeight:"bold",children:e},a)))]})}),(0,D.jsxs)(T.Tk,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",m:1,spacing:3,children:[o.map(((e,a)=>(0,D.jsx)(T.az,{cursor:"pointer",width:"80%",minHeight:{base:"55px",md:"50px",lg:"60px"},display:"flex",alignItems:"center",justifyContent:"center",background:i===e[n]?"orange":"#e2e2e2",borderColor:"#bdc0b1",borderRadius:"15px",boxShadow:i===e[n]?"none":"0 3px #bdbdbd",onClick:()=>(e=>{r(e[n])})(e),children:(0,D.jsx)(T.EY,{fontWeight:"medium",fontSize:{base:"14px",md:"15px",lg:"20px"},children:e[n]})},a))),(0,D.jsx)(T.so,{justifyContent:"center",children:(0,D.jsxs)(H.$n,{w:"200px",h:"60px",my:"20px",justifyContent:"center",color:"white",fontSize:"sm",bgColor:""===i?"#a0a0a0":"orange",border:"1px solid black",disabled:""===i,_hover:{bgColor:""===i?"#a0a0a0":"orange"},_disabled:{bgColor:"#a0a0a0",cursor:"not-allowed"},boxShadow:"0 3px black",onClick:()=>f("ResultModal"),children:[(0,D.jsx)(C._V,{mr:"5px",src:c,sizes:"md",h:"20px"}),(0,D.jsx)(T.EY,{fontSize:"15px",children:u.KT_0023_02})]})})]})]})},De=e=>{let{baseQuestion:a,langOption:n,kanaOption:t,answerOrder:i,setAnswerOrder:r,shuffledAnswers:s,handleNextQuestion:d}=e;const{question:o,answers:l,indicative:u}=a,c=(0,F.l$)(),m=j.c.circle_play_outline_white,[f,p]=(0,I.useState)(""),[b,h]=(0,I.useState)(""),_=["#ef7891","#94b73d","#4fa8a1","#b67de2"];(0,I.useEffect)((()=>{v()}),[i]);const v=()=>{if(i.length===l.length){let e="";for(let a=0;a{p("")},g=()=>(0,D.jsx)(D.Fragment,{children:s?s.map(((e,a)=>{let t=i.indexOf(a.toString());t=-1!==t?t:0;const s=i.includes(a.toString());return(0,D.jsxs)(H.$n,{className:"custom-button",w:"80%",minHeight:{base:"55px",md:"50px",lg:"60px"},borderColor:s?_[t]:"#bdbdbd",borderRadius:"15px",borderWidth:s?"3px 3.5px 7px 4px":"1px",boxShadow:s?"none":"0 3px #bdbdbd",onClick:()=>(e=>{const a=e.toString();i.includes(a)?r(i.replace(a,"")):i.includes(a)||r(i+a)})(a),children:[(0,D.jsx)(T.az,{className:"circle",bg:_[t],hidden:!s,children:(0,D.jsx)("span",{className:"number-circle",children:t+1})}),(0,D.jsx)(T.EY,{fontSize:"15px",children:e[n]})]},a)})):null}),w=()=>{const e=o[t];let a=Array.from({length:l.length},((e,a)=>void 0!==i[a]?s[Number(i[a])][n]||void 0:""));const r=e.split(/\uff3f\uff3f|\uff3f/);return(0,D.jsx)(T.zt,{children:(0,D.jsx)(T.az,{children:r.map(((e,n)=>(0,D.jsxs)("span",{children:[e,n(0,D.jsxs)(D.Fragment,{children:["ResultModal"===f&&(0,D.jsx)(Fe,{baseQuestion:a,selectedAnswer:b,kanaOption:t,onCloseModal:y,handleNextQuestion:d}),(0,D.jsx)(T.Tk,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",m:1,gap:1,children:(0,D.jsxs)(T.az,{fontSize:{base:"16px",md:"20px",lg:"24px"},ml:10,mr:10,children:[(0,D.jsx)(T.EY,{mb:2,children:u[n]}),(0,D.jsxs)(T.zt,{gap:1,children:[s?s.map(((e,a)=>(0,D.jsxs)(T.Tk,{children:[(0,D.jsx)(T.az,{bg:_[a],color:"white",borderRadius:"50%",width:"25px",height:"25px",display:"flex",justifyContent:"center",alignItems:"center",children:(0,D.jsx)(T.EY,{fontSize:"md",children:a+1})}),(0,D.jsx)(T.az,{width:"35px",height:"2px",bg:"#e0e0e1"})]},a))):null,(0,D.jsx)(T.az,{fontWeight:"bold",children:"\u3002"})]}),(0,D.jsx)(w,{})]})}),(0,D.jsxs)(T.Tk,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",m:1,spacing:3,children:[(0,D.jsx)(g,{}),(0,D.jsx)(T.so,{justifyContent:"center",children:(0,D.jsxs)(H.$n,{w:"200px",h:"60px",my:"20px",justifyContent:"center",color:"white",fontSize:"sm",bgColor:""===b?"#a0a0a0":"orange",border:"1px solid black",disabled:""===b,_hover:{bgColor:""===b?"#a0a0a0":"orange"},_disabled:{bgColor:"#a0a0a0",cursor:"not-allowed"},boxShadow:"0 3px black",onClick:()=>{p("ResultModal")},children:[(0,D.jsx)(C._V,{mr:"5px",src:m,sizes:"md",h:"20px"}),(0,D.jsx)(T.EY,{fontSize:"15px",children:c.KT_0023_02})]})})]})]});return(0,D.jsx)(D.Fragment,{children:s?(0,D.jsx)(E,{}):(0,D.jsx)(k.y,{})})},Ze=e=>{var a;let{}=e;const n=(0,x.W6)(),t=Number(localStorage.getItem(M.l.seasonId)),i=Number(localStorage.getItem(M.l.episodeId)),r=Number(localStorage.getItem(M.l.sceneId)),s=(0,ve.R)(t,i,r),d=(0,ye.A)(s?_e.Tc5[s]:""),o=null===d||void 0===d?void 0:d.contents.length,l=localStorage.getItem(M.l.exerciseJson),[u,c]=(0,I.useState)(1),[m,f]=(0,I.useState)("ja"),[p,b]=(0,I.useState)(null!==(a=localStorage.getItem(M.l.displayJPMode))&&void 0!==a?a:"kana"),[h,_]=(0,I.useState)(""),[v,y]=(0,I.useState)(""),[g,w]=(0,I.useState)(),{apiErrorHandler:E}=(0,se.A)();(0,I.useEffect)((()=>{if(l&&o){var e,a;const n=JSON.parse(l);c(n.currentQuestion);const t=null!==(e=localStorage.getItem(M.l.translationFlg))&&void 0!==e?e:"true",i=null!==(a=localStorage.getItem(M.l.systemLanguage))&&void 0!==a?a:"ja";f("true"===t?i:"ja")}}),[o]),(0,I.useEffect)((()=>{_(""),S()}),[u,m,p,o]),(0,I.useEffect)((()=>{const e=String(localStorage.getItem(M.l.systemLanguage));return f(e),window.addEventListener("visibilitychange",Te.g),()=>{window.removeEventListener("visibilitychange",Te.g)}}),[]);const S=()=>{if(o&&u<=o){const e=null===d||void 0===d?void 0:d.contents[u-1];null!==e&&void 0!==e&&e.questionType.includes("Sort")?w(F([...e.answers])):w(null)}},A=()=>(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(T.BJ,{className:"custom-stack",bgSize:"cover",boxSizing:"content-box",bgColor:"white",borderRadius:"5px 5px 0 0",m:"auto",height:"100vh",sx:{position:"fixed",top:0,left:0,right:0,bottom:0,overflowY:"auto"},children:[(0,D.jsx)(Ee,{}),(0,D.jsx)(T.so,{width:"100%",children:(0,D.jsx)(T.zt,{width:"100%",ml:1,mr:1,children:(0,D.jsxs)(T.az,{display:"flex",width:"100%",alignItems:"center",ml:1,mr:1,children:[(0,D.jsx)(T.az,{width:{base:"90%",md:"95%"},display:"flex",justifyContent:"center",alignItems:"center",children:(0,D.jsx)(he.ke,{width:"100%",value:u/(null!==o&&void 0!==o?o:1)*100,height:"5px"})}),(0,D.jsx)(T.az,{width:{base:"10%",md:"5%"},display:"flex",alignItems:"center",justifyContent:"center",ml:2,children:(0,D.jsxs)(T.EY,{fontWeight:"medium",children:[u,"/",o]})})]})})}),(0,D.jsx)(Ie,{currentQuestion:u,langOption:m,setLangOption:f,kanaOption:p,setKanaOption:b}),(0,D.jsx)(q,{})]})}),q=()=>{const e=null===d||void 0===d?void 0:d.contents[u-1];return e?(0,D.jsxs)(D.Fragment,{children:[e.questionType.includes("FourChoices")?(0,D.jsx)(je,{baseQuestion:e,langOption:m,kanaOption:p,selectedAnswer:v,setSelectedAnswer:y,handleNextQuestion:C}):null,e.questionType.includes("Sort")?(0,D.jsx)(De,{baseQuestion:e,langOption:m,kanaOption:p,answerOrder:h,setAnswerOrder:_,shuffledAnswers:g,handleNextQuestion:C}):null]}):null},C=e=>{if(u<=(null!==o&&void 0!==o?o:0)&&l){const a=JSON.parse(l);a.answers[u]=e,a.currentQuestion=u+1,e===Ae.F.CORRECT&&a.correctCount++;const n=JSON.stringify(a);localStorage.setItem(M.l.exerciseJson,n),_(""),y(""),u===o?j(a):c(u+1)}},F=e=>{for(let a=e.length-1;a>0;a--){const n=Math.floor(Math.random()*(a+1));[e[a],e[n]]=[e[n],e[a]]}return e},j=async e=>{const a={chapter_id:Number(t+1)+"_SEASON_ID_"+Number(i+1)+"_CHAPTER_ID_"+Number(r),correct_count:e.correctCount,total_count:o},s=(0,ce.Bx)((()=>ce.QS.mobileAppControllerPutStudyRecord(a).catch((e=>E(e,{componentName:"story-exercises",functionName:ce.QS.organizationsControllerGetPastLessonList.name}))))),d=sessionStorage.getItem(we.y.StudySessionId),l=d?parseInt(d):0,u=(0,Te.d)(B.Vg.COMPLETE,l),[c,m]=await Promise.all([s,u]);sessionStorage.removeItem(we.y.StudySessionId),200===c.data.code&&(localStorage.removeItem(M.l.exerciseJson),n.push("/episodeCompletion"))};return(0,D.jsx)(D.Fragment,{children:d?(0,D.jsx)(A,{}):(0,D.jsx)(T.so,{children:(0,D.jsx)(k.y,{})})})},Ne=e=>{let{}=e;const a=(0,F.l$)(),n=(0,x.W6)(),t=j.c.circle_play_outline_white,i=j.c.otukaresama,r=localStorage.getItem(M.l.episodeId);return(0,D.jsx)(T.so,{bg:"cornsilk",minH:"100vh",w:"100%",p:4,overflowY:"auto",justify:"center",align:"flex-start",children:(0,D.jsxs)(T.Tk,{spacing:8,w:"100%",maxW:"700px",align:"center",mt:"auto",mb:"auto",children:[(0,D.jsxs)(T.Tk,{bg:"white",p:5,spacing:4,align:"center",w:"90%",borderRadius:"lg",boxShadow:"md",children:[(0,D.jsx)(C._V,{src:i,w:{base:"100%",sm:"100%",md:"80%",lg:"50%"},maxW:"300px",maxH:"300px",objectFit:"contain"}),(0,D.jsx)(T.EY,{fontWeight:"medium",textAlign:"center",children:a.go_on_next})]}),(0,D.jsxs)(T.zt,{justify:"center",spacing:4,w:"100%",flexWrap:"nowrap",maxW:"500px",children:[(0,D.jsx)(H.$n,{w:{base:"45%",sm:"150px"},h:"60px",justifyContent:"center",color:"white",fontSize:"sm",bgColor:"#0699fb",border:"1px solid black",boxShadow:"0 3px black",onClick:()=>n.push("/stories/".concat(r)),leftIcon:(0,D.jsx)(Se.TCu,{color:"white",size:"25px",strokeWidth:"0.2"}),children:(0,D.jsx)(T.EY,{fontSize:"15px",children:a.KT_0024_07})}),(0,D.jsxs)(H.$n,{w:{base:"45%",sm:"150px"},h:"60px",justifyContent:"center",color:"white",fontSize:"sm",bgColor:"orange",onClick:()=>(async()=>{const e=Number(localStorage.getItem(M.l.episodeId)),a=Number(localStorage.getItem(M.l.sceneId)),t=Number(localStorage.getItem(M.l.seasonId)),i=Boolean("true"==localStorage.getItem(M.l.seasonSummary)),r=Boolean("true"==localStorage.getItem(M.l.episodeSummary));0==i&&0==r?(localStorage.setItem(M.l.sceneId,String(a+1)),localStorage.setItem(M.l.isNextEpisode,"false"),localStorage.setItem(M.l.isNextScene,"true")):1==i?0==t&&(localStorage.setItem(M.l.seasonId,String(t+1)),localStorage.setItem(M.l.episodeId,"0"),localStorage.setItem(M.l.isNextSummary,"false"),localStorage.setItem(M.l.isNextEpisode,"true"),localStorage.setItem(M.l.isNextScene,"true"),localStorage.setItem(M.l.sceneId,"0"),localStorage.setItem(M.l.isNextEpisode,"true"),localStorage.setItem(M.l.isNextScene,"true")):15==e?(localStorage.setItem(M.l.isNextSummary,"true"),localStorage.setItem(M.l.isNextEpisode,"false"),localStorage.setItem(M.l.isNextScene,"true"),localStorage.setItem(M.l.sceneId,"0")):(localStorage.setItem(M.l.episodeId,String(e+1)),localStorage.setItem(M.l.isNextEpisode,"true"),localStorage.setItem(M.l.isNextScene,"true"),localStorage.setItem(M.l.sceneId,"0")),n.push("/stories/".concat(e))})(),border:"1px solid black",boxShadow:"0 3px black",children:[(0,D.jsx)(C._V,{mr:"5px",src:t,h:"20px"}),(0,D.jsx)(T.EY,{fontSize:"15px",children:a.KT_0024_05})]})]})]})})};var Oe=n(16993);const Re=e=>{let{}=e;const a=(0,F.l$)(),n=j.c.otukaresama,t=(0,x.W6)();return(0,D.jsx)(D.Fragment,{children:(0,D.jsxs)(T.BJ,{className:"custom-stack",bgSize:"cover",boxSizing:"content-box",bgColor:"cornsilk",borderRadius:"5px 5px 0 0",m:"auto",width:"100%",height:"100vh",sx:{position:"fixed",top:0,left:0,right:0,bottom:0,overflowY:"auto"},children:[(0,D.jsx)(Oe.A,{}),(0,D.jsxs)(T.Tk,{height:"100%",p:"5",justifyContent:"space-between",children:[(0,D.jsx)(T.Tk,{bg:"white",p:"5",children:(0,D.jsx)(C._V,{src:n,width:{base:"550px",lg:"600px"},p:1})}),(0,D.jsx)(T.zt,{justifyContent:"center",width:"100%",p:1,children:(0,D.jsx)(H.$n,{h:"60px",justifyContent:"center",color:"white",fontSize:"sm",bgColor:"#0699fb",border:"1px solid black",boxShadow:"0 3px black",onClick:()=>t.push("/top"),leftIcon:(0,D.jsx)(Se.TCu,{color:"white",size:"25px",strokeWidth:"0.2"}),children:(0,D.jsx)(T.EY,{fontSize:"15px",children:a.KT_0024_07})})})]})]})})},ze=(0,I.lazy)((()=>le((()=>Promise.all([n.e(4485),n.e(1972),n.e(4569)]).then(n.bind(n,94569)))))),Ue=(0,I.lazy)((()=>le((()=>n.e(4773).then(n.bind(n,94773)))))),Pe=(0,I.lazy)((()=>le((()=>n.e(1160).then(n.bind(n,1160)))))),He=(0,I.lazy)((()=>le((()=>n.e(1604).then(n.bind(n,51604)))))),Be=(0,I.lazy)((()=>le((()=>n.e(8707).then(n.bind(n,78707)))))),Me=(0,I.lazy)((()=>le((()=>Promise.all([n.e(1172),n.e(8426)]).then(n.bind(n,68426)))))),Ke=(0,I.lazy)((()=>le((()=>Promise.all([n.e(1172),n.e(3229)]).then(n.bind(n,15610)))))),Le=(0,I.lazy)((()=>le((()=>n.e(2795).then(n.bind(n,42795)))))),Ve=(0,I.lazy)((()=>le((()=>n.e(8042).then(n.bind(n,78042)))))),Qe=(0,I.lazy)((()=>le((()=>Promise.all([n.e(4224),n.e(5964)]).then(n.bind(n,35964)))))),We=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(7929)]).then(n.bind(n,67929)))))),Ge=(0,I.lazy)((()=>le((()=>n.e(4322).then(n.bind(n,54322)))))),Xe=(0,I.lazy)((()=>le((()=>n.e(2083).then(n.bind(n,72083)))))),Ye=(0,I.lazy)((()=>le((()=>n.e(5243).then(n.bind(n,5243)))))),Je=(0,I.lazy)((()=>le((()=>n.e(5150).then(n.bind(n,55150)))))),$e=(0,I.lazy)((()=>le((()=>n.e(8143).then(n.bind(n,48143)))))),ea=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(9823)]).then(n.bind(n,9823)))))),aa=(0,I.lazy)((()=>le((()=>Promise.all([n.e(2253),n.e(966),n.e(5628)]).then(n.bind(n,46923)))))),na=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(2642)]).then(n.bind(n,12642)))))),ta=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(1172),n.e(1995)]).then(n.bind(n,31995)))))),ia=(0,I.lazy)((()=>le((()=>n.e(7374).then(n.bind(n,47374)))))),ra=(0,I.lazy)((()=>le((()=>n.e(1236).then(n.bind(n,61236)))))),sa=(0,I.lazy)((()=>le((()=>n.e(8349).then(n.bind(n,88349)))))),da=(0,I.lazy)((()=>le((()=>n.e(8988).then(n.bind(n,8988)))))),oa=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(2959)]).then(n.bind(n,18988)))))),la=(0,I.lazy)((()=>le((()=>Promise.all([n.e(5579),n.e(395)]).then(n.bind(n,90395)))))),ua=(0,I.lazy)((()=>le((()=>Promise.all([n.e(8582),n.e(966),n.e(669)]).then(n.bind(n,70669)))))),ca=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(7554)]).then(n.bind(n,47554)))))),ma=(0,I.lazy)((()=>le((()=>Promise.all([n.e(9230),n.e(7878)]).then(n.bind(n,7878)))))),fa=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(13)]).then(n.bind(n,70013)))))),pa=(0,I.lazy)((()=>le((()=>Promise.all([n.e(4224),n.e(721)]).then(n.bind(n,50721)))))),ba=(0,I.lazy)((()=>le((()=>n.e(7589).then(n.bind(n,97589)))))),ha=(0,I.lazy)((()=>le((()=>n.e(9916).then(n.bind(n,99916)))))),_a=(0,I.lazy)((()=>le((()=>n.e(5553).then(n.bind(n,85553)))))),va=(0,I.lazy)((()=>le((()=>Promise.all([n.e(7368),n.e(9818)]).then(n.bind(n,99818)))))),ya=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(1972),n.e(4385)]).then(n.bind(n,34385)))))),ga=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(1972),n.e(5583)]).then(n.bind(n,35583)))))),wa=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(1972),n.e(8107)]).then(n.bind(n,98107)))))),Ta=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(6546)]).then(n.bind(n,16546)))))),ka=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(308)]).then(n.bind(n,80308)))))),Ea=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(658)]).then(n.bind(n,60658)))))),Ia=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(1964)]).then(n.bind(n,31964)))))),xa=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(7558)]).then(n.bind(n,87558)))))),Sa=(0,I.lazy)((()=>le((()=>n.e(4017).then(n.bind(n,14017)))))),Aa=(0,I.lazy)((()=>le((()=>n.e(943).then(n.bind(n,10943)))))),qa=(0,I.lazy)((()=>le((()=>n.e(5534).then(n.bind(n,25534)))))),Ca=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(4485),n.e(9620)]).then(n.bind(n,29620)))))),Fa=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(4485),n.e(910)]).then(n.bind(n,90910)))))),ja=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(4485),n.e(9842)]).then(n.bind(n,89842)))))),Da=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(4149)]).then(n.bind(n,64149)))))),Za=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(8587)]).then(n.bind(n,58587)))))),Na=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(7573)]).then(n.bind(n,97573)))))),Oa=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(787)]).then(n.bind(n,70787)))))),Ra=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(8930)]).then(n.bind(n,88930)))))),za=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(5492)]).then(n.bind(n,75492)))))),Ua=(0,I.lazy)((()=>le((()=>Promise.all([n.e(966),n.e(5627)]).then(n.bind(n,35627)))))),Pa=(0,I.lazy)((()=>le((()=>n.e(3398).then(n.bind(n,33398)))))),Ha=(0,I.lazy)((()=>le((()=>n.e(9452).then(n.bind(n,59452)))))),Ba=(0,I.lazy)((()=>le((()=>n.e(7045).then(n.bind(n,57045))))));l.F.putVocabulariesForLanguage("ja",A);const Ma=e=>{let{render:a,userState:n,...i}=e;return(0,D.jsx)(x.qh,{...i,render:n.authState===t.SignedIn&&n.user?a:()=>(0,D.jsx)(x.rd,{to:"/signin"})})},Ka=()=>(0,D.jsx)(T.mc,{className:"App-Loading",children:(0,D.jsx)(k.y,{})}),La=e=>{try{return{"cognito:username":e.signInUserSession.idToken.payload["cognito:username"],"custom:companyId":e.attributes["custom:companyId"]||"","custom:learnerId":e.attributes["custom:learnerId"],email:e.signInUserSession.idToken.payload.email,exp:e.signInUserSession.idToken.payload.exp}}catch(a){throw a}},Va=e=>{let a=e.toLocaleString();return(0,U.default)(Date.parse(a),"yyyy/MM/dd HH:mm:ss")},Qa=()=>{const e=(0,S.G)((e=>e.user)),a=(0,S.G)(R.VP),n=(0,S.j)(),i=(0,x.zy)();return(0,I.useEffect)((()=>{let e={};return(async()=>{try{e=await h.N.currentAuthenticatedUser().catch((e=>null))}catch(a){}e?(n((0,z.Jv)({authState:t.SignedIn,user:La(e)})),n((0,R.xv)())):(await n((0,z.ag)()),n((0,R.xv)()),"/"!==i.pathname&&"/agree"!==i.pathname&&"/start"!==i.pathname&&"/select_lang"!==i.pathname&&"/signin"!==i.pathname&&n(E.Hs.push("/signin")))})(),function(e){var a=function(a){return y(void 0,void 0,void 0,(function(){var n,i;return g(this,(function(r){switch(r.label){case 0:return"AuthStateChange"===(n=a.payload).event?[3,1]:[3,8];case 1:if(!n.message)return[3,7];if(n.message!==t.SignedIn)return[3,6];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,_.currentAuthenticatedUser()];case 3:return i=r.sent(),e(n.message,i),[3,5];case 4:return r.sent(),w.error("User is not authenticated"),[3,5];case 5:return[3,7];case 6:e(n.message,n.data),r.label=7;case 7:return[3,8];case 8:return[2]}}))}))};return b.YZ.listen(v,a),function(){e=function(){},b.YZ.remove(v,a)}}(((e,a)=>{e===t.SignedIn&&a&&n((0,z.Jv)({authState:t.SignedIn,user:La(a)}))}))}),[n,i.pathname]),a?(0,D.jsx)(de,{children:(0,D.jsx)(Ka,{})}):(0,D.jsx)(de,{children:(0,D.jsx)(be,{children:(0,D.jsx)(ue.oz.Provider,{value:ue._k,children:(0,D.jsxs)(x.dO,{children:[(0,D.jsx)(x.qh,{exact:!0,path:"/select_lang",children:(0,D.jsx)($,{})}),(0,D.jsx)(x.qh,{exact:!0,path:"/agree",children:(0,D.jsx)(K,{})}),(0,D.jsx)(x.qh,{exact:!0,path:"/start",render:()=>"true"===localStorage.getItem(M.l.agreed)?(0,D.jsx)(Y,{}):(0,D.jsx)(x.rd,{to:"/select_lang"})}),(0,D.jsx)(I.Suspense,{fallback:(0,D.jsx)(Ka,{}),children:"/top"===i.pathname?(0,D.jsx)(Ma,{exact:!0,path:"/top",render:()=>(0,D.jsx)(va,{}),userState:e}):(0,D.jsx)(x.dO,{children:(0,D.jsx)(O,{children:(0,D.jsxs)(x.dO,{children:[(0,D.jsx)(x.qh,{exact:!0,path:"/",render:()=>e.authState===t.SignedIn&&e.user?(0,D.jsx)(x.rd,{to:"/top"}):(0,D.jsx)(x.rd,{to:"/select_lang"})}),(0,D.jsx)(x.qh,{exact:!0,path:"/signin",render:()=>e.authState===t.SignedIn&&e.user?(0,D.jsx)(x.rd,{to:"/top"}):"true"===localStorage.getItem(M.l.agreed)?(0,D.jsx)(ma,{}):(0,D.jsx)(x.rd,{to:"/select_lang"})}),(0,D.jsx)(x.qh,{exact:!0,path:"/stories/:episodeId",render:()=>e.authState===t.SignedIn&&e.user?(0,D.jsx)(ze,{}):(0,D.jsx)(ma,{})}),(0,D.jsx)(Ma,{exact:!0,path:"/grammar/:episodeId",render:()=>(0,D.jsx)(Pe,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/story/:episodeId",render:()=>(0,D.jsx)(He,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/expression/:episodeId",render:()=>(0,D.jsx)(Be,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/exercises/:episodeId",render:()=>(0,D.jsx)(Me,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/story/:episodeId/exercises",render:()=>(0,D.jsx)(Ze,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/episodeCompletion",render:()=>(0,D.jsx)(Ne,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/proficiency-test-completion",render:()=>(0,D.jsx)(Re,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/question/:episodeId",render:()=>(0,D.jsx)(Ke,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/answer/:episodeId",render:()=>(0,D.jsx)(Le,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/goal/:episodeId",render:()=>(0,D.jsx)(Ve,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/self_study",render:()=>(0,D.jsx)(We,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/wordbank_noun",render:()=>(0,D.jsx)(Ge,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/wordbank_verb",render:()=>(0,D.jsx)(Xe,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/wordbank_adjective",render:()=>(0,D.jsx)(Ye,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/word_cards/:dataID/:idx/:index",render:()=>(0,D.jsx)(fa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/grammar_notes/:index",render:()=>(0,D.jsx)(Je,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/grammar_list",render:()=>(0,D.jsx)($e,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/times",render:()=>(0,D.jsx)(ea,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/dates",render:()=>(0,D.jsx)(aa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/drills_answer",render:()=>(0,D.jsx)(ra,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/drills_goal",render:()=>(0,D.jsx)(sa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/drills_list",render:()=>(0,D.jsx)(na,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/drills_question",render:()=>(0,D.jsx)(ia,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/drills_top",render:()=>(0,D.jsx)(ta,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/online_lesson",render:()=>(0,D.jsx)(Qe,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/notices",render:()=>(0,D.jsx)(da,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/settings",render:()=>(0,D.jsx)(oa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/q_and_a",render:()=>(0,D.jsx)(ha,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/study_records",render:()=>(0,D.jsx)(_a,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_a-n",render:()=>(0,D.jsx)(ya,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_ga-po",render:()=>(0,D.jsx)(ga,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_kya-pyo",render:()=>(0,D.jsx)(wa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_a-n_contents/:id",render:()=>(0,D.jsx)(Ta,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_ga-po_contents/:id",render:()=>(0,D.jsx)(ka,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_kya-ryo_contents/:id",render:()=>(0,D.jsx)(Ea,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_gya-pyo_contents/:id",render:()=>(0,D.jsx)(Ia,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_exercises",render:()=>(0,D.jsx)(xa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_question",render:()=>(0,D.jsx)(Sa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_answer",render:()=>(0,D.jsx)(Aa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/hiragana_goal",render:()=>(0,D.jsx)(qa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_a-n",render:()=>(0,D.jsx)(Ca,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_ga-po",render:()=>(0,D.jsx)(Fa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_kya-pyo",render:()=>(0,D.jsx)(ja,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_a-n_contents/:id",render:()=>(0,D.jsx)(Da,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_ga-po_contents/:id",render:()=>(0,D.jsx)(Za,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_kya-ryo_contents/:id",render:()=>(0,D.jsx)(Na,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_gya-pyo_contents/:id",render:()=>(0,D.jsx)(Oa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_ie-dou_contents/:id",render:()=>(0,D.jsx)(Ra,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_fuyu-deyu_contents/:id",render:()=>(0,D.jsx)(za,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_exercises",render:()=>(0,D.jsx)(Ua,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_question",render:()=>(0,D.jsx)(Pa,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_answer",render:()=>(0,D.jsx)(Ha,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/katakana_goal",render:()=>(0,D.jsx)(Ba,{}),userState:e}),(0,D.jsx)(Ma,{exact:!0,path:"/proficiency-test",render:()=>(0,D.jsx)(Ue,{}),userState:e}),(0,D.jsx)(x.qh,{exact:!0,path:"/user_info",render:()=>e.authState===t.SignedIn&&e.user?(0,D.jsx)(la,{}):(0,D.jsx)(ma,{})}),(0,D.jsx)(x.qh,{exact:!0,path:"/contact",render:()=>e.authState===t.SignedIn&&e.user?(0,D.jsx)(ua,{}):(0,D.jsx)(ma,{})}),(0,D.jsx)(x.qh,{exact:!0,path:"/installation_guide",render:()=>e.authState===t.SignedIn&&e.user?(0,D.jsx)(ca,{}):(0,D.jsx)(ma,{})}),(0,D.jsx)(x.qh,{exact:!0,path:"/lesson",render:()=>e.authState===t.SignedIn&&e.user?(0,D.jsx)(ba,{}):(0,D.jsx)(ma,{})}),(0,D.jsx)(x.qh,{exact:!0,path:"/lessons",render:()=>e.authState===t.SignedIn&&e.user?(0,D.jsx)(pa,{}):(0,D.jsx)(ma,{})}),(0,D.jsx)(x.qh,{exact:!0,path:"*",render:()=>(0,D.jsx)(oe,{errorCode:ae.b.HTTP_404,error:new Error(ne.ja+" url:".concat(document.location.href)),message:ne.ja})})]})})})}),(0,D.jsx)(x.qh,{exact:!0,path:"*",render:()=>(0,D.jsx)(oe,{errorCode:ae.b.HTTP_404,error:new Error(ne.ja+" url:".concat(document.location.href)),message:ne.ja})})]})})})})}},34868:(e,a,n)=>{"use strict";n.d(a,{gf:()=>k,Pm:()=>A,Bx:()=>S,Q8:()=>x,QS:()=>I});var t=n(29709),i=n(40854),r=n.n(i);const s="http://localhost".replace(/\/+$/,"");class d{constructor(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r();this.basePath=a,this.axios=n,this.configuration=void 0,this.token=void 0,this.getAxiosOptions=async()=>{this.token=await k(),this.configuration&&(this.configuration.baseOptions={headers:{Authorization:"Bearer ".concat(this.token)}})},e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class o extends Error{constructor(e,a){super(a),this.field=e,this.name="RequiredError"}}const l="https://example.com",u=function(e,a,n){if(null===n||void 0===n)throw new o(a,"Required parameter ".concat(a," was null or undefined when calling ").concat(e,"."))},c=async function(e,a){if(a&&a.accessToken){const n="function"===typeof a.accessToken?await a.accessToken():await a.accessToken;e.Authorization="Bearer "+n}},m=function(e){const a=new URLSearchParams(e.search);for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const s={...e.options,url:((null===t||void 0===t?void 0:t.basePath)||r)+e.url};return i.request(s)}};const h=function(e){const a=function(e){return{inquiryControllerSendInquiryEmail:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("inquiryControllerSendInquiryEmail","createInquiryInput",a);const t=new URL("/api/inquiry/send",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={"Content-Type":"application/json"};m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},mobileAppControllerCreateActiveLearnerLog:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerCreateActiveLearnerLog","learnerId",a);const t="/api/appService/active/learner/{learnerId}".replace("{".concat("learnerId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"POST",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},mobileAppControllerCreateLessonLog:async function(a,n,t,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};u("mobileAppControllerCreateLessonLog","lessonId",a),u("mobileAppControllerCreateLessonLog","companyId",n),u("mobileAppControllerCreateLessonLog","userId",t),u("mobileAppControllerCreateLessonLog","lessonLogType",i);const s="/api/appService/lesson/{lessonId}/log/{companyId}/{userId}".replace("{".concat("lessonId","}"),encodeURIComponent(String(a))).replace("{".concat("companyId","}"),encodeURIComponent(String(n))).replace("{".concat("userId","}"),encodeURIComponent(String(t))),d=new URL(s,l);let o;e&&(o=e.baseOptions);const b={method:"POST",...o,...r},h={};await c(h,e),h["Content-Type"]="application/json",m(d,{},r.query);let _=o&&o.headers?o.headers:{};return b.headers={...h,..._,...r.headers},b.data=f(i,b,e),{url:p(d),options:b}},mobileAppControllerDeactivateLearnerEndpoints:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerDeactivateLearnerEndpoints","companyId",a),u("mobileAppControllerDeactivateLearnerEndpoints","learnerId",n);const i="/api/appService/{companyId}/DeactivateLearnerEndpoints/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},mobileAppControllerGetApprovedLessons:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerGetApprovedLessons","learnerId",a);const t="/api/appService/lessons/{learnerId}/approved".replace("{".concat("learnerId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},mobileAppControllerGetLearnerActiveEndpointCount:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerGetLearnerActiveEndpointCount","companyId",a),u("mobileAppControllerGetLearnerActiveEndpointCount","learnerId",n);const i="/api/appService/{companyId}/learnerActiveEndpointCount/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},mobileAppControllerGetLearnerByEmail:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerGetLearnerByEmail","companyId",a),u("mobileAppControllerGetLearnerByEmail","email",n);const i="/api/appService/{companyId}/getUserName/{email}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("email","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},mobileAppControllerGetLearnerEndpoint:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerGetLearnerEndpoint","companyId",a),u("mobileAppControllerGetLearnerEndpoint","learnerId",n);const i="/api/appService/{companyId}/learnerEndpoint/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},mobileAppControllerGetLernerById:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerGetLernerById","companyId",a),u("mobileAppControllerGetLernerById","learnerId",n);const i="/api/appService/{companyId}/learner/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},mobileAppControllerGetLoginedLearnerDetail:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/appService/learner/detail",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},mobileAppControllerGetMostRecentScheduledLesson:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/appService/most-recent-scheduled-lesson",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},mobileAppControllerGetNoticeRead:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerGetNoticeRead","noticeId",a);const t="/api/appService/noticeRead/{noticeId}".replace("{".concat("noticeId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},mobileAppControllerGetNoticeUnreadCount:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerGetNoticeUnreadCount","userName",a);const t="/api/appService/noticeUnreadCount/{userName}".replace("{".concat("userName","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},mobileAppControllerGetNotices:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerGetNotices","limit",a),u("mobileAppControllerGetNotices","page",n);const i=new URL("/api/appService/notices",l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.limit=a),void 0!==n&&(o.page=n),m(i,o,t.query);let f=r&&r.headers?r.headers:{};return s.headers={...d,...f,...t.headers},{url:p(i),options:s}},mobileAppControllerGetPastLessons:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerGetPastLessons","limit",a),u("mobileAppControllerGetPastLessons","page",n);const i=new URL("/api/appService/lessons/past",l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.limit=a),void 0!==n&&(o.page=n),m(i,o,t.query);let f=r&&r.headers?r.headers:{};return s.headers={...d,...f,...t.headers},{url:p(i),options:s}},mobileAppControllerGetPushMsg:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerGetPushMsg","companyId",a);const t="/api/appService/{companyId}/pushmsg".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},mobileAppControllerGetPushMsgLog:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerGetPushMsgLog","companyId",a),u("mobileAppControllerGetPushMsgLog","pushMsgQId",n);const i="/api/appService/{companyId}/pushmsglog/{pushMsgQId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("pushMsgQId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},mobileAppControllerGetPushVapidPublicKey:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerGetPushVapidPublicKey","companyId",a);const t="/api/appService/{companyId}/pushVapidPublicKey".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},mobileAppControllerGetStudyRecords:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerGetStudyRecords","userName",a);const t="/api/appService/studyRecords/{userName}".replace("{".concat("userName","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},mobileAppControllerPostStudyRecordDrill:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerPostStudyRecordDrill","drillParam",a);const t=new URL("/api/appService/studyRecordDrill",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},mobileAppControllerPostStudyRecordStory:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerPostStudyRecordStory","studyResult",a);const t=new URL("/api/appService/studyRecordStory",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},mobileAppControllerPutDrillRecord:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerPutDrillRecord","updateDrillResult",a);const t=new URL("/api/appService/studyRecordDrill",l);let i;e&&(i=e.baseOptions);const r={method:"PATCH",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},mobileAppControllerPutNoticeRead:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("mobileAppControllerPutNoticeRead","companyId",a),u("mobileAppControllerPutNoticeRead","noticeId",n),u("mobileAppControllerPutNoticeRead","userName",t);const r="/api/appService/{companyId}/noticeRead/{noticeId}/{userName}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("noticeId","}"),encodeURIComponent(String(n))).replace("{".concat("userName","}"),encodeURIComponent(String(t))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},f={};await c(f,e),m(s,{},i.query);let b=d&&d.headers?d.headers:{};return o.headers={...f,...b,...i.headers},{url:p(s),options:o}},mobileAppControllerPutStudyRecord:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerPutStudyRecord","updateStudyResult",a);const t=new URL("/api/appService/studyRecordStory",l);let i;e&&(i=e.baseOptions);const r={method:"PATCH",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},mobileAppControllerRecordStudySession:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerRecordStudySession","recordStudySessionInput",a);const t=new URL("/api/appService/study-session/record",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},mobileAppControllerStartStudySession:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("mobileAppControllerStartStudySession","startStudySessionInput",a);const t=new URL("/api/appService/study-session/start",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},mobileAppControllerUpdateLearnerConnectionId:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("mobileAppControllerUpdateLearnerConnectionId","companyId",a),u("mobileAppControllerUpdateLearnerConnectionId","learnerId",n),u("mobileAppControllerUpdateLearnerConnectionId","connectionId",t);const r="/api/appService/{companyId}/{learnerId}/connectionId".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},b={};await c(b,e),b["Content-Type"]="application/json",m(s,{},i.query);let h=d&&d.headers?d.headers:{};return o.headers={...b,...h,...i.headers},o.data=f(t,o,e),{url:p(s),options:o}},mobileAppControllerUpdateLearnerEmail:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("mobileAppControllerUpdateLearnerEmail","companyId",a),u("mobileAppControllerUpdateLearnerEmail","learnerId",n),u("mobileAppControllerUpdateLearnerEmail","email",t);const r="/api/appService/{companyId}/{learnerId}/changeEmail/{email}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))).replace("{".concat("email","}"),encodeURIComponent(String(t))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},f={};await c(f,e),m(s,{},i.query);let b=d&&d.headers?d.headers:{};return o.headers={...f,...b,...i.headers},{url:p(s),options:o}},mobileAppControllerUpdateLearnerEmailSendFlg:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("mobileAppControllerUpdateLearnerEmailSendFlg","companyId",a),u("mobileAppControllerUpdateLearnerEmailSendFlg","learnerId",n),u("mobileAppControllerUpdateLearnerEmailSendFlg","emailSendFlg",t);const r="/api/appService/{companyId}/{learnerId}/changeEmailSendFlg/{emailSendFlg}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))).replace("{".concat("emailSendFlg","}"),encodeURIComponent(String(t))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},f={};await c(f,e),m(s,{},i.query);let b=d&&d.headers?d.headers:{};return o.headers={...f,...b,...i.headers},{url:p(s),options:o}},mobileAppControllerUpsertLearnerEndpoint:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("mobileAppControllerUpsertLearnerEndpoint","companyId",a),u("mobileAppControllerUpsertLearnerEndpoint","learnerId",n),u("mobileAppControllerUpsertLearnerEndpoint","learnerEndpoint",t);const r="/api/appService/{companyId}/LearnerEndpoint/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},b={};await c(b,e),b["Content-Type"]="application/json",m(s,{},i.query);let h=d&&d.headers?d.headers:{};return o.headers={...b,...h,...i.headers},o.data=f(t,o,e),{url:p(s),options:o}},mobileAppControllerUpsertPushMsg:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerUpsertPushMsg","companyId",a),u("mobileAppControllerUpsertPushMsg","pushMsg",n);const i="/api/appService/{companyId}/pushmsg".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},mobileAppControllerUpsertPushMsgLog:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("mobileAppControllerUpsertPushMsgLog","companyId",a),u("mobileAppControllerUpsertPushMsgLog","pushMsgLog",n);const i="/api/appService/{companyId}/pushmsglog".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},mobileAppControllerVerifyCognitoUserEmail:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/appService/verifyEmail",l);let t;e&&(t=e.baseOptions);const i={method:"POST",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},mobileAppControllerVerifyLearnerEmail:async function(a,n,t,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};u("mobileAppControllerVerifyLearnerEmail","companyId",a),u("mobileAppControllerVerifyLearnerEmail","learnerId",n),u("mobileAppControllerVerifyLearnerEmail","email",t),u("mobileAppControllerVerifyLearnerEmail","verifyInfo",i);const s="/api/appService/{companyId}/{learnerId}/verifyEmail/{email}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))).replace("{".concat("email","}"),encodeURIComponent(String(t))),d=new URL(s,l);let o;e&&(o=e.baseOptions);const b={method:"PUT",...o,...r},h={};await c(h,e),h["Content-Type"]="application/json",m(d,{},r.query);let _=o&&o.headers?o.headers:{};return b.headers={...h,..._,...r.headers},b.data=f(i,b,e),{url:p(d),options:b}},organizationsControllerApprovalLessonTeacher:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerApprovalLessonTeacher","companyId",a),u("organizationsControllerApprovalLessonTeacher","lessonId",n);const i="/api/organizations/update/{companyId}/agreementLesson/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerCancelLesson:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerCancelLesson","companyId",a),u("organizationsControllerCancelLesson","lessonId",n),u("organizationsControllerCancelLesson","cancelLessonInput",t);const r="/api/organizations/delete/{companyId}/lesson/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"DELETE",...d,...i},b={};await c(b,e),b["Content-Type"]="application/json",m(s,{},i.query);let h=d&&d.headers?d.headers:{};return o.headers={...b,...h,...i.headers},o.data=f(t,o,e),{url:p(s),options:o}},organizationsControllerChangeLessonTeacher:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerChangeLessonTeacher","companyId",a),u("organizationsControllerChangeLessonTeacher","lessonId",n),u("organizationsControllerChangeLessonTeacher","teacherId",t);const r="/api/organizations/update/{companyId}/changeLessonTeacher/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},f={},b={};await c(f,e),void 0!==t&&(b.teacherId=t),m(s,b,i.query);let h=d&&d.headers?d.headers:{};return o.headers={...f,...h,...i.headers},{url:p(s),options:o}},organizationsControllerCreateAgreement:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerCreateAgreement","companyId",a),u("organizationsControllerCreateAgreement","createAgreementInput",n);const i="/api/organizations/create/{companyId}/paymentList".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"POST",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},organizationsControllerCreateCompany:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerCreateCompany","companyId",a),u("organizationsControllerCreateCompany","createCompanyInput",n);const i=new URL("/api/organizations/create/company",l);let r;e&&(r=e.baseOptions);const s={method:"POST",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.companyId=a),d["Content-Type"]="application/json",m(i,o,t.query);let b=r&&r.headers?r.headers:{};return s.headers={...d,...b,...t.headers},s.data=f(n,s,e),{url:p(i),options:s}},organizationsControllerCreateCompanyUser:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerCreateCompanyUser","companyId",a),u("organizationsControllerCreateCompanyUser","createCompanyUserInput",n);const i=new URL("/api/organizations/create/companyUser",l);let r;e&&(r=e.baseOptions);const s={method:"POST",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.companyId=a),d["Content-Type"]="application/json",m(i,o,t.query);let b=r&&r.headers?r.headers:{};return s.headers={...d,...b,...t.headers},s.data=f(n,s,e),{url:p(i),options:s}},organizationsControllerCreateErrorLog:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerCreateErrorLog","createErrorLog",a);const t=new URL("/api/organizations/create/log/error",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},organizationsControllerCreateLearnerUser:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerCreateLearnerUser","companyId",a),u("organizationsControllerCreateLearnerUser","paymentId",n),u("organizationsControllerCreateLearnerUser","createLearnerInput",t);const r=new URL("/api/organizations/create/learner",l);let s;e&&(s=e.baseOptions);const d={method:"POST",...s,...i},o={},b={};await c(o,e),void 0!==a&&(b.companyId=a),void 0!==n&&(b.paymentId=n),o["Content-Type"]="application/json",m(r,b,i.query);let h=s&&s.headers?s.headers:{};return d.headers={...o,...h,...i.headers},d.data=f(t,d,e),{url:p(r),options:d}},organizationsControllerCreateLesson:async function(a,n,t,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};u("organizationsControllerCreateLesson","companyId",a),u("organizationsControllerCreateLesson","teacherId",n),u("organizationsControllerCreateLesson","startDatetime",t),u("organizationsControllerCreateLesson","endDatetime",i),u("organizationsControllerCreateLesson","createLessonInput",r);const d="/api/organizations/create/{companyId}/lesson".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),o=new URL(d,l);let b;e&&(b=e.baseOptions);const h={method:"POST",...b,...s},_={},v={};await c(_,e),void 0!==n&&(v.teacherId=n),void 0!==t&&(v.start_datetime=t instanceof Date?t.toISOString():t),void 0!==i&&(v.end_datetime=i instanceof Date?i.toISOString():i),_["Content-Type"]="application/json",m(o,v,s.query);let y=b&&b.headers?b.headers:{};return h.headers={..._,...y,...s.headers},h.data=f(r,h,e),{url:p(o),options:h}},organizationsControllerCreateLessonFee:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerCreateLessonFee","teacherId",a),u("organizationsControllerCreateLessonFee","createLessonFeeInput",n);const i=new URL("/api/organizations/create/lessonFeeOption",l);let r;e&&(r=e.baseOptions);const s={method:"POST",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.teacherId=a),d["Content-Type"]="application/json",m(i,o,t.query);let b=r&&r.headers?r.headers:{};return s.headers={...d,...b,...t.headers},s.data=f(n,s,e),{url:p(i),options:s}},organizationsControllerCreateLessonFeeHistory:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerCreateLessonFeeHistory","teacherId",a),u("organizationsControllerCreateLessonFeeHistory","createLessonFeeHistoryInput",n);const i=new URL("/api/organizations/create/lessonFeeHistory",l);let r;e&&(r=e.baseOptions);const s={method:"POST",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.teacherId=a),d["Content-Type"]="application/json",m(i,o,t.query);let b=r&&r.headers?r.headers:{};return s.headers={...d,...b,...t.headers},s.data=f(n,s,e),{url:p(i),options:s}},organizationsControllerCreateMaintenance:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerCreateMaintenance","createMaintenanceInput",a);const t=new URL("/api/organizations/maintenance",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},organizationsControllerCreateManagerUser:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerCreateManagerUser","dummy",a),u("organizationsControllerCreateManagerUser","createManagerInput",n);const i=new URL("/api/organizations/create/managerUser",l);let r;e&&(r=e.baseOptions);const s={method:"POST",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.dummy=a),d["Content-Type"]="application/json",m(i,o,t.query);let b=r&&r.headers?r.headers:{};return s.headers={...d,...b,...t.headers},s.data=f(n,s,e),{url:p(i),options:s}},organizationsControllerCreateNotice:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerCreateNotice","dummy",a),u("organizationsControllerCreateNotice","createNoticeInput",n);const i=new URL("/api/organizations/create/create/notice",l);let r;e&&(r=e.baseOptions);const s={method:"POST",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.dummy=a),d["Content-Type"]="application/json",m(i,o,t.query);let b=r&&r.headers?r.headers:{};return s.headers={...d,...b,...t.headers},s.data=f(n,s,e),{url:p(i),options:s}},organizationsControllerCreateNoticeCompany:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerCreateNoticeCompany","createNoticeCompanyInput",a);const t=new URL("/api/organizations/notice/company",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},organizationsControllerCreateTeacherUser:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerCreateTeacherUser","teacherId",a),u("organizationsControllerCreateTeacherUser","createTeacherInput",n);const i=new URL("/api/organizations/create/teacher",l);let r;e&&(r=e.baseOptions);const s={method:"POST",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.teacherId=a),d["Content-Type"]="application/json",m(i,o,t.query);let b=r&&r.headers?r.headers:{};return s.headers={...d,...b,...t.headers},s.data=f(n,s,e),{url:p(i),options:s}},organizationsControllerDeleteAgreement:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerDeleteAgreement","companyId",a),u("organizationsControllerDeleteAgreement","paymentId",n);const i="/api/organizations/delete/{companyId}/paymentList".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"DELETE",...s,...t},o={},f={};await c(o,e),void 0!==n&&(f.paymentId=n),m(r,f,t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},{url:p(r),options:d}},organizationsControllerDeleteCompany:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerDeleteCompany","companyId",a);const t="/api/organizations/delete/company/{companyId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"DELETE",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerDeleteCompanyUser:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerDeleteCompanyUser","companyId",a),u("organizationsControllerDeleteCompanyUser","userId",n);const i="/api/organizations/delete/{companyId}/company/{userId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("userId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"DELETE",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerDeleteLearnerUser:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerDeleteLearnerUser","companyId",a),u("organizationsControllerDeleteLearnerUser","learnerId",n);const i="/api/organizations/delete/{companyId}/learnerUser/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"DELETE",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerDeleteLessonFeeOption:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerDeleteLessonFeeOption","id",a);const t="/api/organizations/delete/lessonFeeOption/{id}".replace("{".concat("id","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"DELETE",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerDeleteLessonLearner:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerDeleteLessonLearner","companyId",a),u("organizationsControllerDeleteLessonLearner","lessonId",n),u("organizationsControllerDeleteLessonLearner","deleteLessonLearnerInput",t);const r="/api/organizations/cancel-lesson/{companyId}/lesson/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"DELETE",...d,...i},b={};await c(b,e),b["Content-Type"]="application/json",m(s,{},i.query);let h=d&&d.headers?d.headers:{};return o.headers={...b,...h,...i.headers},o.data=f(t,o,e),{url:p(s),options:o}},organizationsControllerDeleteMaintenance:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerDeleteMaintenance","maintenanceId",a),u("organizationsControllerDeleteMaintenance","maintenanceStatus",n);const i="/api/organizations/maintenance/{maintenance_id}".replace("{".concat("maintenance_id","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"DELETE",...s,...t},o={},f={};await c(o,e),void 0!==n&&(f.maintenance_status=n),m(r,f,t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},{url:p(r),options:d}},organizationsControllerDeleteManagerUser:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerDeleteManagerUser","managerId",a);const t="/api/organizations/delete/manager/{managerId}".replace("{".concat("managerId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"DELETE",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerDeleteMonthlyAgreement:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerDeleteMonthlyAgreement","companyId",a),u("organizationsControllerDeleteMonthlyAgreement","deleteAgreementInput",n);const i="/api/organizations/deleteMonthlyAgreement/{companyId}/paymentList".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"DELETE",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},organizationsControllerDeleteNotice:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerDeleteNotice","id",a);const t="/api/organizations/delete/noticeList/{id}".replace("{".concat("id","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"DELETE",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerDeleteTeacherUser:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerDeleteTeacherUser","teacherId",a);const t="/api/organizations/delete/teacher/{teacherId}".replace("{".concat("teacherId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"DELETE",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerExistsLearner:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerExistsLearner","existsLearnerInput",a);const t=new URL("/api/organizations/learners/exists",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},organizationsControllerExistsLearnerInPlan:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerExistsLearnerInPlan","existsLearnerInPlanInput",a);const t=new URL("/api/organizations/plan/learners/exists",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},organizationsControllerGetAvailableCompanies:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/organizations/available-companies",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},organizationsControllerGetCompany:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerGetCompany","companyId",a);const t="/api/organizations/company/{companyId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerGetCompanyList:async function(a,n,t,i,r,s,d){let o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};u("organizationsControllerGetCompanyList","companyId",a),u("organizationsControllerGetCompanyList","searchStatus",n),u("organizationsControllerGetCompanyList","searchField",t),u("organizationsControllerGetCompanyList","searchStr",i),u("organizationsControllerGetCompanyList","limit",r),u("organizationsControllerGetCompanyList","page",s),u("organizationsControllerGetCompanyList","sortStr",d);const f=new URL("/api/organizations/get/companyList",l);let b;e&&(b=e.baseOptions);const h={method:"GET",...b,...o},_={},v={};await c(_,e),void 0!==a&&(v.companyId=a),void 0!==n&&(v.searchStatus=n),void 0!==t&&(v.searchField=t),void 0!==i&&(v.searchStr=i),void 0!==r&&(v.limit=r),void 0!==s&&(v.page=s),void 0!==d&&(v.sortStr=d),m(f,v,o.query);let y=b&&b.headers?b.headers:{};return h.headers={..._,...y,...o.headers},{url:p(f),options:h}},organizationsControllerGetCompanyPlans:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerGetCompanyPlans","companyId",a);const t="/api/organizations/companies/{companyId}/plans".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerGetCompanyUserList:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerGetCompanyUserList","companyId",a),u("organizationsControllerGetCompanyUserList","limit",n),u("organizationsControllerGetCompanyUserList","page",t);const r="/api/organizations/get/companyUser/{companyId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"GET",...d,...i},f={},b={};await c(f,e),void 0!==n&&(b.limit=n),void 0!==t&&(b.page=t),m(s,b,i.query);let h=d&&d.headers?d.headers:{};return o.headers={...f,...h,...i.headers},{url:p(s),options:o}},organizationsControllerGetConnectionIdByRoomId:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetConnectionIdByRoomId","companyId",a),u("organizationsControllerGetConnectionIdByRoomId","roomId",n);const i="/api/organizations/{companyId}/{roomId}/connectionId".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("roomId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerGetEachLearnerStudyRecordsPdf:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetEachLearnerStudyRecordsPdf","companyId",a),u("organizationsControllerGetEachLearnerStudyRecordsPdf","paymentId",n);const i="/api/organizations/learnerStudyRecordsPDF/{companyId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={},f={};await c(o,e),void 0!==n&&(f.paymentId=n),m(r,f,t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},{url:p(r),options:d}},organizationsControllerGetFutureLessonList:async function(a,n,t,i,r,s,d,o,f,b,h){let _=arguments.length>11&&void 0!==arguments[11]?arguments[11]:{};u("organizationsControllerGetFutureLessonList","companyId",a),u("organizationsControllerGetFutureLessonList","paymentId",n),u("organizationsControllerGetFutureLessonList","teacherId",t),u("organizationsControllerGetFutureLessonList","learnerId",i),u("organizationsControllerGetFutureLessonList","lessonId",r),u("organizationsControllerGetFutureLessonList","approvalFlg",s),u("organizationsControllerGetFutureLessonList","startPeriod",d),u("organizationsControllerGetFutureLessonList","endPeriod",o),u("organizationsControllerGetFutureLessonList","futureOnly",f),u("organizationsControllerGetFutureLessonList","limit",b),u("organizationsControllerGetFutureLessonList","page",h);const v=new URL("/api/organizations/get/futureLessonList",l);let y;e&&(y=e.baseOptions);const g={method:"GET",...y,..._},w={},T={};await c(w,e),void 0!==a&&(T.companyId=a),void 0!==n&&(T.paymentId=n),void 0!==t&&(T.teacherId=t),void 0!==i&&(T.learnerId=i),void 0!==r&&(T.lessonId=r),void 0!==s&&(T.approvalFlg=s),void 0!==d&&(T.startPeriod=d),void 0!==o&&(T.endPeriod=o),void 0!==f&&(T.futureOnly=f),void 0!==b&&(T.limit=b),void 0!==h&&(T.page=h),m(v,T,_.query);let k=y&&y.headers?y.headers:{};return g.headers={...w,...k,..._.headers},{url:p(v),options:g}},organizationsControllerGetFutureLessonListBgd:async function(a,n,t,i,r,s,d,o,f,b,h,_){let v=arguments.length>12&&void 0!==arguments[12]?arguments[12]:{};u("organizationsControllerGetFutureLessonListBgd","companyId",a),u("organizationsControllerGetFutureLessonListBgd","teacherId",n),u("organizationsControllerGetFutureLessonListBgd","learner",t),u("organizationsControllerGetFutureLessonListBgd","learnerId",i),u("organizationsControllerGetFutureLessonListBgd","company",r),u("organizationsControllerGetFutureLessonListBgd","searchStatus",s),u("organizationsControllerGetFutureLessonListBgd","lessonId",d),u("organizationsControllerGetFutureLessonListBgd","approvalFlg",o),u("organizationsControllerGetFutureLessonListBgd","startPeriod",f),u("organizationsControllerGetFutureLessonListBgd","endPeriod",b),u("organizationsControllerGetFutureLessonListBgd","limit",h),u("organizationsControllerGetFutureLessonListBgd","page",_);const y=new URL("/api/organizations/get/futureLessonList_bgd",l);let g;e&&(g=e.baseOptions);const w={method:"GET",...g,...v},T={},k={};await c(T,e),void 0!==a&&(k.companyId=a),void 0!==n&&(k.teacherId=n),void 0!==t&&(k.learner=t),void 0!==i&&(k.learnerId=i),void 0!==r&&(k.company=r),void 0!==s&&(k.searchStatus=s),void 0!==d&&(k.lessonId=d),void 0!==o&&(k.approvalFlg=o),void 0!==f&&(k.startPeriod=f),void 0!==b&&(k.endPeriod=b),void 0!==h&&(k.limit=h),void 0!==_&&(k.page=_),m(y,k,v.query);let E=g&&g.headers?g.headers:{};return w.headers={...T,...E,...v.headers},{url:p(y),options:w}},organizationsControllerGetLatestPastLessonNote:async function(a,n,t,i,r,s){let d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};u("organizationsControllerGetLatestPastLessonNote","companyId",a),u("organizationsControllerGetLatestPastLessonNote","learnerId",n),u("organizationsControllerGetLatestPastLessonNote","startPeriod",t),u("organizationsControllerGetLatestPastLessonNote","endPeriod",i),u("organizationsControllerGetLatestPastLessonNote","searchField",r),u("organizationsControllerGetLatestPastLessonNote","searchStr",s);const o="/api/organizations/get/{companyId}/lessonNote/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),f=new URL(o,l);let b;e&&(b=e.baseOptions);const h={method:"GET",...b,...d},_={},v={};await c(_,e),void 0!==t&&(v.startPeriod=t),void 0!==i&&(v.endPeriod=i),void 0!==r&&(v.search_field=r),void 0!==s&&(v.search_str=s),m(f,v,d.query);let y=b&&b.headers?b.headers:{};return h.headers={..._,...y,...d.headers},{url:p(f),options:h}},organizationsControllerGetLeanerUserListByLesson:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetLeanerUserListByLesson","companyId",a),u("organizationsControllerGetLeanerUserListByLesson","lessonId",n);const i=new URL("/api/organizations/learnerListByLesson",l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.companyId=a),void 0!==n&&(o.lessonId=n),m(i,o,t.query);let f=r&&r.headers?r.headers:{};return s.headers={...d,...f,...t.headers},{url:p(i),options:s}},organizationsControllerGetLearnerStudyRecords:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetLearnerStudyRecords","companyId",a),u("organizationsControllerGetLearnerStudyRecords","learnerId",n);const i="/api/organizations/get/{companyId}/{learnerId}/StudyRecords".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerGetLearnerUserList:async function(a,n,t,i,r,s,d){let o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};u("organizationsControllerGetLearnerUserList","companyId",a),u("organizationsControllerGetLearnerUserList","learnerId",n),u("organizationsControllerGetLearnerUserList","searchStatus",t),u("organizationsControllerGetLearnerUserList","searchField",i),u("organizationsControllerGetLearnerUserList","searchStr",r),u("organizationsControllerGetLearnerUserList","limit",s),u("organizationsControllerGetLearnerUserList","page",d);const f=new URL("/api/organizations/get/learnerList",l);let b;e&&(b=e.baseOptions);const h={method:"GET",...b,...o},_={},v={};await c(_,e),void 0!==a&&(v.companyId=a),void 0!==n&&(v.learnerId=n),void 0!==t&&(v.search_status=t),void 0!==i&&(v.search_field=i),void 0!==r&&(v.search_str=r),void 0!==s&&(v.limit=s),void 0!==d&&(v.page=d),m(f,v,o.query);let y=b&&b.headers?b.headers:{};return h.headers={..._,...y,...o.headers},{url:p(f),options:h}},organizationsControllerGetLesson:async function(a,n,t,i,r,s,d){let o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};u("organizationsControllerGetLesson","companyId",a),u("organizationsControllerGetLesson","teacherId",n),u("organizationsControllerGetLesson","lessonId",t),u("organizationsControllerGetLesson","searchField",i),u("organizationsControllerGetLesson","searchStr",r),u("organizationsControllerGetLesson","startPeriod",s),u("organizationsControllerGetLesson","endPeriod",d);const f="/api/organizations/get/{companyId}/lesson/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(t))),b=new URL(f,l);let h;e&&(h=e.baseOptions);const _={method:"GET",...h,...o},v={},y={};await c(v,e),void 0!==n&&(y.teacherId=n),void 0!==i&&(y.search_field=i),void 0!==r&&(y.search_str=r),void 0!==s&&(y.startPeriod=s),void 0!==d&&(y.endPeriod=d),m(b,y,o.query);let g=h&&h.headers?h.headers:{};return _.headers={...v,...g,...o.headers},{url:p(b),options:_}},organizationsControllerGetLessonByCompanyNLessonID:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetLessonByCompanyNLessonID","companyId",a),u("organizationsControllerGetLessonByCompanyNLessonID","lessonId",n);const i="/api/organizations/{companyId}/lessons/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerGetLessonByRoomId:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetLessonByRoomId","companyId",a),u("organizationsControllerGetLessonByRoomId","roomId",n);const i="/api/organizations/{companyId}/roomId/{roomId}/lesson".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("roomId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerGetLessonFeedback:async function(a,n,t,i,r,s,d){let o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};u("organizationsControllerGetLessonFeedback","companyId",a),u("organizationsControllerGetLessonFeedback","lessonId",n),u("organizationsControllerGetLessonFeedback","learnerId",t),u("organizationsControllerGetLessonFeedback","startPeriod",i),u("organizationsControllerGetLessonFeedback","endPeriod",r),u("organizationsControllerGetLessonFeedback","searchField",s),u("organizationsControllerGetLessonFeedback","searchStr",d);const f="/api/organizations/{companyId}/lessonFeedback/{lessonId}/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))).replace("{".concat("learnerId","}"),encodeURIComponent(String(t))),b=new URL(f,l);let h;e&&(h=e.baseOptions);const _={method:"GET",...h,...o},v={},y={};await c(v,e),void 0!==i&&(y.startPeriod=i),void 0!==r&&(y.endPeriod=r),void 0!==s&&(y.search_field=s),void 0!==d&&(y.search_str=d),m(b,y,o.query);let g=h&&h.headers?h.headers:{};return _.headers={...v,...g,...o.headers},{url:p(b),options:_}},organizationsControllerGetLessonFeedbackList:async function(a,n,t,i,r,s,d,o,f,b){let h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:{};u("organizationsControllerGetLessonFeedbackList","companyId",a),u("organizationsControllerGetLessonFeedbackList","paymentId",n),u("organizationsControllerGetLessonFeedbackList","learnerId",t),u("organizationsControllerGetLessonFeedbackList","lessonId",i),u("organizationsControllerGetLessonFeedbackList","teacherId",r),u("organizationsControllerGetLessonFeedbackList","startPeriod",s),u("organizationsControllerGetLessonFeedbackList","endPeriod",d),u("organizationsControllerGetLessonFeedbackList","noneLessonFeedback",o),u("organizationsControllerGetLessonFeedbackList","limit",f),u("organizationsControllerGetLessonFeedbackList","page",b);const _=new URL("/api/organizations/get/lessonFeedback",l);let v;e&&(v=e.baseOptions);const y={method:"GET",...v,...h},g={},w={};await c(g,e),void 0!==a&&(w.companyId=a),void 0!==n&&(w.paymentId=n),void 0!==t&&(w.learnerId=t),void 0!==i&&(w.lessonId=i),void 0!==r&&(w.teacherId=r),void 0!==s&&(w.startPeriod=s),void 0!==d&&(w.endPeriod=d),void 0!==o&&(w.none_lesson_feedback=o),void 0!==f&&(w.limit=f),void 0!==b&&(w.page=b),m(_,w,h.query);let T=v&&v.headers?v.headers:{};return y.headers={...g,...T,...h.headers},{url:p(_),options:y}},organizationsControllerGetLessonFeedbackListBgd:async function(a,n,t,i,r,s,d,o,f,b){let h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:{};u("organizationsControllerGetLessonFeedbackListBgd","companyId",a),u("organizationsControllerGetLessonFeedbackListBgd","paymentId",n),u("organizationsControllerGetLessonFeedbackListBgd","learnerId",t),u("organizationsControllerGetLessonFeedbackListBgd","teacherId",i),u("organizationsControllerGetLessonFeedbackListBgd","companyName",r),u("organizationsControllerGetLessonFeedbackListBgd","learnerName",s),u("organizationsControllerGetLessonFeedbackListBgd","startPeriod",d),u("organizationsControllerGetLessonFeedbackListBgd","endPeriod",o),u("organizationsControllerGetLessonFeedbackListBgd","limit",f),u("organizationsControllerGetLessonFeedbackListBgd","page",b);const _=new URL("/api/organizations/get/lessonFeedback_bgd",l);let v;e&&(v=e.baseOptions);const y={method:"GET",...v,...h},g={},w={};await c(g,e),void 0!==a&&(w.companyId=a),void 0!==n&&(w.paymentId=n),void 0!==t&&(w.learnerId=t),void 0!==i&&(w.teacherId=i),void 0!==r&&(w.companyName=r),void 0!==s&&(w.learnerName=s),void 0!==d&&(w.startPeriod=d),void 0!==o&&(w.endPeriod=o),void 0!==f&&(w.limit=f),void 0!==b&&(w.page=b),m(_,w,h.query);let T=v&&v.headers?v.headers:{};return y.headers={...g,...T,...h.headers},{url:p(_),options:y}},organizationsControllerGetLessonFees:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/organizations/lessonFees",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},organizationsControllerGetLessonListBgd:async function(a,n,t,i,r,s,d,o,f,b,h,_){let v=arguments.length>12&&void 0!==arguments[12]?arguments[12]:{};u("organizationsControllerGetLessonListBgd","companyId",a),u("organizationsControllerGetLessonListBgd","teacherId",n),u("organizationsControllerGetLessonListBgd","learner",t),u("organizationsControllerGetLessonListBgd","learnerId",i),u("organizationsControllerGetLessonListBgd","company",r),u("organizationsControllerGetLessonListBgd","searchStatus",s),u("organizationsControllerGetLessonListBgd","lessonId",d),u("organizationsControllerGetLessonListBgd","approvalFlg",o),u("organizationsControllerGetLessonListBgd","startPeriod",f),u("organizationsControllerGetLessonListBgd","endPeriod",b),u("organizationsControllerGetLessonListBgd","limit",h),u("organizationsControllerGetLessonListBgd","page",_);const y=new URL("/api/organizations/get/lessonList_bgd",l);let g;e&&(g=e.baseOptions);const w={method:"GET",...g,...v},T={},k={};await c(T,e),void 0!==a&&(k.companyId=a),void 0!==n&&(k.teacherId=n),void 0!==t&&(k.learner=t),void 0!==i&&(k.learnerId=i),void 0!==r&&(k.company=r),void 0!==s&&(k.searchStatus=s),void 0!==d&&(k.lessonId=d),void 0!==o&&(k.approvalFlg=o),void 0!==f&&(k.startPeriod=f),void 0!==b&&(k.endPeriod=b),void 0!==h&&(k.limit=h),void 0!==_&&(k.page=_),m(y,k,v.query);let E=g&&g.headers?g.headers:{};return w.headers={...T,...E,...v.headers},{url:p(y),options:w}},organizationsControllerGetLessonNote:async function(a,n,t,i,r,s){let d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};u("organizationsControllerGetLessonNote","companyId",a),u("organizationsControllerGetLessonNote","lessonId",n),u("organizationsControllerGetLessonNote","startPeriod",t),u("organizationsControllerGetLessonNote","endPeriod",i),u("organizationsControllerGetLessonNote","searchField",r),u("organizationsControllerGetLessonNote","searchStr",s);const o="/api/organizations/{companyId}/lessonNote/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),f=new URL(o,l);let b;e&&(b=e.baseOptions);const h={method:"GET",...b,...d},_={},v={};await c(_,e),void 0!==t&&(v.startPeriod=t),void 0!==i&&(v.endPeriod=i),void 0!==r&&(v.search_field=r),void 0!==s&&(v.search_str=s),m(f,v,d.query);let y=b&&b.headers?b.headers:{};return h.headers={..._,...y,...d.headers},{url:p(f),options:h}},organizationsControllerGetLessonNoteList:async function(a,n,t,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};u("organizationsControllerGetLessonNoteList","companyId",a),u("organizationsControllerGetLessonNoteList","startPeriod",n),u("organizationsControllerGetLessonNoteList","endPeriod",t),u("organizationsControllerGetLessonNoteList","searchField",i),u("organizationsControllerGetLessonNoteList","searchStr",r);const d="/api/organizations/get/{companyId}/lessonNoteList".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),o=new URL(d,l);let f;e&&(f=e.baseOptions);const b={method:"GET",...f,...s},h={},_={};await c(h,e),void 0!==n&&(_.startPeriod=n),void 0!==t&&(_.endPeriod=t),void 0!==i&&(_.search_field=i),void 0!==r&&(_.search_str=r),m(o,_,s.query);let v=f&&f.headers?f.headers:{};return b.headers={...h,...v,...s.headers},{url:p(o),options:b}},organizationsControllerGetLoginUserInfo:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/organizations/login-user-info",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},organizationsControllerGetMaintenance:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerGetMaintenance","page",a);const t=new URL("/api/organizations/maintenance",l);let i;e&&(i=e.baseOptions);const r={method:"GET",...i,...n},s={},d={};await c(s,e),void 0!==a&&(d.page=a),m(t,d,n.query);let o=i&&i.headers?i.headers:{};return r.headers={...s,...o,...n.headers},{url:p(t),options:r}},organizationsControllerGetManagerUserList:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetManagerUserList","limit",a),u("organizationsControllerGetManagerUserList","page",n);const i=new URL("/api/organizations/managerUserList",l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.limit=a),void 0!==n&&(o.page=n),m(i,o,t.query);let f=r&&r.headers?r.headers:{};return s.headers={...d,...f,...t.headers},{url:p(i),options:s}},organizationsControllerGetNotice:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerGetNotice","noticeId",a);const t="/api/organizations/notice/{noticeId}".replace("{".concat("noticeId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerGetNoticeCompany:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetNoticeCompany","noticeId",a),u("organizationsControllerGetNoticeCompany","companyId",n);const i="/api/organizations/notices/{noticeId}/company/{companyId}".replace("{".concat("noticeId","}"),encodeURIComponent(String(a))).replace("{".concat("companyId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerGetNoticeCompanyForManager:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerGetNoticeCompanyForManager","noticeId",a);const t="/api/organizations/notices/{noticeId}".replace("{".concat("noticeId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerGetNoticeList:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerGetNoticeList","targetNumber",a),u("organizationsControllerGetNoticeList","limit",n),u("organizationsControllerGetNoticeList","page",t);const r=new URL("/api/organizations/get/noticeList",l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...i},o={},f={};await c(o,e),void 0!==a&&(f.targetNumber=a),void 0!==n&&(f.limit=n),void 0!==t&&(f.page=t),m(r,f,i.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...i.headers},{url:p(r),options:d}},organizationsControllerGetOperationalStatus:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/organizations/operational_status",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},organizationsControllerGetPastLessonList:async function(a,n,t,i,r,s,d,o,f){let b=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{};u("organizationsControllerGetPastLessonList","companyId",a),u("organizationsControllerGetPastLessonList","paymentId",n),u("organizationsControllerGetPastLessonList","teacherId",t),u("organizationsControllerGetPastLessonList","learnerId",i),u("organizationsControllerGetPastLessonList","startPeriod",r),u("organizationsControllerGetPastLessonList","endPeriod",s),u("organizationsControllerGetPastLessonList","noneLessonNote",d),u("organizationsControllerGetPastLessonList","limit",o),u("organizationsControllerGetPastLessonList","page",f);const h=new URL("/api/organizations/get/pastLessonList",l);let _;e&&(_=e.baseOptions);const v={method:"GET",..._,...b},y={},g={};await c(y,e),void 0!==a&&(g.companyId=a),void 0!==n&&(g.paymentId=n),void 0!==t&&(g.teacherId=t),void 0!==i&&(g.learnerId=i),void 0!==r&&(g.startPeriod=r),void 0!==s&&(g.endPeriod=s),void 0!==d&&(g.none_lesson_note=d),void 0!==o&&(g.limit=o),void 0!==f&&(g.page=f),m(h,g,b.query);let w=_&&_.headers?_.headers:{};return v.headers={...y,...w,...b.headers},{url:p(h),options:v}},organizationsControllerGetPastLessonListBgd:async function(a,n,t,i,r,s,d,o,f,b){let h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:{};u("organizationsControllerGetPastLessonListBgd","companyId",a),u("organizationsControllerGetPastLessonListBgd","teacherId",n),u("organizationsControllerGetPastLessonListBgd","companyName",t),u("organizationsControllerGetPastLessonListBgd","lessonId",i),u("organizationsControllerGetPastLessonListBgd","learnerName",r),u("organizationsControllerGetPastLessonListBgd","learnerId",s),u("organizationsControllerGetPastLessonListBgd","startPeriod",d),u("organizationsControllerGetPastLessonListBgd","endPeriod",o),u("organizationsControllerGetPastLessonListBgd","limit",f),u("organizationsControllerGetPastLessonListBgd","page",b);const _=new URL("/api/organizations/get/pastLessonList_bgd",l);let v;e&&(v=e.baseOptions);const y={method:"GET",...v,...h},g={},w={};await c(g,e),void 0!==a&&(w.companyId=a),void 0!==n&&(w.teacherId=n),void 0!==t&&(w.companyName=t),void 0!==i&&(w.lessonId=i),void 0!==r&&(w.learnerName=r),void 0!==s&&(w.learnerId=s),void 0!==d&&(w.startPeriod=d),void 0!==o&&(w.endPeriod=o),void 0!==f&&(w.limit=f),void 0!==b&&(w.page=b),m(_,w,h.query);let T=v&&v.headers?v.headers:{};return y.headers={...g,...T,...h.headers},{url:p(_),options:y}},organizationsControllerGetPaymentCompany:async function(a,n,t,i,r,s,d){let o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};u("organizationsControllerGetPaymentCompany","companyId",a),u("organizationsControllerGetPaymentCompany","paymentId",n),u("organizationsControllerGetPaymentCompany","searchStatus",t),u("organizationsControllerGetPaymentCompany","searchField",i),u("organizationsControllerGetPaymentCompany","searchStr",r),u("organizationsControllerGetPaymentCompany","limit",s),u("organizationsControllerGetPaymentCompany","page",d);const f="/api/organizations/{companyId}/paymentCompany".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),b=new URL(f,l);let h;e&&(h=e.baseOptions);const _={method:"GET",...h,...o},v={},y={};await c(v,e),void 0!==n&&(y.paymentId=n),void 0!==t&&(y.search_status=t),void 0!==i&&(y.search_field=i),void 0!==r&&(y.search_str=r),void 0!==s&&(y.limit=s),void 0!==d&&(y.page=d),m(b,y,o.query);let g=h&&h.headers?h.headers:{};return _.headers={...v,...g,...o.headers},{url:p(b),options:_}},organizationsControllerGetPaymentCompanyList:async function(a,n,t,i,r,s,d,o,f){let b=arguments.length>9&&void 0!==arguments[9]?arguments[9]:{};u("organizationsControllerGetPaymentCompanyList","companyId",a),u("organizationsControllerGetPaymentCompanyList","targetMonth",n),u("organizationsControllerGetPaymentCompanyList","paymentId",t),u("organizationsControllerGetPaymentCompanyList","learnerId",i),u("organizationsControllerGetPaymentCompanyList","searchStatus",r),u("organizationsControllerGetPaymentCompanyList","searchField",s),u("organizationsControllerGetPaymentCompanyList","searchStr",d),u("organizationsControllerGetPaymentCompanyList","limit",o),u("organizationsControllerGetPaymentCompanyList","page",f);const h="/api/organizations/get/{companyId}/paymentList".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),_=new URL(h,l);let v;e&&(v=e.baseOptions);const y={method:"GET",...v,...b},g={},w={};await c(g,e),void 0!==n&&(w.target_month=n),void 0!==t&&(w.paymentId=t),void 0!==i&&(w.learnerId=i),void 0!==r&&(w.search_status=r),void 0!==s&&(w.search_field=s),void 0!==d&&(w.search_str=d),void 0!==o&&(w.limit=o),void 0!==f&&(w.page=f),m(_,w,b.query);let T=v&&v.headers?v.headers:{};return y.headers={...g,...T,...b.headers},{url:p(_),options:y}},organizationsControllerGetPaymentLearnerDetails:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerGetPaymentLearnerDetails","companyId",a),u("organizationsControllerGetPaymentLearnerDetails","paymentId",n),u("organizationsControllerGetPaymentLearnerDetails","learnerId",t);const r="/api/organizations/get/{companyId}/{paymentId}/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("paymentId","}"),encodeURIComponent(String(n))).replace("{".concat("learnerId","}"),encodeURIComponent(String(t))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"GET",...d,...i},f={};await c(f,e),m(s,{},i.query);let b=d&&d.headers?d.headers:{};return o.headers={...f,...b,...i.headers},{url:p(s),options:o}},organizationsControllerGetPaymentLearnerList:async function(a,n,t,i,r,s,d,o){let f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{};u("organizationsControllerGetPaymentLearnerList","companyId",a),u("organizationsControllerGetPaymentLearnerList","paymentId",n),u("organizationsControllerGetPaymentLearnerList","learnerId",t),u("organizationsControllerGetPaymentLearnerList","searchStatus",i),u("organizationsControllerGetPaymentLearnerList","searchField",r),u("organizationsControllerGetPaymentLearnerList","searchStr",s),u("organizationsControllerGetPaymentLearnerList","limit",d),u("organizationsControllerGetPaymentLearnerList","page",o);const b="/api/organizations/get/{companyId}/paymentLearnerList/{paymentId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("paymentId","}"),encodeURIComponent(String(n))),h=new URL(b,l);let _;e&&(_=e.baseOptions);const v={method:"GET",..._,...f},y={},g={};await c(y,e),void 0!==t&&(g.learnerId=t),void 0!==i&&(g.search_status=i),void 0!==r&&(g.search_field=r),void 0!==s&&(g.search_str=s),void 0!==d&&(g.limit=d),void 0!==o&&(g.page=o),m(h,g,f.query);let w=_&&_.headers?_.headers:{};return v.headers={...y,...w,...f.headers},{url:p(h),options:v}},organizationsControllerGetReportStudyRecords:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerGetReportStudyRecords","companyId",a),u("organizationsControllerGetReportStudyRecords","paymentId",n),u("organizationsControllerGetReportStudyRecords","yearMonth",t);const r="/api/organizations/get/{companyId}/{paymentId}/{yearMonth}/StudyRecordsAll".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("paymentId","}"),encodeURIComponent(String(n))).replace("{".concat("yearMonth","}"),encodeURIComponent(String(t))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"GET",...d,...i},f={};await c(f,e),m(s,{},i.query);let b=d&&d.headers?d.headers:{};return o.headers={...f,...b,...i.headers},{url:p(s),options:o}},organizationsControllerGetStudyRecords:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetStudyRecords","companyId",a),u("organizationsControllerGetStudyRecords","learnerId",n);const i="/api/organizations/get/{companyId}/StudyRecords/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"GET",...s,...t},o={};await c(o,e),m(r,{},t.query);let f=s&&s.headers?s.headers:{};return d.headers={...o,...f,...t.headers},{url:p(r),options:d}},organizationsControllerGetSystemLearnerNotice:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerGetSystemLearnerNotice","learnerId",a);const t="/api/organizations/systemLearnerNotice/{learnerId}".replace("{".concat("learnerId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerGetTargetMonthPaymentCompanyList:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerGetTargetMonthPaymentCompanyList","companyId",a),u("organizationsControllerGetTargetMonthPaymentCompanyList","learnerId",n);const i=new URL("/api/organizations/get/targetMonthPaymentList",l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...t},d={},o={};await c(d,e),void 0!==a&&(o.companyId=a),void 0!==n&&(o.learnerId=n),m(i,o,t.query);let f=r&&r.headers?r.headers:{};return s.headers={...d,...f,...t.headers},{url:p(i),options:s}},organizationsControllerGetTeacherByTeacherId:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerGetTeacherByTeacherId","teacherId",a);const t="/api/organizations/teacherInfo/{teacherId}".replace("{".concat("teacherId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerGetTeacherLessonFee:async function(a,n,t,i,r,s){let d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};u("organizationsControllerGetTeacherLessonFee","companyId",a),u("organizationsControllerGetTeacherLessonFee","teacherId",n),u("organizationsControllerGetTeacherLessonFee","yearMonth",t),u("organizationsControllerGetTeacherLessonFee","endPeriod",i),u("organizationsControllerGetTeacherLessonFee","searchField",r),u("organizationsControllerGetTeacherLessonFee","searchStr",s);const o="/api/organizations/get/{teacherId}/LessonFee/{yearMonth}".replace("{".concat("teacherId","}"),encodeURIComponent(String(n))).replace("{".concat("yearMonth","}"),encodeURIComponent(String(t))),f=new URL(o,l);let b;e&&(b=e.baseOptions);const h={method:"GET",...b,...d},_={},v={};await c(_,e),void 0!==a&&(v.companyId=a),void 0!==i&&(v.endPeriod=i),void 0!==r&&(v.search_field=r),void 0!==s&&(v.search_str=s),m(f,v,d.query);let y=b&&b.headers?b.headers:{};return h.headers={..._,...y,...d.headers},{url:p(f),options:h}},organizationsControllerGetTeacherLessonFeeList:async function(a,n,t,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};u("organizationsControllerGetTeacherLessonFeeList","teacherId",a),u("organizationsControllerGetTeacherLessonFeeList","yearMonth",n),u("organizationsControllerGetTeacherLessonFeeList","status",t),u("organizationsControllerGetTeacherLessonFeeList","limit",i),u("organizationsControllerGetTeacherLessonFeeList","page",r);const d=new URL("/api/organizations/get/LessonFeeList",l);let o;e&&(o=e.baseOptions);const f={method:"GET",...o,...s},b={},h={};await c(b,e),void 0!==a&&(h.teacherId=a),void 0!==n&&(h.yearMonth=n),void 0!==t&&(h.status=t),void 0!==i&&(h.limit=i),void 0!==r&&(h.page=r),m(d,h,s.query);let _=o&&o.headers?o.headers:{};return f.headers={...b,..._,...s.headers},{url:p(d),options:f}},organizationsControllerGetTeacherUserList:async function(a,n,t,i,r,s){let d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};u("organizationsControllerGetTeacherUserList","teacherId",a),u("organizationsControllerGetTeacherUserList","searchStatus",n),u("organizationsControllerGetTeacherUserList","searchField",t),u("organizationsControllerGetTeacherUserList","searchStr",i),u("organizationsControllerGetTeacherUserList","limit",r),u("organizationsControllerGetTeacherUserList","page",s);const o=new URL("/api/organizations/get/teacherList",l);let f;e&&(f=e.baseOptions);const b={method:"GET",...f,...d},h={},_={};await c(h,e),void 0!==a&&(_.teacherId=a),void 0!==n&&(_.searchStatus=n),void 0!==t&&(_.searchField=t),void 0!==i&&(_.searchStr=i),void 0!==r&&(_.limit=r),void 0!==s&&(_.page=s),m(o,_,d.query);let v=f&&f.headers?f.headers:{};return b.headers={...h,...v,...d.headers},{url:p(o),options:b}},organizationsControllerGetZoomToken:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("organizationsControllerGetZoomToken","roomId",a);const t="/api/organizations/zoom/{room_id}".replace("{".concat("room_id","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n},d={};await c(d,e),m(i,{},n.query);let o=r&&r.headers?r.headers:{};return s.headers={...d,...o,...n.headers},{url:p(i),options:s}},organizationsControllerPostZoomChat:async function(a,n,t,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};u("organizationsControllerPostZoomChat","companyId",a),u("organizationsControllerPostZoomChat","lessonId",n),u("organizationsControllerPostZoomChat","senderId",t),u("organizationsControllerPostZoomChat","receiverId",i),u("organizationsControllerPostZoomChat","message",r);const d=new URL("/api/organizations/zoomChat",l);let o;e&&(o=e.baseOptions);const f={method:"POST",...o,...s},b={},h={};await c(b,e),void 0!==a&&(h.companyId=a),void 0!==n&&(h.lessonId=n),void 0!==t&&(h.senderId=t),void 0!==i&&(h.receiverId=i),void 0!==r&&(h.message=r),m(d,h,s.query);let _=o&&o.headers?o.headers:{};return f.headers={...b,..._,...s.headers},{url:p(d),options:f}},organizationsControllerPutCompanyRoomChat:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerPutCompanyRoomChat","companyId",a),u("organizationsControllerPutCompanyRoomChat","roomId",n),u("organizationsControllerPutCompanyRoomChat","createRoomChatInput",t);const r="/api/organizations/{companyId}/{roomId}/chat".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("roomId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},b={};await c(b,e),b["Content-Type"]="application/json",m(s,{},i.query);let h=d&&d.headers?d.headers:{};return o.headers={...b,...h,...i.headers},o.data=f(t,o,e),{url:p(s),options:o}},organizationsControllerReleaseNotice:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerReleaseNotice","id",a),u("organizationsControllerReleaseNotice","releaseFlg",n);const i="/api/organizations/release/noticeList/{id}".replace("{".concat("id","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={},f={};await c(o,e),void 0!==n&&(f.release_flg=n),m(r,f,t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},{url:p(r),options:d}},organizationsControllerSendInquiryEmail:async function(a,n,t,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};u("organizationsControllerSendInquiryEmail","mailSubject",a),u("organizationsControllerSendInquiryEmail","mailerId",n),u("organizationsControllerSendInquiryEmail","mailerName",t),u("organizationsControllerSendInquiryEmail","kinds",i),u("organizationsControllerSendInquiryEmail","mailBody",r);const d=new URL("/api/organizations/sendInquiryEmail",l);let o;e&&(o=e.baseOptions);const f={method:"POST",...o,...s},b={},h={};await c(b,e),void 0!==a&&(h.mailSubject=a),void 0!==n&&(h.mailerId=n),void 0!==t&&(h.mailerName=t),void 0!==i&&(h.kinds=i),void 0!==r&&(h.mailBody=r),m(d,h,s.query);let _=o&&o.headers?o.headers:{};return f.headers={...b,..._,...s.headers},{url:p(d),options:f}},organizationsControllerSendQueryEmail:async function(a,n,t,i,r,s){let d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};u("organizationsControllerSendQueryEmail","companyId",a),u("organizationsControllerSendQueryEmail","sendQueryEmail",n),u("organizationsControllerSendQueryEmail","startPeriod",t),u("organizationsControllerSendQueryEmail","endPeriod",i),u("organizationsControllerSendQueryEmail","searchField",r),u("organizationsControllerSendQueryEmail","searchStr",s);const o="/api/organizations/{sendQueryEmail}".replace("{".concat("sendQueryEmail","}"),encodeURIComponent(String(n))),f=new URL(o,l);let b;e&&(b=e.baseOptions);const h={method:"PUT",...b,...d},_={},v={};await c(_,e),void 0!==a&&(v.companyId=a),void 0!==t&&(v.startPeriod=t),void 0!==i&&(v.endPeriod=i),void 0!==r&&(v.search_field=r),void 0!==s&&(v.search_str=s),m(f,v,d.query);let y=b&&b.headers?b.headers:{};return h.headers={..._,...y,...d.headers},{url:p(f),options:h}},organizationsControllerUpdateAgreement:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerUpdateAgreement","companyId",a),u("organizationsControllerUpdateAgreement","updateAgreementInput",n);const i="/api/organizations/update/{companyId}/paymentList".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},organizationsControllerUpdateAgreementPlan:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerUpdateAgreementPlan","companyId",a),u("organizationsControllerUpdateAgreementPlan","paymentId",n),u("organizationsControllerUpdateAgreementPlan","body",t);const r="/api/organizations/updatePlan/{companyId}/{paymentId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("paymentId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},b={};await c(b,e),b["Content-Type"]="application/json",m(s,{},i.query);let h=d&&d.headers?d.headers:{};return o.headers={...b,...h,...i.headers},o.data=f(t,o,e),{url:p(s),options:o}},organizationsControllerUpdateBillingStatus:async function(a,n,t,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};u("organizationsControllerUpdateBillingStatus","teacherId",a),u("organizationsControllerUpdateBillingStatus","yearMonth",n),u("organizationsControllerUpdateBillingStatus","billedFlg",t),u("organizationsControllerUpdateBillingStatus","finalFee",i);const s=new URL("/api/organizations/update/updateBillingStatus",l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...r},f={},b={};await c(f,e),void 0!==a&&(b.teacherId=a),void 0!==n&&(b.yearMonth=n),void 0!==t&&(b.billedFlg=t),void 0!==i&&(b.finalFee=i),m(s,b,r.query);let h=d&&d.headers?d.headers:{};return o.headers={...f,...h,...r.headers},{url:p(s),options:o}},organizationsControllerUpdateCompany:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerUpdateCompany","companyId",a),u("organizationsControllerUpdateCompany","updateCompanyInput",n);const i="/api/organizations/update/company/{companyId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},organizationsControllerUpdateDeMaintenance:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerUpdateDeMaintenance","maintenanceId",a),u("organizationsControllerUpdateDeMaintenance","immediateFlg",n);const i="/api/organizations/maintenances/{maintenance_id}/de_maintenance".replace("{".concat("maintenance_id","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={},f={};await c(o,e),void 0!==n&&(f.immediate_flg=n),m(r,f,t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},{url:p(r),options:d}},organizationsControllerUpdateLearnerUser:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerUpdateLearnerUser","companyId",a),u("organizationsControllerUpdateLearnerUser","learnerId",n),u("organizationsControllerUpdateLearnerUser","updateLearnerInput",t);const r="/api/organizations/update/{companyId}/learnerUser/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("learnerId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},b={};await c(b,e),b["Content-Type"]="application/json",m(s,{},i.query);let h=d&&d.headers?d.headers:{};return o.headers={...b,...h,...i.headers},o.data=f(t,o,e),{url:p(s),options:o}},organizationsControllerUpdateLesson:async function(a,n,t,i,r,s){let d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};u("organizationsControllerUpdateLesson","companyId",a),u("organizationsControllerUpdateLesson","lessonId",n),u("organizationsControllerUpdateLesson","startPeriod",t),u("organizationsControllerUpdateLesson","endPeriod",i),u("organizationsControllerUpdateLesson","searchField",r),u("organizationsControllerUpdateLesson","searchStr",s);const o="/api/organizations/update/{companyId}/lesson/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),f=new URL(o,l);let b;e&&(b=e.baseOptions);const h={method:"PUT",...b,...d},_={},v={};await c(_,e),void 0!==t&&(v.startPeriod=t),void 0!==i&&(v.endPeriod=i),void 0!==r&&(v.search_field=r),void 0!==s&&(v.search_str=s),m(f,v,d.query);let y=b&&b.headers?b.headers:{};return h.headers={..._,...y,...d.headers},{url:p(f),options:h}},organizationsControllerUpdateLessonFeedback:async function(a,n,t,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};u("organizationsControllerUpdateLessonFeedback","companyId",a),u("organizationsControllerUpdateLessonFeedback","lessonId",n),u("organizationsControllerUpdateLessonFeedback","learnerId",t),u("organizationsControllerUpdateLessonFeedback","updateLessonFeedbackInput",i);const s="/api/organizations/lessonFeedback/{companyId}/{lessonId}/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))).replace("{".concat("learnerId","}"),encodeURIComponent(String(t))),d=new URL(s,l);let o;e&&(o=e.baseOptions);const b={method:"PUT",...o,...r},h={};await c(h,e),h["Content-Type"]="application/json",m(d,{},r.query);let _=o&&o.headers?o.headers:{};return b.headers={...h,..._,...r.headers},b.data=f(i,b,e),{url:p(d),options:b}},organizationsControllerUpdateLessonLearnerStatus:async function(a,n,t,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};u("organizationsControllerUpdateLessonLearnerStatus","companyId",a),u("organizationsControllerUpdateLessonLearnerStatus","lessonId",n),u("organizationsControllerUpdateLessonLearnerStatus","learnerId",t),u("organizationsControllerUpdateLessonLearnerStatus","lessonLearnerStatus",i),u("organizationsControllerUpdateLessonLearnerStatus","updateLessonLearnerInput",r);const d="/api/organizations/update/{companyId}/lessonLearner/{lessonLearnerStatus}/{lessonId}/{learnerId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))).replace("{".concat("learnerId","}"),encodeURIComponent(String(t))).replace("{".concat("lessonLearnerStatus","}"),encodeURIComponent(String(i))),o=new URL(d,l);let b;e&&(b=e.baseOptions);const h={method:"PUT",...b,...s},_={};await c(_,e),_["Content-Type"]="application/json",m(o,{},s.query);let v=b&&b.headers?b.headers:{};return h.headers={..._,...v,...s.headers},h.data=f(r,h,e),{url:p(o),options:h}},organizationsControllerUpdateLessonNote:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerUpdateLessonNote","companyId",a),u("organizationsControllerUpdateLessonNote","lessonId",n),u("organizationsControllerUpdateLessonNote","note",t);const r="/api/organizations/update/{companyId}/lessonNote/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},f={},b={};await c(f,e),void 0!==t&&(b.note=t),m(s,b,i.query);let h=d&&d.headers?d.headers:{};return o.headers={...f,...h,...i.headers},{url:p(s),options:o}},organizationsControllerUpdateLessonStatusTeacher:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerUpdateLessonStatusTeacher","companyId",a),u("organizationsControllerUpdateLessonStatusTeacher","lessonId",n),u("organizationsControllerUpdateLessonStatusTeacher","status",t);const r="/api/organizations/{companyId}/updateLessonStatus/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},f={},b={};await c(f,e),void 0!==t&&(b.status=t),m(s,b,i.query);let h=d&&d.headers?d.headers:{};return o.headers={...f,...h,...i.headers},{url:p(s),options:o}},organizationsControllerUpdateMaintenance:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerUpdateMaintenance","maintenanceId",a),u("organizationsControllerUpdateMaintenance","createMaintenanceInput",n);const i="/api/organizations/maintenance/{maintenance_id}".replace("{".concat("maintenance_id","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},organizationsControllerUpdateNotice:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerUpdateNotice","id",a),u("organizationsControllerUpdateNotice","createNoticeInput",n);const i="/api/organizations/update/notice/{id}".replace("{".concat("id","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},organizationsControllerUpdateSystemLearnerNoticeReadStatus:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerUpdateSystemLearnerNoticeReadStatus","noticeId",a),u("organizationsControllerUpdateSystemLearnerNoticeReadStatus","readStatus",n);const i="/api/organizations/update/systemNoticeLearner/{noticeId}".replace("{".concat("noticeId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={},f={};await c(o,e),void 0!==n&&(f.read_status=n),m(r,f,t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},{url:p(r),options:d}},organizationsControllerUpdateTeacherConnectionId:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerUpdateTeacherConnectionId","companyId",a),u("organizationsControllerUpdateTeacherConnectionId","teacherId",n),u("organizationsControllerUpdateTeacherConnectionId","connectionId",t);const r="/api/organizations/{companyId}/{teacherId}/connectionId".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("teacherId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},b={};await c(b,e),b["Content-Type"]="application/json",m(s,{},i.query);let h=d&&d.headers?d.headers:{};return o.headers={...b,...h,...i.headers},o.data=f(t,o,e),{url:p(s),options:o}},organizationsControllerUpdateTeacherUser:async function(a,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u("organizationsControllerUpdateTeacherUser","teacherId",a),u("organizationsControllerUpdateTeacherUser","updateTeacherInput",n);const i="/api/organizations/update/teacher/{teacherId}".replace("{".concat("teacherId","}"),encodeURIComponent(String(a))),r=new URL(i,l);let s;e&&(s=e.baseOptions);const d={method:"PUT",...s,...t},o={};await c(o,e),o["Content-Type"]="application/json",m(r,{},t.query);let b=s&&s.headers?s.headers:{};return d.headers={...o,...b,...t.headers},d.data=f(n,d,e),{url:p(r),options:d}},organizationsControllerUpdateThemeOnLesson:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("organizationsControllerUpdateThemeOnLesson","companyId",a),u("organizationsControllerUpdateThemeOnLesson","lessonId",n),u("organizationsControllerUpdateThemeOnLesson","theme",t);const r="/api/organizations/updateTheme/{companyId}/{lessonId}".replace("{".concat("companyId","}"),encodeURIComponent(String(a))).replace("{".concat("lessonId","}"),encodeURIComponent(String(n))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"PUT",...d,...i},f={},b={};await c(f,e),void 0!==t&&(b.theme=t),m(s,b,i.query);let h=d&&d.headers?d.headers:{};return o.headers={...f,...h,...i.headers},{url:p(s),options:o}},organizationsControllerVerifyCognitoUserEmail:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/organizations/verifyEmail",l);let t;e&&(t=e.baseOptions);const i={method:"POST",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},sandboxControllerCognitoSandbox:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/sandbox/cognito",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a};m(n,{},a.query);let r=t&&t.headers?t.headers:{};return i.headers={...r,...a.headers},{url:p(n),options:i}},sandboxControllerMailSandbox:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/sandbox/mail",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a};m(n,{},a.query);let r=t&&t.headers?t.headers:{};return i.headers={...r,...a.headers},{url:p(n),options:i}},teacherControllerGetMostRecentScheduledLesson:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("teacherControllerGetMostRecentScheduledLesson","teacherId",a);const t="/api/teacher/most-recent-scheduled-lesson/{teacherId}".replace("{".concat("teacherId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n};m(i,{},n.query);let d=r&&r.headers?r.headers:{};return s.headers={...d,...n.headers},{url:p(i),options:s}},teacherControllerGetNotUpdatedNoteLessons:async function(a,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("teacherControllerGetNotUpdatedNoteLessons","teacherId",a),u("teacherControllerGetNotUpdatedNoteLessons","limit",n),u("teacherControllerGetNotUpdatedNoteLessons","page",t);const r="/api/teacher/lessons/not-updated-note/{teacherId}".replace("{".concat("teacherId","}"),encodeURIComponent(String(a))),s=new URL(r,l);let d;e&&(d=e.baseOptions);const o={method:"GET",...d,...i},c={};void 0!==n&&(c.limit=n),void 0!==t&&(c.page=t),m(s,c,i.query);let f=d&&d.headers?d.headers:{};return o.headers={...f,...i.headers},{url:p(s),options:o}},teacherControllerGetUnaprovedLessons:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("teacherControllerGetUnaprovedLessons","teacherId",a);const t="/api/teacher/lessons/unaproved/{teacherId}".replace("{".concat("teacherId","}"),encodeURIComponent(String(a))),i=new URL(t,l);let r;e&&(r=e.baseOptions);const s={method:"GET",...r,...n};m(i,{},n.query);let d=r&&r.headers?r.headers:{};return s.headers={...d,...n.headers},{url:p(i),options:s}},userEventControllerLoggingEvent:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("userEventControllerLoggingEvent","loggingInput",a);const t=new URL("/api/user-event/logging",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}},userEventControllerLoggingEventByNotAuth:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("userEventControllerLoggingEventByNotAuth","loggingInput",a);const t=new URL("/api/user-event/logging-not-auth",l);let i;e&&(i=e.baseOptions);const r={method:"POST",...i,...n},s={};await c(s,e),s["Content-Type"]="application/json",m(t,{},n.query);let d=i&&i.headers?i.headers:{};return r.headers={...s,...d,...n.headers},r.data=f(a,r,e),{url:p(t),options:r}}}}(e);return{async inquiryControllerSendInquiryEmail(n,t){const i=await a.inquiryControllerSendInquiryEmail(n,t);return b(i,r(),s,e)},async mobileAppControllerCreateActiveLearnerLog(n,t){const i=await a.mobileAppControllerCreateActiveLearnerLog(n,t);return b(i,r(),s,e)},async mobileAppControllerCreateLessonLog(n,t,i,d,o){const l=await a.mobileAppControllerCreateLessonLog(n,t,i,d,o);return b(l,r(),s,e)},async mobileAppControllerDeactivateLearnerEndpoints(n,t,i){const d=await a.mobileAppControllerDeactivateLearnerEndpoints(n,t,i);return b(d,r(),s,e)},async mobileAppControllerGetApprovedLessons(n,t){const i=await a.mobileAppControllerGetApprovedLessons(n,t);return b(i,r(),s,e)},async mobileAppControllerGetLearnerActiveEndpointCount(n,t,i){const d=await a.mobileAppControllerGetLearnerActiveEndpointCount(n,t,i);return b(d,r(),s,e)},async mobileAppControllerGetLearnerByEmail(n,t,i){const d=await a.mobileAppControllerGetLearnerByEmail(n,t,i);return b(d,r(),s,e)},async mobileAppControllerGetLearnerEndpoint(n,t,i){const d=await a.mobileAppControllerGetLearnerEndpoint(n,t,i);return b(d,r(),s,e)},async mobileAppControllerGetLernerById(n,t,i){const d=await a.mobileAppControllerGetLernerById(n,t,i);return b(d,r(),s,e)},async mobileAppControllerGetLoginedLearnerDetail(n){const t=await a.mobileAppControllerGetLoginedLearnerDetail(n);return b(t,r(),s,e)},async mobileAppControllerGetMostRecentScheduledLesson(n){const t=await a.mobileAppControllerGetMostRecentScheduledLesson(n);return b(t,r(),s,e)},async mobileAppControllerGetNoticeRead(n,t){const i=await a.mobileAppControllerGetNoticeRead(n,t);return b(i,r(),s,e)},async mobileAppControllerGetNoticeUnreadCount(n,t){const i=await a.mobileAppControllerGetNoticeUnreadCount(n,t);return b(i,r(),s,e)},async mobileAppControllerGetNotices(n,t,i){const d=await a.mobileAppControllerGetNotices(n,t,i);return b(d,r(),s,e)},async mobileAppControllerGetPastLessons(n,t,i){const d=await a.mobileAppControllerGetPastLessons(n,t,i);return b(d,r(),s,e)},async mobileAppControllerGetPushMsg(n,t){const i=await a.mobileAppControllerGetPushMsg(n,t);return b(i,r(),s,e)},async mobileAppControllerGetPushMsgLog(n,t,i){const d=await a.mobileAppControllerGetPushMsgLog(n,t,i);return b(d,r(),s,e)},async mobileAppControllerGetPushVapidPublicKey(n,t){const i=await a.mobileAppControllerGetPushVapidPublicKey(n,t);return b(i,r(),s,e)},async mobileAppControllerGetStudyRecords(n,t){const i=await a.mobileAppControllerGetStudyRecords(n,t);return b(i,r(),s,e)},async mobileAppControllerPostStudyRecordDrill(n,t){const i=await a.mobileAppControllerPostStudyRecordDrill(n,t);return b(i,r(),s,e)},async mobileAppControllerPostStudyRecordStory(n,t){const i=await a.mobileAppControllerPostStudyRecordStory(n,t);return b(i,r(),s,e)},async mobileAppControllerPutDrillRecord(n,t){const i=await a.mobileAppControllerPutDrillRecord(n,t);return b(i,r(),s,e)},async mobileAppControllerPutNoticeRead(n,t,i,d){const o=await a.mobileAppControllerPutNoticeRead(n,t,i,d);return b(o,r(),s,e)},async mobileAppControllerPutStudyRecord(n,t){const i=await a.mobileAppControllerPutStudyRecord(n,t);return b(i,r(),s,e)},async mobileAppControllerRecordStudySession(n,t){const i=await a.mobileAppControllerRecordStudySession(n,t);return b(i,r(),s,e)},async mobileAppControllerStartStudySession(n,t){const i=await a.mobileAppControllerStartStudySession(n,t);return b(i,r(),s,e)},async mobileAppControllerUpdateLearnerConnectionId(n,t,i,d){const o=await a.mobileAppControllerUpdateLearnerConnectionId(n,t,i,d);return b(o,r(),s,e)},async mobileAppControllerUpdateLearnerEmail(n,t,i,d){const o=await a.mobileAppControllerUpdateLearnerEmail(n,t,i,d);return b(o,r(),s,e)},async mobileAppControllerUpdateLearnerEmailSendFlg(n,t,i,d){const o=await a.mobileAppControllerUpdateLearnerEmailSendFlg(n,t,i,d);return b(o,r(),s,e)},async mobileAppControllerUpsertLearnerEndpoint(n,t,i,d){const o=await a.mobileAppControllerUpsertLearnerEndpoint(n,t,i,d);return b(o,r(),s,e)},async mobileAppControllerUpsertPushMsg(n,t,i){const d=await a.mobileAppControllerUpsertPushMsg(n,t,i);return b(d,r(),s,e)},async mobileAppControllerUpsertPushMsgLog(n,t,i){const d=await a.mobileAppControllerUpsertPushMsgLog(n,t,i);return b(d,r(),s,e)},async mobileAppControllerVerifyCognitoUserEmail(n){const t=await a.mobileAppControllerVerifyCognitoUserEmail(n);return b(t,r(),s,e)},async mobileAppControllerVerifyLearnerEmail(n,t,i,d,o){const l=await a.mobileAppControllerVerifyLearnerEmail(n,t,i,d,o);return b(l,r(),s,e)},async organizationsControllerApprovalLessonTeacher(n,t,i){const d=await a.organizationsControllerApprovalLessonTeacher(n,t,i);return b(d,r(),s,e)},async organizationsControllerCancelLesson(n,t,i,d){const o=await a.organizationsControllerCancelLesson(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerChangeLessonTeacher(n,t,i,d){const o=await a.organizationsControllerChangeLessonTeacher(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerCreateAgreement(n,t,i){const d=await a.organizationsControllerCreateAgreement(n,t,i);return b(d,r(),s,e)},async organizationsControllerCreateCompany(n,t,i){const d=await a.organizationsControllerCreateCompany(n,t,i);return b(d,r(),s,e)},async organizationsControllerCreateCompanyUser(n,t,i){const d=await a.organizationsControllerCreateCompanyUser(n,t,i);return b(d,r(),s,e)},async organizationsControllerCreateErrorLog(n,t){const i=await a.organizationsControllerCreateErrorLog(n,t);return b(i,r(),s,e)},async organizationsControllerCreateLearnerUser(n,t,i,d){const o=await a.organizationsControllerCreateLearnerUser(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerCreateLesson(n,t,i,d,o,l){const u=await a.organizationsControllerCreateLesson(n,t,i,d,o,l);return b(u,r(),s,e)},async organizationsControllerCreateLessonFee(n,t,i){const d=await a.organizationsControllerCreateLessonFee(n,t,i);return b(d,r(),s,e)},async organizationsControllerCreateLessonFeeHistory(n,t,i){const d=await a.organizationsControllerCreateLessonFeeHistory(n,t,i);return b(d,r(),s,e)},async organizationsControllerCreateMaintenance(n,t){const i=await a.organizationsControllerCreateMaintenance(n,t);return b(i,r(),s,e)},async organizationsControllerCreateManagerUser(n,t,i){const d=await a.organizationsControllerCreateManagerUser(n,t,i);return b(d,r(),s,e)},async organizationsControllerCreateNotice(n,t,i){const d=await a.organizationsControllerCreateNotice(n,t,i);return b(d,r(),s,e)},async organizationsControllerCreateNoticeCompany(n,t){const i=await a.organizationsControllerCreateNoticeCompany(n,t);return b(i,r(),s,e)},async organizationsControllerCreateTeacherUser(n,t,i){const d=await a.organizationsControllerCreateTeacherUser(n,t,i);return b(d,r(),s,e)},async organizationsControllerDeleteAgreement(n,t,i){const d=await a.organizationsControllerDeleteAgreement(n,t,i);return b(d,r(),s,e)},async organizationsControllerDeleteCompany(n,t){const i=await a.organizationsControllerDeleteCompany(n,t);return b(i,r(),s,e)},async organizationsControllerDeleteCompanyUser(n,t,i){const d=await a.organizationsControllerDeleteCompanyUser(n,t,i);return b(d,r(),s,e)},async organizationsControllerDeleteLearnerUser(n,t,i){const d=await a.organizationsControllerDeleteLearnerUser(n,t,i);return b(d,r(),s,e)},async organizationsControllerDeleteLessonFeeOption(n,t){const i=await a.organizationsControllerDeleteLessonFeeOption(n,t);return b(i,r(),s,e)},async organizationsControllerDeleteLessonLearner(n,t,i,d){const o=await a.organizationsControllerDeleteLessonLearner(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerDeleteMaintenance(n,t,i){const d=await a.organizationsControllerDeleteMaintenance(n,t,i);return b(d,r(),s,e)},async organizationsControllerDeleteManagerUser(n,t){const i=await a.organizationsControllerDeleteManagerUser(n,t);return b(i,r(),s,e)},async organizationsControllerDeleteMonthlyAgreement(n,t,i){const d=await a.organizationsControllerDeleteMonthlyAgreement(n,t,i);return b(d,r(),s,e)},async organizationsControllerDeleteNotice(n,t){const i=await a.organizationsControllerDeleteNotice(n,t);return b(i,r(),s,e)},async organizationsControllerDeleteTeacherUser(n,t){const i=await a.organizationsControllerDeleteTeacherUser(n,t);return b(i,r(),s,e)},async organizationsControllerExistsLearner(n,t){const i=await a.organizationsControllerExistsLearner(n,t);return b(i,r(),s,e)},async organizationsControllerExistsLearnerInPlan(n,t){const i=await a.organizationsControllerExistsLearnerInPlan(n,t);return b(i,r(),s,e)},async organizationsControllerGetAvailableCompanies(n){const t=await a.organizationsControllerGetAvailableCompanies(n);return b(t,r(),s,e)},async organizationsControllerGetCompany(n,t){const i=await a.organizationsControllerGetCompany(n,t);return b(i,r(),s,e)},async organizationsControllerGetCompanyList(n,t,i,d,o,l,u,c){const m=await a.organizationsControllerGetCompanyList(n,t,i,d,o,l,u,c);return b(m,r(),s,e)},async organizationsControllerGetCompanyPlans(n,t){const i=await a.organizationsControllerGetCompanyPlans(n,t);return b(i,r(),s,e)},async organizationsControllerGetCompanyUserList(n,t,i,d){const o=await a.organizationsControllerGetCompanyUserList(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerGetConnectionIdByRoomId(n,t,i){const d=await a.organizationsControllerGetConnectionIdByRoomId(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetEachLearnerStudyRecordsPdf(n,t,i){const d=await a.organizationsControllerGetEachLearnerStudyRecordsPdf(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetFutureLessonList(n,t,i,d,o,l,u,c,m,f,p,h){const _=await a.organizationsControllerGetFutureLessonList(n,t,i,d,o,l,u,c,m,f,p,h);return b(_,r(),s,e)},async organizationsControllerGetFutureLessonListBgd(n,t,i,d,o,l,u,c,m,f,p,h,_){const v=await a.organizationsControllerGetFutureLessonListBgd(n,t,i,d,o,l,u,c,m,f,p,h,_);return b(v,r(),s,e)},async organizationsControllerGetLatestPastLessonNote(n,t,i,d,o,l,u){const c=await a.organizationsControllerGetLatestPastLessonNote(n,t,i,d,o,l,u);return b(c,r(),s,e)},async organizationsControllerGetLeanerUserListByLesson(n,t,i){const d=await a.organizationsControllerGetLeanerUserListByLesson(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetLearnerStudyRecords(n,t,i){const d=await a.organizationsControllerGetLearnerStudyRecords(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetLearnerUserList(n,t,i,d,o,l,u,c){const m=await a.organizationsControllerGetLearnerUserList(n,t,i,d,o,l,u,c);return b(m,r(),s,e)},async organizationsControllerGetLesson(n,t,i,d,o,l,u,c){const m=await a.organizationsControllerGetLesson(n,t,i,d,o,l,u,c);return b(m,r(),s,e)},async organizationsControllerGetLessonByCompanyNLessonID(n,t,i){const d=await a.organizationsControllerGetLessonByCompanyNLessonID(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetLessonByRoomId(n,t,i){const d=await a.organizationsControllerGetLessonByRoomId(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetLessonFeedback(n,t,i,d,o,l,u,c){const m=await a.organizationsControllerGetLessonFeedback(n,t,i,d,o,l,u,c);return b(m,r(),s,e)},async organizationsControllerGetLessonFeedbackList(n,t,i,d,o,l,u,c,m,f,p){const h=await a.organizationsControllerGetLessonFeedbackList(n,t,i,d,o,l,u,c,m,f,p);return b(h,r(),s,e)},async organizationsControllerGetLessonFeedbackListBgd(n,t,i,d,o,l,u,c,m,f,p){const h=await a.organizationsControllerGetLessonFeedbackListBgd(n,t,i,d,o,l,u,c,m,f,p);return b(h,r(),s,e)},async organizationsControllerGetLessonFees(n){const t=await a.organizationsControllerGetLessonFees(n);return b(t,r(),s,e)},async organizationsControllerGetLessonListBgd(n,t,i,d,o,l,u,c,m,f,p,h,_){const v=await a.organizationsControllerGetLessonListBgd(n,t,i,d,o,l,u,c,m,f,p,h,_);return b(v,r(),s,e)},async organizationsControllerGetLessonNote(n,t,i,d,o,l,u){const c=await a.organizationsControllerGetLessonNote(n,t,i,d,o,l,u);return b(c,r(),s,e)},async organizationsControllerGetLessonNoteList(n,t,i,d,o,l){const u=await a.organizationsControllerGetLessonNoteList(n,t,i,d,o,l);return b(u,r(),s,e)},async organizationsControllerGetLoginUserInfo(n){const t=await a.organizationsControllerGetLoginUserInfo(n);return b(t,r(),s,e)},async organizationsControllerGetMaintenance(n,t){const i=await a.organizationsControllerGetMaintenance(n,t);return b(i,r(),s,e)},async organizationsControllerGetManagerUserList(n,t,i){const d=await a.organizationsControllerGetManagerUserList(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetNotice(n,t){const i=await a.organizationsControllerGetNotice(n,t);return b(i,r(),s,e)},async organizationsControllerGetNoticeCompany(n,t,i){const d=await a.organizationsControllerGetNoticeCompany(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetNoticeCompanyForManager(n,t){const i=await a.organizationsControllerGetNoticeCompanyForManager(n,t);return b(i,r(),s,e)},async organizationsControllerGetNoticeList(n,t,i,d){const o=await a.organizationsControllerGetNoticeList(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerGetOperationalStatus(n){const t=await a.organizationsControllerGetOperationalStatus(n);return b(t,r(),s,e)},async organizationsControllerGetPastLessonList(n,t,i,d,o,l,u,c,m,f){const p=await a.organizationsControllerGetPastLessonList(n,t,i,d,o,l,u,c,m,f);return b(p,r(),s,e)},async organizationsControllerGetPastLessonListBgd(n,t,i,d,o,l,u,c,m,f,p){const h=await a.organizationsControllerGetPastLessonListBgd(n,t,i,d,o,l,u,c,m,f,p);return b(h,r(),s,e)},async organizationsControllerGetPaymentCompany(n,t,i,d,o,l,u,c){const m=await a.organizationsControllerGetPaymentCompany(n,t,i,d,o,l,u,c);return b(m,r(),s,e)},async organizationsControllerGetPaymentCompanyList(n,t,i,d,o,l,u,c,m,f){const p=await a.organizationsControllerGetPaymentCompanyList(n,t,i,d,o,l,u,c,m,f);return b(p,r(),s,e)},async organizationsControllerGetPaymentLearnerDetails(n,t,i,d){const o=await a.organizationsControllerGetPaymentLearnerDetails(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerGetPaymentLearnerList(n,t,i,d,o,l,u,c,m){const f=await a.organizationsControllerGetPaymentLearnerList(n,t,i,d,o,l,u,c,m);return b(f,r(),s,e)},async organizationsControllerGetReportStudyRecords(n,t,i,d){const o=await a.organizationsControllerGetReportStudyRecords(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerGetStudyRecords(n,t,i){const d=await a.organizationsControllerGetStudyRecords(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetSystemLearnerNotice(n,t){const i=await a.organizationsControllerGetSystemLearnerNotice(n,t);return b(i,r(),s,e)},async organizationsControllerGetTargetMonthPaymentCompanyList(n,t,i){const d=await a.organizationsControllerGetTargetMonthPaymentCompanyList(n,t,i);return b(d,r(),s,e)},async organizationsControllerGetTeacherByTeacherId(n,t){const i=await a.organizationsControllerGetTeacherByTeacherId(n,t);return b(i,r(),s,e)},async organizationsControllerGetTeacherLessonFee(n,t,i,d,o,l,u){const c=await a.organizationsControllerGetTeacherLessonFee(n,t,i,d,o,l,u);return b(c,r(),s,e)},async organizationsControllerGetTeacherLessonFeeList(n,t,i,d,o,l){const u=await a.organizationsControllerGetTeacherLessonFeeList(n,t,i,d,o,l);return b(u,r(),s,e)},async organizationsControllerGetTeacherUserList(n,t,i,d,o,l,u){const c=await a.organizationsControllerGetTeacherUserList(n,t,i,d,o,l,u);return b(c,r(),s,e)},async organizationsControllerGetZoomToken(n,t){const i=await a.organizationsControllerGetZoomToken(n,t);return b(i,r(),s,e)},async organizationsControllerPostZoomChat(n,t,i,d,o,l){const u=await a.organizationsControllerPostZoomChat(n,t,i,d,o,l);return b(u,r(),s,e)},async organizationsControllerPutCompanyRoomChat(n,t,i,d){const o=await a.organizationsControllerPutCompanyRoomChat(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerReleaseNotice(n,t,i){const d=await a.organizationsControllerReleaseNotice(n,t,i);return b(d,r(),s,e)},async organizationsControllerSendInquiryEmail(n,t,i,d,o,l){const u=await a.organizationsControllerSendInquiryEmail(n,t,i,d,o,l);return b(u,r(),s,e)},async organizationsControllerSendQueryEmail(n,t,i,d,o,l,u){const c=await a.organizationsControllerSendQueryEmail(n,t,i,d,o,l,u);return b(c,r(),s,e)},async organizationsControllerUpdateAgreement(n,t,i){const d=await a.organizationsControllerUpdateAgreement(n,t,i);return b(d,r(),s,e)},async organizationsControllerUpdateAgreementPlan(n,t,i,d){const o=await a.organizationsControllerUpdateAgreementPlan(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerUpdateBillingStatus(n,t,i,d,o){const l=await a.organizationsControllerUpdateBillingStatus(n,t,i,d,o);return b(l,r(),s,e)},async organizationsControllerUpdateCompany(n,t,i){const d=await a.organizationsControllerUpdateCompany(n,t,i);return b(d,r(),s,e)},async organizationsControllerUpdateDeMaintenance(n,t,i){const d=await a.organizationsControllerUpdateDeMaintenance(n,t,i);return b(d,r(),s,e)},async organizationsControllerUpdateLearnerUser(n,t,i,d){const o=await a.organizationsControllerUpdateLearnerUser(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerUpdateLesson(n,t,i,d,o,l,u){const c=await a.organizationsControllerUpdateLesson(n,t,i,d,o,l,u);return b(c,r(),s,e)},async organizationsControllerUpdateLessonFeedback(n,t,i,d,o){const l=await a.organizationsControllerUpdateLessonFeedback(n,t,i,d,o);return b(l,r(),s,e)},async organizationsControllerUpdateLessonLearnerStatus(n,t,i,d,o,l){const u=await a.organizationsControllerUpdateLessonLearnerStatus(n,t,i,d,o,l);return b(u,r(),s,e)},async organizationsControllerUpdateLessonNote(n,t,i,d){const o=await a.organizationsControllerUpdateLessonNote(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerUpdateLessonStatusTeacher(n,t,i,d){const o=await a.organizationsControllerUpdateLessonStatusTeacher(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerUpdateMaintenance(n,t,i){const d=await a.organizationsControllerUpdateMaintenance(n,t,i);return b(d,r(),s,e)},async organizationsControllerUpdateNotice(n,t,i){const d=await a.organizationsControllerUpdateNotice(n,t,i);return b(d,r(),s,e)},async organizationsControllerUpdateSystemLearnerNoticeReadStatus(n,t,i){const d=await a.organizationsControllerUpdateSystemLearnerNoticeReadStatus(n,t,i);return b(d,r(),s,e)},async organizationsControllerUpdateTeacherConnectionId(n,t,i,d){const o=await a.organizationsControllerUpdateTeacherConnectionId(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerUpdateTeacherUser(n,t,i){const d=await a.organizationsControllerUpdateTeacherUser(n,t,i);return b(d,r(),s,e)},async organizationsControllerUpdateThemeOnLesson(n,t,i,d){const o=await a.organizationsControllerUpdateThemeOnLesson(n,t,i,d);return b(o,r(),s,e)},async organizationsControllerVerifyCognitoUserEmail(n){const t=await a.organizationsControllerVerifyCognitoUserEmail(n);return b(t,r(),s,e)},async sandboxControllerCognitoSandbox(n){const t=await a.sandboxControllerCognitoSandbox(n);return b(t,r(),s,e)},async sandboxControllerMailSandbox(n){const t=await a.sandboxControllerMailSandbox(n);return b(t,r(),s,e)},async teacherControllerGetMostRecentScheduledLesson(n,t){const i=await a.teacherControllerGetMostRecentScheduledLesson(n,t);return b(i,r(),s,e)},async teacherControllerGetNotUpdatedNoteLessons(n,t,i,d){const o=await a.teacherControllerGetNotUpdatedNoteLessons(n,t,i,d);return b(o,r(),s,e)},async teacherControllerGetUnaprovedLessons(n,t){const i=await a.teacherControllerGetUnaprovedLessons(n,t);return b(i,r(),s,e)},async userEventControllerLoggingEvent(n,t){const i=await a.userEventControllerLoggingEvent(n,t);return b(i,r(),s,e)},async userEventControllerLoggingEventByNotAuth(n,t){const i=await a.userEventControllerLoggingEventByNotAuth(n,t);return b(i,r(),s,e)}}};class _ extends d{inquiryControllerSendInquiryEmail(e,a){return h(this.configuration).inquiryControllerSendInquiryEmail(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerCreateActiveLearnerLog(e,a){return h(this.configuration).mobileAppControllerCreateActiveLearnerLog(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerCreateLessonLog(e,a,n,t,i){return h(this.configuration).mobileAppControllerCreateLessonLog(e,a,n,t,i).then((e=>e(this.axios,this.basePath)))}mobileAppControllerDeactivateLearnerEndpoints(e,a,n){return h(this.configuration).mobileAppControllerDeactivateLearnerEndpoints(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetApprovedLessons(e,a){return h(this.configuration).mobileAppControllerGetApprovedLessons(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetLearnerActiveEndpointCount(e,a,n){return h(this.configuration).mobileAppControllerGetLearnerActiveEndpointCount(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetLearnerByEmail(e,a,n){return h(this.configuration).mobileAppControllerGetLearnerByEmail(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetLearnerEndpoint(e,a,n){return h(this.configuration).mobileAppControllerGetLearnerEndpoint(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetLernerById(e,a,n){return h(this.configuration).mobileAppControllerGetLernerById(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetLoginedLearnerDetail(e){return h(this.configuration).mobileAppControllerGetLoginedLearnerDetail(e).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetMostRecentScheduledLesson(e){return h(this.configuration).mobileAppControllerGetMostRecentScheduledLesson(e).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetNoticeRead(e,a){return h(this.configuration).mobileAppControllerGetNoticeRead(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetNoticeUnreadCount(e,a){return h(this.configuration).mobileAppControllerGetNoticeUnreadCount(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetNotices(e,a,n){return h(this.configuration).mobileAppControllerGetNotices(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetPastLessons(e,a,n){return h(this.configuration).mobileAppControllerGetPastLessons(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetPushMsg(e,a){return h(this.configuration).mobileAppControllerGetPushMsg(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetPushMsgLog(e,a,n){return h(this.configuration).mobileAppControllerGetPushMsgLog(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetPushVapidPublicKey(e,a){return h(this.configuration).mobileAppControllerGetPushVapidPublicKey(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerGetStudyRecords(e,a){return h(this.configuration).mobileAppControllerGetStudyRecords(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerPostStudyRecordDrill(e,a){return h(this.configuration).mobileAppControllerPostStudyRecordDrill(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerPostStudyRecordStory(e,a){return h(this.configuration).mobileAppControllerPostStudyRecordStory(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerPutDrillRecord(e,a){return h(this.configuration).mobileAppControllerPutDrillRecord(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerPutNoticeRead(e,a,n,t){return h(this.configuration).mobileAppControllerPutNoticeRead(e,a,n,t).then((e=>e(this.axios,this.basePath)))}mobileAppControllerPutStudyRecord(e,a){return h(this.configuration).mobileAppControllerPutStudyRecord(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerRecordStudySession(e,a){return h(this.configuration).mobileAppControllerRecordStudySession(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerStartStudySession(e,a){return h(this.configuration).mobileAppControllerStartStudySession(e,a).then((e=>e(this.axios,this.basePath)))}mobileAppControllerUpdateLearnerConnectionId(e,a,n,t){return h(this.configuration).mobileAppControllerUpdateLearnerConnectionId(e,a,n,t).then((e=>e(this.axios,this.basePath)))}mobileAppControllerUpdateLearnerEmail(e,a,n,t){return h(this.configuration).mobileAppControllerUpdateLearnerEmail(e,a,n,t).then((e=>e(this.axios,this.basePath)))}mobileAppControllerUpdateLearnerEmailSendFlg(e,a,n,t){return h(this.configuration).mobileAppControllerUpdateLearnerEmailSendFlg(e,a,n,t).then((e=>e(this.axios,this.basePath)))}mobileAppControllerUpsertLearnerEndpoint(e,a,n,t){return h(this.configuration).mobileAppControllerUpsertLearnerEndpoint(e,a,n,t).then((e=>e(this.axios,this.basePath)))}mobileAppControllerUpsertPushMsg(e,a,n){return h(this.configuration).mobileAppControllerUpsertPushMsg(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerUpsertPushMsgLog(e,a,n){return h(this.configuration).mobileAppControllerUpsertPushMsgLog(e,a,n).then((e=>e(this.axios,this.basePath)))}mobileAppControllerVerifyCognitoUserEmail(e){return h(this.configuration).mobileAppControllerVerifyCognitoUserEmail(e).then((e=>e(this.axios,this.basePath)))}mobileAppControllerVerifyLearnerEmail(e,a,n,t,i){return h(this.configuration).mobileAppControllerVerifyLearnerEmail(e,a,n,t,i).then((e=>e(this.axios,this.basePath)))}organizationsControllerApprovalLessonTeacher(e,a,n){return h(this.configuration).organizationsControllerApprovalLessonTeacher(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerCancelLesson(e,a,n,t){return h(this.configuration).organizationsControllerCancelLesson(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerChangeLessonTeacher(e,a,n,t){return h(this.configuration).organizationsControllerChangeLessonTeacher(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateAgreement(e,a,n){return h(this.configuration).organizationsControllerCreateAgreement(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateCompany(e,a,n){return h(this.configuration).organizationsControllerCreateCompany(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateCompanyUser(e,a,n){return h(this.configuration).organizationsControllerCreateCompanyUser(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateErrorLog(e,a){return h(this.configuration).organizationsControllerCreateErrorLog(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateLearnerUser(e,a,n,t){return h(this.configuration).organizationsControllerCreateLearnerUser(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateLesson(e,a,n,t,i,r){return h(this.configuration).organizationsControllerCreateLesson(e,a,n,t,i,r).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateLessonFee(e,a,n){return h(this.configuration).organizationsControllerCreateLessonFee(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateLessonFeeHistory(e,a,n){return h(this.configuration).organizationsControllerCreateLessonFeeHistory(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateMaintenance(e,a){return h(this.configuration).organizationsControllerCreateMaintenance(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateManagerUser(e,a,n){return h(this.configuration).organizationsControllerCreateManagerUser(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateNotice(e,a,n){return h(this.configuration).organizationsControllerCreateNotice(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateNoticeCompany(e,a){return h(this.configuration).organizationsControllerCreateNoticeCompany(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerCreateTeacherUser(e,a,n){return h(this.configuration).organizationsControllerCreateTeacherUser(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteAgreement(e,a,n){return h(this.configuration).organizationsControllerDeleteAgreement(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteCompany(e,a){return h(this.configuration).organizationsControllerDeleteCompany(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteCompanyUser(e,a,n){return h(this.configuration).organizationsControllerDeleteCompanyUser(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteLearnerUser(e,a,n){return h(this.configuration).organizationsControllerDeleteLearnerUser(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteLessonFeeOption(e,a){return h(this.configuration).organizationsControllerDeleteLessonFeeOption(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteLessonLearner(e,a,n,t){return h(this.configuration).organizationsControllerDeleteLessonLearner(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteMaintenance(e,a,n){return h(this.configuration).organizationsControllerDeleteMaintenance(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteManagerUser(e,a){return h(this.configuration).organizationsControllerDeleteManagerUser(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteMonthlyAgreement(e,a,n){return h(this.configuration).organizationsControllerDeleteMonthlyAgreement(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteNotice(e,a){return h(this.configuration).organizationsControllerDeleteNotice(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerDeleteTeacherUser(e,a){return h(this.configuration).organizationsControllerDeleteTeacherUser(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerExistsLearner(e,a){return h(this.configuration).organizationsControllerExistsLearner(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerExistsLearnerInPlan(e,a){return h(this.configuration).organizationsControllerExistsLearnerInPlan(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetAvailableCompanies(e){return h(this.configuration).organizationsControllerGetAvailableCompanies(e).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetCompany(e,a){return h(this.configuration).organizationsControllerGetCompany(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetCompanyList(e,a,n,t,i,r,s,d){return h(this.configuration).organizationsControllerGetCompanyList(e,a,n,t,i,r,s,d).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetCompanyPlans(e,a){return h(this.configuration).organizationsControllerGetCompanyPlans(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetCompanyUserList(e,a,n,t){return h(this.configuration).organizationsControllerGetCompanyUserList(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetConnectionIdByRoomId(e,a,n){return h(this.configuration).organizationsControllerGetConnectionIdByRoomId(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetEachLearnerStudyRecordsPdf(e,a,n){return h(this.configuration).organizationsControllerGetEachLearnerStudyRecordsPdf(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetFutureLessonList(e,a,n,t,i,r,s,d,o,l,u,c){return h(this.configuration).organizationsControllerGetFutureLessonList(e,a,n,t,i,r,s,d,o,l,u,c).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetFutureLessonListBgd(e,a,n,t,i,r,s,d,o,l,u,c,m){return h(this.configuration).organizationsControllerGetFutureLessonListBgd(e,a,n,t,i,r,s,d,o,l,u,c,m).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLatestPastLessonNote(e,a,n,t,i,r,s){return h(this.configuration).organizationsControllerGetLatestPastLessonNote(e,a,n,t,i,r,s).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLeanerUserListByLesson(e,a,n){return h(this.configuration).organizationsControllerGetLeanerUserListByLesson(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLearnerStudyRecords(e,a,n){return h(this.configuration).organizationsControllerGetLearnerStudyRecords(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLearnerUserList(e,a,n,t,i,r,s,d){return h(this.configuration).organizationsControllerGetLearnerUserList(e,a,n,t,i,r,s,d).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLesson(e,a,n,t,i,r,s,d){return h(this.configuration).organizationsControllerGetLesson(e,a,n,t,i,r,s,d).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonByCompanyNLessonID(e,a,n){return h(this.configuration).organizationsControllerGetLessonByCompanyNLessonID(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonByRoomId(e,a,n){return h(this.configuration).organizationsControllerGetLessonByRoomId(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonFeedback(e,a,n,t,i,r,s,d){return h(this.configuration).organizationsControllerGetLessonFeedback(e,a,n,t,i,r,s,d).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonFeedbackList(e,a,n,t,i,r,s,d,o,l,u){return h(this.configuration).organizationsControllerGetLessonFeedbackList(e,a,n,t,i,r,s,d,o,l,u).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonFeedbackListBgd(e,a,n,t,i,r,s,d,o,l,u){return h(this.configuration).organizationsControllerGetLessonFeedbackListBgd(e,a,n,t,i,r,s,d,o,l,u).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonFees(e){return h(this.configuration).organizationsControllerGetLessonFees(e).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonListBgd(e,a,n,t,i,r,s,d,o,l,u,c,m){return h(this.configuration).organizationsControllerGetLessonListBgd(e,a,n,t,i,r,s,d,o,l,u,c,m).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonNote(e,a,n,t,i,r,s){return h(this.configuration).organizationsControllerGetLessonNote(e,a,n,t,i,r,s).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLessonNoteList(e,a,n,t,i,r){return h(this.configuration).organizationsControllerGetLessonNoteList(e,a,n,t,i,r).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetLoginUserInfo(e){return h(this.configuration).organizationsControllerGetLoginUserInfo(e).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetMaintenance(e,a){return h(this.configuration).organizationsControllerGetMaintenance(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetManagerUserList(e,a,n){return h(this.configuration).organizationsControllerGetManagerUserList(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetNotice(e,a){return h(this.configuration).organizationsControllerGetNotice(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetNoticeCompany(e,a,n){return h(this.configuration).organizationsControllerGetNoticeCompany(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetNoticeCompanyForManager(e,a){return h(this.configuration).organizationsControllerGetNoticeCompanyForManager(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetNoticeList(e,a,n,t){return h(this.configuration).organizationsControllerGetNoticeList(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetOperationalStatus(e){return h(this.configuration).organizationsControllerGetOperationalStatus(e).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetPastLessonList(e,a,n,t,i,r,s,d,o,l){return h(this.configuration).organizationsControllerGetPastLessonList(e,a,n,t,i,r,s,d,o,l).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetPastLessonListBgd(e,a,n,t,i,r,s,d,o,l,u){return h(this.configuration).organizationsControllerGetPastLessonListBgd(e,a,n,t,i,r,s,d,o,l,u).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetPaymentCompany(e,a,n,t,i,r,s,d){return h(this.configuration).organizationsControllerGetPaymentCompany(e,a,n,t,i,r,s,d).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetPaymentCompanyList(e,a,n,t,i,r,s,d,o,l){return h(this.configuration).organizationsControllerGetPaymentCompanyList(e,a,n,t,i,r,s,d,o,l).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetPaymentLearnerDetails(e,a,n,t){return h(this.configuration).organizationsControllerGetPaymentLearnerDetails(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetPaymentLearnerList(e,a,n,t,i,r,s,d,o){return h(this.configuration).organizationsControllerGetPaymentLearnerList(e,a,n,t,i,r,s,d,o).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetReportStudyRecords(e,a,n,t){return h(this.configuration).organizationsControllerGetReportStudyRecords(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetStudyRecords(e,a,n){return h(this.configuration).organizationsControllerGetStudyRecords(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetSystemLearnerNotice(e,a){return h(this.configuration).organizationsControllerGetSystemLearnerNotice(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetTargetMonthPaymentCompanyList(e,a,n){return h(this.configuration).organizationsControllerGetTargetMonthPaymentCompanyList(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetTeacherByTeacherId(e,a){return h(this.configuration).organizationsControllerGetTeacherByTeacherId(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetTeacherLessonFee(e,a,n,t,i,r,s){return h(this.configuration).organizationsControllerGetTeacherLessonFee(e,a,n,t,i,r,s).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetTeacherLessonFeeList(e,a,n,t,i,r){return h(this.configuration).organizationsControllerGetTeacherLessonFeeList(e,a,n,t,i,r).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetTeacherUserList(e,a,n,t,i,r,s){return h(this.configuration).organizationsControllerGetTeacherUserList(e,a,n,t,i,r,s).then((e=>e(this.axios,this.basePath)))}organizationsControllerGetZoomToken(e,a){return h(this.configuration).organizationsControllerGetZoomToken(e,a).then((e=>e(this.axios,this.basePath)))}organizationsControllerPostZoomChat(e,a,n,t,i,r){return h(this.configuration).organizationsControllerPostZoomChat(e,a,n,t,i,r).then((e=>e(this.axios,this.basePath)))}organizationsControllerPutCompanyRoomChat(e,a,n,t){return h(this.configuration).organizationsControllerPutCompanyRoomChat(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerReleaseNotice(e,a,n){return h(this.configuration).organizationsControllerReleaseNotice(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerSendInquiryEmail(e,a,n,t,i,r){return h(this.configuration).organizationsControllerSendInquiryEmail(e,a,n,t,i,r).then((e=>e(this.axios,this.basePath)))}organizationsControllerSendQueryEmail(e,a,n,t,i,r,s){return h(this.configuration).organizationsControllerSendQueryEmail(e,a,n,t,i,r,s).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateAgreement(e,a,n){return h(this.configuration).organizationsControllerUpdateAgreement(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateAgreementPlan(e,a,n,t){return h(this.configuration).organizationsControllerUpdateAgreementPlan(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateBillingStatus(e,a,n,t,i){return h(this.configuration).organizationsControllerUpdateBillingStatus(e,a,n,t,i).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateCompany(e,a,n){return h(this.configuration).organizationsControllerUpdateCompany(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateDeMaintenance(e,a,n){return h(this.configuration).organizationsControllerUpdateDeMaintenance(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateLearnerUser(e,a,n,t){return h(this.configuration).organizationsControllerUpdateLearnerUser(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateLesson(e,a,n,t,i,r,s){return h(this.configuration).organizationsControllerUpdateLesson(e,a,n,t,i,r,s).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateLessonFeedback(e,a,n,t,i){return h(this.configuration).organizationsControllerUpdateLessonFeedback(e,a,n,t,i).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateLessonLearnerStatus(e,a,n,t,i,r){return h(this.configuration).organizationsControllerUpdateLessonLearnerStatus(e,a,n,t,i,r).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateLessonNote(e,a,n,t){return h(this.configuration).organizationsControllerUpdateLessonNote(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateLessonStatusTeacher(e,a,n,t){return h(this.configuration).organizationsControllerUpdateLessonStatusTeacher(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateMaintenance(e,a,n){return h(this.configuration).organizationsControllerUpdateMaintenance(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateNotice(e,a,n){return h(this.configuration).organizationsControllerUpdateNotice(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateSystemLearnerNoticeReadStatus(e,a,n){return h(this.configuration).organizationsControllerUpdateSystemLearnerNoticeReadStatus(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateTeacherConnectionId(e,a,n,t){return h(this.configuration).organizationsControllerUpdateTeacherConnectionId(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateTeacherUser(e,a,n){return h(this.configuration).organizationsControllerUpdateTeacherUser(e,a,n).then((e=>e(this.axios,this.basePath)))}organizationsControllerUpdateThemeOnLesson(e,a,n,t){return h(this.configuration).organizationsControllerUpdateThemeOnLesson(e,a,n,t).then((e=>e(this.axios,this.basePath)))}organizationsControllerVerifyCognitoUserEmail(e){return h(this.configuration).organizationsControllerVerifyCognitoUserEmail(e).then((e=>e(this.axios,this.basePath)))}sandboxControllerCognitoSandbox(e){return h(this.configuration).sandboxControllerCognitoSandbox(e).then((e=>e(this.axios,this.basePath)))}sandboxControllerMailSandbox(e){return h(this.configuration).sandboxControllerMailSandbox(e).then((e=>e(this.axios,this.basePath)))}teacherControllerGetMostRecentScheduledLesson(e,a){return h(this.configuration).teacherControllerGetMostRecentScheduledLesson(e,a).then((e=>e(this.axios,this.basePath)))}teacherControllerGetNotUpdatedNoteLessons(e,a,n,t){return h(this.configuration).teacherControllerGetNotUpdatedNoteLessons(e,a,n,t).then((e=>e(this.axios,this.basePath)))}teacherControllerGetUnaprovedLessons(e,a){return h(this.configuration).teacherControllerGetUnaprovedLessons(e,a).then((e=>e(this.axios,this.basePath)))}userEventControllerLoggingEvent(e,a){return h(this.configuration).userEventControllerLoggingEvent(e,a).then((e=>e(this.axios,this.basePath)))}userEventControllerLoggingEventByNotAuth(e,a){return h(this.configuration).userEventControllerLoggingEventByNotAuth(e,a).then((e=>e(this.axios,this.basePath)))}}const v=function(e){const a=function(e){return{lessonControllerGetUploadUrlOfRecordedFile:async function(a,n,t,i,r){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};u("lessonControllerGetUploadUrlOfRecordedFile","lessonId",a),u("lessonControllerGetUploadUrlOfRecordedFile","roomId",n),u("lessonControllerGetUploadUrlOfRecordedFile","timestamp",t),u("lessonControllerGetUploadUrlOfRecordedFile","mimeType",i),u("lessonControllerGetUploadUrlOfRecordedFile","targetUserId",r);const d=new URL("/api/lesson/record/upload-url",l);let o;e&&(o=e.baseOptions);const f={method:"GET",...o,...s},b={},h={};await c(b,e),void 0!==a&&(h["lesson-id"]=a),void 0!==n&&(h["room-id"]=n),void 0!==t&&(h.timestamp=t),void 0!==i&&(h.mimeType=i),void 0!==r&&(h["target-user-id"]=r),m(d,h,s.query);let _=o&&o.headers?o.headers:{};return f.headers={...b,..._,...s.headers},{url:p(d),options:f}}}}(e);return{async lessonControllerGetUploadUrlOfRecordedFile(n,t,i,d,o,l){const u=await a.lessonControllerGetUploadUrlOfRecordedFile(n,t,i,d,o,l);return b(u,r(),s,e)}}};class y extends d{lessonControllerGetUploadUrlOfRecordedFile(e,a,n,t,i,r){return v(this.configuration).lessonControllerGetUploadUrlOfRecordedFile(e,a,n,t,i,r).then((e=>e(this.axios,this.basePath)))}}const g=function(e){const a=function(e){return{resourcesControllerGetBaseEndpoint:async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/resources/base-endpoint",l);let t;e&&(t=e.baseOptions);const i={method:"GET",...t,...a},r={};await c(r,e),m(n,{},a.query);let s=t&&t.headers?t.headers:{};return i.headers={...r,...s,...a.headers},{url:p(n),options:i}},resourcesControllerGetStoryExercisesEndpoint:async function(a){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u("resourcesControllerGetStoryExercisesEndpoint","storyNo",a);const t=new URL("/api/resources/story-exercises-endpoint",l);let i;e&&(i=e.baseOptions);const r={method:"GET",...i,...n},s={},d={};await c(s,e),void 0!==a&&(d.storyNo=a),m(t,d,n.query);let o=i&&i.headers?i.headers:{};return r.headers={...s,...o,...n.headers},{url:p(t),options:r}}}}(e);return{async resourcesControllerGetBaseEndpoint(n){const t=await a.resourcesControllerGetBaseEndpoint(n);return b(t,r(),s,e)},async resourcesControllerGetStoryExercisesEndpoint(n,t){const i=await a.resourcesControllerGetStoryExercisesEndpoint(n,t);return b(i,r(),s,e)}}};class w extends d{resourcesControllerGetBaseEndpoint(e){return g(this.configuration).resourcesControllerGetBaseEndpoint(e).then((e=>e(this.axios,this.basePath)))}resourcesControllerGetStoryExercisesEndpoint(e,a){return g(this.configuration).resourcesControllerGetStoryExercisesEndpoint(e,a).then((e=>e(this.axios,this.basePath)))}}var T=n(21963);const k=async()=>{let e="";try{var a,n;e=null!==(a=null===(n=(await T.N.currentAuthenticatedUser()).getSignInUserSession())||void 0===n?void 0:n.getIdToken().getJwtToken())&&void 0!==a?a:""}catch(t){console.log("getToken error: ",t)}return e},E=async()=>({headers:{Authorization:"Bearer ".concat(k())}}),I=new _({isJsonMime:e=>{const a=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'");return null!==e&&(a.test(e)||"application/json-patch+json"===e.toLowerCase())},basePath:t.ZB,baseOptions:E()}),x=new w({isJsonMime:e=>{const a=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'");return null!==e&&(a.test(e)||"application/json-patch+json"===e.toLowerCase())},basePath:t.ZB,baseOptions:E()}),S=(new y({isJsonMime:e=>{const a=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'");return null!==e&&(a.test(e)||"application/json-patch+json"===e.toLowerCase())},basePath:t.ZB,baseOptions:E()}),async e=>(await I.getAxiosOptions(),await e())),A=async e=>(await x.getAxiosOptions(),await e())},58649:(e,a,n)=>{"use strict";n.d(a,{c:()=>fe});var t=n(90704),i=n(36592),r=n(7042),s=n(47275),d=n(32879),o=n(55),l=n(47914),u=n(27770),c=n(41418),m=n(37702),f=n(93261),p=n(90072),b=n(7344),h=n(18859),_=n(26435),v=n(73035),y=n(19959),g=n(70679),w=n(70674),T=n(17141),k=n(20644),E=n(53154),I=n(1075),x=n(16037),S=n(62030),A=n(31752),q=n(26742),C=n(82264),F=n(68611),j=n(57339),D=n(66647),Z=n(63386),N=n(7476),O=n(78270),R=n(21333),z=n(51037),U=n(91624),P=n(29026),H=n(37474),B=n(46052),M=n(45317),K=n(12835),L=n(53564),V=n(63459),Q=n(72721),W=n(68972),G=n(66852),X=n(46724),Y=n(1375),J=n(49658),$=n(66379),ee=n(52355),ae=n(70035),ne=n(16647),te=n(82040),ie=n(5241),re=n(17505),se=n(89368),de=n(75830),oe=n(32704),le=n(43018),ue=n(94689),ce=n(44532),me=n(59963);const fe={walk1:n(72003),walk2:n(10024),chapter_selected:n(16078),menu_episode:n(85792),room_in_white:t,navigate_white:i,home_icon:r,home_emma:s,home_notification_window:d,home_story_button:o,home_selfstudy_button:l,home_talk_button:m,home_speech_bubble:u,home_background:c,bottom_story_mode:p,bottom_self_learning:b,bottom_japan_online2:h,circle_green:_,x:v,arrow_right_white2:y,circle_play_outline_white:g,zoom:w,sound_conversation_orange:T,btn_pause:k,btn_play:E,ski094_1_01:I,btn_01:x,btn_02:S,step1:A,step1_icon:q,step1_icon_selected:C,step2:F,step2_icon:j,step2_icon_selected:D,step3:Z,step3_icon:N,step3_icon_selected:O,step4_icon_selected:z,step4:R,kana_icon_s:U,baseline_translate_black_48:P,baseline_translate_black_lite:H,tips_orange:B,frames:M,book_orange:K,img_comment:L,heart_red:V,arrow_right_white:Q,arrow_left_white:W,hutaba:G,btn_fav01:X,btn_fav02:Y,Q_2x:J,ico_menu01_2x:$,bg_qa_img_2x:ee,qa_main_bg02_2x:ae,sl_vocabulary:ne,sl_grammar:te,sl_clock:ie,sl_calendar:re,sl_practice:se,sl_achievement:de,self_learnling_white:oe,settings_white:le,arrow_right_grey:ue,logo01_tate:ce,cancel_white:me,ico_copper_2x:n(78518),ico_silver_2x:n(82354),ico_gold_2x:n(64041),achievement_emma:n(49043),img_clock01:n(3792),circle_play_orange:n(27389),bottom_notification:n(32634),edit_grey:n(72685),arrow_right_black:n(51415),otukaresama:n(91968),test_button:f}},63867:(e,a,n)=>{"use strict";n.d(a,{_k:()=>i,oz:()=>r});var t=n(65043);const i={audioInstace:new Audio},r=(0,t.createContext)(i)},63057:(e,a,n)=>{"use strict";n.d(a,{Ot:()=>t,a0:()=>s,am:()=>u,gj:()=>l,m8:()=>r,po:()=>i});const t=["\u65e5","\u6708","\u706b","\u6c34","\u6728","\u91d1","\u571f"],i=e=>{if(!e)return"";let a=new Date(e);return d(a)},r=e=>{if(!e)return"";let a=new Date(e);return o(a)},s=e=>{if(!e)return"";let a=new Date(e);return d(a)+" "+o(a)},d=e=>e.getFullYear()+"-"+("00"+(e.getMonth()+1)).slice(-2)+"-"+("00"+e.getDate()).slice(-2),o=e=>("00"+e.getHours()).slice(-2)+":"+("00"+e.getMinutes()).slice(-2),l=e=>{if(e<60)return"00 : ".concat(e);const a=Math.floor(e/60),n=e%60;return"".concat(a," :")+(n>10?"".concat(n):" 0".concat(n))},u=(e,a)=>{try{const n=new Date(e);if(isNaN(n.getTime()))throw new Error("Invalid datetime string");const t={month:"long",day:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"};return"ja"===a?new Intl.DateTimeFormat("ja-JP",t).format(n):new Intl.DateTimeFormat("en-US",t).format(n)}catch(n){return console.error("Error formatting datetime:",n),"Invalid datetime"}}},84674:(e,a,n)=>{"use strict";n.d(a,{Rx:()=>u,UH:()=>o,eR:()=>l,k:()=>d,l$:()=>m,sM:()=>r,yW:()=>i,yq:()=>s,zY:()=>c});var t=n(37663);const i=()=>{let e="";return localStorage.hasOwnProperty(t.l.storiesData)?e=String(localStorage.getItem(t.l.storiesData)):(e=JSON.stringify(n(39913)),localStorage.setItem(t.l.storiesData,e)),JSON.parse(e)},r=(e,a,i)=>{const r=[[[n(41276),n(93403),n(5330)],[n(1209),n(10206),n(63127)],[n(96350),n(63289),n(35976)],[n(35139),n(25252),n(42405)],[n(84264),n(1431),n(48510)],[n(85765),n(12282),n(23459)],[n(19322),n(92805),n(75588)],[n(33887),n(53840),n(58593)],[n(34404),n(44291),n(61626)],[n(1940),n(69235),n(5930)],[n(92463),n(97632),n(8209)],[n(72886),n(25169),n(11776)],[n(17265),n(64982),n(1615)],[n(91840),n(4015),n(23734)],[n(1659),n(45116),n(69181)],[n(16626),n(23133),n(39900)]],[[n(49233),n(96950),n(33583)],[n(50260),n(1203),n(54250)],[n(40783),n(45952),n(56529)],[n(64946),n(71453),n(88220)],[n(81981),n(77074),n(90651)],[n(23808),n(52335),n(55702)],[n(49979),n(93436),n(17501)],[n(82958),n(5353),n(73112)],[n(59465),n(87982),n(24295)],[n(70303),n(91728),n(3361)],[n(50980),n(23491),n(74842)],[n(46337),n(59334),n(45375)],[n(75174),n(62177),n(71888)],[n(61579),n(40812),n(90733)],[n(78384),n(58431),n(64838)],[n(8685),n(32002),n(29547)]]];return localStorage.setItem(t.l.sectionData,JSON.stringify(r[e][a][i])),r[e][a][i]},s=(e,a)=>{const i=[[n(4575),n(37820),n(45941),n(25146),n(14099),n(33248),n(59081),n(55998),n(97159),n(69621),n(19356),n(53247),n(79158),n(45801),n(82528),n(68179)],[n(34020),n(61735),n(99070),n(30129),n(47592),n(27899),n(38338),n(1077),n(67164),n(40972),n(51845),n(93062),n(52783),n(64272),n(64272),n(64272),n(2393),n(47338)]];return localStorage.setItem(t.l.sectionData,JSON.stringify(i[e][a])),i[e][a]},d=e=>{const a=[n(94271),n(21662)];return localStorage.setItem(t.l.sectionData,JSON.stringify(a[e])),a[e]},o=()=>{let e;return e=n(90916),e},l=()=>{let e;return e=n(9380),e},u=()=>{let e;return e=n(36491),e},c=()=>{let e="";return e=localStorage.hasOwnProperty(t.l.QAData)?String(localStorage.getItem(t.l.QAData)):JSON.stringify(f),JSON.parse(e)},m=()=>{let e="en",a="";switch(localStorage.hasOwnProperty(t.l.systemLanguage)||localStorage.setItem(t.l.systemLanguage,"en"),e=String(localStorage.getItem(t.l.systemLanguage)),e){case"ja":a=n(9115);break;case"en":a=n(10565);break;case"vn":a=n(77490);break;default:localStorage.setItem(t.l.systemLanguage,"en"),a=n(10565)}return Object(a)},f=[{category:{ja:"\u4e88\u7d04\u30fb\u30ad\u30e3\u30f3\u30bb\u30eb",en:"Reservation & Cancellation",vn:"\u0110\u0103ng k\xfd\u30fbH\u1ee7y b\u1ecf"},qaList:[{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u30ad\u30e3\u30f3\u30bb\u30eb\u53ef\u80fd\u6642\u9593\u3092\u904e\u304e\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306f\u3001\u3069\u3046\u3057\u305f\u3089\u3044\u3044\u3067\u3059\u304b\u3002",en:"What should I do if it is past the time I can cancel the lesson?",vn:"T\xf4i n\xean l\xe0m th\u1ebf n\xe0o trong tr\u01b0\u1eddng h\u1ee3p \u0111\xe3 qu\xe1 th\u1eddi gian c\xf3 th\u1ec3 h\u1ee7y b\u1ecf b\xe0i h\u1ecdc?"},answer:{ja:"\u7279\u306b\u4f55\u304b\u3057\u3066\u3044\u305f\u3060\u304f\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u9023\u7d61\u3082\u3057\u306a\u304f\u3066\u5927\u4e08\u592b\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u4e88\u7d04\u3057\u305f\u30ec\u30c3\u30b9\u30f3\u5206\u306e\u30ec\u30c3\u30b9\u30f3\u5b9f\u65bd\u56de\u6570\u306f\u6d88\u8cbb\u3055\u308c\u307e\u3059\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002",en:"You do not need to do anything in particular. No need to contact us.However, please note that the number of lessons for the reserved lesson will be used up.",vn:"B\u1ea1n kh\xf4ng c\u1ea7n ph\u1ea3i l\xe0m b\u1ea5t c\u1ee9 \u0111i\u1ec1u g\xec c\u1ee5 th\u1ec3. Kh\xf4ng c\u1ea7n li\xean h\u1ec7 v\u1edbi ch\xfang t\xf4i. Tuy nhi\xean, xin l\u01b0u \xfd r\u1eb1ng s\u1ed1 l\u01b0\u1ee3ng b\xe0i h\u1ecdc cho b\xe0i h\u1ecdc d\xe0nh ri\xeang s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng h\u1ebft."},isInquiry:!1},{question:{ja:"\u4e88\u7d04\u3057\u305f\u30ec\u30c3\u30b9\u30f3\u3092\u7121\u65ad\u3067\u6b20\u5e2d\u3057\u305f\u5834\u5408\u3001\u30da\u30ca\u30eb\u30c6\u30a3\u306f\u3042\u308a\u307e\u3059\u304b\u3002",en:"Are there any penalties if I miss a lesson without notice?",vn:"Tr\u01b0\u1eddng h\u1ee3p t\xf4i v\u1eafng m\u1eb7t b\xe0i h\u1ecdc \u0111\xe3 \u0111\u0103ng k\xfd m\xe0 kh\xf4ng b\xe1o tr\u01b0\u1edbc, th\xec t\xf4i c\xf3 b\u1ecb ph\u1ea1t kh\xf4ng?"},answer:{ja:"\u304a\u5ba2\u69d8\u306e\u7121\u65ad\u6b20\u5e2d\u306b\u3088\u308b\u30da\u30ca\u30eb\u30c6\u30a3\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u4e88\u7d04\u3055\u308c\u305f\u30ec\u30c3\u30b9\u30f3\u5206\u306e\u30ec\u30c3\u30b9\u30f3\u5b9f\u65bd\u56de\u6570\u306f\u6d88\u8cbb\u3055\u308c\u307e\u3059\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002",en:"There is no penalty for your unannounced absence. However, please note that the number of lessons for the registered lesson will still be used.",vn:"Kh\xf4ng c\xf3 h\xecnh ph\u1ea1t cho s\u1ef1 v\u1eafng m\u1eb7t kh\xf4ng b\xe1o tr\u01b0\u1edbc c\u1ee7a b\u1ea1n. Tuy nhi\xean, xin l\u01b0u \xfd r\u1eb1ng s\u1ed1 l\u01b0\u1ee3ng b\xe0i h\u1ecdc cho b\xe0i h\u1ecdc \u0111\xe3 \u0111\u0103ng k\xfd s\u1ebd v\u1eabn \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng."},isInquiry:!1},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u4e2d\u306e\u30c1\u30e3\u30c3\u30c8\u306e\u5c65\u6b74\u306f\u5f8c\u3067\u898b\u8fd4\u305b\u307e\u3059\u304b\u3002",en:"Can I look back at the history of the chats during the lesson later?",vn:"Sau \u0111\xf3 t\xf4i c\xf3 th\u1ec3 xem l\u1ea1i l\u1ecbch s\u1eed tr\xf2 chuy\u1ec7n trong gi\u1edd h\u1ecdc kh\xf4ng?"},answer:{ja:"\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u3002\u30ec\u30c3\u30b9\u30f3\u4e2d\u306e\u30c1\u30e3\u30c3\u30c8\u306e\u5c65\u6b74\u306f\u3001\u30ec\u30c3\u30b9\u30f3\u7d42\u4e86\u5f8c\u6d88\u3048\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u5185\u5bb9\u3092\u6b8b\u3057\u305f\u3044\u5834\u5408\u306f\u3054\u81ea\u8eab\u3067\u30e1\u30e2\u3092\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002",en:"We are sorry. The chat history during the lesson will be deleted after the lesson is over. If you want to keep the contents, please make a note of it by yourself.",vn:"R\u1ea5t ti\u1ebfc. L\u1ecbch s\u1eed tr\xf2 chuy\u1ec7n trong gi\u1edd h\u1ecdc s\u1ebd bi\u1ebfn m\u1ea5t sau khi b\xe0i h\u1ecdc k\u1ebft th\xfac. Tr\u01b0\u1eddng h\u1ee3p n\u1ebfu mu\u1ed1n l\u01b0u l\u1ea1i n\u1ed9i dung, vui l\xf2ng h\xe3y t\u1ef1 ghi ch\xfa l\u1ea1i."},isInquiry:!1},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u306e\u9014\u4e2d\u3067\u3082\u9000\u5e2d\u3067\u304d\u307e\u3059\u304b\u3002",en:"Can I leave the lesson in the middle of the lesson?",vn:"T\u1ed1i c\xf3 th\u1ec3 r\u1eddi kh\u1ecfi v\u1ecb tr\xed v\xe0o l\xfac gi\u1eefa ch\u1eebng c\u1ee7a b\xe0i h\u1ecdc \u0111\u01b0\u1ee3c kh\xf4ng?"},answer:{ja:"\u53ef\u80fd\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u9014\u4e2d\u3067\u30ec\u30c3\u30b9\u30f3\u3092\u7d42\u4e86\u3057\u305f\u5834\u5408\u3067\u3082\u30ec\u30c3\u30b9\u30f3\u5b9f\u65bd\u56de\u6570\u306f\u6d88\u5316\u3055\u308c\u307e\u3059\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002",en:"Yes, you can. However, please note that your number of lessons will be used up even if you leave the lesson in the middle.",vn:"V\xe2ng, b\u1ea1n c\xf3 th\u1ec3. Tuy nhi\xean, xin l\u01b0u \xfd r\u1eb1ng s\u1ed1 l\u01b0\u1ee3ng b\xe0i h\u1ecdc c\u1ee7a b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng h\u1ebft ngay c\u1ea3 khi b\u1ea1n b\u1ecf h\u1ecdc gi\u1eefa ch\u1eebng."},isInquiry:!1},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u3078\u306e\u5165\u5ba4\u306f\u4f55\u5206\u524d\u304b\u3089\u3067\u304d\u307e\u3059\u304b\u3002",en:"How many minutes before the lesson can I enter the room?",vn:"C\xf3 th\u1ec3 v\xe0o ph\xf2ng h\u1ecdc tr\u01b0\u1edbc m\u1ea5y ph\xfat?"},answer:{ja:"\u958b\u59cb\u6642\u95935\u5206\u524d\u304b\u3089\u5f85\u6a5f\u5ba4\u306b\u5165\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u958b\u59cb\u6642\u9593\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u3001\u305d\u306e\u307e\u307e\u30ec\u30c3\u30b9\u30f3\u304c\u59cb\u307e\u308a\u307e\u3059\u3002",en:"You can enter the waiting room 5 minutes before the start time. When it is time to start, the lesson will begin.",vn:"B\u1ea1n c\xf3 th\u1ec3 v\xe0o ph\xf2ng ch\u1edd tr\u01b0\u1edbc khi gi\u1edd h\u1ecdc b\u1eaft \u0111\u1ea7u 5 ph\xfat. Khi \u0111\u1ebfn th\u1eddi gian b\u1eaft \u0111\u1ea7u, th\xec b\xe0i h\u1ecdc s\u1ebd b\u1eaft \u0111\u1ea7u \u0111\xfang nh\u01b0 d\u1ef1 ki\u1ebfn ."},isInquiry:!1},{question:{ja:"\u3069\u3046\u3084\u3063\u3066\u30ec\u30c3\u30b9\u30f3\u3092\u958b\u59cb\u3057\u307e\u3059\u304b\u3002",en:"How do I start the lesson?",vn:"L\xe0m th\u1ebf n\xe0o \u0111\u1ec3 b\u1eaft \u0111\u1ea7u b\xe0i h\u1ecdc?"},answer:{ja:"\u30ec\u30c3\u30b9\u30f3\u306f\u3001TOP\u753b\u9762\u306e\u4e00\u756a\u4e0b\u306e\u300c\u5165\u5ba4\u3059\u308b\u300d\u30dc\u30bf\u30f3\u304b\u3089\u3001\u307e\u305f\u306f\u30ec\u30c3\u30b9\u30f3\u753b\u9762\u306e\u300c\u3053\u308c\u304b\u3089\u306e\u30ec\u30c3\u30b9\u30f3\u300d\u306e\u30ec\u30c3\u30b9\u30f3\u60c5\u5831\u5185\u306e\u300c\u5165\u5ba4\u3059\u308b\u300d\u30dc\u30bf\u30f3\u304b\u3089\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002",en:"You can start a lesson from the 'Enter the room' button at the bottom of the homescreen, or from the 'Enter the room' button in the applicable lesson information in the 'Upcoming lessons' section of the lesson screen.",vn:"B\xe0i h\u1ecdc \u0111\u01b0\u1ee3c b\u1eaft \u0111\u1ea7u b\u1eb1ng n\xfat \u300cV\xe0o ph\xf2ng\u300d\u1edf ph\xeda d\u01b0\u1edbi c\xf9ng c\u1ee7a m\xe0n h\xecnh TOP, ho\u1eb7c t\u1eeb n\xfat \u300cV\xe0o ph\xf2ng\u300dtrong ph\u1ea7n th\xf4ng tin b\xe0i h\u1ecdc c\u1ee7a\u300cB\xe0i h\u1ecdc ti\u1ebfp theo\u300dtr\xean m\xe0n h\xecnh b\xe0i h\u1ecdc."},isInquiry:!1},{question:{ja:"\u3069\u3046\u3084\u3063\u3066\u30ec\u30c3\u30b9\u30f3\u3092\u7d42\u4e86\u3057\u307e\u3059\u304b\u3002",en:"How do I end the lesson?",vn:"L\xe0m th\u1ebf n\xe0o \u0111\u1ec3 k\u1ebft th\xfac b\xe0i h\u1ecdc?"},answer:{ja:"\u30ec\u30c3\u30b9\u30f3\u53f3\u4e0b\u30e1\u30cb\u30e5\u30fc\u306e\u300cRoom Out\u300d\u30dc\u30bf\u30f3\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3068\u3001\u30ec\u30c3\u30b9\u30f3\u3092\u7d42\u4e86\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30ec\u30c3\u30b9\u30f3\u7d42\u4e86\u6642\u9593\u304b\u30891\u5206\u7d4c\u3064\u3068\u81ea\u52d5\u3067\u63a5\u7d9a\u304c\u5207\u308c\u307e\u3059\u3002",en:"You can end the lesson by tapping the 'Room out' button on the bottom right menu of the lesson. Also, the connection will be automatically cut off when 1 minute has passed from the lesson end time.",vn:"B\u1ea1n c\xf3 th\u1ec3 k\u1ebft th\xfac b\xe0i h\u1ecdc b\u1eb1ng c\xe1ch nh\u1ea5n v\xe0o n\xfat\u300cRoom Out\u300dph\xeda d\u01b0\u1edbi b\xean ph\u1ea3i danh m\u1ee5c b\xe0i h\u1ecdc. Ngo\xe0i ra, k\u1ebft n\u1ed1i s\u1ebd t\u1ef1 \u0111\u1ed9ng ng\u1eaft sau 1 ph\xfat k\u1ec3 t\u1eeb khi b\xe0i h\u1ecdc h\u1ebft gi\u1edd."},isInquiry:!1}]},{category:{ja:"\u30ec\u30c3\u30b9\u30f3",en:"Lesson",vn:"B\xe0i h\u1ecdc"},qaList:[{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u306e\u6642\u306b\u3001\u4f55\u304b\u7528\u610f\u3059\u308b\u3082\u306e\u306f\u3042\u308a\u307e\u3059\u304b\u3002",en:"Is there anything I need to prepare for the lesson?",vn:"C\xf3 c\u1ea7n ph\u1ea3i chu\u1ea9n b\u1ecb g\xec cho b\xe0i h\u1ecdc kh\xf4ng?"},answer:{ja:"\u7279\u306b\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30a4\u30f3\u30ab\u30e0\u3084\u30de\u30a4\u30af\u3001\u30e1\u30e2\u3092\u53d6\u308c\u308b\u3082\u306e\u306a\u3069\u3092\u7528\u610f\u3059\u308b\u3068\u3001\u3088\u308a\u5feb\u9069\u306b\u30ec\u30c3\u30b9\u30f3\u304c\u53d7\u3051\u3089\u308c\u307e\u3059\u3002",en:"You don't need to prepare anything in particular, but it is a good idea to use a webcam, headphones, a microphone, and something to take notes.",vn:"Kh\xf4ng c\xf3 g\xec \u0111\u1eb7c bi\u1ec7t, nh\u01b0ng n\u1ebfu b\u1ea1n chu\u1ea9n b\u1ecb m\u1ed9t thi\u1ebft b\u1ecb nghe g\u1ecdi, m\u1ed9t chi\u1ebfc micro v\xe0 m\u1ed9t th\u1ee9 g\xec \u0111\xf3 \u0111\u1ec3 ghi ch\xe9p, th\xec b\u1ea1n c\xf3 th\u1ec3 h\u1ecdc tho\u1ea3i m\xe1i h\u01a1n."},isInquiry:!1},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u306e\u69d8\u5b50\u3092\u64ae\u3063\u3066\u3082\u3044\u3044\u3067\u3059\u304b\u3002",en:"Can I film or take pictures of the lesson?",vn:"T\xf4i c\xf3 th\u1ec3 ch\u1ee5p \u1ea3nh tr\u1ea1ng th\xe1i b\xe0i h\u1ecdc \u0111\u01b0\u1ee3c kh\xf4ng?"},answer:{ja:"\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u3002\u30ec\u30c3\u30b9\u30f3\u4e2d\u306e\u9332\u97f3\u30fb\u9332\u753b\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u64ae\u5f71\u7b49\u306f\u7981\u6b62\u3067\u3059\u3002\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002",en:"We apologize for the inconvenience. It is prohibited to record or take screenshots during the lesson. Thank you for your understanding.",vn:"R\u1ea5t ti\u1ebfc. Nghi\xeam c\u1ea5m c\xe1c h\xe0nh \u0111\u1ed9ng ghi \xe2m \u30fbghi h\xecnh , ch\u1ee5p \u1ea3nh m\xe0n h\xecnh trong gi\u1edd h\u1ecdc. Xin l\u01b0u \xfd."},isInquiry:!1},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u306e\u69d8\u5b50\u3092SNS\u306a\u3069\u306b\u6295\u7a3f\u3057\u3066\u3082\u3044\u3044\u3067\u3059\u304b\u3002",en:"Can I post my lessons on social media?",vn:"T\xf4i c\xf3 th\u1ec3 \u0111\u0103ng t\xecnh tr\u1ea1ng b\xe0i h\u1ecdc l\xean SNS \u2026 \u0111\u01b0\u1ee3c kh\xf4ng?"},answer:{ja:"\u753b\u50cf\u3084\u6620\u50cf\u3001\u97f3\u58f0\u306a\u3069\u3092SNS\u306b\u6295\u7a3f\u3059\u308b\u3053\u3068\u306f\u3054\u9060\u616e\u304f\u3060\u3055\u3044\u3002\u6587\u5b57\u306e\u6295\u7a3f\u306f\u5927\u4e08\u592b\u3067\u3059\u3002",en:"Please do not post images, video, or audio on social networking sites. Text posts are fine. Thank you for your understanding and respecting our users and instructors.",vn:"Vui l\xf2ng kh\xf4ng \u0111\u0103ng h\xecnh \u1ea3nh, video, \xe2m thanh, ... l\xean SNS. \u0110\u0103ng k\xfd t\u1ef1 th\xec \u0111\u01b0\u1ee3c."},isInquiry:!1},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u4e2d\u306b\u30c1\u30e3\u30c3\u30c8\u306f\u4f7f\u3048\u307e\u3059\u304b\u3002",en:"Can I use chat during the lesson?",vn:"Trong gi\u1edd h\u1ecdc t\xf4i c\xf3 th\u1ec3 s\u1eed d\u1ee5ng t\xednh n\u0103ng tr\xf2 chuy\u1ec7n kh\xf4ng?"},answer:{ja:"\u306f\u3044\u3002\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u753b\u9762\u4e0a\u306e\u300cChat\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u30c1\u30e3\u30c3\u30c8\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002",en:"Yes, you can. Click the 'Chat' button on the screen to open the chat window.",vn:"V\xe2ng , c\xf3 th\u1ec3 s\u1eed d\u1ee5ng. Khi b\u1ea1n nh\u1ea5n n\xfat\u300cChat\u300dtr\xean m\xe0n h\xecnh , th\xec m\xe0n h\xecnh c\u1ee7a t\xednh n\u0103ng tr\xf2 chuy\u1ec7n s\u1ebd xu\u1ea5t hi\u1ec7n."},isInquiry:!1}]},{category:{ja:"\u300c\u8a71\u3059\u300d\u306e\u6a5f\u80fd",en:"Talk",vn:"K\u1ef9 n\u0103ng\u300cTr\xf2 chuy\u1ec7n\u300d"},qaList:[{question:{ja:"\u6d77\u5916\u304b\u3089\u3067\u3082\u30ec\u30c3\u30b9\u30f3\u304c\u53d7\u3051\u3089\u308c\u307e\u3059\u304b\u3002",en:"Is it possible to take lessons from overseas?",vn:"\u1ede n\u01b0\u1edbc ngo\xe0i c\xf3 th\u1ec3 tham gia b\xe0i h\u1ecdc kh\xf4ng?"},answer:{ja:"\u30b5\u30fc\u30d3\u30b9\u5bfe\u5fdc\u30a8\u30ea\u30a2\u3067\u3057\u305f\u3089\u3001\u65e5\u672c\u4ee5\u5916\u306e\u56fd\u3067\u3082\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u307e\u3059\u3002",en:"The service is available in countries other than Japan as long as the service area is available.",vn:"N\u1ebfu \u0111\xf3 l\xe0 khu v\u1ef1c \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 d\u1ecbch v\u1ee5, th\xec cho d\xf9 b\u1ea1n \u1edf c\xe1c qu\u1ed1c gia kh\xe1c ngo\xe0i Nh\u1eadt B\u1ea3n th\xec b\u1ea1n v\u1eabn c\xf3 th\u1ec3 tham gia."},isInquiry:!1},{question:{ja:"\u5148\u751f\u304b\u3089\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306f\u3069\u3053\u3067\u898b\u3089\u308c\u307e\u3059\u304b\u3002",en:"Where can I see the feedback from the teacher?",vn:"T\xf4i c\xf3 th\u1ec3 t\xecm th\xf4ng tin ph\u1ea3n h\u1ed3i t\u1eeb gi\xe1o vi\xean \u1edf \u0111\xe2u?"},answer:{ja:"\u5148\u751f\u304b\u3089\u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u306f\u300c\u30ec\u30c3\u30b9\u30f3\u300d\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u904e\u53bb\u306e\u30ec\u30c3\u30b9\u30f3\u300d\u306e\u5404\u30ec\u30c3\u30b9\u30f3\u5c65\u6b74\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002",en:"You can check the feedback from the teacher in each lesson history of 'Past lessons' in the 'Lessons' menu.",vn:"Ph\u1ea3n h\u1ed3i t\u1eeb gi\xe1o vi\xean c\xf3 th\u1ec3 \u0111\u01b0\u1ee3c t\xecm th\u1ea5y trong ph\u1ea7n l\u1ecbch s\u1eed b\xe0i h\u1ecdc c\u1ee7a \u300cB\xe0i h\u1ecdc tr\u01b0\u1edbc \u0111\xe2y\u300d\u1edf danh m\u1ee5c\u300cB\xe0i h\u1ecdc\u300d."},isInquiry:!1},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u4e2d\u306b\u3001\u753b\u9762\u4e0a\u306b\u6570\u5b57\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u4f55\u3067\u3059\u304b\u3002",en:"During a lesson, a number appears on the screen. What is this?",vn:"Trong gi\u1edd h\u1ecdc, \u0111\xe3 c\xf3 con s\u1ed1 \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb tr\xean m\xe0n h\xecnh. Con s\u1ed1 \u0111\xf3 l\xe0 g\xec?"},answer:{ja:"\u753b\u9762\u4e0a\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u6570\u5b57\u306f\u30ec\u30c3\u30b9\u30f3\u306e\u6b8b\u308a\u6642\u9593\u3067\u3059\u3002\u6b8b\u308a\u6642\u9593\u304c1\u5206\u672a\u6e80\u306b\u306a\u308b\u3068\u3001\u30ab\u30a6\u30f3\u30c8\u304c\u59cb\u307e\u308a\u307e\u3059\u3002",en:"The number displayed on the screen is the remaining time of the lesson. When the time remaining is less than 1 minute, it will start counting.",vn:"Con s\u1ed1 \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb tr\xean m\xe0n h\xecnh l\xe0 th\u1eddi gian c\xf2n l\u1ea1i c\u1ee7a gi\u1edd h\u1ecdc. Khi th\u1eddi gian c\xf2n l\u1ea1i c\u1ee7a gi\u1edd h\u1ecdc ch\u01b0a \u0111\u1ebfn 1 ph\xfat, th\xec s\u1ebd b\u1eaft \u0111\u1ea7u \u0111\u1ebfm."},isInquiry:!1}]},{category:{ja:"\u30c8\u30e9\u30d6\u30eb",en:"Trouble",vn:"S\u1ef1 c\u1ed1"},qaList:[{question:{ja:"\u64cd\u4f5c\u65b9\u6cd5\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3002",en:"I don't know how to use the service.",vn:"T\xf4i kh\xf4ng hi\u1ec3u c\xe1ch th\u1ee9c thao t\xe1c."},answer:{ja:"\u3054\u8ff7\u60d1\u304a\u304b\u3051\u3057\u3066\u5927\u5909\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u3002\u307e\u305a\u306f\u3053\u306eQ\uff06A\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3067\u3082\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u304a\u624b\u6570\u3067\u3059\u304c\u300c\u8a2d\u5b9a\u300d\u306e\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3088\u308a\u9023\u7d61\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u30023\u55b6\u696d\u65e5\u4ee5\u5185\u306b\u30b5\u30dd\u30fc\u30c8\u30c1\u30fc\u30e0\u3088\u308a\u304a\u8fd4\u4e8b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002",en:"We apologize for any inconvenience. Please check this Q&A first. If this still does not solve the issue, please contact us through the 'Settings' contact form. Our support team will endeavor to get back to you within 3 business days.",vn:"Ch\xfang t\xf4i xin l\u1ed7i v\xec s\u1ef1 b\u1ea5t ti\u1ec7n n\xe0y. Tr\u01b0\u1edbc h\u1ebft , vui l\xf2ng ki\u1ec3m tra ph\u1ea7n H\u1ecfi & \u0110\xe1p n\xe0y. Tr\u01b0\u1eddng h\u1ee3p v\u1eabn ch\u01b0a hi\u1ec3u \u0111\u01b0\u1ee3c, vui l\xf2ng li\xean h\u1ec7 v\u1edbi ch\xfang t\xf4i b\u1eb1ng c\xe1ch s\u1eed d\u1ee5ng bi\u1ec3u m\u1eabu y\xeau c\u1ea7u trong ph\u1ea7n\u300cC\xe0i \u0111\u1eb7t\u300d. \u0110\u1ed9i ng\u0169 h\u1ed7 tr\u1ee3 s\u1ebd li\xean h\u1ec7 l\u1ea1i v\u1edbi b\u1ea1n trong v\xf2ng 3 ng\xe0y l\xe0m vi\u1ec7c."},isInquiry:!0},{question:{ja:"\u30c8\u30e9\u30d6\u30eb\u304c\u3042\u3063\u305f\u6642\u306f\u3069\u3053\u306b\u9023\u7d61\u3092\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\u3002",en:"Who should I contact if I have a problem?",vn:"Khi g\u1eb7p s\u1ef1 c\u1ed1 t\xf4i n\xean li\xean l\u1ea1c v\u1edbi ai th\xec \u0111\u01b0\u1ee3c?"},answer:{ja:"\u3054\u8ff7\u60d1\u304a\u304b\u3051\u3057\u3066\u5927\u5909\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u3002\u304a\u624b\u6570\u3067\u3059\u304c\u300c\u8a2d\u5b9a\u300d\u306e\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3088\u308a\u9023\u7d61\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u30023\u55b6\u696d\u65e5\u4ee5\u5185\u306b\u30b5\u30dd\u30fc\u30c8\u30c1\u30fc\u30e0\u3088\u308a\u304a\u8fd4\u4e8b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002",en:"We apologize for any inconvenience. Please contact us through the 'Settings' contact form. Our support team will endeavor to get back to you within 3 business days.",vn:"Ch\xfang t\xf4i xin l\u1ed7i v\xec s\u1ef1 b\u1ea5t ti\u1ec7n n\xe0y. Vui l\xf2ng li\xean h\u1ec7 v\u1edbi ch\xfang t\xf4i b\u1eb1ng c\xe1ch s\u1eed d\u1ee5ng bi\u1ec3u m\u1eabu y\xeau c\u1ea7u trong ph\u1ea7n\u300cC\xe0i \u0111\u1eb7t\u300d. \u0110\u1ed9i ng\u0169 h\u1ed7 tr\u1ee3 s\u1ebd li\xean h\u1ec7 l\u1ea1i v\u1edbi b\u1ea1n trong v\xf2ng 3 ng\xe0y l\xe0m vi\u1ec7c."},isInquiry:!0},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u4e2d\u3001\u5148\u751f\u306e\u58f0\u304c\u805e\u3053\u3048\u307e\u305b\u3093\u3002",en:"I can't hear the teacher's voice during the lesson.",vn:"Trong gi\u1edd h\u1ecdc, t\xf4i kh\xf4ng th\u1ec3 nghe th\u1ea5y gi\u1ecdng c\u1ee7a gi\xe1o vi\xean."},answer:{ja:"\u304a\u624b\u5143\u306e\u30d8\u30c3\u30c9\u30db\u30f3\u3084\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u97f3\u91cf\u3084\u63a5\u7d9a\u72b6\u6cc1\u3001\u901a\u4fe1\u72b6\u6cc1\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002\u4f75\u305b\u3066\u30c1\u30e3\u30c3\u30c8\u3067\u5148\u751f\u306b\u300c\u58f0\u304c\u805e\u3053\u3048\u307e\u305b\u3093\u300d\u3068\u4f1d\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3067\u3082\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u304a\u624b\u6570\u3067\u3059\u304c\u300c\u8a2d\u5b9a\u300d\u306e\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3088\u308a\u9023\u7d61\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u30023\u55b6\u696d\u65e5\u4ee5\u5185\u306b\u30b5\u30dd\u30fc\u30c8\u30c1\u30fc\u30e0\u3088\u308a\u304a\u8fd4\u4e8b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002",en:"Please check the volume and connection of your headphones or smart phone. Please tell the teacher in the chat room that you cannot hear him/her. If this still does not solve the issue, please contact us through the 'Settings' contact form. Our support team will endeavor to get back to you within 3 business days.",vn:"Vui l\xf2ng ki\u1ec3m tra \xe2m l\u01b0\u1ee3ng, tr\u1ea1ng th\xe1i k\u1ebft n\u1ed1i v\xe0 tr\u1ea1ng th\xe1i li\xean l\u1ea1c c\u1ee7a tai nghe v\xe0 \u0111i\u1ec7n tho\u1ea1i th\xf4ng minh c\u1ee7a b\u1ea1n. \u0110\u1ed3ng th\u1eddi, h\xe3y truy\u1ec1n \u0111\u1ea1t v\u1edbi gi\xe1o vi\xean r\u1eb1ng\u300cT\xf4i kh\xf4ng th\u1ec3 nghe th\u1ea5y\u300dth\xf4ng qua t\xednh n\u0103ng tr\xf2 chuy\u1ec7n. Tr\u01b0\u1eddng h\u1ee3p s\u1ef1 c\u1ed1 v\u1eabn ti\u1ebfp di\u1ec5n, vui l\xf2ng li\xean h\u1ec7 v\u1edbi ch\xfang t\xf4i b\u1eb1ng c\xe1ch s\u1eed d\u1ee5ng bi\u1ec3u m\u1eabu y\xeau c\u1ea7u trong ph\u1ea7n\u300cC\xe0i \u0111\u1eb7t\u300d. \u0110\u1ed9i ng\u0169 h\u1ed7 tr\u1ee3 s\u1ebd li\xean h\u1ec7 l\u1ea1i v\u1edbi b\u1ea1n trong v\xf2ng 3 ng\xe0y l\xe0m vi\u1ec7c."},isInquiry:!0},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u4e2d\u3001\u5148\u751f\u306b\u79c1\u306e\u58f0\u304c\u5c4a\u304d\u307e\u305b\u3093\u3002",en:"My teacher cannot hear me during the lesson.",vn:"Trong gi\u1edd h\u1ecdc, gi\xe1o vi\xean kh\xf4ng nghe th\u1ea5y gi\u1ecdng c\u1ee7a t\xf4i."},answer:{ja:"\u304a\u624b\u5143\u306e\u30de\u30a4\u30af\u3084\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u97f3\u91cf\u3084\u63a5\u7d9a\u72b6\u6cc1\u3001\u901a\u4fe1\u72b6\u6cc1\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002\u58f0\u304c\u805e\u3053\u3048\u308b\u304b\u306e\u78ba\u8a8d\u306e\u969b\u306f\u30c1\u30e3\u30c3\u30c8\u3082\u4f75\u305b\u3066\u3054\u5229\u7528\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3067\u3082\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u304a\u624b\u6570\u3067\u3059\u304c\u300c\u8a2d\u5b9a\u300d\u306e\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3088\u308a\u9023\u7d61\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u30023\u55b6\u696d\u65e5\u4ee5\u5185\u306b\u30b5\u30dd\u30fc\u30c8\u30c1\u30fc\u30e0\u3088\u308a\u304a\u8fd4\u4e8b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002",en:"Please check the volume and connection of your headphones or smart phone. You can also use chat to check if your teacher can hear you. If this still does not solve the issue, please contact us through the 'Settings' contact form. Our support team will endeavor to get back to you within 3 business days.",vn:"Vui l\xf2ng ki\u1ec3m tra \xe2m l\u01b0\u1ee3ng, tr\u1ea1ng th\xe1i k\u1ebft n\u1ed1i v\xe0 tr\u1ea1ng th\xe1i li\xean l\u1ea1c c\u1ee7a micro v\xe0 \u0111i\u1ec7n tho\u1ea1i th\xf4ng minh c\u1ee7a b\u1ea1n. H\xe3y s\u1eed d\u1ee5ng t\xednh n\u0103ng tr\xf2 chuy\u1ec7n \u0111\u1ec3 x\xe1c nh\u1eadn xem gi\xe1o vi\xean c\xf3 th\u1ec3 nghe th\u1ea5y gi\u1ecdng n\xf3i c\u1ee7a b\u1ea1n kh\xf4ng. Tr\u01b0\u1eddng h\u1ee3p s\u1ef1 c\u1ed1 v\u1eabn ti\u1ebfp di\u1ec5n, vui l\xf2ng li\xean h\u1ec7 v\u1edbi ch\xfang t\xf4i b\u1eb1ng c\xe1ch s\u1eed d\u1ee5ng bi\u1ec3u m\u1eabu y\xeau c\u1ea7u trong ph\u1ea7n\u300cC\xe0i \u0111\u1eb7t\u300d. \u0110\u1ed9i ng\u0169 h\u1ed7 tr\u1ee3 s\u1ebd li\xean h\u1ec7 l\u1ea1i v\u1edbi b\u1ea1n trong v\xf2ng 3 ng\xe0y l\xe0m vi\u1ec7c."},isInquiry:!0},{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u4e2d\u306b\u901a\u4fe1\u304c\u5207\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002",en:"The communication was cut off during the lesson.",vn:"T\xf4i b\u1ecb m\u1ea5t t\xedn hi\u1ec7u trong gi\u1edd h\u1ecdc."},answer:{ja:"\u3054\u5229\u7528\u4e2d\u306e\u901a\u4fe1\u6a5f\u5668\u306e\u901a\u4fe1\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3067\u3082\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u304a\u624b\u6570\u3067\u3059\u304c\u300c\u8a2d\u5b9a\u300d\u306e\u304a\u554f\u3044\u5408\u308f\u305b\u30d5\u30a9\u30fc\u30e0\u3088\u308a\u9023\u7d61\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u30023\u55b6\u696d\u65e5\u4ee5\u5185\u306b\u30b5\u30dd\u30fc\u30c8\u30c1\u30fc\u30e0\u3088\u308a\u304a\u8fd4\u4e8b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002",en:"Please check the connection of your phone or computer. If this still does not solve the issue, please contact us through the 'Settings' contact form. Our support team will endeavor to get back to you within 3 business days.",vn:"H\xe3y ki\u1ec3m tra tr\u1ea1ng th\xe1i li\xean l\u1ea1c c\u1ee7a thi\u1ebft b\u1ecb li\xean l\u1ea1c m\xe0 b\u1ea1n \u0111ang s\u1eed d\u1ee5ng. Tr\u01b0\u1eddng h\u1ee3p s\u1ef1 c\u1ed1 v\u1eabn ti\u1ebfp di\u1ec5n, vui l\xf2ng li\xean h\u1ec7 v\u1edbi ch\xfang t\xf4i b\u1eb1ng c\xe1ch s\u1eed d\u1ee5ng bi\u1ec3u m\u1eabu y\xeau c\u1ea7u trong ph\u1ea7n\u300cC\xe0i \u0111\u1eb7t\u300d. \u0110\u1ed9i ng\u0169 h\u1ed7 tr\u1ee3 s\u1ebd li\xean h\u1ec7 l\u1ea1i v\u1edbi b\u1ea1n trong v\xf2ng 3 ng\xe0y l\xe0m vi\u1ec7c."},isInquiry:!0}]},{category:{ja:"\u305d\u306e\u4ed6",en:"Other",vn:"Kh\xe1c"},qaList:[{question:{ja:"\u30ec\u30c3\u30b9\u30f3\u3092\u4e88\u7d04\u3059\u308b\u3068\u3001\u5148\u751f\u306b\u3069\u3093\u306a\u60c5\u5831\u304c\u4f1d\u308f\u308a\u307e\u3059\u304b\u3002",en:"What information will be disclosed to the teacher when I reserve a lesson?",vn:"Khi t\xf4i \u0111\u0103ng k\xfd b\xe0i h\u1ecdc th\xec gi\xe1o vi\xean nh\u1eadn \u0111\u01b0\u1ee3c nh\u1eefng th\xf4ng tin nh\u01b0 th\u1ebf n\xe0o?"},answer:{ja:"\u30ec\u30c3\u30b9\u30f3\u4e88\u7d04\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u4e88\u7d04\u3057\u305f\u6642\u306b\u5165\u529b\u3057\u305f\u4e88\u7d04\u5e0c\u671b\u65e5\u6642\u3001\u304a\u5ba2\u69d8\u306e\u30cb\u30c3\u30af\u30cd\u30fc\u30e0\u304c\u5148\u751f\u65b9\u306b\u4f1d\u308f\u308a\u307e\u3059\u3002\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u7b49\u306e\u305d\u306e\u4ed6\u306e\u500b\u4eba\u60c5\u5831\u306f\u898b\u3089\u308c\u307e\u305b\u3093\u306e\u3067\u3054\u5b89\u5fc3\u304f\u3060\u3055\u3044\u3002",en:"When your lesson reservation is completed, we will tell the teachers the preferred date and time of the reservation and nickname. Please be assured that no other personal information, such as your email address, will be disclosed.",vn:"Khi vi\u1ec7c b\u1ea3o l\u01b0u b\xe0i h\u1ecdc c\u1ee7a b\u1ea1n ho\xe0n t\u1ea5t, ch\xfang t\xf4i s\u1ebd th\xf4ng b\xe1o cho gi\xe1o vi\xean ng\xe0y gi\u1edd b\u1ea3o l\u01b0u v\xe0 bi\u1ec7t danh ti\xean.H\xe3y y\xean t\xe2m r\u1eb1ng ng\u01b0\u1eddi kh\xe1c s\u1ebd kh\xf4ng th\u1ec3 xem nh\u1eefng th\xf4ng tin kh\xe1c c\u1ee7a b\u1ea1n v\xed d\u1ee5 nh\u01b0 \u0111\u1ecba ch\u1ec9 email."},isInquiry:!1}]}]},29709:(e,a,n)=>{"use strict";var t,i,r,s;n.d(a,{$C:()=>T,C1:()=>o,GO:()=>b,HL:()=>d,J5:()=>f,Kk:()=>y,Op:()=>x,RQ:()=>S,So:()=>E,UA:()=>p,VO:()=>v,Vg:()=>I,ZB:()=>l,_F:()=>g,jL:()=>c,lz:()=>m,mI:()=>_,rs:()=>u,tH:()=>w,v:()=>k,w9:()=>h});const d=!1,o=d?"http://localhost:3100":null!==(t="https://ksco.kurashi-study.net")?t:"",l=(d||(i="https://learner.ksco.kurashi-study.net"),d?"http://localhost:".concat("4000"):"https://api.ksco.kurashi-study.net"),u=d?"http://localhost:5000":null!==(r="https://online-lesson.learner.ksco.kurashi-study.net")?r:"",c="ap-northeast-1",m="ap-northeast-1_TUXNcjoEG",f="7u10jmmho11a1krk43incqbcvf",p="https://hanasu-plus.kurashi-study.net/policy/terms.html",b="https://hanasu-plus.kurashi-study.net/policy/privacy.html",h=(s="wss://qe92rbfycc.execute-api.ap-northeast-1.amazonaws.com/prd",d?"localhost":"https://learner.ksco.kurashi-study.net".match(/(?<=https:\/\/).*/)[0]),_=3e3,v={CHAPTER:10,CHAPTER_SUMMARY:12,SEASON_SUMMARY:50},y={SELF_STUDY:"/self_study",HIRAGANA_A_N:"/hiragana_a-n",HIRAGANA_GA_PO:"/hiragana_ga-po",HIRAGANA_KYA_PYO:"/hiragana_kya-pyo",KATAKANA_A_N:"/katakana_a-n",KATAKANA_GA_PO:"/katakana_ga-po",KATAKANA_KYA_PYO:"/katakana_kya-pyo"},g="https://sun-resource-tokyo.s3-ap-northeast-1.amazonaws.com/self_study/kana/audio/",w="https://sun-resource-tokyo.s3-ap-northeast-1.amazonaws.com/",T="https://api-manager.kurashi-study.net/cms/",k={"Ep.x-1":0,"Ep.x-2":1,"Ep.x-3":2,"Ep.x summary":3},E={STORY:1,DORILL:2},I={START:1,COMPLETE:2,DEACTIVE:3,RE_ACTIVE:4,EXIT:5},x={NOT_CANCEL:"0",CANCELLED_LEARNER_RESCHEDULE:"1",CANCELLED_LEARNER_NOT_RESCHEDULE:"2",CANCELLED_COMPANY_RESCHEDULE:"3",CANCELLED_COMPANY_NOT_RESCHEDULE:"4",CANCELLED_ADMIN_RESCHEDULE:"5",CANCELLED_ADMIN_NOT_RESCHEDULE:"6"},S={WILL_PARTICIPATE:"0",PARTICIPATED:"1",NOT_PARTICIPATED:"2",CANCELLED:"3"}},54804:(e,a,n)=>{"use strict";n.d(a,{b:()=>t});const t={HTTP_401:"401_Unauthorized",HTTP_404:"404_NOT_FOUND",E_9000:"E_9000_COMPONENT_ERROR",E_9001:"E_9001_ERROR_PAGE_COMPONENT",E_9100:"E_9100_USER_EVENT_LOG_ERROR",E_9900:"E_9900_SEND_ERROR_LOG_ERROR",E_9999:"E_9999_UNEXPECTED_ERROR",E_L001:"E_L001_RECORDING_CREATE_ERROR",E_L002:"E_L001_RECORDING_UPLOAD_ERROR"}},37663:(e,a,n)=>{"use strict";n.d(a,{l:()=>t});const t=Object.keys({systemLanguage:"",episodeId:"",translationLanguage:"",displayJPMode:"",wordLikes:"",expressions:"",translationFlg:"",sectionData:"",currentPage:"",sceneId:"",seasonId:"",sceneTitle:"",sectionTitle:"",seasonSummary:"",episodeSummary:"",proficiencyTestTitle:"",storyTitle:"",storyLabel:"",isNextScene:"",isNextEpisode:"",isNextSummary:"",bgEpisodeFile:"",agreed:"",answerSelect:"",answerSelectText:"",questionText:"",answer:"",answerText:"",questionNo:"",totalQuestionNum:"",questionType:"",answerType:"",questionTitle:"",questionAudio:"",correctSelect:"",questionImage_url:"",countSubQuestions:"",subQuestionCount:"",correctText:"",isEnableSubQuestion:"",questionVerb:"",question:"",AnswerWords:"",answerWordNum:"",Title:"",AnswerLock:"",AnswerWordNum:"",Verb:"",Audio:"",CorrectText:"",questionNum:"",Prev:"",Next:"",grammarLikes:"",dlillsName:"",dlillsId:"",answerWords:"",correctWordSelect:"",correctWordPrev:"",correctWordNext:"",storiesData:"",QAData:"",subQuestionNo:"",exerciseJson:"",proficiencyTestJson:""}).reduce(((e,a)=>({...e,[a]:a})),{})},72844:(e,a,n)=>{"use strict";n.d(a,{K:()=>t});const t={TOP:"/top",SIGNIN:"/signin"}},20471:(e,a,n)=>{"use strict";n.d(a,{y:()=>t});const t=Object.keys({StudySessionId:""}).reduce(((e,a)=>({...e,[a]:a})),{})},76282:(e,a,n)=>{"use strict";n.d(a,{EnF:()=>Le,Tc5:()=>Nn});const t="SEASON_1_EPISODE_1_SCENE_1",i="SEASON_1_EPISODE_1_SCENE_2",r="SEASON_1_EPISODE_1_SCENE_3",s="SEASON_1_EPISODE_2_SCENE_1",d="SEASON_1_EPISODE_2_SCENE_2",o="SEASON_1_EPISODE_2_SCENE_3",l="SEASON_1_EPISODE_3_SCENE_1",u="SEASON_1_EPISODE_3_SCENE_2",c="SEASON_1_EPISODE_3_SCENE_3",m="SEASON_1_EPISODE_4_SCENE_1",f="SEASON_1_EPISODE_4_SCENE_2",p="SEASON_1_EPISODE_4_SCENE_3",b="SEASON_1_EPISODE_5_SCENE_1",h="SEASON_1_EPISODE_5_SCENE_2",_="SEASON_1_EPISODE_5_SCENE_3",v="SEASON_1_EPISODE_6_SCENE_1",y="SEASON_1_EPISODE_6_SCENE_2",g="SEASON_1_EPISODE_6_SCENE_3",w="SEASON_1_EPISODE_7_SCENE_1",T="SEASON_1_EPISODE_7_SCENE_2",k="SEASON_1_EPISODE_7_SCENE_3",E="SEASON_1_EPISODE_8_SCENE_1",I="SEASON_1_EPISODE_8_SCENE_2",x="SEASON_1_EPISODE_8_SCENE_3",S="SEASON_1_EPISODE_9_SCENE_1",A="SEASON_1_EPISODE_9_SCENE_2",q="SEASON_1_EPISODE_9_SCENE_3",C="SEASON_1_EPISODE_10_SCENE_1",F="SEASON_1_EPISODE_10_SCENE_2",j="SEASON_1_EPISODE_10_SCENE_3",D="SEASON_1_EPISODE_11_SCENE_1",Z="SEASON_1_EPISODE_11_SCENE_2",N="SEASON_1_EPISODE_11_SCENE_3",O="SEASON_1_EPISODE_12_SCENE_1",R="SEASON_1_EPISODE_12_SCENE_2",z="SEASON_1_EPISODE_12_SCENE_3",U="SEASON_1_EPISODE_13_SCENE_1",P="SEASON_1_EPISODE_13_SCENE_2",H="SEASON_1_EPISODE_13_SCENE_3",B="SEASON_1_EPISODE_14_SCENE_1",M="SEASON_1_EPISODE_14_SCENE_2",K="SEASON_1_EPISODE_14_SCENE_3",L="SEASON_1_EPISODE_15_SCENE_1",V="SEASON_1_EPISODE_15_SCENE_2",Q="SEASON_1_EPISODE_15_SCENE_3",W="SEASON_1_EPISODE_16_SCENE_1",G="SEASON_1_EPISODE_16_SCENE_2",X="SEASON_1_EPISODE_16_SCENE_3",Y="SEASON_2_EPISODE_1_SCENE_1",J="SEASON_2_EPISODE_1_SCENE_2",$="SEASON_2_EPISODE_1_SCENE_3",ee="SEASON_2_EPISODE_2_SCENE_1",ae="SEASON_2_EPISODE_2_SCENE_2",ne="SEASON_2_EPISODE_2_SCENE_3",te="SEASON_2_EPISODE_3_SCENE_1",ie="SEASON_2_EPISODE_3_SCENE_2",re="SEASON_2_EPISODE_3_SCENE_3",se="SEASON_2_EPISODE_4_SCENE_1",de="SEASON_2_EPISODE_4_SCENE_2",oe="SEASON_2_EPISODE_4_SCENE_3",le="SEASON_2_EPISODE_5_SCENE_1",ue="SEASON_2_EPISODE_5_SCENE_2",ce="SEASON_2_EPISODE_5_SCENE_3",me="SEASON_2_EPISODE_6_SCENE_1",fe="SEASON_2_EPISODE_6_SCENE_2",pe="SEASON_2_EPISODE_6_SCENE_3",be="SEASON_2_EPISODE_7_SCENE_1",he="SEASON_2_EPISODE_7_SCENE_2",_e="SEASON_2_EPISODE_7_SCENE_3",ve="SEASON_2_EPISODE_8_SCENE_1",ye="SEASON_2_EPISODE_8_SCENE_2",ge="SEASON_2_EPISODE_8_SCENE_3",we="SEASON_2_EPISODE_9_SCENE_1",Te="SEASON_2_EPISODE_9_SCENE_2",ke="SEASON_2_EPISODE_9_SCENE_3",Ee="SEASON_2_EPISODE_10_SCENE_1",Ie="SEASON_2_EPISODE_10_SCENE_2",xe="SEASON_2_EPISODE_10_SCENE_3",Se="SEASON_2_EPISODE_11_SCENE_1",Ae="SEASON_2_EPISODE_11_SCENE_2",qe="SEASON_2_EPISODE_11_SCENE_3",Ce="SEASON_2_EPISODE_12_SCENE_1",Fe="SEASON_2_EPISODE_12_SCENE_2",je="SEASON_2_EPISODE_12_SCENE_3",De="SEASON_2_EPISODE_13_SCENE_1",Ze="SEASON_2_EPISODE_13_SCENE_2",Ne="SEASON_2_EPISODE_13_SCENE_3",Oe="SEASON_2_EPISODE_14_SCENE_1",Re="SEASON_2_EPISODE_14_SCENE_2",ze="SEASON_2_EPISODE_14_SCENE_3",Ue="SEASON_2_EPISODE_15_SCENE_1",Pe="SEASON_2_EPISODE_15_SCENE_2",He="SEASON_2_EPISODE_15_SCENE_3",Be="SEASON_2_EPISODE_16_SCENE_1",Me="SEASON_2_EPISODE_16_SCENE_2",Ke="SEASON_2_EPISODE_16_SCENE_3",Le=[t,i,r,s,d,o,l,u,c,m,f,p,b,h,_,v,y,g,w,T,k,E,I,x,S,A,q,C,F,j,D,Z,N,O,R,z,U,P,H,B,M,K,L,V,Q,W,G,X,Y,J,$,ee,ae,ne,te,ie,re,se,de,oe,le,ue,ce,me,fe,pe,be,he,_e,ve,ye,ge,we,Te,ke,Ee,Ie,xe,Se,Ae,qe,Ce,Fe,je,De,Ze,Ne,Oe,Re,ze,Ue,Pe,He,Be,Me,Ke],Ve="1-1",Qe="1-2",We="1-3",Ge="2-1",Xe="2-2",Ye="2-3",Je="3-1",$e="3-2",ea="3-3",aa="4-1",na="4-2",ta="4-3",ia="5-1",ra="5-2",sa="5-3",da="6-1",oa="6-2",la="6-3",ua="7-1",ca="7-2",ma="7-3",fa="8-1",pa="8-2",ba="8-3",ha="9-1",_a="9-2",va="9-3",ya="10-1",ga="10-2",wa="10-3",Ta="11-1",ka="11-2",Ea="11-3",Ia="12-1",xa="12-2",Sa="12-3",Aa="13-1",qa="13-2",Ca="13-3",Fa="14-1",ja="14-2",Da="14-3",Za="15-1",Na="15-2",Oa="15-3",Ra="16-1",za="16-2",Ua="16-3",Pa="17-1",Ha="17-2",Ba="17-3",Ma="18-1",Ka="18-2",La="18-3",Va="19-1",Qa="19-2",Wa="19-3",Ga="20-1",Xa="20-2",Ya="20-3",Ja="21-1",$a="21-2",en="21-3",an="22-1",nn="22-2",tn="22-3",rn="23-1",sn="23-2",dn="23-3",on="24-1",ln="24-2",un="24-3",cn="25-1",mn="25-2",fn="25-3",pn="26-1",bn="26-2",hn="26-3",_n="27-1",vn="27-2",yn="27-3",gn="28-1",wn="28-2",Tn="28-3",kn="29-1",En="29-2",In="29-3",xn="30-1",Sn="30-2",An="30-3",qn="31-1",Cn="31-2",Fn="31-3",jn="32-1",Dn="32-2",Zn="32-3",Nn={[t]:Ve,[i]:Qe,[r]:We,[s]:Ge,[d]:Xe,[o]:Ye,[l]:Je,[u]:$e,[c]:ea,[m]:aa,[f]:na,[p]:ta,[b]:ia,[h]:ra,[_]:sa,[v]:da,[y]:oa,[g]:la,[w]:ua,[T]:ca,[k]:ma,[E]:fa,[I]:pa,[x]:ba,[S]:ha,[A]:_a,[q]:va,[C]:ya,[F]:ga,[j]:wa,[D]:Ta,[Z]:ka,[N]:Ea,[O]:Ia,[R]:xa,[z]:Sa,[U]:Aa,[P]:qa,[H]:Ca,[B]:Fa,[M]:ja,[K]:Da,[L]:Za,[V]:Na,[Q]:Oa,[W]:Ra,[G]:za,[X]:Ua,[Y]:Pa,[J]:Ha,[$]:Ba,[ee]:Ma,[ae]:Ka,[ne]:La,[te]:Va,[ie]:Qa,[re]:Wa,[se]:Ga,[de]:Xa,[oe]:Ya,[le]:Ja,[ue]:$a,[ce]:en,[me]:an,[fe]:nn,[pe]:tn,[be]:rn,[he]:sn,[_e]:dn,[ve]:on,[ye]:ln,[ge]:un,[we]:cn,[Te]:mn,[ke]:fn,[Ee]:pn,[Ie]:bn,[xe]:hn,[Se]:_n,[Ae]:vn,[qe]:yn,[Ce]:gn,[Fe]:wn,[je]:Tn,[De]:kn,[Ze]:En,[Ne]:In,[Oe]:xn,[Re]:Sn,[ze]:An,[Ue]:qn,[Pe]:Cn,[He]:Fn,[Be]:jn,[Me]:Dn,[Ke]:Zn}},1031:(e,a,n)=>{"use strict";n.d(a,{R:()=>i});var t=n(76282);const i=(e,a,n)=>{const i="SEASON_".concat(e+1),r="EPISODE_".concat(a+1),s="SCENE_".concat(n+1);return t.EnF.find((e=>e==="".concat(i,"_").concat(r,"_").concat(s)))}},2706:(e,a,n)=>{"use strict";n.d(a,{G:()=>r,j:()=>i});var t=n(97508);const i=()=>(0,t.wA)(),r=t.d4},70966:(e,a,n)=>{"use strict";n.d(a,{A:()=>d});var t=n(65043),i=n(91688),r=n(34868),s=n(54804);const d=()=>{const e=(0,i.zy)(),a=(0,t.useCallback)((n=>{const t=e.pathname,{error:i,errorCode:d,message:o}=n;(0,r.Bx)((()=>{r.QS.organizationsControllerCreateErrorLog({source:"learner",currentPage:t,userAgent:navigator.userAgent,error:"string"===typeof i?i:JSON.stringify(i),errorCode:d,message:o})})).catch((e=>{d!==s.b.E_9999&&a({error:e,errorCode:s.b.E_9999,message:"\u30e6\u30fc\u30b6\u30fc\u30a4\u30d9\u30f3\u30c8\u30ed\u30b0\u4f5c\u6210\u3067\u30a8\u30e9\u30fc"})}))}),[e.pathname,r.Bx,r.QS]);return{sendErrorLog:a}}},6452:(e,a,n)=>{"use strict";n.d(a,{A:()=>u});var t=n(91688),i=n(29709),r=n(65043),s=n(70966),d=n(72844),o=n(54804),l=n(31339);const u=()=>{const e=(0,t.zy)(),{sendErrorLog:a}=(0,s.A)(),{handleSignOut:n}=(0,l.A)(),u=(0,r.useCallback)((async t=>{let{errorCode:r="E_9000",error:s}=t,l="";e.pathname===d.K.TOP?(await a({error:s,errorCode:o.b.HTTP_401,message:"".concat(d.K.TOP,"\u3067\u7570\u5e38\u767a\u751f\u3002\u5f37\u5236\u30b5\u30a4\u30f3\u30a2\u30a6\u30c8\u3057\u307e\u3059\u3002")}),await n()):(await a({error:s,errorCode:r,message:"\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\u9077\u79fb"}),i.HL||(l="".concat(i.C1,"?errorCode=").concat(r))),document.location.href=l}),[e.pathname,n,a]),c=(0,r.useCallback)((async(e,a)=>{let t="E_500";if(e.message){e.message.match(/401/)&&await n()}a.componentName===d.K.TOP&&(t="E_401"),u({errorCode:t,error:e})}),[u,n]);return{goErrorPage:u,apiErrorHandler:c}}},31339:(e,a,n)=>{"use strict";n.d(a,{A:()=>b});var t=n(65043),i=n(91688),r=n(29709),s=n(54804),d=n(72844),o=n(2706),l=n(79984),u=n(21963);const c=async()=>{await u.N.signOut({global:!0})},m=e=>{document.cookie="".concat(e,"=; max-age=0")},f=e=>({searchCookies:a=>e.split("; ").filter((e=>e.startsWith(a)))});var p=n(70966);const b=()=>{const{sendErrorLog:e}=(0,p.A)(),a=(0,o.j)(),n=(0,i.W6)();return{handleSignOut:(0,t.useCallback)((async()=>{try{await Promise.all([c().catch((a=>{f(document.cookie).searchCookies("CognitoIdentityServiceProvider.".concat(r.J5)).forEach((e=>{const a=e.split("=")[0];m(a)})),e({error:a,errorCode:s.b.HTTP_401,message:"".concat(d.K.TOP,"\u3067\u7570\u5e38\u767a\u751f\u3002Cognito\u30b5\u30a4\u30f3\u30a2\u30a6\u30c8\u3082\u5931\u6557\u3057\u305f\u305f\u3081\u3001Cookie\u306e\u76f4\u63a5\u524a\u9664\u3092\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002")})})),a((0,l.ag)())]),n.push("/".concat(d.K.SIGNIN))}catch(t){console.error("Error signing out:",t),e({error:t,errorCode:s.b.E_9999,message:"Error signing out:"})}}),[n,a,e])}}},88877:(e,a,n)=>{"use strict";n.d(a,{A:()=>s});var t=n(65043),i=n(34868);const r=e=>{const a=e;return!!a.id&&!!a.contents&&Array.isArray(a.contents)};function s(e){const[a,n]=(0,t.useState)(),s=(0,t.useCallback)((async()=>{var a,t;const s=await(0,i.Pm)((()=>i.Q8.resourcesControllerGetStoryExercisesEndpoint(e)));if(null===s||void 0===s||null===(a=s.data)||void 0===a||!a.data)return;if(!Array.isArray(null===s||void 0===s||null===(t=s.data)||void 0===t?void 0:t.data))return;const d=await fetch(s.data.data[0],{method:"GET"}),o=await d.json();r(o)&&n(o)}),[e]);return(0,t.useEffect)((()=>{s()}),[s]),a}},96432:(e,a,n)=>{"use strict";n.d(a,{A:()=>o});var t=n(65043),i=n(91688),r=n(34868),s=n(54804),d=n(70966);const o=()=>{const e=(0,i.zy)(),{sendErrorLog:a}=(0,d.A)();return{sendUserEvent:(0,t.useCallback)(((n,t)=>{const i=e.pathname;let d=t?JSON.stringify(t):"";(0,r.Bx)((()=>{r.QS.userEventControllerLoggingEvent({currentPage:i,action:n,timestampMillis:(new Date).getTime(),userAgent:navigator.userAgent,options:d})})).catch((e=>{a({error:e,errorCode:s.b.E_9100,message:"\u30e6\u30fc\u30b6\u30fc\u30a4\u30d9\u30f3\u30c8\u30ed\u30b0\u4f5c\u6210\u3067\u30a8\u30e9\u30fc"})}))}),[e.pathname,r.Bx,r.QS,a]),sendUserEventByNotAuth:(0,t.useCallback)(((n,t)=>{const i=e.pathname;let d=t?JSON.stringify(t):"";(0,r.Bx)((()=>{r.QS.userEventControllerLoggingEventByNotAuth({currentPage:i,action:n,timestampMillis:(new Date).getTime(),userAgent:navigator.userAgent,options:d})})).catch((e=>{a({error:e,errorCode:s.b.E_9100,message:"\u30e6\u30fc\u30b6\u30fc\u30a4\u30d9\u30f3\u30c8\u30ed\u30b0\u4f5c\u6210(\u975e\u8a8d\u8a3c)\u3067\u30a8\u30e9\u30fc"})}))}),[e.pathname,r.Bx,r.QS])}}},49986:(e,a,n)=>{"use strict";n.d(a,{F:()=>t});let t=function(e){return e[e.CORRECT=1]="CORRECT",e[e.INCORRECT=0]="INCORRECT",e}({})},16993:(e,a,n)=>{"use strict";n.d(a,{A:()=>f});var t=n(4450),i=n(2127),r=n(65043),s=(n(32454),n(40848)),d=n(22554),o=n(91688),l=n(84674),u=n(37663),c=n(70579);const m=e=>{let{onCloseModal:a}=e;const n=(0,l.l$)(),t=(0,o.W6)();return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(s.aF,{isOpen:!0,onClose:a,children:[(0,c.jsx)(s.mH,{}),(0,c.jsxs)(s.$m,{maxWidth:"345px",textAlign:"center",children:[(0,c.jsx)(s.rQ,{fontSize:"sm",bgColor:"salmon",roundedTop:"md",children:n.KT_0099_01}),(0,c.jsx)(s.cw,{children:n.KT_0099_02}),(0,c.jsxs)(s.jl,{justifyContent:"space-evenly",children:[(0,c.jsx)(d.$n,{className:"btn-border",textColor:"white",bgColor:"gray",width:"40%",onClick:()=>{localStorage.removeItem(u.l.exerciseJson),a()},children:n.KT_0099_03}),(0,c.jsx)(d.$n,{className:"btn-border",textColor:"white",bgColor:"orange",width:"40%",onClick:()=>{t.push("/top")},children:n.KT_0099_04})]})]})]})})},f=()=>{const[e,a]=(0,r.useState)("");return(0,c.jsxs)(c.Fragment,{children:["ExitModal"===e&&(0,c.jsx)(m,{onCloseModal:()=>{a("")}}),(0,c.jsx)(t.so,{width:"100%",background:"cornsilk",children:(0,c.jsxs)(t.zt,{width:"100%",m:2,children:[(0,c.jsx)(t.az,{display:"flex",height:"70px",width:"100%",alignItems:"center",children:(0,c.jsx)(t.az,{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",m:1,paddingLeft:3,children:(0,c.jsx)(t.EY,{paddingLeft:4,fontWeight:"medium",children:"\u5b9f\u529b\u30c6\u30b9\u30c8"})})}),(0,c.jsx)(t.az,{color:"#ed7f35",fontSize:"30px",display:"flex",alignItems:"center",justifyContent:"center",m:1,onClick:()=>{a("ExitModal")},children:(0,c.jsx)(i.Fl6,{})})]})})]})}},46797:(e,a,n)=>{"use strict";n.d(a,{Ay:()=>d,VP:()=>s,xv:()=>r});const t=(0,n(95887).Z0)({name:"loading",initialState:{value:!0},reducers:{startLoading:e=>{e.value=!0},stopLoading:e=>{e.value=!1}}}),{startLoading:i,stopLoading:r}=t.actions,s=e=>e.loading.value,d=t.reducer},79984:(e,a,n)=>{"use strict";n.d(a,{Ay:()=>l,Jv:()=>o,ag:()=>s});var t=n(95887),i=n(21963);const r={user:void 0,authState:void 0},s=(0,t.zD)("user/signOut",(async()=>{await i.N.signOut()})),d=(0,t.Z0)({name:"user",initialState:r,reducers:{signIn:(e,a)=>{e.authState=a.payload.authState,e.user=a.payload.user}},extraReducers:e=>{e.addCase(s.fulfilled,(e=>{e.authState=void 0,e.user=void 0}))}}),{signIn:o}=d.actions,l=d.reducer},89532:(e,a,n)=>{"use strict";n.d(a,{d:()=>d,g:()=>s});var t=n(34868),i=n(29709),r=n(20471);const s=async()=>{const e=sessionStorage.getItem(r.y.StudySessionId),a=e?parseInt(e):0,n="visible"===document.visibilityState?i.Vg.RE_ACTIVE:i.Vg.DEACTIVE;await d(n,a)},d=(e,a)=>(0,t.Bx)((async()=>t.QS.mobileAppControllerRecordStudySession({actionType:e,sessionId:a})))},21963:(e,a,n)=>{"use strict";var t,i,r;function s(e){return e&&!!["provider"].find((function(a){return e.hasOwnProperty(a)}))}function d(e){return void 0!==e.redirectSignIn}n.d(a,{N:()=>xr}),function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"}(t||(t={})),function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError"}(i||(i={})),function(e){e.API_KEY="API_KEY",e.AWS_IAM="AWS_IAM",e.OPENID_CONNECT="OPENID_CONNECT",e.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",e.AWS_LAMBDA="AWS_LAMBDA"}(r||(r={}));var o=n(98256),l=n(94647),u={},c=function(){function e(){}return e.setItem=function(e,a){return u[e]=a,u[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(u,e)?u[e]:void 0},e.removeItem=function(e){return delete u[e]},e.clear=function(){return u={}},e}(),m=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=c}}return e.prototype.getStorage=function(){return this.storageWindow},e}();var f=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],p=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},b=function(e,a,n){if(!e||!e.sort)return!1;var t=n&&"desc"===n?-1:1;return e.sort((function(e,n){var i=e[a],r=n[a];return"undefined"===typeof r?"undefined"===typeof i?0:1*t:"undefined"===typeof i||ir?1*t:0})),!0},h=function(e,a){var n=Object.assign({},e);return a&&("string"===typeof a?delete n[a]:a.forEach((function(e){delete n[e]}))),n},_=function(e,a){void 0===a&&(a="application/octet-stream");var n=e.toLowerCase(),t=f.filter((function(e){return n.endsWith("."+e.ext)}));return t.length>0?t[0].type:a},v=function(e){var a=e.toLowerCase();return!!a.startsWith("text/")||("application/json"===a||"application/xml"===a||"application/sh"===a)},y=function(){for(var e="",a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=a[Math.floor(62*Math.random())];return e},g=function(e){if(e.isResolved)return e;var a=!0,n=!1,t=!1,i=e.then((function(e){return t=!0,a=!1,e}),(function(e){throw n=!0,a=!1,e}));return i.isFullfilled=function(){return t},i.isPending=function(){return a},i.isRejected=function(){return n},i},w=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},T=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node}},k=function(e,a,n){if(void 0===a&&(a=[]),void 0===n&&(n=[]),!I(e))return e;var t={};for(var i in e){if(e.hasOwnProperty(i))t[a.includes(i)?i:i[0].toLowerCase()+i.slice(1)]=n.includes(i)?e[i]:k(e[i],a,n)}return t},E=function(e,a,n){if(void 0===a&&(a=[]),void 0===n&&(n=[]),!I(e))return e;var t={};for(var i in e){if(e.hasOwnProperty(i))t[a.includes(i)?i:i[0].toUpperCase()+i.slice(1)]=n.includes(i)?e[i]:E(e[i],a,n)}return t},I=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)};!function(){function e(){}e.isEmpty=p,e.sortByField=b,e.objectLessAttributes=h,e.filenameToContentType=_,e.isTextFile=v,e.generateRandomString=y,e.makeQuerablePromise=g,e.isWebWorker=w,e.browserOrNode=T,e.transferKeyToLowerCase=k,e.transferKeyToUpperCase=E,e.isStrictObject=I}();var x=function(){var e=function(a,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])},e(a,n)};return function(a,n){function t(){this.constructor=a}e(a,n),a.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}}(),S=function(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))},A=function(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},C=function(){for(var e=[],a=0;ae)&&n}}(n),t)},N=function(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))},O=function(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}var J,$,ee,ae,ne,te,ie,re,se,de,oe,le,ue,ce,me,fe,pe,be,he,_e,ve,ye,ge,we,Te,ke,Ee,Ie,xe,Se,Ae,qe,Ce,Fe,je,De,Ze,Ne,Oe,Re,ze,Ue,Pe,He,Be,Me,Ke,Le,Ve,Qe,We,Ge,Xe,Ye,Je,$e,ea,aa=n(6326);!function(e){e.AUTHENTICATED_ROLE="AuthenticatedRole",e.DENY="Deny"}(J||(J={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}($||($={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ee||(ee={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ae||(ae={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ne||(ne={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(te||(te={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ie||(ie={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(re||(re={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(se||(se={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(de||(de={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(oe||(oe={})),function(e){e.ACCESS_DENIED="AccessDenied",e.INTERNAL_SERVER_ERROR="InternalServerError"}(le||(le={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ue||(ue={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ce||(ce={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(me||(me={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(fe||(fe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(pe||(pe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(be||(be={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(he||(he={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(_e||(_e={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ve||(ve={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ye||(ye={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ge||(ge={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(we||(we={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Te||(Te={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ke||(ke={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ee||(Ee={})),function(e){e.CONTAINS="Contains",e.EQUALS="Equals",e.NOT_EQUAL="NotEqual",e.STARTS_WITH="StartsWith"}(Ie||(Ie={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(xe||(xe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Se||(Se={})),function(e){e.RULES="Rules",e.TOKEN="Token"}(Ae||(Ae={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(qe||(qe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ce||(Ce={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Fe||(Fe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(je||(je={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(De||(De={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ze||(Ze={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ne||(Ne={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Oe||(Oe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Re||(Re={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ze||(ze={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ue||(Ue={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Pe||(Pe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(He||(He={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Be||(Be={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Me||(Me={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ke||(Ke={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Le||(Le={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ve||(Ve={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Qe||(Qe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(We||(We={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ge||(Ge={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Xe||(Xe={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Ye||(Ye={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(Je||(Je={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}($e||($e={})),function(e){e.filterSensitiveLog=function(e){return(0,aa.Cl)({},e)}}(ea||(ea={}));var na=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var a=e;return"number"===typeof a.statusCode&&"object"===typeof a.headers},e}();var ta=function(){return ta=Object.assign||function(e){for(var a,n=1,t=arguments.length;n0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}var ra=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var a=e;return"method"in a&&"protocol"in a&&"hostname"in a&&"path"in a&&"object"===typeof a.query&&"object"===typeof a.headers},e.prototype.clone=function(){var a,n=new e(ta(ta({},this),{headers:ta({},this.headers)}));return n.query&&(n.query=(a=n.query,Object.keys(a).reduce((function(e,n){var t,i=a[n];return ta(ta({},e),((t={})[n]=Array.isArray(i)?function(){for(var e=[],a=0;a=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},r=(n=e.headers,t="x-amzn-errortype",Object.keys(n).find((function(e){return e.toLowerCase()===t.toLowerCase()})));return void 0!==r?i(e.headers[r]):void 0!==a.code?i(a.code):void 0!==a.__type?i(a.__type):""};var Ra=function(){return Ra=Object.assign||function(e){for(var a,n=1,t=arguments.length;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function La(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function Va(){for(var e=[],a=0;a0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}var en=function(){var e=Object.getPrototypeOf(this).constructor,a=Function.bind.apply(String,function(){for(var e=[],a=0;a=300?[2,sa(e,a)]:[4,Na(e.body,a)];case 1:return n=r.sent(),t=Ta(n,a),i=(0,aa.Cl)({$metadata:ja(e)},t),[2,Promise.resolve(i)]}}))}))}(e,a)},a}(Ya),nn=function(e){function a(a,n){void 0===n&&(n=!0);var t=e.call(this,a)||this;return t.tryNextLink=n,t}return function(e,a){function n(){this.constructor=e}W(e,a),e.prototype=null===a?Object.create(a):(n.prototype=a.prototype,new n)}(a,e),a}(Error);function tn(e){return Promise.all(Object.keys(e).reduce((function(a,n){var t=e[n];return"string"===typeof t?a.push([n,t]):a.push(t().then((function(e){return[n,e]}))),a}),[])).then((function(e){return e.reduce((function(e,a){var n=Y(a,2),t=n[0],i=n[1];return e[t]=i,e}),{})}))}function rn(e){var a=this;return function(){return G(a,void 0,void 0,(function(){var a,n,t,i,r,s,d,o,l,u,c,m,f;return X(this,(function(p){switch(p.label){case 0:return u=(l=e.client).send,c=an.bind,f={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,tn(e.logins)]:[3,2];case 1:return m=p.sent(),[3,3];case 2:m=void 0,p.label=3;case 3:return[4,u.apply(l,[new(c.apply(an,[void 0,(f.Logins=m,f)]))])];case 4:return a=p.sent().Credentials,n=void 0===a?function(){throw new nn("Response from Amazon Cognito contained no credentials")}():a,t=n.AccessKeyId,i=void 0===t?function(){throw new nn("Response from Amazon Cognito contained no access key ID")}():t,r=n.Expiration,s=n.SecretKey,d=void 0===s?function(){throw new nn("Response from Amazon Cognito contained no secret key")}():s,o=n.SessionToken,[2,{identityId:e.identityId,accessKeyId:i,secretAccessKey:d,sessionToken:o,expiration:r}]}}))}))}}var sn=function(e){function a(a){var n=e.call(this)||this;return n.input=a,n}return(0,aa.C6)(a,e),a.prototype.resolveMiddleware=function(e,a,n){this.middlewareStack.use(Ba(a,this.serialize,this.deserialize));var t=e.concat(this.middlewareStack),i={logger:a.logger,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:Te.filterSensitiveLog,outputFilterSensitiveLog:ke.filterSensitiveLog},r=a.requestHandler;return t.resolve((function(e){return r.handle(e.request,n||{})}),i)},a.prototype.serialize=function(e,a){return function(e,a){return(0,aa.sH)(void 0,void 0,void 0,(function(){var n,t;return(0,aa.YH)(this,(function(i){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},t=JSON.stringify(va(e,a)),[2,Za(a,n,"/",void 0,t)]}))}))}(e,a)},a.prototype.deserialize=function(e,a){return function(e,a){return(0,aa.sH)(void 0,void 0,void 0,(function(){var n,t,i;return(0,aa.YH)(this,(function(r){switch(r.label){case 0:return e.statusCode>=300?[2,da(e,a)]:[4,Na(e.body,a)];case 1:return n=r.sent(),t=ka(n,a),i=(0,aa.Cl)({$metadata:ja(e)},t),[2,Promise.resolve(i)]}}))}))}(e,a)},a}(Ya),dn="IdentityIds",on=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",(function(a){var n=a.get(e);return new Promise((function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}}))})).catch((function(){return null}))},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",(function(a){var n=a.delete(e);return new Promise((function(e,a){n.onerror=function(){return a(n.error)},n.onsuccess=function(){return e()}}))}))},e.prototype.setItem=function(e,a){return this.withObjectStore("readwrite",(function(n){var t=n.put({id:e,value:a});return new Promise((function(e,a){t.onerror=function(){return a(t.error)},t.onsuccess=function(){return e()}}))}))},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise((function(a,n){e.onsuccess=function(){a(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var a=e.result;a.onerror=function(){n(new Error("Failed to create object store"))},a.createObjectStore(dn,{keyPath:"id"})}}))},e.prototype.withObjectStore=function(e,a){return this.getDb().then((function(n){var t=n.transaction(dn,e);return t.oncomplete=function(){return n.close()},new Promise((function(e,n){t.onerror=function(){return n(t.error)},e(a(t.objectStore(dn)))})).catch((function(e){throw n.close(),e}))}))},e}(),ln=new(function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,a){this.store[e]=a},e}());function un(e){var a=this,n=e.accountId,t=e.cache,i=void 0===t?"object"===typeof self&&self.indexedDB?new on:"object"===typeof window&&window.localStorage?window.localStorage:ln:t,r=e.client,s=e.customRoleArn,d=e.identityPoolId,o=e.logins,l=e.userIdentifier,u=void 0===l?o&&0!==Object.keys(o).length?void 0:"ANONYMOUS":l,c=u?"aws:cognito-identity-credentials:"+d+":"+u:void 0,m=function(){return G(a,void 0,void 0,(function(){var e,a,t,l,u,f,p,b,h;return X(this,(function(_){switch(_.label){case 0:return(a=c)?[4,i.getItem(c)]:[3,2];case 1:a=_.sent(),_.label=2;case 2:return(e=a)?[3,7]:(f=(u=r).send,p=sn.bind,h={AccountId:n,IdentityPoolId:d},o?[4,tn(o)]:[3,4]);case 3:return b=_.sent(),[3,5];case 4:b=void 0,_.label=5;case 5:return[4,f.apply(u,[new(p.apply(sn,[void 0,(h.Logins=b,h)]))])];case 6:t=_.sent().IdentityId,l=void 0===t?function(){throw new nn("Response from Amazon Cognito contained no identity ID")}():t,e=l,c&&Promise.resolve(i.setItem(c,e)).catch((function(){})),_.label=7;case 7:return[2,(m=rn({client:r,customRoleArn:s,logins:o,identityId:e}))()]}}))}))};return function(){return m().catch((function(e){return G(a,void 0,void 0,(function(){return X(this,(function(a){throw c&&Promise.resolve(i.removeItem(c)).catch((function(){})),e}))}))}))}}var cn=n(94903);function mn(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))}function fn(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function bn(e){var a="function"===typeof Symbol&&Symbol.iterator,n=a&&e[a],t=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}var hn=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,_n)},_n=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};for(var vn=function(){function e(e){var a=(void 0===e?{}:e).requestTimeout;this.requestTimeout=a}return e.prototype.destroy=function(){},e.prototype.handle=function(e,a){var n=(void 0===a?{}:a).abortSignal,t=this.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var r=e.path;if(e.query){var s=function(e){var a,n,t=[];try{for(var i=bn(Object.keys(e).sort()),r=i.next();!r.done;r=i.next()){var s=r.value,d=e[s];if(s=hn(s),Array.isArray(d))for(var o=0,l=d.length;o>=xn;var l=i/4*3;r>>=s%Sn;for(var u=Math.floor(s/Sn),c=0;c>m)}}return new Uint8Array(n)}function qn(e){return new Promise((function(a,n){var t=new FileReader;t.onloadend=function(){var e;if(2!==t.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=t.result)&&void 0!==e?e:"",r=i.indexOf(","),s=r>-1?r+1:i.length;a(i.substring(s))},t.onabort=function(){return n(new Error("Read aborted"))},t.onerror=function(){return n(t.error)},t.readAsDataURL(e)}))}var Cn=function(){return Cn=Object.assign||function(e){for(var a,n=1,t=arguments.length;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}var Zn=function(e){return function(a,n){return function(t){return Fn(void 0,void 0,void 0,(function(){var i;return jn(this,(function(r){return(null===(i=null===e||void 0===e?void 0:e.retryStrategy)||void 0===i?void 0:i.mode)&&(n.userAgent=function(){for(var e=[],a=0;a0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function it(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}var rt,st={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,a){var n=void 0;switch(e){case"ap-northeast-1":n={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":n={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":n={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":n={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":n={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":n={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":n={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":n={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:Jn.has(e)&&(n={hostname:Yn.replace("{region}",e),partition:"aws"}),$n.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),et.has(e)&&(n={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),at.has(e)&&(n={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),nt.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:Yn.replace("{region}",e),partition:"aws"})}return Promise.resolve((0,aa.Cl)({signingService:"cognito-identity"},n))},serviceId:"Cognito Identity",urlParser:function(e){var a,n=new URL(e),t=n.hostname,i=n.pathname,r=n.port,s=n.protocol,d=n.search;return d&&(a=function(e){var a,n,t={};if(e=e.replace(/^\?/,""))try{for(var i=tt(e.split("&")),r=i.next();!r.done;r=i.next()){var s=it(r.value.split("="),2),d=s[0],o=s[1],l=void 0===o?null:o;d=decodeURIComponent(d),l&&(l=decodeURIComponent(l)),d in t?Array.isArray(t[d])?t[d].push(l):t[d]=[t[d],l]:t[d]=l}}catch(u){a={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return t}(d)),{hostname:t,port:r?parseInt(r):void 0,protocol:s,path:i,query:a}}},dt=(0,aa.Cl)((0,aa.Cl)({},st),{runtime:"browser",base64Decoder:An,base64Encoder:function(e){for(var a="",n=0;n>l]}a+="==".slice(0,4-d)}return a},bodyLengthChecker:function(e){if("string"===typeof e){for(var a=e.length,n=a-1;n>=0;n--){var t=e.charCodeAt(n);t>127&&t<=2047?a++:t>2047&&t<=65535&&(a+=2)}return a}return"number"===typeof e.byteLength?e.byteLength:"number"===typeof e.size?e.size:void 0},credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:function(e){var a=e.serviceId,n=e.clientVersion;return function(){return Qn(void 0,void 0,void 0,(function(){var e,t,i,r,s,d,o,l,u;return Wn(this,(function(c){return e=(null===(i=null===window||void 0===window?void 0:window.navigator)||void 0===i?void 0:i.userAgent)?Xn().parse(window.navigator.userAgent):void 0,t=[["aws-sdk-js",n],["os/"+((null===(r=null===e||void 0===e?void 0:e.os)||void 0===r?void 0:r.name)||"other"),null===(s=null===e||void 0===e?void 0:e.os)||void 0===s?void 0:s.version],["lang/js"],["md/browser",(null!==(o=null===(d=null===e||void 0===e?void 0:e.browser)||void 0===d?void 0:d.name)&&void 0!==o?o:"unknown")+"_"+(null!==(u=null===(l=null===e||void 0===e?void 0:e.browser)||void 0===l?void 0:l.version)&&void 0!==u?u:"unknown")]],a&&t.push(["api/"+a,n]),[2,t]}))}))}}({serviceId:st.serviceId,clientVersion:"3.6.1"}),maxAttempts:3,region:(rt="Region is missing",function(){return Promise.reject(rt)}),requestHandler:new vn,sha256:cn.Sha256,streamCollector:function(e){return"function"===typeof Blob&&e instanceof Blob?function(e){return mn(this,void 0,void 0,(function(){var a,n;return fn(this,(function(t){switch(t.label){case 0:return[4,qn(e)];case 1:return a=t.sent(),n=An(a),[2,new Uint8Array(n)]}}))}))}(e):function(e){return mn(this,void 0,void 0,(function(){var a,n,t,i,r,s,d;return fn(this,(function(o){switch(o.label){case 0:a=new Uint8Array(0),n=e.getReader(),t=!1,o.label=1;case 1:return t?[3,3]:[4,n.read()];case 2:return i=o.sent(),r=i.done,(s=i.value)&&(d=a,(a=new Uint8Array(d.length+s.length)).set(d),a.set(s,d.length)),t=r,[3,1];case 3:return[2,a]}}))}))}(e)},utf8Decoder:function(e){return"function"===typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var a=[],n=0,t=e.length;n>6|192,63&i|128);else if(n+1>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else a.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(a)}(e)},utf8Encoder:function(e){return"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var a="",n=0,t=e.length;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0&&!t.headers[":authority"]?(delete t.headers.host,t.headers[":authority"]=""):t.headers.host||(t.headers.host=t.hostname),[2,a(n)]):[2,a(n)]}))}))}}}(e),Tt)}}};function Et(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))}function It(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function jt(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}for(var Dt={},Zt={},Nt=0;Nt<256;Nt++){var Ot=Nt.toString(16).toLowerCase();1===Ot.length&&(Ot="0"+Ot),Dt[Nt]=Ot,Zt[Ot]=Nt}function Rt(e){for(var a="",n=0;n-1&&delete e.headers[r]}}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=t.return)&&n.call(t)}finally{if(a)throw a.error}}return e}function ui(e){return function(e){if("number"===typeof e)return new Date(1e3*e);if("string"===typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var ci=function(){function e(e){var a=e.applyChecksum,n=e.credentials,t=e.region,i=e.service,r=e.sha256,s=e.uriEscapePath,d=void 0===s||s;this.service=i,this.sha256=r,this.uriEscapePath=d,this.applyChecksum="boolean"!==typeof a||a,this.regionProvider=pi(t),this.credentialProvider=bi(n)}return e.prototype.presign=function(e,a){return void 0===a&&(a={}),qt(this,void 0,void 0,(function(){var n,t,i,r,s,d,o,l,u,c,m,f,p,b,h,_,v,y,g,w,T,k,E,I;return Ct(this,(function(x){switch(x.label){case 0:return n=a.signingDate,t=void 0===n?new Date:n,i=a.expiresIn,r=void 0===i?3600:i,s=a.unsignableHeaders,d=a.unhoistableHeaders,o=a.signableHeaders,l=a.signingRegion,u=a.signingService,[4,this.credentialProvider()];case 1:return c=x.sent(),null===l||void 0===l?[3,2]:(f=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:f=x.sent(),x.label=4;case 4:return m=f,p=mi(t),b=p.longDate,h=p.shortDate,r>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(_=ai(h,m,null!==u&&void 0!==u?u:this.service),v=function(e,a){var n,t,i;void 0===a&&(a={});var r="function"===typeof e.clone?e.clone():di(e),s=r.headers,d=r.query,o=void 0===d?{}:d;try{for(var l=Ft(Object.keys(s)),u=l.next();!u.done;u=l.next()){var c=u.value,m=c.toLowerCase();"x-amz-"!==m.substr(0,6)||(null===(i=a.unhoistableHeaders)||void 0===i?void 0:i.has(m))||(o[c]=s[c],delete s[c])}}catch(f){n={error:f}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(n)throw n.error}}return At(At({},e),{headers:s,query:o})}(li(e),{unhoistableHeaders:d}),c.sessionToken&&(v.query[Pt]=c.sessionToken),v.query["X-Amz-Algorithm"]=Xt,v.query["X-Amz-Credential"]=c.accessKeyId+"/"+_,v.query[zt]=b,v.query["X-Amz-Expires"]=r.toString(10),y=ti(v,s,o),v.query["X-Amz-SignedHeaders"]=fi(y),g=v.query,w=Ut,T=this.getSignature,k=[b,_,this.getSigningKey(c,m,h,u)],E=this.createCanonicalRequest,I=[v,y],[4,si(e,this.sha256)]);case 5:return[4,T.apply(this,k.concat([E.apply(this,I.concat([x.sent()]))]))];case 6:return g[w]=x.sent(),[2,v]}}))}))},e.prototype.sign=function(e,a){return qt(this,void 0,void 0,(function(){return Ct(this,(function(n){return"string"===typeof e?[2,this.signString(e,a)]:e.headers&&e.payload?[2,this.signEvent(e,a)]:[2,this.signRequest(e,a)]}))}))},e.prototype.signEvent=function(e,a){var n=e.headers,t=e.payload,i=a.signingDate,r=void 0===i?new Date:i,s=a.priorSignature,d=a.signingRegion,o=a.signingService;return qt(this,void 0,void 0,(function(){var e,a,i,l,u,c,m,f,p,b,h;return Ct(this,(function(_){switch(_.label){case 0:return null===d||void 0===d?[3,1]:(a=d,[3,3]);case 1:return[4,this.regionProvider()];case 2:a=_.sent(),_.label=3;case 3:return e=a,i=mi(r),l=i.shortDate,u=i.longDate,c=ai(l,e,null!==o&&void 0!==o?o:this.service),[4,si({headers:{},body:t},this.sha256)];case 4:return m=_.sent(),(f=new this.sha256).update(n),b=Rt,[4,f.digest()];case 5:return p=b.apply(void 0,[_.sent()]),h=[Yt,u,c,s,p,m].join("\n"),[2,this.signString(h,{signingDate:r,signingRegion:e,signingService:o})]}}))}))},e.prototype.signString=function(e,a){var n=void 0===a?{}:a,t=n.signingDate,i=void 0===t?new Date:t,r=n.signingRegion,s=n.signingService;return qt(this,void 0,void 0,(function(){var a,n,t,d,o,l,u,c;return Ct(this,(function(m){switch(m.label){case 0:return[4,this.credentialProvider()];case 1:return a=m.sent(),null===r||void 0===r?[3,2]:(t=r,[3,4]);case 2:return[4,this.regionProvider()];case 3:t=m.sent(),m.label=4;case 4:return n=t,d=mi(i).shortDate,u=(l=this.sha256).bind,[4,this.getSigningKey(a,n,d,s)];case 5:return(o=new(u.apply(l,[void 0,m.sent()]))).update(e),c=Rt,[4,o.digest()];case 6:return[2,c.apply(void 0,[m.sent()])]}}))}))},e.prototype.signRequest=function(e,a){var n=void 0===a?{}:a,t=n.signingDate,i=void 0===t?new Date:t,r=n.signableHeaders,s=n.unsignableHeaders,d=n.signingRegion,o=n.signingService;return qt(this,void 0,void 0,(function(){var a,n,t,l,u,c,m,f,p,b,h;return Ct(this,(function(_){switch(_.label){case 0:return[4,this.credentialProvider()];case 1:return a=_.sent(),null===d||void 0===d?[3,2]:(t=d,[3,4]);case 2:return[4,this.regionProvider()];case 3:t=_.sent(),_.label=4;case 4:return n=t,l=li(e),u=mi(i),c=u.longDate,m=u.shortDate,f=ai(m,n,null!==o&&void 0!==o?o:this.service),l.headers[Bt]=c,a.sessionToken&&(l.headers[Vt]=a.sessionToken),[4,si(l,this.sha256)];case 5:return p=_.sent(),!function(e,a){var n,t;e=e.toLowerCase();try{for(var i=Ft(Object.keys(a)),r=i.next();!r.done;r=i.next())if(e===r.value.toLowerCase())return!0}catch(s){n={error:s}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(n)throw n.error}}return!1}(Lt,l.headers)&&this.applyChecksum&&(l.headers[Lt]=p),b=ti(l,s,r),[4,this.getSignature(c,f,this.getSigningKey(a,n,m,o),this.createCanonicalRequest(l,b,p))];case 6:return h=_.sent(),l.headers[Ht]=Xt+" Credential="+a.accessKeyId+"/"+f+", SignedHeaders="+fi(b)+", Signature="+h,[2,l]}}))}))},e.prototype.createCanonicalRequest=function(e,a,n){var t=Object.keys(a).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var a,n,t=e.query,i=void 0===t?{}:t,r=[],s={},d=function(e){if(e.toLowerCase()===Kt)return"continue";r.push(e);var a=i[e];"string"===typeof a?s[e]=ii(e)+"="+ii(a):Array.isArray(a)&&(s[e]=a.slice(0).sort().reduce((function(a,n){return a.concat([ii(e)+"="+ii(n)])}),[]).join("&"))};try{for(var o=Ft(Object.keys(i).sort()),l=o.next();!l.done;l=o.next())d(l.value)}catch(u){a={error:u}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return r.map((function(e){return s[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+t.map((function(e){return e+":"+a[e]})).join("\n")+"\n\n"+t.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,a,n){return qt(this,void 0,void 0,(function(){var t,i;return Ct(this,(function(r){switch(r.label){case 0:return(t=new this.sha256).update(n),[4,t.digest()];case 1:return i=r.sent(),[2,Xt+"\n"+e+"\n"+a+"\n"+Rt(i)]}}))}))},e.prototype.getCanonicalPath=function(e){var a=e.path;return this.uriEscapePath?"/"+encodeURIComponent(a.replace(/^\//,"")).replace(/%2F/g,"/"):a},e.prototype.getSignature=function(e,a,n,t){return qt(this,void 0,void 0,(function(){var i,r,s,d,o;return Ct(this,(function(l){switch(l.label){case 0:return[4,this.createStringToSign(e,a,t)];case 1:return i=l.sent(),d=(s=this.sha256).bind,[4,n];case 2:return(r=new(d.apply(s,[void 0,l.sent()]))).update(i),o=Rt,[4,r.digest()];case 3:return[2,o.apply(void 0,[l.sent()])]}}))}))},e.prototype.getSigningKey=function(e,a,n,t){return function(e,a,n,t,i){return qt(void 0,void 0,void 0,(function(){var r,s,d,o,l,u,c,m,f;return Ct(this,(function(p){switch(p.label){case 0:return[4,ni(e,a.secretAccessKey,a.accessKeyId)];case 1:if(r=p.sent(),(s=n+":"+t+":"+i+":"+Rt(r)+":"+a.sessionToken)in $t)return[2,$t[s]];for(ei.push(s);ei.length>50;)delete $t[ei.shift()];d="AWS4"+a.secretAccessKey,p.label=2;case 2:p.trys.push([2,7,8,9]),o=Ft([n,t,i,Jt]),l=o.next(),p.label=3;case 3:return l.done?[3,6]:(u=l.value,[4,ni(e,d,u)]);case 4:d=p.sent(),p.label=5;case 5:return l=o.next(),[3,3];case 6:return[3,9];case 7:return c=p.sent(),m={error:c},[3,9];case 8:try{l&&!l.done&&(f=o.return)&&f.call(o)}finally{if(m)throw m.error}return[7];case 9:return[2,$t[s]=d]}}))}))}(this.sha256,e,n,a,t||this.service)},e}(),mi=function(e){var a=ui(e).replace(/[\-:]/g,"");return{longDate:a,shortDate:a.substr(0,8)}},fi=function(e){return Object.keys(e).sort().join(";")},pi=function(e){if("string"===typeof e){var a=Promise.resolve(e);return function(){return a}}return e},bi=function(e){if("object"===typeof e){var a=Promise.resolve(e);return function(){return a}}return e};function hi(e){if("object"===typeof e){var a=Promise.resolve(e);return function(){return a}}return e}var _i=function(){return _i=Object.assign||function(e){for(var a,n=1,t=arguments.length;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function wi(){for(var e=[],a=0;a0})).map((function(e){return null===e||void 0===e?void 0:e.replace(ki,"_")})).join("/")},Ii={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},xi=function(e){return{applyToStack:function(a){var n;a.add((n=e,function(e,a){return function(t){return vi(void 0,void 0,void 0,(function(){var i,r,s,d,o,l,u,c;return yi(this,(function(m){switch(m.label){case 0:return i=t.request,ra.isInstance(i)?(r=i.headers,s=(null===(u=null===a||void 0===a?void 0:a.userAgent)||void 0===u?void 0:u.map(Ei))||[],[4,n.defaultUserAgentProvider()]):[2,e(t)];case 1:return d=m.sent().map(Ei),o=(null===(c=null===n||void 0===n?void 0:n.customUserAgent)||void 0===c?void 0:c.map(Ei))||[],r["x-amz-user-agent"]=wi(d,s,o).join(" "),l=wi(d.filter((function(e){return e.startsWith("aws-sdk-")})),o).join(" "),"browser"!==n.runtime&&l&&(r[Ti]=r[Ti]?r[Ti]+" "+l:l),[2,e(_i(_i({},t),{request:i}))]}}))}))}}),Ii)}}},Si=function(e){function a(a){var n,t,i=this,r=function(e){if(!e.region)throw new Error("Region is missing");return ot(ot({},e),{region:ft(e.region)})}((0,aa.Cl)((0,aa.Cl)({},dt),a)),s=function(e){var a;return ot(ot({},e),{tls:null===(a=e.tls)||void 0===a||a,endpoint:e.endpoint?ct(e):function(){return mt(e)},isCustomEndpoint:!!e.endpoint})}(r),d=function(e){var a,n=this,t=hi(e.credentials||e.credentialDefaultProvider(e)),i=e.signingEscapePath,r=void 0===i||i,s=e.systemClockOffset,d=void 0===s?e.systemClockOffset||0:s,o=e.sha256;return a=e.signer?hi(e.signer):function(){return hi(e.region)().then((function(a){return qt(n,void 0,void 0,(function(){return Ct(this,(function(n){switch(n.label){case 0:return[4,e.regionInfoProvider(a)];case 1:return[2,[n.sent()||{},a]]}}))}))})).then((function(a){var n=jt(a,2),i=n[0],s=n[1],d=i.signingRegion,l=i.signingService;return e.signingRegion=e.signingRegion||d||s,e.signingName=e.signingName||l||e.serviceId,new ci({credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r})}))},At(At({},e),{systemClockOffset:d,signingEscapePath:r,credentials:t,signer:a})}(s),o=function(e){var a=Vn(e.maxAttempts);return Cn(Cn({},e),{maxAttempts:a,retryStrategy:e.retryStrategy||new Ln(a)})}(d),l=_i(_i({},n=o),{customUserAgent:"string"===typeof n.customUserAgent?[[n.customUserAgent]]:n.customUserAgent});return(i=e.call(this,l)||this).config=l,i.middlewareStack.use((t=i.config,{applyToStack:function(e){e.add(Zn(t),Nn)}})),i.middlewareStack.use(yt(i.config)),i.middlewareStack.use(kt(i.config)),i.middlewareStack.use((i.config,{applyToStack:function(e){e.add(xt(),St)}})),i.middlewareStack.use(xi(i.config)),i}return(0,aa.C6)(a,e),a.prototype.destroy=function(){e.prototype.destroy.call(this)},a}(Xa),Ai="aws-amplify/4.7.14",qi={userAgent:Ai+" js",product:"",navigator:null,isReactNative:!1};if("undefined"!==typeof navigator&&navigator.product)if(qi.product=navigator.product||"",qi.navigator=navigator||null,"ReactNative"===navigator.product)qi.userAgent=Ai+" react-native",qi.isReactNative=!0;else qi.userAgent=Ai+" js",qi.isReactNative=!1;var Ci=function(){return Ci=Object.assign||function(e){for(var a,n=1,t=arguments.length;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1](new Date).getTime()?(Ni.debug("token not expired"),this._setCredentialsFromFederation({provider:a,token:t,user:n,identity_id:i,expires_at:r})):s._refreshHandlers[a]&&"function"===typeof s._refreshHandlers[a]?(Ni.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:s._refreshHandlers[a],provider:a,user:n})):(Ni.debug("no refresh handler for provider:",a),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var a=this,n=e.refreshHandler,t=e.provider,i=e.user;return Z(n,[],1e4).then((function(e){return Ni.debug("refresh federated token sucessfully",e),a._setCredentialsFromFederation({provider:t,token:e.token,user:i,identity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e){return"string"===typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||a.clear(),Ni.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return Ni.debug("no credentials for expiration check"),!0;Ni.debug("are these credentials expired?",e);var a=Date.now();return e.expiration.getTime()<=a},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){return Di(this,void 0,void 0,(function(){var e,a,n,t,i,r,s,d,o=this;return Zi(this,(function(l){switch(l.label){case 0:return Ni.debug("setting credentials for guest"),e=this._config,a=e.identityPoolId,n=e.region,e.mandatorySignIn?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:a?n?(i=this,[4,this._getGuestIdentityId()]):(Ni.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(Ni.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return t=i._identityId=l.sent(),r=Fi({region:n}),s=void 0,t?s=rn({identityId:t,client:r})():(d=function(){return Di(o,void 0,void 0,(function(){var e;return Zi(this,(function(n){switch(n.label){case 0:return[4,r.send(new sn({IdentityPoolId:a}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,rn({client:r,identityId:e})()]}}))}))},s=d().catch((function(e){return Di(o,void 0,void 0,(function(){return Zi(this,(function(a){throw e}))}))}))),[2,this._loadCredentials(s,"guest",!1,null).then((function(e){return e})).catch((function(e){return Di(o,void 0,void 0,(function(){var n,i=this;return Zi(this,(function(d){switch(d.label){case 0:return"ResourceNotFoundException"!==e.name||e.message!=="Identity '"+t+"' not found."?[3,2]:(Ni.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]);case 1:return d.sent(),n=function(){return Di(i,void 0,void 0,(function(){var e;return Zi(this,(function(n){switch(n.label){case 0:return[4,r.send(new sn({IdentityPoolId:a}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,rn({client:r,identityId:e})()]}}))}))},s=n().catch((function(e){return Di(i,void 0,void 0,(function(){return Zi(this,(function(a){throw e}))}))})),[2,this._loadCredentials(s,"guest",!1,null)];case 2:return[2,e]}}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var a=e.provider,n=e.token,t=e.identity_id,i={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[a]||a;if(!i)return Promise.reject("You must specify a federated provider");var r={};r[i]=n;var s=this._config,d=s.identityPoolId,o=s.region;if(!d)return Ni.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!o)return Ni.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var l=Fi({region:o}),u=void 0;t?u=rn({identityId:t,logins:r,client:l})():u=un({logins:r,identityPoolId:d,client:l})();return this._loadCredentials(u,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var a=this;Ni.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),t=this._config,i=t.region,r=t.userPoolId,s=t.identityPoolId;if(!s)return Ni.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!i)return Ni.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var d={};d["cognito-idp."+i+".amazonaws.com/"+r]=n;var o=Fi({region:i}),l=Di(a,void 0,void 0,(function(){var e,a,n,t,i,r,l,u,c,m;return Zi(this,(function(f){switch(f.label){case 0:return[4,this._getGuestIdentityId()];case 1:return(e=f.sent())?[3,3]:[4,o.send(new sn({IdentityPoolId:s,Logins:d}))];case 2:n=f.sent().IdentityId,a=n,f.label=3;case 3:return[4,o.send(new an({IdentityId:e||a,Logins:d}))];case 4:return t=f.sent(),i=t.Credentials,r=i.AccessKeyId,l=i.Expiration,u=i.SecretKey,c=i.SessionToken,m=t.IdentityId,this._identityId=m,e?(Ni.debug("The guest identity "+e+" has been successfully linked to the logins"),e===m&&Ni.debug("The guest identity "+e+" has become the primary identity"),[4,this._removeGuestIdentityId()]):[3,6];case 5:f.sent(),f.label=6;case 6:return[2,{accessKeyId:r,secretAccessKey:u,sessionToken:c,expiration:l,identityId:m}]}}))})).catch((function(e){return Di(a,void 0,void 0,(function(){return Zi(this,(function(a){throw e}))}))}));return this._loadCredentials(l,"userPool",!0,null)},e.prototype._loadCredentials=function(e,a,n,t){var i=this,r=this;return new Promise((function(s,d){e.then((function(e){return Di(i,void 0,void 0,(function(){var i,d,o,l,u;return Zi(this,(function(c){switch(c.label){case 0:if(Ni.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),r._credentials=e,r._credentials.authenticated=n,r._credentials_source=a,r._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===a){i=Object.assign({id:this._credentials.identityId},t.user),d=t.provider,o=t.token,l=t.expires_at,u=t.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:d,token:o,user:i,expires_at:l,identity_id:u}))}catch(m){Ni.debug("Failed to put federated info into auth storage",m)}}return"guest"!==a?[3,2]:[4,this._setGuestIdentityId(e.identityId)];case 1:c.sent(),c.label=2;case 2:return s(r._credentials),[2]}}))}))})).catch((function(a){if(a)return Ni.debug("Failed to load credentials",e),Ni.debug("Error loading credentials",a),void d(a)}))}))},e.prototype.set=function(e,a){return"session"===a?this._setCredentialsFromSession(e):"federation"===a?this._setCredentialsFromFederation(e):"guest"===a?this._setCredentialsForGuest():(Ni.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return Di(this,void 0,void 0,(function(){return Zi(this,(function(e){return this._credentials=null,this._credentials_source=null,Ni.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype._getGuestIdentityId=function(){return Di(this,void 0,void 0,(function(){var e,a;return Zi(this,(function(n){switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return a=n.sent(),Ni.debug("Failed to get the cached guest identityId",a),[3,4];case 4:return[2]}}))}))},e.prototype._setGuestIdentityId=function(e){return Di(this,void 0,void 0,(function(){var a,n;return Zi(this,(function(t){switch(t.label){case 0:a=this._config.identityPoolId,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._storageSync];case 2:return t.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(a),e),[3,4];case 3:return n=t.sent(),Ni.debug("Failed to cache guest identityId",n),[3,4];case 4:return[2]}}))}))},e.prototype._removeGuestIdentityId=function(){return Di(this,void 0,void 0,(function(){var e;return Zi(this,(function(a){return e=this._config.identityPoolId,Ni.debug("removing "+this._getCognitoIdentityIdStorageKey(e)+" from storage"),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}(),Ri=new Oi(null);Q.HA.register(Ri);var zi=function(){return zi=Object.assign||function(e){for(var a,n=1,t=arguments.length;n=0&&this.changeListeners.splice(a,1)},e}();const Vi=Li;var Qi=T().isBrowser,Wi=function(){function e(e){void 0===e&&(e={}),this.cookies=new Vi,this.store=Qi?window.localStorage:Object.create(null),this.cookies=e.req?new Vi(e.req.headers.cookie):new Vi,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(new Array(this.length)).map((function(a,n){return e.key(n)})).forEach((function(a){return e.removeItem(a)}))},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,a){switch(this.setLocalItem(e,a),e.split(".").pop()){case"LastAuthUser":case"accessToken":case"refreshToken":case"idToken":Qi?this.setUniversalItem(e,a):this.setLocalItem(e,a)}},e.prototype.setLocalItem=function(e,a){this.store[e]=a},e.prototype.setUniversalItem=function(e,a){this.cookies.set(e,a,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},e}();var Gi=n(64801),Xi=n(74080),Yi=function(e){var a=window.open(e,"_self");return a?Promise.resolve(a):Promise.reject()},Ji=n(76368),$i=n.n(Ji),er=n(78523),ar=n.n(er),nr=function(){return nr=Object.assign||function(e){for(var a,n=1,t=arguments.length;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},sr="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",dr=function(e,a,n){l.YZ.dispatch("auth",{event:e,data:a,message:n},"Auth",sr)},or=new o.C("OAuth"),lr=function(){function e(e){var a=e.config,n=e.cognitoClientId,t=e.scopes,i=void 0===t?[]:t;if(this._urlOpener=a.urlOpener||Yi,this._config=a,this._cognitoClientId=n,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"===typeof e}))},e.prototype.oauthSignIn=function(e,a,n,i,r,s){void 0===e&&(e="code"),void 0===r&&(r=t.Cognito);var d=this._generateState(32),o=s?d+"-"+s.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):d;!function(e){window.sessionStorage.setItem("oauth_state",e)}(o);var l,u=this._generateRandom(128);l=u,window.sessionStorage.setItem("ouath_pkce_key",l);var c=this._generateChallenge(u),m=this._scopes.join(" "),f="https://"+a+"/oauth2/authorize?"+Object.entries(nr(nr({redirect_uri:n,response_type:e,client_id:i,identity_provider:r,scope:m,state:o},"code"===e?{code_challenge:c}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var a=rr(e,2),n=a[0],t=a[1];return encodeURIComponent(n)+"="+encodeURIComponent(t)})).join("&");or.debug("Redirecting to "+f),this._urlOpener(f,n)},e.prototype._handleCodeFlow=function(e){return tr(this,void 0,void 0,(function(){var a,n,t,i,r,s,o,l,u,c,m,f,p,b;return ir(this,(function(h){switch(h.label){case 0:return a=((0,Xi.qg)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,a){var n,t=rr(a,2),i=t[0],r=t[1];return nr(nr({},e),((n={})[i]=r,n))}),{code:void 0}).code,n=(0,Xi.qg)(e).pathname||"/",t=(0,Xi.qg)(this._config.redirectSignIn).pathname||"/",a&&n===t?(i="https://"+this._config.domain+"/oauth2/token",dr("codeFlow",{},"Retrieving tokens from "+i),r=d(this._config)?this._cognitoClientId:this._config.clientID,s=d(this._config)?this._config.redirectSignIn:this._config.redirectUri,o=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e}(),l=nr({grant_type:"authorization_code",code:a,client_id:r,redirect_uri:s},o?{code_verifier:o}:{}),or.debug("Calling token endpoint: "+i+" with",l),u=Object.entries(l).map((function(e){var a=rr(e,2),n=a[0],t=a[1];return encodeURIComponent(n)+"="+encodeURIComponent(t)})).join("&"),[4,fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u})]):[2];case 1:return[4,h.sent().json()];case 2:if(c=h.sent(),m=c.access_token,f=c.refresh_token,p=c.id_token,b=c.error)throw new Error(b);return[2,{accessToken:m,refreshToken:f,idToken:p}]}}))}))},e.prototype._handleImplicitFlow=function(e){return tr(this,void 0,void 0,(function(){var a,n,t;return ir(this,(function(i){return a=((0,Xi.qg)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,a){var n,t=rr(a,2),i=t[0],r=t[1];return nr(nr({},e),((n={})[i]=r,n))}),{id_token:void 0,access_token:void 0}),n=a.id_token,t=a.access_token,dr("implicitFlow",{},"Got tokens from "+e),or.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:t,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return tr(this,void 0,void 0,(function(){var a,n,t,i,r,s,d;return ir(this,(function(o){switch(o.label){case 0:if(o.trys.push([0,5,,6]),a=e?nr(nr({},((0,Xi.qg)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,a){var n=rr(a,2),t=n[0],i=n[1];return e[t]=i,e}),{})),((0,Xi.qg)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,a){var n=rr(a,2),t=n[0],i=n[1];return e[t]=i,e}),{})):{},n=a.error,t=a.error_description,n)throw new Error(t);return i=this._validateState(a),or.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(r=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,nr.apply(void 0,[nr.apply(void 0,r.concat([o.sent()])),{state:i}])];case 2:return s=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,nr.apply(void 0,[nr.apply(void 0,s.concat([o.sent()])),{state:i}])];case 4:return[3,6];case 5:throw d=o.sent(),or.error("Error handling auth response.",d),d;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var a=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e}(),n=e.state;if(a&&a!==n)throw new Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return tr(this,void 0,void 0,(function(){var e,a,n;return ir(this,(function(t){return e="https://"+this._config.domain+"/logout?",a=d(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=d(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:a,logout_uri:encodeURIComponent(n)}).map((function(e){var a=rr(e,2);return a[0]+"="+a[1]})).join("&"),dr("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),or.debug("Signing out from "+e),[2,this._urlOpener(e,n)]}))}))},e.prototype._generateState=function(e){for(var a="",n=e,t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)a+=t[Math.round(61*Math.random())];return a},e.prototype._generateChallenge=function(e){return this._base64URL($i()(e))},e.prototype._base64URL=function(e){return e.toString(ar()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var a=new Uint8Array(e);if("undefined"!==typeof window&&window.crypto)window.crypto.getRandomValues(a);else for(var n=0;n0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},wr=new o.C("AuthClass"),Tr="aws.cognito.signin.user.admin",kr="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Er=function(e,a,n){l.YZ.dispatch("auth",{event:e,data:a,message:n},"Auth",kr)},Ir=function(){function e(e){var a=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.autoSignInInitiated=!1,this.Credentials=Ri,this.wrapRefreshSessionCallback=function(e){return function(a,n){return n?Er("tokenRefresh",void 0,"New token retrieved"):Er("tokenRefresh_failure",a,"Failed to retrieve new token"),e(a,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),l.YZ.listen("auth",(function(e){switch(e.payload.event){case"signIn":a._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":a._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":a._storage.setItem("amplify-signin-with-hostedUI","true")}}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var a=this;if(!e)return this._config||{};wr.debug("configure Auth");var n=Object.assign({},this._config,Hi.parseMobilehubConfig(e).Auth,e);this._config=n;var t=this._config,r=t.userPoolId,s=t.userPoolWebClientId,o=t.cookieStorage,l=t.oauth,u=t.region,c=t.identityPoolId,f=t.mandatorySignIn,p=t.refreshHandlers,b=t.identityPoolRegion,h=t.clientMetadata,_=t.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw wr.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=o?new Gi.W6(o):e.ssr?new Wi:(new m).getStorage();if(this._storageSync=Promise.resolve(),"function"===typeof this._storage.sync&&(this._storageSync=this._storage.sync()),r){var v={UserPoolId:r,ClientId:s,endpoint:_};v.Storage=this._storage,this.userPool=new Gi.NE(v,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:f,region:b||u,userPoolId:r,identityPoolId:c,refreshHandlers:p,storage:this._storage});var y=l?d(this._config.oauth)?l:l.awsCognito:void 0;if(y){var g=Object.assign({cognitoClientId:s,UserPoolId:r,domain:y.domain,scopes:y.scope,redirectSignIn:y.redirectSignIn,redirectSignOut:y.redirectSignOut,responseType:y.responseType,Storage:this._storage,urlOpener:y.urlOpener,clientMetadata:h},y.options);this._oAuthHandler=new ur({scopes:g.scopes,config:g,cognitoClientId:g.cognitoClientId});var w={};!function(e){if(T().isBrowser&&window.location)e({url:window.location.href});else if(!T().isNode)throw new Error("Not supported")}((function(e){var n=e.url;w[n]||(w[n]=!0,a._handleAuthResponse(n))}))}(Er("configured",null,"The Auth category has been configured successfully"),this.autoSignInInitiated||"function"!==typeof this._storage.getItem)||(this.isTrueStorageValue("amplify-polling-started")&&(Er("autoSignIn_failure",null,i.AutoSignInError),this._storage.removeItem("amplify-auto-sign-in")),this._storage.removeItem("amplify-polling-started"));return this._config},e.prototype.signUp=function(e){for(var a,n,t,r=this,s=[],d=1;d18e4?(clearInterval(t),Er("autoSignIn_failure",null,"Please confirm your account and use your credentials to sign in."),a._storage.removeItem("amplify-auto-sign-in")):a.signInAfterUserConfirmed(e,null,t)}),5e3)},e.prototype.signInAfterUserConfirmed=function(e,a,n){return vr(this,void 0,void 0,(function(){var t,i,r=this;return yr(this,(function(s){switch(s.label){case 0:t=this.createCognitoUser(e.getUsername()),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.authenticateUser(e,this.authCallbacks(t,(function(t){Er("autoSignIn",t,e.getUsername()+" has signed in successfully"),a&&l.YZ.remove("auth",a),n&&(clearInterval(n),r._storage.removeItem("amplify-polling-started")),r._storage.removeItem("amplify-auto-sign-in")}),(function(e){wr.error(e),r._storage.removeItem("amplify-auto-sign-in")})))];case 2:return s.sent(),[3,4];case 3:return i=s.sent(),wr.error(i),[3,4];case 4:return[2]}}))}))},e.prototype.confirmSignUp=function(e,a,n){var t=this;if(!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(i.EmptyUsername);if(!a)return this.rejectAuthError(i.EmptyCode);var r,s=this.createCognitoUser(e),d=!n||"boolean"!==typeof n.forceAliasCreation||n.forceAliasCreation;return n&&n.clientMetadata?r=n.clientMetadata:this._config.clientMetadata&&(r=this._config.clientMetadata),new Promise((function(n,o){s.confirmRegistration(a,d,(function(a,r){a?o(a):(Er("confirmSignUp",r,e+" has been confirmed successfully"),t.isTrueStorageValue("amplify-auto-sign-in")&&!t.autoSignInInitiated&&(Er("autoSignIn_failure",null,i.AutoSignInError),t._storage.removeItem("amplify-auto-sign-in")),n(r))}),r)}))},e.prototype.isTrueStorageValue=function(e){var a=this._storage.getItem(e);return!!a&&"true"===a},e.prototype.resendSignUp=function(e,a){if(void 0===a&&(a=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(i.EmptyUsername);var n=this.createCognitoUser(e);return new Promise((function(e,t){n.resendConfirmationCode((function(a,n){a?t(a):e(n)}),a)}))},e.prototype.signIn=function(e,a,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var t=null,r=null,s={};if("string"===typeof e)t=e,r=a;else{if(!e.username)return this.rejectAuthError(i.InvalidUsername);"undefined"!==typeof a&&wr.warn("The password should be defined under the first parameter object!"),t=e.username,r=e.password,s=e.validationData}if(!t)return this.rejectAuthError(i.EmptyUsername);var d=new Gi.By({Username:t,Password:r,ValidationData:s,ClientMetadata:n});return r?this.signInWithPassword(d):this.signInWithoutPassword(d)},e.prototype.authCallbacks=function(e,a,n){var t=this,i=this;return{onSuccess:function(r){return vr(t,void 0,void 0,(function(){var t,s,d,o;return yr(this,(function(l){switch(l.label){case 0:wr.debug(r),delete e.challengeName,delete e.challengeParam,l.label=1;case 1:return l.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return l.sent(),[4,this.Credentials.set(r,"session")];case 3:return t=l.sent(),wr.debug("succeed to get cognito credentials",t),[3,9];case 4:return s=l.sent(),wr.debug("cannot get cognito credentials",s),[3,9];case 5:return l.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return d=l.sent(),i.user=d,Er("signIn",d,"A user "+e.getUsername()+" has been signed in"),a(d),[3,8];case 7:return o=l.sent(),wr.error("Failed to get the signed in user",o),n(o),[3,8];case 8:return[7];case 9:return[2]}}))}))},onFailure:function(a){wr.debug("signIn failure",a),Er("signIn_failure",a,e.getUsername()+" failed to signin"),n(a)},customChallenge:function(n){wr.debug("signIn custom challenge answer required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=n,a(e)},mfaRequired:function(n,t){wr.debug("signIn MFA required"),e.challengeName=n,e.challengeParam=t,a(e)},mfaSetup:function(n,t){wr.debug("signIn mfa setup",n),e.challengeName=n,e.challengeParam=t,a(e)},newPasswordRequired:function(n,t){wr.debug("signIn new password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes:n,requiredAttributes:t},a(e)},totpRequired:function(n,t){wr.debug("signIn totpRequired"),e.challengeName=n,e.challengeParam=t,a(e)},selectMFAType:function(n,t){wr.debug("signIn selectMFAType",n),e.challengeName=n,e.challengeParam=t,a(e)}}},e.prototype.signInWithPassword=function(e){var a=this;if(this.pendingSignIn)throw new Error("Pending sign-in attempt already in progress");var n=this.createCognitoUser(e.getUsername());return this.pendingSignIn=new Promise((function(t,i){n.authenticateUser(e,a.authCallbacks(n,(function(e){a.pendingSignIn=null,t(e)}),(function(e){a.pendingSignIn=null,i(e)})))})),this.pendingSignIn},e.prototype.signInWithoutPassword=function(e){var a=this,n=this.createCognitoUser(e.getUsername());return n.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise((function(t,i){n.initiateAuth(e,a.authCallbacks(n,t,i))}))},e.prototype.getMFAOptions=function(e){return new Promise((function(a,n){e.getMFAOptions((function(e,t){if(e)return wr.debug("get MFA Options failed",e),void n(e);wr.debug("get MFA options success",t),a(t)}))}))},e.prototype.getPreferredMFA=function(e,a){var n=this,t=this;return new Promise((function(i,r){var s=n._config.clientMetadata,d=!!a&&a.bypassCache;e.getUserData((function(a,s){return vr(n,void 0,void 0,(function(){var n,d;return yr(this,(function(o){switch(o.label){case 0:if(!a)return[3,5];if(wr.debug("getting preferred mfa failed",a),!this.isSessionInvalid(a))return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),r(new Error("Session is invalid due to: "+a.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return r(a),[2];case 5:return(d=t._getMfaTypeFromUserData(s))?(i(d),[2]):(r("invalid MFA Type"),[2])}}))}))}),{bypassCache:d,clientMetadata:s})}))},e.prototype._getMfaTypeFromUserData=function(e){var a=null,n=e.PreferredMfaSetting;if(n)a=n;else{var t=e.UserMFASettingList;if(t)0===t.length?a="NOMFA":wr.debug("invalid case for getPreferredMFA",e);else a=e.MFAOptions?"SMS_MFA":"NOMFA"}return a},e.prototype._getUserData=function(e,a){var n=this;return new Promise((function(t,i){e.getUserData((function(a,r){return vr(n,void 0,void 0,(function(){var n;return yr(this,(function(s){switch(s.label){case 0:if(!a)return[3,5];if(wr.debug("getting user data failed",a),!this.isSessionInvalid(a))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return s.sent(),[3,4];case 3:return n=s.sent(),i(new Error("Session is invalid due to: "+a.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return i(a),[2];case 5:t(r),s.label=6;case 6:return[2]}}))}))}),a)}))},e.prototype.setPreferredMFA=function(e,a){return vr(this,void 0,void 0,(function(){var n,t,r,s,d,o,l=this;return yr(this,(function(u){switch(u.label){case 0:return n=this._config.clientMetadata,[4,this._getUserData(e,{bypassCache:!0,clientMetadata:n})];case 1:switch(t=u.sent(),r=null,s=null,a){case"TOTP":case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":case"SMS_MFA":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return s={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return r={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return d=t.UserMFASettingList,[4,this._getMfaTypeFromUserData(t)];case 5:if("NOMFA"===(o=u.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===o)r={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==o)return[2,this.rejectAuthError(i.InvalidMFA)];s={PreferredMfa:!1,Enabled:!1}}return d&&0!==d.length&&d.forEach((function(e){"SMS_MFA"===e?r={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===e&&(s={PreferredMfa:!1,Enabled:!1})})),[3,7];case 6:return wr.debug("no validmfa method provided"),[2,this.rejectAuthError(i.NoMFA)];case 7:return this,[2,new Promise((function(a,t){e.setUserMfaPreference(r,s,(function(i,r){if(i)return wr.debug("Set user mfa preference error",i),t(i);wr.debug("Set user mfa success",r),wr.debug("Caching the latest user data into local"),e.getUserData((function(n,i){return vr(l,void 0,void 0,(function(){var i;return yr(this,(function(s){switch(s.label){case 0:if(!n)return[3,5];if(wr.debug("getting user data failed",n),!this.isSessionInvalid(n))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return s.sent(),[3,4];case 3:return i=s.sent(),t(new Error("Session is invalid due to: "+n.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,t(n)];case 5:return[2,a(r)]}}))}))}),{bypassCache:!0,clientMetadata:n})}))}))]}}))}))},e.prototype.disableSMS=function(e){return new Promise((function(a,n){e.disableMFA((function(e,t){if(e)return wr.debug("disable mfa failed",e),void n(e);wr.debug("disable mfa succeed",t),a(t)}))}))},e.prototype.enableSMS=function(e){return new Promise((function(a,n){e.enableMFA((function(e,t){if(e)return wr.debug("enable mfa failed",e),void n(e);wr.debug("enable mfa succeed",t),a(t)}))}))},e.prototype.setupTOTP=function(e){return new Promise((function(a,n){e.associateSoftwareToken({onFailure:function(e){wr.debug("associateSoftwareToken failed",e),n(e)},associateSecretCode:function(e){wr.debug("associateSoftwareToken sucess",e),a(e)}})}))},e.prototype.verifyTotpToken=function(e,a){return wr.debug("verification totp token",e,a),new Promise((function(n,t){e.verifySoftwareToken(a,"My TOTP device",{onFailure:function(e){wr.debug("verifyTotpToken failed",e),t(e)},onSuccess:function(a){Er("signIn",e,"A user "+e.getUsername()+" has been signed in"),wr.debug("verifyTotpToken success",a),n(a)}})}))},e.prototype.confirmSignIn=function(e,a,n,t){var r=this;if(void 0===t&&(t=this._config.clientMetadata),!a)return this.rejectAuthError(i.EmptyCode);var s=this;return new Promise((function(i,d){e.sendMFACode(a,{onSuccess:function(a){return vr(r,void 0,void 0,(function(){var n,t;return yr(this,(function(r){switch(r.label){case 0:wr.debug(a),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return r.sent(),[4,this.Credentials.set(a,"session")];case 3:return n=r.sent(),wr.debug("succeed to get cognito credentials",n),[3,6];case 4:return t=r.sent(),wr.debug("cannot get cognito credentials",t),[3,6];case 5:return s.user=e,Er("signIn",e,"A user "+e.getUsername()+" has been signed in"),i(e),[7];case 6:return[2]}}))}))},onFailure:function(e){wr.debug("confirm signIn failure",e),d(e)}},n,t)}))},e.prototype.completeNewPassword=function(e,a,n,t){var r=this;if(void 0===n&&(n={}),void 0===t&&(t=this._config.clientMetadata),!a)return this.rejectAuthError(i.EmptyPassword);var s=this;return new Promise((function(i,d){e.completeNewPasswordChallenge(a,n,{onSuccess:function(a){return vr(r,void 0,void 0,(function(){var n,t;return yr(this,(function(r){switch(r.label){case 0:wr.debug(a),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return r.sent(),[4,this.Credentials.set(a,"session")];case 3:return n=r.sent(),wr.debug("succeed to get cognito credentials",n),[3,6];case 4:return t=r.sent(),wr.debug("cannot get cognito credentials",t),[3,6];case 5:return s.user=e,Er("signIn",e,"A user "+e.getUsername()+" has been signed in"),i(e),[7];case 6:return[2]}}))}))},onFailure:function(e){wr.debug("completeNewPassword failure",e),Er("completeNewPassword_failure",e,r.user+" failed to complete the new password flow"),d(e)},mfaRequired:function(a,n){wr.debug("signIn MFA required"),e.challengeName=a,e.challengeParam=n,i(e)},mfaSetup:function(a,n){wr.debug("signIn mfa setup",a),e.challengeName=a,e.challengeParam=n,i(e)},totpRequired:function(a,n){wr.debug("signIn mfa setup",a),e.challengeName=a,e.challengeParam=n,i(e)}},t)}))},e.prototype.sendCustomChallengeAnswer=function(e,a,n){var t=this;if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!a)return this.rejectAuthError(i.EmptyChallengeResponse);return new Promise((function(i,r){e.sendCustomChallengeAnswer(a,t.authCallbacks(e,i,r),n)}))},e.prototype.deleteUserAttributes=function(e,a){var n=this;return new Promise((function(t,i){n.userSession(e).then((function(n){e.deleteAttributes(a,(function(e,a){return e?i(e):t(a)}))}))}))},e.prototype.deleteUser=function(){return vr(this,void 0,void 0,(function(){var e,a,n=this;return yr(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this._storageSync];case 1:return t.sent(),[3,3];case 2:throw e=t.sent(),wr.debug("Failed to sync cache info into memory",e),new Error(e);case 3:return a=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise((function(e,t){return vr(n,void 0,void 0,(function(){var n,i=this;return yr(this,(function(r){if(this.userPool){if(!(n=this.userPool.getCurrentUser()))return wr.debug("Failed to get user from user pool"),[2,t(new Error("No current user."))];n.getSession((function(r,s){return vr(i,void 0,void 0,(function(){var i,s=this;return yr(this,(function(d){switch(d.label){case 0:if(!r)return[3,5];if(wr.debug("Failed to get the user session",r),!this.isSessionInvalid(r))return[3,4];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(n)];case 2:return d.sent(),[3,4];case 3:return i=d.sent(),t(new Error("Session is invalid due to: "+r.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,t(r)];case 5:n.deleteUser((function(i,r){if(i)t(i);else{Er("userDeleted",r,"The authenticated user has been deleted."),n.signOut(),s.user=null;try{s.cleanCachedItems()}catch(d){wr.debug("failed to clear cached items")}a?s.oAuthSignOutRedirect(e,t):(Er("signOut",s.user,"A user has been signed out"),e(r))}})),d.label=6;case 6:return[2]}}))}))}))}else wr.debug("no Congito User pool"),t(new Error("Cognito User pool does not exist"));return[2]}))}))}))]}}))}))},e.prototype.updateUserAttributes=function(e,a,n){void 0===n&&(n=this._config.clientMetadata);var t=[],i=this;return new Promise((function(r,s){i.userSession(e).then((function(i){for(var d in a)if("sub"!==d&&d.indexOf("_verified")<0){var o={Name:d,Value:a[d]};t.push(o)}e.updateAttributes(t,(function(e,a){return e?s(e):r(a)}),n)}))}))},e.prototype.userAttributes=function(e){var a=this;return new Promise((function(n,t){a.userSession(e).then((function(a){e.getUserAttributes((function(e,a){e?t(e):n(a)}))}))}))},e.prototype.verifiedContact=function(e){var a=this;return this.userAttributes(e).then((function(e){var n=a.attributesToObject(e),t={},i={};return n.email&&(n.email_verified?i.email=n.email:t.email=n.email),n.phone_number&&(n.phone_number_verified?i.phone_number=n.phone_number:t.phone_number=n.phone_number),{verified:i,unverified:t}}))},e.prototype.isErrorWithMessage=function(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"message")},e.prototype.isTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Access Token has been revoked"===e.message},e.prototype.isRefreshTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has been revoked"===e.message},e.prototype.isUserDisabledError=function(e){return this.isErrorWithMessage(e)&&"User is disabled."===e.message},e.prototype.isUserDoesNotExistError=function(e){return this.isErrorWithMessage(e)&&"User does not exist."===e.message},e.prototype.isRefreshTokenExpiredError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has expired"===e.message},e.prototype.isSignedInHostedUI=function(){return this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI")},e.prototype.isSessionInvalid=function(e){return this.isUserDisabledError(e)||this.isUserDoesNotExistError(e)||this.isTokenRevokedError(e)||this.isRefreshTokenRevokedError(e)||this.isRefreshTokenExpiredError(e)},e.prototype.cleanUpInvalidSession=function(e){return vr(this,void 0,void 0,(function(){var a=this;return yr(this,(function(n){switch(n.label){case 0:e.signOut(),this.user=null,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return n.sent(),[3,4];case 3:return n.sent(),wr.debug("failed to clear cached items"),[3,4];case 4:return this.isSignedInHostedUI()?[2,new Promise((function(e,n){a.oAuthSignOutRedirect(e,n)}))]:(Er("signOut",this.user,"A user has been signed out"),[2])}}))}))},e.prototype.currentUserPoolUser=function(e){var a=this;return this.userPool?new Promise((function(n,t){a._storageSync.then((function(){return vr(a,void 0,void 0,(function(){var a,i,r=this;return yr(this,(function(s){switch(s.label){case 0:return this.isOAuthInProgress()?(wr.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise((function(e){var a=setTimeout((function(){wr.debug("OAuth signIn in progress timeout"),l.YZ.remove("auth",n),e()}),1e4);function n(t){var i=t.payload.event;"cognitoHostedUI"!==i&&"cognitoHostedUI_failure"!==i||(wr.debug("OAuth signIn resolved: "+i),clearTimeout(a),l.YZ.remove("auth",n),e())}l.YZ.listen("auth",n)}))]):[3,2];case 1:s.sent(),s.label=2;case 2:return(a=this.userPool.getCurrentUser())?(i=this._config.clientMetadata,a.getSession((function(i,s){return vr(r,void 0,void 0,(function(){var r,d,o,l,u=this;return yr(this,(function(c){switch(c.label){case 0:if(!i)return[3,5];if(wr.debug("Failed to get the user session",i),!this.isSessionInvalid(i))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(a)];case 2:return c.sent(),[3,4];case 3:return r=c.sent(),t(new Error("Session is invalid due to: "+i.message+" and failed to clean up invalid session: "+r.message)),[2];case 4:return t(i),[2];case 5:return(d=!!e&&e.bypassCache)?[4,this.Credentials.clear()]:[3,7];case 6:c.sent(),c.label=7;case 7:return o=this._config.clientMetadata,l=s.getAccessToken().decodePayload().scope,(void 0===l?"":l).split(" ").includes(Tr)?(a.getUserData((function(e,i){return vr(u,void 0,void 0,(function(){var r,s,d,o,l,u,c;return yr(this,(function(m){switch(m.label){case 0:if(!e)return[3,7];if(wr.debug("getting user data failed",e),!this.isSessionInvalid(e))return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(a)];case 2:return m.sent(),[3,4];case 3:return r=m.sent(),t(new Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+r.message)),[2];case 4:return t(e),[3,6];case 5:n(a),m.label=6;case 6:return[2];case 7:for(s=i.PreferredMfaSetting||"NOMFA",d=[],o=0;o{"use strict";var t;n.d(a,{f:()=>t}),function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in"}(t||(t={}))},64801:(e,a,n)=>{"use strict";n.d(a,{By:()=>i,pD:()=>D,Yw:()=>N,c9:()=>O,TU:()=>W,HB:()=>M,NE:()=>ue,p4:()=>U,W6:()=>me});var t,i=function(){function e(e){var a=e||{},n=a.ValidationData,t=a.Username,i=a.Password,r=a.AuthParameters,s=a.ClientMetadata;this.validationData=n||{},this.authParameters=r||{},this.clientMetadata=s||{},this.username=t,this.password=i}var a=e.prototype;return a.getUsername=function(){return this.username},a.getPassword=function(){return this.password},a.getValidationData=function(){return this.validationData},a.getAuthParameters=function(){return this.authParameters},a.getClientMetadata=function(){return this.clientMetadata},e}(),r=n(26382),s=n(84488),d=n.n(s),o=(n(74503),n(76368)),l=n.n(o),u=n(78330),c=n.n(u);function m(){if(t){if("function"===typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"===typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}"undefined"!==typeof window&&window.crypto&&(t=window.crypto),!t&&"undefined"!==typeof window&&window.msCrypto&&(t=window.msCrypto);var f=function(){function e(e,a){e=this.words=e||[],this.sigBytes=void 0!=a?a:4*e.length}var a=e.prototype;return a.random=function(a){for(var n=[],t=0;t>>2]>>>24-i%4*8&255;t.push((r>>>4).toString(16)),t.push((15&r).toString(16))}return t.join("")}(this)},e}();const p=b;function b(e,a){null!=e&&this.fromString(e,a)}function h(){return new b(null)}var _;var v="undefined"!==typeof navigator;v&&"Microsoft Internet Explorer"==navigator.appName?(b.prototype.am=function(e,a,n,t,i,r){for(var s=32767&a,d=a>>15;--r>=0;){var o=32767&this[e],l=this[e++]>>15,u=d*o+l*s;i=((o=s*o+((32767&u)<<15)+n[t]+(1073741823&i))>>>30)+(u>>>15)+d*l+(i>>>30),n[t++]=1073741823&o}return i},_=30):v&&"Netscape"!=navigator.appName?(b.prototype.am=function(e,a,n,t,i,r){for(;--r>=0;){var s=a*this[e++]+n[t]+i;i=Math.floor(s/67108864),n[t++]=67108863&s}return i},_=26):(b.prototype.am=function(e,a,n,t,i,r){for(var s=16383&a,d=a>>14;--r>=0;){var o=16383&this[e],l=this[e++]>>14,u=d*o+l*s;i=((o=s*o+((16383&u)<<14)+n[t]+i)>>28)+(u>>14)+d*l,n[t++]=268435455&o}return i},_=28),b.prototype.DB=_,b.prototype.DM=(1<<_)-1,b.prototype.DV=1<<_;b.prototype.FV=Math.pow(2,52),b.prototype.F1=52-_,b.prototype.F2=2*_-52;var y,g,w="0123456789abcdefghijklmnopqrstuvwxyz",T=new Array;for(y="0".charCodeAt(0),g=0;g<=9;++g)T[y++]=g;for(y="a".charCodeAt(0),g=10;g<36;++g)T[y++]=g;for(y="A".charCodeAt(0),g=10;g<36;++g)T[y++]=g;function k(e){return w.charAt(e)}function E(e,a){var n=T[e.charCodeAt(a)];return null==n?-1:n}function I(e){var a=h();return a.fromInt(e),a}function x(e){var a,n=1;return 0!=(a=e>>>16)&&(e=a,n+=16),0!=(a=e>>8)&&(e=a,n+=8),0!=(a=e>>4)&&(e=a,n+=4),0!=(a=e>>2)&&(e=a,n+=2),0!=(a=e>>1)&&(e=a,n+=1),n}function S(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(a,a),a},S.prototype.revert=function(e){var a=h();return e.copyTo(a),this.reduce(a),a},S.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var a=0;a>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=a+this.m.t]+=this.m.am(0,t,e,a,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},S.prototype.mulTo=function(e,a,n){e.multiplyTo(a,n),this.reduce(n)},S.prototype.sqrTo=function(e,a){e.squareTo(a),this.reduce(a)},b.prototype.copyTo=function(e){for(var a=this.t-1;a>=0;--a)e[a]=this[a];e.t=this.t,e.s=this.s},b.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},b.prototype.fromString=function(e,a){var n;if(16==a)n=4;else if(8==a)n=3;else if(2==a)n=1;else if(32==a)n=5;else{if(4!=a)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var t=e.length,i=!1,r=0;--t>=0;){var s=E(e,t);s<0?"-"==e.charAt(t)&&(i=!0):(i=!1,0==r?this[this.t++]=s:r+n>this.DB?(this[this.t-1]|=(s&(1<>this.DB-r):this[this.t-1]|=s<=this.DB&&(r-=this.DB))}this.clamp(),i&&b.ZERO.subTo(this,this)},b.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},b.prototype.dlShiftTo=function(e,a){var n;for(n=this.t-1;n>=0;--n)a[n+e]=this[n];for(n=e-1;n>=0;--n)a[n]=0;a.t=this.t+e,a.s=this.s},b.prototype.drShiftTo=function(e,a){for(var n=e;n=0;--n)a[n+s+1]=this[n]>>i|d,d=(this[n]&r)<=0;--n)a[n]=0;a[s]=d,a.t=this.t+s+1,a.s=this.s,a.clamp()},b.prototype.rShiftTo=function(e,a){a.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)a.t=0;else{var t=e%this.DB,i=this.DB-t,r=(1<>t;for(var s=n+1;s>t;t>0&&(a[this.t-n-1]|=(this.s&r)<>=this.DB;if(e.t>=this.DB;t+=this.s}else{for(t+=this.s;n>=this.DB;t-=e.s}a.s=t<0?-1:0,t<-1?a[n++]=this.DV+t:t>0&&(a[n++]=t),a.t=n,a.clamp()},b.prototype.multiplyTo=function(e,a){var n=this.abs(),t=e.abs(),i=n.t;for(a.t=i+t.t;--i>=0;)a[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=a.DV&&(e[n+a.t]-=a.DV,e[n+a.t+1]=1)}e.t>0&&(e[e.t-1]+=a.am(n,a[n],e,2*n,0,1)),e.s=0,e.clamp()},b.prototype.divRemTo=function(e,a,n){var t=e.abs();if(!(t.t<=0)){var i=this.abs();if(i.t0?(t.lShiftTo(o,r),i.lShiftTo(o,n)):(t.copyTo(r),i.copyTo(n));var l=r.t,u=r[l-1];if(0!=u){var c=u*(1<1?r[l-2]>>this.F2:0),m=this.FV/c,f=(1<=0&&(n[n.t++]=1,n.subTo(y,n)),b.ONE.dlShiftTo(l,y),y.subTo(r,r);r.t=0;){var g=n[--_]==u?this.DM:Math.floor(n[_]*m+(n[_-1]+p)*f);if((n[_]+=r.am(0,g,n,v,0,l))0&&n.rShiftTo(o,n),s<0&&b.ZERO.subTo(n,n)}}},b.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var a=3&e;return(a=(a=(a=(a=a*(2-(15&e)*a)&15)*(2-(255&e)*a)&255)*(2-((65535&e)*a&65535))&65535)*(2-e*a%this.DV)%this.DV)>0?this.DV-a:-a},b.prototype.addTo=function(e,a){for(var n=0,t=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;t+=this.s}else{for(t+=this.s;n>=this.DB;t+=e.s}a.s=t<0?-1:0,t>0?a[n++]=t:t<-1&&(a[n++]=this.DV+t),a.t=n,a.clamp()},b.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var a;if(16==e)a=4;else if(8==e)a=3;else if(2==e)a=1;else if(32==e)a=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");a=2}var n,t=(1<0)for(d>d)>0&&(i=!0,r=k(n));s>=0;)d>(d+=this.DB-a)):(n=this[s]>>(d-=a)&t,d<=0&&(d+=this.DB,--s)),n>0&&(i=!0),i&&(r+=k(n));return i?r:"0"},b.prototype.negate=function(){var e=h();return b.ZERO.subTo(this,e),e},b.prototype.abs=function(){return this.s<0?this.negate():this},b.prototype.compareTo=function(e){var a=this.s-e.s;if(0!=a)return a;var n=this.t;if(0!=(a=n-e.t))return this.s<0?-a:a;for(;--n>=0;)if(0!=(a=this[n]-e[n]))return a;return 0},b.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+x(this[this.t-1]^this.s&this.DM)},b.prototype.mod=function(e){var a=h();return this.abs().divRemTo(e,null,a),this.s<0&&a.compareTo(b.ZERO)>0&&e.subTo(a,a),a},b.prototype.equals=function(e){return 0==this.compareTo(e)},b.prototype.add=function(e){var a=h();return this.addTo(e,a),a},b.prototype.subtract=function(e){var a=h();return this.subTo(e,a),a},b.prototype.multiply=function(e){var a=h();return this.multiplyTo(e,a),a},b.prototype.divide=function(e){var a=h();return this.divRemTo(e,a,null),a},b.prototype.modPow=function(e,a,n){var t,i=e.bitLength(),r=I(1),s=new S(a);if(i<=0)return r;t=i<18?1:i<48?3:i<144?4:i<768?5:6;var d=new Array,o=3,l=t-1,u=(1<1){var c=h();for(s.sqrTo(d[1],c);o<=u;)d[o]=h(),s.mulTo(c,d[o-2],d[o]),o+=2}var m,f,p=e.t-1,b=!0,_=h();for(i=x(e[p])-1;p>=0;){for(i>=l?m=e[p]>>i-l&u:(m=(e[p]&(1<0&&(m|=e[p-1]>>this.DB+i-l)),o=t;0==(1&m);)m>>=1,--o;if((i-=o)<0&&(i+=this.DB,--p),b)d[m].copyTo(r),b=!1;else{for(;o>1;)s.sqrTo(r,_),s.sqrTo(_,r),o-=2;o>0?s.sqrTo(r,_):(f=r,r=_,_=f),s.mulTo(_,d[m],r)}for(;p>=0&&0==(e[p]&1<e)&&i}}(n))})((function(a){return new Promise((function(n,i){t.request(e,a,(function(e,a){e?i(e):n(a)}))}))}),[a],5e3).then((function(e){return n(null,e)})).catch((function(e){return n(e)}))},a.request=function(e,a,n){var t,i={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":J.prototype.userAgent,"Cache-Control":"no-store"},r=Object.assign({},this.fetchOptions,{headers:i,method:"POST",mode:"cors",body:JSON.stringify(a)});fetch(this.endpoint,r).then((function(e){return t=e,e}),(function(e){if(e instanceof TypeError)throw new Error("Network error");throw e})).then((function(e){return e.json().catch((function(){return{}}))})).then((function(e){if(t.ok)return n(null,e);e;var a=(e.__type||e.code).split("#").pop(),i=new Error(e.message||e.Message||null);return i.name=a,i.code=a,n(i)})).catch((function(e){if(t&&t.headers&&t.headers.get("x-amzn-errortype"))try{var a=t.headers.get("x-amzn-errortype").split(":")[0],i=new Error(t.status?t.status.toString():null);return i.code=a,i.name=a,i.statusCode=t.status,n(i)}catch(r){return n(e)}else e instanceof Error&&"Network error"===e.message&&(e.code="NetworkError");return n(e)}))},e}(),se={debug:function(){}},de=function(e){return e&&e.nonRetryable};function oe(e,a,n,t){if(void 0===t&&(t=1),"function"!==typeof e)throw Error("functionToRetry must be a function");return se.debug(e.name+" attempt #"+t+" with args: "+JSON.stringify(a)),e.apply(void 0,a).catch((function(i){if(se.debug("error on "+e.name,i),de(i))throw se.debug(e.name+" non retryable error",i),i;var r=n(t,a,i);if(se.debug(e.name+" retrying in "+r+" ms"),!1!==r)return new Promise((function(e){return setTimeout(e,r)})).then((function(){return oe(e,a,n,t+1)}));throw i}))}var le=3e5;var ue=function(){function e(e,a){var n=e||{},t=n.UserPoolId,i=n.ClientId,r=n.endpoint,s=n.fetchOptions,d=n.AdvancedSecurityDataCollectionFlag;if(!t||!i)throw new Error("Both UserPoolId and ClientId are required.");if(t.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(t))throw new Error("Invalid UserPoolId format.");var o=t.split("_")[0];this.userPoolId=t,this.clientId=i,this.client=new re(o,r,s),this.advancedSecurityDataCollectionFlag=!1!==d,this.storage=e.Storage||(new V).getStorage(),a&&(this.wrapRefreshSessionCallback=a)}var a=e.prototype;return a.getUserPoolId=function(){return this.userPoolId},a.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},a.getClientId=function(){return this.clientId},a.signUp=function(e,a,n,t,i,r){var s=this,d={ClientId:this.clientId,Username:e,Password:a,UserAttributes:n,ValidationData:t,ClientMetadata:r};this.getUserContextData(e)&&(d.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",d,(function(a,n){if(a)return i(a,null);var t={Username:e,Pool:s,Storage:s.storage},r={user:new W(t),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDeliveryDetails};return i(null,r)}))},a.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",a=this.storage.getItem(e);if(a){var n={Username:a,Pool:this,Storage:this.storage};return new W(n)}return null},a.getUserContextData=function(e){if("undefined"!==typeof AmazonCognitoAdvancedSecurityData){var a=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=a.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),ce=n(16856),me=function(){function e(e){if(!e.domain)throw new Error("The domain of cookieStorage can not be undefined.");if(this.domain=e.domain,e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var a=e.prototype;return a.setItem=function(e,a){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),ce.set(e,a,n),ce.get(e)},a.getItem=function(e){return ce.get(e)},a.removeItem=function(e){var a={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(a.sameSite=this.sameSite),ce.remove(e,a)},a.clear=function(){for(var e=ce.get(),a=Object.keys(e).length,n=0;n{"use strict";n.d(a,{HA:()=>s});var t=n(98256),i=function(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},r=new t.C("Amplify"),s=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Logger=t.C,this.ServiceWorker=null}return e.prototype.register=function(e){r.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):r.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var a=this;return e?(this._config=Object.assign(this._config,e),r.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=i(e,2),t=(n[0],n[1]);Object.keys(t).forEach((function(e){a._modules[e]&&(t[e]=a._modules[e])}))})),this._components.map((function(e){e.configure(a._config)})),this._config):this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"===typeof e.getCategory&&this._components.map((function(a){a.addPluggable&&"function"===typeof a.addPluggable&&a.addPluggable(e)}))},e}())},94647:(e,a,n)=>{"use strict";n.d(a,{YZ:()=>l});var t=n(98256),i=function(){return i=Object.assign||function(e){for(var a,n=1,t=arguments.length;n0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},s=function(){for(var e=[],a=0;a-1)&&(t===o||d.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var r={channel:e,payload:i({},a),source:n,patternInfo:[]};try{this._toListeners(r)}catch(s){d.error(s)}},e.prototype.listen=function(e,a,n){var t,i=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(a))d.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),t=a.onHubCapsule.bind(a);else{if("function"!==typeof a)throw new Error("No callback supplied to Hub");t=a}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:t});else{var r=this.listeners[e];r||(r=[],this.listeners[e]=r),r.push({name:n,callback:t})}return function(){i.remove(e,t)}},e.prototype._toListeners=function(e){var a=e.channel,n=e.payload,t=this.listeners[a];if(t&&t.forEach((function(t){d.debug("Dispatching to "+a+" with ",n);try{t.callback(e)}catch(i){d.error(i)}})),this.patterns.length>0){if(!n.message)return void d.warn("Cannot perform pattern matching without a message key");var s=n.message;this.patterns.forEach((function(a){var n=s.match(a.pattern);if(n){var t=r(n).slice(1),o=i(i({},e),{patternInfo:t});try{a.callback(o)}catch(l){d.error(l)}}}))}},e}())("__default__")},24762:(e,a,n)=>{"use strict";n.d(a,{F:()=>u});var t=n(98256),i=new t.C("I18n"),r=function(){function e(e){this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},e),this._lang=this._options.language,!this._lang&&"undefined"!==typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),i.debug(this._lang)}return e.prototype.setLanguage=function(e){this._lang=e},e.prototype.get=function(e,a){if(void 0===a&&(a=void 0),!this._lang)return"undefined"!==typeof a?a:e;var n=this._lang,t=this.getByLanguage(e,n);return t||(n.indexOf("-")>0&&(t=this.getByLanguage(e,n.split("-")[0])),t||("undefined"!==typeof a?a:e))},e.prototype.getByLanguage=function(e,a,n){if(void 0===n&&(n=null),!a)return n;var t=this._dict[a];return t?t[e]:n},e.prototype.putVocabulariesForLanguage=function(e,a){var n=this._dict[e];n||(n=this._dict[e]={}),Object.assign(n,a)},e.prototype.putVocabularies=function(e){var a=this;Object.keys(e).map((function(n){a.putVocabulariesForLanguage(n,e[n])}))},e}(),s=n(40336),d=new t.C("I18n"),o=null,l=null,u=function(){function e(){}return e.configure=function(a){return d.debug("configure I18n"),a?(o=Object.assign({},o,a.I18n||a),e.createInstance(),o):o},e.getModuleName=function(){return"I18n"},e.createInstance=function(){d.debug("create I18n instance"),l||(l=new r(o))},e.setLanguage=function(a){return e.checkConfig(),l.setLanguage(a)},e.get=function(a,n){return e.checkConfig()?l.get(a,n):"undefined"===typeof n?a:n},e.putVocabulariesForLanguage=function(a,n){return e.checkConfig(),l.putVocabulariesForLanguage(a,n)},e.putVocabularies=function(a){return e.checkConfig(),l.putVocabularies(a)},e.checkConfig=function(){return l||(l=new r(o)),!0},e}();s.HA.register(u)},98256:(e,a,n)=>{"use strict";n.d(a,{C:()=>o});var t,i=function(e){var a="function"===typeof Symbol&&Symbol.iterator,n=a&&e[a],t=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},r=function(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s},s=function(){for(var e=[],a=0;a=d[l]){var u=console.log.bind(console);a===t.ERROR&&console.error&&(u=console.error.bind(console)),a===t.WARN&&console.warn&&(u=console.warn.bind(console));var c="["+a+"] "+this._ts()+" "+this.name,m="";if(1===s.length&&"string"===typeof s[0])u(m=c+" - "+s[0]);else if(1===s.length)m=c+" "+s[0],u(c,s[0]);else if("string"===typeof s[0]){var f=s.slice(1);1===f.length&&(f=f[0]),m=c+" - "+s[0]+" "+f,u(c+" - "+s[0],f)}else m=c+" "+s,u(c,s);try{for(var p=i(this._pluggables),b=p.next();!b.done;b=p.next()){var h=b.value,_={message:m,timestamp:Date.now()};h.pushLogs([_])}}catch(v){n={error:v}}finally{try{b&&!b.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var e=[],a=0;a{"use strict";Object.defineProperty(a,"__esModule",{value:!0})},15628:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})},47987:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})},38291:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0})},85183:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isMsWindow=void 0;var n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];a.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var a=e.msCrypto,t=a.getRandomValues,i=a.subtle;return n.map((function(e){return i[e]})).concat(t).every((function(e){return"function"===typeof e}))}return!1}},20947:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=n(24104);t.__exportStar(n(26133),a),t.__exportStar(n(15628),a),t.__exportStar(n(47987),a),t.__exportStar(n(38291),a),t.__exportStar(n(85183),a)},24104:(e,a,n)=>{"use strict";n.r(a),n.d(a,{__assign:()=>r,__asyncDelegator:()=>g,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>I,__classPrivateFieldSet:()=>x,__createBinding:()=>m,__decorate:()=>d,__exportStar:()=>f,__extends:()=>i,__generator:()=>c,__importDefault:()=>E,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>l,__param:()=>o,__read:()=>b,__rest:()=>s,__spread:()=>h,__spreadArrays:()=>_,__values:()=>p});var t=function(e,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])},t(e,a)};function i(e,a){function n(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(n.prototype=a.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var a,n=1,t=arguments.length;n=0;d--)(i=e[d])&&(s=(r<3?i(s):r>3?i(a,n,s):i(a,n))||s);return r>3&&s&&Object.defineProperty(a,n,s),s}function o(e,a){return function(n,t){a(n,t,e)}}function l(e,a){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,a)}function u(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))}function c(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function h(){for(var e=[],a=0;a1||d(e,a)}))})}function d(e,a){try{(n=i[e](a)).value instanceof v?Promise.resolve(n.value.v).then(o,l):u(r[0][2],n)}catch(t){u(r[0][3],t)}var n}function o(e){d("next",e)}function l(e){d("throw",e)}function u(e,a){e(a),r.shift(),r.length&&d(r[0][0],r[0][1])}}function g(e){var a,n;return a={},t("next"),t("throw",(function(e){throw e})),t("return"),a[Symbol.iterator]=function(){return this},a;function t(t,i){a[t]=e[t]?function(a){return(n=!n)?{value:v(e[t](a)),done:"return"===t}:i?i(a):a}:i}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),a={},t("next"),t("throw"),t("return"),a[Symbol.asyncIterator]=function(){return this},a);function t(n){a[n]=e[n]&&function(a){return new Promise((function(t,i){(function(e,a,n,t){Promise.resolve(t).then((function(a){e({value:a,done:n})}),a)})(t,i,(a=e[n](a)).done,a.value)}))}}}function T(e,a){return Object.defineProperty?Object.defineProperty(e,"raw",{value:a}):e.raw=a,e}function k(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a.default=e,a}function E(e){return e&&e.__esModule?e:{default:e}}function I(e,a){if(!a.has(e))throw new TypeError("attempted to get private field on non-instance");return a.get(e)}function x(e,a,n){if(!a.has(e))throw new TypeError("attempted to set private field on non-instance");return a.set(e,n),n}},40698:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.EMPTY_DATA_SHA_256=a.SHA_256_HMAC_ALGO=a.SHA_256_HASH=void 0,a.SHA_256_HASH={name:"SHA-256"},a.SHA_256_HMAC_ALGO={name:"HMAC",hash:a.SHA_256_HASH},a.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},3855:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Sha256=void 0;var t=n(88632),i=n(53679),r=n(66968),s=n(17934),d=n(20947),o=n(44657),l=function(){function e(e){(0,s.supportsWebCrypto)((0,o.locateWindow)())?this.hash=new i.Sha256(e):(0,d.isMsWindow)((0,o.locateWindow)())?this.hash=new t.Sha256(e):this.hash=new r.Sha256(e)}return e.prototype.update=function(e,a){this.hash.update(e,a)},e.prototype.digest=function(){return this.hash.digest()},e}();a.Sha256=l},88632:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Sha256=void 0;var t=n(92678),i=n(40698),r=n(98213),s=n(44657),d=function(){function e(e){e?(this.operation=function(e){return new Promise((function(a,n){var t=(0,s.locateWindow)().msCrypto.subtle.importKey("raw",o(e),i.SHA_256_HMAC_ALGO,!1,["sign"]);t.oncomplete=function(){t.result&&a(t.result),n(new Error("ImportKey completed without importing key."))},t.onerror=function(){n(new Error("ImportKey failed to import key."))}}))}(e).then((function(e){return(0,s.locateWindow)().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve((0,s.locateWindow)().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var a=this;(0,t.isEmptyData)(e)||(this.operation=this.operation.then((function(n){return n.onerror=function(){a.operation=Promise.reject(new Error("Error encountered updating hash"))},n.process(o(e)),n})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(a,n){e.onerror=function(){n(new Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&a(new Uint8Array(e.result)),n(new Error("Error encountered finalizing hash"))},e.finish()}))}))},e}();function o(e){return"string"===typeof e?(0,r.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}a.Sha256=d},94903:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.WebCryptoSha256=a.Ie11Sha256=void 0,(0,n(14172).__exportStar)(n(3855),a);var t=n(88632);Object.defineProperty(a,"Ie11Sha256",{enumerable:!0,get:function(){return t.Sha256}});var i=n(53679);Object.defineProperty(a,"WebCryptoSha256",{enumerable:!0,get:function(){return i.Sha256}})},92678:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isEmptyData=void 0,a.isEmptyData=function(e){return"string"===typeof e?0===e.length:0===e.byteLength}},53679:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Sha256=void 0;var t=n(37741),i=n(40698),r=n(44657),s=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise((function(a,n){(0,r.locateWindow)().crypto.subtle.importKey("raw",(0,t.convertToBuffer)(e),i.SHA_256_HMAC_ALGO,!1,["sign"]).then(a,n)})),this.key.catch((function(){})))}return e.prototype.update=function(e){if(!(0,t.isEmptyData)(e)){var a=(0,t.convertToBuffer)(e),n=new Uint8Array(this.toHash.byteLength+a.byteLength);n.set(this.toHash,0),n.set(a,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(a){return(0,r.locateWindow)().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,a,e.toHash).then((function(e){return new Uint8Array(e)}))})):(0,t.isEmptyData)(this.toHash)?Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return(0,r.locateWindow)().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e}();a.Sha256=s},12697:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.convertToBuffer=void 0;var t=n(98213),i="undefined"!==typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:t.fromUtf8;a.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"===typeof e?i(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},37741:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.uint32ArrayFrom=a.numToUint8=a.isEmptyData=a.convertToBuffer=void 0;var t=n(12697);Object.defineProperty(a,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var i=n(91604);Object.defineProperty(a,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var r=n(978);Object.defineProperty(a,"numToUint8",{enumerable:!0,get:function(){return r.numToUint8}});var s=n(40231);Object.defineProperty(a,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},91604:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isEmptyData=void 0,a.isEmptyData=function(e){return"string"===typeof e?0===e.length:0===e.byteLength}},978:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.numToUint8=void 0,a.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},40231:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.uint32ArrayFrom=void 0,a.uint32ArrayFrom=function(e){if(!Array.from){for(var a=new Uint32Array(e.length);0{"use strict";n.r(a),n.d(a,{fromUtf8:()=>t,toUtf8:()=>i});const t=e=>"function"===typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const a=[];for(let n=0,t=e.length;n>6|192,63&t|128);else if(n+1>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else a.push(t>>12|224,t>>6&63|128,63&t|128)}return Uint8Array.from(a)})(e),i=e=>"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let a="";for(let n=0,t=e.length;ne.toString(16))).join("%");a+=decodeURIComponent(i)}else a+=String.fromCharCode((15&t)<<12|(63&e[++n])<<6|63&e[++n])}return a})(e)},14172:(e,a,n)=>{"use strict";n.r(a),n.d(a,{__assign:()=>r,__asyncDelegator:()=>g,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>I,__classPrivateFieldSet:()=>x,__createBinding:()=>m,__decorate:()=>d,__exportStar:()=>f,__extends:()=>i,__generator:()=>c,__importDefault:()=>E,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>l,__param:()=>o,__read:()=>b,__rest:()=>s,__spread:()=>h,__spreadArrays:()=>_,__values:()=>p});var t=function(e,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])},t(e,a)};function i(e,a){function n(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(n.prototype=a.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var a,n=1,t=arguments.length;n=0;d--)(i=e[d])&&(s=(r<3?i(s):r>3?i(a,n,s):i(a,n))||s);return r>3&&s&&Object.defineProperty(a,n,s),s}function o(e,a){return function(n,t){a(n,t,e)}}function l(e,a){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,a)}function u(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))}function c(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function h(){for(var e=[],a=0;a1||d(e,a)}))})}function d(e,a){try{(n=i[e](a)).value instanceof v?Promise.resolve(n.value.v).then(o,l):u(r[0][2],n)}catch(t){u(r[0][3],t)}var n}function o(e){d("next",e)}function l(e){d("throw",e)}function u(e,a){e(a),r.shift(),r.length&&d(r[0][0],r[0][1])}}function g(e){var a,n;return a={},t("next"),t("throw",(function(e){throw e})),t("return"),a[Symbol.iterator]=function(){return this},a;function t(t,i){a[t]=e[t]?function(a){return(n=!n)?{value:v(e[t](a)),done:"return"===t}:i?i(a):a}:i}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),a={},t("next"),t("throw"),t("return"),a[Symbol.asyncIterator]=function(){return this},a);function t(n){a[n]=e[n]&&function(a){return new Promise((function(t,i){(function(e,a,n,t){Promise.resolve(t).then((function(a){e({value:a,done:n})}),a)})(t,i,(a=e[n](a)).done,a.value)}))}}}function T(e,a){return Object.defineProperty?Object.defineProperty(e,"raw",{value:a}):e.raw=a,e}function k(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a.default=e,a}function E(e){return e&&e.__esModule?e:{default:e}}function I(e,a){if(!a.has(e))throw new TypeError("attempted to get private field on non-instance");return a.get(e)}function x(e,a,n){if(!a.has(e))throw new TypeError("attempted to set private field on non-instance");return a.set(e,n),n}},79849:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.RawSha256=void 0;var t=n(63053),i=function(){function e(){this.state=Int32Array.from(t.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var a=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>t.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[a++],n--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,a=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(a.setUint8(this.bufferLength++,128),n%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var i=this.bufferLength;i>>24&255,r[4*i+1]=this.state[i]>>>16&255,r[4*i+2]=this.state[i]>>>8&255,r[4*i+3]=this.state[i]>>>0&255;return r},e.prototype.hashBuffer=function(){for(var e=this.buffer,a=this.state,n=a[0],i=a[1],r=a[2],s=a[3],d=a[4],o=a[5],l=a[6],u=a[7],c=0;c>>17|m<<15)^(m>>>19|m<<13)^m>>>10,p=((m=this.temp[c-15])>>>7|m<<25)^(m>>>18|m<<14)^m>>>3;this.temp[c]=(f+this.temp[c-7]|0)+(p+this.temp[c-16]|0)}var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&o^~d&l)|0)+(u+(t.KEY[c]+this.temp[c]|0)|0)|0,h=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&r^i&r)|0;u=l,l=o,o=d,d=s+b|0,s=r,r=i,i=n,n=b+h|0}a[0]+=n,a[1]+=i,a[2]+=r,a[3]+=s,a[4]+=d,a[5]+=o,a[6]+=l,a[7]+=u},e}();a.RawSha256=i},63053:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.MAX_HASHABLE_LENGTH=a.INIT=a.KEY=a.DIGEST_LENGTH=a.BLOCK_SIZE=void 0,a.BLOCK_SIZE=64,a.DIGEST_LENGTH=32,a.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},66968:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),(0,n(73389).__exportStar)(n(20654),a)},20654:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Sha256=void 0;var t=n(73389),i=n(63053),r=n(79849),s=n(23246),d=function(){function e(e){if(this.hash=new r.RawSha256,e){this.outer=new r.RawSha256;var a=function(e){var a=(0,s.convertToBuffer)(e);if(a.byteLength>i.BLOCK_SIZE){var n=new r.RawSha256;n.update(a),a=n.digest()}var t=new Uint8Array(i.BLOCK_SIZE);return t.set(a),t}(e),n=new Uint8Array(i.BLOCK_SIZE);n.set(a);for(var t=0;t{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.convertToBuffer=void 0;var t=n(14476),i="undefined"!==typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:t.fromUtf8;a.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"===typeof e?i(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},23246:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.uint32ArrayFrom=a.numToUint8=a.isEmptyData=a.convertToBuffer=void 0;var t=n(83950);Object.defineProperty(a,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var i=n(44239);Object.defineProperty(a,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var r=n(1539);Object.defineProperty(a,"numToUint8",{enumerable:!0,get:function(){return r.numToUint8}});var s=n(3340);Object.defineProperty(a,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},44239:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isEmptyData=void 0,a.isEmptyData=function(e){return"string"===typeof e?0===e.length:0===e.byteLength}},1539:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.numToUint8=void 0,a.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},3340:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.uint32ArrayFrom=void 0,a.uint32ArrayFrom=function(e){if(!Array.from){for(var a=new Uint32Array(e.length);0{"use strict";n.r(a),n.d(a,{fromUtf8:()=>t,toUtf8:()=>i});const t=e=>"function"===typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):(e=>{const a=[];for(let n=0,t=e.length;n>6|192,63&t|128);else if(n+1>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else a.push(t>>12|224,t>>6&63|128,63&t|128)}return Uint8Array.from(a)})(e),i=e=>"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):(e=>{let a="";for(let n=0,t=e.length;ne.toString(16))).join("%");a+=decodeURIComponent(i)}else a+=String.fromCharCode((15&t)<<12|(63&e[++n])<<6|63&e[++n])}return a})(e)},73389:(e,a,n)=>{"use strict";n.r(a),n.d(a,{__assign:()=>r,__asyncDelegator:()=>g,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>I,__classPrivateFieldSet:()=>x,__createBinding:()=>m,__decorate:()=>d,__exportStar:()=>f,__extends:()=>i,__generator:()=>c,__importDefault:()=>E,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>l,__param:()=>o,__read:()=>b,__rest:()=>s,__spread:()=>h,__spreadArrays:()=>_,__values:()=>p});var t=function(e,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])},t(e,a)};function i(e,a){function n(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(n.prototype=a.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var a,n=1,t=arguments.length;n=0;d--)(i=e[d])&&(s=(r<3?i(s):r>3?i(a,n,s):i(a,n))||s);return r>3&&s&&Object.defineProperty(a,n,s),s}function o(e,a){return function(n,t){a(n,t,e)}}function l(e,a){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,a)}function u(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))}function c(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function h(){for(var e=[],a=0;a1||d(e,a)}))})}function d(e,a){try{(n=i[e](a)).value instanceof v?Promise.resolve(n.value.v).then(o,l):u(r[0][2],n)}catch(t){u(r[0][3],t)}var n}function o(e){d("next",e)}function l(e){d("throw",e)}function u(e,a){e(a),r.shift(),r.length&&d(r[0][0],r[0][1])}}function g(e){var a,n;return a={},t("next"),t("throw",(function(e){throw e})),t("return"),a[Symbol.iterator]=function(){return this},a;function t(t,i){a[t]=e[t]?function(a){return(n=!n)?{value:v(e[t](a)),done:"return"===t}:i?i(a):a}:i}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),a={},t("next"),t("throw"),t("return"),a[Symbol.asyncIterator]=function(){return this},a);function t(n){a[n]=e[n]&&function(a){return new Promise((function(t,i){(function(e,a,n,t){Promise.resolve(t).then((function(a){e({value:a,done:n})}),a)})(t,i,(a=e[n](a)).done,a.value)}))}}}function T(e,a){return Object.defineProperty?Object.defineProperty(e,"raw",{value:a}):e.raw=a,e}function k(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a.default=e,a}function E(e){return e&&e.__esModule?e:{default:e}}function I(e,a){if(!a.has(e))throw new TypeError("attempted to get private field on non-instance");return a.get(e)}function x(e,a,n){if(!a.has(e))throw new TypeError("attempted to set private field on non-instance");return a.set(e,n),n}},17934:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),n(63923).__exportStar(n(45053),a)},45053:(e,a,n)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.supportsZeroByteGCM=a.supportsSubtleCrypto=a.supportsSecureRandom=a.supportsWebCrypto=void 0;var t=n(63923),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(e){return"object"===typeof e&&"object"===typeof e.crypto&&"function"===typeof e.crypto.getRandomValues}function s(e){return e&&i.every((function(a){return"function"===typeof e[a]}))}a.supportsWebCrypto=function(e){return!(!r(e)||"object"!==typeof e.crypto.subtle)&&s(e.crypto.subtle)},a.supportsSecureRandom=r,a.supportsSubtleCrypto=s,a.supportsZeroByteGCM=function(e){return t.__awaiter(this,void 0,void 0,(function(){var a;return t.__generator(this,(function(n){switch(n.label){case 0:if(!s(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return a=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},a,new Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),[2,!1];case 5:return[2]}}))}))}},63923:(e,a,n)=>{"use strict";n.r(a),n.d(a,{__assign:()=>r,__asyncDelegator:()=>g,__asyncGenerator:()=>y,__asyncValues:()=>w,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>I,__classPrivateFieldSet:()=>x,__createBinding:()=>m,__decorate:()=>d,__exportStar:()=>f,__extends:()=>i,__generator:()=>c,__importDefault:()=>E,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>l,__param:()=>o,__read:()=>b,__rest:()=>s,__spread:()=>h,__spreadArrays:()=>_,__values:()=>p});var t=function(e,a){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])},t(e,a)};function i(e,a){function n(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(n.prototype=a.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var a,n=1,t=arguments.length;n=0;d--)(i=e[d])&&(s=(r<3?i(s):r>3?i(a,n,s):i(a,n))||s);return r>3&&s&&Object.defineProperty(a,n,s),s}function o(e,a){return function(n,t){a(n,t,e)}}function l(e,a){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,a)}function u(e,a,n,t){return new(n||(n=Promise))((function(i,r){function s(e){try{o(t.next(e))}catch(a){r(a)}}function d(e){try{o(t.throw(e))}catch(a){r(a)}}function o(e){var a;e.done?i(e.value):(a=e.value,a instanceof n?a:new n((function(e){e(a)}))).then(s,d)}o((t=t.apply(e,a||[])).next())}))}function c(e,a){var n,t,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:d(0),throw:d(1),return:d(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function d(r){return function(d){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,t&&(i=2&r[0]?t.return:r[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,r[1])).done)return i;switch(t=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,t=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,a){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,i,r=n.call(e),s=[];try{for(;(void 0===a||a-- >0)&&!(t=r.next()).done;)s.push(t.value)}catch(d){i={error:d}}finally{try{t&&!t.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function h(){for(var e=[],a=0;a1||d(e,a)}))})}function d(e,a){try{(n=i[e](a)).value instanceof v?Promise.resolve(n.value.v).then(o,l):u(r[0][2],n)}catch(t){u(r[0][3],t)}var n}function o(e){d("next",e)}function l(e){d("throw",e)}function u(e,a){e(a),r.shift(),r.length&&d(r[0][0],r[0][1])}}function g(e){var a,n;return a={},t("next"),t("throw",(function(e){throw e})),t("return"),a[Symbol.iterator]=function(){return this},a;function t(t,i){a[t]=e[t]?function(a){return(n=!n)?{value:v(e[t](a)),done:"return"===t}:i?i(a):a}:i}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),a={},t("next"),t("throw"),t("return"),a[Symbol.asyncIterator]=function(){return this},a);function t(n){a[n]=e[n]&&function(a){return new Promise((function(t,i){(function(e,a,n,t){Promise.resolve(t).then((function(a){e({value:a,done:n})}),a)})(t,i,(a=e[n](a)).done,a.value)}))}}}function T(e,a){return Object.defineProperty?Object.defineProperty(e,"raw",{value:a}):e.raw=a,e}function k(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a.default=e,a}function E(e){return e&&e.__esModule?e:{default:e}}function I(e,a){if(!a.has(e))throw new TypeError("attempted to get private field on non-instance");return a.get(e)}function x(e,a,n){if(!a.has(e))throw new TypeError("attempted to set private field on non-instance");return a.set(e,n),n}},44657:(e,a,n)=>{"use strict";n.r(a),n.d(a,{locateWindow:()=>i});const t={};function i(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:t}},13618:(e,a,n)=>{"use strict";n.d(a,{As:()=>j,C3:()=>h,Dr:()=>k,If:()=>T,J2:()=>Z,O3:()=>g,Of:()=>v,QJ:()=>O,aR:()=>D,nD:()=>A,r9:()=>E,tE:()=>_,v3:()=>y,vr:()=>N});var t=n(3458),i=n(11934),r=n(858),s=n(23216),d=n(90636),o=n(65043),l=n(63830),u=n(19754);function c(){return c=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}var f=["onChange","defaultIndex","index","allowMultiple","allowToggle"],p=["isDisabled","isFocusable","id"],b=(0,l.createDescendantContext)(),h=b[0],_=b[1],v=b[2],y=b[3];function g(e){var a=e.onChange,n=e.defaultIndex,t=e.index,i=e.allowMultiple,r=e.allowToggle,d=m(e,f);!function(e){var a=e.index||e.defaultIndex,n=!(0,s.isUndefined)(a)&&!(0,s.isArray)(a)&&e.allowMultiple;(0,s.warn)({condition:!!n,message:"If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: "+typeof a+","})}(e),function(e){(0,s.warn)({condition:!(!e.allowMultiple||!e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}(e);var l=v(),c=(0,o.useState)(-1),p=c[0],b=c[1];(0,u.l0)((function(){b(-1)}));var h=(0,u.ic)({value:t,defaultValue:function(){return i?null!=n?n:[]:null!=n?n:-1},onChange:a}),_=h[0],y=h[1];return{index:_,setIndex:y,htmlProps:d,getAccordionItemProps:function(e){var a=!1;null!==e&&(a=(0,s.isArray)(_)?_.includes(e):_===e);return{isOpen:a,onChange:function(a){if(null!==e)if(i&&(0,s.isArray)(_)){var n=a?(0,s.addItem)(_,e):(0,s.removeItem)(_,e);y(n)}else a?y(e):r&&y(-1)}}},focusedIndex:p,setFocusedIndex:b,descendants:l}}var w=(0,d.createContext)({name:"AccordionContext",errorMessage:"useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in ``"}),T=w[0],k=w[1];function E(e){var a=e.isDisabled,n=e.isFocusable,t=e.id,i=m(e,p),r=k(),l=r.getAccordionItemProps,f=r.setFocusedIndex,b=(0,o.useRef)(null),h=(0,u.cC)(t,"accordion-button","accordion-panel"),_=h[0],v=h[1];!function(e){(0,s.warn)({condition:!(!e.isFocusable||e.isDisabled),message:"Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.\n "})}(e);var g=y({disabled:a&&!n}),w=g.register,T=g.index,E=g.descendants,I=l(-1===T?null:T),x=I.isOpen,S=I.onChange;!function(e){(0,s.warn)({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}({isOpen:x,isDisabled:a});var A=(0,o.useCallback)((function(){null==S||S(!x),f(T)}),[T,f,x,S]),q=(0,o.useCallback)((function(e){var a={ArrowDown:function(){var e=E.nextEnabled(T);e&&(0,s.focus)(e.node)},ArrowUp:function(){var e=E.prevEnabled(T);e&&(0,s.focus)(e.node)},Home:function(){var e=E.firstEnabled();e&&(0,s.focus)(e.node)},End:function(){var e=E.lastEnabled();e&&(0,s.focus)(e.node)}}[(0,s.normalizeEventKey)(e)];a&&(e.preventDefault(),a(e))}),[E,T]),C=(0,o.useCallback)((function(){f(T)}),[f,T]),F=(0,o.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),c({},e,{type:"button",ref:(0,d.mergeRefs)(w,b,n),id:_,disabled:!!a,"aria-expanded":!!x,"aria-controls":v,onClick:(0,s.callAllHandlers)(e.onClick,A),onFocus:(0,s.callAllHandlers)(e.onFocus,C),onKeyDown:(0,s.callAllHandlers)(e.onKeyDown,q)})}),[_,a,x,A,C,q,v,w]),j=(0,o.useCallback)((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),c({},e,{ref:a,role:"region",id:v,"aria-labelledby":_,hidden:!x})}),[_,x,v]);return{isOpen:x,isDisabled:a,isFocusable:n,onOpen:function(){null==S||S(!0)},onClose:function(){null==S||S(!1)},getButtonProps:F,getPanelProps:j,htmlProps:i}}var I=["children","reduceMotion"],x=["htmlProps","descendants"],S=["htmlProps"],A=(0,i.Rf)((function(e,a){var n=e.children,t=e.reduceMotion,r=m(e,I),d=(0,i.o5)("Accordion",r),l=g((0,i.MN)(r)),u=l.htmlProps,f=l.descendants,p=m(l,x),b=o.useMemo((function(){return c({},p,{reduceMotion:!!t})}),[p,t]);return o.createElement(h,{value:f},o.createElement(T,{value:b},o.createElement(i.W$,{value:d},o.createElement(i.Bv.div,c({ref:a},u,{className:(0,s.cx)("chakra-accordion",r.className),__css:d.root}),n))))}));s.__DEV__&&(A.displayName="Accordion");var q=(0,d.createContext)({name:"AccordionItemContext",errorMessage:"useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `` "}),C=q[0],F=q[1],j=(0,i.Rf)((function(e,a){var n=e.children,t=e.className,r=E(e),d=r.htmlProps,l=m(r,S),u=c({},(0,i.IS)().container,{overflowAnchor:"none"}),f=o.useMemo((function(){return l}),[l]);return o.createElement(C,{value:f},o.createElement(i.Bv.div,c({ref:a},d,{className:(0,s.cx)("chakra-accordion__item",t),__css:u}),(0,s.runIfFn)(n,{isExpanded:!!l.isOpen,isDisabled:!!l.isDisabled})))}));function D(){var e=F(),a=e.isOpen,n=e.isDisabled;return{isOpen:a,onClose:e.onClose,isDisabled:n,onOpen:e.onOpen}}s.__DEV__&&(j.displayName="AccordionItem");var Z=(0,i.Rf)((function(e,a){var n=(0,F().getButtonProps)(e,a),t=c({display:"flex",alignItems:"center",width:"100%",outline:0},(0,i.IS)().button);return o.createElement(i.Bv.button,c({},n,{className:(0,s.cx)("chakra-accordion__button",e.className),__css:t}))}));s.__DEV__&&(Z.displayName="AccordionButton");var N=(0,i.Rf)((function(e,a){var n=k().reduceMotion,t=F(),d=t.getPanelProps,l=t.isOpen,u=d(e,a),m=(0,s.cx)("chakra-accordion__panel",e.className),f=(0,i.IS)();n||delete u.hidden;var p=o.createElement(i.Bv.div,c({},u,{__css:f.panel,className:m}));return n?p:o.createElement(r.SD,{in:l},p)}));s.__DEV__&&(N.displayName="AccordionPanel");var O=function(e){var a=F(),n=a.isOpen,r=a.isDisabled,d=k().reduceMotion,l=(0,s.cx)("chakra-accordion__icon",e.className),u=c({opacity:r?.4:1,transform:n?"rotate(-180deg)":void 0,transition:d?void 0:"transform 0.2s",transformOrigin:"center"},(0,i.IS)().icon);return o.createElement(t.In,c({viewBox:"0 0 24 24","aria-hidden":!0,className:l,__css:u},e),o.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))};s.__DEV__&&(O.displayName="AccordionIcon")},35038:(e,a,n)=>{"use strict";n.d(a,{Fc:()=>b,TN:()=>_,XL:()=>h,_0:()=>v});var t=n(11934),i=n(23216),r=n(90636),s=n(65043),d=n(3458);function o(){return o=Object.assign||function(e){for(var a=1;a`"}),f=m[0],p=m[1],b=(0,t.Rf)((function(e,a){var n,r=(0,t.MN)(e),d=r.status,l=void 0===d?"info":d,m=function(e,a){if(null==e)return{};var n,t,i={},r=Object.keys(e);for(t=0;t=0||(i[n]=e[n]);return i}(r,u),p=null!=(n=e.colorScheme)?n:c[l].colorScheme,b=(0,t.o5)("Alert",o({},e,{colorScheme:p})),h=o({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},b.container);return s.createElement(f,{value:{status:l}},s.createElement(t.W$,{value:b},s.createElement(t.Bv.div,o({role:"alert",ref:a},m,{className:(0,i.cx)("chakra-alert",e.className),__css:h}))))})),h=(0,t.Rf)((function(e,a){var n=(0,t.IS)();return s.createElement(t.Bv.div,o({ref:a},e,{className:(0,i.cx)("chakra-alert__title",e.className),__css:n.title}))})),_=(0,t.Rf)((function(e,a){var n=o({display:"inline"},(0,t.IS)().description);return s.createElement(t.Bv.div,o({ref:a},e,{className:(0,i.cx)("chakra-alert__desc",e.className),__css:n}))})),v=function(e){var a=p().status,n=c[a].icon,r=(0,t.IS)();return s.createElement(t.Bv.span,o({display:"inherit"},e,{className:(0,i.cx)("chakra-alert__icon",e.className),__css:r.icon}),s.createElement(n,{w:"100%",h:"100%"}))}},22554:(e,a,n)=>{"use strict";n.d(a,{$n:()=>k,K0:()=>x,az:()=>y,dX:()=>h,e2:()=>_});var t=n(19754),i=n(11934),r=n(23216),s=n(39611),d=n.n(s),o=n(65043),l=n(90636),u=n(4448);function c(e,a){if(null==e)return{};var n,t,i={},r=Object.keys(e);for(t=0;t=0||(i[n]=e[n]);return i}function m(){return m=Object.assign||function(e){for(var a=1;a *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:{"& > *:not(style) ~ *:not(style)":{marginStart:u}}),o.createElement(b,{value:y},o.createElement(i.Bv.div,m({ref:a,role:"group",__css:g,className:v},_)))}));r.__DEV__&&(_.displayName="ButtonGroup");var v=["label","placement","spacing","children","className","__css"],y=function(e){var a=e.label,n=e.placement,t=e.spacing,s=void 0===t?"0.5rem":t,d=e.children,l=void 0===d?o.createElement(u.y,{color:"currentColor",width:"1em",height:"1em"}):d,f=e.className,p=e.__css,b=c(e,v),h=(0,r.cx)("chakra-button__spinner",f),_="start"===n?"marginEnd":"marginStart",y=o.useMemo((function(){var e;return m(((e={display:"flex",alignItems:"center",position:a?"relative":"absolute"})[_]=a?s:0,e.fontSize="1em",e.lineHeight="normal",e),p)}),[p,a,_,s]);return o.createElement(i.Bv.div,m({className:h},b,{__css:y}),l)};r.__DEV__&&(y.displayName="ButtonSpinner");var g=["children","className"],w=function(e){var a=e.children,n=e.className,t=c(e,g),s=o.isValidElement(a)?o.cloneElement(a,{"aria-hidden":!0,focusable:!1}):a,d=(0,r.cx)("chakra-button__icon",n);return o.createElement(i.Bv.span,m({display:"inline-flex",alignSelf:"center",flexShrink:0},t,{className:d}),s)};r.__DEV__&&(w.displayName="ButtonIcon");var T=["isDisabled","isLoading","isActive","isFullWidth","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],k=(0,i.Rf)((function(e,a){var n=h(),s=(0,i.Vl)("Button",m({},n,e)),l=(0,i.MN)(e),u=l.isDisabled,f=void 0===u?null==n?void 0:n.isDisabled:u,p=l.isLoading,b=l.isActive,_=l.isFullWidth,v=l.children,g=l.leftIcon,w=l.rightIcon,k=l.loadingText,I=l.iconSpacing,x=void 0===I?"0.5rem":I,S=l.type,A=l.spinner,q=l.spinnerPlacement,C=void 0===q?"start":q,F=l.className,j=l.as,D=c(l,T),Z=o.useMemo((function(){var e,a=d()({},null!=(e=null==s?void 0:s._focus)?e:{},{zIndex:1});return m({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",width:_?"100%":"auto"},s,!!n&&{_focus:a})}),[s,n,_]),N=function(e){var a=o.useState(!e),n=a[0],t=a[1];return{ref:o.useCallback((function(e){e&&t("BUTTON"===e.tagName)}),[]),type:n?"button":void 0}}(j),O=N.ref,R=N.type,z={rightIcon:w,leftIcon:g,iconSpacing:x,children:v};return o.createElement(i.Bv.button,m({disabled:f||p,ref:(0,t.SV)(a,O),as:j,type:null!=S?S:R,"data-active":(0,r.dataAttr)(b),"data-loading":(0,r.dataAttr)(p),__css:Z,className:(0,r.cx)("chakra-button",F)},D),p&&"start"===C&&o.createElement(y,{className:"chakra-button__spinner--start",label:k,placement:"start",spacing:x},A),p?k||o.createElement(i.Bv.span,{opacity:0},o.createElement(E,z)):o.createElement(E,z),p&&"end"===C&&o.createElement(y,{className:"chakra-button__spinner--end",label:k,placement:"end",spacing:x},A))}));function E(e){var a=e.leftIcon,n=e.rightIcon,t=e.children,i=e.iconSpacing;return o.createElement(o.Fragment,null,a&&o.createElement(w,{marginEnd:i},a),t,n&&o.createElement(w,{marginStart:i},n))}r.__DEV__&&(k.displayName="Button");var I=["icon","children","isRound","aria-label"],x=(0,i.Rf)((function(e,a){var n=e.icon,t=e.children,i=e.isRound,r=e["aria-label"],s=c(e,I),d=n||t,l=o.isValidElement(d)?o.cloneElement(d,{"aria-hidden":!0,focusable:!1}):null;return o.createElement(k,m({padding:"0",borderRadius:i?"full":void 0,ref:a,"aria-label":r},s),l)}));r.__DEV__&&(x.displayName="IconButton")},35066:(e,a,n)=>{"use strict";n.d(a,{$Q:()=>v,L0:()=>_,Mn:()=>p,Sc:()=>j,vp:()=>S});var t=n(23216),i=n(90636),r=n(65043),s=n(92006),d=n(19754),o=n(11934),l=n(47686),u=n(51195),c=n(78510),m=n(20646);function f(){return f=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}t.__DEV__&&(v.displayName="CheckboxGroup");var g=["isIndeterminate","isChecked"];var w=function(e){var a=l.P;return"custom"in a&&"function"===typeof a.custom?a.custom(e):a(e)}(o.Bv.svg),T=function(e){return r.createElement(w,f({width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),r.createElement("polyline",{points:"1.5 6 4.5 9 10.5 1"}))},k=function(e){return r.createElement(w,f({width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4}},e),r.createElement("line",{x1:"21",x2:"3",y1:"12",y2:"12"}))},E=function(e){var a=e.open,n=e.children;return r.createElement(u.N,{initial:!1},a&&r.createElement(l.P.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},n))},I=function(e){var a=e.isIndeterminate,n=e.isChecked,t=y(e,g),i=a?k:T;return r.createElement(E,{open:n||a},r.createElement(i,t))},x=["defaultIsChecked","defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"];function S(e){void 0===e&&(e={});var a=(0,c.vA)(e),n=a.isDisabled,o=a.isReadOnly,l=a.isRequired,u=a.isInvalid,p=a.id,b=a.onBlur,h=a.onFocus,_=a["aria-describedby"],v=e,g=v.defaultIsChecked,w=v.defaultChecked,T=void 0===w?g:w,k=v.isChecked,E=v.isFocusable,I=v.onChange,S=v.isIndeterminate,q=v.name,C=v.value,F=v.tabIndex,j=void 0===F?void 0:F,D=v["aria-label"],Z=v["aria-labelledby"],N=v["aria-invalid"],O=y(v,x),R=(0,t.omit)(O,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),z=(0,s.u)(I),U=(0,s.u)(b),P=(0,s.u)(h),H=(0,d.Cg)(),B=H[0],M=H[1],K=(0,d.Cg)(),L=K[0],V=K[1],Q=(0,d.Cg)(),W=Q[0],G=Q[1],X=(0,r.useRef)(null),Y=(0,r.useState)(!0),J=Y[0],$=Y[1],ee=(0,r.useState)(!!T),ae=ee[0],ne=ee[1],te=(0,d.QK)(k,ae),ie=te[0],re=te[1];(0,t.warn)({condition:!!g,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var se=(0,r.useCallback)((function(e){o||n?e.preventDefault():(ie||ne(re?e.target.checked:!!S||e.target.checked),null==z||z(e))}),[o,n,re,ie,S,z]);(0,s.a)((function(){X.current&&(X.current.indeterminate=Boolean(S))}),[S]),(0,d.w5)((function(){n&&M.off()}),[n,M]);var de=n&&!E,oe=(0,r.useCallback)((function(e){" "===e.key&&G.on()}),[G]),le=(0,r.useCallback)((function(e){" "===e.key&&G.off()}),[G]);(0,s.a)((function(){X.current&&(X.current.checked!==re&&ne(X.current.checked))}),[X.current]);var ue=(0,r.useCallback)((function(e,a){void 0===e&&(e={}),void 0===a&&(a=null);return f({},e,{ref:a,"data-active":(0,t.dataAttr)(W),"data-hover":(0,t.dataAttr)(L),"data-checked":(0,t.dataAttr)(re),"data-focus":(0,t.dataAttr)(B),"data-indeterminate":(0,t.dataAttr)(S),"data-disabled":(0,t.dataAttr)(n),"data-invalid":(0,t.dataAttr)(u),"data-readonly":(0,t.dataAttr)(o),"aria-hidden":!0,onMouseDown:(0,t.callAllHandlers)(e.onMouseDown,(function(e){e.preventDefault(),G.on()})),onMouseUp:(0,t.callAllHandlers)(e.onMouseUp,G.off),onMouseEnter:(0,t.callAllHandlers)(e.onMouseEnter,V.on),onMouseLeave:(0,t.callAllHandlers)(e.onMouseLeave,V.off)})}),[W,re,n,B,L,S,u,o,G,V.off,V.on]),ce=(0,r.useCallback)((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),f({},R,e,{ref:(0,i.mergeRefs)(a,(function(e){e&&$("LABEL"===e.tagName)})),onClick:(0,t.callAllHandlers)(e.onClick,(function(){var e;J||(null==(e=X.current)||e.click(),(0,t.focus)(X.current,{nextTick:!0}))})),"data-disabled":(0,t.dataAttr)(n),"data-checked":(0,t.dataAttr)(re),"data-invalid":(0,t.dataAttr)(u)})}),[R,n,re,u,J]),me=(0,r.useCallback)((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),f({},e,{ref:(0,i.mergeRefs)(X,a),type:"checkbox",name:q,value:C,id:p,tabIndex:j,onChange:(0,t.callAllHandlers)(e.onChange,se),onBlur:(0,t.callAllHandlers)(e.onBlur,U,M.off),onFocus:(0,t.callAllHandlers)(e.onFocus,P,M.on),onKeyDown:(0,t.callAllHandlers)(e.onKeyDown,oe),onKeyUp:(0,t.callAllHandlers)(e.onKeyUp,le),required:l,checked:re,disabled:de,readOnly:o,"aria-label":D,"aria-labelledby":Z,"aria-invalid":N?Boolean(N):u,"aria-describedby":_,"aria-disabled":n,style:m.fe})}),[q,C,p,se,M.off,M.on,U,P,oe,le,l,re,de,o,D,Z,N,u,_,n,j]),fe=(0,r.useCallback)((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),f({},e,{ref:a,onMouseDown:(0,t.callAllHandlers)(e.onMouseDown,A),onTouchStart:(0,t.callAllHandlers)(e.onTouchStart,A),"data-disabled":(0,t.dataAttr)(n),"data-checked":(0,t.dataAttr)(re),"data-invalid":(0,t.dataAttr)(u)})}),[re,n,u]);return{state:{isInvalid:u,isFocused:B,isChecked:re,isActive:W,isHovered:L,isIndeterminate:S,isDisabled:n,isReadOnly:o,isRequired:l},getRootProps:ce,getCheckboxProps:ue,getInputProps:me,getLabelProps:fe,htmlProps:R}}function A(e){e.preventDefault(),e.stopPropagation()}var q=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],C=(0,o.Bv)("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),F=(0,o.Bv)("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),j=(0,o.Rf)((function(e,a){var n=_(),i=f({},n,e),s=(0,o.o5)("Checkbox",i),d=(0,o.MN)(e),l=d.spacing,u=void 0===l?"0.5rem":l,c=d.className,m=d.children,p=d.iconColor,b=d.iconSize,h=d.icon,v=void 0===h?r.createElement(I,null):h,g=d.isChecked,w=d.isDisabled,T=void 0===w?null==n?void 0:n.isDisabled:w,k=d.onChange,E=d.inputProps,x=y(d,q),A=g;null!=n&&n.value&&d.value&&(A=n.value.includes(d.value));var j=k;null!=n&&n.onChange&&d.value&&(j=(0,t.callAll)(n.onChange,k));var D=S(f({},x,{isDisabled:T,isChecked:A,onChange:j})),Z=D.state,N=D.getInputProps,O=D.getCheckboxProps,R=D.getLabelProps,z=D.getRootProps,U=r.useMemo((function(){return f({opacity:Z.isChecked||Z.isIndeterminate?1:0,transform:Z.isChecked||Z.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:b,color:p},s.icon)}),[p,b,Z.isChecked,Z.isIndeterminate,s.icon]),P=r.cloneElement(v,{__css:U,isIndeterminate:Z.isIndeterminate,isChecked:Z.isChecked});return r.createElement(F,f({__css:s.container,className:(0,t.cx)("chakra-checkbox",c)},z()),r.createElement("input",f({className:"chakra-checkbox__input"},N(E,a))),r.createElement(C,f({__css:s.control,className:"chakra-checkbox__control"},O()),P),m&&r.createElement(o.Bv.span,f({className:"chakra-checkbox__label"},R(),{__css:f({marginStart:u},s.label)}),m))}));t.__DEV__&&(j.displayName="Checkbox")},1490:(e,a,n)=>{"use strict";n.d(a,{I:()=>l});var t=n(23216),i=n(90636),r=n(65043);function s(){return s=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}(a,d),E=r.useState(!0),I=E[0],x=E[1],S=r.useState(!1),A=S[0],q=S[1],C=function(){var e=r.useRef(new Map),a=e.current,n=r.useCallback((function(a,n,t,i){e.current.set(t,{type:n,el:a,options:i}),a.addEventListener(n,t,i)}),[]),t=r.useCallback((function(a,n,t,i){a.removeEventListener(n,t,i),e.current.delete(t)}),[]);return r.useEffect((function(){return function(){a.forEach((function(e,a){t(e.el,e.type,a,e.options)}))}}),[t,a]),{add:n,remove:t}}(),F=I?g:g||0,j=l&&!u,D=r.useCallback((function(e){if(l)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==_||_(e)}),[l,_]),Z=r.useCallback((function(e){A&&o(e)&&(e.preventDefault(),e.stopPropagation(),q(!1),C.remove(document,"keyup",Z,!1))}),[A,C]),N=r.useCallback((function(e){if(null==v||v(e),!(l||e.defaultPrevented||e.metaKey)&&o(e.nativeEvent)&&!I){var a=m&&"Enter"===e.key;if(p&&" "===e.key&&(e.preventDefault(),q(!0)),a)e.preventDefault(),e.currentTarget.click();C.add(document,"keyup",Z,!1)}}),[l,I,v,m,p,C,Z]),O=r.useCallback((function(e){(null==y||y(e),l||e.defaultPrevented||e.metaKey)||o(e.nativeEvent)&&!I&&p&&" "===e.key&&(e.preventDefault(),q(!1),e.currentTarget.click())}),[p,I,l,y]),R=r.useCallback((function(e){0===e.button&&(q(!1),C.remove(document,"mouseup",R,!1))}),[C]),z=r.useCallback((function(e){if(!(0,t.isRightClick)(e)){if(l)return e.stopPropagation(),void e.preventDefault();I||q(!0),e.currentTarget.focus({preventScroll:!0}),C.add(document,"mouseup",R,!1),null==b||b(e)}}),[l,I,b,C,R]),U=r.useCallback((function(e){(0,t.isRightClick)(e)||(I||q(!1),null==h||h(e))}),[h,I]),P=r.useCallback((function(e){l?e.preventDefault():null==w||w(e)}),[l,w]),H=r.useCallback((function(e){A&&(e.preventDefault(),q(!1)),null==T||T(e)}),[A,T]),B=(0,i.mergeRefs)(n,(function(e){e&&"BUTTON"!==e.tagName&&x(!1)}));return s({},k,I?{ref:B,type:"button","aria-disabled":j?void 0:l,disabled:j,onClick:D,onMouseDown:b,onMouseUp:h,onKeyUp:y,onKeyDown:v,onMouseOver:w,onMouseLeave:T}:{ref:B,role:"button","data-active":(0,t.dataAttr)(A),"aria-disabled":l?"true":void 0,tabIndex:j?void 0:F,onClick:D,onMouseDown:z,onMouseUp:U,onKeyUp:O,onKeyDown:N,onMouseOver:P,onMouseLeave:H})}},26678:(e,a,n)=>{"use strict";n.d(a,{J:()=>u});var t=n(3458),i=n(11934),r=n(23216),s=n(65043);function d(){return d=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}(t,o);return s.createElement(i.Bv.button,d({type:"button","aria-label":"Close",ref:a,disabled:u,__css:d({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},n,c)},m),r||s.createElement(l,{width:"1em",height:"1em"}))}));r.__DEV__&&(u.displayName="CloseButton")},31206:(e,a,n)=>{"use strict";n.d(a,{G6:()=>v,Ig:()=>_,K2:()=>w,QQ:()=>g,Z2:()=>p,_C:()=>k,an:()=>y,dU:()=>T,iG:()=>b,mK:()=>E,vs:()=>h});var t=n(59596),i=n(23216),r=n(65043);function s(){return s=Object.assign||function(e){for(var a=1;a{"use strict";n.r(a),n.d(a,{createDescendantContext:()=>b,default:()=>b});var t=n(90636),i=n(65043);function r(){return r=Object.assign||function(e){for(var a=1;a=a&&(t=0),t}function o(e,a,n){var t=e-1;return n&&t<0&&(t=a),t}var l="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,u=function(e){return e},c=function(){var e=this;this.descendants=new Map,this.register=function(a){var n;if(null!=a)return"object"==typeof(n=a)&&"nodeType"in n&&n.nodeType===Node.ELEMENT_NODE?e.registerNode(a):function(n){e.registerNode(n,a)}},this.unregister=function(a){e.descendants.delete(a);var n=s(Array.from(e.descendants.keys()));e.assignIndex(n)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(a){e.descendants.forEach((function(e){var n=a.indexOf(e.node);e.index=n,e.node.dataset.index=e.index.toString()}))},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort((function(e,a){return e.index-a.index}))},this.enabledValues=function(){return e.values().filter((function(e){return!e.disabled}))},this.item=function(a){if(0!==e.count())return e.values()[a]},this.enabledItem=function(a){if(0!==e.enabledCount())return e.enabledValues()[a]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var a=e.enabledValues().length-1;return e.enabledItem(a)},this.indexOf=function(a){var n,t;return a&&null!=(n=null==(t=e.descendants.get(a))?void 0:t.index)?n:-1},this.enabledIndexOf=function(a){return null==a?-1:e.enabledValues().findIndex((function(e){return e.node.isSameNode(a)}))},this.next=function(a,n){void 0===n&&(n=!0);var t=d(a,e.count(),n);return e.item(t)},this.nextEnabled=function(a,n){void 0===n&&(n=!0);var t=e.item(a);if(t){var i=d(e.enabledIndexOf(t.node),e.enabledCount(),n);return e.enabledItem(i)}},this.prev=function(a,n){void 0===n&&(n=!0);var t=o(a,e.count()-1,n);return e.item(t)},this.prevEnabled=function(a,n){void 0===n&&(n=!0);var t=e.item(a);if(t){var i=o(e.enabledIndexOf(t.node),e.enabledCount()-1,n);return e.enabledItem(i)}},this.registerNode=function(a,n){if(a&&!e.descendants.has(a)){var t=s(Array.from(e.descendants.keys()).concat(a));null!=n&&n.disabled&&(n.disabled=!!n.disabled);var i=r({node:a,index:-1},n);e.descendants.set(a,i),e.assignIndex(t)}}};var m=(0,t.createContext)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),f=m[0],p=m[1];function b(){return[u(f),function(){return u(p())},function(){return function(){var e=(0,i.useRef)(new c);return l((function(){return function(){return e.current.destroy()}})),e.current}()},function(e){return function(e){var a=p(),n=(0,i.useState)(-1),r=n[0],s=n[1],d=(0,i.useRef)(null);l((function(){return function(){d.current&&a.unregister(d.current)}}),[]),l((function(){if(d.current){var e=Number(d.current.dataset.index);r==e||Number.isNaN(e)||s(e)}}));var o=u(e?a.register(e):a.register);return{descendants:a,index:r,enabledIndex:a.enabledIndexOf(d.current),register:(0,t.mergeRefs)(o,d)}}(e)}]}},78510:(e,a,n)=>{"use strict";n.d(a,{MJ:()=>h,Tr:()=>x,Uc:()=>b,Wt:()=>T,eK:()=>_,lR:()=>I,sq:()=>k,tJ:()=>g,vA:()=>w});var t=n(19754),i=n(11934),r=n(23216),s=n(90636),d=n(65043),o=n(3458);function l(){return l=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}var c=["id","isRequired","isInvalid","isDisabled","isReadOnly"],m=["getRootProps","htmlProps"],f=(0,s.createContext)({strict:!1,name:"FormControlContext"}),p=f[0],b=f[1];var h=(0,i.Rf)((function(e,a){var n=(0,i.o5)("Form",e),o=function(e){var a=e.id,n=e.isRequired,i=e.isInvalid,o=e.isDisabled,m=e.isReadOnly,f=u(e,c),p=(0,t.Bi)(),b=a||"field-"+p,h=b+"-label",_=b+"-feedback",v=b+"-helptext",y=d.useState(!1),g=y[0],w=y[1],T=d.useState(!1),k=T[0],E=T[1],I=(0,t.Cg)(),x=I[0],S=I[1],A=d.useCallback((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),l({id:v},e,{ref:(0,s.mergeRefs)(a,(function(e){e&&E(!0)}))})}),[v]),q=d.useCallback((function(e,a){var n,t;return void 0===e&&(e={}),void 0===a&&(a=null),l({},e,{ref:a,"data-focus":(0,r.dataAttr)(x),"data-disabled":(0,r.dataAttr)(o),"data-invalid":(0,r.dataAttr)(i),"data-readonly":(0,r.dataAttr)(m),id:null!=(n=e.id)?n:h,htmlFor:null!=(t=e.htmlFor)?t:b})}),[b,o,x,i,m,h]),C=d.useCallback((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),l({id:_},e,{ref:(0,s.mergeRefs)(a,(function(e){e&&w(!0)})),"aria-live":"polite"})}),[_]),F=d.useCallback((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),l({},e,f,{ref:a,role:"group"})}),[f]),j=d.useCallback((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),l({},e,{ref:a,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!m,isDisabled:!!o,isFocused:!!x,onFocus:S.on,onBlur:S.off,hasFeedbackText:g,setHasFeedbackText:w,hasHelpText:k,setHasHelpText:E,id:b,labelId:h,feedbackId:_,helpTextId:v,htmlProps:f,getHelpTextProps:A,getErrorMessageProps:C,getRootProps:F,getLabelProps:q,getRequiredIndicatorProps:j}}((0,i.MN)(e)),f=o.getRootProps;o.htmlProps;var b=u(o,m),h=(0,r.cx)("chakra-form-control",e.className);return d.createElement(p,{value:b},d.createElement(i.W$,{value:n},d.createElement(i.Bv.div,l({},f({},a),{className:h,__css:n.container}))))}));r.__DEV__&&(h.displayName="FormControl");var _=(0,i.Rf)((function(e,a){var n=b(),t=(0,i.IS)(),s=(0,r.cx)("chakra-form__helper-text",e.className);return d.createElement(i.Bv.div,l({},null==n?void 0:n.getHelpTextProps(e,a),{__css:t.helperText,className:s}))}));r.__DEV__&&(_.displayName="FormHelperText");var v=["isDisabled","isInvalid","isReadOnly","isRequired"],y=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function g(e){var a=w(e),n=a.isDisabled,t=a.isInvalid,i=a.isReadOnly,s=a.isRequired;return l({},u(a,v),{disabled:n,readOnly:i,required:s,"aria-invalid":(0,r.ariaAttr)(t),"aria-required":(0,r.ariaAttr)(s),"aria-readonly":(0,r.ariaAttr)(i)})}function w(e){var a,n,t,i=b(),s=e.id,d=e.disabled,o=e.readOnly,c=e.required,m=e.isRequired,f=e.isInvalid,p=e.isReadOnly,h=e.isDisabled,_=e.onFocus,v=e.onBlur,g=u(e,y),w=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=i&&i.hasFeedbackText&&null!=i&&i.isInvalid&&w.push(i.feedbackId),null!=i&&i.hasHelpText&&w.push(i.helpTextId),l({},g,{"aria-describedby":w.join(" ")||void 0,id:null!=s?s:null==i?void 0:i.id,isDisabled:null!=(a=null!=d?d:h)?a:null==i?void 0:i.isDisabled,isReadOnly:null!=(n=null!=o?o:p)?n:null==i?void 0:i.isReadOnly,isRequired:null!=(t=null!=c?c:m)?t:null==i?void 0:i.isRequired,isInvalid:null!=f?f:null==i?void 0:i.isInvalid,onFocus:(0,r.callAllHandlers)(null==i?void 0:i.onFocus,_),onBlur:(0,r.callAllHandlers)(null==i?void 0:i.onBlur,v)})}var T=(0,i.Rf)((function(e,a){var n=(0,i.o5)("FormError",e),t=(0,i.MN)(e),s=b();return null!=s&&s.isInvalid?d.createElement(i.W$,{value:n},d.createElement(i.Bv.div,l({},null==s?void 0:s.getErrorMessageProps(t,a),{className:(0,r.cx)("chakra-form__error-message",e.className),__css:l({display:"flex",alignItems:"center"},n.text)}))):null}));r.__DEV__&&(T.displayName="FormErrorMessage");var k=(0,i.Rf)((function(e,a){var n=(0,i.IS)(),t=b();if(null==t||!t.isInvalid)return null;var s=(0,r.cx)("chakra-form__error-icon",e.className);return d.createElement(o.Ay,l({ref:a,"aria-hidden":!0},e,{__css:n.icon,className:s}),d.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}));r.__DEV__&&(k.displayName="FormErrorIcon");var E=["className","children","requiredIndicator","optionalIndicator"],I=(0,i.Rf)((function(e,a){var n,t=(0,i.Vl)("FormLabel",e),s=(0,i.MN)(e);s.className;var o=s.children,c=s.requiredIndicator,m=void 0===c?d.createElement(x,null):c,f=s.optionalIndicator,p=void 0===f?null:f,h=u(s,E),_=b(),v=null!=(n=null==_?void 0:_.getLabelProps(h,a))?n:l({ref:a},h);return d.createElement(i.Bv.label,l({},v,{className:(0,r.cx)("chakra-form__label",s.className),__css:l({display:"block",textAlign:"start"},t)}),o,null!=_&&_.isRequired?m:p)}));r.__DEV__&&(I.displayName="FormLabel");var x=(0,i.Rf)((function(e,a){var n=b(),t=(0,i.IS)();if(null==n||!n.isRequired)return null;var s=(0,r.cx)("chakra-form__required-indicator",e.className);return d.createElement(i.Bv.span,l({},null==n?void 0:n.getRequiredIndicatorProps(e,a),{__css:t.requiredIndicator,className:s}))}));r.__DEV__&&(x.displayName="RequiredIndicator")},19754:(e,a,n)=>{"use strict";n.d(a,{$$:()=>O,BV:()=>C,Bi:()=>w,CH:()=>N,Cg:()=>l,DK:()=>I,GM:()=>P,JE:()=>y,ML:()=>i.b,NN:()=>Q,QK:()=>f,SE:()=>R,SV:()=>U,Sp:()=>F,UQ:()=>i.a,Xb:()=>q,Xl:()=>b,Z3:()=>V,ZC:()=>K,aP:()=>x,bl:()=>z,c9:()=>i.u,cC:()=>T,d7:()=>m,dU:()=>k,iD:()=>c,ic:()=>p,j1:()=>E,jz:()=>H,l0:()=>Z,mZ:()=>M,vG:()=>i.c,w5:()=>S,wf:()=>D,wk:()=>L,xK:()=>A});var t=n(65043),i=n(92006),r=n(75270),s=n.n(r),d=n(23216),o=n(14906);function l(e){void 0===e&&(e=!1);var a=(0,t.useState)(e),n=a[0],i=a[1];return[n,(0,t.useMemo)((function(){return{on:function(){return i(!0)},off:function(){return i(!1)},toggle:function(){return i((function(e){return!e}))}}}),[])]}var u=["timeout"];function c(e,a){void 0===a&&(a={});var n=(0,t.useState)(!1),i=n[0],r=n[1],d="number"===typeof a?{timeout:a}:a,o=d.timeout,l=void 0===o?1500:o,c=function(e,a){if(null==e)return{};var n,t,i={},r=Object.keys(e);for(t=0;t=0||(i[n]=e[n]);return i}(d,u),m=(0,t.useCallback)((function(){var a=s()(e,c);r(a)}),[e,c]);return(0,t.useEffect)((function(){var e=null;return i&&(e=window.setTimeout((function(){r(!1)}),l)),function(){e&&window.clearTimeout(e)}}),[l,i]),{value:e,onCopy:m,hasCopied:i}}function m(e){var a=(0,t.useRef)(null);return null===a.current&&(a.current="function"===typeof e?e():e),a.current}function f(e,a){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:a]}function p(e){var a=e.value,n=e.defaultValue,r=e.onChange,s=e.shouldUpdate,o=void 0===s?function(e,a){return e!==a}:s,l=(0,i.u)(r),u=(0,i.u)(o),c=t.useState(n),m=c[0],f=c[1],p=void 0!==a,b=p?a:m,h=t.useCallback((function(e){var a=(0,d.runIfFn)(e,b);u(b,a)&&(p||f(a),l(a))}),[p,l,b,u]);return[b,h]}function b(e,a){var n=t.useState(null),r=n[0],s=n[1],d=t.useRef();return(0,i.a)((function(){if(e.current){var n=e.current;return t(),a&&(window.addEventListener("resize",t),window.addEventListener("scroll",t)),function(){a&&(window.removeEventListener("resize",t),window.removeEventListener("scroll",t)),d.current&&cancelAnimationFrame(d.current)}}function t(){d.current=requestAnimationFrame((function(){var e=(0,o.YH)(n);s(e)}))}}),[a]),r}function h(){return h=Object.assign||function(e){for(var a=1;a1?a-1:0),i=1;i1?n-1:0),i=1;i0&&(0,d.focus)(e[0],{preventScroll:s,nextTick:!0})}}),[c,s,u,r]);S((function(){m()}),[m]),(0,i.b)("transitionend",m,u)}function Z(e,a){return void 0===a&&(a=[]),t.useEffect((function(){return function(){return e()}}),a)}function N(){var e=t.useRef(!1),a=t.useState(0),n=a[0],i=a[1];return Z((function(){e.current=!0})),t.useCallback((function(){e.current||i(n+1)}),[n])}function O(e,a){var n=(0,i.u)(e);t.useEffect((function(){var e=null;return null!==a&&(e=window.setInterval((function(){return n()}),a)),function(){e&&window.clearInterval(e)}}),[a,n])}function R(e){var a=t.useRef(null);return a.current=e,a}function z(e,a){if(null!=e)if("function"!==typeof e)try{e.current=a}catch(n){throw new Error("Cannot assign value '"+a+"' to ref '"+e+"'")}else e(a)}function U(){for(var e=arguments.length,a=new Array(e),n=0;n0)return!1;if(t&&!(0,d.getOwnerDocument)(t).body.contains(t))return!1;return!(null!=(n=a.current)&&n.contains(t))}function M(e,a){var n=a.onPan,i=a.onPanStart,r=a.onPanEnd,s=a.onPanSessionStart,o=a.onPanSessionEnd,l=a.threshold,u=Boolean(n||i||r||s||o),c=(0,t.useRef)(null),m={onSessionStart:s,onSessionEnd:o,onStart:i,onMove:n,onEnd:function(e,a){c.current=null,null==r||r(e,a)}};(0,t.useEffect)((function(){var e;null==(e=c.current)||e.updateHandlers(m)})),C((function(){return e.current}),"pointerdown",u?function(e){c.current=new d.PanSession(e,m,l)}:d.noop),Z((function(){var e;null==(e=c.current)||e.end(),c.current=null}))}function K(e){var a=(0,t.useRef)();return(0,t.useEffect)((function(){a.current=e}),[e]),a.current}function L(e){void 0===e&&(e={});var a=e,n=a.timeout,i=void 0===n?300:n,r=a.preventDefault,s=void 0===r?function(){return!0}:r,d=t.useState([]),o=d[0],l=d[1],u=t.useRef(),c=function(){u.current&&(clearTimeout(u.current),u.current=null)};return t.useEffect((function(){return c}),[]),function(e){return function(a){if("Backspace"===a.key){var n=[].concat(o);return n.pop(),void l(n)}if(function(e){var a=e.key;return 1===a.length||a.length>1&&/[^a-zA-Z0-9]/.test(a)}(a)){var t=o.concat(a.key);s(a)&&(a.preventDefault(),a.stopPropagation()),l(t),e(t.join("")),c(),u.current=setTimeout((function(){l([]),u.current=null}),i)}}}}function V(e,a){var n=(0,i.u)(e);t.useEffect((function(){if(null!=a){var e;return e=window.setTimeout((function(){n()}),a),function(){e&&window.clearTimeout(e)}}}),[a,n])}function Q(e,a){var n=t.useRef();t.useEffect((function(){if(n.current){var t=Object.keys(h({},n.current,a)),i={};t.forEach((function(e){n.current[e]!==a[e]&&(i[e]={from:n.current[e],to:a[e]})})),Object.keys(i).length&&console.log("[why-did-you-update]",e,i)}n.current=a}))}},92006:(e,a,n)=>{"use strict";n.d(a,{a:()=>r,b:()=>d,c:()=>o,u:()=>s});var t=n(23216),i=n(65043),r=t.isBrowser?i.useLayoutEffect:i.useEffect;function s(e,a){void 0===a&&(a=[]);var n=i.useRef(e);return r((function(){n.current=e})),i.useCallback((function(){for(var e=arguments.length,a=new Array(e),t=0;t{"use strict";n.d(a,{v:()=>t.c});n(65043);var t=n(92006)},3458:(e,a,n)=>{"use strict";n.d(a,{Ay:()=>u,In:()=>l,wt:()=>c});var t=n(11934),i=n(23216),r=n(65043);function s(){return s=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}(e,d),v={ref:a,focusable:f,className:(0,i.cx)("chakra-icon",b),__css:s({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:c},h)},y=null!=l?l:o.viewBox;if(n&&"string"!==typeof n)return r.createElement(t.Bv.svg,s({as:n},v,_));var g=null!=p?p:o.path;return r.createElement(t.Bv.svg,s({verticalAlign:"middle",viewBox:y},v,_),g)}));i.__DEV__&&(l.displayName="Icon");var u=l;function c(e){var a=e.viewBox,n=void 0===a?"0 0 24 24":a,d=e.d,o=e.displayName,u=e.defaultProps,c=void 0===u?{}:u,m=r.Children.toArray(e.path),f=(0,t.Rf)((function(e,a){return r.createElement(l,s({ref:a,viewBox:n},c,e),m.length?m:r.createElement("path",{fill:"currentColor",d:d}))}));return i.__DEV__&&(f.displayName=o),f}},32892:(e,a,n)=>{"use strict";n.d(a,{E9:()=>p,_V:()=>f,lK:()=>l});var t=n(11934),i=n(23216),r=n(65043),s=n(92006);function d(){return d=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}function l(e){var a=e.loading,n=e.src,t=e.srcSet,i=e.onLoad,d=e.onError,o=e.crossOrigin,l=e.sizes,u=e.ignoreFallback,c=(0,r.useState)("pending"),m=c[0],f=c[1];(0,r.useEffect)((function(){f(n?"loading":"pending")}),[n]);var p=(0,r.useRef)(),b=(0,r.useCallback)((function(){if(n){h();var e=new Image;e.src=n,o&&(e.crossOrigin=o),t&&(e.srcset=t),l&&(e.sizes=l),a&&(e.loading=a),e.onload=function(e){h(),f("loaded"),null==i||i(e)},e.onerror=function(e){h(),f("failed"),null==d||d(e)},p.current=e}}),[n,o,t,l,i,d,a]),h=function(){p.current&&(p.current.onload=null,p.current.onerror=null,p.current=null)};return(0,s.a)((function(){if(!u)return"loading"===m&&b(),function(){h()}}),[m,b,u]),u?"loaded":m}var u=["htmlWidth","htmlHeight","alt"],c=["fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],m=r.forwardRef((function(e,a){var n=e.htmlWidth,t=e.htmlHeight,i=e.alt,s=o(e,u);return r.createElement("img",d({width:n,height:t,ref:a,alt:i},s))})),f=(0,t.Rf)((function(e,a){var n=e.fallbackSrc,s=e.fallback,u=e.src,f=e.srcSet,p=e.align,b=e.fit,h=e.loading,_=e.ignoreFallback,v=e.crossOrigin,y=o(e,c),g=null!=h||_||void 0===n&&void 0===s,w=l(d({},e,{ignoreFallback:g})),T=d({ref:a,objectFit:b,objectPosition:p},g?y:(0,i.omit)(y,["onError","onLoad"]));return"loaded"!==w?s||r.createElement(t.Bv.img,d({as:m,className:"chakra-image__placeholder",src:n},T)):r.createElement(t.Bv.img,d({as:m,src:u,srcSet:f,crossOrigin:v,loading:h,className:"chakra-image"},T))})),p=(0,t.Rf)((function(e,a){return r.createElement(t.Bv.img,d({ref:a,as:m,className:"chakra-image"},e))}));i.__DEV__&&(f.displayName="Image")},67682:(e,a,n)=>{"use strict";n.d(a,{G6:()=>h,MG:()=>y,N1:()=>b,Wf:()=>I,pd:()=>c,r0:()=>_,t:()=>x});var t=n(78510),i=n(11934),r=n(23216),s=n(65043),d=n(90636);function o(){return o=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}var u=["htmlSize"],c=(0,i.Rf)((function(e,a){var n=e.htmlSize,d=l(e,u),c=(0,i.o5)("Input",d),m=(0,i.MN)(d),f=(0,t.tJ)(m),p=(0,r.cx)("chakra-input",e.className);return s.createElement(i.Bv.input,o({size:n},f,{__css:c.field,ref:a,className:p}))}));r.__DEV__&&(c.displayName="Input"),c.id="Input";var m=["placement"],f={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},p=(0,i.Bv)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),b=(0,i.Rf)((function(e,a){var n,t=e.placement,r=void 0===t?"left":t,d=l(e,m),u=null!=(n=f[r])?n:{},c=(0,i.IS)();return s.createElement(p,o({ref:a},d,{__css:o({},c.addon,u)}))}));r.__DEV__&&(b.displayName="InputAddon");var h=(0,i.Rf)((function(e,a){return s.createElement(b,o({ref:a,placement:"left"},e,{className:(0,r.cx)("chakra-input__left-addon",e.className)}))}));r.__DEV__&&(h.displayName="InputLeftAddon"),h.id="InputLeftAddon";var _=(0,i.Rf)((function(e,a){return s.createElement(b,o({ref:a,placement:"right"},e,{className:(0,r.cx)("chakra-input__right-addon",e.className)}))}));r.__DEV__&&(_.displayName="InputRightAddon"),_.id="InputRightAddon";var v=["children","className"],y=(0,i.Rf)((function(e,a){var n=(0,i.o5)("Input",e),t=(0,i.MN)(e),u=t.children,c=t.className,m=l(t,v),f=(0,r.cx)("chakra-input__group",c),p={},b=(0,d.getValidChildren)(u),h=n.field;b.forEach((function(e){if(n){var a,t;if(h&&"InputLeftElement"===e.type.id)p.paddingStart=null!=(a=h.height)?a:h.h;if(h&&"InputRightElement"===e.type.id)p.paddingEnd=null!=(t=h.height)?t:h.h;"InputRightAddon"===e.type.id&&(p.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(p.borderStartRadius=0)}}));var _=b.map((function(a){var n,t,i=(0,r.filterUndefined)({size:(null==(n=a.props)?void 0:n.size)||e.size,variant:(null==(t=a.props)?void 0:t.variant)||e.variant});return"Input"!==a.type.id?s.cloneElement(a,i):s.cloneElement(a,Object.assign(i,p,a.props))}));return s.createElement(i.Bv.div,o({className:f,ref:a,__css:{width:"100%",display:"flex",position:"relative"}},m),s.createElement(i.W$,{value:n},_))}));r.__DEV__&&(y.displayName="InputGroup");var g=["placement"],w=["className"],T=["className"],k=(0,i.Bv)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),E=(0,i.Rf)((function(e,a){var n,t,r,d=e.placement,u=void 0===d?"left":d,c=l(e,g),m=(0,i.IS)(),f=m.field,p=o(((r={})["left"===u?"insetStart":"insetEnd"]="0",r.width=null!=(n=null==f?void 0:f.height)?n:null==f?void 0:f.h,r.height=null!=(t=null==f?void 0:f.height)?t:null==f?void 0:f.h,r.fontSize=null==f?void 0:f.fontSize,r),m.element);return s.createElement(k,o({ref:a,__css:p},c))}));E.id="InputElement",r.__DEV__&&(E.displayName="InputElement");var I=(0,i.Rf)((function(e,a){var n=e.className,t=l(e,w),i=(0,r.cx)("chakra-input__left-element",n);return s.createElement(E,o({ref:a,placement:"left",className:i},t))}));I.id="InputLeftElement",r.__DEV__&&(I.displayName="InputLeftElement");var x=(0,i.Rf)((function(e,a){var n=e.className,t=l(e,T),i=(0,r.cx)("chakra-input__right-element",n);return s.createElement(E,o({ref:a,placement:"right",className:i},t))}));x.id="InputRightElement",r.__DEV__&&(x.displayName="InputRightElement")},4450:(e,a,n)=>{"use strict";n.d(a,{B8:()=>X,BJ:()=>oe,B_:()=>be,Cy:()=>I,DZ:()=>U,EY:()=>me,Ei:()=>R,Ex:()=>p,G2:()=>se,M6:()=>v,N_:()=>M,Qe:()=>ge,RE:()=>k,Tk:()=>ue,Xy:()=>J,_J:()=>Y,ae:()=>de,az:()=>_,cG:()=>C,ck:()=>$,gl:()=>m,hK:()=>te,jl:()=>y,kp:()=>ee,mc:()=>S,ov:()=>w,rI:()=>ye,rS:()=>ne,so:()=>j,ue:()=>H,xA:()=>N,xT:()=>he,zt:()=>le});var t=n(11934),i=n(54720),r=n(23216),s=n(65043),d=n(3458),o=n(90636);function l(){return l=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}var c=["ratio","children","className"],m=(0,t.Rf)((function(e,a){var n=e.ratio,i=void 0===n?4/3:n,d=e.children,o=e.className,m=u(e,c),f=s.Children.only(d),p=(0,r.cx)("chakra-aspect-ratio",o);return s.createElement(t.Bv.div,l({ref:a,position:"relative",className:p,_before:{height:0,content:'""',display:"block",paddingBottom:(0,r.mapResponsive)(i,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},m),f)}));r.__DEV__&&(m.displayName="AspectRatio");var f=["className"],p=(0,t.Rf)((function(e,a){var n=(0,t.Vl)("Badge",e),i=(0,t.MN)(e);i.className;var d=u(i,f);return s.createElement(t.Bv.span,l({ref:a,className:(0,r.cx)("chakra-badge",e.className)},d,{__css:l({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));r.__DEV__&&(p.displayName="Badge");var b=["size","centerContent"],h=["size"],_=(0,t.Bv)("div");r.__DEV__&&(_.displayName="Box");var v=(0,t.Rf)((function(e,a){var n=e.size,t=e.centerContent,i=void 0===t||t,r=u(e,b),d=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return s.createElement(_,l({ref:a,boxSize:n,__css:l({},d,{flexShrink:0,flexGrow:0})},r))}));r.__DEV__&&(v.displayName="Square");var y=(0,t.Rf)((function(e,a){var n=e.size,t=u(e,h);return s.createElement(v,l({size:n,ref:a,borderRadius:"9999px"},t))}));r.__DEV__&&(y.displayName="Circle");var g=["axis"],w=(0,t.Bv)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});r.__DEV__&&(w.displayName="Center");var T={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},k=(0,t.Rf)((function(e,a){var n=e.axis,i=void 0===n?"both":n,r=u(e,g);return s.createElement(t.Bv.div,l({ref:a,__css:T[i]},r,{position:"absolute"}))})),E=["className"],I=(0,t.Rf)((function(e,a){var n=(0,t.Vl)("Code",e),i=(0,t.MN)(e);i.className;var d=u(i,E);return s.createElement(t.Bv.code,l({ref:a,className:(0,r.cx)("chakra-code",e.className)},d,{__css:l({display:"inline-block"},n)}))}));r.__DEV__&&(I.displayName="Code");var x=["className","centerContent"],S=(0,t.Rf)((function(e,a){var n=(0,t.MN)(e),i=n.className,d=n.centerContent,o=u(n,x),c=(0,t.Vl)("Container",e);return s.createElement(t.Bv.div,l({ref:a,className:(0,r.cx)("chakra-container",i)},o,{__css:l({},c,d&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));r.__DEV__&&(S.displayName="Container");var A=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],q=["className","orientation","__css"],C=(0,t.Rf)((function(e,a){var n=(0,t.Vl)("Divider",e),i=n.borderLeftWidth,d=n.borderBottomWidth,o=n.borderTopWidth,c=n.borderRightWidth,m=n.borderWidth,f=n.borderStyle,p=n.borderColor,b=u(n,A),h=(0,t.MN)(e),_=h.className,v=h.orientation,y=void 0===v?"horizontal":v,g=h.__css,w=u(h,q),T={vertical:{borderLeftWidth:i||c||m||"1px",height:"100%"},horizontal:{borderBottomWidth:d||o||m||"1px",width:"100%"}};return s.createElement(t.Bv.hr,l({ref:a,"aria-orientation":y},w,{__css:l({},b,{border:"0",borderColor:p,borderStyle:f},T[y],g),className:(0,r.cx)("chakra-divider",_)}))}));r.__DEV__&&(C.displayName="Divider");var F=["direction","align","justify","wrap","basis","grow","shrink"],j=(0,t.Rf)((function(e,a){var n=e.direction,i=e.align,r=e.justify,d=e.wrap,o=e.basis,c=e.grow,m=e.shrink,f=u(e,F),p={display:"flex",flexDirection:n,alignItems:i,justifyContent:r,flexWrap:d,flexBasis:o,flexGrow:c,flexShrink:m};return s.createElement(t.Bv.div,l({ref:a,__css:p},f))}));r.__DEV__&&(j.displayName="Flex");var D=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],Z=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],N=(0,t.Rf)((function(e,a){var n=e.area,i=e.templateAreas,r=e.gap,d=e.rowGap,o=e.columnGap,c=e.column,m=e.row,f=e.autoFlow,p=e.autoRows,b=e.templateRows,h=e.autoColumns,_=e.templateColumns,v=u(e,D),y={display:"grid",gridArea:n,gridTemplateAreas:i,gridGap:r,gridRowGap:d,gridColumnGap:o,gridAutoColumns:h,gridColumn:c,gridRow:m,gridAutoFlow:f,gridAutoRows:p,gridTemplateRows:b,gridTemplateColumns:_};return s.createElement(t.Bv.div,l({ref:a,__css:y},v))}));function O(e){return(0,r.mapResponsive)(e,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}r.__DEV__&&(N.displayName="Grid");var R=(0,t.Rf)((function(e,a){var n=e.area,i=e.colSpan,d=e.colStart,o=e.colEnd,c=e.rowEnd,m=e.rowSpan,f=e.rowStart,p=u(e,Z),b=(0,r.filterUndefined)({gridArea:n,gridColumn:O(i),gridRow:O(m),gridColumnStart:d,gridColumnEnd:o,gridRowStart:f,gridRowEnd:c});return s.createElement(t.Bv.div,l({ref:a,__css:b},p))})),z=["className"],U=(0,t.Rf)((function(e,a){var n=(0,t.Vl)("Heading",e),i=(0,t.MN)(e);i.className;var d=u(i,z);return s.createElement(t.Bv.h2,l({ref:a,className:(0,r.cx)("chakra-heading",e.className)},d,{__css:n}))}));r.__DEV__&&(U.displayName="Heading");var P=["className"],H=(0,t.Rf)((function(e,a){var n=(0,t.Vl)("Kbd",e),i=(0,t.MN)(e),d=i.className,o=u(i,P);return s.createElement(t.Bv.kbd,l({ref:a,className:(0,r.cx)("chakra-kbd",d)},o,{__css:l({fontFamily:"mono"},n)}))}));r.__DEV__&&(H.displayName="Kbd");var B=["className","isExternal"],M=(0,t.Rf)((function(e,a){var n=(0,t.Vl)("Link",e),i=(0,t.MN)(e),d=i.className,o=i.isExternal,c=u(i,B);return s.createElement(t.Bv.a,l({target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:a,className:(0,r.cx)("chakra-link",d)},c,{__css:n}))}));r.__DEV__&&(M.displayName="Link");var K=["children","styleType","stylePosition","spacing"],L=["as"],V=["as"],Q=(0,o.createContext)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),W=Q[0],G=Q[1],X=(0,t.Rf)((function(e,a){var n,i=(0,t.o5)("List",e),r=(0,t.MN)(e),d=r.children,c=r.styleType,m=void 0===c?"none":c,f=r.stylePosition,p=r.spacing,b=u(r,K),h=(0,o.getValidChildren)(d),_=p?((n={})["& > *:not(style) ~ *:not(style)"]={mt:p},n):{};return s.createElement(W,{value:i},s.createElement(t.Bv.ul,l({ref:a,listStyleType:m,listStylePosition:f,role:"list",__css:l({},i.container,_)},b),h))}));r.__DEV__&&(X.displayName="List");var Y=(0,t.Rf)((function(e,a){e.as;var n=u(e,L);return s.createElement(X,l({ref:a,as:"ol",styleType:"decimal",marginStart:"1em"},n))}));r.__DEV__&&(Y.displayName="OrderedList");var J=(0,t.Rf)((function(e,a){e.as;var n=u(e,V);return s.createElement(X,l({ref:a,as:"ul",styleType:"initial",marginStart:"1em"},n))}));r.__DEV__&&(J.displayName="UnorderedList");var $=(0,t.Rf)((function(e,a){var n=G();return s.createElement(t.Bv.li,l({ref:a},e,{__css:n.item}))}));r.__DEV__&&($.displayName="ListItem");var ee=(0,t.Rf)((function(e,a){var n=G();return s.createElement(d.In,l({ref:a,role:"presentation"},e,{__css:n.icon}))}));r.__DEV__&&(ee.displayName="ListIcon");var ae=["columns","spacingX","spacingY","spacing","minChildWidth"],ne=(0,t.Rf)((function(e,a){var n,t,i=e.columns,d=e.spacingX,o=e.spacingY,c=e.spacing,m=e.minChildWidth,f=u(e,ae),p=m?(t=m,(0,r.mapResponsive)(t,(function(e){return(0,r.isNull)(e)?null:"repeat(auto-fit, minmax("+(a=e,((0,r.isNumber)(a)?a+"px":a)+", 1fr))");var a}))):(n=i,(0,r.mapResponsive)(n,(function(e){return(0,r.isNull)(e)?null:"repeat("+e+", minmax(0, 1fr))"})));return s.createElement(N,l({ref:a,gap:c,columnGap:d,rowGap:o,templateColumns:p},f))}));r.__DEV__&&(ne.displayName="SimpleGrid");var te=(0,t.Bv)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.__DEV__&&(te.displayName="Spacer");var ie="& > *:not(style) ~ *:not(style)";var re=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],se=function(e){return s.createElement(t.Bv.div,l({className:"chakra-stack__divider"},e,{__css:l({},e.__css,{borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"})}))},de=function(e){return s.createElement(t.Bv.div,l({className:"chakra-stack__item"},e,{__css:l({display:"inline-block",flex:"0 0 auto",minWidth:0},e.__css)}))},oe=(0,t.Rf)((function(e,a){var n,i=e.isInline,d=e.direction,c=e.align,m=e.justify,f=e.spacing,p=void 0===f?"0.5rem":f,b=e.wrap,h=e.children,_=e.divider,v=e.className,y=e.shouldWrapChildren,g=u(e,re),w=i?"row":null!=d?d:"column",T=s.useMemo((function(){return function(e){var a,n=e.spacing,t=e.direction,i={column:{marginTop:n,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:n},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:n,marginStart:0},"row-reverse":{marginTop:0,marginEnd:n,marginBottom:0,marginStart:0}};return(a={flexDirection:t})[ie]=(0,r.mapResponsive)(t,(function(e){return i[e]})),a}({direction:w,spacing:p})}),[w,p]),k=s.useMemo((function(){return function(e){var a=e.spacing,n=e.direction,t={column:{my:a,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:a,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:a,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:a,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,r.mapResponsive)(n,(function(e){return t[e]}))}}({spacing:p,direction:w})}),[p,w]),E=!!_,I=!y&&!E,x=(0,o.getValidChildren)(h),S=I?x:x.map((function(e,a){var n="undefined"!==typeof e.key?e.key:a,t=a+1===x.length,i=y?s.createElement(de,{key:n},e):e;if(!E)return i;var r=t?null:s.cloneElement(_,{__css:k});return s.createElement(s.Fragment,{key:n},i,r)})),A=(0,r.cx)("chakra-stack",v);return s.createElement(t.Bv.div,l({ref:a,display:"flex",alignItems:c,justifyContent:m,flexDirection:T.flexDirection,flexWrap:b,className:A,__css:E?{}:(n={},n[ie]=T[ie],n)},g),S)}));r.__DEV__&&(oe.displayName="Stack");var le=(0,t.Rf)((function(e,a){return s.createElement(oe,l({align:"center"},e,{direction:"row",ref:a}))}));r.__DEV__&&(le.displayName="HStack");var ue=(0,t.Rf)((function(e,a){return s.createElement(oe,l({align:"center"},e,{direction:"column",ref:a}))}));r.__DEV__&&(ue.displayName="VStack");var ce=["className","align","decoration","casing"],me=(0,t.Rf)((function(e,a){var n=(0,t.Vl)("Text",e),i=(0,t.MN)(e);i.className,i.align,i.decoration,i.casing;var d=u(i,ce),o=(0,r.filterUndefined)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return s.createElement(t.Bv.p,l({ref:a,className:(0,r.cx)("chakra-text",e.className)},o,d,{__css:n}))}));r.__DEV__&&(me.displayName="Text");var fe=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],pe=["className"],be=(0,t.Rf)((function(e,a){var n=e.spacing,d=void 0===n?"0.5rem":n,o=e.spacingX,c=e.spacingY,m=e.children,f=e.justify,p=e.direction,b=e.align,h=e.className,_=e.shouldWrapChildren,v=u(e,fe),y=s.useMemo((function(){var e={spacingX:o,spacingY:c},a=e.spacingX,n=void 0===a?d:a,t=e.spacingY,s=void 0===t?d:t;return{"--chakra-wrap-x-spacing":function(e){return(0,r.mapResponsive)(n,(function(a){return(0,i.D8)("space",a)(e)}))},"--chakra-wrap-y-spacing":function(e){return(0,r.mapResponsive)(s,(function(a){return(0,i.D8)("space",a)(e)}))},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:f,alignItems:b,flexDirection:p,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}}),[d,o,c,f,b,p]),g=_?s.Children.map(m,(function(e,a){return s.createElement(he,{key:a},e)})):m;return s.createElement(t.Bv.div,l({ref:a,className:(0,r.cx)("chakra-wrap",h)},v),s.createElement(t.Bv.ul,{className:"chakra-wrap__list",__css:y},g))}));r.__DEV__&&(be.displayName="Wrap");var he=(0,t.Rf)((function(e,a){var n=e.className,i=u(e,pe);return s.createElement(t.Bv.li,l({ref:a,__css:{display:"flex",alignItems:"flex-start"},className:(0,r.cx)("chakra-wrap__listitem",n)},i))}));r.__DEV__&&(he.displayName="WrapItem");var _e=["isExternal","target","rel","className"],ve=["className"],ye=(0,t.Rf)((function(e,a){var n=e.isExternal,i=e.target,d=e.rel,o=e.className,c=u(e,_e);return s.createElement(t.Bv.a,l({},c,{ref:a,className:(0,r.cx)("chakra-linkbox__overlay",o),rel:n?"noopener noreferrer":d,target:n?"_blank":i,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:1,width:"100%",height:"100%"}}}))})),ge=(0,t.Rf)((function(e,a){var n=e.className,i=u(e,ve);return s.createElement(t.Bv.div,l({ref:a,position:"relative"},i,{className:(0,r.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title], button":{position:"relative",zIndex:1}}}))}))},84454:(e,a,n)=>{"use strict";n.d(a,{BV:()=>I,Dr:()=>$,EH:()=>N,F9:()=>F,IU:()=>W,KZ:()=>x,Nj:()=>se,Os:()=>j,T7:()=>T,W1:()=>V,Xu:()=>g,ZB:()=>re,b:()=>S,cO:()=>Y,db:()=>A,gA:()=>D,ip:()=>ne,jy:()=>C,k5:()=>ae,n_:()=>ie,rX:()=>te,uC:()=>k,vX:()=>Z,yQ:()=>w});var t=n(11934),i=n(23216),r=n(47686),s=n(65043),d=n(1490),o=n(63830),l=n(19754),u=n(6614),c=n(83926),m=n(90636);function f(){return f=Object.assign||function(e){for(var a=1;a=0||(i[n]=e[n]);return i}var b=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],h=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],_=["type","isChecked"],v=["children","type","value","defaultValue","onChange"],y=(0,o.createDescendantContext)(),g=y[0],w=y[1],T=y[2],k=y[3],E=(0,m.createContext)({strict:!1,name:"MenuContext"}),I=E[0],x=E[1];function S(e){void 0===e&&(e={});var a=e,n=a.id,t=a.closeOnSelect,r=void 0===t||t,d=a.closeOnBlur,o=void 0===d||d,m=a.autoSelect,h=void 0===m||m,_=a.isLazy,v=a.isOpen,y=a.defaultIsOpen,g=a.onClose,w=a.onOpen,k=a.placement,E=void 0===k?"bottom-start":k,I=a.lazyBehavior,x=void 0===I?"unmount":I,S=a.direction,A=a.computePositionOnMount,q=void 0!==A&&A,C=p(a,b),F=s.useRef(null),j=s.useRef(null),D=T(),Z=s.useCallback((function(){(0,i.focus)(F.current,{nextTick:!0,selectTextIfInput:!1})}),[]),N=s.useCallback((function(){var e=setTimeout((function(){var e=D.firstEnabled();e&&V(e.index)}));J.current.add(e)}),[D]),O=s.useCallback((function(){var e=setTimeout((function(){var e=D.lastEnabled();e&&V(e.index)}));J.current.add(e)}),[D]),R=s.useCallback((function(){null==w||w(),h?N():Z()}),[h,N,Z,w]),z=(0,l.j1)({isOpen:v,defaultIsOpen:y,onClose:g,onOpen:R}),U=z.isOpen,P=z.onOpen,H=z.onClose,B=z.onToggle;(0,l.jz)({enabled:U&&o,ref:F,handler:function(e){var a;null!=(a=j.current)&&a.contains(e.target)||H()}});var M=(0,c.E)(f({},C,{enabled:U||q,placement:E,direction:S})),K=s.useState(-1),L=K[0],V=K[1];(0,l.w5)((function(){U||V(-1)}),[U]),(0,l.Xb)(F,{focusRef:j,visible:U,shouldFocus:!0});var Q=(0,u.v)({isOpen:U,ref:F}),W=(0,l.cC)(n,"menu-button","menu-list"),G=W[0],X=W[1],Y=s.useCallback((function(){P(),Z()}),[P,Z]),J=s.useRef(new Set([]));return(0,l.l0)((function(){J.current.forEach((function(e){return clearTimeout(e)})),J.current.clear()})),{openAndFocusMenu:Y,openAndFocusFirstItem:s.useCallback((function(){P(),N()}),[N,P]),openAndFocusLastItem:s.useCallback((function(){P(),O()}),[P,O]),onTransitionEnd:s.useCallback((function(){var e,a,n=(0,i.getOwnerDocument)(F.current),t=null==(e=F.current)?void 0:e.contains(n.activeElement);if(U&&!t){var r=null==(a=D.item(L))?void 0:a.node;r&&(0,i.focus)(r,{selectTextIfInput:!1,preventScroll:!1})}}),[U,L,D]),unstable__animationState:Q,descendants:D,popper:M,buttonId:G,menuId:X,forceUpdate:M.forceUpdate,orientation:"vertical",isOpen:U,onToggle:B,onOpen:P,onClose:H,menuRef:F,buttonRef:j,focusedIndex:L,closeOnSelect:r,closeOnBlur:o,autoSelect:h,setFocusedIndex:V,isLazy:_,lazyBehavior:x}}function A(e,a){void 0===e&&(e={}),void 0===a&&(a=null);var n=x(),t=n.onToggle,r=n.popper,d=n.openAndFocusFirstItem,o=n.openAndFocusLastItem,l=s.useCallback((function(e){var a=(0,i.normalizeEventKey)(e),n={Enter:d,ArrowDown:d,ArrowUp:o}[a];n&&(e.preventDefault(),e.stopPropagation(),n(e))}),[d,o]);return f({},e,{ref:(0,m.mergeRefs)(n.buttonRef,a,r.referenceRef),id:n.buttonId,"data-active":(0,i.dataAttr)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,i.callAllHandlers)(e.onClick,t),onKeyDown:(0,i.callAllHandlers)(e.onKeyDown,l)})}function q(e){var a;return(0,i.isHTMLElement)(e)&&!(null==(a=e.getAttribute("role"))||!a.startsWith("menuitem"))}function C(e,a){void 0===e&&(e={}),void 0===a&&(a=null);var n=x();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");var t=n.focusedIndex,r=n.setFocusedIndex,d=n.menuRef,o=n.isOpen,u=n.onClose,c=n.menuId,p=n.isLazy,b=n.lazyBehavior,h=n.unstable__animationState,_=w(),v=(0,l.wk)({preventDefault:function(e){return" "!==e.key&&q(e.target)}}),y=s.useCallback((function(e){var a=(0,i.normalizeEventKey)(e),n={Tab:function(e){return e.preventDefault()},Escape:u,ArrowDown:function(){var e=_.nextEnabled(t);e&&r(e.index)},ArrowUp:function(){var e=_.prevEnabled(t);e&&r(e.index)}},s=n[a];if(s)return e.preventDefault(),void s(e);var d=v((function(e){var a=(0,i.getNextItemFromSearch)(_.values(),e,(function(e){var a,n;return null!=(a=null==e||null==(n=e.node)?void 0:n.textContent)?a:""}),_.item(t));if(a){var n=_.indexOf(a.node);r(n)}}));q(e.target)&&d(e)}),[_,t,v,u,r]),g=s.useRef(!1);o&&(g.current=!0);var T=(0,i.determineLazyBehavior)({hasBeenSelected:g.current,isLazy:p,lazyBehavior:b,isSelected:h.present});return f({},e,{ref:(0,m.mergeRefs)(d,a),children:T?e.children:null,tabIndex:-1,role:"menu",id:c,style:f({},e.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:(0,i.callAllHandlers)(e.onKeyDown,y)})}function F(e){void 0===e&&(e={});var a=x(),n=a.popper,t=a.isOpen;return n.getPopperProps(f({},e,{style:f({visibility:t?"visible":"hidden"},e.style)}))}function j(e,a){void 0===e&&(e={}),void 0===a&&(a=null);var n=e,t=n.onMouseEnter,r=n.onMouseMove,o=n.onMouseLeave,u=n.onClick,c=n.isDisabled,b=n.isFocusable,_=n.closeOnSelect,v=n.type,y=p(n,h),g=x(),w=g.setFocusedIndex,T=g.focusedIndex,E=g.closeOnSelect,I=g.onClose,S=g.menuRef,A=g.isOpen,C=g.menuId,F=s.useRef(null),j=C+"-menuitem-"+(0,l.Bi)(),D=k({disabled:c&&!b}),Z=D.index,N=D.register,O=s.useCallback((function(e){null==t||t(e),c||w(Z)}),[w,Z,c,t]),R=s.useCallback((function(e){null==r||r(e),F.current&&!(0,i.isActiveElement)(F.current)&&O(e)}),[O,r]),z=s.useCallback((function(e){null==o||o(e),c||w(-1)}),[w,c,o]),U=s.useCallback((function(e){null==u||u(e),q(e.currentTarget)&&(null!=_?_:E)&&I()}),[I,u,E,_]),P=Z===T,H=c&&!b;(0,l.w5)((function(){A&&(P&&!H&&F.current?(0,i.focus)(F.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):S.current&&!(0,i.isActiveElement)(S.current)&&(0,i.focus)(S.current,{preventScroll:!1}))}),[P,H,S,A]);var B=(0,d.I)({onClick:U,onMouseEnter:O,onMouseMove:R,onMouseLeave:z,ref:(0,m.mergeRefs)(N,F,a),isDisabled:c,isFocusable:b});return f({},y,B,{type:null!=v?v:B.type,id:j,role:"menuitem",tabIndex:P?0:-1})}function D(e,a){void 0===e&&(e={}),void 0===a&&(a=null);var n=e,t=n.type,i=void 0===t?"radio":t,r=n.isChecked;return f({},j(p(n,_),a),{role:"menuitem"+i,"aria-checked":r})}function Z(e){void 0===e&&(e={});var a=e,n=a.children,t=a.type,r=void 0===t?"radio":t,d=a.value,o=a.defaultValue,u=a.onChange,c=p(a,v),b="radio"===r?"":[],h=(0,l.ic)({defaultValue:null!=o?o:b,value:d,onChange:u}),_=h[0],y=h[1],g=s.useCallback((function(e){if("radio"===r&&(0,i.isString)(_)&&y(e),"checkbox"===r&&(0,i.isArray)(_)){var a=_.includes(e)?(0,i.removeItem)(_,e):(0,i.addItem)(_,e);y(a)}}),[_,y,r]);return f({},c,{children:(0,m.getValidChildren)(n).map((function(e){if("MenuItemOption"!==e.type.id)return e;var a="radio"===r?e.props.value===_:_.includes(e.props.value);return s.cloneElement(e,{type:r,onClick:function(a){g(e.props.value),null==e.props.onClick||e.props.onClick(a)},isChecked:a})}))})}function N(){var e=x();return{isOpen:e.isOpen,onClose:e.onClose}}var O=["descendants"],R=["children","as"],z=["rootProps"],U=["type"],P=["icon","iconSpacing","command","commandSpacing","children"],H=["icon","iconSpacing"],B=["className","title"],M=["title","children","className"],K=["className","children"],L=["className"],V=function(e){var a=e.children,n=(0,t.o5)("Menu",e),r=S(f({},(0,t.MN)(e),{direction:(0,t.DP)().direction})),d=r.descendants,o=p(r,O),l=s.useMemo((function(){return o}),[o]),u=l.isOpen,c=l.onClose,m=l.forceUpdate;return s.createElement(g,{value:d},s.createElement(I,{value:l},s.createElement(t.W$,{value:n},(0,i.runIfFn)(a,{isOpen:u,onClose:c,forceUpdate:m}))))};i.__DEV__&&(V.displayName="Menu");var Q=(0,t.Rf)((function(e,a){var n=(0,t.IS)();return s.createElement(t.Bv.button,f({ref:a},e,{__css:f({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},n.button)}))})),W=(0,t.Rf)((function(e,a){e.children;var n=e.as,r=A(p(e,R),a),d=n||Q;return s.createElement(d,f({},r,{className:(0,i.cx)("chakra-menu__menu-button",e.className)}),s.createElement(t.Bv.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},e.children))}));i.__DEV__&&(W.displayName="MenuButton");var G={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}};var X=function(e){var a=r.P;return"custom"in a&&"function"===typeof a.custom?a.custom(e):a(e)}(t.Bv.div),Y=(0,t.Rf)((function(e,a){var n,r,d=e.rootProps,o=p(e,z),l=x(),u=l.isOpen,c=l.onTransitionEnd,m=l.unstable__animationState,b=C(o,a),h=F(d),_=(0,t.IS)();return s.createElement(t.Bv.div,f({},h,{__css:{zIndex:null!=(n=e.zIndex)?n:null==(r=_.list)?void 0:r.zIndex}}),s.createElement(X,f({},b,{onUpdate:c,onAnimationComplete:(0,i.callAll)(m.onComplete,b.onAnimationComplete),className:(0,i.cx)("chakra-menu__menu-list",b.className),variants:G,initial:!1,animate:u?"enter":"exit",__css:f({outline:0},_.list)})))}));i.__DEV__&&(Y.displayName="MenuList");var J=(0,t.Rf)((function(e,a){var n=e.type,i=p(e,U),r=(0,t.IS)(),d=i.as||n?null!=n?n:void 0:"button",o=s.useMemo((function(){return f({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},r.item)}),[r.item]);return s.createElement(t.Bv.button,f({ref:a,type:d},i,{__css:o}))})),$=(0,t.Rf)((function(e,a){var n=e.icon,t=e.iconSpacing,r=void 0===t?"0.75rem":t,d=e.command,o=e.commandSpacing,l=void 0===o?"0.75rem":o,u=e.children,c=j(p(e,P),a),m=n||d?s.createElement("span",{style:{pointerEvents:"none",flex:1}},u):u;return s.createElement(J,f({},c,{className:(0,i.cx)("chakra-menu__menuitem",c.className)}),n&&s.createElement(re,{fontSize:"0.8em",marginEnd:r},n),m,d&&s.createElement(ie,{marginStart:l},d))}));i.__DEV__&&($.displayName="MenuItem");var ee=function(e){return s.createElement("svg",f({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),s.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},ae=(0,t.Rf)((function(e,a){var n=e.icon,t=e.iconSpacing,r=void 0===t?"0.75rem":t,d=p(e,H),o=D(d,a);return s.createElement(J,f({},o,{className:(0,i.cx)("chakra-menu__menuitem-option",d.className)}),null!==n&&s.createElement(re,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0},n||s.createElement(ee,null)),s.createElement("span",{style:{flex:1}},o.children))}));ae.id="MenuItemOption",i.__DEV__&&(ae.displayName="MenuItemOption");var ne=function(e){var a=e.className,n=e.title,t=Z(p(e,B));return s.createElement(te,f({title:n,className:(0,i.cx)("chakra-menu__option-group",a)},t))};i.__DEV__&&(ne.displayName="MenuOptionGroup");var te=(0,t.Rf)((function(e,a){var n=e.title,r=e.children,d=e.className,o=p(e,M),l=(0,i.cx)("chakra-menu__group__title",d),u=(0,t.IS)();return s.createElement("div",{ref:a,className:"chakra-menu__group",role:"group"},n&&s.createElement(t.Bv.p,f({className:l},o,{__css:u.groupTitle}),n),r)}));i.__DEV__&&(te.displayName="MenuGroup");var ie=(0,t.Rf)((function(e,a){var n=(0,t.IS)();return s.createElement(t.Bv.span,f({ref:a},e,{__css:n.command,className:"chakra-menu__command"}))}));i.__DEV__&&(ie.displayName="MenuCommand");var re=function(e){var a=e.className,n=e.children,r=p(e,K),d=s.Children.only(n),o=s.isValidElement(d)?s.cloneElement(d,{focusable:"false","aria-hidden":!0,className:(0,i.cx)("chakra-menu__icon",d.props.className)}):null,l=(0,i.cx)("chakra-menu__icon-wrapper",a);return s.createElement(t.Bv.span,f({className:l},r,{__css:{flexShrink:0}}),o)};i.__DEV__&&(re.displayName="MenuIcon");var se=function(e){var a=e.className,n=p(e,L),r=(0,t.IS)();return s.createElement(t.Bv.hr,f({role:"separator","aria-orientation":"horizontal",className:(0,i.cx)("chakra-menu__divider",a)},n,{__css:r.divider}))};i.__DEV__&&(se.displayName="MenuDivider")},40848:(e,a,n)=>{"use strict";n.d(a,{Lt:()=>en,vZ:()=>Xa,DI:()=>Ja,EO:()=>an,ck:()=>Ya,wd:()=>Ga,LA:()=>Wa,_s:()=>ln,ys:()=>Xa,s1:()=>Ja,zj:()=>cn,tb:()=>Ya,BE:()=>Ga,QP:()=>Wa,aF:()=>Ka,cw:()=>Xa,s_:()=>Ja,$m:()=>Va,i0:()=>Ba,uT:()=>Qa,jl:()=>Ya,rQ:()=>Ga,mH:()=>Wa,LV:()=>Za,hS:()=>Da,k3:()=>Ma});var t=n(26678),i=n(65043),r=n(98587),s=n(58168),d="data-focus-lock",o="data-focus-lock-disabled";function l(e,a){return"function"===typeof e?e(a):e&&(e.current=a),e}var u="undefined"!==typeof window?i.useLayoutEffect:i.useEffect,c=new WeakMap;function m(e,a){var n=function(e,a){var n=(0,i.useState)((function(){return{value:e,callback:a,facade:{get current(){return n.value},set current(e){var a=n.value;a!==e&&(n.value=e,n.callback(e,a))}}}}))[0];return n.callback=a,n.facade}(a||null,(function(a){return e.forEach((function(e){return l(e,a)}))}));return u((function(){var a=c.get(n);if(a){var t=new Set(a),i=new Set(e),r=n.current;t.forEach((function(e){i.has(e)||l(e,null)})),i.forEach((function(e){t.has(e)||l(e,r)}))}c.set(n,e)}),[e]),n}var f={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},p=function(e){var a=e.children;return i.createElement(i.Fragment,null,i.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:f}),a,a&&i.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:f}))};p.propTypes={},p.defaultProps={children:null};var b=n(6326);function h(e){return e}function _(e,a){void 0===a&&(a=h);var n=[],t=!1;return{read:function(){if(t)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=a(e,t);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(t=!0;n.length;){var a=n;n=[],a.forEach(e)}n={push:function(a){return e(a)},filter:function(){return n}}},assignMedium:function(e){t=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(e),a=n}var r=function(){var n=a;a=[],n.forEach(e)},s=function(){return Promise.resolve().then(r)};s(),n={push:function(e){a.push(e),s()},filter:function(e){return a=a.filter(e),n}}}}}function v(e,a){return void 0===a&&(a=h),_(e,a)}function y(e){void 0===e&&(e={});var a=_(null);return a.options=(0,b.Cl)({async:!0,ssr:!1},e),a}var g=v({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),w=v(),T=v(),k=y({async:!0}),E=[],I=i.forwardRef((function(e,a){var n,t=i.useState(),r=t[0],l=t[1],u=i.useRef(),c=i.useRef(!1),p=i.useRef(null),b=e.children,h=e.disabled,_=e.noFocusGuards,v=e.persistentFocus,y=e.crossFrame,T=e.autoFocus,I=(e.allowTextSelection,e.group),x=e.className,S=e.whiteList,A=e.shards,q=void 0===A?E:A,C=e.as,F=void 0===C?"div":C,j=e.lockProps,D=void 0===j?{}:j,Z=e.sideCar,N=e.returnFocus,O=e.onActivation,R=e.onDeactivation,z=i.useState({})[0],U=i.useCallback((function(){p.current=p.current||document&&document.activeElement,u.current&&O&&O(u.current),c.current=!0}),[O]),P=i.useCallback((function(){c.current=!1,R&&R(u.current)}),[R]),H=i.useCallback((function(e){var a=p.current;if(Boolean(N)&&a&&a.focus){var n="object"===typeof N?N:void 0;p.current=null,e?Promise.resolve().then((function(){return a.focus(n)})):a.focus(n)}}),[N]),B=i.useCallback((function(e){c.current&&g.useMedium(e)}),[]),M=w.useMedium,K=i.useCallback((function(e){u.current!==e&&(u.current=e,l(e))}),[]);var L=(0,s.A)(((n={})[o]=h&&"disabled",n[d]=I,n),D),V=!0!==_,Q=V&&"tail"!==_,W=m([a,K]);return i.createElement(i.Fragment,null,V&&[i.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:f}),i.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:f})],!h&&i.createElement(Z,{id:z,sideCar:k,observed:r,disabled:h,persistentFocus:v,crossFrame:y,autoFocus:T,whiteList:S,shards:q,onActivation:U,onDeactivation:P,returnFocus:H}),i.createElement(F,(0,s.A)({ref:W},L,{className:x,onBlur:M,onFocus:B}),b),Q&&i.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:f}))}));I.propTypes={},I.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const x=I;var S=n(77387),A=n(64467);const q=function(e,a){return function(n){var t,r=[];function s(){t=e(r.map((function(e){return e.props}))),a(t)}var d=function(e){function a(){return e.apply(this,arguments)||this}(0,S.A)(a,e),a.peek=function(){return t};var d=a.prototype;return d.componentDidMount=function(){r.push(this),s()},d.componentDidUpdate=function(){s()},d.componentWillUnmount=function(){var e=r.indexOf(this);r.splice(e,1),s()},d.render=function(){return i.createElement(n,this.props)},a}(i.PureComponent);return(0,A.A)(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),d}};var C=function(e){for(var a=Array(e.length),n=0;n0&&a.add(i),(r&Node.DOCUMENT_POSITION_CONTAINS)>0&&a.add(t)}return e.filter((function(e,n){return!a.has(n)}))}(C(j(a).querySelectorAll("["+d+'="'+n+'"]:not(['+o+'="disabled"])'))):[a]),e}),[])},Z=function(e){return Boolean(C(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},N=function(e){var a=document&&document.activeElement;return!(!a||a.dataset&&a.dataset.focusGuard)&&D(e).reduce((function(e,n){return e||n.contains(a)||Z(n)}),!1)},O=function(e){return"INPUT"===e.tagName&&"radio"===e.type},R=function(e,a){return O(e)&&e.name?function(e,a){return a.filter(O).filter((function(a){return a.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,a):e},z=function(e){return e[0]&&e.length>1?R(e[0],e):e[0]},U=function(e,a){return e.length>1?e.indexOf(R(e[a],e)):a},P=function(e,a){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var a=window.getComputedStyle(e,null);return!(!a||!a.getPropertyValue)&&("none"===a.getPropertyValue("display")||"hidden"===a.getPropertyValue("visibility"))}(e)&&a(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},H=function(e,a){var n=e.get(a);if(void 0!==n)return n;var t=P(a,H.bind(void 0,e));return e.set(a,t),t},B=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},M=function(e){return!B(e)},K=function(e){return Boolean(e)},L="NEW_FOCUS",V=function(e,a,n,t){var i=e.length,r=e[0],s=e[i-1],d=B(n);if(!(e.indexOf(n)>=0)){var o=a.indexOf(n),l=t?a.indexOf(t):o,u=t?e.indexOf(t):-1,c=o-l,m=a.indexOf(r),f=a.indexOf(s),p=function(e){var a=new Set;return e.forEach((function(n){return a.add(R(n,e))})),e.filter((function(e){return a.has(e)}))}(a),b=p.indexOf(n)-(t?p.indexOf(t):o),h=U(e,0),_=U(e,i-1);return-1===o||-1===u?L:!c&&u>=0?u:o<=m&&d&&Math.abs(c)>1?_:o>=f&&d&&Math.abs(c)>1?h:c&&Math.abs(b)>1?u:o<=m?_:o>f?h:c?Math.abs(c)>1?u:(i+u+c)%i:void 0}},Q=function(e,a){var n=e.tabIndex-a.tabIndex,t=e.index-a.index;if(n){if(!e.tabIndex)return 1;if(!a.tabIndex)return-1}return n||t},W=function(e,a,n){return C(e).map((function(e,a){return{node:e,index:a,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!a||e.tabIndex>=0})).sort(Q)},G=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),X=G+", [data-focus-guard]",Y=function(e,a){return e.reduce((function(e,n){return e.concat(C(n.querySelectorAll(a?X:G)),n.parentNode?C(n.parentNode.querySelectorAll(G)).filter((function(e){return e===n})):[])}),[])},J=function(e,a){return C(e).filter((function(e){return H(a,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},$=function(e,a,n){return W(J(Y(e,n),a),!0,n)},ee=function(e,a){return W(J(Y(e),a),!1)},ae=function(e,a){return J(function(e){var a=e.querySelectorAll("[data-autofocus-inside]");return C(a).map((function(e){return Y([e])})).reduce((function(e,a){return e.concat(a)}),[])}(e),a)},ne=function(e,a){return void 0===a&&(a=[]),a.push(e),e.parentNode&&ne(e.parentNode,a),a},te=function(e,a){for(var n=ne(e),t=ne(a),i=0;i=0)return r}return!1},ie=function(e,a,n){var t=F(e),i=F(a),r=t[0],s=!1;return i.filter(Boolean).forEach((function(e){s=te(s||e,e)||s,n.filter(Boolean).forEach((function(e){var a=te(r,e);a&&(s=!s||a.contains(s)?a:te(a,s))}))})),s},re=function(e,a){var n=document&&document.activeElement,t=D(e).filter(M),i=ie(n||e,e,t),r=new Map,s=ee(t,r),d=$(t,r).filter((function(e){var a=e.node;return M(a)}));if(d[0]||(d=s)[0]){var o,l=ee([i],r).map((function(e){return e.node})),u=function(e,a){var n=new Map;return a.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(K)}(l,d),c=u.map((function(e){return e.node})),m=V(c,l,n,a);if(m===L){var f=s.map((function(e){return e.node})).filter((o=function(e,a){return e.reduce((function(e,n){return e.concat(ae(n,a))}),[])}(t,r),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||o.indexOf(e)>=0}));return{node:f&&f.length?z(f):z(c)}}return void 0===m?m:u[m]}},se=0,de=!1;const oe=function(e,a){var n,t=re(e,a);if(!de&&t){if(se>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),de=!0,void setTimeout((function(){de=!1}),1);se++,(n=t.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),se--}};function le(e){var a=window.setImmediate;"undefined"!==typeof a?a(e):setTimeout(e,1)}var ue=function(){return document&&document.activeElement===document.body||document&&C(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},ce=null,me=null,fe=null,pe=!1,be=function(){return!0};function he(e,a,n,t){var i=null,r=e;do{var s=t[r];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else{if(!s.lockItem)break;if(r!==e)return;i=null}}while((r+=n)!==a);i&&(i.node.tabIndex=0)}var _e=function(e){return e&&"current"in e?e.current:e},ve=function(){var e,a=!1;if(ce){var n=ce,t=n.observed,i=n.persistentFocus,r=n.autoFocus,s=n.shards,d=n.crossFrame,o=t||fe&&fe.portaledElement,l=document&&document.activeElement;if(o){var u=[o].concat(s.map(_e).filter(Boolean));if(l&&!function(e){return(ce.whiteList||be)(e)}(l)||(i||(d?Boolean(pe):"meanwhile"===pe)||!ue()||!me&&r)&&(!o||N(u)||(e=l,fe&&fe.portaledElement===e)||(document&&!me&&l&&!r?(l.blur&&l.blur(),document.body.focus()):(a=oe(u,me),fe={})),pe=!1,me=document&&document.activeElement),document){var c=document&&document.activeElement,m=function(e){var a=D(e).filter(M),n=ie(e,e,a),t=new Map,i=$([n],t,!0),r=$(a,t).filter((function(e){var a=e.node;return M(a)})).map((function(e){return e.node}));return i.map((function(e){var a=e.node;return{node:a,index:e.index,lockItem:r.indexOf(a)>=0,guard:B(a)}}))}(u),f=m.map((function(e){return e.node})).indexOf(c);f>-1&&(m.filter((function(e){var a=e.guard,n=e.node;return a&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),he(f,m.length,1,m),he(f,-1,-1,m))}}}return a},ye=function(e){ve()&&e&&(e.stopPropagation(),e.preventDefault())},ge=function(){return le(ve)},we=function(e){var a=e.target,n=e.currentTarget;n.contains(a)||(fe={observerNode:n,portaledElement:a})},Te=function(){pe="just",setTimeout((function(){pe="meanwhile"}),0)};g.assignSyncMedium(we),w.assignMedium(ge),T.assignMedium((function(e){return e({moveFocusInside:oe,focusInside:N})}));const ke=q((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var a=e.slice(-1)[0];a&&!ce&&(document.addEventListener("focusin",ye,!0),document.addEventListener("focusout",ge),window.addEventListener("blur",Te));var n=ce,t=n&&a&&a.id===n.id;ce=a,n&&!t&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!a)),a?(me=null,t&&n.observed===a.observed||a.onActivation(),ve(),le(ve)):(document.removeEventListener("focusin",ye,!0),document.removeEventListener("focusout",ge),window.removeEventListener("blur",Te),me=null)}))((function(){return null}));var Ee=i.forwardRef((function(e,a){return i.createElement(x,(0,s.A)({sideCar:ke,ref:a},e))})),Ie=x.propTypes||{};Ie.sideCar,(0,r.A)(Ie,["sideCar"]);Ee.propTypes={};const xe=Ee;var Se=n(23216),Ae=function(e){var a=e.initialFocusRef,n=e.finalFocusRef,t=e.contentRef,r=e.restoreFocus,s=e.children,d=e.isDisabled,o=e.autoFocus,l=e.persistentFocus,u=e.lockFocusAcrossFrames,c=i.useCallback((function(){if(null!=a&&a.current)a.current.focus();else if(null!=t&&t.current){0===(0,Se.getAllFocusable)(t.current).length&&(0,Se.focus)(t.current,{nextTick:!0})}}),[a,t]),m=i.useCallback((function(){var e;null==n||null==(e=n.current)||e.focus()}),[n]),f=r&&!n;return i.createElement(xe,{crossFrame:u,persistentFocus:l,autoFocus:o,disabled:d,onActivation:c,onDeactivation:m,returnFocus:f},s)};Se.__DEV__&&(Ae.displayName="FocusLock");var qe=n(33990),Ce=n(11934),Fe=n(858),je=n(90636),De=n(47686),Ze=n(51195),Ne=n(44801);var Oe=function(){return Oe=Object.assign||function(e){for(var a,n=1,t=arguments.length;n