PageSourceSearch

https://ezcheck.me/static/js/defaultVendors~main~253ae210.0f32542a.chunk.js

js ezcheck.me collected 2026-10-08 23:23:10 UTC 55,672 bytes, 2 lines download raw bytes

1/*! For license information please see defaultVendors~main~253ae210.0f32542a.chunk.js.LICENSE.txt */
2(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[39],{MKeS:function(e,t,n){"use strict";var s=n("q1tI"),r=n.n(s);function i(e,t){if(null==e)return{};var n,s,r={},i=Object.keys(e);for(s=0;s<i.length;s++)n=i[s],t.indexOf(n)>=0||(r[n]=e[n]);return r}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e}).apply(this,arguments)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=n("TOwV"),c=n("xHvr"),h=n.n(c);function l(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}var f=r.a.createContext();var d={initialChunks:{}};var g=function(e){return e};function p(e){var t=e.defaultResolveComponent,n=void 0===t?g:t,s=e.render,c=e.onLoad;function p(e,t){void 0===t&&(t={});var g=function(e){return"function"===typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),p={};function S(e){return t.cacheKey?t.cacheKey(e):g.resolve?g.resolve(e):null}function v(e,s,r){var i=t.resolveComponent?t.resolveComponent(e,s):n(e);if(t.resolveComponent&&!Object(u.isValidElementType)(i))throw new Error("resolveComponent returned something that is not a React component!");return h()(r,i,{preload:!0}),i}var m,C=function(e){var n,r;function u(n){var s;return(s=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:S(n)},l(!n.__chunkExtractor||g.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(g.requireAsync(n).catch((function(){return null})),s.loadSync(),n.__chunkExtractor.addChunk(g.chunkName(n))),a(s)):(!1!==t.ssr&&(g.isReady&&g.isReady(n)||g.chunkName&&d.initialChunks[g.chunkName(n)])&&s.loadSync(),s)}r=e,(n=u).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,u.getDerivedStateFromProps=function(e,t){var n=S(e);return o({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var h=u.prototype;return h.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&"REJECTED"===e.status&&this.setCache(),this.state.loading&&this.loadAsync()},h.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},h.componentWillUnmount=function(){this.mounted=!1},h.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},h.getCacheKey=function(){return S(this.props)||JSON.stringify(this.props)},h.getCache=function(){return p[this.getCacheKey()]},h.setCache=function(e){void 0===e&&(e=void 0),p[this.getCacheKey()]=e},h.triggerOnLoad=function(){var e=this;c&&setTimeout((function(){c(e.state.result,e.props)}))},h.loadSync=function(){if(this.state.loading)try{var e=v(g.requireSync(this.props),this.props,A);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:g.resolve(this.props),chunkName:g.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},h.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var n=v(t,e.props,{Loadable:A});e.safeSetState({result:n,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},h.resolveAsync=function(){var e=this,t=this.props,n=(t.__chunkExtractor,t.forwardedRef,i(t,["__chunkExtractor","forwardedRef"])),s=this.getCache();return s||((s=g.requireAsync(n)).status="PENDING",this.setCache(s),s.then((function(){s.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:g.resolve(e.props),chunkName:g.chunkName(e.props),error:t?t.message:t}),s.status="REJECTED"}))),s},h.render=function(){var e=this.props,n=e.forwardedRef,r=e.fallback,a=(e.__chunkExtractor,i(e,["forwardedRef","fallback","__chunkExtractor"])),u=this.state,c=u.error,h=u.loading,l=u.result;if(t.suspense&&"PENDING"===(this.getCache()||this.loadAsync()).status)throw this.loadAsync();if(c)throw c;var f=r||t.fallback||null;return h?f:s({fallback:f,result:l,options:t,props:o({},a,{ref:n})})},u}(r.a.Component),y=(m=C,function(e){return r.a.createElement(f.Consumer,null,(function(t){return r.a.createElement(m,Object.assign({__chunkExtractor:t},e))}))}),A=r.a.forwardRef((function(e,t){return r.a.createElement(y,Object.assign({forwardedRef:t},e))}));return A.preload=function(e){g.requireAsync(e)},A.load=function(e){return g.requireAsync(e)},A}return{loadable:p,lazy:function(e,t){return p(e,o({},t,{suspense:!0}))}}}
vendor: 6,437 bytes, line 2
2var S=p({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return r.a.createElement(t,n)}}),v=S.loadable,m=S.lazy,C=p({onLoad:function(e,t){e&&t.forwardedRef&&("function"===typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),y=C.loadable,A=C.lazy;var U=v;U.lib=y,m.lib=A;t.a=U},TESy:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return k})),n.d(t,"d",(function(){return F})),n.d(t,"e",(function(){return q})),n.d(t,"f",(function(){return O})),n.d(t,"g",(function(){return $})),n.d(t,"h",(function(){return b})),n.d(t,"i",(function(){return Q}));var s,r=function(){function e(e){var t=e||{},n=t.ValidationData,s=t.Username,r=t.Password,i=t.AuthParameters,o=t.ClientMetadata;this.validationData=n||{},this.authParameters=i||{},this.clientMetadata=o||{},this.username=s,this.password=r}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),i=n("tjlA"),o=n("Ib8C"),a=n.n(o),u=(n("F+F2"),n("lPiR")),c=n.n(u),h=n("7VPu"),l=n.n(h),f=d;function d(e,t){null!=e&&this.fromString(e,t)}function g(){return new d(null)}var p="undefined"!==typeof navigator;p&&"Microsoft Internet Explorer"==navigator.appName?(d.prototype.am=function(e,t,n,s,r,i){for(var o=32767&t,a=t>>15;--i>=0;){var u=32767&this[e],c=this[e++]>>15,h=a*u+c*o;r=((u=o*u+((32767&h)<<15)+n[s]+(1073741823&r))>>>30)+(h>>>15)+a*c+(r>>>30),n[s++]=1073741823&u}return r},s=30):p&&"Netscape"!=navigator.appName?(d.prototype.am=function(e,t,n,s,r,i){for(;--i>=0;){var o=t*this[e++]+n[s]+r;r=Math.floor(o/67108864),n[s++]=67108863&o}return r},s=26):(d.prototype.am=function(e,t,n,s,r,i){for(var o=16383&t,a=t>>14;--i>=0;){var u=16383&this[e],c=this[e++]>>14,h=a*u+c*o;r=((u=o*u+((16383&h)<<14)+n[s]+r)>>28)+(h>>14)+a*c,n[s++]=268435455&u}return r},s=28),d.prototype.DB=s,d.prototype.DM=(1<<s)-1,d.prototype.DV=1<<s;d.prototype.FV=Math.pow(2,52),d.prototype.F1=52-s,d.prototype.F2=2*s-52;var S,v,m=new Array;for(S="0".charCodeAt(0),v=0;v<=9;++v)m[S++]=v;for(S="a".charCodeAt(0),v=10;v<36;++v)m[S++]=v;for(S="A".charCodeAt(0),v=10;v<36;++v)m[S++]=v;function C(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function y(e,t){var n=m[e.charCodeAt(t)];return null==n?-1:n}function A(e){var t=g();return t.fromInt(e),t}function U(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function D(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}D.prototype.convert=function(e){var t=g();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(d.ZERO)>0&&this.m.subTo(t,t),t},D.prototype.revert=function(e){var t=g();return e.copyTo(t),this.reduce(t),t},D.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],s=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,s,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},D.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},D.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},d.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},d.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},d.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var s=e.length,r=!1,i=0;--s>=0;){var o=y(e,s);o<0?"-"==e.charAt(s)&&(r=!0):(r=!1,0==i?this[this.t++]=o:i+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-i)-1)<<i,this[this.t++]=o>>this.DB-i):this[this.t-1]|=o<<i,(i+=n)>=this.DB&&(i-=this.DB))}this.clamp(),r&&d.ZERO.subTo(this,this)},d.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},d.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},d.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},d.prototype.lShiftTo=function(e,t){var n,s=e%this.DB,r=this.DB-s,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<s&this.DM;for(n=this.t-1;n>=0;--n)t[n+o+1]=this[n]>>r|a,a=(this[n]&i)<<s;for(n=o-1;n>=0;--n)t[n]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},d.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var s=e%this.DB,r=this.DB-s,i=(1<<s)-1;t[0]=this[n]>>s;for(var o=n+1;o<this.t;++o)t[o-n-1]|=(this[o]&i)<<r,t[o-n]=this[o]>>s;s>0&&(t[this.t-n-1]|=(this.s&i)<<r),t.t=this.t-n,t.clamp()}},d.prototype.subTo=function(e,t){for(var n=0,s=0,r=Math.min(e.t,this.t);n<r;)s+=this[n]-e[n],t[n++]=s&this.DM,s>>=this.DB;if(e.t<this.t){for(s-=e.s;n<this.t;)s+=this[n],t[n++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;n<e.t;)s-=e[n],t[n++]=s&this.DM,s>>=this.DB;s-=e.s}t.s=s<0?-1:0,s<-1?t[n++]=this.DV+s:s>0&&(t[n++]=s),t.t=n,t.clamp()},d.prototype.multiplyTo=function(e,t){var n=this.abs(),s=e.abs(),r=n.t;for(t.t=r+s.t;--r>=0;)t[r]=0;for(r=0;r<s.t;++r)t[r+n.t]=n.am(0,s[r],t,r,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&d.ZERO.subTo(t,t)},d.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var s=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,s,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},d.prototype.divRemTo=function(e,t,n){var s=e.abs();if(!(s.t<=0)){var r=this.abs();if(r.t<s.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=g());var i=g(),o=this.s,a=e.s,u=this.DB-U(s[s.t-1]);u>0?(s.lShiftTo(u,i),r.lShiftTo(u,n)):(s.copyTo(i),r.copyTo(n));var c=i.t,h=i[c-1];if(0!=h){var l=h*(1<<this.F1)+(c>1?i[c-2]>>this.F2:0),f=this.FV/l,p=(1<<this.F1)/l,S=1<<this.F2,v=n.t,m=v-c,C=null==t?g():t;
2for(i.dlShiftTo(m,C),n.compareTo(C)>=0&&(n[n.t++]=1,n.subTo(C,n)),d.ONE.dlShiftTo(c,C),C.subTo(i,i);i.t<c;)i[i.t++]=0;for(;--m>=0;){var y=n[--v]==h?this.DM:Math.floor(n[v]*f+(n[v-1]+S)*p);if((n[v]+=i.am(0,y,n,m,0,c))<y)for(i.dlShiftTo(m,C),n.subTo(C,n);n[v]<--y;)n.subTo(C,n)}null!=t&&(n.drShiftTo(c,t),o!=a&&d.ZERO.subTo(t,t)),n.t=c,n.clamp(),u>0&&n.rShiftTo(u,n),o<0&&d.ZERO.subTo(n,n)}}},d.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},d.prototype.addTo=function(e,t){for(var n=0,s=0,r=Math.min(e.t,this.t);n<r;)s+=this[n]+e[n],t[n++]=s&this.DM,s>>=this.DB;if(e.t<this.t){for(s+=e.s;n<this.t;)s+=this[n],t[n++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;n<e.t;)s+=e[n],t[n++]=s&this.DM,s>>=this.DB;s+=e.s}t.s=s<0?-1:0,s>0?t[n++]=s:s<-1&&(t[n++]=this.DV+s),t.t=n,t.clamp()},d.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)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,s=(1<<t)-1,r=!1,i="",o=this.t,a=this.DB-o*this.DB%t;if(o-- >0)for(a<this.DB&&(n=this[o]>>a)>0&&(r=!0,i=C(n));o>=0;)a<t?(n=(this[o]&(1<<a)-1)<<t-a,n|=this[--o]>>(a+=this.DB-t)):(n=this[o]>>(a-=t)&s,a<=0&&(a+=this.DB,--o)),n>0&&(r=!0),r&&(i+=C(n));return r?i:"0"},d.prototype.negate=function(){var e=g();return d.ZERO.subTo(this,e),e},d.prototype.abs=function(){return this.s<0?this.negate():this},d.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},d.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+U(this[this.t-1]^this.s&this.DM)},d.prototype.mod=function(e){var t=g();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(d.ZERO)>0&&e.subTo(t,t),t},d.prototype.equals=function(e){return 0==this.compareTo(e)},d.prototype.add=function(e){var t=g();return this.addTo(e,t),t},d.prototype.subtract=function(e){var t=g();return this.subTo(e,t),t},d.prototype.multiply=function(e){var t=g();return this.multiplyTo(e,t),t},d.prototype.divide=function(e){var t=g();return this.divRemTo(e,t,null),t},d.prototype.modPow=function(e,t,n){var s,r=e.bitLength(),i=A(1),o=new D(t);if(r<=0)return i;s=r<18?1:r<48?3:r<144?4:r<768?5:6;var a=new Array,u=3,c=s-1,h=(1<<s)-1;if(a[1]=o.convert(this),s>1){var l=g();for(o.sqrTo(a[1],l);u<=h;)a[u]=g(),o.mulTo(l,a[u-2],a[u]),u+=2}var f,d,p=e.t-1,S=!0,v=g();for(r=U(e[p])-1;p>=0;){for(r>=c?f=e[p]>>r-c&h:(f=(e[p]&(1<<r+1)-1)<<c-r,p>0&&(f|=e[p-1]>>this.DB+r-c)),u=s;0==(1&f);)f>>=1,--u;if((r-=u)<0&&(r+=this.DB,--p),S)a[f].copyTo(i),S=!1;else{for(;u>1;)o.sqrTo(i,v),o.sqrTo(v,i),u-=2;u>0?o.sqrTo(i,v):(d=i,i=v,v=d),o.mulTo(v,a[f],i)}for(;p>=0&&0==(e[p]&1<<r);)o.sqrTo(i,v),d=i,i=v,v=d,--r<0&&(r=this.DB-1,--p)}var m=o.revert(i);return n(null,m),m},d.ZERO=A(0),d.ONE=A(1);var T=function(e){return i.Buffer.from(a.a.lib.WordArray.random(e).toString(),"hex")},w=function(){function e(e){this.N=new f("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),this.g=new f("2",16),this.k=new f(this.hexHash("00"+this.N.toString(16)+"0"+this.g.toString(16)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue((function(){})),this.infoBits=i.Buffer.from("Caldera Derived Key","utf8"),this.poolName=e}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(e){var t=this;this.largeAValue?e(null,this.largeAValue):this.calculateA(this.smallAValue,(function(n,s){n&&e(n,null),t.largeAValue=s,e(null,t.largeAValue)}))},t.generateRandomSmallA=function(){var e=T(128).toString("hex");return new f(e,16).mod(this.N)},t.generateRandomString=function(){return T(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(e,t,n){var s=this;this.randomPassword=this.generateRandomString();var r=""+e+t+":"+this.randomPassword,i=this.hash(r),o=T(16).toString("hex");this.SaltToHashDevices=this.padHex(new f(o,16)),this.g.modPow(new f(this.hexHash(this.SaltToHashDevices+i),16),this.N,(function(e,t){e&&n(e,null),s.verifierDevices=s.padHex(t),n(null,null)}))},t.calculateA=function(e,t){var n=this;this.g.modPow(e,this.N,(function(e,s){e&&t(e,null),s.mod(n.N).equals(f.ZERO)&&t(new Error("Illegal paramater. A mod N cannot be 0."),null),t(null,s)}))},t.calculateU=function(e,t){return this.UHexHash=this.hexHash(this.padHex(e)+this.padHex(t)),new f(this.UHexHash,16)},t.hash=function(e){var t=e instanceof i.Buffer?a.a.lib.WordArray.create(e):e,n=c()(t).toString();return new Array(64-n.length).join("0")+n},t.hexHash=function(e){return this.hash(i.Buffer.from(e,"hex"))},t.computehkdf=function(e,t){var n=a.a.lib.WordArray.create(i.Buffer.concat([this.infoBits,i.Buffer.from(String.fromCharCode(1),"utf8")])),s=e instanceof i.Buffer?a.a.lib.WordArray.create(e):e,r=t instanceof i.Buffer?a.a.lib.WordArray.create(t):t,o=l()(s,r),u=l()(n,o);return i.Buffer.from(u.toString(),"hex").slice(0,16)},t.getPasswordAuthenticationKey=function(e,t,n,s,r){var o=this;if(n.mod(this.N).equals(f.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,n),this.UValue.equals(f.ZERO))throw new Error("U cannot be zero.");var a=""+this.poolName+e+":"+t,u=this.hash(a),c=new f(this.hexHash(this.padHex(s)+u),16);this.calculateS(c,n,(function(e,t){e&&r(e,null);var n=o.computehkdf(i.Buffer.from(o.padHex(t),"hex"),i.Buffer.from(o.padHex(o.UValue.toString(16)),"hex"));r(null,n)}))},t.calculateS=function(e,t,n){var s=this;this.g.modPow(e,this.N,(function(r,i){r&&n(r,null),t.subtract(s.k.multiply(i)).modPow(s.smallAValue.add(s.UValue.multiply(e)),s.N,(function(e,t){e&&n(e,null),n(null,t.mod(s.N))}))}))},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},t.padHex=function(e){var t=e.toString(16);return t.length%2===1?t="0"+t:-1!=="89ABCDEFabcdef".indexOf(t[0])&&(t="00"+t),t},e}(),E=function(){function e(e){this.jwtToken=e||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")[1];try{return JSON.parse(i.Buffer.from(e,"base64").toString("utf8"))}catch(t){return{}}},e}();var I=function(e){var t,n;function s(t){var n=(void 0===t?{}:t).AccessToken;return e.call(this,n||"")||this}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s}(E);var k=function(e){var t,n;function s(t){var n=(void 0===t?{}:t).IdToken;return e.call(this,n||"")||this}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s}(E),F=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),R=n("ETIr"),P=n.n(R),b=function(){function e(e){var t=void 0===e?{}:e,n=t.IdToken,s=t.RefreshToken,r=t.AccessToken,i=t.ClockDrift;if(null==r||null==n)throw new Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=s,this.accessToken=r,this.clockDrift=void 0===i?this.calculateClockDrift():i}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e<this.accessToken.getExpiration()&&e<this.idToken.getExpiration()},e}(),x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],N=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_=function(){function e(){}return e.prototype.getNowString=function(){var e=new Date,t=N[e.getUTCDay()],n=x[e.getUTCMonth()],s=e.getUTCDate(),r=e.getUTCHours();r<10&&(r="0"+r);var i=e.getUTCMinutes();i<10&&(i="0"+i);var o=e.getUTCSeconds();return o<10&&(o="0"+o),t+" "+n+" "+s+" "+r+":"+i+":"+o+" UTC "+e.getUTCFullYear()},e}(),O=function(){function e(e){var t=void 0===e?{}:e,n=t.Name,s=t.Value;this.Name=n||"",this.Value=s||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(e){return this.Value=e,this},t.getName=function(){return this.Name},t.setName=function(e){return this.Name=e,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}(),M={},B=function(){function e(){}return e.setItem=function(e,t){return M[e]=t,M[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(M,e)?M[e]:void 0},e.removeItem=function(e){return delete M[e]},e.clear=function(){return M={}},e}(),V=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=B}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),K="undefined"!==typeof navigator?navigator.userAgent:"nodejs",q=function(){function e(e){if(null==e||null==e.Username||null==e.Pool)throw new Error("Username and pool information are required.");this.username=e.Username||"",this.pool=e.Pool,this.Session=null,this.client=e.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=e.Storage||(new V).getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},t.initiateAuth=function(e,t){var n=this,s=e.getAuthParameters();s.USERNAME=this.username;var r=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),i={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:s,ClientMetadata:r};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",i,(function(e,s){if(e)return t.onFailure(e);var r=s.ChallengeName,i=s.ChallengeParameters;return"CUSTOM_CHALLENGE"===r?(n.Session=s.Session,t.customChallenge(i)):(n.signInUserSession=n.getCognitoUserSession(s.AuthenticationResult),n.cacheTokens(),t.onSuccess(n.signInUserSession))}))},t.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(new Error("Authentication flow type is invali
2d."))},t.authenticateUserDefaultAuth=function(e,t){var n,s,r=this,o=new w(this.pool.getUserPoolId().split("_")[1]),u=new _,c={};null!=this.deviceKey&&(c.DEVICE_KEY=this.deviceKey),c.USERNAME=this.username,o.getLargeAValue((function(h,d){h&&t.onFailure(h),c.SRP_A=d.toString(16),"CUSTOM_AUTH"===r.authenticationFlowType&&(c.CHALLENGE_NAME="SRP_A");var g=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),p={AuthFlow:r.authenticationFlowType,ClientId:r.pool.getClientId(),AuthParameters:c,ClientMetadata:g};r.getUserContextData(r.username)&&(p.UserContextData=r.getUserContextData(r.username)),r.client.request("InitiateAuth",p,(function(c,h){if(c)return t.onFailure(c);var d=h.ChallengeParameters;r.username=d.USER_ID_FOR_SRP,n=new f(d.SRP_B,16),s=new f(d.SALT,16),r.getCachedDeviceKeyAndPassword(),o.getPasswordAuthenticationKey(r.username,e.getPassword(),n,s,(function(e,n){e&&t.onFailure(e);var s=u.getNowString(),c=a.a.lib.WordArray.create(i.Buffer.concat([i.Buffer.from(r.pool.getUserPoolId().split("_")[1],"utf8"),i.Buffer.from(r.username,"utf8"),i.Buffer.from(d.SECRET_BLOCK,"base64"),i.Buffer.from(s,"utf8")])),f=a.a.lib.WordArray.create(n),p=P.a.stringify(l()(c,f)),S={};S.USERNAME=r.username,S.PASSWORD_CLAIM_SECRET_BLOCK=d.SECRET_BLOCK,S.TIMESTAMP=s,S.PASSWORD_CLAIM_SIGNATURE=p,null!=r.deviceKey&&(S.DEVICE_KEY=r.deviceKey);var v={ChallengeName:"PASSWORD_VERIFIER",ClientId:r.pool.getClientId(),ChallengeResponses:S,Session:h.Session,ClientMetadata:g};r.getUserContextData()&&(v.UserContextData=r.getUserContextData()),function e(t,n){return r.client.request("RespondToAuthChallenge",t,(function(s,i){return s&&"ResourceNotFoundException"===s.co
2de&&-1!==s.message.toLowerCase().indexOf("device")?(S.DEVICE_KEY=null,r.deviceKey=null,r.randomPassword=null,r.deviceGroupKey=null,r.clearCachedDeviceKeyAndPassword(),e(t,n)):n(s,i)}))}(v,(function(e,n){return e?t.onFailure(e):r.authenticateUserInternal(n,o,t)}))}))}))}))},t.authenticateUserPlainUsernamePassword=function(e,t){var n=this,s={};if(s.USERNAME=this.username,s.PASSWORD=e.getPassword(),s.PASSWORD){var r=new w(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(s.DEVICE_KEY=this.deviceKey);var i=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),o={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:s,ClientMetadata:i};this.getUserContextData(this.username)&&(o.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",o,(function(e,s){return e?t.onFailure(e):n.authenticateUserInternal(s,r,t)}))}else t.onFailure(new Error("PASSWORD parameter is required"))},t.authenticateUserInternal=function(e,t,n){var s=this,r=e.ChallengeName,o=e.ChallengeParameters;if("SMS_MFA"===r)return this.Session=e.Session,n.mfaRequired(r,o);if("SELECT_MFA_TYPE"===r)return this.Session=e.Session,n.selectMFAType(r,o);if("MFA_SETUP"===r)return this.Session=e.Session,n.mfaSetup(r,o);if("SOFTWARE_TOKEN_MFA"===r)return this.Session=e.Session,n.totpRequired(r,o);if("CUSTOM_CHALLENGE"===r)return this.Session=e.Session,n.customChallenge(o);if("NEW_PASSWORD_REQUIRED"===r){this.Session=e.Session;var a=null,u=null,c=[],h=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(o&&(a=JSON.parse(e.ChallengeParameters.userAttributes),u=JSON.parse(e.ChallengeParameters.requiredAttributes)),u)for(var l=0;l<u.length;l++)c[l]=u[l].substr(h.length);return n.newPasswordRequired(a,c)}if("DEVICE_SRP_AUTH"!==r){this.signInUserSession=this.getCognitoUserSession(e.AuthenticationResult),this.challengeName=r,this.cacheTokens();var f=e.AuthenticationResult.NewDeviceMetadata;if(null==f)return n.onSuccess(this.signInUserSession);t.generateHashDevice(e.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,e.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(r){if(r)return n.onFailure(r);var o={Salt:i.Buffer.from(t.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:i.Buffer.from(t.getVerifierDevices(),"hex").toString("base64")};s.verifierDevices=o.PasswordVerifier,s.deviceGroupKey=f.DeviceGroupKey,s.randomPassword=t.getRandomPassword(),s.client.request("ConfirmDevice",{DeviceKey:f.DeviceKey,AccessToken:s.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:o,DeviceName:K},(function(t,r){return t?n.onFailure(t):(s.deviceKey=e.AuthenticationResult.NewDeviceMetadata.DeviceKey,s.cacheDeviceKeyAndPassword(),!0===r.UserConfirmationNecessary?n.onSuccess(s.signInUserSession,r.UserConfirmationNecessary):n.onSuccess(s.signInUserSession))}))}))}else this.getDeviceResponse(n)},t.completeNewPasswordChallenge=function(e,t,n,s){var r=this;if(!e)return n.onFailure(new Error("New password is required."));var i=new w(this.pool.getUserPoolId().split("_")[1]),o=i.getNewPasswordRequiredChallengeUserAttributePrefix(),a={};t&&Object.keys(t).forEach((function(e){a[o+e]=t[e]})),a.NEW_PASSWORD=e,a.USERNAME=this.username;var u={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:a,Session:this.Session,ClientMetadata:s};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",u,(function(e,t){return e?n.onFailure(e):r.authenticateUserInternal(t,i,n)}))},t.getDeviceResponse=function(e,t){var n=this,s=new w(this.deviceGroupKey),r=new _,o={};o.USERNAME=this.username,o.DEVICE_KEY=this.deviceKey,s.getLargeAValue((function(u,c){u&&e.onFailure(u),o.SRP_A=c.toString(16);var h={ChallengeName:"DEVICE_SRP_AUTH",ClientId:n.pool.getClientId(),ChallengeResponses:o,ClientMetadata:t};n.getUserContextData()&&(h.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",h,(function(t,o){if(t)return e.onFailure(t);var u=o.ChallengeParameters,c=new f(u.SRP_B,16),h=new f(u.SALT,16);s.getPasswordAuthenticationKey(n.deviceKey,n.randomPassword,c,h,(function(t,s){if(t)return e.onFailure(t);var c=r.getNowString(),h=a.a.lib.WordArray.create(i.Buffer.concat([i.Buffer.from(n.deviceGroupKey,"utf8"),i.Buffer.from(n.deviceKey,"utf8"),i.Buffer.from(u.SECRET_BLOCK,"base64"),i.Buffer.from(c,"utf8")])),f=a.a.lib.WordArray.create(s),d=P.a.stringify(l()(h,f)),g={};g.USERNAME=n.username,g.PASSWORD_CLAIM_SECRET_BLOCK=u.SECRET_BLOCK,g.TIMESTAMP=c,g.PASSWORD_CLAIM_SIGNATURE=d,g.DEVICE_KEY=n.deviceKey;var p={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),ChallengeResponses:g,Session:o.Session};n.getUserContextData()&&(p.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",p,(function(t,s){return t?e.onFailure(t):(n.signInUserSession=n.getCognitoUserSession(s.AuthenticationResult),n.cacheTokens(),e.onSuccess(n.signInUserSession))}))}))}))}))},t.confirmRegistration=function(e,t,n,s){var r={ClientId:this.pool.getClientId(),ConfirmationCode:e,Username:this.username,ForceAliasCreation:t,ClientMetadata:s};this.getUserContextData()&&(r.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",r,(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.sendCustomChallengeAnswer=function(e,t,n){var s=this,r={};
vendor: 5,148 bytes, line 2
2r.USERNAME=this.username,r.ANSWER=e;var i=new w(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var o={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:r,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",o,(function(e,n){return e?t.onFailure(e):s.authenticateUserInternal(n,i,t)}))},t.sendMFACode=function(e,t,n,s){var r=this,o={};o.USERNAME=this.username,o.SMS_MFA_CODE=e;var a=n||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===a&&(o.SOFTWARE_TOKEN_MFA_CODE=e),null!=this.deviceKey&&(o.DEVICE_KEY=this.deviceKey);var u={ChallengeName:a,ChallengeResponses:o,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:s};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",u,(function(e,n){if(e)return t.onFailure(e);if("DEVICE_SRP_AUTH"!==n.ChallengeName){if(r.signInUserSession=r.getCognitoUserSession(n.AuthenticationResult),r.cacheTokens(),null==n.AuthenticationResult.NewDeviceMetadata)return t.onSuccess(r.signInUserSession);var s=new w(r.pool.getUserPoolId().split("_")[1]);s.generateHashDevice(n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,n.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(e){if(e)return t.onFailure(e);var o={Salt:i.Buffer.from(s.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:i.Buffer.from(s.getVerifierDevices(),"hex").toString("base64")};r.verifierDevices=o.PasswordVerifier,r.deviceGroupKey=n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,r.randomPassword=s.getRandomPassword(),r.client.request("ConfirmDevice",{DeviceKey:n.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:r.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:o,DeviceName:K},(function(e,s){return e?t.onFailure(e):(r.deviceKey=n.AuthenticationResult.NewDeviceMetadata.DeviceKey,r.cacheDeviceKeyAndPassword(),!0===s.UserConfirmationNecessary?t.onSuccess(r.signInUserSession,s.UserConfirmationNecessary):t.onSuccess(r.signInUserSession))}))}))}else r.getDeviceResponse(t)}))},t.changePassword=function(e,t,n,s){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:e,ProposedPassword:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:s},(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.enableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);var t=[];t.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.setUserMfaPreference=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:e,SoftwareTokenMfaSettings:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.disableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.deleteUser=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:t},(function(t){return t?e(t,null):(n.clearCachedUser(),e(null,"SUCCESS"))}))},t.updateAttributes=function(e,t,n){var s=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:e,ClientMetadata:n},(function(e){return e?t(e,null):s.getUserData((function(){return t(null,"SUCCESS")}),{bypassCache:!0})}))},t.getUserAttributes=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){if(t)return e(t,null);for(var s=[],r=0;r<n.UserAttributes.length;r++){var i={Name:n.UserAttributes[r].Name,Value:n.UserAttributes[r].Value},o=new O(i);s.push(o)}return e(null,s)}))},t.getMFAOptions=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()}
2,(function(t,n){return t?e(t,null):e(null,n.MFAOptions)}))},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(){var e=this;return new Promise((function(t){var n=e.signInUserSession.getRefreshToken();n&&n.getToken()?e.refreshSession(n,t):t()}))},t.getUserData=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return this.clearCachedUserData(),e(new Error("User is not authenticated"),null);var s=this.getUserDataFromCache();if(s)if(this.isFetchUserDataAndTokenRequired(t))this.fetchUserData().then((function(e){return n.refreshSessionIfPossible().then((function(){return e}))})).then((function(t){return e(null,t)})).catch(e);else try{return void e(null,JSON.parse(s))}catch(r){return this.clearCachedUserData(),void e(r,null)}else this.fetchUserData().then((function(t){e(null,t)})).catch(e)},t.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(e){var t=(e||{}).bypassCache;return void 0!==t&&t},t.fetchUserData=function(){var e=this;return this.createGetUserRequest().then((function(t){return e.cacheUserData(t),t}))},t.deleteAttributes=function(e,t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?t(e,null):t(null,"SUCCESS")}))},t.resendConfirmationCode=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.client.request("ResendConfirmationCode",n,(function(t,n){return t?e(t,null):e(null,n)}))},t.getSession=function(e){if(null==this.username)return e(new Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return e(null,this.signInUserSession);var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,n=t+".idToken",s=t+".accessToken",r=t+".refreshToken",i=t+".clockDrift";if(this.storage.getItem(n)){var o=new k({IdToken:this.storage.getItem(n)}),a=new I({AccessToken:this.storage.getItem(s)}),u=new F({RefreshToken:this.storage.getItem(r)}),c=parseInt(this.storage.getItem(i),0)||0,h=new b({IdToken:o,AccessToken:a,RefreshToken:u,ClockDrift:c});if(h.isValid())return this.signInUserSession=h,e(null,this.signInUserSession);if(!u.getToken())return e(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(u,e)}else e(new Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(e,t,n){var s=this,r={};r.REFRESH_TOKEN=e.getToken();var i="CognitoIdentityServiceProvider."+this.pool.getClientId(),o=i+".LastAuthUser";if(this.storage.getItem(o)){this.username=this.storage.getItem(o);var a=i+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(a),r.DEVICE_KEY=this.deviceKey}var u={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:r,ClientMetadata:n};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",u,(function(n,r){if(n)return"NotAuthorizedException"===n.code&&s.clearCachedUser(),t(n,null);if(r){var i=r.AuthenticationResult;return Object.prototype.hasOwnProperty.call(i,"RefreshToken")||(i.RefreshToken=e.getToken()),s.signInUserSession=s.getCognitoUserSession(i),s.cacheTokens(),t(null,s.signInUserSession)}}))},t.cacheTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",s=e+"."+this.username+".refreshToken",r=e+"."+this.username+".clockDrift",i=e+".LastAuthUser";this.storage.setItem(t,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(n,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(s,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(r,""+this.signInUserSession.getClockDrift()),this.storage.setItem(i,this.username)},t.cacheUserData=function(e){this.storage.setItem(this.userDataKey,JSON.stringify(e))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()}
2,t.cacheDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",s=e+".deviceGroupKey";this.storage.setItem(t,this.deviceKey),this.storage.setItem(n,this.randomPassword),this.storage.setItem(s,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",s=e+".deviceGroupKey";this.storage.getItem(t)&&(this.deviceKey=this.storage.getItem(t),this.randomPassword=this.storage.getItem(n),this.deviceGroupKey=this.storage.getItem(s))},t.clearCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",s=e+".deviceGroupKey";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(s)},t.clearCachedTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",s=e+"."+this.username+".refreshToken",r=e+".LastAuthUser",i=e+"."+this.username+".clockDrift";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(s),this.storage.removeItem(r),this.storage.removeItem(i)},t.getCognitoUserSession=function(e){var t=new k(e),n=new I(e),s=new F(e);return new b({IdToken:t,AccessToken:n,RefreshToken:s})},t.forgotPassword=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.getUserContextData()&&(n.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",n,(function(t,n){return t?e.onFailure(t):"function"===typeof e.inputVerificationCode?e.inputVerificationCode(n):e.onSuccess(n)}))},t.confirmPassword=function(e,t,n,s){var r={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:e,Password:t,ClientMetadata:s};this.getUserContextData()&&(r.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",r,(function(e){return e?n.onFailure(e):n.onSuccess()}))},t.getAttributeVerificationCode=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:n},(function(e,n){return e?t.onFailure(e):"function"===typeof t.inputVerificationCode?t.inputVerificationCode(n):t.onSuccess()}))},t.verifyAttribute=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:e,Code:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?n.onFailure(e):n.onSuccess("SUCCESS")}))},t.getDevice=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},(function(t,n){return t?e.onFailure(t):e.onSuccess(n)}))},t.forgetSpecificDevice=function(e,t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:e},(function(e){return e?t.onFailure(e):t.onSuccess("SUCCESS")}))},t.forgetDevice=function(e){var t=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:e.onFailure,onSuccess:function(n){return t.deviceKey=null,t.deviceGroupKey=null,t.randomPassword=null,t.clearCachedDeviceKeyAndPassword(),e.onSuccess(n)}})},t.setDeviceStatusRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},t.setDeviceStatusNotRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},t.listDevices=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));var s={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:e};t&&(s.PaginationToken=t),this.client.request("ListDevices",s,(function(e,t){return e?n.onFailure(e):n.onSuccess(t)}))},t.globalSignOut=function(e){var t=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(n){return n?e.onFailure(n):(t.clearCachedUser(),e.onSuccess("SUCCESS"))}))},t.signOut=function(){this.signInUserSession=null,this.clearCachedUser()},t.sendMFASelectionAnswer=function(e,t){var n=this,s={};s.USERNAME=this.username,s.ANSWER=e;var r={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:s,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(r.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",r,(function(s,r){return s?t.onFailure(s):(n.Session=r.Session,"SMS_MFA"===e?t.mfaRequired(r.ChallengeName,r.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===e?t.totpRequired(r.ChallengeName,r.ChallengeParameters):void 0)}))},t.getUserContextData=function(){return this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(e){var t=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){return t?e.onFailure(t):e.associateSecretCode(n.SecretCode)})):this.client.request("AssociateSoftwareToken",{Session:this.Session},(function(n,s){return n?e.onFailure(n):(t.Session=s.Session,e.associateSecretCode(s.SecretCode))}))},t.verifySoftwareToken=function(e,t,n){var s=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:e,FriendlyDeviceName:t},(function(e,t){return e?n.onFailure(e):n.onSuccess(t)})):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:e,FriendlyDeviceName:t},(function(e,t){if(e)return n.onFailure(e);s.Session=t.Session;var r={};
2r.USERNAME=s.username;var i={ChallengeName:"MFA_SETUP",ClientId:s.pool.getClientId(),ChallengeResponses:r,Session:s.Session};s.getUserContextData()&&(i.UserContextData=s.getUserContextData()),s.client.request("RespondToAuthChallenge",i,(function(e,t){return e?n.onFailure(e):(s.signInUserSession=s.getCognitoUserSession(t.AuthenticationResult),s.cacheTokens(),n.onSuccess(s.signInUserSession))}))}))},e}();n("zgjP");function J(){}J.prototype.userAgent="aws-amplify/0.1.x js";var j=J;function H(e){var t="function"===typeof Map?new Map:void 0;return(H=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,s)}function s(){return L(e,arguments,z(this).constructor)}return s.prototype=Object.create(e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),G(s,e)})(e)}function L(e,t,n){return(L=W()?Reflect.construct:function(e,t,n){var s=[null];s.push.apply(s,t);var r=new(Function.bind.apply(e,s));return n&&G(r,n.prototype),r}).apply(null,arguments)}function W(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Y=function(e){var t,n;function s(t,n,s,r){var i;return(i=e.call(this,t)||this).code=n,i.name=s,i.statusCode=r,i}return n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s}(H(Error)),Z=function(){function e(e,t,n){this.endpoint=t||"https://cognito-idp."+e+".amazonaws.com/";var s=(n||{}).credentials;this.fetchOptions=s?{credentials:s}:{}}var t=e.prototype;return t.promisifyRequest=function(e,t){var n=this;return new Promise((function(s,r){n.request(e,t,(function(e,t){e?r(new Y(e.message,e.code,e.name,e.statusCode)):s(t)}))}))},t.request=function(e,t,n){var s,r={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":j.prototype.userAgent},i=Object.assign({},this.fetchOptions,{headers:r,method:"POST",mode:"cors",cache:"no-cache",body:JSON.stringify(t)});fetch(this.endpoint,i).then((function(e){return s=e,e}),(function(e){if(e instanceof TypeError)throw new Error("Network error");throw e})).then((function(e){return e.json().catch((function(){return{}}))})).then((function(e){if(s.ok)return n(null,e);e;var t=(e.__type||e.code).split("#").pop(),r={code:t,name:t,message:e.message||e.Message||null};return n(r)})).catch((function(e){if(!(s&&s.headers&&s.headers.get("x-amzn-errortype"))){if(e instanceof Error&&"Network error"===e.message){var t={code:"NetworkError",name:e.name,message:e.message};return n(t)}return n(e)}try{var r=s.headers.get("x-amzn-errortype").split(":")[0],i={code:r,name:r,statusCode:s.status,message:s.status?s.status.toString():null};return n(i)}catch(o){return n(e)}}))},e}(),$=function(){function e(e){var t=e||{},n=t.UserPoolId,s=t.ClientId,r=t.endpoint,i=t.fetchOptions,o=t.AdvancedSecurityDataCollectionFlag;if(!n||!s)throw new Error("Both UserPoolId and ClientId are required.");if(!/^[\w-]+_.+$/.test(n))throw new Error("Invalid UserPoolId format.");var a=n.split("_")[0];this.userPoolId=n,this.clientId=s,this.client=new Z(a,r,i),this.advancedSecurityDataCollectionFlag=!1!==o,this.storage=e.Storage||(new V).getStorage()}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,n,s,r,i){var o=this,a={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:s,ClientMetadata:i};this.getUserContextData(e)&&(a.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",a,(function(t,n){if(t)return r(t,null);var s={Username:e,Pool:o,Storage:o.storage},i={user:new q(s),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDeliveryDetails};return r(null,i)}))},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new q(n)}return null},t.getUserContextData=function(e){if("undefined"!==typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),X=n("XB8O"),Q=function(){function e(e){if(!e.domain)throw new Error("The domain of cookieStorage c
2an not be undefined.");if(this.domain=e.domain,e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),X.set(e,t,n),X.get(e)},t.getItem=function(e){return X.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),X.remove(e,t)},t.clear=function(){var e,t=X.get();for(e=0;e<t.length;++e)X.remove(t[e]);return{}},e}()},XB8O:function(e,t,n){var s,r;!function(i){if(void 0===(r="function"===typeof(s=i)?s.call(t,n,t,e):s)||(e.exports=r),!0,e.exports=i(),!!0){var o=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=o,a}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var s in n)t[s]=n[s]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
2)+/g,decodeURIComponent)}return function n(s){function r(){}function i(t,n,i){if("undefined"!==typeof document){"number"===typeof(i=e({path:"/"},r.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch(c){}n=s.write?s.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+a}}function o(e,n){if("undefined"!==typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],o=0;o<i.length;o++){var a=i[o].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var c=t(a[0]);if(u=(s.read||s)(u,c)||t(u),n)try{u=JSON.parse(u)}catch(h){}if(r[c]=u,e===c)break}catch(h){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return o(e,!1)},r.getJSON=function(e){return o(e,!0)},r.remove=function(t,n){i(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))}))},xHvr:function(e,t,n){"use strict";var s=n("TOwV"),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(e){return s.isMemo(e)?o:a[e.$$typeof]||r}a[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[s.Memo]=o;var c=Object.defineProperty,h=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,s){if("string"!==typeof n){if(g){var r=d(n);r&&r!==g&&e(t,r,s)}var o=h(n);l&&(o=o.concat(l(n)));for(var a=u(t),p=u(n),S=0;S<o.length;++S){var v=o[S];if(!i[v]&&(!s||!s[v])&&(!p||!p[v])&&(!a||!a[v])){var m=f(n,v);try{c(t,v,m)}catch(C){}}}}return t}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.