You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
124 KiB
JavaScript

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

/* Third-party software licenses can be found at licenses.txt */
(self.webpackChunksteamui=self.webpackChunksteamui||[]).push([[4265],{59701:e=>{e.exports={Login:"newlogindialog_Login_ZOBYq",SideBySide:"newlogindialog_SideBySide_1Wl13",QRSection:"newlogindialog_QRSection_2ZDyS",BetaContainer:"newlogindialog_BetaContainer_WgZQL",BetaTag:"newlogindialog_BetaTag_pYvWM",BetaSubtitleWithQR:"newlogindialog_BetaSubtitleWithQR_hnv-G",PhoneIcon:"newlogindialog_PhoneIcon_3mIgS",BetaSubtitle:"newlogindialog_BetaSubtitle_2XVB0",JoinBetaButton:"newlogindialog_JoinBetaButton_3Pmq8",ShowQRLink:"newlogindialog_ShowQRLink_-lvk-",ScanQRButton:"newlogindialog_ScanQRButton_IsYb2",QRIcon:"newlogindialog_QRIcon_2zKSq",QRCodeContainer:"newlogindialog_QRCodeContainer_3YjUm",QR:"newlogindialog_QR_1d6FZ",HideButton:"newlogindialog_HideButton_u88sc",ShowQR:"newlogindialog_ShowQR_12nP-",UseMobileAppForQR:"newlogindialog_UseMobileAppForQR_9xgsv",TextField:"newlogindialog_TextField_2KXGK",TextInput:"newlogindialog_TextInput_2eKVn",Danger:"newlogindialog_Danger_1-HwJ",LoginForm:"newlogindialog_LoginForm_3Tsg9",FieldLabel:"newlogindialog_FieldLabel_3d8dp",Highlight:"newlogindialog_Highlight_XyqzE",CheckboxField:"newlogindialog_CheckboxField_2QWD5",CheckboxFieldLabel:"newlogindialog_CheckboxFieldLabel_2yrCY",Checkbox:"newlogindialog_Checkbox_3tTFg",Check:"newlogindialog_Check_6EoZE",RefreshButtonContainer:"newlogindialog_RefreshButtonContainer_2SbbR",SignInButtonContainer:"newlogindialog_SignInButtonContainer_14fsn",RefreshQuitButton:"newlogindialog_RefreshQuitButton_KFTqb",SubmitButton:"newlogindialog_SubmitButton_2QgFE",Loading:"newlogindialog_Loading_i9MK3",LoadingContainer:"newlogindialog_LoadingContainer_OYHj3",Text:"newlogindialog_Text_3omtv",Center:"newlogindialog_Center_1blSs",TextLink:"newlogindialog_TextLink_1cnUQ",FormError:"newlogindialog_FormError_1Mcy9",TextAlignCenter:"newlogindialog_TextAlignCenter_2meUB",FlexCol:"newlogindialog_FlexCol_1mhmm",AlignItemsCenter:"newlogindialog_AlignItemsCenter_30P8x",JustifyContentCenter:"newlogindialog_JustifyContentCenter_LWEzR",ProtectingAccount:"newlogindialog_ProtectingAccount_1aop9",Label:"newlogindialog_Label_2SE9Z",AccountName:"newlogindialog_AccountName_3Vjp0",Description:"newlogindialog_Description_QApnT",AwaitingMobileConfText:"newlogindialog_AwaitingMobileConfText_7LmnT",AwaitingMobileConfIcon:"newlogindialog_AwaitingMobileConfIcon_2hLC_",LinkContainer:"newlogindialog_LinkContainer_3yJHp",EnterCodeInsteadLink:"newlogindialog_EnterCodeInsteadLink_37AOB",EnterCodeFromMobileContainer:"newlogindialog_EnterCodeFromMobileContainer_T68fB",EnterCodeFromEmailContainer:"newlogindialog_EnterCodeFromEmailContainer_2pVTW",EnterCodeFromMobile:"newlogindialog_EnterCodeFromMobile_1Rruw",EnterCodeFromEmail:"newlogindialog_EnterCodeFromEmail_1-D_t",EnterCodeEmailAddress:"newlogindialog_EnterCodeEmailAddress_2zLvb",CodeInputFieldContainer:"newlogindialog_CodeInputFieldContainer_3Ua6v",CodeInputField:"newlogindialog_CodeInputField_IuMwV",SegmentContainer:"newlogindialog_SegmentContainer_17vl6",Segment:"newlogindialog_Segment_2HqKU",SegmentedCharacterInput:"newlogindialog_SegmentedCharacterInput_1kJ6q",Disabled:"newlogindialog_Disabled_2HFP7",RefreshTitle:"newlogindialog_RefreshTitle_2IXDr",RefreshReason:"newlogindialog_RefreshReason_3jz0o",StandardLayout:"newlogindialog_StandardLayout_286eh",PrimaryHeader:"newlogindialog_PrimaryHeader_39uMK",EscapeHatch:"newlogindialog_EscapeHatch_2KxAb",FormContainer:"newlogindialog_FormContainer_3jLIH",Embedded:"newlogindialog_Embedded_CpeGc",Compact:"newlogindialog_Compact_9CHmB",HeaderLogo:"newlogindialog_HeaderLogo_1rtyT",EmbeddedRoot:"newlogindialog_EmbeddedRoot_2Vbrf",EmbeddedRootFooter:"newlogindialog_EmbeddedRootFooter_1HRJ1",AccountCreation:"newlogindialog_AccountCreation_19yGb",AccountCreationPrompt:"newlogindialog_AccountCreationPrompt_1h5_x",FailureTitle:"newlogindialog_FailureTitle_A3Y-u",FailureDescription:"newlogindialog_FailureDescription_3gFes",OfferOffline:"newlogindialog_OfferOffline_2DPst",LoadingSpinner:"newlogindialog_LoadingSpinner_2rGL7",LoadAmin:"newlogindialog_LoadAmin_1EdkR",Small:"newlogindialog_Small_2G7Us",Medium:"newlogindialog_Medium_1LJg9",Large:"newlogindialog_Large_1PXJQ"}},43921:e=>{e.exports={LoginQR:"qrlogin_LoginQR_1wtS3",Blur:"qrlogin_Blur_3j1v-",Overlay:"qrlogin_Overlay_2VJKT",Box:"qrlogin_Box_2Lr2C",Column:"qrlogin_Column_2UEUT",Loading:"qrlogin_Loading_3wHZW",LoadAmin:"qrlogin_LoadAmin_1xU0q",Small:"qrlogin_Small_2qsUN",Medium:"qrlogin_Medium_1nypP",Large:"qrlogin_Large_elAzl"}},50885:e=>{e.exports={QRBits:"qrcode_QRBits_3FhhK",Bit:"qrcode_Bit_2Yuvr",Active:"qrcode_Active_274P1"}},97590:(e,t,r)=>{"use strict";var i;r.d(t,{Z:()=>A});function n(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function s(){return new n(null)}"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(e,t,r,i,n,s){for(var a=32767&t,o=t>>15;--s>=0;){var l=32767&this[e],c=this[e++]>>15,u=o*l+c*a;n=((l=a*l+((32767&u)<<15)+r[i]+(1073741823&n))>>>30)+(u>>>15)+o*c+(n>>>30),r[i++]=1073741823&l}return n},i=30):"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,r,i,n,s){for(;--s>=0;){var a=t*this[e++]+r[i]+n;n=Math.floor(a/67108864),r[i++]=67108863&a}return n},i=26):(n.prototype.am=function(e,t,r,i,n,s){for(var a=16383&t,o=t>>14;--s>=0;){var l=16383&this[e],c=this[e++]>>14,u=o*l+c*a;n=((l=a*l+((16383&u)<<14)+r[i]+n)>>28)+(u>>14)+o*c,r[i++]=268435455&l}return n},i=28),n.prototype.DB=i,n.prototype.DM=(1<<i)-1,n.prototype.DV=1<<i;n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-i,n.prototype.F2=2*i-52;var a,o,l=new Array;for(a="0".charCodeAt(0),o=0;o<=9;++o)l[a++]=o;for(a="a".charCodeAt(0),o=10;o<36;++o)l[a++]=o;for(a="A".charCodeAt(0),o=10;o<36;++o)l[a++]=o;function c(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function u(e,t){var r=l[e.charCodeAt(t)];return null==r?-1:r}function m(e){var t=s();return t.fromInt(e),t}function d(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function h(e){this.m=e}function g(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function f(e,t){return e&t}function _(e,t){return e|t}function p(e,t){return e^t}function b(e,t){return e&~t}function y(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function B(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function w(){}function C(e){return e}function S(e){this.r2=s(),this.q3=s(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}h.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},h.prototype.revert=function(e){return e},h.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},h.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.prototype.convert=function(e){var t=s();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(n.ZERO)>0&&this.m.subTo(t,t),t},g.prototype.revert=function(e){var t=s();return e.copyTo(t),this.reduce(t),t},g.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},g.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},g.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void this.fromRadix(e,t);r=2}this.t=0,this.s=0;for(var i=e.length,s=!1,a=0;--i>=0;){var o=8==r?255&e[i]:u(e,i);o<0?"-"==e.charAt(i)&&(s=!0):(s=!1,0==a?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),s&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},n.prototype.lShiftTo=function(e,t){var r,i=e%this.DB,n=this.DB-i,s=(1<<n)-1,a=Math.floor(e/this.DB),o=this.s<<i&this.DM;for(r=this.t-1;r>=0;--r)t[r+a+1]=this[r]>>n|o,o=(this[r]&s)<<i;for(r=a-1;r>=0;--r)t[r]=0;t[a]=o,t.t=this.t+a+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var i=e%this.DB,n=this.DB-i,s=(1<<i)-1;t[0]=this[r]>>i;for(var a=r+1;a<this.t;++a)t[a-r-1]|=(this[a]&s)<<n,t[a-r]=this[a]>>i;i>0&&(t[this.t-r-1]|=(this.s&s)<<n),t.t=this.t-r,t.clamp()}},n.prototype.subTo=function(e,t){for(var r=0,i=0,n=Math.min(e.t,this.t);r<n;)i+=this[r]-e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i-=e[r],t[r++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),s=r.t;for(t.t=s+i.t;--s>=0;)t[s]=0;for(s=0;s<i.t;++s)t[s+r.t]=r.am(0,i[s],t,s,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},n.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=t&&t.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=s());var o=s(),l=this.s,c=e.s,u=this.DB-d(i[i.t-1]);u>0?(i.lShiftTo(u,o),a.lShiftTo(u,r)):(i.copyTo(o),a.copyTo(r));var m=o.t,h=o[m-1];if(0!=h){var g=h*(1<<this.F1)+(m>1?o[m-2]>>this.F2:0),f=this.FV/g,_=(1<<this.F1)/g,p=1<<this.F2,b=r.t,y=b-m,B=null==t?s():t;for(o.dlShiftTo(y,B),r.compareTo(B)>=0&&(r[r.t++]=1,r.subTo(B,r)),n.ONE.dlShiftTo(m,B),B.subTo(o,o);o.t<m;)o[o.t++]=0;for(;--y>=0;){var w=r[--b]==h?this.DM:Math.floor(r[b]*f+(r[b-1]+p)*_);if((r[b]+=o.am(0,w,r,y,0,m))<w)for(o.dlShiftTo(y,B),r.subTo(B,r);r[b]<--w;)r.subTo(B,r)}null!=t&&(r.drShiftTo(m,t),l!=c&&n.ZERO.subTo(t,t)),r.t=m,r.clamp(),u>0&&r.rShiftTo(u,r),l<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var r=s(),i=s(),a=t.convert(this),o=d(e)-1;for(a.copyTo(r);--o>=0;)if(t.sqrTo(r,i),(e&1<<o)>0)t.mulTo(i,a,r);else{var l=r;r=i,i=l}return t.revert(r)},n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,i=(1<<t)-1,n=!1,s="",a=this.t,o=this.DB-a*this.DB%t;if(a-- >0)for(o<this.DB&&(r=this[a]>>o)>0&&(n=!0,s=c(r));a>=0;)o<t?(r=(this[a]&(1<<o)-1)<<t-o,r|=this[--a]>>(o+=this.DB-t)):(r=this[a]>>(o-=t)&i,o<=0&&(o+=this.DB,--a)),r>0&&(n=!0),n&&(s+=c(r));return n?s:"0"},n.prototype.negate=function(){var e=s();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+d(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=s();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new h(t):new g(t),this.exp(e,r)},n.ZERO=m(0),n.ONE=m(1),w.prototype.convert=C,w.prototype.revert=C,w.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},w.prototype.sqrTo=function(e,t){e.squareTo(t)},S.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=s();return e.copyTo(t),this.reduce(t),t},S.prototype.revert=function(e){return e},S.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},S.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},S.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var v=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],E=(1<<26)/v[v.length-1];n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=m(r),n=s(),a=s(),o="";for(this.divRemTo(i,n,a);n.signum()>0;)o=(r+a.intValue()).toString(e).substr(1)+o,n.divRemTo(i,n,a);return a.intValue().toString(e)+o},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),s=!1,a=0,o=0,l=0;l<e.length;++l){var c=u(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(s=!0):(o=t*o+c,++a>=r&&(this.dMultiply(i),this.dAddOffset(o,0),a=0,o=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(o,0)),s&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),_,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var i=new Array,s=7&e;i.length=1+(e>>3),t.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,r){var i,n,s=Math.min(e.t,this.t);for(i=0;i<s;++i)r[i]=t(this[i],e[i]);if(e.t<this.t){for(n=e.s&this.DM,i=s;i<this.t;++i)r[i]=t(this[i],n);r.t=this.t}else{for(n=this.s&this.DM,i=s;i<e.t;++i)r[i]=t(n,e[i]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},n.prototype.changeBit=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=function(e,t){for(var r=0,i=0,n=Math.min(e.t,this.t);r<n;)i+=this[r]+e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i+=e[r],t[r++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]},n.prototype.multiplyLowerTo=function(e,t,r){var i,n=Math.min(this.t+e.t,t);for(r.s=0,r.t=n;n>0;)r[--n]=0;for(i=r.t-this.t;n<i;++n)r[n+this.t]=this.am(0,e[n],r,n,0,this.t);for(i=Math.min(e.t,t);n<i;++n)this.am(0,e[n],r,n,0,t-n);r.clamp()},n.prototype.multiplyUpperTo=function(e,t,r){--t;var i=r.t=this.t+e.t-t;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)r[this.t+i-t]=this.am(t-i,e[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0==t)r=this[0]%e;else for(var i=this.t-1;i>=0;--i)r=(t*r+this[i])%e;return r},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);(e=e+1>>1)>v.length&&(e=v.length);for(var a=s(),o=0;o<e;++o){a.fromInt(v[o]);var l=a.modPow(i,this);if(0!=l.compareTo(n.ONE)&&0!=l.compareTo(t)){for(var c=1;c++<r&&0!=l.compareTo(t);)if(0==(l=l.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0},n.prototype.clone=function(){var e=s();return this.copyTo(e),e},n.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,i=this.DB-e*this.DB%8,n=0;if(e-- >0)for(i<this.DB&&(r=this[e]>>i)!=(this.s&this.DM)>>i&&(t[n++]=r|this.s<<this.DB-i);e>=0;)i<8?(r=(this[e]&(1<<i)-1)<<8-i,r|=this[--e]>>(i+=this.DB-8)):(r=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&r)&&(r|=-256),0==n&&(128&this.s)!=(128&r)&&++n,(n>0||r!=this.s)&&(t[n++]=r);return t},n.prototype.equals=function(e){return 0==this.compareTo(e)},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=s();return this.bitwiseTo(e,f,t),t},n.prototype.or=function(e){var t=s();return this.bitwiseTo(e,_,t),t},n.prototype.xor=function(e){var t=s();return this.bitwiseTo(e,p,t),t},n.prototype.andNot=function(e){var t=s();return this.bitwiseTo(e,b,t),t},n.prototype.not=function(){for(var e=s(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var t=s();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.prototype.shiftRight=function(e){var t=s();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+y(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=B(this[r]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},n.prototype.setBit=function(e){return this.changeBit(e,_)},n.prototype.clearBit=function(e){return this.changeBit(e,b)},n.prototype.flipBit=function(e){return this.changeBit(e,p)},n.prototype.add=function(e){var t=s();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=s();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=s();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=s();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=s();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=s(),r=s();return this.divRemTo(e,t,r),new Array(t,r)},n.prototype.modPow=function(e,t){var r,i,n=e.bitLength(),a=m(1);if(n<=0)return a;r=n<18?1:n<48?3:n<144?4:n<768?5:6,i=n<8?new h(t):t.isEven()?new S(t):new g(t);var o=new Array,l=3,c=r-1,u=(1<<r)-1;if(o[1]=i.convert(this),r>1){var f=s();for(i.sqrTo(o[1],f);l<=u;)o[l]=s(),i.mulTo(f,o[l-2],o[l]),l+=2}var _,p,b=e.t-1,y=!0,B=s();for(n=d(e[b])-1;b>=0;){for(n>=c?_=e[b]>>n-c&u:(_=(e[b]&(1<<n+1)-1)<<c-n,b>0&&(_|=e[b-1]>>this.DB+n-c)),l=r;0==(1&_);)_>>=1,--l;if((n-=l)<0&&(n+=this.DB,--b),y)o[_].copyTo(a),y=!1;else{for(;l>1;)i.sqrTo(a,B),i.sqrTo(B,a),l-=2;l>0?i.sqrTo(a,B):(p=a,a=B,B=p),i.mulTo(B,o[_],a)}for(;b>=0&&0==(e[b]&1<<n);)i.sqrTo(a,B),p=a,a=B,B=p,--n<0&&(n=this.DB-1,--b)}return i.revert(a)},n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return n.ZERO;for(var r=e.clone(),i=this.clone(),s=m(1),a=m(0),o=m(0),l=m(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(e,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?(o.isEven()&&l.isEven()||(o.addTo(this,o),l.subTo(e,l)),o.rShiftTo(1,o)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&s.subTo(o,s),a.subTo(l,a)):(i.subTo(r,i),t&&o.subTo(s,o),l.subTo(a,l))}return 0!=i.compareTo(n.ONE)?n.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},n.prototype.pow=function(e){return this.exp(e,new w)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var n=t.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)return t;for(n<s&&(s=n),s>0&&(t.rShiftTo(s,t),r.rShiftTo(s,r));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=r.getLowestSetBit())>0&&r.rShiftTo(n,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r},n.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=v[v.length-1]){for(t=0;t<v.length;++t)if(r[0]==v[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<v.length;){for(var i=v[t],n=t+1;n<v.length&&i<E;)i*=v[n++];for(i=r.modInt(i);t<n;)if(i%v[t++]==0)return!1}return r.millerRabin(e)};const R=n;var F=function(e,t){this.modulus=new R(e,16),this.encryptionExponent=new R(t,16)},M={base64:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){if(!e)return!1;var t,r,i,n,s,a,o,l="",c=0;do{n=(t=e.charCodeAt(c++))>>2,s=(3&t)<<4|(r=e.charCodeAt(c++))>>4,a=(15&r)<<2|(i=e.charCodeAt(c++))>>6,o=63&i,isNaN(r)?a=o=64:isNaN(i)&&(o=64),l+=this.base64.charAt(n)+this.base64.charAt(s)+this.base64.charAt(a)+this.base64.charAt(o)}while(c<e.length);return l},decode:function(e){if(!e)return!1;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var t,r,i,n,s="",a=0;do{t=this.base64.indexOf(e.charAt(a++)),r=this.base64.indexOf(e.charAt(a++)),i=this.base64.indexOf(e.charAt(a++)),n=this.base64.indexOf(e.charAt(a++)),s+=String.fromCharCode(t<<2|r>>4),64!=i&&(s+=String.fromCharCode((15&r)<<4|i>>2)),64!=n&&(s+=String.fromCharCode((3&i)<<6|n))}while(a<e.length);return s}},T={hex:"0123456789abcdef",encode:function(e){if(!e)return!1;var t,r="",i=0;do{t=e.charCodeAt(i++),r+=this.hex.charAt(t>>4&15)+this.hex.charAt(15&t)}while(i<e.length);return r},decode:function(e){if(!e)return!1;e=e.replace(/[^0-9abcdef]/g,"");var t="",r=0;do{t+=String.fromCharCode(this.hex.indexOf(e.charAt(r++))<<4&240|15&this.hex.indexOf(e.charAt(r++)))}while(r<e.length);return t}};const A={getPublicKey:function(e,t){return new F(e,t)},encrypt:function(e,t){return!!t&&(!!(e=this.pkcs1pad2(e,t.modulus.bitLength()+7>>3))&&(!!(e=e.modPowInt(t.encryptionExponent,t.modulus))&&(1==(1&(e=e.toString(16)).length)&&(e="0"+e),M.encode(T.decode(e)))))},pkcs1pad2:function(e,t){if(t<e.length+11)return null;for(var r=[],i=e.length-1;i>=0&&t>0;)r[--t]=e.charCodeAt(i--);for(r[--t]=0;t>2;)r[--t]=Math.floor(254*Math.random())+1;return r[--t]=2,r[--t]=0,new R(r)}}},61673:(e,t,r)=>{"use strict";r.d(t,{NZ:()=>i,io:()=>d,tY:()=>m});var i,n,s=r(70655),a=r(22188),o=(r(9669),r(10708)),l=r(29786),c=(r(65030),r(78869),r(36378)),u=(r(62689),r(79742));function m(e){const{shared_secret:t,identity_secret:r,secret_1:i,status:n,uri:a,server_time:o}=e,l=(0,s._T)(e,["shared_secret","identity_secret","secret_1","status","uri","server_time"]);return Object.assign({shared_secret:u.JQ(t),identity_secret:u.JQ(r),secret_1:u.JQ(i)},l)}!function(e){e[e.None=0]="None",e[e.Generic=1]="Generic",e[e.Expired=2]="Expired",e[e.Network=3]="Network"}(i||(i={})),function(e){e[e.k_Success=0]="k_Success",e[e.k_PrimaryDomainFail=1]="k_PrimaryDomainFail",e[e.k_SecondaryDomainFail=2]="k_SecondaryDomainFail"}(n||(n={}));class d{constructor(e,t,r){this.m_bRemoteInteraction=!1,this.m_eFailureState=i.None,this.m_transport=e,this.m_onCompleteCallback=t,this.m_ePlatformType=r}StartPolling(e=!0){e?this.PollForUpdate():this.m_activeTimerID=window.setTimeout(this.PollForUpdate,this.m_msPollInterval)}StopPolling(){window.clearTimeout(this.m_activeTimerID),this.m_activeTimerID=void 0}PollForUpdate(){return(0,s.mG)(this,void 0,void 0,(function*(){try{const e=o.gA.Init(c.Uy);e.Body().set_client_id(this.m_strClientID),e.Body().set_request_id(this.m_rgRequestID),this.m_strTokenToRevoke&&e.Body().set_token_to_revoke(this.m_strTokenToRevoke);const t=yield c.$h.PollAuthSessionStatus(this.m_transport,e),r=t.GetEResult();if(1!==r){if(2===r){const e=t.Hdr().transport_error();if(console.error(`Failed to poll auth session. Result ${r}. Transport Error: ${e}`),2===e||3===e)return window.setTimeout(this.PollForUpdate,this.m_msPollInterval),1}return 9===r||27===r?this.m_eFailureState=i.Expired:(console.error(`Failed to poll auth session. Result: ${r}`),this.m_eFailureState=i.Generic),this.m_onCompleteCallback({bSuccess:!1}),r}const{new_challenge_url:n,new_client_id:s,refresh_token:a,access_token:l,account_name:u,had_remote_interaction:m}=t.Body().toObject();return this.m_bRemoteInteraction=!!m,a?(this.m_onCompleteCallback({bSuccess:!0,strRefreshToken:a,strAccessToken:l,strAccountName:u}),r):(n&&(this.m_strChallengeURL=n),s&&(this.m_strClientID=s),this.m_activeTimerID=window.setTimeout(this.PollForUpdate,this.m_msPollInterval),r)}catch(e){return console.error(`Failed to poll auth session. ${e}`),this.m_eFailureState=i.Generic,this.m_onCompleteCallback({bSuccess:!1}),2}}))}SetTokenToRevoke(e){this.m_strTokenToRevoke=e}GetFailureState(){return this.m_eFailureState}BHadRemoteInteraction(){return this.m_bRemoteInteraction}}(0,s.gn)([a.LO],d.prototype,"m_strChallengeURL",void 0),(0,s.gn)([a.LO],d.prototype,"m_bRemoteInteraction",void 0),(0,s.gn)([a.LO],d.prototype,"m_eFailureState",void 0),(0,s.gn)([l.a],d.prototype,"PollForUpdate",null),(0,s.gn)([l.a],d.prototype,"SetTokenToRevoke",null)},12369:(e,t,r)=>{"use strict";r.d(t,{P:()=>m});var i=r(70655),n=r(67294),s=r(22188),a=r(10708),o=(r(65030),r(36378)),l=r(13271),c=r(61673);class u extends c.io{constructor(e){super(e.transport,(t=>{this.m_eStatus=t.bSuccess?3:4,e.onComplete(t)}),e.ePlatformType),this.m_eStatus=0}Start(){return(0,i.mG)(this,void 0,void 0,(function*(){if(0!==this.m_eStatus)return console.error("Cannot start an already started auth session. Create a new session instance."),2;this.m_eStatus=1;try{const e=a.gA.Init(o.oZ);e.Body().set_platform_type(this.m_ePlatformType),e.Body().set_device_friendly_name(window.navigator.userAgent);const t=yield o.$h.BeginAuthSessionViaQR(this.m_transport,e),r=t.GetEResult(),i=t.Hdr().transport_error();if(1!==r)return console.error(`Failed to start auth session. Result: ${r} Transport: ${i}`),this.m_eFailureState=c.NZ.Generic,this.m_onCompleteCallback({bSuccess:!1}),r;const{client_id:n,challenge_url:s,interval:l,request_id:u}=t.Body().toObject();return this.m_strClientID=n,this.m_strChallengeURL=s,this.m_msPollInterval=1e3*l,this.m_rgRequestID=u,this.m_eStatus=2,this.StartPolling(!1),r}catch(e){return console.error(`Failed to start auth session. ${e}`),this.m_eFailureState=c.NZ.Generic,this.m_onCompleteCallback({bSuccess:!1}),2}}))}Stop(){this.StopPolling(),this.m_eStatus=5}GetChallengeURL(){return this.m_strChallengeURL}GetStatus(){return this.m_eStatus}}function m(e){const[t,r]=(0,n.useState)(new u(e));return(0,n.useEffect)((()=>(t.Start(),()=>{t.Stop()})),[t]),(0,l.SZ)((()=>({strChallengeURL:t.GetChallengeURL(),eFailureStatue:t.GetFailureState(),eStatus:t.GetStatus(),bHadRemoteInteraction:t.BHadRemoteInteraction(),reset:()=>r(new u(e)),setTokenToRevoke:t.SetTokenToRevoke})))}(0,i.gn)([s.LO],u.prototype,"m_eStatus",void 0)},14838:(e,t,r)=>{"use strict";r.d(t,{He:()=>d,IC:()=>m,p1:()=>c,yI:()=>u});var i=r(70655),n=r(9669),s=r.n(n);const a=r(97590).Z;function o(e,t){return e.endsWith("/")||(e+="/"),`${e}login/${t}/`}function l(){let e=new FormData;return e.append("donotcache",(new Date).getTime().toString()),e}function c(e){return(0,i.mG)(this,void 0,void 0,(function*(){let t=l(),r=o(e,"refreshcaptcha"),i="";try{let e=yield s().post(r,t);if(200!=e.status)return!1;i=e.data.gid}catch(e){return!1}return i}))}function u(e,t){return o(e,"rendercaptcha")+`?gid=${t}`}function m(e,t){let r=a.getPublicKey(t.publickey_mod,t.publickey_exp),i=a.encrypt(e,r);return!1===i?null:i}function d(e,t,r){return(0,i.mG)(this,void 0,void 0,(function*(){if((r=Object.assign({},r)).strUserName&&(r.strUserName=r.strUserName.replace(/[^\x00-\x7F]/g,"")),!r.strPassword||r.strPassword.match(/[^\x00-\x7F]/))return null;if(!r.strUserName)return null;let n=yield function(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){let r=l();r.append("username",t);let i,n=o(e,"getrsakey");try{let e=yield s().post(n,r);if(200!=e.status)return null;let t=e.data;if(!(t&&t.success&&t.publickey_mod&&t.publickey_exp&&t.timestamp))return null;i=t}catch(e){return null}return i}))}(e,r.strUserName);if(!n)return console.log("Failed to get RSA key"),null;let a=yield function(e,t,r,n){return(0,i.mG)(this,void 0,void 0,(function*(){const i=m(r.strPassword,n);if(!i)return null;let a=l();a.append("password",i),a.append("username",r.strUserName),a.append("twofactorcode",r.strTwoFactorCode||""),a.append("emailauth",r.strEmailAuthCode||""),a.append("loginfriendlyname",""),a.append("captchagid",r.gidCaptcha||""),a.append("captcha_text",r.strCaptchaText||""),a.append("emailsteamid",r.emailSteamID||""),a.append("rsatimestamp",n.timestamp),a.append("remember_login",r.bRememberLogin?"true":"false");let c={};t&&(a.append("oauth_client_id",t),a.append("mobile_chat_client","true"));let u,d=o(e,"dologin");try{let e=yield s().post(d,a,c);if(200!=e.status)return null;let t=e.data;if(!t)return null;t.oauth&&(t.oauth=JSON.parse(t.oauth)),u=t}catch(e){return null}return u}))}(e,t,r,n);return a}))}},18609:(e,t,r)=>{"use strict";r.d(t,{i9:()=>W});var i=r(70655),n=r(67294),s=r(10708),a=r(45520),o=r(22188),l=r(9669),c=r.n(l),u=r(78869),m=r(61673),d=(r(65030),r(13271)),h=r(82155),g=r(14838),f=r(36378),_=(r(21151),r(38440)),p=r(62689);class b extends m.io{constructor(e){super(e.transport,(t=>{this.m_eStatus=t.bSuccess?14:15;const r=t.bSuccess?Object.assign(Object.assign({},t),{strAccountName:this.m_strAccountName,steamid:this.m_steamid}):t;e.onComplete(r)}),e.ePlatformType),this.m_eStatus=0,this.m_strConfirmationAssociatedMessage="",this.m_bUsingCodeOverride=!1,this.m_strWeakAuthToken=""}Start(e,t,r){return(0,i.mG)(this,void 0,void 0,(function*(){if(0!==this.m_eStatus&&2!==this.m_eStatus)return console.error("Cannot start an already started auth session. Create a new session instance."),29;this.m_eStatus=1,this.m_bUsingCodeOverride=!1;try{const n=yield function(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const r=s.gA.Init(f.kp);r.Body().set_account_name(t);try{const t=yield f.$h.GetPasswordRSAPublicKey(e,r);if(t.DEBUG_LogToConsole(),1!==t.GetEResult())return console.error(`Failed to get RSA key with EResult: ${t.GetEResult()}`),null;const{publickey_exp:i,publickey_mod:n,timestamp:s}=t.Body().toObject();return i&&n&&s?{publickey_exp:i,publickey_mod:n,timestamp:s}:(console.error(`Missing expected field in RSA Key: ${JSON.stringify({publickey_exp:i,publickey_mod:n,timestamp:s})}`),null)}catch(e){return console.error(`Failed to get RSA key: ${e}`),null}}))}(this.m_transport,e);if(!n)return console.error("Cannot start auth session without a valid RSA key"),this.m_eStatus=15,this.m_eFailureState=m.NZ.Network,20;const a=(0,g.IC)(t,n),l=s.gA.Init(f._u);l.Body().set_account_name(e),l.Body().set_encrypted_password(a),l.Body().set_encryption_timestamp(n.timestamp),l.Body().set_remember_login(!!r),l.Body().set_platform_type(this.m_ePlatformType),l.Body().set_device_friendly_name(window.navigator.userAgent),l.Body().set_persistence(r?1:0),l.Body().set_website_id(u.De.WEBSITE_ID);const d=yield f.$h.BeginAuthSessionViaCredentials(this.m_transport,l);return(0,o.z)((()=>(0,i.mG)(this,void 0,void 0,(function*(){const t=d.GetEResult(),r=d.Hdr().transport_error();if(1!==t)switch(t){case 5:return this.m_eStatus=2,t;case 20:return this.m_eStatus=15,this.m_eFailureState=m.NZ.Network,t;default:return console.error(`Failed to start auth session. Result: ${t} Transport: ${r}`),this.m_eFailureState=m.NZ.Generic,this.m_onCompleteCallback({bSuccess:!1}),t}this.m_strAccountName=e;const{client_id:i,request_id:n,interval:s,allowed_confirmations:a,steamid:o,weak_token:l}=d.Body().toObject();if(this.m_msPollInterval=1e3*s,this.m_strClientID=i,this.m_rgRequestID=n,this.m_steamid=o,this.m_strWeakAuthToken=l,a.find((({confirmation_type:e})=>6===e))){const e=new FormData;e.append("clientid",i),e.append("steamid",this.m_steamid);const t=`${u.De.LOGIN_BASE_URL}jwt/checkdevice`;try{if(1==(yield c().post(t,e,{withCredentials:!0})).data.result)return this.m_eStatus=4,this.StartPolling(!0),1}catch(e){console.log(`checkdevice ajax failed: ${e.message}`)}}const h=function(e){let t=e[0]||0;e.length>1&&(t=e.sort(((e,t)=>y[e]-y[t]))[0]);return t}(a.map((({confirmation_type:e})=>e))),g=a.find((({confirmation_type:e})=>e===h));switch(g&&g.associated_message&&(this.m_strConfirmationAssociatedMessage=g.associated_message),h){case 1:return this.m_eStatus=13,this.StartPolling(),t;case 2:this.m_eStatus=3;break;case 5:this.m_eStatus=4,this.StartPolling(!1);break;case 3:this.m_eStatus=5;break;case 4:this.m_eStatus=6,this.StartPolling(!1)}return t}))))}catch(e){return console.error(`Failed to start auth session. ${e}`),this.m_eFailureState=m.NZ.Generic,this.m_onCompleteCallback({bSuccess:!1}),2}}))}Stop(){this.StopPolling(),this.m_eStatus=16}GetStatus(){return this.m_eStatus}GetConfirmationAssociatedMessage(){return this.m_strConfirmationAssociatedMessage}GetAccountName(){return this.m_strAccountName}GetSteamID(){return this.m_steamid}GetReplacementAuthenticator(){return this.m_replacementAuthenticator}SendSteamGuardCode(e,t=!0){return(0,i.mG)(this,void 0,void 0,(function*(){try{const r=3===this.m_eStatus||10===this.m_eStatus,i=s.gA.Init(f.Am);i.Body().set_client_id(this.m_strClientID),i.Body().set_steamid(this.m_steamid),i.Body().set_code(e),i.Body().set_code_type(r?2:3);const n=(yield f.$h.UpdateAuthSessionWithSteamGuardCode(this.m_transport,i)).GetEResult();if(1!==n){if(!t)return n;switch(n){case 65:case 88:return this.m_eStatus=r?10:11,n;case 27:return this.m_eFailureState=m.NZ.Expired,this.m_onCompleteCallback({bSuccess:!1}),n;default:return console.error(`Failed to update auth session with SG code. Result: ${n}`),this.m_eFailureState=m.NZ.Generic,this.m_onCompleteCallback({bSuccess:!1}),n}}return this.m_eStatus=13,this.StartPolling(),n}catch(e){return console.error(`Failed to update auth session with SG code. ${e}`),this.m_eFailureState=m.NZ.Generic,this.m_onCompleteCallback({bSuccess:!1}),2}}))}UseCodeOverride(){switch(this.m_eStatus){case 6:return this.m_bUsingCodeOverride=!0,void(this.m_eStatus=5);case 4:return this.m_bUsingCodeOverride=!0,void(this.m_eStatus=3);default:return void console.error(`Don't know how to UseCodeOverride from login session status ${this.m_eStatus}`)}}CantAccessCode(){console.log("can't access code"),this.m_eStatus=7}StartMoveAuthenticator(){return(0,i.mG)(this,void 0,void 0,(function*(){this.m_weakAuthWebInterface=new _.J(u.De.WEBAPI_BASE_URL,this.m_strWeakAuthToken);try{const e=s.gA.Init(p._w),t=yield p.Sz.RemoveAuthenticatorViaChallengeStart(this.m_weakAuthWebInterface.GetServiceTransport(),e);1!=t.GetEResult()?(t.DEBUG_LogToConsole(),console.error("An unexpected error occured while adding an authenticator",t.GetEResult()),this.m_eFailureState=m.NZ.Generic,this.m_eStatus=15):(console.log("Server sent us an SMS"),this.m_eStatus=8)}catch(e){console.error("An unexpected error occured while moving an authenticator",e),this.m_eFailureState=m.NZ.Generic,this.m_eStatus=15}}))}ResendMoveCode(){return(0,i.mG)(this,void 0,void 0,(function*(){const e=s.gA.Init(p._w),t=yield p.Sz.RemoveAuthenticatorViaChallengeStart(this.m_weakAuthWebInterface.GetServiceTransport(),e);1!=t.GetEResult()?(t.DEBUG_LogToConsole(),console.error("An unexpected error occured while adding an authenticator",t.GetEResult()),this.m_eFailureState=m.NZ.Generic,this.m_eStatus=15):(console.log("Server resent us an SMS"),this.m_eStatus=8)}))}FinishMoveAuthenticator(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=s.gA.Init(p.AX);t.Body().set_sms_code(e),t.Body().set_generate_new_token(!0);const r=yield p.Sz.RemoveAuthenticatorViaChallengeContinue(this.m_weakAuthWebInterface.GetServiceTransport(),t);94==r.GetEResult()?(console.log(`Invalid SMS code for authenticator move ${e}`),this.m_eStatus=12):r.Body().success()?(this.m_replacementAuthenticator=(0,m.tY)(r.Body().replacement_token().toObject()),console.log("Server sent us a replacement token",this.m_replacementAuthenticator),this.m_eStatus=9,this.m_bUsingCodeOverride=!1):(r.DEBUG_LogToConsole(),console.error("Error when calling RemoveAuthenticatorViaChallengeContinue",r.GetEResult()),this.m_eFailureState=m.NZ.Generic,this.m_eStatus=15)}))}FinishMoveRecovery(){console.log("Moving to hand the code to the server and finish the login"),this.m_eStatus=5}BCanGoBack(){switch(this.m_eStatus){case 5:case 11:case 3:case 10:case 6:case 4:case 7:case 8:case 12:return!0;default:return!1}}GoBack(){switch(this.m_eStatus){case 6:case 4:this.m_eStatus=0;break;case 5:case 11:this.m_eStatus=this.m_bUsingCodeOverride?6:0;break;case 7:case 8:case 12:this.m_eStatus=(this.m_bUsingCodeOverride,5);break;case 3:case 10:this.m_eStatus=this.m_bUsingCodeOverride?4:0;break;default:return void console.error(`Don't know how to GoBack from login session status ${this.m_eStatus}`)}}}(0,i.gn)([o.LO],b.prototype,"m_eStatus",void 0),(0,i.gn)([h.ak],b.prototype,"Start",null),(0,i.gn)([h.ak],b.prototype,"SendSteamGuardCode",null),(0,i.gn)([h.ak],b.prototype,"UseCodeOverride",null),(0,i.gn)([h.ak],b.prototype,"CantAccessCode",null),(0,i.gn)([h.ak],b.prototype,"StartMoveAuthenticator",null),(0,i.gn)([h.ak],b.prototype,"ResendMoveCode",null),(0,i.gn)([h.ak],b.prototype,"FinishMoveAuthenticator",null),(0,i.gn)([h.ak],b.prototype,"FinishMoveRecovery",null),(0,i.gn)([h.ak],b.prototype,"GoBack",null);const y=[4,3,2,1,0,5].reduce(((e,t,r)=>(e[t]=r,e)),{});function B(e){return/[23456789BCDFGHJKMNPQRTVWXY]*/g.test(e)&&e.length<=5}function w(e){return B(e)&&5===e.length}var C=r(12369),S=r(59701),v=r.n(S),E=r(14344),R=r(43921),F=r.n(R);r(21645);function M(e){const{transport:t,onComplete:r,onStatusChange:i,platform:s}=e,{eStatus:o,strChallengeURL:l,bHadRemoteInteraction:c,reset:m,setTokenToRevoke:d}=(0,C.P)({transport:t,onComplete:r,ePlatformType:s});(0,n.useEffect)((()=>i&&i(o)),[i,o]);const h=2===o?l:u.De.STORE_BASE_URL,g=0===o||1===o||c,f=4===o,_=3===o,p=g||f||_;return(0,n.useEffect)((()=>{var t;(null===(t=e.refreshInfo)||void 0===t?void 0:t.login_token_id)&&d(e.refreshInfo.login_token_id)}),[e.refreshInfo]),n.createElement("div",{className:F().Column},n.createElement("div",{style:{position:"relative"}},n.createElement(E.s_,{borderWidth:0,activeBitColor:"#212328",inactiveBitColor:"white",quality:T(h),className:(0,a.Z)(F().LoginQR,p&&F().Blur)},h),p&&n.createElement("div",{className:F().Overlay},n.createElement("div",{className:F().Box},g&&n.createElement(A,{size:"small"}),f&&n.createElement(z,{reset:m}),_&&n.createElement(k,null)))))}function T(e){return e.length<=90?E.JQ.Q:void 0}function A(e){const{size:t}=e;return n.createElement("div",{className:(0,a.Z)(F().Loading,"small"==t&&F().Small,("medium"==t||!t)&&F().Medium,"large"==t&&F().Large)})}function z(e){return n.createElement("svg",{onClick:e.reset,version:"1.1",id:"Layer_2",xmlns:"http://www.w3.org/2000/svg",style:{width:"40px",height:"40px",cursor:"pointer"},x:"0px",y:"0px",width:"256px",height:"256px",viewBox:"0 0 256 256"},n.createElement("path",{fill:"none",stroke:"#fff",strokeWidth:"30",strokeLinecap:"round",strokeMiterlimit:"10",d:"M229.809,147.639 c-9.178,47.863-51.27,84.027-101.809,84.027c-57.253,0-103.667-46.412-103.667-103.666S70.747,24.334,128,24.334 c34.107,0,64.368,16.472,83.261,41.895"}),n.createElement("polygon",{points:"147.639,108.361 245.755,10.166 245.834,108.361",fill:"#fff"}))}function k(){return n.createElement("svg",{version:"1.1",id:"base",xmlns:"http://www.w3.org/2000/svg",style:{width:"45px",height:"45px"},x:"0px",y:"0px",width:"256px",height:"256px",viewBox:"0 0 256 256"},n.createElement("polyline",{fill:"none",stroke:"#fff",strokeWidth:"24",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",points:"49.5,147.75 95,210.75 206.5,45.25 "}))}var O=r(27194),j=r(62081),L=r(7952);const N=(0,n.createContext)(!1),x=()=>(0,n.useContext)(N);function W(e){const{embedded:t}=e,r=(0,i._T)(e,["embedded"]);return n.createElement(N.Provider,{value:t},n.createElement("div",{className:v().Login},n.createElement(I,Object.assign({},r))))}function I(e){var t;const{transport:r,onSuccess:i,platform:s,disableQR:a,autoFocus:o,refreshInfo:l,renderSuccess:c=(()=>n.createElement(Re,null))}=e,h=({bSuccess:e,strRefreshToken:t,strAccessToken:r,strAccountName:n})=>{e&&i({strRefreshToken:t,strAccessToken:r,strAccountName:n})};let{eStatus:g,eFailureState:f,strConfirmationAssociatedMessage:_,strAccountName:p,start:y,reset:B,addCode:w,goBack:C,useCodeOverride:S,setTokenToRevoke:E}=function(e){const[t,r]=(0,n.useState)(new b(e));return(0,d.SZ)((()=>({strAccountName:t.GetAccountName(),steamid:t.GetSteamID(),eFailureState:t.GetFailureState(),strConfirmationAssociatedMessage:t.GetConfirmationAssociatedMessage(),eStatus:t.GetStatus(),bCanGoBack:t.BCanGoBack(),start:t.Start,addCode:t.SendSteamGuardCode,useCodeOverride:t.UseCodeOverride,cantAccessCode:t.CantAccessCode,startMoveAuthenticator:t.StartMoveAuthenticator,resendMoveCode:t.ResendMoveCode,finishMoveAuthenticator:t.FinishMoveAuthenticator,finishMoveRecovery:t.FinishMoveRecovery,replacementAuthenticator:t.GetReplacementAuthenticator(),reset:()=>r(new b(e)),goBack:t.GoBack,setTokenToRevoke:t.SetTokenToRevoke})))}({transport:r,onComplete:h,ePlatformType:s});const[R,F]=(0,n.useState)(0),[M,T]=(0,n.useState)(null!==(t=null==l?void 0:l.account_name)&&void 0!==t?t:""),[A,z]=(0,n.useState)(""),[k,j]=(0,n.useState)(!0),L=x(),N=!(0===g||1===g||2===g),W=()=>y(M,A,k),I=()=>{console.log(`Logging in offline with username ${M}`),SteamClient.User.SetLoginCredentials(M,A,k);SteamClient.User.StartOffline(!0)};if((0,n.useEffect)((()=>{var t;(null===(t=e.refreshInfo)||void 0===t?void 0:t.login_token_id)&&E(e.refreshInfo.login_token_id)}),[e.refreshInfo]),!N){const t=n.createElement("div",{className:v().SideBySide},n.createElement(X,{strAccountName:M,onAccountNameChange:T,strPassword:A,onPasswordChange:z,bRememberMe:k,onRememberMeChange:j,onSubmit:W,status:g,autoFocus:o,refreshInfo:e.refreshInfo}),!a&&n.createElement(U,{transport:r,onQRStatusChange:F,onComplete:h,platform:s,refreshInfo:l}));if(L){let e=u.De.IN_CLIENT;return n.createElement(ye,{gap:u.De.IN_LOGIN?36:void 0,className:v().EmbeddedRoot},!e&&!1,u.De.IN_LOGIN&&n.createElement(Ee,{className:v().HeaderLogo}),n.createElement(D,{refreshInfo:l}),!e&&n.createElement(P,null),t,n.createElement("div",{className:v().EmbeddedRootFooter},function(e){return e?n.createElement(pe,{onClick:()=>{SteamClient.LoginUI.ShowAccountRecovery()}},(0,O.Xx)("#Login_Help_SignIn")):n.createElement(pe,{href:`${u.De.HELP_BASE_URL}wizard/HelpWithLogin?redir=${encodeURIComponent(document.location.href)}`},(0,O.Xx)("#Login_Help_SignIn"))}(e),n.createElement("div",{className:v().AccountCreation},n.createElement("span",{className:v().AccountCreationPrompt},(0,O.Xx)("#Login_NoSteamAccount")),function(e){return e?n.createElement(pe,{inline:!0,onClick:()=>{SteamClient.LoginUI.ShowAccountCreation()}},(0,O.Xx)("#Login_CreateAccount")):n.createElement(pe,{inline:!0,href:`${u.De.STORE_BASE_URL}join/`},(0,O.Xx)("#Login_CreateAccount"))}(e))))}const i=n.createElement("div",{style:{display:"flex",flexDirection:"column",gap:"8px",margin:"8px 16px"}},!1,n.createElement("div",{className:v().PrimaryHeader},e.refreshInfo?(0,O.Xx)("#Login_RefreshSignIn"):(0,O.Xx)("#Login_SignIn")),n.createElement(D,{refreshInfo:e.refreshInfo}),n.createElement(P,null));return n.createElement(ve,{title:i},t)}switch(g){case 1:case 13:return n.createElement(re,null);case 5:case 11:case 3:case 10:const e=5===g||11===g;return n.createElement(oe,{type:e?"mobile":"email",onSubmitCode:w,status:g,associatedLabel:_,accountName:p,onBack:C});case 6:case 4:const t=6===g;return n.createElement(_e,{type:t?"mobile":"email",accountName:p,onUseCodeOverride:S});case 16:return n.createElement(ae,{reset:B});case 15:return n.createElement(se,{reset:B,failure:f,onRequestOffline:I});case 14:return n.createElement(ve,{compact:!0},c());default:return console.error(`Unknown Phase: ${g}`),n.createElement(se,{reset:B,failure:m.NZ.Generic,onRequestOffline:I})}}function D(e){var t,r;if(!u.De.IN_LOGIN_REFRESH)return null;let i;switch(null!==(r=null===(t=e.refreshInfo)||void 0===t?void 0:t.reason)&&void 0!==r?r:2){case 2:case 7:default:i="#Login_RefreshReason_Generic";break;case 6:i="#Login_RefreshReason_LoggedInElsewhere";break;case 34:i="#Login_RefreshReason_LogonSessionReplaced";break;case 5:i="#Login_RefreshReason_InvalidPassword";break;case 26:i="#Login_RefreshReason_Revoked";break;case 27:i="#Login_RefreshReason_Expired";break;case 49:i="#Login_RefreshReason_PasswordRequiredToKickSession";break;case 43:i="#Login_RefreshReason_AccountDisabled";break;case 69:i="#Login_RefreshReason_ParentalControlRestricted";break;case 84:i="#Login_RefreshReason_RateLimitExceeded"}return n.createElement(n.Fragment,null,n.createElement("div",{className:v().RefreshTitle},(0,O.Xx)("#Login_RefreshSignIn")),n.createElement("div",{className:v().RefreshReason},(0,O.Xx)(i)))}function P(){let e;return e=window.location.href.includes("?")&&window.location.href.indexOf("vlogin")>window.location.href.indexOf("?")?window.location.href.slice(0,window.location.href.indexOf("vlogin")-1):window.location.href.includes("?")?window.location.href+"&oldauth=1":window.location.href+"?oldauth=1",n.createElement("div",{className:v().EscapeHatch},(0,O.yu)("#Login_SignIn_EscapeHatch",n.createElement("a",{href:e,style:{textDecoration:"underline"}})))}function X(e){const{onSubmit:t,status:r,autoFocus:i,refreshInfo:s,strAccountName:a,onAccountNameChange:o,strPassword:l,onPasswordChange:c,bRememberMe:m,onRememberMeChange:d}=e,[h,g]=(0,n.useState)(!1),f=x(),_=1===r||13===r,p=2===r&&!h,b=p?n.createElement(te,null,(0,O.Xx)("#Login_CheckCredentials")):n.createElement(te,null," "),y=i&&!s,B=i&&!!s;return n.createElement(be,{onSubmit:()=>{h&&t().then((e=>{console.log(`password submit returned ${e}`),g(!1)}))},className:v().LoginForm},n.createElement(V,{tone:p?"danger":void 0,label:n.createElement(H,{highlight:!0},(0,O.Xx)("#Login_SignIn_WithAccountName")),value:a,onChange:e=>{g(!0),o(e)},autoFocus:y,disabled:u.De.IN_LOGIN_REFRESH}),n.createElement(V,{tone:p?"danger":void 0,label:n.createElement(H,null,(0,O.Xx)("#Login_Password")),value:l,onChange:e=>{g(!0),c(e)},type:"password",autoFocus:B}),n.createElement(q,{label:(0,O.Xx)("#Login_RememberMe_Short"),value:m,onChange:d}),n.createElement($,{loading:_}),b,!f&&n.createElement(pe,{href:`${u.De.HELP_BASE_URL}wizard/HelpWithLogin?redir=${encodeURIComponent(document.location.href)}`,align:"center"},(0,O.Xx)("#Login_Help_SignIn")))}function U(e){const{onQRStatusChange:t,transport:r,onComplete:i,platform:s,refreshInfo:o}=e,[l,c]=(0,n.useState)(!1);return n.createElement("div",{className:v().QRSection},!l&&n.createElement("div",{className:v().BetaContainer},n.createElement("div",{className:v().BetaTag},(0,O.Xx)("#Login_NewBetaFeature_Title")),n.createElement("div",{className:v().BetaSubtitleWithQR},n.createElement(fe,{className:v().PhoneIcon,phoneOutlineColor:"#42464E",backgroundColor:"#32353C",qrCodeColor:"#AFAFAF"}),n.createElement("div",{className:v().BetaSubtitle},(0,O.Xx)("#Login_BetaTesterScanQR_Subtitle"))),n.createElement("a",{href:`${u.De.COMMUNITY_BASE_URL}groups/SteamMobileApp`,className:v().JoinBetaButton},(0,O.Xx)("#Login_JoinBeta_Button")),n.createElement("div",{className:v().ShowQRLink,onClick:()=>c(!0)},(0,O.Xx)("#Login_InBetaShowQR_Link"))),l&&n.createElement("div",{className:(0,a.Z)(v().QRCodeContainer,l?v().ShowQR:"")},n.createElement(H,{highlight:!0},(0,O.Xx)("#Login_SignIn_OrWithQRCode")),n.createElement("div",{className:v().QR},n.createElement(M,{onStatusChange:t,transport:r,onComplete:i,platform:s,refreshInfo:o}))))}function V(e){const{label:t,error:r,tone:s,autoFocus:a}=e,o=(0,i._T)(e,["label","error","tone","autoFocus"]),l=null!=s?s:r?"danger":void 0;return n.createElement("div",{className:v().TextField},"string"==typeof t?n.createElement(H,null,t):t,n.createElement(Z,{type:"error"},r),n.createElement(G,Object.assign({autoFocus:a,tone:l},o)))}function H(e){const{children:t,highlight:r}=e;return n.createElement("div",{className:(0,a.Z)(v().FieldLabel,r&&v().Highlight)},t)}function G(e){const{value:t,onChange:r,type:i="text",tone:s,className:o,autoFocus:l,disabled:c}=e;return n.createElement("input",{value:t,type:i,autoFocus:l,onChange:e=>r(e.target.value),className:(0,a.Z)(v().TextInput,"danger"===s&&v().Danger,o),disabled:c})}function Z(e){const{children:t,type:r}=e;return n.createElement("div",{className:(0,a.Z)(v().FieldHint,"error"===r&&v().Error)},t)}function q(e){const{label:t,onChange:r,value:i}=e;let s=()=>{r&&r(!i)};return n.createElement("div",{className:v().CheckboxField,onClick:s,onKeyPress:e=>{" "==e.key&&(s(),e.preventDefault())}},n.createElement(Q,{value:i}),n.createElement("div",{className:v().CheckboxFieldLabel},t))}function Q(e){const{value:t}=e;return n.createElement("div",{tabIndex:0,className:v().Checkbox},t&&n.createElement("div",{className:v().Check},n.createElement(L.JrY,{strokeWidth:35})))}function $(e){var t;return u.De.IN_LOGIN_REFRESH&&(null===(t=SteamClient.User)||void 0===t?void 0:t.StartShutdown)?n.createElement(K,null):n.createElement(J,Object.assign({},e))}function J(e){return n.createElement("div",{className:v().SignInButtonContainer},n.createElement(Y,Object.assign({},e),(0,O.Xx)("#Login_SignIn")))}function K(){return n.createElement("div",{className:v().RefreshButtonContainer},n.createElement("button",{className:v().SubmitButton,type:"submit"},(0,O.Xx)("#Login_SignIn")),n.createElement("button",{className:v().RefreshQuitButton,onClick:()=>SteamClient.User.StartShutdown(!0)},(0,O.Xx)("#Login_ExitSteam")))}function Y(e){return n.createElement(ee,Object.assign({type:"submit"},e))}function ee(e){const{loading:t,disabled:r,children:s}=e,o=(0,i._T)(e,["loading","disabled","children"]),l=r||t;return n.createElement("button",Object.assign({className:(0,a.Z)(v().SubmitButton,t&&v().Loading),disabled:l},o),s,t&&n.createElement("div",{className:v().LoadingContainer},n.createElement(ie,{size:"small"})))}function te(e){const t=e.children||" ";return n.createElement("div",{className:v().FormError},t)}function re(){return n.createElement(ve,{compact:!0},n.createElement(ye,{alignItems:"center"},n.createElement(j.V,null)))}function ie(e){const{size:t}=e;return n.createElement("div",{className:(0,a.Z)(v().LoadingSpinner,"small"==t&&v().Small,("medium"==t||!t)&&v().Medium,"large"==t&&v().Large)})}function ne(e){return n.createElement("div",{className:v().OfferOffline},n.createElement("p",null,(0,O.Xx)("#Login_GoOffline_Description")),n.createElement(ee,{onClick:e.onRequestOffline},(0,O.Xx)("#Login_GoOffline_Button")))}function se(e){const{reset:t,failure:r,onRequestOffline:i}=e,{title:s,description:a}=function(e){switch(e){case m.NZ.None:return{title:"",description:""};case m.NZ.Expired:return{title:(0,O.Xx)("#Login_Error_Expired_Title"),description:(0,O.Xx)("#Login_Error_Expired_Description")};case m.NZ.Network:return{title:(0,O.Xx)("#Login_Error_Network_Title"),description:(0,O.Xx)("#Login_Error_Network_Description")};case m.NZ.Generic:default:return{title:(0,O.Xx)("#Error_Generic"),description:(0,O.Xx)("#Login_Error_Default_Description")}}}(r),o=u.De.IN_CLIENT&&r==m.NZ.Network;return n.createElement(ve,{compact:!0},n.createElement(ye,{alignItems:"center",gap:12},n.createElement("div",{className:v().FailureTitle},s),n.createElement("div",{className:v().FailureDescription},a),o&&n.createElement(ne,{onRequestOffline:i}),n.createElement(ee,{onClick:t},(0,O.Xx)("#Button_Back"))))}function ae(e){const{reset:t}=e;return n.createElement(n.Fragment,null,n.createElement("div",null,"The login process was stopped."),n.createElement("button",{onClick:t},"Reset"))}function oe(e){const{type:t,onSubmitCode:r,status:i,accountName:s,associatedLabel:a,onBack:o}=e,[l,c]=(0,n.useState)([]),[u,m]=(0,n.useState)(!1),[d,h]=(0,n.useState)(!1),g=l.join(""),f=w(g),_=e=>{h(!0),r(e).then((()=>{m(!1),h(!1)}))},p=!u&&(11===i||10===i);return n.createElement(ve,{title:(0,O.Xx)("#Login_Title_SteamGuard"),compact:!0},n.createElement(be,{onSubmit:()=>{f&&_(g)}},n.createElement(ye,{alignItems:"center",gap:20},n.createElement(me,{type:t,accountName:s}),n.createElement(ye,{alignItems:"center",gap:2},p&&n.createElement(te,null,(0,O.Xx)("#Login_IncorrectSteamGuard")),n.createElement(we,{value:l,onChange:e=>{u||m(!0),c(e);const t=e.join("");w(t)&&_(t)},tone:p?"danger":void 0,loading:d})),"mobile"===t?n.createElement(ce,null):n.createElement(ue,{emailAddress:a}),n.createElement(le,{type:t}))))}function le(e){let t,r;return"mobile"===e.type?(t=`${u.De.HELP_BASE_URL}wizard/HelpWithLoginInfo?lost=8&issueid=402`,r=(0,O.Xx)("#Login_Help_AccessMobileApp")):(t=`${u.De.HELP_BASE_URL}wizard/HelpWithSteamGuardCode`,r=(0,O.Xx)("#Login_Help_AccessEmail")),u.De.IN_CLIENT?n.createElement(pe,{onClick:()=>SteamClient.LoginUI.ShowHelpPopup(t),align:"center"},r):n.createElement(pe,{href:t,align:"center"},r)}function ce(){return n.createElement(Be,{justifyContent:"space-evenly",alignItems:"center",className:v().EnterCodeFromMobileContainer},n.createElement("div",{className:v().EnterCodeFromMobile},(0,O.Xx)("#Login_EnterMobileCode")),n.createElement(he,{className:v().AwaitingMobileConfIcon}))}function ue(e){return n.createElement(Be,{justifyContent:"space-evenly",alignItems:"center",className:v().EnterCodeFromEmailContainer},n.createElement(Se,{align:"center",spacing:6},n.createElement("div",{className:v().EnterCodeFromEmail},(0,O.kQ)("#Login_EnterEmailCode",n.createElement("span",{className:v().EnterCodeEmailAddress},e.emailAddress)))),n.createElement(ge,{className:v().AwaitingMobileConfIcon}))}function me(e){const{accountName:t,type:r}=e,i="mobile"===r?(0,O.Xx)("#Login_MobileProtectingAccount"):(0,O.Xx)("#Login_EmailProtectingAccount"),s=x();return n.createElement("div",{className:v().ProtectingAccount},n.createElement("div",{className:v().Label},(0,O.kQ)("#Login_ActiveAccountName",n.createElement("span",{className:v().AccountName},t))),!s&&n.createElement("div",{className:v().Description},i))}function de(){return n.createElement(ye,{gap:10,alignItems:"center"},n.createElement("div",{className:v().AwaitingMobileConfText},(0,O.Xx)("#Login_AwaitingMobileConfirmation")),n.createElement(he,{className:v().AwaitingMobileConfIcon}))}function he(e){return n.createElement("svg",{viewBox:"0 0 55 49",fill:"none",className:e.className},n.createElement("path",{d:"M36.1497 0.664062H18.7667C16.0532 0.664062 13.8485 2.86796 13.8485 5.49568V43.3009C13.8485 46.0134 16.0532 48.1326 18.7667 48.1326H36.0649C38.7784 48.1326 40.9831 45.9287 40.9831 43.3009V5.49568C40.9831 2.78319 38.8632 0.664062 36.1497 0.664062ZM38.1848 43.3009C38.1848 44.4029 37.2521 45.3353 36.1497 45.3353H18.7667C17.6643 45.3353 16.7316 44.4029 16.7316 43.3009V42.1142H38.1848V43.3009ZM38.1848 39.317H16.7316V9.73394H38.1848V39.317ZM38.1848 6.93669H16.7316V5.49568C16.7316 4.39373 17.6643 3.46131 18.7667 3.46131H36.0649C37.1673 3.46131 38.1 4.39373 38.1 5.49568V6.93669H38.1848ZM44.7988 14.7351C44.2053 14.9894 43.9509 15.5827 44.1205 16.1761C45.7316 20.3296 45.7316 24.9069 44.1205 29.0604C43.8661 29.6538 44.2053 30.3319 44.7988 30.5014C44.9684 30.5862 45.0532 30.5862 45.2228 30.5862C45.7316 30.5862 46.1556 30.3319 46.3252 29.8233C48.1907 25.1612 48.1907 19.9905 46.3252 15.2437C46.0708 14.8198 45.3924 14.4808 44.7988 14.7351ZM10.1176 14.7351C9.52399 14.4808 8.84562 14.8198 8.67603 15.4132C6.81054 20.0753 6.81054 25.246 8.67603 29.9928C8.84562 30.4166 9.2696 30.7557 9.77837 30.7557C9.94796 30.7557 10.0328 30.7557 10.2023 30.6709C10.7959 30.4166 11.0503 29.8233 10.8807 29.2299C9.2696 25.0764 9.2696 20.4991 10.8807 16.3456C10.9655 15.5827 10.7111 14.9894 10.1176 14.7351ZM52.3456 11.9378C52.0912 11.3445 51.4977 11.0902 50.9041 11.2597C50.3105 11.514 50.0562 12.1074 50.2257 12.7007V12.7855C52.9392 19.0581 52.9392 26.2631 50.2257 32.451C50.1409 32.7053 50.0562 33.0444 50.2257 33.2987C50.3105 33.553 50.5649 33.8072 50.8193 33.892C50.9889 33.9768 51.0737 33.9768 51.2433 33.9768C51.6673 33.9768 52.0912 33.7225 52.2608 33.2987C55.3135 26.6022 55.3135 18.719 52.3456 11.9378ZM4.69065 12.7855C4.94504 12.1921 4.69065 11.514 4.09709 11.2597C3.8427 11.1749 3.50352 11.0902 3.24913 11.2597C2.99475 11.3445 2.74036 11.5988 2.65557 11.8531C-0.312272 18.719 -0.312272 26.5174 2.65557 33.3834C2.82516 33.8072 3.24913 34.0615 3.67311 34.0615C3.8427 34.0615 4.01229 34.0615 4.09709 33.9768C4.35147 33.892 4.60586 33.6377 4.69065 33.3834C4.77545 33.1291 4.77545 32.7901 4.69065 32.5358C1.9772 26.2631 1.9772 19.0581 4.69065 12.7855ZM20.3778 15.9218C21.2257 15.9218 21.8193 15.2437 21.8193 14.4808C21.8193 13.7179 21.1409 13.0398 20.3778 13.0398C19.6146 13.0398 18.9363 13.7179 18.9363 14.4808C18.9363 15.2437 19.6146 15.9218 20.3778 15.9218ZM24.1088 15.9218C24.9567 15.9218 25.5503 15.2437 25.5503 14.4808C25.5503 13.7179 24.8719 13.0398 24.1088 13.0398C23.2608 13.0398 22.6673 13.7179 22.6673 14.4808C22.5825 15.2437 23.2608 15.9218 24.1088 15.9218ZM27.755 15.9218C28.6029 15.9218 29.1965 15.2437 29.1965 14.4808C29.1965 13.7179 28.5181 13.0398 27.755 13.0398C26.907 13.0398 26.3135 13.7179 26.3135 14.4808C26.3135 15.2437 26.9918 15.9218 27.755 15.9218ZM31.4012 15.9218C32.2491 15.9218 32.8427 15.2437 32.8427 14.4808C32.8427 13.7179 32.1643 13.0398 31.4012 13.0398C30.5532 13.0398 29.9597 13.7179 29.9597 14.4808C29.9597 15.2437 30.638 15.9218 31.4012 15.9218ZM35.1322 15.9218C35.9801 15.9218 36.5737 15.2437 36.5737 14.4808C36.5737 13.7179 35.8953 13.0398 35.1322 13.0398C34.2842 13.0398 33.6907 13.7179 33.6907 14.4808C33.6059 15.2437 34.2842 15.9218 35.1322 15.9218Z",fill:"#1A99FF"}))}function ge(e){return n.createElement("svg",{viewBox:"0 0 58 56",fill:"none",className:e.className},n.createElement("path",{d:"M57.9352 24.5887C57.8463 24.233 57.8463 23.8774 57.6684 23.5217C57.4017 22.8993 57.046 22.4547 56.5125 22.0101L49.577 16.4083V10.9844C49.577 8.85041 47.8876 7.16098 45.7536 7.16098H38.1956L31.5269 1.73706C30.1042 0.581137 28.0591 0.581137 26.6364 1.73706L19.9677 7.16098H12.4097C10.2757 7.16098 8.58631 8.93932 8.58631 10.9844V16.4083L1.56188 22.0101C1.02838 22.3658 0.672713 22.8993 0.405962 23.5217V23.6106C0.228128 24.1441 0.050293 24.5887 0.050293 25.1222V52.1529C0.050293 53.2199 0.494878 54.1091 1.1173 54.8204C1.82863 55.5318 2.80672 55.8874 3.7848 55.8874H54.0228C55.0898 55.8874 55.979 55.4428 56.6903 54.8204C57.4017 54.1091 57.7573 53.131 57.7573 52.1529V25.1222C57.9352 24.8554 57.9352 24.7665 57.9352 24.5887ZM49.577 19.7872L54.7342 23.9663L49.577 28.9456V19.7872ZM28.148 3.60431C28.4148 3.42648 28.6815 3.24864 28.9483 3.24864C29.3039 3.24864 29.5707 3.33756 29.7485 3.60431L34.0165 7.07207H23.9689L28.148 3.60431ZM10.9871 10.9844C10.9871 10.2731 11.5206 9.73958 12.2319 9.73958H45.6646C46.376 9.73958 46.9095 10.362 46.9095 10.9844V31.4353L46.8206 31.5242L40.2407 37.9262H17.6558L11.076 31.5242L10.9871 31.4353V10.9844ZM8.40848 19.7872V28.9456L3.34022 23.9663L8.40848 19.7872ZM2.62888 51.6194V26.9005L15.2551 39.26L2.62888 51.6194ZM4.49614 53.3088L17.6558 40.5048H40.2407L53.4004 53.3088H4.49614ZM55.3566 51.6194L42.6415 39.1711L55.2677 26.8116V51.6194H55.3566ZM29.0372 35.3476C30.5488 35.3476 31.9715 35.0809 33.3941 34.5474C34.0165 34.2806 34.3722 33.4804 34.1055 32.858C33.8387 32.2355 33.0385 31.8799 32.416 32.1466C31.349 32.5912 30.1931 32.769 29.0372 32.769C27.3478 32.769 25.7473 32.3245 24.4135 31.5242C21.746 29.9237 20.0566 27.0784 20.0566 23.7884C20.0566 18.8091 24.0579 14.8078 29.0372 14.8078C34.0165 14.8078 38.0178 18.8091 38.0178 23.7884V24.4109C38.0178 25.4779 37.2175 26.367 36.0616 26.367C34.9946 26.367 34.1055 25.4779 34.1055 24.4109V23.7884C34.1055 20.9431 31.7936 18.6313 28.9483 18.6313C26.1029 18.6313 23.7911 20.9431 23.7911 23.7884C23.7911 26.6338 26.1029 28.9456 28.9483 28.9456C30.3709 28.9456 31.7047 28.3232 32.5939 27.434C33.3941 28.4121 34.639 28.9456 35.9727 28.9456C38.4624 28.9456 40.5075 26.9894 40.5075 24.4109V23.7884C40.5075 17.3864 35.2614 12.2292 28.9483 12.2292C22.6352 12.2292 17.3891 17.4753 17.3891 23.7884C17.3891 26.7227 18.545 29.4791 20.3233 31.5242C22.5463 33.925 25.5694 35.3476 29.0372 35.3476ZM29.0372 26.367C27.6145 26.367 26.4586 25.2111 26.4586 23.7884C26.4586 22.3658 27.6145 21.2098 29.0372 21.2098C30.4599 21.2098 31.6158 22.3658 31.6158 23.7884C31.5269 25.2111 30.371 26.367 29.0372 26.367Z",fill:"#1A99FF"}))}function fe(e){var t,r,i;return n.createElement("svg",{className:e.className,width:"34",height:"52",viewBox:"0 0 34 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.993001 3.2C0.993001 2.0799 0.993001 1.51984 1.21099 1.09202C1.40273 0.715695 1.7087 0.409734 2.08502 0.217987C2.51284 0 3.0729 0 4.193 0H29.793C30.9131 0 31.4732 0 31.901 0.217987C32.2773 0.409734 32.5833 0.715695 32.775 1.09202C32.993 1.51984 32.993 2.0799 32.993 3.2V48.8C32.993 49.9201 32.993 50.4802 32.775 50.908C32.5833 51.2843 32.2773 51.5903 31.901 51.782C31.4732 52 30.9131 52 29.793 52H4.193C3.0729 52 2.51284 52 2.08502 51.782C1.7087 51.5903 1.40273 51.2843 1.21099 50.908C0.993001 50.4802 0.993001 49.9201 0.993001 48.8V3.2ZM33 19.2967C33 19.1328 33.1328 19 33.2967 19C33.4606 19 33.5934 19.1328 33.5934 19.2967V25.8924C33.5934 26.0563 33.4606 26.1891 33.2967 26.1891C33.1328 26.1891 33 26.0563 33 25.8924V19.2967ZM0.690255 12.8531C0.854118 12.8531 0.986956 12.986 0.986956 13.1498V14.735C0.986956 14.8988 0.854118 15.0317 0.690255 15.0317C0.526392 15.0317 0.393555 14.8988 0.393555 14.735V13.1498C0.393555 12.986 0.526392 12.8531 0.690255 12.8531ZM0.986956 23.8975C0.986956 23.7337 0.854118 23.6008 0.690255 23.6008C0.526392 23.6008 0.393555 23.7337 0.393555 23.8975V27.8064C0.393555 27.9703 0.526392 28.1031 0.690255 28.1031C0.854118 28.1031 0.986956 27.9703 0.986956 27.8064V23.8975ZM0.690255 17.3557C0.854118 17.3557 0.986956 17.4886 0.986956 17.6524V21.5613C0.986956 21.7252 0.854118 21.858 0.690255 21.858C0.526392 21.858 0.393555 21.7252 0.393555 21.5613V17.6524C0.393555 17.4886 0.526392 17.3557 0.690255 17.3557Z",fill:null!==(t=e.phoneOutlineColor)&&void 0!==t?t:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.10899 2.54601C3 2.75992 3 3.03995 3 3.6V48.4C3 48.9601 3 49.2401 3.10899 49.454C3.20487 49.6422 3.35785 49.7951 3.54601 49.891C3.75992 50 4.03995 50 4.6 50H29.4C29.9601 50 30.2401 50 30.454 49.891C30.6422 49.7951 30.7951 49.6422 30.891 49.454C31 49.2401 31 48.9601 31 48.4V3.6C31 3.03995 31 2.75992 30.891 2.54601C30.7951 2.35785 30.6422 2.20487 30.454 2.10899C30.2401 2 29.9601 2 29.4 2H23C22.9469 2 22.8965 2.0232 22.8562 2.06277C22.7957 2.12213 22.7857 2.22585 22.7855 2.32129C22.7839 3.09871 22.7694 3.51909 22.6437 3.85908C22.4867 4.28385 22.2109 4.63059 21.8671 4.82458C21.5561 5 21.1565 5 20.3571 5H13.6429C12.8435 5 12.4439 5 12.1329 4.82458C11.7891 4.63059 11.5133 4.28385 11.3563 3.85908C11.2306 3.51909 11.2161 3.09871 11.2145 2.32129C11.2143 2.22585 11.2043 2.12213 11.1438 2.06277C11.1035 2.0232 11.0531 2 11 2H4.6C4.03995 2 3.75992 2 3.54601 2.10899C3.35785 2.20487 3.20487 2.35785 3.10899 2.54601Z",fill:null!==(r=e.backgroundColor)&&void 0!==r?r:"currentColor"}),n.createElement("g",{clipPath:"url(#clip0_1079_5430)"},n.createElement("path",{d:"M24.3333 17.6667H22.5V19.5H24.3333V17.6667ZM26.1667 15.8333V21.3333H20.6667V15.8333H26.1667V15.8333ZM27.0833 26.8333H25.25C24.3333 26.8333 24.3333 26.8333 24.3333 27.75V31.4167C24.3333 32.3335 24.3333 32.3335 25.25 32.3335H27.0833C28 32.3335 28 32.3335 28 31.4167V27.75C28 26.8333 28 26.8333 27.0833 26.8333ZM21.5833 26.8333C20.6665 26.8333 20.6665 26.8333 20.6665 27.75C20.6665 28.6667 20.6665 28.6667 21.5833 28.6667C22.5 28.6667 22.5 28.6667 22.5 27.75C22.5 26.8333 22.5 26.8333 21.5833 26.8333ZM27.0833 34.1667C26.1665 34.1667 26.1665 34.1667 26.1665 35.0835C26.1665 36.0002 26.1665 36.0002 27.0833 36.0002C28 36 28 36 28 35.0833C28 34.1667 28 34.1667 27.0833 34.1667ZM16.0833 23.1667C15.1665 23.1667 15.1665 23.1667 15.1665 24.0835C15.1665 25.0002 15.1665 25.0002 16.0833 25.0002C17 25.0002 17 25 17 24.0833C17 23.1665 17 23.1667 16.0833 23.1667ZM11.5 17.6667H9.66674V19.5H11.5V17.6667ZM13.3333 15.8333V21.3333H7.83326V15.8333H13.3333V15.8333ZM14.25 14H6.91674C6 14 6 14 6 14.9167V24.0835C6 25 6 25 6.91674 25C7.83348 25 7.83348 25 7.83348 24.0833V23.1665H14.25C15.1667 23.1665 15.1667 23.1665 15.1667 22.2498V19.5H16.0835C17 19.5 17 19.5 17 18.5833C17 17.6665 17 17.6665 16.0833 17.6665H15.1665V14.9165C15.1667 14 15.1667 14 14.25 14ZM27.0833 30.5H23.4167C22.5 30.5 22.5 30.5 22.5 31.4167V34.1667H21.5833C20.6665 34.1667 20.6665 34.1667 20.6665 35.0835C20.6665 36.0002 20.6665 36.0002 21.5833 36.0002H23.4165C24.3333 36.0002 24.3333 36.0002 24.3333 35.0835V32.3335H27.0833C28 32.3335 28 32.3335 28 31.4167C28 30.5 28 30.5 27.0833 30.5ZM19.75 30.5C18.8333 30.5 18.8333 30.5 18.8333 31.4167C18.8333 32.3335 18.8333 32.3335 19.75 32.3335C20.6667 32.3335 20.6667 32.3335 20.6667 31.4167C20.6667 30.5 20.6667 30.5 19.75 30.5ZM10.5833 25C9.66652 25 9.66652 25 9.66652 25.9167V26.8335H6.91652C6 26.8333 6 26.8333 6 27.75V35.0833C6 36 6 36 6.91674 36H14.25C15.1667 36 15.1667 36 15.1667 35.0833V34.1665H17V35.0833C17 36 17 36 17.9167 36C18.8335 36 18.8335 36 18.8335 35.0833V33.25C18.8335 32.3333 18.8335 32.3333 17.9167 32.3333H15.1667V30.5H17.9167C18.8335 30.5 18.8335 30.5 18.8335 29.5833C18.8335 28.6665 18.8335 28.6665 17.9167 28.6665H15.1667V27.75C15.1667 26.8333 15.1667 26.8333 14.25 26.8333H11.5V25.9165C11.5 25 11.5 25 10.5833 25ZM13.3333 28.6667V34.1667H7.83326V28.6667H13.3333ZM11.5 30.5H9.66674V32.3333H11.5V30.5ZM27.0833 14H17.9167C17 14 17 14 17 14.9167C17 15.8335 17 15.8335 17.9167 15.8335H18.8335V22.25C18.8335 23.1667 18.8335 23.1667 19.7502 23.1667H20.667V24.0835C20.667 25.0002 20.667 25.0002 21.5837 25.0002C22.5 25 22.5 25 22.5 24.0833V23.1665H24.3333V27.75C24.3333 28.6667 24.3333 28.6667 25.25 28.6667C26.1667 28.6667 26.1667 28.6667 26.1667 27.75V23.1667H27.0835C28.0002 23.1667 28.0002 23.1667 28.0002 22.25V14.9167C28 14 28 14 27.0833 14Z",fill:null!==(i=e.qrCodeColor)&&void 0!==i?i:"currentColor"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_1079_5430"},n.createElement("rect",{width:"22",height:"22",fill:"currentColor",transform:"translate(6 14)"}))))}function _e(e){const{type:t,accountName:r,onUseCodeOverride:i}=e,s=x(),a=n.createElement(le,{type:"mobile"}),o=s?n.createElement("div",{style:{paddingBottom:"20px"}},n.createElement(pe,{align:"center",onClick:i},(0,O.Xx)("#Login_EnterCodeInstead"))):n.createElement("div",{className:v().EnterCodeInsteadLink},n.createElement(pe,{align:"center",onClick:i},(0,O.Xx)("#Login_EnterCodeInstead")));return n.createElement(ve,{title:(0,O.Xx)("#Login_Title_SteamGuard"),compact:!0},n.createElement(ye,{gap:40},n.createElement(me,{type:t,accountName:r}),n.createElement(de,null),n.createElement("div",{className:v().LinkContainer},o,a)))}function pe(e){const{children:t,align:r,inline:i}=e,s=(0,a.Z)(v().TextLink,"center"===r&&v().TextAlignCenter);if("href"in e)return n.createElement("a",{className:s,href:e.href},t);{const r=i?"span":"div";return n.createElement(r,{className:s,onClick:e.onClick},t)}}function be(e){const{onSubmit:t,children:r,className:i}=e;return n.createElement("form",{onSubmit:e=>(e.preventDefault(),t(),!1),className:i},r)}function ye(e){const{alignItems:t,justifyContent:r,gap:i,className:s,children:o}=e,l=(0,a.Z)(v().FlexCol,"center"===t&&v().AlignItemsCenter,"center"===r&&v().JustifyContentCenter,s),c=i?{gap:"number"==typeof i?`${i}px`:i}:void 0;return n.createElement("div",{className:l,style:c},o)}function Be(e){const{children:t,justifyContent:r,alignItems:i,className:s}=e,a={display:"flex",flexDirection:"row",justifyContent:r,alignItems:i};return n.createElement("div",{style:a,className:s},t)}function we(e){const{onChange:t}=e,r=(0,i._T)(e,["onChange"]);return n.createElement(Ce,Object.assign({length:5,onChange:e=>{B((e=e.map((e=>e.toUpperCase()))).join("").trim())&&t(e)},autoFocus:!0},r))}function Ce(e){const{length:t,value:r,onChange:i,onPaste:s,tone:o,autoFocus:l,disabled:c,loading:u}=e,m=(0,n.useRef)([]),d=()=>i(m.current.map((e=>e.value))),h=e=>{const t=e.target.nextElementSibling;e.target.value&&t&&t.focus(),d()},g=e=>{var t;-1===m.current.findIndex((e=>!!e.value))?null===(t=m.current[0])||void 0===t||t.select():e.target.select()},f=e=>{const t=e.target;if("Backspace"===e.key||"Delete"===e.key){const r="Backspace"===e.key?t.previousElementSibling:t.nextElementSibling;""===t.value&&r&&(r.value="",r.focus(),e.preventDefault(),d())}else if("ArrowLeft"===e.key||"ArrowRight"===e.key){const r="ArrowLeft"===e.key?t.previousElementSibling:t.nextElementSibling;r&&(r.focus(),e.preventDefault())}},_=e=>{const t=e.clipboardData.getData("Text");let r=e.target,i=0;for(;r&&i<t.length;)r.focus(),r.value=t.charAt(i),r=r.nextElementSibling,i++;d(),e.preventDefault(),s&&s()},p=[];for(let e=0;e<t;e++)p.push(n.createElement("input",{type:"text",maxLength:1,key:e,ref:t=>m.current[e]=t,onChange:h,onFocus:g,onClick:e=>e.stopPropagation(),onKeyDown:f,onPaste:_,value:r[e]?r[e][0]:"",autoComplete:"none",autoFocus:0===e&&l,disabled:c||u}));return n.createElement("div",{className:(0,a.Z)(v().SegmentedCharacterInput,"danger"===o&&v().Danger,c&&v().Disabled),onClick:()=>{const e=m.current.find((e=>!e.value));e?e.focus():m.current[m.current.length-1].focus()}},u&&n.createElement("div",{className:v().Loading},n.createElement(ie,{size:"small"})),p)}function Se(e){const{children:t,spacing:r=0,align:i}=e;return n.createElement(ye,{alignItems:i},n.Children.map(t,((e,t)=>e?n.createElement("div",{style:t>0?{paddingTop:`${r}px`}:void 0},e):null)).filter(Boolean))}function ve(e){const{title:t,children:r,compact:i}=e,s=x();return n.createElement(ye,{gap:32,className:(0,a.Z)(v().StandardLayout,s&&v().Embedded,i&&v().Compact,u.De.IN_CLIENT&&"IN_CLIENT")},"string"==typeof t?n.createElement("div",{className:v().PrimaryHeader},t):t,n.createElement("div",{className:v().FormContainer},r))}function Ee(e){return n.createElement("svg",{viewBox:"0 0 153 46",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.className},n.createElement("path",{d:"M22.9891 0C10.8429 0 0.93833 9.30396 0 21.1548L12.3547 26.2486C13.3973 25.5209 14.6484 25.1051 16.0037 25.1051C16.108 25.1051 16.2644 25.1051 16.3687 25.1051L21.8944 17.2045C21.8944 17.1525 21.8944 17.1525 21.8944 17.1006C21.8944 12.3186 25.8041 8.42034 30.6 8.42034C35.3959 8.42034 39.3056 12.3186 39.3056 17.1006C39.3056 21.8825 35.3959 25.7808 30.6 25.7808C30.5479 25.7808 30.4436 25.7808 30.3915 25.7808L22.5721 31.3424C22.5721 31.4463 22.5721 31.5503 22.5721 31.6542C22.5721 35.2407 19.6528 38.1514 16.0559 38.1514C12.876 38.1514 10.2695 35.9164 9.64395 32.9017L0.781942 29.2633C3.5448 38.9311 12.4068 46 22.9891 46C35.7087 46 46.0303 35.7085 46.0303 23.026C46.0303 10.2915 35.7087 0 22.9891 0Z",fill:"#E0E1E6"}),n.createElement("path",{d:"M14.44 34.8766L11.625 33.7331C12.1463 34.7726 12.9804 35.6562 14.1272 36.124C16.6294 37.1636 19.4966 35.9681 20.5391 33.4732C21.0604 32.2777 21.0604 30.9263 20.5391 29.7308C20.0178 28.5353 19.0795 27.5997 17.8805 27.08C16.6816 26.5602 15.3783 26.6122 14.2836 27.028L17.2029 28.2235C19.0274 29.0031 19.9136 31.0822 19.1316 32.9014C18.4018 34.7726 16.2645 35.6562 14.44 34.8766Z",fill:"#E0E1E6"}),n.createElement("path",{d:"M36.3857 17.0488C36.3857 13.8782 33.7793 11.2793 30.5994 11.2793C27.4195 11.2793 24.813 13.8782 24.813 17.0488C24.813 20.2194 27.4195 22.8703 30.5994 22.8703C33.7793 22.8703 36.3857 20.2714 36.3857 17.0488ZM26.2205 17.0488C26.2205 14.6578 28.1493 12.6827 30.5994 12.6827C32.9973 12.6827 34.9782 14.6058 34.9782 17.0488C34.9782 19.4397 33.0495 21.3629 30.5994 21.3629C28.2014 21.4149 26.2205 19.4397 26.2205 17.0488Z",fill:"#E0E1E6"}),n.createElement("path",{d:"M70.6879 15.7489L69.1241 18.4517C67.9251 17.6201 66.3091 17.1003 64.9016 17.1003C63.2856 17.1003 62.2951 17.776 62.2951 18.9715C62.2951 20.4269 64.0675 20.7387 66.674 21.6743C69.489 22.6619 71.105 23.8574 71.105 26.4043C71.105 29.9387 68.3421 31.9139 64.3282 31.9139C62.3994 31.9139 60.0014 31.3941 58.229 30.3026L59.3759 27.2879C60.8355 28.0675 62.6079 28.5353 64.1718 28.5353C66.3091 28.5353 67.2995 27.7557 67.2995 26.6122C67.2995 25.3127 65.7878 24.8969 63.2856 24.0653C60.4706 23.1297 58.5418 21.8822 58.5418 19.0235C58.5418 15.8009 61.1483 13.9297 64.8494 13.9297C67.4038 14.0336 69.489 14.8653 70.6879 15.7489Z",fill:"#E0E1E6"}),n.createElement("path",{d:"M82.7305 17.4643V31.6542H79.0815V17.4643H73.8164V14.3457H87.9956V17.4643H82.7305Z",fill:"#E0E1E6"}),n.createElement("path",{d:"M95.6574 17.4124V21.3107H102.643V24.4293H95.6574V28.4836H103.737V31.6022H92.0083V14.3457H103.737V17.4643H95.6574V17.4124Z",fill:"#E0E1E6"}),n.createElement("path",{d:"M111.87 28.2756L110.723 31.6542H106.917L113.434 14.3457H117.083L123.755 31.6542H119.793L118.594 28.2756H111.87ZM115.258 18.4519L112.912 25.3649H117.708L115.258 18.4519Z",fill:"#E0E1E6"}),n.createElement("path",{d:"M142.47 21.0508L137.726 31.1864H135.693L131.001 21.1547V31.7062H127.509V14.3457H131.001L136.84 26.8723L142.47 14.3457H145.963V31.6542H142.47V21.0508Z",fill:"#E0E1E6"}),n.createElement("path",{d:"M153 16.5288C153 18.0361 151.905 18.9197 150.602 18.9197C149.299 18.9197 148.204 17.9841 148.204 16.5288C148.204 15.0214 149.351 14.1378 150.602 14.1378C151.853 14.0858 153 15.0214 153 16.5288ZM148.569 16.5288C148.569 17.7762 149.455 18.5559 150.55 18.5559C151.645 18.5559 152.531 17.7762 152.531 16.5288C152.531 15.2813 151.645 14.5016 150.55 14.5016C149.455 14.5016 148.569 15.2813 148.569 16.5288ZM150.602 15.2813C151.228 15.2813 151.436 15.5932 151.436 15.957C151.436 16.2689 151.228 16.4768 151.019 16.6327L151.593 17.6723H151.123L150.654 16.7367H150.133V17.6723H149.768V15.2813H150.602ZM150.185 16.3728H150.602C150.863 16.3728 151.019 16.2169 151.019 16.009C151.019 15.8011 150.915 15.6451 150.602 15.6451H150.185V16.3728Z",fill:"#E0E1E6"}))}function Re(){return n.createElement(ye,{alignItems:"center",justifyContent:"center"},n.createElement(j.V,null))}},38440:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var i=r(70655),n=r(79742),s=r(33019),a=r(10708),o=r(29786),l=r(9669),c=r.n(l),u=(r(65030),r(84242)),m=(r(71993),r(79571));r(27255);s.Message;class d{constructor(e,t,r=!1){this.m_webApiAccessToken="",this.m_bJsonMode=!1,this.m_strWebAPIBaseURL=e,this.m_webApiAccessToken=t,this.m_bJsonMode=r,this.ConstructServiceTransport()}WaitUntilLoggedOn(){return Promise.resolve()}GetServerRTime32(){return Number(new Date)}get steamid(){return new m.K}RTime32ToDate(e){return new Date(1e3*e)}GetServiceTransport(){return this.m_ServiceTransport}GetWebAPIAccessToken(){return this.m_webApiAccessToken}GetAnonymousServiceTransport(){return this.m_AnonymousServiceTransport}ConstructServiceTransport(){this.m_ServiceTransport={SendMsg:this.SendMsgAndAwaitResponse.bind(this,{bSendAuth:!0}),SendNotification:this.SendNotification.bind(this,{bSendAuth:!0})},this.m_AnonymousServiceTransport={SendMsg:this.SendMsgAndAwaitResponse.bind(this,{bSendAuth:!1}),SendNotification:this.SendNotification.bind(this,{bSendAuth:!1})}}SendMsgAndAwaitResponse(e,t,r,n,o){var l;return(0,i.mG)(this,void 0,void 0,(function*(){let i=null;try{let l=yield this.Send(e,t,r,o);if(200!=l.status||!l.data)throw new Error("Request Error");if(i=a.gA.Init(n,147),l.headers&&(l.headers["x-eresult"]&&i.Hdr().set_eresult(parseInt(l.headers["x-eresult"])),l.headers["x-error_message"]&&i.Hdr().set_error_message(l.headers["x-error_message"])),this.m_bJsonMode)i.SetBodyJSON(l.data.response);else{let e=new u.At(l.data),t=new s.BinaryReader(e.GetPacket(),e.TellGet(),e.GetCountBytesRemaining());n.deserializeBinaryFromReader(i.Body(),t)}0}catch(e){const t=401===(null===(l=null==e?void 0:e.response)||void 0===l?void 0:l.status)?"Unauthorized":null;i=this.CreateFailedMsgProtobuf(n,3,t)}return i}))}SendNotification(e,t,r,i){return this.Send(e,t,r,i),!0}Send(e,t,r,i){let s=this.CreateWebAPIURL(t),a=r.SerializeBody(),o=n.JQ(a);const l=i.eWebAPIKeyRequirement;let u=0==i.ePrivilege&&1==l,m={responseType:this.m_bJsonMode?"json":"arraybuffer",params:{},headers:i.bConstMethod?{}:{"Content-Type":"multipart/form-data"}};if(e.bSendAuth||1==l||console.error(`Attempting to invoke service ${t} without auth, but auth is required.`),this.m_webApiAccessToken&&e.bSendAuth&&!u&&(m.params.access_token=this.m_webApiAccessToken),!i.bConstMethod){const e=new FormData;return this.m_bJsonMode?e.append("input_json",JSON.stringify(r.Body().toObject())):e.append("input_protobuf_encoded",o),c().post(s,e,m)}return this.m_bJsonMode?m.params=Object.assign(Object.assign({},m.params),{input_json:JSON.stringify(r.Body().toObject())}):m.params=Object.assign(Object.assign({},m.params),{input_protobuf_encoded:o}),c().get(s,m)}CreateWebAPIURL(e){let t=e.match(/([^\.]+)\.(.+)#(\d+)/);return t&&4==t.length?`${this.m_strWebAPIBaseURL}I${t[1]}Service/${t[2]}/v${t[3]}`:null}CreateFailedMsgProtobuf(e,t,r){let i=a.gA.Init(e);return i.Hdr().set_eresult(2),i.Hdr().set_transport_error(t),r&&i.Hdr().set_error_message(r),i}}(0,i.gn)([o.a],d.prototype,"SendMsgAndAwaitResponse",null),(0,i.gn)([o.a],d.prototype,"SendNotification",null),(0,i.gn)([o.a],d.prototype,"Send",null)},36378:(e,t,r)=>{"use strict";r.d(t,{$h:()=>M,Am:()=>b,Uy:()=>h,_u:()=>m,kp:()=>a,oZ:()=>c});var i=r(33019),n=r(27255);r(21151);const s=i.Message;class a extends s{constructor(e=null){super(),a.prototype.account_name||n.aR(a.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return a.sm_m||(a.sm_m={proto:a,fields:{account_name:{n:1,br:n.FE.readString,bw:n.Xc.writeString}}}),a.sm_m}static MBF(){return a.sm_mbf||(a.sm_mbf=n.Bh(a.M())),a.sm_mbf}toObject(e=!1){return a.toObject(e,this)}static toObject(e,t){return n.TA(a.M(),e,t)}static fromObject(e){return n.aD(a.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new a;return a.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(a.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return a.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(a.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return a.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_GetPasswordRSAPublicKey_Request"}}class o extends s{constructor(e=null){super(),o.prototype.publickey_mod||n.aR(o.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return o.sm_m||(o.sm_m={proto:o,fields:{publickey_mod:{n:1,br:n.FE.readString,bw:n.Xc.writeString},publickey_exp:{n:2,br:n.FE.readString,bw:n.Xc.writeString},timestamp:{n:3,br:n.FE.readUint64String,bw:n.Xc.writeUint64String}}}),o.sm_m}static MBF(){return o.sm_mbf||(o.sm_mbf=n.Bh(o.M())),o.sm_mbf}toObject(e=!1){return o.toObject(e,this)}static toObject(e,t){return n.TA(o.M(),e,t)}static fromObject(e){return n.aD(o.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new o;return o.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(o.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return o.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(o.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return o.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_GetPasswordRSAPublicKey_Response"}}class l extends s{constructor(e=null){super(),l.prototype.confirmation_type||n.aR(l.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return l.sm_m||(l.sm_m={proto:l,fields:{confirmation_type:{n:1,br:n.FE.readEnum,bw:n.Xc.writeEnum},associated_message:{n:2,br:n.FE.readString,bw:n.Xc.writeString}}}),l.sm_m}static MBF(){return l.sm_mbf||(l.sm_mbf=n.Bh(l.M())),l.sm_mbf}toObject(e=!1){return l.toObject(e,this)}static toObject(e,t){return n.TA(l.M(),e,t)}static fromObject(e){return n.aD(l.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new l;return l.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(l.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return l.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(l.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return l.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_AllowedConfirmation"}}class c extends s{constructor(e=null){super(),c.prototype.device_friendly_name||n.aR(c.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return c.sm_m||(c.sm_m={proto:c,fields:{device_friendly_name:{n:1,br:n.FE.readString,bw:n.Xc.writeString},platform_type:{n:2,br:n.FE.readEnum,bw:n.Xc.writeEnum}}}),c.sm_m}static MBF(){return c.sm_mbf||(c.sm_mbf=n.Bh(c.M())),c.sm_mbf}toObject(e=!1){return c.toObject(e,this)}static toObject(e,t){return n.TA(c.M(),e,t)}static fromObject(e){return n.aD(c.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new c;return c.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(c.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return c.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(c.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return c.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_BeginAuthSessionViaQR_Request"}}class u extends s{constructor(e=null){super(),u.prototype.client_id||n.aR(u.M()),s.initialize(this,e,0,-1,[5],null)}static M(){return u.sm_m||(u.sm_m={proto:u,fields:{client_id:{n:1,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},challenge_url:{n:2,br:n.FE.readString,bw:n.Xc.writeString},request_id:{n:3,br:n.FE.readBytes,bw:n.Xc.writeBytes},interval:{n:4,br:n.FE.readFloat,bw:n.Xc.writeFloat},allowed_confirmations:{n:5,c:l,r:!0,q:!0},version:{n:6,br:n.FE.readInt32,bw:n.Xc.writeInt32}}}),u.sm_m}static MBF(){return u.sm_mbf||(u.sm_mbf=n.Bh(u.M())),u.sm_mbf}toObject(e=!1){return u.toObject(e,this)}static toObject(e,t){return n.TA(u.M(),e,t)}static fromObject(e){return n.aD(u.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new u;return u.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(u.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return u.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(u.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return u.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_BeginAuthSessionViaQR_Response"}}class m extends s{constructor(e=null){super(),m.prototype.device_friendly_name||n.aR(m.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return m.sm_m||(m.sm_m={proto:m,fields:{device_friendly_name:{n:1,br:n.FE.readString,bw:n.Xc.writeString},account_name:{n:2,br:n.FE.readString,bw:n.Xc.writeString},encrypted_password:{n:3,br:n.FE.readString,bw:n.Xc.writeString},encryption_timestamp:{n:4,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},remember_login:{n:5,br:n.FE.readBool,bw:n.Xc.writeBool},platform_type:{n:6,br:n.FE.readEnum,bw:n.Xc.writeEnum},persistence:{n:7,d:1,br:n.FE.readEnum,bw:n.Xc.writeEnum},website_id:{n:8,d:"Unknown",br:n.FE.readString,bw:n.Xc.writeString}}}),m.sm_m}static MBF(){return m.sm_mbf||(m.sm_mbf=n.Bh(m.M())),m.sm_mbf}toObject(e=!1){return m.toObject(e,this)}static toObject(e,t){return n.TA(m.M(),e,t)}static fromObject(e){return n.aD(m.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new m;return m.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(m.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return m.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(m.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return m.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_BeginAuthSessionViaCredentials_Request"}}class d extends s{constructor(e=null){super(),d.prototype.client_id||n.aR(d.M()),s.initialize(this,e,0,-1,[4],null)}static M(){return d.sm_m||(d.sm_m={proto:d,fields:{client_id:{n:1,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},request_id:{n:2,br:n.FE.readBytes,bw:n.Xc.writeBytes},interval:{n:3,br:n.FE.readFloat,bw:n.Xc.writeFloat},allowed_confirmations:{n:4,c:l,r:!0,q:!0},steamid:{n:5,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},weak_token:{n:6,br:n.FE.readString,bw:n.Xc.writeString}}}),d.sm_m}static MBF(){return d.sm_mbf||(d.sm_mbf=n.Bh(d.M())),d.sm_mbf}toObject(e=!1){return d.toObject(e,this)}static toObject(e,t){return n.TA(d.M(),e,t)}static fromObject(e){return n.aD(d.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new d;return d.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(d.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return d.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(d.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return d.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_BeginAuthSessionViaCredentials_Response"}}class h extends s{constructor(e=null){super(),h.prototype.client_id||n.aR(h.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return h.sm_m||(h.sm_m={proto:h,fields:{client_id:{n:1,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},request_id:{n:2,br:n.FE.readBytes,bw:n.Xc.writeBytes},token_to_revoke:{n:3,br:n.FE.readFixed64String,bw:n.Xc.writeFixed64String}}}),h.sm_m}static MBF(){return h.sm_mbf||(h.sm_mbf=n.Bh(h.M())),h.sm_mbf}toObject(e=!1){return h.toObject(e,this)}static toObject(e,t){return n.TA(h.M(),e,t)}static fromObject(e){return n.aD(h.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new h;return h.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(h.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return h.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(h.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return h.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_PollAuthSessionStatus_Request"}}class g extends s{constructor(e=null){super(),g.prototype.new_client_id||n.aR(g.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return g.sm_m||(g.sm_m={proto:g,fields:{new_client_id:{n:1,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},new_challenge_url:{n:2,br:n.FE.readString,bw:n.Xc.writeString},refresh_token:{n:3,br:n.FE.readString,bw:n.Xc.writeString},access_token:{n:4,br:n.FE.readString,bw:n.Xc.writeString},had_remote_interaction:{n:5,br:n.FE.readBool,bw:n.Xc.writeBool},account_name:{n:6,br:n.FE.readString,bw:n.Xc.writeString}}}),g.sm_m}static MBF(){return g.sm_mbf||(g.sm_mbf=n.Bh(g.M())),g.sm_mbf}toObject(e=!1){return g.toObject(e,this)}static toObject(e,t){return n.TA(g.M(),e,t)}static fromObject(e){return n.aD(g.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new g;return g.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(g.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return g.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(g.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return g.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_PollAuthSessionStatus_Response"}}class f extends s{constructor(e=null){super(),f.prototype.ip||n.aR(f.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return f.sm_m||(f.sm_m={proto:f,fields:{ip:{n:1,br:n.FE.readString,bw:n.Xc.writeString},geoloc:{n:2,br:n.FE.readString,bw:n.Xc.writeString},city:{n:3,br:n.FE.readString,bw:n.Xc.writeString},state:{n:4,br:n.FE.readString,bw:n.Xc.writeString},country:{n:5,br:n.FE.readString,bw:n.Xc.writeString},platform_type:{n:6,br:n.FE.readEnum,bw:n.Xc.writeEnum},device_friendly_name:{n:7,br:n.FE.readString,bw:n.Xc.writeString},version:{n:8,br:n.FE.readInt32,bw:n.Xc.writeInt32},login_history:{n:9,br:n.FE.readEnum,bw:n.Xc.writeEnum},requestor_location_mismatch:{n:10,br:n.FE.readBool,bw:n.Xc.writeBool},high_usage_login:{n:11,br:n.FE.readBool,bw:n.Xc.writeBool},requested_persistence:{n:12,br:n.FE.readEnum,bw:n.Xc.writeEnum}}}),f.sm_m}static MBF(){return f.sm_mbf||(f.sm_mbf=n.Bh(f.M())),f.sm_mbf}toObject(e=!1){return f.toObject(e,this)}static toObject(e,t){return n.TA(f.M(),e,t)}static fromObject(e){return n.aD(f.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new f;return f.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(f.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return f.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(f.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return f.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_GetAuthSessionInfo_Response"}}class _ extends s{constructor(e=null){super(),_.prototype.client_ids||n.aR(_.M()),s.initialize(this,e,0,-1,[1],null)}static M(){return _.sm_m||(_.sm_m={proto:_,fields:{client_ids:{n:1,r:!0,q:!0,br:n.FE.readUint64String,bw:n.Xc.writeRepeatedUint64String}}}),_.sm_m}static MBF(){return _.sm_mbf||(_.sm_mbf=n.Bh(_.M())),_.sm_mbf}toObject(e=!1){return _.toObject(e,this)}static toObject(e,t){return n.TA(_.M(),e,t)}static fromObject(e){return n.aD(_.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new _;return _.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(_.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return _.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(_.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return _.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_GetAuthSessionsForAccount_Response"}}class p extends s{constructor(e=null){super(),s.initialize(this,e,0,-1,void 0,null)}toObject(e=!1){return p.toObject(e,this)}static toObject(e,t){return e?{$jspbMessageInstance:t}:{}}static fromObject(e){return new p}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new p;return p.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return e}serializeBinary(){var e=new i.BinaryWriter;return p.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){}serializeBase64String(){var e=new i.BinaryWriter;return p.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_UpdateAuthSessionWithMobileConfirmation_Response"}}class b extends s{constructor(e=null){super(),b.prototype.client_id||n.aR(b.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return b.sm_m||(b.sm_m={proto:b,fields:{client_id:{n:1,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},steamid:{n:2,br:n.FE.readFixed64String,bw:n.Xc.writeFixed64String},code:{n:3,br:n.FE.readString,bw:n.Xc.writeString},code_type:{n:4,br:n.FE.readEnum,bw:n.Xc.writeEnum}}}),b.sm_m}static MBF(){return b.sm_mbf||(b.sm_mbf=n.Bh(b.M())),b.sm_mbf}toObject(e=!1){return b.toObject(e,this)}static toObject(e,t){return n.TA(b.M(),e,t)}static fromObject(e){return n.aD(b.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new b;return b.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(b.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return b.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(b.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return b.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_UpdateAuthSessionWithSteamGuardCode_Request"}}class y extends s{constructor(e=null){super(),s.initialize(this,e,0,-1,void 0,null)}toObject(e=!1){return y.toObject(e,this)}static toObject(e,t){return e?{$jspbMessageInstance:t}:{}}static fromObject(e){return new y}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new y;return y.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return e}serializeBinary(){var e=new i.BinaryWriter;return y.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){}serializeBase64String(){var e=new i.BinaryWriter;return y.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_UpdateAuthSessionWithSteamGuardCode_Response"}}class B extends s{constructor(e=null){super(),B.prototype.access_token||n.aR(B.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return B.sm_m||(B.sm_m={proto:B,fields:{access_token:{n:1,br:n.FE.readString,bw:n.Xc.writeString}}}),B.sm_m}static MBF(){return B.sm_mbf||(B.sm_mbf=n.Bh(B.M())),B.sm_mbf}toObject(e=!1){return B.toObject(e,this)}static toObject(e,t){return n.TA(B.M(),e,t)}static fromObject(e){return n.aD(B.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new B;return B.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(B.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return B.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(B.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return B.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_AccessToken_GenerateForApp_Response"}}class w extends s{constructor(e=null){super(),w.prototype.refresh_token||n.aR(w.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return w.sm_m||(w.sm_m={proto:w,fields:{refresh_token:{n:1,br:n.FE.readString,bw:n.Xc.writeString},access_token:{n:2,br:n.FE.readString,bw:n.Xc.writeString}}}),w.sm_m}static MBF(){return w.sm_mbf||(w.sm_mbf=n.Bh(w.M())),w.sm_mbf}toObject(e=!1){return w.toObject(e,this)}static toObject(e,t){return n.TA(w.M(),e,t)}static fromObject(e){return n.aD(w.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new w;return w.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(w.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return w.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(w.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return w.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthentication_MigrateMobileSession_Response"}}class C extends s{constructor(e=null){super(),C.prototype.token_id||n.aR(C.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return C.sm_m||(C.sm_m={proto:C,fields:{token_id:{n:1,br:n.FE.readFixed64String,bw:n.Xc.writeFixed64String},token_description:{n:2,br:n.FE.readString,bw:n.Xc.writeString},time_updated:{n:3,br:n.FE.readUint32,bw:n.Xc.writeUint32},platform_type:{n:4,br:n.FE.readEnum,bw:n.Xc.writeEnum},token_state:{n:5,br:n.FE.readEnum,bw:n.Xc.writeEnum},owner_steamid:{n:6,br:n.FE.readFixed64String,bw:n.Xc.writeFixed64String}}}),C.sm_m}static MBF(){return C.sm_mbf||(C.sm_mbf=n.Bh(C.M())),C.sm_mbf}toObject(e=!1){return C.toObject(e,this)}static toObject(e,t){return n.TA(C.M(),e,t)}static fromObject(e){return n.aD(C.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new C;return C.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(C.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return C.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(C.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return C.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CSupportRefreshTokenDescription"}}class S extends s{constructor(e=null){super(),S.prototype.refresh_tokens||n.aR(S.M()),s.initialize(this,e,0,-1,[1],null)}static M(){return S.sm_m||(S.sm_m={proto:S,fields:{refresh_tokens:{n:1,c:C,r:!0,q:!0}}}),S.sm_m}static MBF(){return S.sm_mbf||(S.sm_mbf=n.Bh(S.M())),S.sm_mbf}toObject(e=!1){return S.toObject(e,this)}static toObject(e,t){return n.TA(S.M(),e,t)}static fromObject(e){return n.aD(S.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new S;return S.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(S.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return S.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(S.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return S.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthenticationSupport_QueryRefreshTokensByAccount_Response"}}class v extends s{constructor(e=null){super(),v.prototype.refresh_tokens||n.aR(v.M()),s.initialize(this,e,0,-1,[1],null)}static M(){return v.sm_m||(v.sm_m={proto:v,fields:{refresh_tokens:{n:1,c:C,r:!0,q:!0}}}),v.sm_m}static MBF(){return v.sm_mbf||(v.sm_mbf=n.Bh(v.M())),v.sm_mbf}toObject(e=!1){return v.toObject(e,this)}static toObject(e,t){return n.TA(v.M(),e,t)}static fromObject(e){return n.aD(v.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new v;return v.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(v.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return v.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(v.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return v.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CAuthenticationSupportByAccount_QueryRefreshTokenByID_Response"}}class E extends s{constructor(e=null){super(),E.prototype.nonce||n.aR(E.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return E.sm_m||(E.sm_m={proto:E,fields:{nonce:{n:1,br:n.FE.readString,bw:n.Xc.writeString},expiry:{n:2,br:n.FE.readUint32,bw:n.Xc.writeUint32}}}),E.sm_m}static MBF(){return E.sm_mbf||(E.sm_mbf=n.Bh(E.M())),E.sm_mbf}toObject(e=!1){return E.toObject(e,this)}static toObject(e,t){return n.TA(E.M(),e,t)}static fromObject(e){return n.aD(E.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new E;return E.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(E.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return E.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(E.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return E.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CCloudGaming_CreateNonce_Response"}}class R extends s{constructor(e=null){super(),R.prototype.appid||n.aR(R.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return R.sm_m||(R.sm_m={proto:R,fields:{appid:{n:1,br:n.FE.readUint32,bw:n.Xc.writeUint32},minutes_remaining:{n:2,br:n.FE.readUint32,bw:n.Xc.writeUint32}}}),R.sm_m}static MBF(){return R.sm_mbf||(R.sm_mbf=n.Bh(R.M())),R.sm_mbf}toObject(e=!1){return R.toObject(e,this)}static toObject(e,t){return n.TA(R.M(),e,t)}static fromObject(e){return n.aD(R.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new R;return R.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(R.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return R.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(R.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return R.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CCloudGaming_TimeRemaining"}}class F extends s{constructor(e=null){super(),F.prototype.entries||n.aR(F.M()),s.initialize(this,e,0,-1,[2],null)}static M(){return F.sm_m||(F.sm_m={proto:F,fields:{entries:{n:2,c:R,r:!0,q:!0}}}),F.sm_m}static MBF(){return F.sm_mbf||(F.sm_mbf=n.Bh(F.M())),F.sm_mbf}toObject(e=!1){return F.toObject(e,this)}static toObject(e,t){return n.TA(F.M(),e,t)}static fromObject(e){return n.aD(F.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new F;return F.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(F.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return F.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(F.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return F.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CCloudGaming_GetTimeRemaining_Response"}}var M,T,A;!function(e){e.GetPasswordRSAPublicKey=function(e,t){return e.SendMsg("Authentication.GetPasswordRSAPublicKey#1",t,o,{bConstMethod:!0,ePrivilege:0,eWebAPIKeyRequirement:1})},e.BeginAuthSessionViaQR=function(e,t){return e.SendMsg("Authentication.BeginAuthSessionViaQR#1",t,u,{ePrivilege:0,eWebAPIKeyRequirement:1})},e.BeginAuthSessionViaCredentials=function(e,t){return e.SendMsg("Authentication.BeginAuthSessionViaCredentials#1",t,d,{ePrivilege:0,eWebAPIKeyRequirement:1})},e.PollAuthSessionStatus=function(e,t){return e.SendMsg("Authentication.PollAuthSessionStatus#1",t,g,{ePrivilege:0,eWebAPIKeyRequirement:1})},e.GetAuthSessionInfo=function(e,t){return e.SendMsg("Authentication.GetAuthSessionInfo#1",t,f,{ePrivilege:1})},e.UpdateAuthSessionWithMobileConfirmation=function(e,t){return e.SendMsg("Authentication.UpdateAuthSessionWithMobileConfirmation#1",t,p,{ePrivilege:1})},e.UpdateAuthSessionWithSteamGuardCode=function(e,t){return e.SendMsg("Authentication.UpdateAuthSessionWithSteamGuardCode#1",t,y,{ePrivilege:0,eWebAPIKeyRequirement:1})},e.GenerateAccessTokenForApp=function(e,t){return e.SendMsg("Authentication.GenerateAccessTokenForApp#1",t,B,{ePrivilege:0,eWebAPIKeyRequirement:1})},e.GetAuthSessionsForAccount=function(e,t){return e.SendMsg("Authentication.GetAuthSessionsForAccount#1",t,_,{bConstMethod:!0,ePrivilege:1})},e.MigrateMobileSession=function(e,t){return e.SendMsg("Authentication.MigrateMobileSession#1",t,w,{ePrivilege:0,eWebAPIKeyRequirement:1})}}(M||(M={})),function(e){e.QueryRefreshTokensByAccount=function(e,t){return e.SendMsg("AuthenticationSupport.QueryRefreshTokensByAccount#1",t,S,{bConstMethod:!0,ePrivilege:5})},e.QueryRefreshTokenByID=function(e,t){return e.SendMsg("AuthenticationSupport.QueryRefreshTokenByID#1",t,v,{bConstMethod:!0,ePrivilege:5})}}(T||(T={})),function(e){e.CreateNonce=function(e,t){return e.SendMsg("CloudGaming.CreateNonce#1",t,E,{bConstMethod:!0,ePrivilege:1})},e.GetTimeRemaining=function(e,t){return e.SendMsg("CloudGaming.GetTimeRemaining#1",t,F,{bConstMethod:!0,ePrivilege:1})}}(A||(A={}))},62689:(e,t,r)=>{"use strict";r.d(t,{AX:()=>_,Sz:()=>B,_w:()=>g});var i=r(33019),n=r(27255);const s=i.Message;class a extends s{constructor(e=null){super(),a.prototype.state||n.aR(a.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return a.sm_m||(a.sm_m={proto:a,fields:{state:{n:1,br:n.FE.readUint32,bw:n.Xc.writeUint32},inactivation_reason:{n:2,br:n.FE.readUint32,bw:n.Xc.writeUint32},authenticator_type:{n:3,br:n.FE.readUint32,bw:n.Xc.writeUint32},authenticator_allowed:{n:4,br:n.FE.readBool,bw:n.Xc.writeBool},steamguard_scheme:{n:5,br:n.FE.readUint32,bw:n.Xc.writeUint32},token_gid:{n:6,br:n.FE.readString,bw:n.Xc.writeString},email_validated:{n:7,br:n.FE.readBool,bw:n.Xc.writeBool},device_identifier:{n:8,br:n.FE.readString,bw:n.Xc.writeString},time_created:{n:9,br:n.FE.readUint32,bw:n.Xc.writeUint32},revocation_attempts_remaining:{n:10,br:n.FE.readUint32,bw:n.Xc.writeUint32},classified_agent:{n:11,br:n.FE.readString,bw:n.Xc.writeString},allow_external_authenticator:{n:12,br:n.FE.readBool,bw:n.Xc.writeBool},time_transferred:{n:13,br:n.FE.readUint32,bw:n.Xc.writeUint32}}}),a.sm_m}static MBF(){return a.sm_mbf||(a.sm_mbf=n.Bh(a.M())),a.sm_mbf}toObject(e=!1){return a.toObject(e,this)}static toObject(e,t){return n.TA(a.M(),e,t)}static fromObject(e){return n.aD(a.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new a;return a.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(a.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return a.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(a.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return a.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_Status_Response"}}class o extends s{constructor(e=null){super(),o.prototype.shared_secret||n.aR(o.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return o.sm_m||(o.sm_m={proto:o,fields:{shared_secret:{n:1,br:n.FE.readBytes,bw:n.Xc.writeBytes},serial_number:{n:2,br:n.FE.readFixed64String,bw:n.Xc.writeFixed64String},revocation_code:{n:3,br:n.FE.readString,bw:n.Xc.writeString},uri:{n:4,br:n.FE.readString,bw:n.Xc.writeString},server_time:{n:5,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},account_name:{n:6,br:n.FE.readString,bw:n.Xc.writeString},token_gid:{n:7,br:n.FE.readString,bw:n.Xc.writeString},identity_secret:{n:8,br:n.FE.readBytes,bw:n.Xc.writeBytes},secret_1:{n:9,br:n.FE.readBytes,bw:n.Xc.writeBytes},status:{n:10,br:n.FE.readInt32,bw:n.Xc.writeInt32},phone_number_hint:{n:11,br:n.FE.readString,bw:n.Xc.writeString}}}),o.sm_m}static MBF(){return o.sm_mbf||(o.sm_mbf=n.Bh(o.M())),o.sm_mbf}toObject(e=!1){return o.toObject(e,this)}static toObject(e,t){return n.TA(o.M(),e,t)}static fromObject(e){return n.aD(o.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new o;return o.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(o.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return o.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(o.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return o.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_AddAuthenticator_Response"}}class l extends s{constructor(e=null){super(),s.initialize(this,e,0,-1,void 0,null)}toObject(e=!1){return l.toObject(e,this)}static toObject(e,t){return e?{$jspbMessageInstance:t}:{}}static fromObject(e){return new l}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new l;return l.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return e}serializeBinary(){var e=new i.BinaryWriter;return l.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){}serializeBase64String(){var e=new i.BinaryWriter;return l.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_SendEmail_Response"}}class c extends s{constructor(e=null){super(),c.prototype.success||n.aR(c.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return c.sm_m||(c.sm_m={proto:c,fields:{success:{n:1,br:n.FE.readBool,bw:n.Xc.writeBool},want_more:{n:2,br:n.FE.readBool,bw:n.Xc.writeBool},server_time:{n:3,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},status:{n:4,br:n.FE.readInt32,bw:n.Xc.writeInt32}}}),c.sm_m}static MBF(){return c.sm_mbf||(c.sm_mbf=n.Bh(c.M())),c.sm_mbf}toObject(e=!1){return c.toObject(e,this)}static toObject(e,t){return n.TA(c.M(),e,t)}static fromObject(e){return n.aD(c.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new c;return c.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(c.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return c.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(c.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return c.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_FinalizeAddAuthenticator_Response"}}class u extends s{constructor(e=null){super(),u.prototype.success||n.aR(u.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return u.sm_m||(u.sm_m={proto:u,fields:{success:{n:1,br:n.FE.readBool,bw:n.Xc.writeBool},server_time:{n:3,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},revocation_attempts_remaining:{n:5,br:n.FE.readUint32,bw:n.Xc.writeUint32}}}),u.sm_m}static MBF(){return u.sm_mbf||(u.sm_mbf=n.Bh(u.M())),u.sm_mbf}toObject(e=!1){return u.toObject(e,this)}static toObject(e,t){return n.TA(u.M(),e,t)}static fromObject(e){return n.aD(u.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new u;return u.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(u.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return u.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(u.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return u.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_RemoveAuthenticator_Response"}}class m extends s{constructor(e=null){super(),m.prototype.codes||n.aR(m.M()),s.initialize(this,e,0,-1,[1],null)}static M(){return m.sm_m||(m.sm_m={proto:m,fields:{codes:{n:1,r:!0,q:!0,br:n.FE.readString,bw:n.Xc.writeRepeatedString}}}),m.sm_m}static MBF(){return m.sm_mbf||(m.sm_mbf=n.Bh(m.M())),m.sm_mbf}toObject(e=!1){return m.toObject(e,this)}static toObject(e,t){return n.TA(m.M(),e,t)}static fromObject(e){return n.aD(m.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new m;return m.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(m.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return m.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(m.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return m.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_CreateEmergencyCodes_Response"}}class d extends s{constructor(e=null){super(),s.initialize(this,e,0,-1,void 0,null)}toObject(e=!1){return d.toObject(e,this)}static toObject(e,t){return e?{$jspbMessageInstance:t}:{}}static fromObject(e){return new d}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new d;return d.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return e}serializeBinary(){var e=new i.BinaryWriter;return d.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){}serializeBase64String(){var e=new i.BinaryWriter;return d.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_DestroyEmergencyCodes_Response"}}class h extends s{constructor(e=null){super(),h.prototype.valid||n.aR(h.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return h.sm_m||(h.sm_m={proto:h,fields:{valid:{n:1,br:n.FE.readBool,bw:n.Xc.writeBool}}}),h.sm_m}static MBF(){return h.sm_mbf||(h.sm_mbf=n.Bh(h.M())),h.sm_mbf}toObject(e=!1){return h.toObject(e,this)}static toObject(e,t){return n.TA(h.M(),e,t)}static fromObject(e){return n.aD(h.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new h;return h.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(h.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return h.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(h.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return h.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_ValidateToken_Response"}}class g extends s{constructor(e=null){super(),s.initialize(this,e,0,-1,void 0,null)}toObject(e=!1){return g.toObject(e,this)}static toObject(e,t){return e?{$jspbMessageInstance:t}:{}}static fromObject(e){return new g}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new g;return g.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return e}serializeBinary(){var e=new i.BinaryWriter;return g.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){}serializeBase64String(){var e=new i.BinaryWriter;return g.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_RemoveAuthenticatorViaChallengeStart_Request"}}class f extends s{constructor(e=null){super(),f.prototype.success||n.aR(f.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return f.sm_m||(f.sm_m={proto:f,fields:{success:{n:1,br:n.FE.readBool,bw:n.Xc.writeBool}}}),f.sm_m}static MBF(){return f.sm_mbf||(f.sm_mbf=n.Bh(f.M())),f.sm_mbf}toObject(e=!1){return f.toObject(e,this)}static toObject(e,t){return n.TA(f.M(),e,t)}static fromObject(e){return n.aD(f.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new f;return f.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(f.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return f.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(f.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return f.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_RemoveAuthenticatorViaChallengeStart_Response"}}class _ extends s{constructor(e=null){super(),_.prototype.sms_code||n.aR(_.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return _.sm_m||(_.sm_m={proto:_,fields:{sms_code:{n:1,br:n.FE.readString,bw:n.Xc.writeString},generate_new_token:{n:2,br:n.FE.readBool,bw:n.Xc.writeBool}}}),_.sm_m}static MBF(){return _.sm_mbf||(_.sm_mbf=n.Bh(_.M())),_.sm_mbf}toObject(e=!1){return _.toObject(e,this)}static toObject(e,t){return n.TA(_.M(),e,t)}static fromObject(e){return n.aD(_.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new _;return _.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(_.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return _.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(_.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return _.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_RemoveAuthenticatorViaChallengeContinue_Request"}}class p extends s{constructor(e=null){super(),p.prototype.shared_secret||n.aR(p.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return p.sm_m||(p.sm_m={proto:p,fields:{shared_secret:{n:1,br:n.FE.readBytes,bw:n.Xc.writeBytes},serial_number:{n:2,br:n.FE.readFixed64String,bw:n.Xc.writeFixed64String},revocation_code:{n:3,br:n.FE.readString,bw:n.Xc.writeString},uri:{n:4,br:n.FE.readString,bw:n.Xc.writeString},server_time:{n:5,br:n.FE.readUint64String,bw:n.Xc.writeUint64String},account_name:{n:6,br:n.FE.readString,bw:n.Xc.writeString},token_gid:{n:7,br:n.FE.readString,bw:n.Xc.writeString},identity_secret:{n:8,br:n.FE.readBytes,bw:n.Xc.writeBytes},secret_1:{n:9,br:n.FE.readBytes,bw:n.Xc.writeBytes},status:{n:10,br:n.FE.readInt32,bw:n.Xc.writeInt32},steamguard_scheme:{n:11,br:n.FE.readUint32,bw:n.Xc.writeUint32},steamid:{n:12,br:n.FE.readFixed64String,bw:n.Xc.writeFixed64String}}}),p.sm_m}static MBF(){return p.sm_mbf||(p.sm_mbf=n.Bh(p.M())),p.sm_mbf}toObject(e=!1){return p.toObject(e,this)}static toObject(e,t){return n.TA(p.M(),e,t)}static fromObject(e){return n.aD(p.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new p;return p.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(p.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return p.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(p.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return p.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CRemoveAuthenticatorViaChallengeContinue_Replacement_Token"}}class b extends s{constructor(e=null){super(),b.prototype.success||n.aR(b.M()),s.initialize(this,e,0,-1,void 0,null)}static M(){return b.sm_m||(b.sm_m={proto:b,fields:{success:{n:1,br:n.FE.readBool,bw:n.Xc.writeBool},replacement_token:{n:2,c:p}}}),b.sm_m}static MBF(){return b.sm_mbf||(b.sm_mbf=n.Bh(b.M())),b.sm_mbf}toObject(e=!1){return b.toObject(e,this)}static toObject(e,t){return n.TA(b.M(),e,t)}static fromObject(e){return n.aD(b.M(),e)}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new b;return b.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return n.F(b.MBF(),e,t)}serializeBinary(){var e=new i.BinaryWriter;return b.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){n.l2(b.M(),e,t)}serializeBase64String(){var e=new i.BinaryWriter;return b.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_RemoveAuthenticatorViaChallengeContinue_Response"}}class y extends s{constructor(e=null){super(),s.initialize(this,e,0,-1,void 0,null)}toObject(e=!1){return y.toObject(e,this)}static toObject(e,t){return e?{$jspbMessageInstance:t}:{}}static fromObject(e){return new y}static deserializeBinary(e){let t=new i.BinaryReader(e),r=new y;return y.deserializeBinaryFromReader(r,t)}static deserializeBinaryFromReader(e,t){return e}serializeBinary(){var e=new i.BinaryWriter;return y.serializeBinaryToWriter(this,e),e.getResultBuffer()}static serializeBinaryToWriter(e,t){}serializeBase64String(){var e=new i.BinaryWriter;return y.serializeBinaryToWriter(this,e),e.getResultBase64String()}getClassName(){return"CTwoFactor_UpdateTokenVersion_Response"}}var B;!function(e){e.QueryStatus=function(e,t){return e.SendMsg("TwoFactor.QueryStatus#1",t,a,{ePrivilege:1})},e.AddAuthenticator=function(e,t){return e.SendMsg("TwoFactor.AddAuthenticator#1",t,o,{ePrivilege:1})},e.SendEmail=function(e,t){return e.SendMsg("TwoFactor.SendEmail#1",t,l,{ePrivilege:1})},e.FinalizeAddAuthenticator=function(e,t){return e.SendMsg("TwoFactor.FinalizeAddAuthenticator#1",t,c,{ePrivilege:1})},e.UpdateTokenVersion=function(e,t){return e.SendMsg("TwoFactor.UpdateTokenVersion#1",t,y,{ePrivilege:0,eWebAPIKeyRequirement:1})},e.RemoveAuthenticator=function(e,t){return e.SendMsg("TwoFactor.RemoveAuthenticator#1",t,u,{ePrivilege:9})},e.CreateEmergencyCodes=function(e,t){return e.SendMsg("TwoFactor.CreateEmergencyCodes#1",t,m,{ePrivilege:1})},e.DestroyEmergencyCodes=function(e,t){return e.SendMsg("TwoFactor.DestroyEmergencyCodes#1",t,d,{ePrivilege:1})},e.ValidateToken=function(e,t){return e.SendMsg("TwoFactor.ValidateToken#1",t,h,{ePrivilege:1})},e.RemoveAuthenticatorViaChallengeStart=function(e,t){return e.SendMsg("TwoFactor.RemoveAuthenticatorViaChallengeStart#1",t,f,{ePrivilege:9,eWebAPIKeyRequirement:1})},e.RemoveAuthenticatorViaChallengeContinue=function(e,t){return e.SendMsg("TwoFactor.RemoveAuthenticatorViaChallengeContinue#1",t,b,{ePrivilege:9,eWebAPIKeyRequirement:1})}}(B||(B={}))},14344:(e,t,r)=>{"use strict";r.d(t,{JQ:()=>i,s_:()=>u});var i,n=r(67294),s=r(36876),a=r.n(s),o=r(45520),l=r(50885),c=r.n(l);function u(e){let{quality:t=i.M,children:r,className:s,activeBitColor:l=null,inactiveBitColor:u=null,borderWidth:m=3}=e;const d=function(e,t={}){const{typeNumber:r,errorCorrectLevel:i}=t,[s,o]=(0,n.useState)();return(0,n.useEffect)((()=>{o(a()(e,{typeNumber:r,errorCorrectLevel:i}).modules)}),[e,r,i]),s}(r,{typeNumber:6,errorCorrectLevel:t});if(!d)return null;let h=[];for(let e=0;e<m;e++)h.push(Array(d.length+2*m).fill(!1));for(let e=0;e<d.length;e++)h.push([].concat(Array(m).fill(!1),d[e],Array(m).fill(!1)));for(let e=0;e<m;e++)h.push(Array(d.length+2*m).fill(!1));const g=[],f=(0,o.Z)(c().Bit),_=(0,o.Z)(c().Bit,c().Active),p=null!==l?{backgroundColor:l}:{},b=null!==u?{backgroundColor:u}:{};for(let e=0;e<h.length;e++)for(let t=0;t<h.length;t++){const r=h[e][t];g.push(n.createElement("div",{key:`${e}_${t}`,className:r?_:f,style:r?p:b}))}let y=h.length;return n.createElement("div",{className:(0,o.Z)(c().QRBits,s),style:{gridTemplateColumns:`repeat( ${y}, 1fr )`}},g)}!function(e){e[e.L=1]="L",e[e.M=0]="M",e[e.Q=3]="Q",e[e.H=2]="H"}(i||(i={}))},29669:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var i=r(70655),n=r(27194),s=r(65030);function a(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=[];for(let r=0;r<30;r++){const i=(0,s.j_)(r);t.push(e(i))}return function(e){const t={},r={},i=window.document.createElement("canvas");i.style.position="absolute",i.style.visibility="hidden",window.document.body.appendChild(i);const n=i.getContext("2d");for(const i of e)for(const e of Object.keys(i)){const s=n.measureText(i[e]).width;(!(e in t)||r[e]<s)&&(t[e]=i[e],r[e]=s)}return window.document.body.removeChild(i),t}(yield Promise.all(t))}))}function o(e,...t){return(0,i.mG)(this,void 0,void 0,(function*(){let r=yield a(e);for(const e of t){const t=yield a(e);r=Object.assign(Object.assign({},t),r)}n.Yt.AddTokens(r)}))}},86487:(e,t,r)=>{"use strict";r.d(t,{CK:()=>u,I2:()=>l,Mw:()=>h,Yn:()=>c,fh:()=>d,hx:()=>m,lS:()=>o});var i=r(70655),n=(r(21645),r(93035),r(27194)),s=r(29669),a=r(82155);function o(e){return r(73763)(`./steamui_${e}.json`)}function l(e){return r(71574)(`./shared_${e}.json`)}function c(){return(0,i.mG)(this,void 0,void 0,(function*(){yield(0,s.p)((e=>o(e)),(e=>l(e)))}))}function u(e){return(0,i.mG)(this,void 0,void 0,(function*(){console.log("Init localization",e);const t=n.LJ.GetLanguageFallback(e),r=e===t,[i,s,a,c]=yield Promise.all([o(e),r?null:o(t),l(e),r?null:l(t)]);n.Yt.InitFromObjects(i,s,a,c)}))}function m(e,t){const r=t?"#DisplayStatus_Compact_":"#DisplayStatus_";let i="";switch(e){case 0:i="Invalid";break;case 1:i="Launching";break;case 2:i="Uninstalling";break;case 3:i="Installing";break;case 4:i="Running";break;case 5:i="Validating";break;case 6:i="Updating";break;case 7:i="Downloading";break;case 8:i="Synchronizing";break;case 9:i="ReadyToInstall";break;case 10:i="ReadyToPreload";break;case 11:i="ReadyToLaunch";break;case 12:i="RegionRestricted";break;case 13:i="PresaleOnly";break;case 14:i="InvalidPlatform";break;case 16:i="PreloadComplete";break;case 17:i="BorrowerLocked";break;case 18:i="UpdatePaused";break;case 19:i="UpdateQueued";break;case 20:i="UpdateRequired";break;case 21:i="UpdateDisabled";break;case 22:i="DownloadPaused";break;case 23:i="DownloadQueued";break;case 24:i="DownloadRequired";break;case 25:i="DownloadDisabled";break;case 26:i="LicensePending";break;case 27:i="LicenseExpired";break;case 28:i="AvailForFree";break;case 29:i="AvailToBorrow";break;case 30:i="AvailGuestPass";break;case 31:i="Purchase";break;case 32:i="Unavailable";break;case 33:i="NotLaunchable";break;case 34:i="CloudError";break;case 35:i="CloudOutOfDate";break;case 36:i="Terminating"}return(0,n.Xx)(r+i)}function d(e,t){const r=t>1;return(0,n.Xx)((r?"#GameActionPlural_":"#GameAction_")+e)}function h(){let e=(0,a.NW)();(0,a.Qg)(n.Yt.GetTokensChangedCallbackList(),e)}},71574:(e,t,r)=>{var i={"./shared_arabic.json":[90802,7832],"./shared_brazilian.json":[28519,3298],"./shared_bulgarian.json":[86079,7781],"./shared_czech.json":[71548,8085],"./shared_danish.json":[87597,4183],"./shared_dutch.json":[60346,3602],"./shared_english.json":[96941,131],"./shared_finnish.json":[70225,1953],"./shared_french.json":[15606,4729],"./shared_german.json":[40665,4445],"./shared_greek.json":[2681,2822],"./shared_hungarian.json":[51665,5279],"./shared_italian.json":[6470,4513],"./shared_japanese.json":[37988,27],"./shared_koreana.json":[22843,4469],"./shared_latam.json":[5896,9951],"./shared_norwegian.json":[96497,1261],"./shared_polish.json":[21455,6844],"./shared_portuguese.json":[42804,9854],"./shared_romanian.json":[33057,7660],"./shared_russian.json":[89425,6403],"./shared_sc_schinese.json":[6296,4358],"./shared_schinese.json":[94401,755],"./shared_spanish.json":[48634,4097],"./shared_swedish.json":[33095,4487],"./shared_tchinese.json":[80058,9547],"./shared_thai.json":[99706,2138],"./shared_turkish.json":[37,8282],"./shared_ukrainian.json":[69403,1579],"./shared_vietnamese.json":[19382,8433]};function n(e){if(!r.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],n=t[0];return r.e(t[1]).then((()=>r.t(n,19)))}n.keys=()=>Object.keys(i),n.id=71574,e.exports=n},73763:(e,t,r)=>{var i={"./steamui_arabic.json":[31879,1879],"./steamui_brazilian.json":[4761,4761],"./steamui_bulgarian.json":[54689,4689],"./steamui_czech.json":[40303,303],"./steamui_danish.json":[4979,4979],"./steamui_dutch.json":[4625,4625],"./steamui_english.json":[59442,9442],"./steamui_finnish.json":[41623,1623],"./steamui_french.json":[70060,60],"./steamui_german.json":[72028,2028],"./steamui_greek.json":[89393,9393],"./steamui_hungarian.json":[97338,7338],"./steamui_italian.json":[2203,2203],"./steamui_japanese.json":[40760,760],"./steamui_koreana.json":[46736,6736],"./steamui_latam.json":[16168,6168],"./steamui_norwegian.json":[47107,7107],"./steamui_polish.json":[43065,3065],"./steamui_portuguese.json":[43287,3287],"./steamui_romanian.json":[58620,8620],"./steamui_russian.json":[18821,8821],"./steamui_sc_schinese.json":[37021,7021],"./steamui_schinese.json":[51202,1202],"./steamui_spanish.json":[86881,6881],"./steamui_swedish.json":[80395,395],"./steamui_tchinese.json":[27172,7172],"./steamui_thai.json":[88332,8332],"./steamui_turkish.json":[15152,5152],"./steamui_ukrainian.json":[96376,6376],"./steamui_vietnamese.json":[97897,7897]};function n(e){if(!r.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],n=t[0];return r.e(t[1]).then((()=>r.t(n,19)))}n.keys=()=>Object.keys(i),n.id=73763,e.exports=n}}]);
//# sourceMappingURL=4265.js.map