"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8605],{89546:function(e,t,n){var o=n(67294),r=n(54733);const i=o.createContext({isOpenAuth:!1,closeAuth:r.ZT,openLogInForm:r.ZT,openRegisterModal:r.ZT,openRestoreForm:r.ZT,openRestoreSent:r.ZT,shouldModalCloseOnOverlayClick:!0,setShouldModalCloseOnOverlayClick:r.ZT,handleModalClose:r.ZT});t.Z=i},96268:function(e,t,n){n.d(t,{bF:function(){return M},A3:function(){return l},l0:function(){return f},QH:function(){return S},IS:function(){return k},w2:function(){return A},sh:function(){return L},fb:function(){return b},Dr:function(){return N},pf:function(){return Z},Wi:function(){return P},Xp:function(){return g},yt:function(){return p},gi:function(){return m},lX:function(){return h},CY:function(){return B},QF:function(){return w},w6:function(){return E},rf:function(){return x},xq:function(){return C},eH:function(){return y},pl:function(){return O},VM:function(){return I},Ow:function(){return v},hG:function(){return j},fX:function(){return R},vw:function(){return _},Th:function(){return T},nJ:function(){return D},n5:function(){return z},yb:function(){return d},Mm:function(){return F},ID:function(){return u},c7:function(){return W},CJ:function(){return U}});var o=n(10586),r=n(94737),i=n(15937),a=n(88169),s=n(67294);const c=(0,o.iv)(["background:transparent;font-size:18px;font-weight:600;line-height:20px;color:#3897ff;padding:0;margin:0;box-shadow:none;border:none;cursor:pointer;margin-right:10px;text-align:left;"]),l=o.ZP.button.withConfig({displayName:"AuthFormsstyled__ForgotPasswordButton",componentId:"sc-gf6vh7-0"})(["",";"],c),d=o.ZP.button.withConfig({displayName:"AuthFormsstyled__ReceiveCodeButton",componentId:"sc-gf6vh7-1"})(["",";"],c),u=o.ZP.div.withConfig({displayName:"AuthFormsstyled__ReceiveMessage",componentId:"sc-gf6vh7-2"})(["font-size:16px;font-weight:500;line-height:20px;color:#fff;opacity:0.75;padding-right:20px;"]),h=(o.ZP.div.withConfig({displayName:"AuthFormsstyled__AuthWrapper",componentId:"sc-gf6vh7-3"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin:auto auto 40px;padding:0 35px;flex:0 0 auto;button{display:flex;justify-content:center;width:100%;margin:15px 0 0;font-size:18px;line-height:40px;}"]),o.ZP.label.withConfig({displayName:"AuthFormsstyled__FormLabel",componentId:"sc-gf6vh7-4"})(["display:flex;margin-bottom:10px;line-height:20px;color:#fff;font-size:18px;font-weight:500;@media ","{font-size:18px;}@media ","{font-size:16px;}@media ","{font-size:16px;}"],r.Z.desktop,r.Z.tablet,r.Z.mobile)),p=o.ZP.input.withConfig({displayName:"AuthFormsstyled__FormInput",componentId:"sc-gf6vh7-5"})(["height:50px;padding:0 20px;background:#fff;font-weight:600;line-height:20px;color:",";position:relative;display:block;width:100%;outline:0;border-radius:6px;border:solid 1px #cbcbcb;transition:border 0.3s;@media ","{font-size:18px;}@media ","{height:40px;padding:0 15px;font-size:15px;}"," &::placeholder{font-size:18px;font-weight:500;color:#888888;@media ","{font-size:16px;color:rgba(0,0,0,0.29);}}&:-ms-input-placeholder{color:#888;}&:-webkit-autofill{box-shadow:inset 0 0 0 50px #fff;}"],(e=>e.theme.color.regular),r.Z.desktop,r.Z.mobileOrTablet,(e=>!!e.errorString&&(0,o.iv)(["border:solid 1px #e35a59 !important;"])),r.Z.mobileOrTablet),m=(0,o.ZP)((e=>e.children?s.createElement("span",Object.assign({},e)):null)).withConfig({displayName:"AuthFormsstyled__FormInputValidationError",componentId:"sc-gf6vh7-6"})(["display:block;padding:15px 20px 10px;margin-top:-5px;color:#fff;background-color:#e35a59;border-radius:0 0 4px 4px;font-size:15px;font-weight:600;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;"]),f=o.ZP.form.withConfig({displayName:"AuthFormsstyled__Form",componentId:"sc-gf6vh7-7"})(["position:relative;display:flex;flex-direction:column;@media ","{padding:45px 45px 38px 45px;min-height:480px;}@media ","{padding:30px 20px;height:100%;background-color:#101114;}"],r.Z.desktop,r.Z.mobileOrTablet),g=o.ZP.input.withConfig({displayName:"AuthFormsstyled__FormHiddenInput",componentId:"sc-gf6vh7-8"})(["display:block;height:0;border:0;opacity:0;"]),b=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormContent",componentId:"sc-gf6vh7-9"})(["position:relative;"]),v=o.ZP.input.withConfig({displayName:"AuthFormsstyled__FormSubmit",componentId:"sc-gf6vh7-10"})(["display:block;width:0;height:0;border:none;"]),w=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormSocial",componentId:"sc-gf6vh7-11"})(["position:relative;text-align:center;margin-top:55px;@media ","{margin-top:40px;}"],r.Z.mobileOrTablet),y=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormSocialLabel",componentId:"sc-gf6vh7-12"})(["display:flex;align-items:center;font-size:18px;font-weight:500;font-style:normal;line-height:20px;letter-spacing:normal;text-align:center;color:rgba(255,255,255,0.7);&::before,&::after{display:block;flex-grow:1;height:2px;content:'';background-color:rgba(255,255,255,0.15);}&::before{margin-right:10px;}&::after{margin-left:10px;}"]),x=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormSocialButtons",componentId:"sc-gf6vh7-13"})(["margin-top:20px;",""],(e=>e.small&&(0,o.iv)(["display:flex;justify-content:center;"]))),E=o.ZP.button.withConfig({displayName:"AuthFormsstyled__FormSocialButton",componentId:"sc-gf6vh7-14"})(["position:relative;padding:0;font-size:18px;font-weight:600;color:#fff;text-align:center;cursor:pointer;border:0;border-radius:4px;outline:0;@media ","{transition:background-color 0.3s;"," ","}&:focus{box-shadow:0 0 0 1px #4990e2;}&:active{box-shadow:none;}",""],r.Z.mobileOrTablet,(e=>"fb"===e.socialType&&(0,o.iv)(["color:#fff;background-color:#3e5294;"])),(e=>"gp"===e.socialType&&(0,o.iv)(["color:#595959;background-color:#fff;"])),(e=>e.small&&(0,o.iv)(["display:block;margin:0 7px;transition:opacity 0.3s;background:transparent;&:hover{opacity:0.9;}"]))),C=o.ZP.span.withConfig({displayName:"AuthFormsstyled__FormSocialIcon",componentId:"sc-gf6vh7-15"})(["display:flex;align-items:center;justify-content:center;width:40px;height:40px;@media ","{width:45px;height:45px;}"],r.Z.mobileOrTablet),k=o.ZP.input.withConfig({displayName:"AuthFormsstyled__FormCheckBoxInput",componentId:"sc-gf6vh7-16"})(["position:absolute;left:-9999px;&:not(:checked) + label::before,&:checked + label::before{position:absolute;top:0;left:0;display:block;width:18px;height:18px;cursor:pointer;content:'';background-color:#000;border:1px solid #505050;transition:border-color 0.3s;border-radius:4px;}&:not(:checked) + label::after{opacity:0;}&:checked + label::after{position:absolute;top:0;left:0;display:block;width:8px;height:8px;margin:5px;cursor:pointer;content:'';background-color:#4990e2;opacity:1;transition:opacity 0.1s;}&:focus + label::before{border-color:#4990e2;}"]),S=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormCheckBox",componentId:"sc-gf6vh7-17"})(["@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){flex:1;}",";"],(e=>!!e.error&&(0,o.iv)(["& ",":not(:checked) + label::before{border:1px solid rgba(228,73,73,0.84);animation:bounce 1s linear 3;}"],k))),A=o.ZP.label.withConfig({displayName:"AuthFormsstyled__FormCheckBoxLabel",componentId:"sc-gf6vh7-18"})(["position:relative;display:inline-block;padding-left:25px;cursor:pointer;font-size:15px;font-weight:600;font-style:normal;font-stretch:normal;line-height:20px;letter-spacing:normal;color:#fff;opacity:0.7;& a{color:#3897ff;text-decoration:none;outline:none;font-size:15px;line-height:normal;&:hover,&:focus{text-decoration:none;}}"]),O=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormStep",componentId:"sc-gf6vh7-19"})(["display:flex;flex-direction:column;flex-grow:1;position:relative;",""],(e=>e.hidden&&(0,o.iv)(["display:none;"]))),P=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormField",componentId:"sc-gf6vh7-20"})(["position:relative;text-align:left;"]),Z=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormDescription",componentId:"sc-gf6vh7-21"})(["font-size:20px;font-weight:600;line-height:25px;color:#fff;text-align:center;padding:50px 35px 40px;"]),F=o.ZP.div.withConfig({displayName:"AuthFormsstyled__ReceiveDescription",componentId:"sc-gf6vh7-22"})(["padding:15px 10px;margin:15px 0 30px;border-radius:8px;border:solid 1px rgba(255,255,255,0.11);background-color:#191b1f;font-size:16px;font-weight:500;line-height:20px;text-align:center;color:rgba(255,255,255,0.78);"]),M=o.ZP.div.withConfig({displayName:"AuthFormsstyled__ContentRestore",componentId:"sc-gf6vh7-23"})(["font-size:20px;font-weight:600;line-height:25px;letter-spacing:normal;text-align:center;color:var(--bg-white);padding:0 20px 25px 20px;"]),I=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormStepBtnGroup",componentId:"sc-gf6vh7-24"})(["display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:35px;@media ","{margin-top:35px;}@media ","{margin-top:30px;}",""],r.Z.desktop,r.Z.mobileOrTablet,(e=>e.restoreBtn&&(0,o.iv)(["justify-content:flex-end;"]))),_=o.ZP.h1.withConfig({displayName:"AuthFormsstyled__FormTitle",componentId:"sc-gf6vh7-25"})(["font-size:30px;font-weight:600;line-height:35px;text-align:center;color:#fff;text-transform:none;@media ","{margin-bottom:10px;}@media ","{font-size:20px;line-height:1.25rem;margin-bottom:5px;text-align:left;}"],r.Z.desktop,r.Z.mobileOrTablet),j=(0,o.ZP)(a.Z).withConfig({displayName:"AuthFormsstyled__FormSubtitle",componentId:"sc-gf6vh7-26"})(["font-weight:400;font-style:normal;font-stretch:normal;line-height:20px;letter-spacing:normal;text-align:center;color:rgba(255,255,255,0.7);@media ","{font-size:18px;margin-bottom:35px;}@media ","{font-size:16px;margin-bottom:30px;text-align:left;color:rgba(255,255,255,0.7);}& span{color:#fff;}"],r.Z.desktop,r.Z.mobileOrTablet),D=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormUserPreview",componentId:"sc-gf6vh7-27"})(["display:flex;margin-bottom:20px;"]),N=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormControls",componentId:"sc-gf6vh7-28"})(["display:flex;flex-direction:column;flex-grow:1;"]),R=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormTerms",componentId:"sc-gf6vh7-29"})(["margin-top:20px;"]),B=(o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormRemember",componentId:"sc-gf6vh7-30"})(["margin:auto auto 0;"]),o.ZP.button.withConfig({displayName:"AuthFormsstyled__FormPrevStepButton",componentId:"sc-gf6vh7-31"})(["margin-right:10px;"," ",""],(e=>e.linkView&&(0,o.iv)(["font-weight:600;line-height:20px;color:#3897ff;border:none;background:transparent;cursor:pointer;@media ","{font-size:18px;}@media ","{font-size:16px;}@media ","{font-size:16px;}"],r.Z.desktop,r.Z.tablet,r.Z.mobile)),(e=>!e.linkView&&(0,o.iv)(["font-weight:600;line-height:20px;color:#fff;opacity:0.5;background:transparent;border:none;cursor:pointer;transition:opacity 0.5s;@media ","{font-size:18px;}@media ","{font-size:16px;}@media ","{font-size:16px;}&:hover{opacity:1;}"],r.Z.desktop,r.Z.tablet,r.Z.mobile)))),L=o.ZP.button.withConfig({displayName:"AuthFormsstyled__FormCloseButton",componentId:"sc-gf6vh7-32"})(["position:absolute;top:10px;right:10px;z-index:1;display:flex;align-items:center;justify-content:center;width:30px;height:30px;text-align:center;cursor:pointer;background-color:transparent;border:none;border-radius:4px;outline:0;svg{display:block;margin:auto;opacity:1;transition:opacity 0.3s;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){margin:0;}}"]),z=o.ZP.div.withConfig({displayName:"AuthFormsstyled__FormWrapper",componentId:"sc-gf6vh7-33"})(["border-radius:4px;background-color:#2b2c30;position:relative;@media ","{width:500px;box-shadow:0 40px 60px -15px rgba(0,0,0,0.4);}@media ","{width:100%;height:100%;background-color:",";}"],r.Z.desktop,r.Z.mobileOrTablet,(e=>e.theme.color.semidark)),T=o.ZP.button.withConfig({displayName:"AuthFormsstyled__FormUserButton",componentId:"sc-gf6vh7-34"})(["display:flex;align-items:center;cursor:pointer;padding:10px 15px;background:transparent;border-radius:10px;margin:0 auto;border:1px solid #606060;font-size:16px;font-weight:600;line-height:20px;color:#fff;position:relative;&::before{content:'';display:block;width:25px;height:25px;position:absolute;top:50%;left:-30px;transform:translate(0,-50%);background-size:cover;opacity:0.5;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyNSAyNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggICAgICBkPSJNNy4xMjkxIDEzLjAyNTZsNC40NzM0IDQuNzU2N2MuMjczLjI5MDMuNzE1Ni4yOTAzLjk4ODUgMCAuMjczLS4yOTAyLjI3My0uNzYwOCAwLTEuMDUxbC0zLjI4MDEtMy40ODhoOC45OTAxYy4zODYgMCAuNjk5LS4zMzI5LjY5OS0uNzQzM3MtLjMxMy0uNzQzMi0uNjk5LS43NDMySDkuMzExbDMuMjgtMy40ODhjLjI3My0uMjkwMy4yNzMtLjc2MDggMC0xLjA1MTEtLjEzNjQtLjE0NS0uMzE1NC0uMjE3Ny0uNDk0Mi0uMjE3Ny0uMTc5IDAtLjM1NzguMDcyNy0uNDk0My4yMTc3bC00LjQ3MzMgNC43NTY3Yy0uMjczLjI5MDMtLjI3My43NjA5IDAgMS4wNTEyeiIgICAgICBmaWxsPSIjZmZmIiAgICAgIGZpbGxSdWxlPSJldmVub2RkIiAgICAvPiAgPC9zdmc+);}&:hover{&::before{opacity:1;}}"]),U=(0,o.ZP)(i.ZP).withConfig({displayName:"AuthFormsstyled__WrapperButton",componentId:"sc-gf6vh7-35"})(["& span{line-height:40px !important;}"]),W=(0,o.ZP)(i.ZP).withConfig({displayName:"AuthFormsstyled__SendButton",componentId:"sc-gf6vh7-36"})(["flex-shrink:0;"])},35692:function(e,t,n){n.d(t,{aF:function(){return z},ZP:function(){return G}});var o=n(67294),r=n(28216),i=n(54733),a=n(99950),s=n(5758),c=n(10649),l=n(87642),d=n(89546),u=n(73606),h=n(68598),p=n(14816),m=n(78589),f=n(20094),g=n(93422),b=n(13854),v=n(87804),w=n(96268);const y=e=>o.createElement(w.Th,Object.assign({onClick:e.onClick,tabIndex:e.tabIndex,type:"button"},v.A("auth.user.info")),e.children);y.defaultProps={tabIndex:-1};var x=y,E=n(35033),C=n(61591),k=e=>o.createElement(w.A3,Object.assign({type:"button",tabIndex:-1,onClick:e.onClick},v.A("auth.forgot.password")),e.children),S=n(22504),A=e=>{const[t,n]=o.useState(60);return o.useEffect((()=>{if(e.isActive){if(0===t)return;const e=setTimeout((()=>{n((e=>e-1))}),1e3);return()=>clearTimeout(e)}}),[t,e.isActive]),S.zh.GOOGLE===e.method?null:o.createElement(o.Fragment,null,0===t?o.createElement(w.yb,Object.assign({onClick:()=>{e.resentCode(),n(60)}},v.A("profile.email.popup.code.receiveButton")),e.receiveCode):o.createElement(w.ID,null,e.timeLeft&&e.timeLeft.replace("${timeout}",String(t))))},O=n(98239);class P extends o.Component{constructor(){super(...arguments),this.node=null,this.container=o.createRef(),this.initCaptcha=()=>{this.container.current||console.error("[Recaptcha] Container not found!"),this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node=document.createElement("div"),this.container.current&&this.container.current.appendChild(this.node),window.grecaptcha.render(this.node,{sitekey:"6LdEtKUUAAAAAKT1UzKwuNpngNjaVL2FQwj88K1U",callback:e=>{this.props.onChange(e)},"expired-callback":()=>{this.props.onChange()},theme:"dark",size:"invisible"}),window.grecaptcha.ready((()=>{window.grecaptcha.execute()}))}}componentDidMount(){(0,O.A)(this.initCaptcha)}UNSAFE_componentWillReceiveProps(e){this.props.requestId!==e.requestId&&this.initCaptcha()}render(){return o.createElement("div",{ref:this.container,style:{width:"15.25rem",margin:"0.5rem auto"}})}}var Z=P,F=e=>o.createElement(w.Mm,null,e.children),M=n(11858),I=e=>{let{label:t,value:n,placeholder:r,onChange:i,error:a,autoFocus:s,tabIndex:c,unlockErrorMessages:l,inputRef:d,onBlur:u}=e;const h=o.useCallback((e=>{u&&u(e)}),[u]);return o.createElement(M.Z,null,t?o.createElement(w.lX,{htmlFor:"code"},t):null,o.createElement(w.yt,Object.assign({type:"text",name:"code",autoComplete:"code",id:"code",tabIndex:c,value:n,autoFocus:s,placeholder:r,onChange:i,onBlur:h,ref:d},v.A("login.code.section"))),o.createElement(w.gi,Object.assign({},v.A("login.code.section.error")),l?a:null))},_=e=>{const t=o.useRef();return o.useEffect((()=>{e.active&&t.current&&t.current.focus()}),[e.active]),o.createElement(w.pl,{hidden:!e.active},e.topCenterArea&&e.topCenterArea(),o.createElement(w.Wi,null,o.createElement(I,{inputRef:t,placeholder:e.placeholder,label:e.label,onChange:e.onChange,value:e.value,onBlur:e.onBlur,unlockErrorMessages:e.unlockErrorMessages,error:e.error,autoFocus:!0}),o.createElement(w.Dr,null,o.createElement(w.VM,{restoreBtn:S.zh.GOOGLE===e.twoFactorMethod},e.contentLeftArea&&e.contentLeftArea(),e.contentRightArea&&e.contentRightArea()))))},j=n(58092),D=n(87098),N=n(51973);const R=e=>"wrong_auth_data"===e?"common":e;var B=n(25221),L=n(17867);const z="DATADOME",T={email:[c.jQ.required,c.jQ.email],password:[c.jQ.required,c.jQ.password],code:[c.jQ.required,c.jQ.code]};var U;!function(e){e.EMAIL="login.email",e.PASSWORD="login.password",e.CODE="login.code"}(U||(U={}));const W=(0,r.connect)(null,{addUiNotification:a.c,login:e=>{let{email:t,password:n,recaptcha:o,authData:r,twoFactorCode:i,twoFactorMethod:a}=e;return(e,s)=>{return c=void 0,l=void 0,u=function*(){try{const e=yield S.x4({email:t,password:n,authData:r,recaptcha:o,twoFactorCode:i,twoFactorMethod:a});return console.log("[Login] Response",e.token),e.needTwoFactorCode&&e.twoFactorMethod?{twoFactorMethod:e.twoFactorMethod}:(yield(0,j.refreshEdgeData)(),(0,N.Z)((0,D.userSpecificSelector)(s())),(0,B.EG)(L.hi.LogIn),{success:!0,bindResult:e.bindResult})}catch(e){console.error(e),console.error("Login error"),e.errors&&e.errors.length&&(e.errors=e.errors.map((e=>Object.assign(Object.assign({},e),{property:R(e.property)}))));const t=function(e){const t={message:"",data:{}};return e&&Array.isArray(e.errors)&&e.errors.forEach((e=>{const n=R(e.property);t[n]=e.message})),e&&Array.isArray(e)&&e.forEach((e=>{const n=R(e.property);t[n]=e.message,e.data&&(t.data=JSON.parse(e.data))})),t}(e);if(t.data&&Object.keys(t.data).length){const e=t.data.Email;if("string"==typeof e&&"string"==typeof t.data.AuthData)return{codeError:{email:e,message:t.message,authData:t.data.AuthData}}}return{error:e}}},new((d=void 0)||(d=Promise))((function(e,t){function n(e){try{r(u.next(e))}catch(e){t(e)}}function o(e){try{r(u.throw(e))}catch(e){t(e)}}function r(t){var r;t.done?e(t.value):(r=t.value,r instanceof d?r:new d((function(e){e(r)}))).then(n,o)}r((u=u.apply(c,l||[])).next())}));var c,l,d,u}}});class V extends o.Component{constructor(){super(...arguments),this.state={step:U.EMAIL,terms:!1,email:"",password:"",code:"",errors:{email:void 0,password:void 0},authData:"",serverError:null,submitButtonDisabled:!0,recaptcha:"",recaptchaRequestId:0,isPublic:!1,isNeedTwoFactor:!1,steps:{[U.EMAIL]:{isBlurred:!1},[U.PASSWORD]:{isBlurred:!1},[U.CODE]:{isBlurred:!1}}},this.validateEmail=e=>this.validate({email:e}).catch(i.ZT),this.validatePassword=e=>this.validate({password:e}).catch(i.ZT),this.validateCode=e=>this.validate({code:e}).catch(i.ZT),this.validateEmailStep=()=>{const{email:e}=this.state;if(this.state.errors.email)throw this.handleEmailBlur(),new Error(this.state.errors.email);const t=new Promise(((t,n)=>{this.props.checkEmailIsRegistered(e).then(t,(e=>{n({email:e.errors.map((e=>e.message)).join(" ")})}))}));return Promise.all([this.validate({email:e}),t]).then(null,(e=>{if(e.errors)throw new Error(e.errors.map((e=>e.message)).join(" "));throw e}))},this.validatePasswordStep=()=>this.validate({password:this.state.password}),this.validateCodeStep=()=>this.validate({code:this.state.code}),this.validateEmailDebounced=(0,i.Ds)(this.validateEmail,150),this.validatePasswordDebounced=(0,i.Ds)(this.validatePassword,150),this.validateCodeDebounced=(0,i.Ds)(this.validateCode,150),this.hiddenInputRef=o.createRef(),this.handleEmailChange=e=>{const t=e.target.value;this.setState({email:t},(()=>{this.validateEmailDebounced(t)}))},this.handlePasswordChange=e=>{const t=e.target.value;this.getServerErrorByProp().common&&this.setState({serverError:null}),this.setState({password:t},(()=>{this.validatePasswordDebounced(t)}))},this.handleCodeChange=e=>{const t=e.target.value;this.getServerErrorByProp().common&&this.setState({serverError:null}),this.setState({code:t},(()=>{this.validateCodeDebounced(t)}))},this.handleEmailBlur=()=>{this.stepSetBlurred(U.EMAIL)},this.handlePasswordBlur=()=>{this.stepSetBlurred(U.PASSWORD)},this.handleCodeBlur=()=>{this.stepSetBlurred(U.CODE)},this.handleSocialAuth=e=>{return t=this,n=void 0,r=function*(){const t=yield this.props.authenticateUsingSocialNetwork(e);return t.ok?this.props.onAfterSubmit():t.canceled?void 0:t.socialBindError?(this.setState({email:t.socialBindError.email,serverError:t.socialBindError.message,authData:t.socialBindError.authData,submitButtonDisabled:!1,step:U.PASSWORD}),void this.handlePasswordBlur()):void(t.errorMessage&&this.setState({serverError:t.errorMessage}))},new((o=void 0)||(o=Promise))((function(e,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,s)}c((r=r.apply(t,n||[])).next())}));var t,n,o,r},this.handleLogInSuccess=e=>{this.props.onAfterSubmit(),e&&this.props.addUiNotification({type:"info",message:this.props.content.successBind})},this.handleLogInFail=e=>{if("number"!=typeof e)this.setState({serverError:e});else{const t=429===e;t?this.setState({submitButtonDisabled:!1,recaptchaRequestId:t?Date.now():null,recaptcha:"",password:""}):this.setState({submitButtonDisabled:!1,password:""})}},this.handleRecaptcha=e=>{e&&this.setState({recaptcha:e,submitButtonDisabled:!1})},this.handleResentCode=()=>{const{email:e,password:t,authData:n}=this.state;this.props.login({email:e,password:t,authData:n}).then((e=>{e.error.errors.length&&this.props.addUiNotification({type:s.pn,message:e.error.errors[0].message})}))},this.handleSubmit=e=>{e.preventDefault();const{email:t,password:n,terms:o,recaptcha:r,authData:i,code:a,isNeedTwoFactor:s,twoFactorMethod:c}=this.state,{enableRecaptcha:l}=this.props;this.stepSetBlurred(U.PASSWORD),this.setState({submitButtonDisabled:!0});const d=this.state.submitButtonDisabled&&l,u=s?{email:t,password:n,terms:o,code:a,blockedByRecaptcha:d}:{email:t,password:n,terms:o,blockedByRecaptcha:d};this.validate(u).then((()=>{this.props.login({email:t,password:n,recaptcha:r,authData:i,twoFactorCode:a,twoFactorMethod:c}).then((e=>{if(!e.error||e.error.message!==z)return e.codeError?(this.setState({email:t,serverError:e.codeError.message,authData:e.codeError.authData,submitButtonDisabled:!1,step:U.PASSWORD}),void this.handlePasswordBlur()):e.error?this.handleLogInFail(e.error):void(e.twoFactorMethod?this.setState({isNeedTwoFactor:!!e.twoFactorMethod,twoFactorMethod:e.twoFactorMethod,step:U.CODE}):e.success&&(this.setState({isNeedTwoFactor:!1,twoFactorMethod:void 0,step:U.CODE}),this.handleLogInSuccess(e.bindResult)))}))}),(()=>{this.setState({submitButtonDisabled:!1})}))},this.handleRememberChange=()=>{const e=!this.state.isPublic;this.setState((()=>({isPublic:e})))},this.handleRestorePassword=e=>()=>{this.props.restorePassword(this.state.email).then(e).catch((e=>{this.setState({serverError:e.errors[0].message})}))},this.onFormSubmit=e=>{this.state.step===U.PASSWORD||this.state.step===U.CODE?this.handleSubmit(e):this.nextStep(e)},this.onKeyPress=e=>{13!==e.which&&13!==e.keyCode&&"Enter"!==e.key||(this.state.step===U.PASSWORD||this.state.step===U.CODE?this.handleSubmit(e):this.nextStep(e))},this.getStep=e=>{const{content:t}=this.props,{formSteps:n}=t,o=n.find((t=>t.step===e&&"default"===t.theme)),r=n.find((t=>t.step===e))||o||{subtitle:` localization for ${e}.subtitle not found`,title:`locatization for ${e}.title not found`},i={[U.EMAIL]:{validator:this.validateEmailStep,content:this.renderEmailStepContent},[U.PASSWORD]:{validator:this.validatePasswordStep,content:this.renderPasswordStepContent},[U.CODE]:{validator:this.validateCodeStep,content:this.renderCodeStepContent}};return Object.assign(Object.assign({},i[e]),r)},this.nextStep=e=>{e.preventDefault(),this.getStep(this.state.step).validator().then((()=>{this.hiddenInputRef.current&&this.hiddenInputRef.current.focus(),this.state.step===U.EMAIL&&this.setState({step:U.PASSWORD})}),(e=>{const t={submitButtonDisabled:!0,errors:Object.assign(Object.assign({},this.state.errors),e),steps:Object.assign(Object.assign({},this.state.steps),{[this.state.step]:Object.assign(Object.assign({},this.state.steps[this.state.step]),{isBlurred:!0})})};this.setState(t)}))},this.prevStep=()=>{this.state.step===U.PASSWORD&&this.setState({step:U.EMAIL,serverError:null})},this.renderStepHeader=()=>{const{title:e,subtitle:t}=this.getStep(this.state.step);return o.createElement(p.Z,{title:e,subtitle:t})},this.getServerErrorByProp=()=>{const{serverError:e}=this.state;return(0,l.b)(e)},this.renderEmailStepContent=()=>{const{content:e}=this.props,{label:t,placeholder:n}=this.getStep(U.EMAIL),r=this.getServerErrorByProp();return o.createElement(m.Z,Object.assign({currentStep:this.state.step,onChange:this.handleEmailChange,onBlur:this.handleEmailBlur,label:t,placeholder:n,value:this.state.email,active:"login.email"===this.state.step,unlockErrorMessages:this.state.steps[U.EMAIL].isBlurred,error:r.email||this.state.errors.email},v.A("login.step.email"),{contentLeftArea:()=>o.createElement(d.Z.Consumer,null,(t=>{let{openRegisterModal:n}=t;return o.createElement(b.Z,{linkView:!0,onClick:n},e.goToSignUpLabel)})),contentRightArea:()=>o.createElement(g.Z,Object.assign({onClick:this.nextStep},v.A("login.next.step")),e.buttonNextStepLabel)}))},this.renderPasswordStepContent=()=>{const{content:e}=this.props,{label:t,placeholder:n}=this.getStep(U.PASSWORD),r=this.getServerErrorByProp();return o.createElement(f.Z,{currentStep:this.state.step,value:this.state.password,label:t,placeholder:n,onChange:this.handlePasswordChange,onBlur:this.handlePasswordBlur,active:"login.password"===this.state.step,unlockErrorMessages:this.state.steps[U.PASSWORD].isBlurred,error:r.common||r.password||this.state.errors.password,topCenterArea:()=>o.createElement(x,Object.assign({},v.A("login.prev.step"),{onClick:this.prevStep}),this.state.email),contentLeftArea:()=>o.createElement(d.Z.Consumer,null,(t=>{let{openRestoreSent:n}=t;return o.createElement(k,Object.assign({onClick:this.handleRestorePassword(n)},v.A("login.forgot.password")),e.restorePasswordActionLabel)})),contentRightArea:()=>o.createElement(E.Z,Object.assign({disabled:this.state.submitButtonDisabled},v.A("login.submit.button")),e.buttonSubmitLogInLabel),recaptchaControl:()=>this.props.enableRecaptcha&&this.state.recaptchaRequestId?o.createElement(Z,{requestId:this.state.recaptchaRequestId,onChange:this.handleRecaptcha}):null})},this.renderCodeStepContent=()=>{const{content:e}=this.props,{label:t,placeholder:n}=this.getStep(U.CODE),r=this.getServerErrorByProp();return o.createElement(_,{currentStep:this.state.step,onChange:this.handleCodeChange,onBlur:this.handleCodeBlur,value:this.state.code,placeholder:n,label:t,active:"login.code"===this.state.step,unlockErrorMessages:this.state.steps[U.CODE].isBlurred,error:r.code||this.state.errors.code||r.common,twoFactorMethod:this.state.twoFactorMethod,topCenterArea:()=>o.createElement(F,null,S.zh.EMAIL===this.state.twoFactorMethod?e.receiveMessageDescription:e.receiveMessageAuthGoogleDescription),contentLeftArea:()=>o.createElement(A,{receiveCode:e.receiveMessageCode,timeLeft:e.receiveMessageTimeLeft,isActive:"login.code"===this.state.step,method:this.state.twoFactorMethod,resentCode:this.handleResentCode}),contentRightArea:()=>o.createElement(E.Z,Object.assign({disabled:!this.state.code},v.A("login.submit.button")),e.buttonSubmitLogInLabel)})}}componentDidMount(){this.initValidate(this.props),this.setAutobindData(this.props)}UNSAFE_componentWillReceiveProps(e){this.initValidate(e),this.setAutobindData(e)}componentWillUnmount(){this.validateEmailDebounced.cancel(),this.validatePasswordDebounced.cancel(),this.validateCodeDebounced.cancel()}setAutobindData(e){const{initialError:t}=e;t&&(this.setState({email:t.email,serverError:t.message,authData:t.authData,submitButtonDisabled:!1,step:U.PASSWORD}),this.handlePasswordBlur())}validate(e){const t={errors:(0,i.CE)(this.state.errors,Object.keys(e))};if(this.setState(t),e.blockedByRecaptcha)throw new Error("blockedByRecaptcha");return this.validator?this.validator(e).then((()=>{(0,i.xb)(this.state.errors)&&this.setState({submitButtonDisabled:!1})}),(e=>{const t=Object.assign(Object.assign({},this.state.errors),e);throw this.setState((()=>({errors:t}))),t})):Promise.reject(new Error("Validator is not initialized!"))}initValidate(e){const t={required:e.content.errorMessageRequired,email:e.content.errorMessageEmail,password:e.content.errorMessagePassword,code:e.content.errorMessageCode};this.validator=(0,c.Te)(T,t)}stepSetBlurred(e){const t=this.state,n={steps:Object.assign(Object.assign({},t.steps),{[e]:Object.assign(Object.assign({},t.steps[e]),{isBlurred:!0})})};this.setState(n)}render(){const e=this.getServerErrorByProp(),{content:t}=this.props;return o.createElement(h.Z,null,o.createElement(u.Z,Object.assign({commonError:this.state.step!==U.PASSWORD&&this.state.step!==U.CODE?e.common:"",formProps:{noValidate:!0},onSubmit:this.onFormSubmit,onKeyPress:this.onKeyPress,hiddenInputRefHandler:this.hiddenInputRef,socialControl:this.state.step===U.EMAIL?o.createElement(C.Z,{label:t.socialLogInLabel,networks:this.props.content.socialNetworks,onAuthRequest:this.handleSocialAuth}):null},v.A("login.form")),o.createElement(o.Fragment,null,this.renderStepHeader(),this.getStep("login.email").content(),this.getStep("login.password").content(),this.getStep("login.code").content())))}}var G=W(V)},82711:function(e,t,n){var o=n(67294),r=n(87804),i=n(11858),a=n(96268);t.Z=e=>{let{label:t,placeholder:n,value:s,onChange:c,error:l,autoFocus:d,unlockErrorMessages:u,inputRef:h,onBlur:p,children:m}=e;const f=o.useCallback((e=>{p&&p(e)}),[p]);return o.createElement(i.Z,null,t&&o.createElement(a.lX,{htmlFor:"email"},t),o.createElement(a.yt,Object.assign({type:"email",name:"email",id:"email",autoComplete:"email",autoFocus:d,placeholder:n,onChange:c,value:s,onBlur:f,ref:h},r.A("login.email.section"))),m,o.createElement(a.gi,Object.assign({},r.A("login.email.section.error")),u?l:null))}},73606:function(e,t,n){n.d(t,{Z:function(){return d}});var o=n(67294),r=n(54733),i=n(88169);const a=n(10586).ZP.div.withConfig({displayName:"CommonErrorstyled__Wrapper",componentId:"sc-3iobcc-0"})(["background:#fae9a3;text-align:center;color:#000;margin-bottom:0.5rem;padding:12px;border-radius:4px;line-height:1rem;font-size:15px;font-weight:600;"]);var s=e=>{let{error:t}=e,n="";return n="string"==typeof t?t:(0,r.U2)(t,"errors[0].message","Unknown Error"),o.createElement(a,null,o.createElement(i.Z,{html:n,tagName:"div"}))},c=n(96268);const l=e=>o.createElement(c.l0,Object.assign({onSubmit:e.onSubmit,onKeyPress:e.onKeyPress},e.formProps),e.hiddenInputRefHandler&&o.createElement(c.Xp,{ref:e.hiddenInputRefHandler}),o.createElement(c.fb,null,e.commonError&&o.createElement(s,{error:e.commonError}),e.children,e.socialControl&&o.createElement(c.QF,null,e.socialControl)),o.createElement(c.Ow,{type:"submit"}));l.defaultProps={commonError:"",socialControl:null};var d=l},11858:function(e,t,n){var o=n(67294);t.Z=e=>o.createElement("div",null,e.children)},93422:function(e,t,n){var o=n(67294),r=n(87804),i=n(96268);t.Z=e=>o.createElement(i.CJ,Object.assign({onClick:e.onClick,type:"button"},r.A("auth.next.step")),e.children)},13854:function(e,t,n){var o=n(67294),r=n(87804),i=n(96268);const a=e=>o.createElement(o.Fragment,null,o.createElement(i.CY,Object.assign({linkView:e.linkView,onClick:e.onClick,tabIndex:e.tabIndex,type:"button"},r.A("auth.switch.form")),e.children));a.defaultProps={tabIndex:-1},t.Z=a},35033:function(e,t,n){var o=n(67294),r=n(87804),i=n(96268);const a=e=>o.createElement(i.c7,Object.assign({type:"submit",disabled:e.disabled,tabIndex:e.tabIndex},r.A("auth.send.button")),e.children);a.defaultProps={disabled:!1,tabIndex:0},t.Z=a},61591:function(e,t,n){var o=n(67294),r=n(99484),i=n(30820),a=n(58267),s=n(96268),c=n(1265),l=n(87804);const d={fb:o.createElement(r.Z,null),gp:o.createElement(i.Z,null),twitch:o.createElement(a.Z,null)};t.Z=e=>{let{label:t="",networks:n="",onAuthRequest:r}=e;if((0,c.w1)())return null;const i=n?n.replace(/ /g,"").split(","):[];return o.createElement(s.QF,null,t&&o.createElement(s.eH,null,t),o.createElement(s.rf,{small:!0},i.map((e=>o.createElement(s.w6,Object.assign({key:e,socialType:e,type:"button",onClick:()=>r(e),small:!0},l.A("auth.social.section",{title:e})),o.createElement(s.xq,null,d[e]))))))}},78589:function(e,t,n){var o=n(67294),r=n(82711),i=n(96268);t.Z=e=>{const t=o.useRef();return o.useEffect((()=>{e.active&&t.current&&t.current.focus()}),[e.active]),o.createElement(i.pl,{hidden:!e.active},o.createElement(i.Wi,null,o.createElement(r.Z,{inputRef:t,label:e.label,placeholder:e.placeholder,onChange:e.onChange,value:e.value,onBlur:e.onBlur,unlockErrorMessages:e.unlockErrorMessages,error:e.error,autoFocus:!0}),e.contentCenterArea&&o.createElement(i.fX,null,e.contentCenterArea()),o.createElement(i.VM,null,e.contentLeftArea&&e.contentLeftArea(),e.contentRightArea&&e.contentRightArea())))}},14816:function(e,t,n){var o=n(67294),r=n(54733),i=n(96268);t.Z=e=>{const t=e.subtitle&&e.username?e.subtitle.replace("${username}",`${(0,r.$G)(e.username,{length:25})}`):e.subtitle;return o.createElement("div",null,o.createElement(i.vw,null,e.title),o.createElement(i.hG,{html:t}))}},20094:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(67294),r=n(87804),i=n(11858),a=n(96268),s=e=>{let{label:t,value:n,placeholder:s,onChange:c,error:l,autoFocus:d,tabIndex:u,unlockErrorMessages:h,inputRef:p,onBlur:m}=e;const f=o.useCallback((e=>{m&&m(e)}),[m]);return o.createElement(i.Z,null,t?o.createElement(a.lX,{htmlFor:"password"},t):null,o.createElement(a.yt,Object.assign({type:"password",name:"password",id:"password",autoComplete:"password",tabIndex:u,value:n,autoFocus:d,placeholder:s,onChange:c,onBlur:f,ref:p},r.A("login.password.section"))),o.createElement(a.gi,Object.assign({},r.A("login.password.section.error")),h?l:null))},c=e=>{const t=o.useRef();return o.useEffect((()=>{e.active&&t.current&&t.current.focus()}),[e.active]),o.createElement(a.pl,{hidden:!e.active},e.topCenterArea&&o.createElement(a.nJ,null,e.topCenterArea()),o.createElement(a.Wi,null,o.createElement(s,{inputRef:t,value:e.value,label:e.label,placeholder:e.placeholder,onChange:e.onChange,onBlur:e.onBlur,unlockErrorMessages:e.unlockErrorMessages,error:e.error,autoFocus:!0})),o.createElement(a.Dr,null,o.createElement(a.VM,null,e.contentLeftArea&&o.createElement("div",null,e.contentLeftArea()),e.contentRightArea&&o.createElement("div",null,e.contentRightArea())),e.recaptchaControl&&o.createElement("div",null,e.recaptchaControl())))}},68598:function(e,t,n){var o=n(67294),r=n(87804),i=n(15096),a=n(89546),s=n(96268);t.Z=e=>{const t=o.useContext(a.Z);return o.createElement(s.n5,null,o.createElement(s.sh,Object.assign({type:"button",onClick:e.isRestore?t.openLogInForm:t.handleModalClose},r.A("auth.close")),o.createElement(i.vl,null)),e.children)}},22504:function(e,t,n){n.d(t,{BF:function(){return d},Cp:function(){return w},E6:function(){return y},E_:function(){return h},IU:function(){return c},Kb:function(){return E},Lk:function(){return u},Uk:function(){return b},Z3:function(){return g},bp:function(){return m},ds:function(){return v},gS:function(){return p},iW:function(){return x},jd:function(){return C},k9:function(){return f},ni:function(){return l},x4:function(){return s},zh:function(){return o}});var o,r=n(71745),i=n(72703),a=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))};!function(e){e[e.GOOGLE=1]="GOOGLE",e[e.EMAIL=2]="EMAIL"}(o||(o={}));const s=e=>{let{email:t,password:n,authData:o,recaptcha:s,twoFactorCode:c,twoFactorMethod:l}=e;return a(void 0,void 0,void 0,(function*(){const e={email:t,password:n,type:"portal"};return s&&(e["g-recaptcha-response"]=s),o&&(e.socialAuthData=o),l&&(e.twoFactorMethod=l),c&&(e.twoFactorCode=c),(0,r.Z)("formauth/signin/",{method:"POST",data:yield(0,i._)(e)})}))},c=e=>{let{username:t,email:n,password:o,recaptcha:s}=e;return a(void 0,void 0,void 0,(function*(){const e={firstName:t,email:n,password:o,type:"portal",clientData:null};return s&&(e["g-recaptcha-response"]=s),(0,r.Z)("formauth/signup/",{method:"POST",data:yield(0,i._)(e)})}))},l=()=>(0,r.Z)("session/close/",{method:"POST"}),d=()=>(0,r.Z)("session/check/",{method:"POST"}),u=()=>(0,r.Z)("user/me/",{method:"GET"}),h=()=>(0,r.Z)("v2/user/me",{method:"GET"}),p=e=>{let{firstName:t,about:n,dateOfBirth:o,gender:i}=e;return(0,r.Z)("user/me/",{method:"PUT",data:{firstName:t,about:n,dateOfBirth:o,gender:i}})},m=e=>{let{email:t}=e;return(0,r.Z)("formauth/checkdata/notexists/",{method:"POST",data:{email:t}})},f=e=>(0,r.Z)("formauth/checkdata/",{method:"POST",data:{email:e}}),g=e=>{let{password:t}=e;return(0,r.Z)("v2/user/me/email/change/send",{method:"PUT",data:{password:t}})},b=e=>a(void 0,void 0,void 0,(function*(){return(0,r.Z)("v2/user/me/email",{method:"POST",data:yield(0,i._)({newEmail:e.email,password:e.password,code:e.code})})})),v=()=>(0,r.Z)("user/me/email/approve",{method:"POST"}),w=e=>a(void 0,void 0,void 0,(function*(){return(0,r.Z)("v2/user/me/password",{method:"PUT",data:yield(0,i._)(e)})})),y=e=>a(void 0,void 0,void 0,(function*(){return(0,r.Z)("v2/user/me/password",{method:"PUT",data:yield(0,i._)(e)})})),x=e=>{let{email:t}=e;return(0,r.Z)("formauth/restorepassword/",{method:"POST",data:{email:t}})},E=()=>(0,r.Z)("two-step/hotp/me/resend",{method:"POST"}),C=e=>{let{deletedUserName:t}=e;return(e=>{let{deletedUserName:t}=e;return(0,r.Z)("user/me/deactivate",{method:"POST",data:{deletedUserName:t}})})({deletedUserName:t}).then((()=>l()))}},99950:function(e,t,n){n.d(t,{c:function(){return r}});var o=n(5758);const r=e=>{let{type:t,message:n}=e;return e=>{return r=void 0,i=void 0,s=function*(){const r=Date.now(),i={signal:!0,id:r,createdDate:r,type:t,message:n};return o.N4&&setTimeout((()=>{var t;e((t=r,{type:o.Zw,payload:t}))}),o.N4),e({type:o.PA,payload:[i]})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{c(s.next(e))}catch(e){t(e)}}function o(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(n,o)}c((s=s.apply(r,i||[])).next())}));var r,i,a,s}}},5758:function(e,t,n){n.d(t,{H_:function(){return u},LI:function(){return g},LL:function(){return m},MR:function(){return h},N4:function(){return c},Of:function(){return f},P6:function(){return l},PA:function(){return i},SR:function(){return d},Zg:function(){return r},Zw:function(){return a},ci:function(){return s},ik:function(){return o},pn:function(){return p}});const o="notification/read",r="notification/hide",i="notification/update",a="notification/remove",s="notification/count",c=8e3,l=20,d=10,u="info",h="success",p="error",m=210,f=[101,102],g={unreadCount:0,list:[]}},25221:function(e,t,n){n.d(t,{EG:function(){return r},aJ:function(){return i},m5:function(){return a}});var o=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))};const r=(e,t)=>o(void 0,void 0,void 0,(function*(){(yield n.e(2423).then(n.bind(n,82423))).sendCollectorAccountEvent(e,t)})),i=e=>o(void 0,void 0,void 0,(function*(){return(yield n.e(2423).then(n.bind(n,82423))).getSocialAccountParamFromString(e)})),a=e=>o(void 0,void 0,void 0,(function*(){(yield n.e(2423).then(n.bind(n,82423))).setLocalCollectorParams(e)}))},17867:function(e,t,n){var o,r,i;n.d(t,{hi:function(){return o},s0:function(){return r}}),function(e){e[e.Unknown=0]="Unknown",e[e.CreateAccount=1]="CreateAccount",e[e.LogIn=2]="LogIn",e[e.LogOut=3]="LogOut",e[e.SwitchAccount=4]="SwitchAccount",e[e.RemoveAccount=5]="RemoveAccount"}(o||(o={})),function(e){e[e.Facebook=1]="Facebook",e[e.Google=2]="Google",e[e.Twitch=3]="Twitch",e[e.Microsoft=4]="Microsoft"}(r||(r={})),function(e){e[e.DownloadOpenReg=0]="DownloadOpenReg",e[e.DownloadRegOpen=1]="DownloadRegOpen",e[e.RegDownloadOpen=2]="RegDownloadOpen",e[e.RegLoginDownloadOpen=3]="RegLoginDownloadOpen",e[e.RegDownloadRegOpen=4]="RegDownloadRegOpen"}(i||(i={}))},29275:function(e,t,n){n.d(t,{o8:function(){return c},kF:function(){return s},OU:function(){return a}});const o="data-analytics-id",r="data-analytics-payload",i=[o,r];function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};console.info("[newPlAnalytics] raise",e,t);const n=Object.assign({event:`PP.${e}`},t);window.dataLayer&&window.dataLayer.push(n),window.newDataLayer=[n]}function s(e){return Object.keys(i).filter((t=>Object.prototype.hasOwnProperty.call(e,t))).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{})}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{[o]:e,[r]:JSON.stringify(t)}}},8593:function(e,t,n){n.d(t,{A:function(){return c},k:function(){return s}});const o="data-analytics-id",r="data-analytics-position",i=[o,r],a={"menu.dropdown.button.logout.cancel":"profile_logout_cancel","menu.dropdown.button.logout.ok":"profile_logout_ok","header.profile.link":"auth_player_user_profile","header.profile.lastPlayedGame":"header_profile_dropdown_last_player_game","header.dropdown.profile.link":"dropdown_menu_player_user_profile","menu.dropdown.button.logout":"profile_logout",notification:"header_menu_notifications_notification_click","home.games.desktop.download":"home_games_desktop_download","desktop.app.downloadButton":"desktop_page_app_download_link"};function s(e){return i.filter((t=>Object.prototype.hasOwnProperty.call(e,t))).reduce(((t,n)=>Object.assign(Object.assign({},t),{[n]:e[n]})),{})}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=a[e];if(!n)return{};const i={[o]:n};return t.position&&(i[r]=t.position),i}},51973:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(77744);function r(e){var t,r,i,a,s;return r=this,i=void 0,s=function*(){(0,o.n)()&&(yield n.e(9938).then(n.bind(n,53416))).raise("userSpecificLoadedUsingAuthorization",{userId:(null===(t=e.id)||void 0===t?void 0:t.toString())||""})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{c(s.next(e))}catch(e){t(e)}}function o(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(n,o)}c((s=s.apply(r,i||[])).next())}))}},13633:function(e,t,n){var o=n(74268),r=n(35692),i=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))};function a(e){return`${(0,o.SV)()}${e}`}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{headers:{}};const t=Object.assign(Object.assign({method:"GET",credentials:"omit"},e),{headers:Object.assign(Object.assign({},(0,o.wU)()),e.headers)});return e.data&&(t.body=JSON.stringify(e.data),t.headers&&(t.headers["Content-Type"]="application/json")),t}const c=e=>e;function l(e,t){if("object"==typeof e){const n=Object.assign(Object.assign({},e),{message:e.message?e.message:t,requestFailInfo:t});throw console.error(n),n}const n=new Error(`${t} ${e}`);throw console.error(n),n}function d(e){return i(this,void 0,void 0,(function*(){const{status:t,statusText:n}=e;let a="";try{a=yield function(e){const t=e.headers.get("content-type");return t&&-1!==t.indexOf("application/json")?e.json():e.text()}(e)}catch(t){if("AbortError"===t.name)throw t;const n=yield e.text();throw new Error(`Response parsing error! Response: ${n}`)}const s=parseInt(`${t}`[0],10);if(2===s)return a;const c=`${t}: ${n}`;if(5===s)return l(a,c);if(401===t&&(yield function(){return i(this,void 0,void 0,(function*(){const e=(0,o.Sy)();if(e)try{yield e()}catch(e){console.error(e)}}))}()),403===t){const t=e.headers.get("x-datadome");if(t&&t.includes("protected"))throw new Error(r.aF)}return l(a,c)}))}t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch(t(n),e(s(o))).then(d)}}},72703:function(e,t,n){n.d(t,{_:function(){return o}});const o=e=>{return t=void 0,o=void 0,i=function*(){return(yield Promise.all([n.e(701),n.e(585)]).then(n.bind(n,41931))).default((e=>e))(e)},new((r=void 0)||(r=Promise))((function(e,n){function a(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}c((i=i.apply(t,o||[])).next())}));var t,o,r,i}},71745:function(e,t,n){var o=n(74268);const r=(0,n(13633).Z)((e=>Object.assign(Object.assign({},e),{headers:Object.assign(Object.assign(Object.assign({},(0,o.wU)()),(0,o.Av)()),{cookie:e.headers?e.headers.cookie:"",app_id:e.headers.app_id,theme_id:e.headers.theme_id}),credentials:"include"})),(function(e){return`${(0,o.kG)()}${e}`}));t.Z=r},59754:function(e,t,n){var o=n(67294),r=n(50308),i=n.n(r),a=n(8593),s=n(87804),c=n(32134),l=n(29275),d=n(22614),u=n(83627),h=n(58092),p=n(65514),m=n(28216);t.Z=(0,o.memo)((e=>{const t=(0,m.useSelector)(u.Bn),n=(0,p.T)(),r=o.useMemo((()=>Object.assign({className:"",isomorphic:!0,children:null,target:"",style:{}},e)),[e]),f=()=>{if(r.target)return r.target;const e=r.href&&(0,d.isExternalLink)(r.href);return t||e?"_blank":r.target};if(!r.href)return console.error(new Error("Error No href")),o.createElement("span",{className:r.className},o.createElement("span",{style:{display:"none"}},"Error No href"),r.children);const g=f(),b={};return g&&(b.target=g,b.rel="noopener noreferrer"),o.createElement("a",Object.assign({className:r.className,href:r.href,onClick:e=>{r.onClick&&r.onClick(e),r.isomorphic&&(e=>{const{href:o}=r;o&&(function(e,t){const n=t&&"_blank"===t,o=!function(e){return 0===e.button}(e);return e.defaultPrevented||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||o||n}(e,f())||(e.preventDefault(),t?n((0,c.fy)()).then((()=>(0,h.pushState)(o))):(0,h.pushState)(o)))})(e)},onMouseEnter:r.onMouseEnter||i(),onMouseLeave:r.onMouseLeave||i(),title:r.title||"",rel:r.rel||""},b,{style:r.style},a.k(r),s.y(r),l.kF(r)),r.children)}))},65514:function(e,t,n){n.d(t,{T:function(){return r}});var o=n(28216);function r(){return(0,o.useDispatch)()}},87804:function(e,t,n){n.d(t,{A:function(){return a},y:function(){return i}});const o="data-qa-entity",r="data-qa-payload",i=e=>{if(!e[o])return{};const t={[o]:e[o]};return e[r]&&(t[r]=e[r]),t};function a(e,t){const n={[o]:e};try{t&&(n[r]=JSON.stringify(t))}catch(e){console.error(e)}return n}},96826:function(e,t,n){n.d(t,{Rp:function(){return d},ZP:function(){return l},zx:function(){return c}});var o=n(10586),r=n(94737),i=n(59754),a=n(57139);const s=e=>(0,o.iv)(["position:relative;display:inline-flex;justify-content:center;align-items:center;font-weight:600;line-height:1rem;letter-spacing:normal;color:#ffffff;text-align:center;border:none;border-radius:4px;transition:0.2s;cursor:pointer;box-shadow:0 15px 20px -10px rgba(0,0,0,0.3);&:disabled{cursor:not-allowed;}"," ",";"," "," "," "," "," "," "," "," "," &.game-header-details-button{margin-top:0.25rem;margin-bottom:0.5rem;}"," ",""],e.size===a.Ph.extraSmall&&(0,o.iv)(["min-height:1.5rem;font-size:0.75rem;line-height:1.5rem;font-weight:400;padding:0 1rem;min-width:6.5rem;"]),e.size===a.Ph.small&&(0,o.iv)(["min-width:110px;min-height:35px;padding:0 25px;font-size:16px;line-height:35px;"]),e.size===a.Ph.medium&&(0,o.iv)(["min-width:120px;min-height:40px;padding:0 25px;font-size:18px;line-height:40px;@media ","{min-width:5rem;min-height:35px;line-height:35px;padding:0 10px;font-size:16px;}"],r.Z.mobileOrTablet),e.size===a.Ph.large&&(0,o.iv)(["min-width:140px;min-height:50px;line-height:50px;padding:0 30px;font-size:20px;"]),e.color===a.Tt.default&&(0,o.iv)(["background-color:var(--bg-white);color:#1f7cdf;border-radius:6px;box-shadow:0 8px 10px -10px rgba(0,0,0,0.4);&.log-in-button{min-height:35px;min-width:0;padding:0 17px;font-size:15px;color:#1f7cdf;&:hover,&:active,&:disabled{color:#1f7cdf;}@media ","{padding:0 22px;}}&:hover,&:active,&:disabled{color:#1f7cdf;}&:hover{background-color:var(--button-default-hover);}&:active{background-color:var(--button-default-press);}&:disabled{background-color:var(--button-default-disablet);}"],r.Z.mobileOrTablet),e.color===a.Tt.dark&&(0,o.iv)(["background-color:#635c7c;background:linear-gradient(to bottom,#635c7c,#514b67 97%);&:hover{background-color:#6f6985;background:linear-gradient(to bottom,#6f6985,#635c7c 97%);}&:active{background-color:#635c7c;background:linear-gradient(to bottom,#635c7c,#514b67 97%);}&:disabled{background:#a9a6b5;}"]),e.color===a.Tt.primary&&(0,o.iv)(["background-color:#fa5400;background:linear-gradient(to bottom,#fa5400 -7%,#fa3e00 105%);&:hover{background-color:#ff681b;background:linear-gradient(to bottom,#ff681b -7%,#ff5118 104%);}&:active{background-color:#f04600;background:linear-gradient(to bottom,#f04600 -7%,#dd3700 101%);}&:disabled{background:#ffa582;}"]),e.color===a.Tt.secondary&&(0,o.iv)(["background-color:#5b8fe5;background:linear-gradient(to bottom,#5b8fe5,#4779cb 99%);&:hover{background-color:#619cff;background:linear-gradient(to bottom,#619cff,#558ce6);}&:active{background-color:#578adf;background:linear-gradient(to bottom,#578adf,#406cb5 99%);}&:disabled{background:#7daeff;}"]),e.color===a.Tt.defaultNormal&&(0,o.iv)(["background-color:#f0f0f0;color:#555557;&:hover{background-color:#f4f4f4;color:#555557;}&:active{background-color:#f4f4f4;color:#555557;}&:disabled{background:#d2d2d2;color:#555557;}"]),e.color===a.Tt.purple&&(0,o.iv)(["background-color:#7c4795;background:linear-gradient(to bottom,#7c4795,#5d2a7e 100%);&:hover{background-color:#8f61a4;background:linear-gradient(to bottom,#8f61a4,#744890 100%);}&:active{background-color:#6a3c7f;background:linear-gradient(to bottom,#6a3c7f,#4f246c 100%);}&:disabled{background-color:#bfa5cb;background:linear-gradient(to bottom,#bfa5cb,#ae94be 100%);}"]),e.fluid&&(0,o.iv)(["width:100%;padding:0;"]),e.isIcon&&(0,o.iv)(["padding:0 1.25rem 0 1rem;"]),e.isNoBoxShadow&&(0,o.iv)(["box-shadow:none;"])),c=o.ZP.button.withConfig({displayName:"Buttonstyled__Button",componentId:"sc-1rihoin-0"})([""," ",""],(e=>s(e)),(e=>e.isIcon&&(0,o.iv)(["margin-left:0.5rem;"]))),l=(0,o.ZP)(i.Z).withConfig({displayName:"Buttonstyled__ButtonLink",componentId:"sc-1rihoin-1"})(["",""],(e=>s(e))),d=o.ZP.i.withConfig({displayName:"Buttonstyled__IconContent",componentId:"sc-1rihoin-2"})(["display:flex;align-items:center;justify-content:center;margin-right:0.5rem;width:1rem;height:auto;& svg{width:100%;height:auto;}"])},57139:function(e,t,n){n.d(t,{Ph:function(){return a},Tt:function(){return i}});var o=n(67294),r=n(96826);const i={default:"default",defaultNormal:"defaultNormal",dark:"dark",primary:"primary",secondary:"secondary",purple:"purple"},a={extraSmall:"extraSmall",small:"small",medium:"medium",large:"large"};t.ZP=e=>{var{children:t,onClick:n,color:s=i.primary,size:c=a.medium}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{let{html:t,tagName:n,className:r,style:i,onClick:a}=e;return o.createElement(n||"div",{dangerouslySetInnerHTML:{__html:t},className:r,style:i||{},onClick:a})};i.defaultProps={tagName:"div",className:"",onClick:r.ZT};var a=i},15096:function(e,t,n){n.d(t,{vl:function(){return r}});var o=n(67294);const r=e=>{let{className:t,onClick:n}=e;return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 25 25",className:t,onClick:n},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",null,o.createElement("g",null,o.createElement("g",{fill:"#000",fillOpacity:"0.4",transform:"translate(-920 -160) translate(920 160)"},o.createElement("rect",{width:"25",height:"25",rx:"12.5"})),o.createElement("path",{fill:"#FFF",d:"M12.5 6c.449 0 .813.364.813.813l-.001 4.874h4.876c.448 0 .812.364.812.813 0 .449-.364.813-.813.813l-4.875-.001v4.876c0 .448-.363.812-.812.812-.449 0-.813-.364-.813-.813v-4.875H6.813c-.45 0-.813-.363-.813-.812 0-.449.364-.813.813-.813h4.874V6.813c0-.45.364-.813.813-.813z",transform:"translate(-920 -160) translate(920 160) rotate(-135 12.5 12.5)"})))))}},99484:function(e,t,n){var o=n(67294);t.Z=e=>o.createElement("svg",{className:e.className,width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("rect",{fill:"#3E5294",width:"100%",height:"100%",rx:"6"}),o.createElement("path",{d:"M32.2679 44.75V27.068h5.8963l.8836-6.8916h-6.78v-4.3948c0-2.0008.5438-3.3518\n 3.3985-3.3518h3.6194V6.2736C38.657 6.1881 36.499 6 34.0011 6c-5.2337\n 0-8.802 3.215-8.802 9.0975v5.079h-5.9134v6.8915h5.9134V44.75h7.0688z",fill:"#FFF"})))},30820:function(e,t,n){var o=n(67294);t.Z=e=>{let{className:t}=e;return o.createElement("svg",{className:t||"",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("rect",{fill:"#F5F5F5",width:"100%",height:"100%",rx:"6"}),o.createElement("path",{d:"M22.9891 16.0891c2.1125 0 3.5375.9125 4.35 1.675l3.175-3.1c-1.95-1.8125-4.4875-2.925-7.525-2.925-4.4 0-8.2 2.525-10.05 6.2l3.6375 2.825c.9125-2.7125 3.4375-4.675 6.4125-4.675z",fill:"#EA4335"}),o.createElement("path",{d:"M33.7891 23.2391c0-.925-.075-1.6-.2375-2.3H22.9891v4.175h6.2c-.125 1.0375-.8 2.6-2.3 3.65l3.55 2.75c2.125-1.9625 3.35-4.85 3.35-8.275z",fill:"#4285F4"}),o.createElement("path",{d:"M16.5891 25.2141c-.2375-.7-.375-1.45-.375-2.225 0-.775.1375-1.525.3625-2.225l-3.6375-2.825c-.7625 1.525-1.2 3.2375-1.2 5.05s.4375 3.525 1.2 5.05l3.65-2.825z",fill:"#FBBC05"}),o.createElement("path",{d:"M22.9891 34.2391c3.0375 0 5.5875-1 7.45-2.725l-3.55-2.75c-.95.6625-2.225 1.125-3.9 1.125-2.975 0-5.5-1.9625-6.4-4.675l-3.6375 2.825c1.85 3.675 5.6375 6.2 10.0375 6.2z",fill:"#34A853"})))}},58267:function(e,t,n){var o=n(67294);t.Z=()=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("rect",{width:"100%",height:"100%",fill:"#9146FF",rx:"4.214"}),o.createElement("g",{fillRule:"nonzero"},o.createElement("path",{fill:"#FFF",d:"M20.952 12.381L17.143 16.19 13.333 16.19 10 19.524 10 16.19 5.714 16.19 5.714 1.905 20.952 1.905z",transform:"translate(8.444 7.556)"}),o.createElement("g",{fill:"#000"},o.createElement("path",{d:"M4.762 0L0 4.762v17.143h5.714v4.762l4.762-4.762h3.81l8.571-8.572V0H4.762zm16.19 12.381l-3.81 3.81h-3.809L10 19.523V16.19H5.714V1.905h15.238V12.38z",transform:"translate(8.444 7.556)"}),o.createElement("path",{d:"M16.19 5.238H18.095000000000002V10.952000000000002H16.19zM10.952 5.238H12.857V10.952000000000002H10.952z",transform:"translate(8.444 7.556)"})))))},94737:function(e,t){t.Z={extraSmall:"(max-width: 320px)",mobile:"(max-width: 767px)",mobileOrTablet:"(max-width: 1023px)",tablet:"(min-width: 768px) and (max-width: 1023px)",tabletPortrait:"(min-width: 768px) and (max-width: 1023px) and (orientation: portrait)",tabletLandscape:"(min-width: 768px) and (max-width: 1023px) and (orientation: landscape)",tabletOrDesktop:"(min-width: 768px)",desktop:"(min-width: 1024px)"}},87642:function(e,t,n){function o(e){const t={};return e?"string"==typeof e?(t.common=e,t):(n=e)&&"object"==typeof n&&n.errors&&e.errors.length?(e.errors.forEach((e=>{t[e.property]=e.message})),t):(function(e){return!!e&&"object"==typeof e&&!!e.message}(e)&&(t.common=e.message),t):t;var n}n.d(t,{b:function(){return o}})},98239:function(e,t,n){n.d(t,{A:function(){return s}});var o=n(41122),r=n(62333);const i={callbacks:[]},{debug:a}=(0,r.E)("ReCaptcha");function s(e){window.grecaptchaOnLoad=()=>{i.callbacks.forEach((e=>e(window.grecaptcha))),i.callbacks=[]},window.grecaptcha||((0,o.Z)({src:"https://www.google.com/recaptcha/api.js?onload=grecaptchaOnLoad&render=explicit",scriptName:"recaptcha"}),i.callbacks.push(e),a("SDK loaded"))}},41122:function(e,t,n){n.d(t,{Z:function(){return r}});const o={existingScripts:[]};function r(e){let{src:t,async:n=!0,crossOrigin:r,scriptName:i}=e;return"undefined"==typeof window?Promise.reject("Can not load script on SSR"):o.existingScripts.includes(i)?Promise.resolve():new Promise(((e,a)=>{const s=window.document.getElementsByTagName("script")[0],c=window.document.createElement("script");c.async=n,c.src=t,r&&(c.crossOrigin=r),c.onload=()=>{o.existingScripts.push(i),e()},c.onerror=e=>{a(e)},s.parentNode&&s.parentNode.insertBefore(c,s)}))}},1265:function(e,t,n){n.d(t,{T:function(){return c},V5:function(){return s},v8:function(){return a},w1:function(){return i}});var o=n(87322);function r(){return(0,o.Z)()?window.navigator.userAgent:""}function i(){return/MSIE|Trident/.test(r())}function a(){return/(puffin)\/([\w\\.]+)/i.test(r())}function s(){return-1!==r().indexOf("Mac OS X")}function c(){return!!(0,o.Z)()&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)}},10649:function(e,t,n){n.d(t,{Te:function(){return r},Xy:function(){return a},jQ:function(){return i}});var o=n(1801);function r(e,t){return(0,o.setErrorMessages)(t),function(t){return(0,o.validate)(t,e)}}(0,o.setErrorMessages)({required:"This field is required.",email:"Please enter a valid email address.",password:"Password must be between 6-40 alphanumeric characters",terms:"Please agree on the rules",username:"Use 3-30 alphanumeric characters.",website:"Please enter a valid website URL",countryCode:"Invalid country code. You may use a maximum of 3 numbers",isEqual:"Field do not match",contactNumber:"Invalid phone number. You may use up to 17 characters.\n Including numbers 0-9 and characters +. () and -",code:"Invalid code. Must be 6 numbers"});const i=Object.assign(Object.assign({},o.rules),{terms:e=>e?Promise.resolve():Promise.reject((0,o.getErrorMessage)("terms")),countryCode:e=>e&&e.length&&e.length<=3?Promise.resolve():Promise.reject((0,o.getErrorMessage)("countryCode")),about:e=>e.length>360?Promise.reject((0,o.getErrorMessage)("about")):Promise.resolve(),code:e=>e&&e.length&&6!==e.length?Promise.reject((0,o.getErrorMessage)("code")):Promise.resolve()}),a=(e,t)=>{return n=void 0,r=void 0,a=function*(){if(e!==t)throw(0,o.getErrorMessage)("isEqual")},new((i=void 0)||(i=Promise))((function(e,t){function o(e){try{c(a.next(e))}catch(e){t(e)}}function s(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,s)}c((a=a.apply(n,r||[])).next())}));var n,r,i,a}}}]);