!function(){var e={724:function(e,t,n){var r;e=n.nmd(e);var a=function(e){"use strict";var t=1e7,n=9007199254740992,r=f(n),i="0123456789abcdefghijklmnopqrstuvwxyz",o="function"==typeof BigInt;function l(e,t,n,r){return void 0===e?l[0]:void 0!==t&&(10!=+t||n)?j(e,t,n,r):Y(e)}function u(e,t){this.value=e,this.sign=t,this.isSmall=!1}function c(e){this.value=e,this.sign=e<0,this.isSmall=!0}function s(e){this.value=e}function d(e){return-n0?Math.floor(e):Math.ceil(e)}function y(e,n){var r,a,i=e.length,o=n.length,l=new Array(i),u=0,c=t;for(a=0;a=c?1:0,l[a]=r-u*c;for(;a0&&l.push(u),l}function E(e,t){return e.length>=t.length?y(e,t):y(t,e)}function g(e,n){var r,a,i=e.length,o=new Array(i),l=t;for(a=0;a0;)o[a++]=n%l,n=Math.floor(n/l);return o}function C(e,n){var r,a,i=e.length,o=n.length,l=new Array(i),u=0,c=t;for(r=0;r0;)o[a++]=u%l,u=Math.floor(u/l);return o}function T(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function _(e,t){var n=Math.max(e.length,t.length);if(n<=30)return I(e,t);n=Math.ceil(n/2);var r=e.slice(n),a=e.slice(0,n),i=t.slice(n),o=t.slice(0,n),l=_(a,o),u=_(r,i),c=_(E(a,r),E(o,i)),s=E(E(l,T(C(C(c,l),u),n)),T(u,2*n));return h(s),s}function A(e,n,r){return new u(e=0;--r)i=(o=i*c+e[r])-(a=m(o/n))*n,u[r]=0|a;return[u,0|i]}function w(e,n){var r,a=Y(n);if(o)return[new s(e.value/a.value),new s(e.value%a.value)];var i,d=e.value,y=a.value;if(0===y)throw new Error("Cannot divide by zero");if(e.isSmall)return a.isSmall?[new c(m(d/y)),new c(d%y)]:[l[0],e];if(a.isSmall){if(1===y)return[e,l[0]];if(-1==y)return[e.negate(),l[0]];var E=Math.abs(y);if(E=0;a--){for(r=f-1,E[a+d]!==m&&(r=Math.floor((E[a+d]*f+E[a+d-1])/m)),i=0,o=0,u=g.length,l=0;lc&&(i=(i+1)*f),r=Math.ceil(i/o);do{if(D(l=S(n,r),d)<=0)break;r--}while(r);s.push(r),d=C(d,l)}return s.reverse(),[p(s),p(d)]}(d,y),i=r[0];var I=e.sign!==a.sign,T=r[1],_=e.sign;return"number"==typeof i?(I&&(i=-i),i=new c(i)):i=new u(i,I),"number"==typeof T?(_&&(T=-T),T=new c(T)):T=new u(T,_),[i,T]}function D(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function O(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function k(e,t){for(var n,r,i,o=e.prev(),l=o,u=0;l.isEven();)l=l.divide(2),u++;e:for(r=0;r=0?r=C(e,t):(r=C(t,e),n=!n),"number"==typeof(r=p(r))?(n&&(r=-r),new c(r)):new u(r,n)}(n,r,this.sign)},u.prototype.minus=u.prototype.subtract,c.prototype.subtract=function(e){var t=Y(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var r=t.value;return t.isSmall?new c(n-r):b(r,Math.abs(n),n>=0)},c.prototype.minus=c.prototype.subtract,s.prototype.subtract=function(e){return new s(this.value-Y(e).value)},s.prototype.minus=s.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},c.prototype.negate=function(){var e=this.sign,t=new c(-this.value);return t.sign=!e,t},s.prototype.negate=function(){return new s(-this.value)},u.prototype.abs=function(){return new u(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},s.prototype.abs=function(){return new s(this.value>=0?this.value:-this.value)},u.prototype.multiply=function(e){var n,r,a,i=Y(e),o=this.value,c=i.value,s=this.sign!==i.sign;if(i.isSmall){if(0===c)return l[0];if(1===c)return this;if(-1===c)return this.negate();if((n=Math.abs(c))0?_(o,c):I(o,c),s)},u.prototype.times=u.prototype.multiply,c.prototype._multiplyBySmall=function(e){return d(e.value*this.value)?new c(e.value*this.value):A(Math.abs(e.value),f(Math.abs(this.value)),this.sign!==e.sign)},u.prototype._multiplyBySmall=function(e){return 0===e.value?l[0]:1===e.value?this:-1===e.value?this.negate():A(Math.abs(e.value),this.value,this.sign!==e.sign)},c.prototype.multiply=function(e){return Y(e)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,s.prototype.multiply=function(e){return new s(this.value*Y(e).value)},s.prototype.times=s.prototype.multiply,u.prototype.square=function(){return new u(N(this.value),!1)},c.prototype.square=function(){var e=this.value*this.value;return d(e)?new c(e):new u(N(f(Math.abs(this.value))),!1)},s.prototype.square=function(e){return new s(this.value*this.value)},u.prototype.divmod=function(e){var t=w(this,e);return{quotient:t[0],remainder:t[1]}},s.prototype.divmod=c.prototype.divmod=u.prototype.divmod,u.prototype.divide=function(e){return w(this,e)[0]},s.prototype.over=s.prototype.divide=function(e){return new s(this.value/Y(e).value)},c.prototype.over=c.prototype.divide=u.prototype.over=u.prototype.divide,u.prototype.mod=function(e){return w(this,e)[1]},s.prototype.mod=s.prototype.remainder=function(e){return new s(this.value%Y(e).value)},c.prototype.remainder=c.prototype.mod=u.prototype.remainder=u.prototype.mod,u.prototype.pow=function(e){var t,n,r,a=Y(e),i=this.value,o=a.value;if(0===o)return l[1];if(0===i)return l[0];if(1===i)return l[1];if(-1===i)return a.isEven()?l[1]:l[-1];if(a.sign)return l[0];if(!a.isSmall)throw new Error("The exponent "+a.toString()+" is too large.");if(this.isSmall&&d(t=Math.pow(i,o)))return new c(m(t));for(n=this,r=l[1];!0&o&&(r=r.times(n),--o),0!==o;)o/=2,n=n.square();return r},c.prototype.pow=u.prototype.pow,s.prototype.pow=function(e){var t=Y(e),n=this.value,r=t.value,a=BigInt(0),i=BigInt(1),o=BigInt(2);if(r===a)return l[1];if(n===a)return l[0];if(n===i)return l[1];if(n===BigInt(-1))return t.isEven()?l[1]:l[-1];if(t.isNegative())return new s(a);for(var u=this,c=l[1];(r&i)===i&&(c=c.times(u),--r),r!==a;)r/=o,u=u.square();return c},u.prototype.modPow=function(e,t){if(e=Y(e),(t=Y(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=l[1],r=this.mod(t);for(e.isNegative()&&(e=e.multiply(l[-1]),r=r.modInv(t));e.isPositive();){if(r.isZero())return l[0];e.isOdd()&&(n=n.multiply(r).mod(t)),e=e.divide(2),r=r.square().mod(t)}return n},s.prototype.modPow=c.prototype.modPow=u.prototype.modPow,u.prototype.compareAbs=function(e){var t=Y(e),n=this.value,r=t.value;return t.isSmall?1:D(n,r)},c.prototype.compareAbs=function(e){var t=Y(e),n=Math.abs(this.value),r=t.value;return t.isSmall?n===(r=Math.abs(r))?0:n>r?1:-1:-1},s.prototype.compareAbs=function(e){var t=this.value,n=Y(e).value;return(t=t>=0?t:-t)===(n=n>=0?n:-n)?0:t>n?1:-1},u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=Y(e),n=this.value,r=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:D(n,r)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=Y(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},c.prototype.compareTo=c.prototype.compare,s.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=Y(e).value;return t===n?0:t>n?1:-1},s.prototype.compareTo=s.prototype.compare,u.prototype.equals=function(e){return 0===this.compare(e)},s.prototype.eq=s.prototype.equals=c.prototype.eq=c.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(e){return 0!==this.compare(e)},s.prototype.neq=s.prototype.notEquals=c.prototype.neq=c.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(e){return this.compare(e)>0},s.prototype.gt=s.prototype.greater=c.prototype.gt=c.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(e){return this.compare(e)<0},s.prototype.lt=s.prototype.lesser=c.prototype.lt=c.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},s.prototype.geq=s.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},s.prototype.leq=s.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return!(1&this.value[0])},c.prototype.isEven=function(){return!(1&this.value)},s.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},u.prototype.isOdd=function(){return!(1&~this.value[0])},c.prototype.isOdd=function(){return!(1&~this.value)},s.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},u.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},s.prototype.isPositive=c.prototype.isPositive,u.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},s.prototype.isNegative=c.prototype.isNegative,u.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},s.prototype.isUnit=function(){return this.abs().value===BigInt(1)},u.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},s.prototype.isZero=function(){return this.value===BigInt(0)},u.prototype.isDivisibleBy=function(e){var t=Y(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},s.prototype.isDivisibleBy=c.prototype.isDivisibleBy=u.prototype.isDivisibleBy,u.prototype.isPrime=function(t){var n=O(this);if(n!==e)return n;var r=this.abs(),i=r.bitLength();if(i<=64)return k(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var o=Math.log(2)*i.toJSNumber(),l=Math.ceil(!0===t?2*Math.pow(o,2):o),u=[],c=0;c-n?new c(e-1):new u(r,!0)},s.prototype.prev=function(){return new s(this.value-BigInt(1))};for(var R=[1];2*R[R.length-1]<=t;)R.push(2*R[R.length-1]);var P=R.length,M=R[P-1];function x(e){return Math.abs(e)<=t}function V(e,t,n){t=Y(t);for(var r=e.isNegative(),i=t.isNegative(),o=r?e.not():e,l=i?t.not():t,u=0,c=0,s=null,d=null,f=[];!o.isZero()||!l.isZero();)u=(s=w(o,M))[1].toJSNumber(),r&&(u=M-1-u),c=(d=w(l,M))[1].toJSNumber(),i&&(c=M-1-c),o=s[0],l=d[0],f.push(n(u,c));for(var p=0!==n(r?1:0,i?1:0)?a(-1):a(0),h=f.length-1;h>=0;h-=1)p=p.multiply(M).add(a(f[h]));return p}u.prototype.shiftLeft=function(e){var t=Y(e).toJSNumber();if(!x(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=P;)n=n.multiply(M),t-=P-1;return n.multiply(R[t])},s.prototype.shiftLeft=c.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(e){var t,n=Y(e).toJSNumber();if(!x(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var r=this;n>=P;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;r=(t=w(r,M))[1].isNegative()?t[0].prev():t[0],n-=P-1}return(t=w(r,R[n]))[1].isNegative()?t[0].prev():t[0]},s.prototype.shiftRight=c.prototype.shiftRight=u.prototype.shiftRight,u.prototype.not=function(){return this.negate().prev()},s.prototype.not=c.prototype.not=u.prototype.not,u.prototype.and=function(e){return V(this,e,(function(e,t){return e&t}))},s.prototype.and=c.prototype.and=u.prototype.and,u.prototype.or=function(e){return V(this,e,(function(e,t){return e|t}))},s.prototype.or=c.prototype.or=u.prototype.or,u.prototype.xor=function(e){return V(this,e,(function(e,t){return e^t}))},s.prototype.xor=c.prototype.xor=u.prototype.xor;var H=1<<30;function W(e){var n=e.value,r="number"==typeof n?n|H:"bigint"==typeof n?n|BigInt(H):n[0]+n[1]*t|1073758208;return r&-r}function U(e,t){if(t.compareTo(e)<=0){var n=U(e,t.square(t)),r=n.p,i=n.e,o=r.multiply(t);return o.compareTo(e)<=0?{p:o,e:2*i+1}:{p:r,e:2*i}}return{p:a(1),e:0}}function G(e,t){return e=Y(e),t=Y(t),e.greater(t)?e:t}function z(e,t){return e=Y(e),t=Y(t),e.lesser(t)?e:t}function F(e,t){if(e=Y(e).abs(),t=Y(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n,r,a=l[1];e.isEven()&&t.isEven();)n=z(W(e),W(t)),e=e.divide(n),t=t.divide(n),a=a.multiply(n);for(;e.isEven();)e=e.divide(W(e));do{for(;t.isEven();)t=t.divide(W(t));e.greater(t)&&(r=t,t=e,e=r),t=t.subtract(e)}while(!t.isZero());return a.isUnit()?e:e.multiply(a)}u.prototype.bitLength=function(){var e=this;return e.compareTo(a(0))<0&&(e=e.negate().subtract(a(1))),0===e.compareTo(a(0))?a(0):a(U(e,a(2)).e).add(a(1))},s.prototype.bitLength=c.prototype.bitLength=u.prototype.bitLength;var j=function(e,t,n,r){n=n||i,e=String(e),r||(e=e.toLowerCase(),n=n.toLowerCase());var a,o=e.length,l=Math.abs(t),u={};for(a=0;a=l)){if("1"===d&&1===l)continue;throw new Error(d+" is not a valid digit in base "+t+".")}}t=Y(t);var c=[],s="-"===e[0];for(a=s?1:0;a"!==e[a]&&a=0;r--)a=a.add(e[r].times(i)),i=i.times(t);return n?a.negate():a}function q(e,t){if((t=a(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var r=!1;if(e.isNegative()&&t.isPositive()&&(r=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:r};for(var i,o=[],l=e;l.isNegative()||l.compareAbs(t)>=0;){i=l.divmod(t),l=i.quotient;var u=i.remainder;u.isNegative()&&(u=t.minus(u).abs(),l=l.next()),o.push(u.toJSNumber())}return o.push(l.toJSNumber()),{value:o.reverse(),isNegative:r}}function Z(e,t,n){var r=q(e,t);return(r.isNegative?"-":"")+r.value.map((function(e){return function(e,t){return e<(t=t||i).length?t[e]:"<"+e+">"}(e,n)})).join("")}function K(e){if(d(+e)){var t=+e;if(t===m(t))return o?new s(BigInt(t)):new c(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw new Error("Invalid integer: "+r.join("e"));if(2===r.length){var a=r[1];if("+"===a[0]&&(a=a.slice(1)),(a=+a)!==m(a)||!d(a))throw new Error("Invalid integer: "+a+" is not a valid exponent.");var i=r[0],l=i.indexOf(".");if(l>=0&&(a-=i.length-l-1,i=i.slice(0,l)+i.slice(l+1)),a<0)throw new Error("Cannot include negative exponent part for integers");e=i+=new Array(a+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(o)return new s(BigInt(n?"-"+e:e));for(var f=[],p=e.length,v=p-7;p>0;)f.push(+e.slice(v,p)),(v-=7)<0&&(v=0),p-=7;return h(f),new u(f,n)}function Y(e){return"number"==typeof e?function(e){if(o)return new s(BigInt(e));if(d(e)){if(e!==m(e))throw new Error(e+" is not an integer.");return new c(e)}return K(e.toString())}(e):"string"==typeof e?K(e):"bigint"==typeof e?new s(e):e}u.prototype.toArray=function(e){return q(this,e)},c.prototype.toArray=function(e){return q(this,e)},s.prototype.toArray=function(e){return q(this,e)},u.prototype.toString=function(t,n){if(t===e&&(t=10),10!==t||n)return Z(this,t,n);for(var r,a=this.value,i=a.length,o=String(a[--i]);--i>=0;)r=String(a[i]),o+="0000000".slice(r.length)+r;return(this.sign?"-":"")+o},c.prototype.toString=function(t,n){return t===e&&(t=10),10!=t||n?Z(this,t,n):String(this.value)},s.prototype.toString=c.prototype.toString,s.prototype.toJSON=u.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},u.prototype.valueOf=function(){return parseInt(this.toString(),10)},u.prototype.toJSNumber=u.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf,s.prototype.valueOf=s.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var J=0;J<1e3;J++)l[J]=Y(J),J>0&&(l[-J]=Y(-J));return l.one=l[1],l.zero=l[0],l.minusOne=l[-1],l.max=G,l.min=z,l.gcd=F,l.lcm=function(e,t){return e=Y(e).abs(),t=Y(t).abs(),e.divide(F(e,t)).multiply(t)},l.isInstance=function(e){return e instanceof u||e instanceof c||e instanceof s},l.randBetween=function(e,n,r){e=Y(e),n=Y(n);var a=r||Math.random,i=z(e,n),o=G(e,n).subtract(i).add(1);if(o.isSmall)return i.add(Math.floor(a()*o));for(var u=q(o,t).value,c=[],s=!0,d=0;d=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function W(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}n.r(x),n.d(x,{ChallengeType:function(){return Ah},HybridTarget:function(){return ph},renderChallengeFromQueryParameters:function(){return QI}});var Z=function(e){return{_tag:"Left",left:e}},K=function(e){return{_tag:"Right",right:e}},Y={_tag:"None"},J=function(e){return{_tag:"Some",value:e}},X=function(e){return function(t){return ee(t)?Y:J(e(t.value))}},Q=function(e){return"Left"===e._tag?Y:J(e.right)},$=function(e){return"Some"===e._tag},ee=function(e){return"None"===e._tag};!function(){function e(e,t){if(this.bufferIndex=0,e<1)throw new Error("EventPublishers must have size of at least 1!");this.maxEventQueueLength=e,this.eventQueue=new Array(this.maxEventQueueLength).fill(Y),this.delegatePublisher=t,this.appendEvent=this.appendEvent.bind(this),this.publish=this.publish.bind(this)}e.prototype.appendEvent=function(e){var t=this.bufferIndex%this.maxEventQueueLength,n=this.eventQueue[t];return this.eventQueue[t]=J(e),this.bufferIndex%=this.maxEventQueueLength,this.bufferIndex+=1,$(n)},e.prototype.publish=function(){this.delegatePublisher.publish(this.eventQueue.filter($))}}();function te(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))}function ne(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&l[0]?r.return:l[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;switch(r=0,a&&(l=[2&l[0],a.value]),l[0]){case 0:case 1:a=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]0&&Ee[0]<4?1:+(Ee[0]+Ee[1])),!ge&&Xe&&(!(Ee=Xe.match(/Edge\/(\d+)/))||Ee[1]>=74)&&(Ee=Xe.match(/Chrome\/(\d+)/))&&(ge=+Ee[1]);var nt=ge,rt=ue,at=oe.String,it=!!Object.getOwnPropertySymbols&&!rt((function(){var e=Symbol("symbol detection");return!at(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),ot=it&&!Symbol.sham&&"symbol"==q(Symbol.iterator),lt=qe,ut=Ge,ct=Ze,st=Object,dt=ot?function(e){return"symbol"==q(e)}:function(e){var t=lt("Symbol");return ut(t)&&ct(t.prototype,st(e))},ft=String,pt=Ge,ht=TypeError,vt=function(e){if(pt(e))return e;throw new ht(function(e){try{return ft(e)}catch(e){return"Object"}}(e)+" is not a function")},mt=vt,yt=Re,Et=pe,gt=Ge,Ct=Fe,bt=TypeError,It={exports:{}},St=oe,Tt=Object.defineProperty,_t=function(e,t){try{Tt(St,e,{value:t,configurable:!0,writable:!0})}catch(n){St[e]=t}return t},At=oe,Nt=_t,Lt="__core-js_shared__",wt=It.exports=At[Lt]||Nt(Lt,{});(wt.versions||(wt.versions=[])).push({version:"3.41.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Dt=It.exports,Ot=Dt,kt=function(e,t){return Ot[e]||(Ot[e]=t||{})},Rt=xe,Pt=Object,Mt=_e({}.hasOwnProperty),xt=Object.hasOwn||function(e,t){return Mt(function(e){return Pt(Rt(e))}(e),t)},Vt=_e,Ht=0,Wt=Math.random(),Ut=Vt(1..toString),Gt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ut(++Ht+Wt,36)},zt=kt,Ft=xt,jt=Gt,Bt=it,qt=ot,Zt=oe.Symbol,Kt=zt("wks"),Yt=qt?Zt.for||Zt:Zt&&Zt.withoutSetter||jt,Jt=pe,Xt=Fe,Qt=dt,$t=TypeError,en=function(e){return Ft(Kt,e)||(Kt[e]=Bt&&Ft(Zt,e)?Zt[e]:Yt("Symbol."+e)),Kt[e]}("toPrimitive"),tn=function(e,t){if(!Xt(e)||Qt(e))return e;var n,r=function(e,t){var n=e[t];return yt(n)?void 0:mt(n)}(e,en);if(r){if(void 0===t&&(t="default"),n=Jt(r,e,t),!Xt(n)||Qt(n))return n;throw new $t("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&>(n=e.toString)&&!Ct(r=Et(n,e)))return r;if(gt(n=e.valueOf)&&!Ct(r=Et(n,e)))return r;if("string"!==t&>(n=e.toString)&&!Ct(r=Et(n,e)))return r;throw new bt("Can't convert object to primitive value")}(e,t)},nn=dt,rn=function(e){var t=tn(e,"string");return nn(t)?t:t+""},an=Fe,on=oe.document,ln=an(on)&&an(on.createElement),un=!ce&&!ue((function(){return 7!==Object.defineProperty(function(e){return ln?on.createElement(e):{}}("div"),"a",{get:function(){return 7}}).a})),cn=ce,sn=pe,dn=he,fn=Ce,pn=We,hn=rn,vn=xt,mn=un,yn=Object.getOwnPropertyDescriptor;le.f=cn?yn:function(e,t){if(e=pn(e),t=hn(t),mn)try{return yn(e,t)}catch(e){}if(vn(e,t))return fn(!sn(dn.f,e,t),e[t])};var En={},gn=ce&&ue((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Cn=Fe,bn=String,In=TypeError,Sn=function(e){if(Cn(e))return e;throw new In(bn(e)+" is not an object")},Tn=ce,_n=un,An=gn,Nn=Sn,Ln=rn,wn=TypeError,Dn=Object.defineProperty,On=Object.getOwnPropertyDescriptor,kn="enumerable",Rn="configurable",Pn="writable";En.f=Tn?An?function(e,t,n){if(Nn(e),t=Ln(t),Nn(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Pn in n&&!n[Pn]){var r=On(e,t);r&&r[Pn]&&(e[t]=n.value,n={configurable:Rn in n?n[Rn]:r[Rn],enumerable:kn in n?n[kn]:r[kn],writable:!1})}return Dn(e,t,n)}:Dn:function(e,t,n){if(Nn(e),t=Ln(t),Nn(n),_n)try{return Dn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new wn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Mn=En,xn=Ce,Vn=ce?function(e,t,n){return Mn.f(e,t,xn(1,n))}:function(e,t,n){return e[t]=n,e},Hn={exports:{}},Wn=ce,Un=xt,Gn=Function.prototype,zn=Wn&&Object.getOwnPropertyDescriptor,Fn=Un(Gn,"name"),jn={EXISTS:Fn,PROPER:Fn&&"something"===function(){}.name,CONFIGURABLE:Fn&&(!Wn||Wn&&zn(Gn,"name").configurable)},Bn=Ge,qn=Dt,Zn=_e(Function.toString);Bn(qn.inspectSource)||(qn.inspectSource=function(e){return Zn(e)});var Kn,Yn,Jn,Xn=qn.inspectSource,Qn=Ge,$n=oe.WeakMap,er=Qn($n)&&/native code/.test(String($n)),tr=Gt,nr=kt("keys"),rr={},ar=er,ir=oe,or=Fe,lr=Vn,ur=xt,cr=Dt,sr=rr,dr="Object already initialized",fr=ir.TypeError,pr=ir.WeakMap;if(ar||cr.state){var hr=cr.state||(cr.state=new pr);hr.get=hr.get,hr.has=hr.has,hr.set=hr.set,Kn=function(e,t){if(hr.has(e))throw new fr(dr);return t.facade=e,hr.set(e,t),t},Yn=function(e){return hr.get(e)||{}},Jn=function(e){return hr.has(e)}}else{var vr=function(e){return nr[e]||(nr[e]=tr(e))}("state");sr[vr]=!0,Kn=function(e,t){if(ur(e,vr))throw new fr(dr);return t.facade=e,lr(e,vr,t),t},Yn=function(e){return ur(e,vr)?e[vr]:{}},Jn=function(e){return ur(e,vr)}}var mr={set:Kn,get:Yn,has:Jn,enforce:function(e){return Jn(e)?Yn(e):Kn(e,{})},getterFor:function(e){return function(t){var n;if(!or(t)||(n=Yn(t)).type!==e)throw new fr("Incompatible receiver, "+e+" required");return n}}},yr=_e,Er=ue,gr=Ge,Cr=xt,br=ce,Ir=jn.CONFIGURABLE,Sr=Xn,Tr=mr.enforce,_r=mr.get,Ar=String,Nr=Object.defineProperty,Lr=yr("".slice),wr=yr("".replace),Dr=yr([].join),Or=br&&!Er((function(){return 8!==Nr((function(){}),"length",{value:8}).length})),kr=String(String).split("String"),Rr=Hn.exports=function(e,t,n){"Symbol("===Lr(Ar(t),0,7)&&(t="["+wr(Ar(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Cr(e,"name")||Ir&&e.name!==t)&&(br?Nr(e,"name",{value:t,configurable:!0}):e.name=t),Or&&n&&Cr(n,"arity")&&e.length!==n.arity&&Nr(e,"length",{value:n.arity});try{n&&Cr(n,"constructor")&&n.constructor?br&&Nr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Tr(e);return Cr(r,"source")||(r.source=Dr(kr,"string"==typeof t?t:"")),e};Function.prototype.toString=Rr((function(){return gr(this)&&_r(this).source||Sr(this)}),"toString");var Pr=Hn.exports,Mr=Ge,xr=En,Vr=Pr,Hr=_t,Wr={},Ur=Math.ceil,Gr=Math.floor,zr=Math.trunc||function(e){var t=+e;return(t>0?Gr:Ur)(t)},Fr=function(e){var t=+e;return t!=t||0===t?0:zr(t)},jr=Fr,Br=Math.max,qr=Math.min,Zr=Fr,Kr=Math.min,Yr=We,Jr=function(e){return function(e){var t=Zr(e);return t>0?Kr(t,9007199254740991):0}(e.length)},Xr=function(e){return function(t,n,r){var a=Yr(t),i=Jr(a);if(0===i)return!e&&-1;var o,l=function(e,t){var n=jr(e);return n<0?Br(n+t,0):qr(n,t)}(r,i);if(e&&n!=n){for(;i>l;)if((o=a[l++])!=o)return!0}else for(;i>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}},Qr={includes:Xr(!0),indexOf:Xr(!1)},$r=xt,ea=We,ta=Qr.indexOf,na=rr,ra=_e([].push),aa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(e){return function(e,t){var n,r=ea(e),a=0,i=[];for(n in r)!$r(na,n)&&$r(r,n)&&ra(i,n);for(;t.length>a;)$r(r,n=t[a++])&&(~ta(i,n)||ra(i,n));return i}(e,aa)};var ia={};ia.f=Object.getOwnPropertySymbols;var oa=qe,la=Wr,ua=ia,ca=Sn,sa=_e([].concat),da=oa("Reflect","ownKeys")||function(e){var t=la.f(ca(e)),n=ua.f;return n?sa(t,n(e)):t},fa=xt,pa=da,ha=le,va=En,ma=ue,ya=Ge,Ea=/#|\.prototype\./,ga=function(e,t){var n=ba[Ca(e)];return n===Sa||n!==Ia&&(ya(t)?ma(t):!!t)},Ca=ga.normalize=function(e){return String(e).replace(Ea,".").toLowerCase()},ba=ga.data={},Ia=ga.NATIVE="N",Sa=ga.POLYFILL="P",Ta=ga,_a=oe,Aa=le.f,Na=Vn,La=function(e,t,n,r){r||(r={});var a=r.enumerable,i=void 0!==r.name?r.name:t;if(Mr(n)&&Vr(n,i,r),r.global)a?e[t]=n:Hr(t,n);else{try{r.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=n:xr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},wa=_t,Da=function(e,t,n){for(var r=pa(t),a=va.f,i=ha.f,o=0;o1?e(t[1],t[0]):function(n){return e(n)(t[0])}}},e.flow=a,e.tuple=function(){for(var e=[],t=0;t=e}:e;return function(){var e=Array.from(arguments);return r(arguments)?n.apply(this,e):function(r){return n.apply(void 0,t([r],e,!1))}}}}(Ua);var Ga=/\{[^{}]+\}/g;function za(e){var t,n,r,a=F({},e),i=a.baseUrl,o=void 0===i?"":i,l=a.Request,u=void 0===l?globalThis.Request:l,c=a.fetch,s=void 0===c?globalThis.fetch:c,d=a.querySerializer,f=a.bodySerializer,p=a.headers,h=a.requestInitExt,v=B(a,["baseUrl","Request","fetch","querySerializer","bodySerializer","headers","requestInitExt"]);h="object"==("undefined"==typeof process?"undefined":q(process))&&Number.parseInt(null===(t=process)||void 0===t||null===(n=t.versions)||void 0===n||null===(r=n.node)||void 0===r?void 0:r.substring(0,2))>=18&&process.versions.undici?h:void 0,o=Ya(o);var m=[];function y(e,t){return E.apply(this,arguments)}function E(){return E=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){G(i,r,a,o,l,"next",e)}function l(e){G(i,r,a,o,l,"throw",e)}o(void 0)}))}}(regeneratorRuntime.mark((function e(t,n){var r,a,i,l,c,y,E,g,C,b,I,S,T,_,A,N,L,w,D,O,k,R,P,M,x,V,W,U,G,z,j,Z,K,Y,J,X;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(M in a=(r=n||{}).baseUrl,i=r.fetch,l=void 0===i?s:i,c=r.Request,y=r.headers,E=r.params,g=void 0===E?{}:E,C=r.parseAs,b=void 0===C?"json":C,I=r.querySerializer,S=r.bodySerializer,T=void 0===S?null!=f?f:Za:S,_=r.body,A=B(r,["baseUrl","fetch","Request","headers","params","parseAs","querySerializer","bodySerializer","body"]),a&&(o=Ya(a)),N="function"==typeof d?d:qa(d),I&&(N="function"==typeof I?I:qa(F(F({},"object"==q(d)?d:{}),I))),L=void 0===_?void 0:T(_),w=void 0===L||L instanceof FormData?{}:{"Content-Type":"application/json"},D=F(F(F({redirect:"follow"},v),A),{},{body:L,headers:Ka(w,p,y,g.header)}),P=new u(function(e,t){var n,r,a="".concat(t.baseUrl).concat(e);(null===(n=t.params)||void 0===n?void 0:n.path)&&(a=function(e,t){var n,r,a=e,i=H(null!==(n=e.match(Ga))&&void 0!==n?n:[]);try{for(i.s();!(r=i.n()).done;){var o=r.value,l=o.substring(1,o.length-1),u=!1,c="simple";if(l.endsWith("*")&&(u=!0,l=l.substring(0,l.length-1)),l.startsWith(".")?(c="label",l=l.substring(1)):l.startsWith(";")&&(c="matrix",l=l.substring(1)),t&&void 0!==t[l]&&null!==t[l]){var s=t[l];a=Array.isArray(s)?a.replace(o,Ba(l,s,{style:c,explode:u})):"object"!=q(s)?"matrix"!==c?a.replace(o,"label"===c?".".concat(encodeURIComponent(s)):encodeURIComponent(s)):a.replace(o,";".concat(Fa(l,s))):a.replace(o,ja(l,s,{style:c,explode:u}))}}}catch(e){i.e(e)}finally{i.f()}return a}(a,t.params.path));var i=t.querySerializer(null!==(r=t.params.query)&&void 0!==r?r:{});return i.startsWith("?")&&(i=i.substring(1)),i&&(a+="?".concat(i)),a}(t,{baseUrl:o,params:g,querySerializer:N}),D),A)M in P||(P[M]=A[M]);if(!m.length){e.next=35;break}O=Math.random().toString(36).slice(2,11),k=Object.freeze({baseUrl:o,fetch:l,parseAs:b,querySerializer:N,bodySerializer:T}),x=H(m),e.prev=10,x.s();case 12:if((V=x.n()).done){e.next=27;break}if(!(W=V.value)||"object"!=q(W)||"function"!=typeof W.onRequest){e.next=25;break}return e.next=17,W.onRequest({request:P,schemaPath:t,params:g,options:k,id:O});case 17:if(!(U=e.sent)){e.next=25;break}if(U instanceof u){e.next=24;break}if(!(U instanceof Response)){e.next=23;break}return R=U,e.abrupt("break",27);case 23:throw new Error("onRequest: must return new Request() or Response() when modifying the request");case 24:P=U;case 25:e.next=12;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(10),x.e(e.t0);case 32:return e.prev=32,x.f(),e.finish(32);case 35:if(R){e.next=81;break}return e.prev=36,e.next=39,l(P,h);case 39:R=e.sent,e.next=66;break;case 42:if(e.prev=42,e.t1=e.catch(36),G=e.t1,!m.length){e.next=64;break}z=m.length-1;case 47:if(!(z>=0)){e.next=64;break}if(!(j=m[z])||"object"!=q(j)||"function"!=typeof j.onError){e.next=61;break}return e.next=52,j.onError({request:P,error:G,schemaPath:t,params:g,options:k,id:O});case 52:if(!(Z=e.sent)){e.next=61;break}if(!(Z instanceof Response)){e.next=57;break}return G=void 0,R=Z,e.abrupt("break",64);case 57:if(!(Z instanceof Error)){e.next=60;break}return G=Z,e.abrupt("continue",61);case 60:throw new Error("onError: must return new Response() or instance of Error");case 61:z--,e.next=47;break;case 64:if(!G){e.next=66;break}throw G;case 66:if(!m.length){e.next=81;break}K=m.length-1;case 68:if(!(K>=0)){e.next=81;break}if(!(Y=m[K])||"object"!=q(Y)||"function"!=typeof Y.onResponse){e.next=78;break}return e.next=73,Y.onResponse({request:P,response:R,schemaPath:t,params:g,options:k,id:O});case 73:if(!(J=e.sent)){e.next=78;break}if(J instanceof Response){e.next=77;break}throw new Error("onResponse: must return new Response() when modifying the response");case 77:R=J;case 78:K--,e.next=68;break;case 81:if(204!==R.status&&"0"!==R.headers.get("Content-Length")){e.next=83;break}return e.abrupt("return",R.ok?{data:void 0,response:R}:{error:void 0,response:R});case 83:if(!R.ok){e.next=94;break}if("stream"!==b){e.next=88;break}e.t2={data:R.body,response:R},e.next=93;break;case 88:return e.next=90,R[b]();case 90:e.t3=e.sent,e.t4=R,e.t2={data:e.t3,response:e.t4};case 93:return e.abrupt("return",e.t2);case 94:return e.next=96,R.text();case 96:X=e.sent;try{X=JSON.parse(X)}catch(e){}return e.abrupt("return",{error:X,response:R});case 99:case"end":return e.stop()}}),e,null,[[10,29,32,35],[36,42]])}))),E.apply(this,arguments)}return{request:function(e,t,n){return y(t,F(F({},n),{},{method:e.toUpperCase()}))},GET:function(e,t){return y(e,F(F({},t),{},{method:"GET"}))},PUT:function(e,t){return y(e,F(F({},t),{},{method:"PUT"}))},POST:function(e,t){return y(e,F(F({},t),{},{method:"POST"}))},DELETE:function(e,t){return y(e,F(F({},t),{},{method:"DELETE"}))},OPTIONS:function(e,t){return y(e,F(F({},t),{},{method:"OPTIONS"}))},HEAD:function(e,t){return y(e,F(F({},t),{},{method:"HEAD"}))},PATCH:function(e,t){return y(e,F(F({},t),{},{method:"PATCH"}))},TRACE:function(e,t){return y(e,F(F({},t),{},{method:"TRACE"}))},use:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&a[a.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(var r=0;r>>2]=e.words[r>>>2];return this.sigBytes+=e.sigBytes,this}},{key:"clamp",value:function(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}},{key:"clone",value:function(){return new e(_i(this.words))}}]),e}(),Di={stringify:function(e){for(var t=[],n=0;n>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(15&r).toString(16))}return t.join("")}},Oi=function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new wi(n,t)},ki=function(e){return Oi(unescape(encodeURIComponent(e)))},Ri=function(e){Ei(n,e);var t=Ci(n);function n(){return Ii(this,n),t.apply(this,arguments)}return Ti(n,[{key:"update",value:function(e){return this._append(e),this._process(),this}},{key:"finalize",value:function(e){e&&this._append(e)}}]),n}(function(){function e(){Ii(this,e),this._minBufferSize=0,this.blockSize=16,this.reset()}return Ti(e,[{key:"reset",value:function(){this._data=new wi,this._nDataBytes=0}},{key:"_append",value:function(e){"string"==typeof e&&(e=ki(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}},{key:"_doProcessBlock",value:function(e,t){}},{key:"_process",value:function(e){var t,n=this._data.sigBytes/(4*this.blockSize),r=(n=e?Math.ceil(n):Math.max((0|n)-this._minBufferSize,0))*this.blockSize,a=Math.min(4*r,this._data.sigBytes);if(r){for(var i=0;i>>7)^(f<<14|f>>>18)^f>>>3,h=xi[d-2],v=(h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10;xi[d]=p+xi[d-7]+v+xi[d-16]}var m=r&a^r&i^a&i,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),E=s+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&c)+Mi[d]+xi[d];s=c,c=u,u=l,l=o+E|0,o=i,i=a,a=r,r=E+(y+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+c|0,n[7]=n[7]+s|0}},{key:"finalize",value:function(e){yi(bi(n.prototype),"finalize",this).call(this,e);var t=8*this._nDataBytes,r=8*this._data.sigBytes;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[14+(r+64>>>9<<4)]=Math.floor(t/4294967296),this._data.words[15+(r+64>>>9<<4)]=t,this._data.sigBytes=4*this._data.words.length,this._process(),this._hash}}]),n}(Ri);var Hi,Wi,Ui=React,Gi=n.n(Ui),zi=ReactDOM,Fi=CoreUtilities,ji=function(e){return{isError:!1,value:e}},Bi=ji,qi=function(e,t,n){return void 0===n&&(n=null),{isError:!0,error:e,errorRaw:t,errorStatusCode:n}},Zi=function(e,t){return e.isError?e:ji(t(e.value))},Ki=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))},Yi=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!a||l[1]>a[0]&&l[1]=a+n?(a=o,[4,Ef(0)]):[3,3]):[3,4];case 2:l.sent(),l.label=3;case 3:return++i,[3,1];case 4:return[2,r]}}))}))}function If(e){e.then(void 0,(function(){}))}function Sf(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function Tf(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function _f(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function Af(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=Nf(e=Tf(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=Nf(e=Tf(e,[3301882366,444984403]),[0,e[0]>>>1])}function wf(e,t){t=t||0;var n,r=(e=e||"").length%16,a=e.length-r,i=[0,t],o=[0,t],l=[0,0],u=[0,0],c=[2277735313,289559509],s=[1291169091,658871167];for(n=0;n>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function Df(e){return parseInt(e)}function Of(e){return parseFloat(e)}function kf(e,t){return"number"==typeof e&&isNaN(e)?t:e}function Rf(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function Pf(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function Mf(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function xf(e){return"function"!=typeof e}function Vf(e,t,n){var r=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,r=e.length;n=4}function Wf(){var e=window,t=navigator;return Rf(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Uf(){var e=window,t=navigator;return Rf(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function Gf(){var e=window;return Rf(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function zf(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Ff(){var e=Wf(),t=function(){var e,t,n=window;return Rf(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!e&&!t)return!1;var n=window;return Rf(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function jf(e){var t=new Error(e);return t.name=e,t}function Bf(e,t,n){var r,a,i;return void 0===n&&(n=50),hf(this,void 0,void 0,(function(){var o,l;return vf(this,(function(u){switch(u.label){case 0:o=document,u.label=1;case 1:return o.body?[3,3]:[4,Ef(n)];case 2:return u.sent(),[3,1];case 3:l=o.createElement("iframe"),u.label=4;case 4:return u.trys.push([4,,10,11]),[4,new Promise((function(e,n){var r=!1,a=function(){r=!0,e()};l.onload=a,l.onerror=function(e){r=!0,n(e)};var i=l.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",t&&"srcdoc"in l?l.srcdoc=t:l.src="about:blank",o.body.appendChild(l);var u=function(){var e,t;r||("complete"===(null===(t=null===(e=l.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?a():setTimeout(u,10))};u()}))];case 5:u.sent(),u.label=6;case 6:return(null===(a=null===(r=l.contentWindow)||void 0===r?void 0:r.document)||void 0===a?void 0:a.body)?[3,8]:[4,Ef(n)];case 7:return u.sent(),[3,6];case 8:return[4,e(l,l.contentWindow)];case 9:return[2,u.sent()];case 10:return null===(i=l.parentNode)||void 0===i||i.removeChild(l),[7];case 11:return[2]}}))}))}function qf(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),i=a[1]||void 0,o={},l=/([.:#][\w-]+|\[.+?\])/gi,u=function(e,t){o[e]=o[e]||[],o[e].push(t)};;){var c=l.exec(a[2]);if(!c)break;var s=c[0];switch(s[0]){case".":u("class",s.slice(1));break;case"#":u("id",s.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(s);if(!d)throw new Error(r);u(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[i,o]}(e),n=t[0],r=t[1],a=document.createElement(null!=n?n:"div"),i=0,o=Object.keys(r);i.6*n.length}))).sort(),[2,a]}var l}))}))},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return Bf((function(n,r){var a=r.document,i=a.body,o=i.style;o.width="".concat(t,"px"),o.webkitTextSizeAdjust=o.textSizeAdjust="none",Wf()?i.style.zoom="".concat(1/r.devicePixelRatio):Uf()&&(i.style.zoom="reset");var l=a.createElement("div");return l.textContent=mf([],Array(t/20|0),!0).map((function(){return"word"})).join(" "),i.appendChild(l),e(a,i)}),'')}((function(e,t){for(var n={},r={},a=0,i=Object.keys(dp);a=3}())return-1;var n=new t(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var a=n.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,r.connect(a),a.connect(n.destination),r.start(0);var i=function(e){var t=3,n=500,r=500,a=5e3,i=function(){},o=new Promise((function(o,l){var u=!1,c=0,s=0;e.oncomplete=function(e){return o(e.renderedBuffer)};var d=function(){setTimeout((function(){return l(jf("timeout"))}),Math.min(r,s+a-Date.now()))},f=function(){try{var r=e.startRendering();switch(gf(r)&&If(r),e.state){case"running":s=Date.now(),u&&d();break;case"suspended":document.hidden||c++,u&&c>=t?l(jf("suspended")):setTimeout(f,n)}}catch(e){l(e)}};f(),i=function(){u||(u=!0,s>0&&d())}}));return[o,i]}(n),o=i[0],l=i[1],u=o.then((function(e){return function(e){for(var t=0,n=0;n=3}()||t.push(e.languages);else if("string"==typeof e.languages){var r=e.languages;r&&t.push(r.split(","))}return t},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return kf(Of(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return kf(Df(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return kf(Df(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,a=(r=(new Date).getFullYear(),-Math.max(Of(new Date(r,0,1).getTimezoneOffset()),Of(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(a>=0?"+":"").concat(Math.abs(a))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){if(!Hf()&&!function(){var e=window,t=navigator;return Rf(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Hf()}())try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&Uf()&&!Gf()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return Rf(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(yf,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),[4,mp(n)];case 1:return e.sent(),[2,yp(Vf(fp,{debug:r},[]),r)]}}))}))},hashComponents:vp,componentsToDebugString:hp};function gp(e){return function(t,n){return e.chain(t,(function(t){return e.map(n(t),(function(){return t}))}))}}var Cp=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a=e}:e;return function(){var e=Array.from(arguments);return n(arguments)?t.apply(this,e):function(n){return t.apply(void 0,Cp([n],e,!1))}}};function Tp(e){return function(t){return bp(t,e.fromEither)}}function _p(e,t){var n=Tp(e),r=gp(t);return function(e,t){return r(e,n(t))}}function Ap(e){return function(t,n){return e.map(t,(function(){return n}))}}Object.prototype.hasOwnProperty;var Np={_tag:"None"},Lp=function(e){return{_tag:"Some",value:e}};var wp=function(e){return"Left"===e._tag?Np:Lp(e.right)},Dp=function(e,t){return Ip(e,Rp(t))},Op=function(e,t){return Ip(e,Mp(t))},kp="Option",Rp=function(e){return function(t){return Wp(t)?Np:Lp(e(t.value))}},Pp={URI:kp,map:Dp},Mp=(Sp(2,Ap(Pp)),function(e){var t=Ap(e)}(Pp),function(e){return function(t){return Wp(t)||Wp(e)?Np:Lp(t.value(e.value))}}),xp=Sp(2,(function(e,t){return Wp(e)?Np:t(e.value)})),Vp={URI:kp,map:Dp,ap:Op,chain:xp},Hp=(Sp(2,(function(e,t){return Wp(e)?t():e})),{URI:kp,fromEither:wp}),Wp=function(e){return"None"===e._tag};gp(Vp),_p(Hp,Vp);var Up,Gp,zp={url:(null!==(Up=vi.EnvironmentUrls.apiGatewayUrl)&&void 0!==Up?Up:"URL_NOT_FOUND")+"/rotating-client-service"+"/v1/prelude/latest",timeout:1e3},Fp="EmailVerification",jp="otp-challenge-container",Bp="accountSecurityChallengeEmailVerificationEvent",qp={challengeInitialized:"challengeInitialized",challengeCompleted:"challengeCompleted",challengeInvalidated:"challengeInvalidated",challengeAbandoned:"challengeAbandoned"},Zp={challengeInitialized:"ChallengeInitialized",challengeCompleted:"ChallengeCompleted",challengeInvalidated:"ChallengeInvalidated",challengeAbandoned:"ChallengeAbandoned"},Kp={challengeSolveTime:"ChallengeSolveTime"};!function(e){e[e.SET_CHALLENGE_COMPLETED=0]="SET_CHALLENGE_COMPLETED",e[e.SET_CHALLENGE_INVALIDATED=1]="SET_CHALLENGE_INVALIDATED",e[e.HIDE_MODAL_CHALLENGE=2]="HIDE_MODAL_CHALLENGE",e[e.SHOW_MODAL_CHALLENGE=3]="SHOW_MODAL_CHALLENGE"}(Gp||(Gp={}));var Yp,Jp=function(){return Jp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]>>0,this.blockOffsetMask=this.blockSize-1>>>0,this.head=0,n||this.allocate(this.length)}return e.prototype.allocate=function(e){for(var t=0;t>>this.blockIndexShift][this.head&this.blockOffsetMask]=e,this.head+=1},e.prototype.concat=function(e){for(var t=0;t>>this.blockIndexShift][e&this.blockOffsetMask]},e.prototype.getHead=function(){return this.head},e}(),bv=Cv,Iv=function(){function e(e){this.seed=parseInt(e,10)}return e.prototype.hash=function(e){for(var t=this.seed,n=0;n>>17,t=(t^=r=Math.imul(r>>>0,461845907)>>>0)<<13|t>>>19,t=3864292196+(Math.imul(t>>>0,5)>>>0)>>>0}return t^=4*e.length,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),(t^=t>>>16)>>>0},e.prototype.hashOneValue=function(e){var t=this.seed,n=e;return n=(n=Math.imul(n,3432918353))<<15|n>>>17,t=(t^=n=Math.imul(n>>>0,461845907)>>>0)<<13|t>>>19,t=3864292196+(Math.imul(t>>>0,5)>>>0)>>>0,t^=4,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,t=Math.imul(t,3266489909),(t^=t>>>16)>>>0},e.prototype.hashTwoValues=function(e,t){var n=this.seed,r=e;return r=(r=Math.imul(r,3432918353))<<15|r>>>17,n=(n^=r=Math.imul(r>>>0,461845907)>>>0)<<13|n>>>19,n=3864292196+(Math.imul(n>>>0,5)>>>0)>>>0,r=t,r=(r=Math.imul(r,3432918353))<<15|r>>>17,n=(n^=r=Math.imul(r>>>0,461845907)>>>0)<<13|n>>>19,n=3864292196+(Math.imul(n>>>0,5)>>>0)>>>0,n^=8,n^=n>>>16,n=Math.imul(n,2246822507),n^=n>>>13,n=Math.imul(n,3266489909),(n^=n>>>16)>>>0},e.prototype.hashThreeValues=function(e,t,n){var r=this.seed,a=e;return a=(a=Math.imul(a,3432918353))<<15|a>>>17,r=(r^=a=Math.imul(a>>>0,461845907)>>>0)<<13|r>>>19,r=3864292196+(Math.imul(r>>>0,5)>>>0)>>>0,a=t,a=(a=Math.imul(a,3432918353))<<15|a>>>17,r=(r^=a=Math.imul(a>>>0,461845907)>>>0)<<13|r>>>19,r=3864292196+(Math.imul(r>>>0,5)>>>0)>>>0,a=n,a=(a=Math.imul(a,3432918353))<<15|a>>>17,r=(r^=a=Math.imul(a>>>0,461845907)>>>0)<<13|r>>>19,r=3864292196+(Math.imul(r>>>0,5)>>>0)>>>0,r^=12,r^=r>>>16,r=Math.imul(r,2246822507),r^=r>>>13,r=Math.imul(r,3266489909),(r^=r>>>16)>>>0},e}(),Sv=Iv,Tv=Math.pow(2,18);!function(e){e[e.INIT_GRAPH=0]="INIT_GRAPH",e[e.PEBBLE_GRAPH=1]="PEBBLE_GRAPH",e[e.CREATE_MERKLE_TREE=2]="CREATE_MERKLE_TREE",e[e.GENERATE_SOLUTION=3]="GENERATE_SOLUTION"}(ev||(ev={}));var _v,Av=function(){function e(e){this.layers=e.layers,this.rounds=e.rounds,this.hasher=new Sv(e.seed),this.merkleLayers=Math.pow(2,Math.floor(Math.log2(this.layers))),this.blockSize=Math.pow(2,Math.min(this.layers,17)),this.layerSize=Math.pow(2,this.layers),this.prevLayer=new bv(this.layerSize,this.blockSize,!0),this.curLayer=new bv(this.layerSize,this.blockSize,!0),this.merkleTree=new bv(2*this.merkleLayers*this.layerSize-1,this.blockSize,!0),this.step=ev.INIT_GRAPH,this.pebblingLayer=0,this.totalComputedNodes=(this.layers+this.merkleLayers+1)*this.layerSize-1,this.isCancelled=!1}return e.prototype.initPebbling=function(e){0===this.curLayer.getHead()&&this.curLayer.allocate(this.layerSize);for(var t=0;t>>this.layers,o=(n|1<0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0?" input-field-concealed":""),type:n,inputMode:v,autoComplete:m,maxLength:y,disabled:a,value:i,placeholder:r,onChange:Ym(i,E,u,c,s,f),onKeyDown:Zm(d,l),autoFocus:b}),!a&&!g&&I&&Gi().createElement("span",{className:"icon-checkmark-on"}),!a&&!g&&S&&Gi().createElement("span",{className:"icon-close"}),Gi().createElement("div",{className:"form-control-label bottom-label xsmall"},!a&&S?o:h||" ")))},Xm=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))},Qm=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0?u.Action.CodeSent+" ("+b+")":""+u.Action.ResendCode,L?u.Message.Error.Default:k),label:u.Action.ResendCode,enabled:!A&&b<=0,action:function(){return $m(void 0,void 0,void 0,(function(){var e;return ey(this,(function(t){switch(t.label){case 0:return N(!0),null===g?(w(km(u,Rl.UNKNOWN)+" "+u.Action.PleaseTryAgain),N(!1),[2]):[4,c.otp.resendCode(Io.Email,g)];case 1:return(e=t.sent()).isError?(w(Rm(u,Eo.UNKNOWN)+" "+u.Action.PleaseTryAgain),N(!1),[2]):(d.sendOtpResendRequestedEvent(),O(),w(null),C(e.value.otpSessionToken),N(!1),[2])}}))}))}},P=l?Ks:qs.Modal.Body,M=l?qd:Zd,x=l?"inline-challenge-lock-icon":"modal-lock-icon",V=l?"inline-challenge-margin-bottom-xlarge":"modal-margin-bottom-xlarge";return Gi().createElement(Gi().Fragment,null,Gi().createElement(P,null,Gi().createElement("div",{className:x}),Gi().createElement("p",{className:V},L||u.Description.EnterYourOtpCode),Gi().createElement(Jm,{id:"reauthentication-email-otp-input",inputType:"password",disabled:A,value:m,setValue:y,error:L,setError:w,validate:Km,canSubmit:m.length===h,handleSubmit:D,onChange:function(){return w(null)},autoComplete:"off",placeholder:u.Label.YourOtpCode,hideFeedback:!0}),Gi().createElement("p",null,a)),Gi().createElement(M,{positiveButton:R,negativeButton:null}))},ny=function(){var e=Um().state.resources.Action.ForgotYourPassword('',"");return Gi().createElement("span",{dangerouslySetInnerHTML:{__html:e}})},ry=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))},ay=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0,action:y},g=o?Ks:qs.Modal.Body,C=o?qd:Zd,b=o?"inline-challenge-lock-icon":"modal-lock-icon",I=o?"inline-challenge-margin-bottom-xlarge":"modal-margin-bottom-xlarge";return Gi().createElement(Gi().Fragment,null,Gi().createElement(g,null,Gi().createElement("div",{className:b}),Gi().createElement("p",{className:I},l.Description.EnterYourPassword),Gi().createElement(Jm,{id:"reauthentication-password-input",inputType:"password",disabled:p,value:d,setValue:f,error:v,setError:m,validate:Km,canSubmit:d.length>0,handleSubmit:y,onChange:function(){return m(null)},autoComplete:"off",placeholder:l.Label.YourPassword,hideFeedback:!0}),Gi().createElement("p",null,Gi().createElement(ny,null),r)),Gi().createElement(C,{positiveButton:E,negativeButton:null}))},oy=function(e){var t=e.rowLabel,n=e.rowIcon,r=e.requestInFlight,a=e.typeToBeSelected,i=(0,wm.useHistory)();return Gi().createElement("tr",{onClick:r?void 0:function(){return i.push(Om(a))},className:r?"media-type-row disabled":"media-type-row"},Gi().createElement("td",null,Gi().createElement("span",{className:n})),Gi().createElement("td",{className:"media-type-label"},t),Gi().createElement("td",{className:"media-type-selector"},Gi().createElement("span",{className:"icon-next"}),Gi().createElement("div",{className:"icon-placeholder"})))},ly=function(e){var t=e.listItemConfig,n=Um().state,r=n.resources,a=n.renderInline,i=a?Ks:qs.Modal.Body,o=a?"inline-challenge-lock-icon":"modal-lock-icon",l=a?"inline-challenge-margin-bottom-xlarge":"modal-margin-bottom-xlarge",u=a?"":"modal-margin-bottom-large";return Gi().createElement(i,null,Gi().createElement("div",{className:o}),Gi().createElement("p",{className:l},r.Label.ChooseVerificationMethod),Gi().createElement("table",{className:"table table-striped media-type-list "+u},Gi().createElement("tbody",null,t.map((function(e){return Gi().createElement(oy,{key:e.rowLabel,rowLabel:e.rowLabel,rowIcon:e.rowIcon,requestInFlight:e.requestInFlight,typeToBeSelected:e.typeToBeSelected})})))))},uy=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))},cy=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1;(0,Ui.useEffect)((function(){dy(void 0,void 0,void 0,(function(){var e,t,r;return fy(this,(function(i){switch(i.label){case 0:return a!==gh.Passkey?[3,2]:[4,sy()];case 1:if(e=i.sent(),t=a,!e){if(0===(r=n.filter((function(e){return e!==gh.Passkey}))).length)return s({type:om.SET_CHALLENGE_INVALIDATED,errorCode:0}),[2];t=r[r.length-1],s({type:om.SET_REAUTHENTICATION_TYPES,defaultType:t,availableTypes:r})}return m.replace(t),[2];case 2:return m.replace(a),[2]}}))}))}),[]);var E=function(){return Gi().createElement(wm.Switch,null,Gi().createElement(wm.Route,{path:Om(gh.Passkey)},Gi().createElement(jm,{requestInFlightState:d,requestErrorState:f},y&&Gi().createElement(Gm,{requestInFlight:d[0],setRequestError:f[1]}))),Gi().createElement(wm.Route,{path:Om(gh.OtpEmail)},Gi().createElement(ty,{otpResendCodeRemainingTimeState:p,requestInFlightState:d,requestErrorState:f},y&&Gi().createElement(Gm,{requestInFlight:d[0],setRequestError:f[1]}))),Gi().createElement(wm.Route,{path:Om(gh.Password)},Gi().createElement(iy,{requestInFlightState:d,requestErrorState:f},y&&Gi().createElement(Gm,{requestInFlight:d[0],setRequestError:f[1]}))),y&&Gi().createElement(wm.Route,null,Gi().createElement(ly,{listItemConfig:n.map((function(e){var t;return(t={},t[gh.Password]={rowLabel:r.Label.Password,rowIcon:"icon-status-private",requestInFlight:d[0],typeToBeSelected:gh.Password},t[gh.OtpEmail]={rowLabel:r.Label.OneTimeCode,rowIcon:"icon-status-private",requestInFlight:d[0],typeToBeSelected:gh.OtpEmail},t[gh.Passkey]={rowLabel:r.Label.Passkey,rowIcon:"icon-status-private",requestInFlight:d[0],typeToBeSelected:gh.Passkey},t)[e]}))})))},g=function(){var e;return null===h?r.Header.VerificationMethodSelection:(e={},e[gh.Password]=r.Header.PasswordVerification,e[gh.OtpEmail]=r.Header.OtpVerification,e[gh.Passkey]=r.Header.PasskeyVerification,e)[h]},C=Gi().createElement(Zs,{titleText:g()},E()),b=Gi().createElement(qs.Modal,{className:"modal-modern",show:o,onHide:v,backdrop:"static"},Gi().createElement(Jd,{headerText:g(),buttonType:Fd.CLOSE,buttonAction:v,buttonEnabled:!d[0],headerInfo:null}),E());return i?C:b},hy=(0,Hs.withTranslations)((function(e){var t=e.renderInline,n=e.requestService,r=e.metricsService,a=e.eventService,i=e.defaultType,o=e.availableTypes,l=e.defaultTypeMetadata,u=e.shouldModifyBrowserHistory,c=e.translate,s=e.onChallengeCompleted,d=e.onChallengeInvalidated,f=e.onModalChallengeAbandoned,p=Gi().createElement(Wm,{renderInline:t,requestService:n,metricsService:r,eventService:a,translate:c,defaultType:i,availableTypes:o,defaultTypeMetadata:l,onChallengeCompleted:s,onChallengeInvalidated:d,onModalChallengeAbandoned:f},Gi().createElement(py,null));return u?Gi().createElement(Tm.HashRouter,{hashType:"noslash"},p):Gi().createElement(Tm.MemoryRouter,null,p)}),{common:[],feature:"Feature.Reauthentication"}),vy=function(){function e(e){this.defaultType=e}return e.prototype.sendChallengeInitializedEvent=function(){mi().EventStream.SendEventWithTarget(_m,Am.challengeInitialized,{defaultType:this.defaultType},mi().EventStream.TargetTypes.WWW)},e.prototype.sendNoEnabledMethodsReturnedEvent=function(e,t){mi().EventStream.SendEventWithTarget(_m,Am.noEnabledMethodsReturned,{defaultType:this.defaultType,primaryReauthenticationType:e||"unknown",methodsReturned:t},mi().EventStream.TargetTypes.WWW)},e.prototype.sendChallengeInvalidatedEvent=function(e){mi().EventStream.SendEventWithTarget(_m,Am.challengeInvalidated,{defaultType:this.defaultType,reauthenticationType:e||"unknown"},mi().EventStream.TargetTypes.WWW)},e.prototype.sendChallengeAbandonedEvent=function(e){mi().EventStream.SendEventWithTarget(_m,Am.challengeAbandoned,{defaultType:this.defaultType,reauthenticationType:e||"unknown"},mi().EventStream.TargetTypes.WWW)},e.prototype.sendChallengeCompletedEvent=function(e){mi().EventStream.SendEventWithTarget(_m,Am.challengeCompleted,{defaultType:this.defaultType,reauthenticationType:e||"unknown"},mi().EventStream.TargetTypes.WWW)},e.prototype.sendOtpResendRequestedEvent=function(){mi().EventStream.SendEventWithTarget(_m,Am.otpResendRequested,{defaultType:this.defaultType},mi().EventStream.TargetTypes.WWW)},e.prototype.sendReauthenticationTypeChangedEvent=function(e){mi().EventStream.SendEventWithTarget(_m,Am.reauthenticationTypeChanged,{defaultType:this.defaultType,reauthenticationType:e||"unknown"},mi().EventStream.TargetTypes.WWW)},e.prototype.sendCodeSubmittedEvent=function(e){mi().EventStream.SendEventWithTarget(_m,Am.codeSubmitted,{defaultType:this.defaultType,reauthenticationType:e||"unknown"},mi().EventStream.TargetTypes.WWW)},e.prototype.sendCodeVerificationFailedEvent=function(e,t){mi().EventStream.SendEventWithTarget(_m,Am.codeVerificationFailed,{defaultType:this.defaultType,reauthenticationType:e||"unknown",reason:t},mi().EventStream.TargetTypes.WWW)},e.prototype.sendCodeVerifiedEvent=function(e){mi().EventStream.SendEventWithTarget(_m,Am.codeVerified,{defaultType:this.defaultType,reauthenticationType:e||"unknown"},mi().EventStream.TargetTypes.WWW)},e}(),my=function(){return{hasValue:!1}},yy={of:function(e){return null==e?{hasValue:!1}:{hasValue:!0,value:e}},empty:my,map:function(e,t){return e.hasValue?yy.of(t(e.value)):{hasValue:!1}},orElse:function(e,t){return e.hasValue?e:yy.of(t)}},Ey=function(){function e(e,t,n){void 0===n&&(n=new md),this.defaultType=e,this.requestServiceDefault=t,this.eventTimer=n,this.solveTimeSequenceName="Reauthentication_"+Lm.solveTime}return e.prototype.fireInitializedEvent=function(){this.requestServiceDefault.metrics.recordMetric({name:Qc.EventReauthentication,value:1,labelValues:{event_type:Nm.initialized,reauthentication_type:this.defaultType}}),this.eventTimer.start(this.solveTimeSequenceName)},e.prototype.fireVerifiedEvent=function(e){var t=this;this.requestServiceDefault.metrics.recordMetric({name:Qc.EventReauthentication,value:1,labelValues:{event_type:Nm.verified,reauthentication_type:null!=e?e:"unknown"}}),yy.map(yy.of(this.eventTimer.end(this.solveTimeSequenceName)),(function(n){t.requestServiceDefault.metrics.recordMetric({name:Qc.SolveTimeReauthentication,value:n,labelValues:{event_type:Nm.verified,reauthentication_type:null!=e?e:"unknown"}})}))},e.prototype.fireInvalidatedEvent=function(e){var t=this;this.requestServiceDefault.metrics.recordMetric({name:Qc.EventReauthentication,value:1,labelValues:{event_type:Nm.invalidated,reauthentication_type:null!=e?e:"unknown"}}),yy.map(yy.of(this.eventTimer.end(this.solveTimeSequenceName)),(function(n){t.requestServiceDefault.metrics.recordMetric({name:Qc.SolveTimeReauthentication,value:n,labelValues:{event_type:""+Nm.invalidated,reauthentication_type:null!=e?e:"unknown"}})}))},e.prototype.fireAbandonedEvent=function(e){var t=this;this.requestServiceDefault.metrics.recordMetric({name:Qc.EventReauthentication,value:1,labelValues:{event_type:Nm.abandoned,reauthentication_type:null!=e?e:"unknown"}}),yy.map(yy.of(this.eventTimer.end(this.solveTimeSequenceName)),(function(n){t.requestServiceDefault.metrics.recordMetric({name:Qc.SolveTimeReauthentication,value:n,labelValues:{event_type:""+Nm.abandoned,reauthentication_type:null!=e?e:"unknown"}})}))},e}(),gy=new Vs,Cy=function(e){var t=e.containerId,n=e.renderInline,r=e.defaultType,a=e.availableTypes,i=e.defaultTypeMetadata,o=e.shouldModifyBrowserHistory,l=e.onChallengeCompleted,u=e.onChallengeInvalidated,c=e.onModalChallengeAbandoned,s=document.getElementById(t);if(null!==s){(0,zi.unmountComponentAtNode)(s);var d=new vy(r),f=new Ey(r,gy);return(0,zi.render)(Gi().createElement(hy,{renderInline:n,requestService:gy,metricsService:f,eventService:d,defaultType:r,availableTypes:a,defaultTypeMetadata:i,shouldModifyBrowserHistory:o||!1,onChallengeCompleted:l,onChallengeInvalidated:u,onModalChallengeAbandoned:c}),s),d.sendChallengeInitializedEvent(),f.fireInitializedEvent(),!0}return!1},by=function(e){return yI.match(e)&&e.parameters.data.challengeType===Ah.REAUTHENTICATION&&e.parameters.kind===fh.INVALIDATED&&""!==e.parameters.data.errorMessage?e.parameters.data.errorMessage:null},Iy="Rostile",Sy="accountSecurityChallengeRostileEvent",Ty={challengeInitialized:"challengeInitialized",challengeCompleted:"challengeCompleted",challengeInvalidated:"challengeInvalidated",challengeAbandoned:"challengeAbandoned"},_y={challengeInitialized:"ChallengeInitialized",challengeCompleted:"ChallengeCompleted",challengeInvalidated:"ChallengeInvalidated",challengeAbandoned:"ChallengeAbandoned"},Ay={challengeSolveTime:"ChallengeSolveTime"},Ny=function(e){return new Promise((function(t){return setTimeout((function(){return t(void 0)}),e)}))},Ly="RostileChallengeId";!function(e){e[e.INITIAL=0]="INITIAL",e[e.COMPLETED_UNRESOLVED=1]="COMPLETED_UNRESOLVED",e[e.COMPLETED_SUCCESS=2]="COMPLETED_SUCCESS",e[e.COMPLETED_ERROR=3]="COMPLETED_ERROR"}(Mm||(Mm={}));var wy,Dy=function(e){return e===zl.INVALID_SESSION?Ch.INVALID_SESSION:Ch.UNKNOWN};!function(e){e[e.SET_CHALLENGE_COMPLETED=0]="SET_CHALLENGE_COMPLETED",e[e.SET_CHALLENGE_INVALIDATED=1]="SET_CHALLENGE_INVALIDATED",e[e.SET_CHALLENGE_ABANDONED=2]="SET_CHALLENGE_ABANDONED",e[e.HIDE_MODAL_CHALLENGE=3]="HIDE_MODAL_CHALLENGE",e[e.SHOW_MODAL_CHALLENGE=4]="SHOW_MODAL_CHALLENGE"}(wy||(wy={}));var Oy,ky=function(){return ky=Object.assign||function(e){for(var t,n=1,r=arguments.length;n20&&(t.current=Vy(Vy([],t.current.slice(-99)),[{x:n.clientX,y:n.clientY,timestamp:n.timeStamp}]),e=n.timeStamp)});return window.addEventListener("mousemove",n),function(){window.removeEventListener("mousemove",n)}}),[e]),t},Wy=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))},Uy=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0||u.size>0)&&l.sendAnswerChoicesFailedToLoadEvent(Array.from(i),Array.from(u)),[2])}}))}))},(0,Ui.useEffect)((function(){return e(),function(){V()}}),[]);var U=null!==C?Object.entries(C).filter((function(e){return e[1].selected})).length:0,G=null!==y&&(y.answerPrompt===Yl.PICK_ALL_CORRECT_CHOICES||y.correctAnswerChoiceCount===U),z={content:A?Gi().createElement("span",{className:"spinner spinner-xs spinner-no-margin"}):o.Action.Confirm,label:o.Action.Confirm,enabled:!A&&G,action:function(){return dE(void 0,void 0,void 0,(function(){var t,n;return fE(this,(function(i){switch(i.label){case 0:return null===C?[2]:(t=Object.entries(C).filter((function(e){return e[1].selected})).map((function(e){return e[0]})),N(!0),[4,c.securityQuestions.answerQuestion(r,t,a)]);case 1:return(n=i.sent()).isError?n.error===Zl.SESSION_INACTIVE?(f({type:Oy.SET_CHALLENGE_INVALIDATED,errorCode:nE(n.error)}),[2]):(u.fireErroredEvent(),D(tE(o,n.error)+" "+o.Action.PleaseTryAgain),N(!1),[2]):(D(null),n.value.answerCorrect?(u.fireSolvedEvent(),f({type:Oy.SET_CHALLENGE_COMPLETED,onChallengeCompletedData:{redemptionToken:n.value.redemptionToken}}),[3,6]):[3,2]);case 2:return n.value.shouldRequestNewQuestion?(u.fireIncorrectEvent(),V(),[4,Ny(250)]):[3,5];case 3:return i.sent(),R(!0),[4,e()];case 4:return i.sent(),N(!1),[3,6];case 5:n.value.userWasForceReset?(u.fireFailedEvent(),x(!0)):(u.fireErroredEvent(),u.fireFailedEvent(),f({type:Oy.SET_CHALLENGE_INVALIDATED,errorCode:Ih.UNKNOWN})),i.label=6;case 6:return[2]}}))}))}},F={content:o.Action.Reload,label:o.Action.Reload,enabled:null!==S,action:e},j={content:o.Action.Continue,label:o.Action.Continue,enabled:!0,action:function(){window.location.href=vi.Endpoints.getAbsoluteUrl("/login/securityNotification")}},B=function(){var e=i?Ks:qs.Modal.Body,t=i?qd:Zd,n=i?"inline-challenge-lock-icon":"modal-lock-icon",r=i?"inline-challenge-margin-bottom-sm":"modal-margin-bottom-sm",a=i?"inline-challenge-margin-bottom":"modal-margin-bottom",l=i?"inline-challenge-margin-bottom-xlarge":"modal-margin-bottom-xlarge";if(M)return Gi().createElement(Gi().Fragment,null,Gi().createElement(e,null,Gi().createElement("div",{className:n}),Gi().createElement("p",{className:a+" font-bold"},o.Description.YourPasswordHasBeenReset),Gi().createElement("p",{dangerouslySetInnerHTML:{__html:o.Description.RegainAccessGeneric(''+o.Action.Continue+"")}})),Gi().createElement(t,{positiveButton:j,negativeButton:null}));if(null!==S)return Gi().createElement(Gi().Fragment,null,Gi().createElement(e,null,Gi().createElement("p",null,S)),Gi().createElement(t,{positiveButton:F,negativeButton:null}));if(null===h||null===y||null===C)return Gi().createElement(e,null,Gi().createElement("span",{className:"spinner spinner-default spinner-no-margin modal-margin-bottom-large"}));var u=Object.keys(C).length%3==1;return Gi().createElement(Gi().Fragment,null,Gi().createElement(e,null,Gi().createElement("div",{className:n}),Gi().createElement("p",{className:r},o.Description.WhichGames),Gi().createElement("p",{className:l+" font-bold"},y.answerPrompt===Yl.PICK_ALL_CORRECT_CHOICES?o.Action.SelectAllThatApply:o.Action.PickN(y.correctAnswerChoiceCount)),Gi().createElement("p",{className:(k?r:l)+" small"},o.Description.VerifyYourIdentity),k&&Gi().createElement("p",{className:l+" text-error"},o.Message.Error.AnswerIncorrect," ",o.Action.PleaseTryAgain),Gi().createElement("div",{className:l+" answer-choice-area"},Object.keys(C).map((function(e,t){return Gi().createElement(Gi().Fragment,{key:e},Gi().createElement(cE,sE({key:e,setSelected:W(e)},C[e])),u&&t===Object.keys(C).length-3?Gi().createElement("br",null):null)}))),Gi().createElement("p",{className:"text-error xsmall"},w)),Gi().createElement(t,{positiveButton:z,negativeButton:null}))};return i?Gi().createElement(Zs,{titleText:o.Header.PleaseConfirmYourIdentity},B()):Gi().createElement(qs.Modal,{className:"modal-modern",show:d,onHide:H,backdrop:"static"},Gi().createElement(Jd,{headerText:o.Header.PleaseConfirmYourIdentity,buttonType:M?Fd.HIDDEN:Fd.CLOSE,buttonAction:H,buttonEnabled:!A,headerInfo:null}),B())},hE=(0,Hs.withTranslations)((function(e){var t=e.userId,n=e.sessionId,r=e.renderInline,a=e.eventService,i=e.metricsService,o=e.requestService,l=e.translate,u=e.onChallengeCompleted,c=e.onChallengeInvalidated,s=e.onModalChallengeAbandoned;return Gi().createElement(lE,{userId:t,sessionId:n,renderInline:r,eventService:a,metricsService:i,requestService:o,translate:l,onChallengeCompleted:u,onChallengeInvalidated:c,onModalChallengeAbandoned:s},Gi().createElement(pE,null))}),{common:["CommonUI.Messages"],feature:"Feature.SecurityQuestions"}),vE=function(){function e(e){this.sessionId=e}return e.prototype.sendAnswerChoicesFailedToLoadEvent=function(e,t){mi().EventStream.SendEventWithTarget(Xy,Qy.answerChoicesFailedToLoad,{sessionId:this.sessionId,answerChoicesWithNoCaption:JSON.stringify(e),answerChoicesWithNoIcon:JSON.stringify(t)},mi().EventStream.TargetTypes.WWW)},e}(),mE=function(){function e(e){var t=e.appType,n=e.requestServiceDefault;this.appType=t||"unknown",this.requestServiceDefault=n}return e.prototype.fireInitializedEvent=function(){this.requestServiceDefault.metrics.recordMetric({name:Qc.EventSecurityQuestion,value:1,labelValues:{event_type:$y.initialized,application_type:this.appType}}).catch((function(){}))},e.prototype.fireErroredEvent=function(){this.requestServiceDefault.metrics.recordMetric({name:Qc.EventSecurityQuestion,value:1,labelValues:{event_type:$y.errored,application_type:this.appType}}).catch((function(){}))},e.prototype.fireSolvedEvent=function(){this.requestServiceDefault.metrics.recordMetric({name:Qc.EventSecurityQuestion,value:1,labelValues:{event_type:$y.solved,application_type:this.appType}}).catch((function(){}))},e.prototype.fireIncorrectEvent=function(){this.requestServiceDefault.metrics.recordMetric({name:Qc.EventSecurityQuestion,value:1,labelValues:{event_type:$y.incorrect,application_type:this.appType}}).catch((function(){}))},e.prototype.fireFailedEvent=function(){this.requestServiceDefault.metrics.recordMetric({name:Qc.EventSecurityQuestion,value:1,labelValues:{event_type:$y.failed,application_type:this.appType}}).catch((function(){}))},e}(),yE=new Vs,EE=function(e){var t=e.containerId,n=e.userId,r=e.sessionId,a=e.appType,i=e.renderInline,o=e.onChallengeCompleted,l=e.onChallengeInvalidated,u=e.onModalChallengeAbandoned;n=n.toString();var c=document.getElementById(t);if(null!==c){(0,zi.unmountComponentAtNode)(c);var s=new vE(r),d=new mE({appType:a,requestServiceDefault:yE});return(0,zi.render)(Gi().createElement(hE,{userId:n,sessionId:r,renderInline:i,eventService:s,metricsService:d,requestService:yE,onChallengeCompleted:o,onChallengeInvalidated:l,onModalChallengeAbandoned:u}),c),d.fireInitializedEvent(),!0}return!1},gE="TwoStepVerification",CE=100,bE="accountSecurityChallengeTwoStepVerificationEvent",IE={challengeInitialized:"challengeInitialized",userConfigurationLoaded:"userConfigurationLoaded",challengeInvalidated:"challengeInvalidated",challengeAbandoned:"challengeAbandoned",emailResendRequested:"emailResendRequested",smsResendRequested:"smsResendRequested",mediaTypeChanged:"mediaTypeChanged",codeSubmitted:"codeSubmitted",codeVerificationFailed:"codeVerificationFailed",codeVerified:"codeVerified",noEnabledMethodsReturned:"noEnabledMethodsReturned",tryToSwitchMediaType:"switchMediaType"},SE={initialized:"Initialized",verified:"Verified",invalidated:"Invalidated",abandoned:"Abandoned"},TE={solveTime:"SolveTime"},_E=function(e,t){switch(t){case Du.FEATURE_DISABLED:return e.Response.FeatureNotAvailable;case Du.INVALID_CODE:return e.Response.InvalidCode;case Du.TOO_MANY_REQUESTS:return e.Response.TooManyAttempts;case Du.INVALID_CHALLENGE_ID:return e.Response.SessionExpired;case Du.AUTHENTICATOR_CODE_ALREADY_USED:return e.Response.AuthenticatorCodeAlreadyUsed;case Du.INVALID_PASSWORD:return e.Response.InvalidPassword;default:return e.Response.DefaultError}},AE=function(e){return e===Du.INVALID_CHALLENGE_ID?_h.SESSION_EXPIRED:_h.UNKNOWN},NE=function(){var e=(0,wm.useLocation)(),t=(0,wm.matchPath)(e.pathname,{path:"/:activeMediaType",exact:!0,strict:!1});return(null==t?void 0:t.params)?null==t?void 0:t.params.activeMediaType:null},LE=function(e){return"/"+(e||"")};!function(e){e[e.SET_METADATA=0]="SET_METADATA",e[e.SET_USER_CONFIGURATION=1]="SET_USER_CONFIGURATION",e[e.SET_CHALLENGE_COMPLETED=2]="SET_CHALLENGE_COMPLETED",e[e.SET_CHALLENGE_INVALIDATED=3]="SET_CHALLENGE_INVALIDATED",e[e.HIDE_MODAL_CHALLENGE=4]="HIDE_MODAL_CHALLENGE",e[e.SHOW_MODAL_CHALLENGE=5]="SHOW_MODAL_CHALLENGE"}(rE||(rE={}));var wE,DE,OE=function(){return OE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]'+n.Label.RobloxSupport+"");return Gi().createElement("p",{className:"text-footer"+(t?" "+t:""),dangerouslySetInnerHTML:{__html:r}})},zE=/^[0-9]*$/,FE=/^[A-Za-z0-9]*$/,jE=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))},BE=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=4?[4,m.twoStepVerification.retractCrossDevice(u,{challengeId:c,actionType:s})]:[3,2];case 1:return t.sent(),r(f.Label.TwoStepVerification),_(f.Description.LoginExpired),a(!1),L(!1),O(!0),[2];case 2:return P(R+1),n(!0),I(null),r(f.Label.TwoStepVerification),_(f.Label.ApproveWithDevice),[4,m.twoStepVerification.retryCrossDevice(u,{challengeId:c,actionType:s})];case 3:return(e=t.sent()).isError?(h.sendCodeVerificationFailedEvent(g,s,Du[e.error||Du.UNKNOWN]),e.error===Du.INVALID_USER_ID||e.error===Du.INVALID_CHALLENGE_ID?(E({type:rE.SET_CHALLENGE_INVALIDATED,errorCode:AE(e.error)}),[2]):(n(!1),I(_E(f,e.error)),[2])):(R>0&&V(!0),n(!1),[2])}}))}))},W=d?Ks:qs.Modal.Body,U=d?"inline-challenge-margin-bottom":"modal-margin-bottom",G=d?"inline-challenge-action-button":"modal-action-button";G=(G=G.concat(" ","btn-secondary-md")).concat(" ",U);var z=d?"inline-challenge-action-button":"modal-action-button";z=(z=z.concat(" ","btn-cta-md")).concat(" ",U);var F=(d?"inline-margin-bottom-xlarge":"modal-margin-bottom-xlarge").concat(" ","text-error xsmall"),j=d?"inline-challenge-lock-icon":"modal-lock-icon";return(0,Ui.useEffect)((function(){if(x){var e=setTimeout((function(){V(!1)}),3e3);return function(){return clearTimeout(e)}}}),[x]),(0,Ui.useEffect)((function(){H().then((function(){return I(null)})).catch((function(){return I(_E(f,Du.UNKNOWN))}));var e=setInterval((function(){m.twoStepVerification.verifyCrossDevice(u,{challengeId:c,actionType:s}).then((function(t){if(t.isError){if(h.sendCodeVerificationFailedEvent(g,s,Du[t.error||Du.UNKNOWN]),t.error===Du.CHALLENGE_DENIED)return r(f.Label.TwoStepVerification),_(f.Description.Denied),a(!1),L(!1),void clearInterval(e);if(t.error===Du.CROSS_DEVICE_DIALOG_EXPIRED)return r(f.Label.TwoStepVerification),_(f.Description.Expired),a(!1),L(!1),O(!0),void clearInterval(e);if(t.error===Du.INVALID_USER_ID||t.error===Du.INVALID_CHALLENGE_ID)return void E({type:rE.SET_CHALLENGE_INVALIDATED,errorCode:AE(t.error)});I(_E(f,t.error))}else t.value.verificationToken&&(h.sendCodeVerifiedEvent(g,s),v.fireVerifiedEvent(g),E({type:rE.SET_CHALLENGE_COMPLETED,onChallengeCompletedData:{verificationToken:t.value.verificationToken,rememberDevice:!1}}))})).catch((function(){return I(_E(f,Du.UNKNOWN))}))}),3e3);return function(){clearInterval(e)}}),[]),p&&Gi().createElement(Gi().Fragment,null,Gi().createElement(W,null,Gi().createElement("div",{className:j}),Gi().createElement("p",{className:U},T),N?Gi().createElement("button",{type:"button",className:G,"aria-label":f.Action.Retry,disabled:t,onClick:H},t||x?Gi().createElement("span",{className:"spinner spinner-xs spinner-no-margin"}):f.Action.Retry):Gi().createElement("button",{type:"button",className:z,"aria-label":f.Action.Okay,disabled:t,onClick:function(){E({type:rE.HIDE_MODAL_CHALLENGE}),h.sendChallengeAbandonedEvent(g,s),v.fireAbandonedEvent(),null!==y&&setTimeout((function(){return y((function(){return E({type:rE.SHOW_MODAL_CHALLENGE})}))}),CE)}},t?Gi().createElement("span",{className:"spinner spinner-xs spinner-no-margin"}):f.Action.Okay),N?i:null,N||D?Gi().createElement("p",{className:"text-footer "+U,dangerouslySetInnerHTML:{__html:f.Label.HelpCenterLink(''+f.Label.HelpCenter+"")}}):null,Gi().createElement("p",{className:F},b)))},dg=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))},fg=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&(E=!0,i=l[0])),m.replace(LE(i)),i!==Th.Email?[3,7]:E?(c.sendEmailResendRequestedEvent(),[4,d.twoStepVerification.sendEmailCode(n,{challengeId:r,actionType:a})]):[3,6];case 5:(C=b.sent()).isError&&((null==C?void 0:C.error)!==Du.INVALID_USER_ID&&(null==C?void 0:C.error)!==Du.INVALID_CHALLENGE_ID||h({type:rE.SET_CHALLENGE_INVALIDATED,errorCode:AE(C.error)})),b.label=6;case 6:g(!E),b.label=7;case 7:return 0!==l.length&&i||c.sendNoEnabledMethodsReturnedEvent(i,a,t.value.methods.length),!l.includes(Th.SecurityKey)||f||y||l.splice(l.indexOf(Th.SecurityKey),1),l.length>0&&a===Sh.Login&&!l.includes(Th.RecoveryCode)&&l.push(Th.RecoveryCode),h({type:rE.SET_USER_CONFIGURATION,userConfiguration:t.value,enabledMediaTypes:l}),c.sendUserConfigurationLoadedEvent(i,a),[2]}}))}))};(0,Ui.useEffect)((function(){x()}),[]);var V={content:u.Action.Reload,label:u.Action.Reload,enabled:null!==T,action:x},H=function(){var e,t=i?Ks:qs.Modal.Body,n=i?qd:Zd;return T?Gi().createElement(Gi().Fragment,null,Gi().createElement(t,null,Gi().createElement("p",null,T)),Gi().createElement(n,{positiveButton:V,negativeButton:null})):o?(e=Gi().createElement(Gi().Fragment,null,v&&l.length>1&&R&&Gi().createElement(WE,{requestInFlight:N,originalMediaType:v,actionType:a})),Gi().createElement(wm.Switch,null,Gi().createElement(wm.Route,{path:LE(Th.Authenticator)},Gi().createElement(qE,{requestInFlight:N,setRequestInFlight:L},e)),Gi().createElement(wm.Route,{path:LE(Th.Email)},Gi().createElement(QE,{requestInFlight:N,setRequestInFlight:L},e)),Gi().createElement(wm.Route,{path:LE(Th.RecoveryCode)},Gi().createElement(tg,{requestInFlight:N,setRequestInFlight:L},e)),Gi().createElement(wm.Route,{path:LE(Th.SMS)},Gi().createElement(lg,{requestInFlight:N,setRequestInFlight:L},e)),Gi().createElement(wm.Route,{path:LE(Th.SecurityKey)},Gi().createElement(ag,{requestInFlight:N,setRequestInFlight:L},e)),Gi().createElement(wm.Route,{path:LE(Th.CrossDevice)},Gi().createElement(sg,{requestInFlight:N,setRequestInFlight:L,setModalTitleText:O,setShowChangeMediaType:P},e)),Gi().createElement(wm.Route,{path:LE(Th.Passkey)},Gi().createElement(pg,{requestInFlight:N,setRequestInFlight:L},e)),Gi().createElement(wm.Route,{path:LE(Th.Password)},Gi().createElement(mg,{requestInFlight:N,setRequestInFlight:L},e)),Gi().createElement(wm.Route,null,Gi().createElement(HE,{hasSentEmailCode:E,setHasSentEmailCode:g,hasSentSmsCode:b,setHasSentSmsCode:I,requestInFlight:N,setRequestInFlight:L,setModalTitleText:O},e)))):Gi().createElement(t,null,Gi().createElement("span",{className:"spinner spinner-default spinner-no-margin modal-margin-bottom-large"}))};return i?Gi().createElement(Zs,{titleText:D},H()):Gi().createElement(qs.Modal,{className:"modal-modern",show:p,onHide:M,backdrop:"static"},Gi().createElement(Jd,{headerText:D,buttonType:Fd.CLOSE,buttonAction:M,buttonEnabled:!N,headerInfo:null}),H())},Cg=(0,Hs.withTranslations)((function(e){var t=e.userId,n=e.challengeId,r=e.actionType,a=e.renderInline,i=e.shouldModifyBrowserHistory,o=e.shouldShowRememberDeviceCheckbox,l=e.eventService,u=e.metricsService,c=e.requestService,s=e.translate,d=e.onChallengeCompleted,f=e.onChallengeInvalidated,p=e.onModalChallengeAbandoned,h=Gi().createElement(PE,{userId:t,challengeId:n,actionType:r,renderInline:a,shouldShowRememberDeviceCheckbox:o,eventService:l,metricsService:u,requestService:c,translate:s,onChallengeCompleted:d,onChallengeInvalidated:f,onModalChallengeAbandoned:p},Gi().createElement(gg,null));return i?Gi().createElement(Tm.HashRouter,{hashType:"noslash"},h):Gi().createElement(Tm.MemoryRouter,null,h)}),{common:[],feature:"Authentication.TwoStepVerification"}),bg=function(){function e(e,t){this.challengeId=e,this.targetUserId=t}return e.prototype.sendChallengeInitializedEvent=function(){mi().EventStream.SendEventWithTarget(bE,IE.challengeInitialized,{challengeId:this.challengeId,targetUserId:this.targetUserId},mi().EventStream.TargetTypes.WWW)},e.prototype.sendUserConfigurationLoadedEvent=function(e,t){mi().EventStream.SendEventWithTarget(bE,IE.userConfigurationLoaded,{challengeId:this.challengeId,targetUserId:this.targetUserId,mediaType:e||"",actionType:t||""},mi().EventStream.TargetTypes.WWW)},e.prototype.sendNoEnabledMethodsReturnedEvent=function(e,t,n){mi().EventStream.SendEventWithTarget(bE,IE.noEnabledMethodsReturned,{challengeId:this.challengeId,targetUserId:this.targetUserId,primaryMediaType:e||"",actionType:t||"",methodsReturned:n},mi().EventStream.TargetTypes.WWW)},e.prototype.sendChallengeInvalidatedEvent=function(e,t){mi().EventStream.SendEventWithTarget(bE,IE.challengeInvalidated,{challengeId:this.challengeId,targetUserId:this.targetUserId,mediaType:e||"",actionType:t||""},mi().EventStream.TargetTypes.WWW)},e.prototype.sendChallengeAbandonedEvent=function(e,t){mi().EventStream.SendEventWithTarget(bE,IE.challengeAbandoned,{challengeId:this.challengeId,targetUserId:this.targetUserId,mediaType:e||"",actionType:t||""},mi().EventStream.TargetTypes.WWW)},e.prototype.sendEmailResendRequestedEvent=function(){mi().EventStream.SendEventWithTarget(bE,IE.emailResendRequested,{challengeId:this.challengeId,targetUserId:this.targetUserId},mi().EventStream.TargetTypes.WWW)},e.prototype.sendSmsResendRequestedEvent=function(){mi().EventStream.SendEventWithTarget(bE,IE.smsResendRequested,{challengeId:this.challengeId,targetUserId:this.targetUserId},mi().EventStream.TargetTypes.WWW)},e.prototype.sendMediaTypeChangedEvent=function(e,t){mi().EventStream.SendEventWithTarget(bE,IE.mediaTypeChanged,{challengeId:this.challengeId,targetUserId:this.targetUserId,mediaType:e||"",actionType:t||""},mi().EventStream.TargetTypes.WWW)},e.prototype.sendCodeSubmittedEvent=function(e,t){mi().EventStream.SendEventWithTarget(bE,IE.codeSubmitted,{challengeId:this.challengeId,targetUserId:this.targetUserId,mediaType:e||"",actionType:t||""},mi().EventStream.TargetTypes.WWW)},e.prototype.sendCodeVerificationFailedEvent=function(e,t,n){mi().EventStream.SendEventWithTarget(bE,IE.codeVerificationFailed,{challengeId:this.challengeId,targetUserId:this.targetUserId,mediaType:e||"",actionType:t||"",reason:n},mi().EventStream.TargetTypes.WWW)},e.prototype.sendTryToSwitchMediaTypeEvent=function(e,t){mi().EventStream.SendEventWithTarget(bE,IE.tryToSwitchMediaType,{challengeId:this.challengeId,targetUserId:this.targetUserId,mediaType:e||"",actionType:t||""},mi().EventStream.TargetTypes.WWW)},e.prototype.sendCodeVerifiedEvent=function(e,t){mi().EventStream.SendEventWithTarget(bE,IE.codeVerified,{challengeId:this.challengeId,targetUserId:this.targetUserId,mediaType:e||"",actionType:t||""},mi().EventStream.TargetTypes.WWW)},e}(),Ig=function(){function e(e,t,n){this.appType=t||"unknown",this.actionType=e,this.solveTimeSequenceName=this.actionType+"_"+gE+"_"+TE.solveTime,this.eventTimer=new md,this.requestServiceDefault=n}return e.prototype.fireInitializedEvent=function(){if(yd){var e=this.actionType+"_"+gE+"_"+SE.initialized;yd.fireEvent(e,e+"_"+this.appType),yd.start(this.solveTimeSequenceName,this.solveTimeSequenceName+"_"+this.appType)}this.requestServiceDefault.metrics.recordMetric({name:Qc.Event2sv,value:1,labelValues:{action_type:this.actionType,event_type:SE.initialized,application_type:this.appType}}).catch((function(){})),this.eventTimer.start(this.solveTimeSequenceName)},e.prototype.fireVerifiedEvent=function(e){if(null!==e){if(yd){var t=this.actionType+"_"+gE+"_"+SE.verified+e;yd.fireEvent(t,t+"_"+this.appType),yd.endSuccess(this.solveTimeSequenceName,this.solveTimeSequenceName+"_"+this.appType)}this.requestServiceDefault.metrics.recordMetric({name:Qc.Event2sv,value:1,labelValues:{action_type:this.actionType,event_type:""+SE.verified+e,application_type:this.appType}}).catch((function(){}));var n=this.eventTimer.end(this.solveTimeSequenceName);null!==n&&this.requestServiceDefault.metrics.recordMetric({name:Qc.SolveTime2sv,value:n,labelValues:{action_type:this.actionType,event_type:""+SE.verified+e,application_type:this.appType}}).catch((function(){}))}},e.prototype.fireInvalidatedEvent=function(){if(yd){var e=this.actionType+"_"+gE+"_"+SE.invalidated;yd.fireEvent(e,e+"_"+this.appType),yd.endFailure(this.solveTimeSequenceName,this.solveTimeSequenceName+"_"+this.appType)}this.requestServiceDefault.metrics.recordMetric({name:Qc.Event2sv,value:1,labelValues:{action_type:this.actionType,event_type:SE.invalidated,application_type:this.appType}}).catch((function(){}));var t=this.eventTimer.end(this.solveTimeSequenceName);null!==t&&this.requestServiceDefault.metrics.recordMetric({name:Qc.SolveTime2sv,value:t,labelValues:{action_type:this.actionType,event_type:SE.invalidated,application_type:this.appType}}).catch((function(){}))},e.prototype.fireAbandonedEvent=function(){if(yd){var e=this.actionType+"_"+gE+"_"+SE.abandoned;yd.fireEvent(e,e+"_"+this.appType),yd.endCancel(this.solveTimeSequenceName,this.solveTimeSequenceName+"_"+this.appType)}this.requestServiceDefault.metrics.recordMetric({name:Qc.Event2sv,value:1,labelValues:{action_type:this.actionType,event_type:SE.abandoned,application_type:this.appType}}).catch((function(){}));var t=this.eventTimer.end(this.solveTimeSequenceName);null!==t&&this.requestServiceDefault.metrics.recordMetric({name:Qc.SolveTime2sv,value:t,labelValues:{action_type:this.actionType,event_type:SE.abandoned,application_type:this.appType}}).catch((function(){}))},e}(),Sg=new Vs,Tg=function(e){var t=e.containerId,n=e.userId,r=e.challengeId,a=e.appType,i=e.actionType,o=e.renderInline,l=e.shouldModifyBrowserHistory,u=e.shouldShowRememberDeviceCheckbox,c=e.onChallengeCompleted,s=e.onChallengeInvalidated,d=e.onModalChallengeAbandoned,f=document.getElementById(t);if(null!==f){(0,zi.unmountComponentAtNode)(f);var p=new bg(r,n),h=new Ig(i,a,Sg);return(0,zi.render)(Gi().createElement(Cg,{userId:n,challengeId:r,actionType:i,renderInline:o,shouldModifyBrowserHistory:l||!1,shouldShowRememberDeviceCheckbox:u,eventService:p,metricsService:h,requestService:Sg,onChallengeCompleted:c,onChallengeInvalidated:s,onModalChallengeAbandoned:d}),f),p.sendChallengeInitializedEvent(),h.fireInitializedEvent(),!0}return!1},_g="Generic Challenge:",Ag="challengeClientAnalysisEventV1",Ng={onCompleted:"onCompleted"},Lg={success:"Success",parseFailure:"ParseFailure",renderFailure:"RenderFailure",continueFailure:"ContinueFailure"},wg="unknown",Dg=function(){function e(){}return e.prototype.fireSuccessEvent=function(e){ls({name:Qc.EventGeneric,value:1,labelValues:{event_type:Lg.success,challenge_type:e}}).catch((function(){}))},e.prototype.fireParseFailureEvent=function(){ls({name:Qc.EventGeneric,value:1,labelValues:{event_type:Lg.parseFailure,challenge_type:wg}}).catch((function(){}))},e.prototype.fireRenderFailureEvent=function(e){ls({name:Qc.EventGeneric,value:1,labelValues:{event_type:Lg.renderFailure,challenge_type:e}}).catch((function(){}))},e.prototype.fireContinueFailureEvent=function(e){ls({name:Qc.EventGeneric,value:1,labelValues:{event_type:Lg.continueFailure,challenge_type:e}}).catch((function(){}))},e}();function Og(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(e,t)||Xg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kg(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function Rg(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){kg(i,r,a,o,l,"next",e)}function l(e){kg(i,r,a,o,l,"throw",e)}o(void 0)}))}}function Pg(e){return function(e){if(Array.isArray(e))return Qg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Xg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xg(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function Xg(e,t){if(e){if("string"==typeof e)return Qg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qg(e,t):void 0}}function Qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:" | ";return e.map((function(e){return"string"==typeof e?"'".concat(e,"'"):e})).join(t)},e.jsonStringifyReplacer=function(e,t){return"bigint"==typeof t?t.toString():t}}(wE||(wE={})),function(e){e.mergeShapes=function(e,t){return Kg(Kg({},e),t)}}(DE||(DE={}));var $g=wE.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),eC=function(e){switch(qg(e)){case"undefined":return $g.undefined;case"string":return $g.string;case"number":return isNaN(e)?$g.nan:$g.number;case"boolean":return $g.boolean;case"function":return $g.function;case"bigint":return $g.bigint;case"symbol":return $g.symbol;case"object":return Array.isArray(e)?$g.array:null===e?$g.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?$g.promise:"undefined"!=typeof Map&&e instanceof Map?$g.map:"undefined"!=typeof Set&&e instanceof Set?$g.set:"undefined"!=typeof Date&&e instanceof Date?$g.date:$g.object;default:return $g.unknown}},tC=wE.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),nC=function(e){Hg(n,e);var t=Wg(n);function n(e){var r;Mg(this,n),(r=t.call(this)).issues=[],r.addIssue=function(e){r.issues=[].concat(Pg(r.issues),[e])},r.addIssues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r.issues=[].concat(Pg(r.issues),Pg(e))};var a=(this instanceof n?this.constructor:void 0).prototype;return Object.setPrototypeOf?Object.setPrototypeOf(Ug(r),a):r.__proto__=a,r.name="ZodError",r.issues=e,r}return Vg(n,[{key:"errors",get:function(){return this.issues}}]),Vg(n,[{key:"format",value:function(e){var t=e||function(e){return e.message},n={_errors:[]};return function e(r){var a,i=Jg(r.issues);try{for(i.s();!(a=i.n()).done;){var o=a.value;if("invalid_union"===o.code)o.unionErrors.map(e);else if("invalid_return_type"===o.code)e(o.returnTypeError);else if("invalid_arguments"===o.code)e(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else for(var l=n,u=0;u0&&void 0!==arguments[0]?arguments[0]:function(e){return e.message},n={},r=[],a=Jg(this.issues);try{for(a.s();!(e=a.n()).done;){var i=e.value;i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i))}}catch(e){a.e(e)}finally{a.f()}return{formErrors:r,fieldErrors:n}}},{key:"message",get:function(){return JSON.stringify(this.issues,wE.jsonStringifyReplacer,2)}},{key:"isEmpty",get:function(){return 0===this.issues.length}},{key:"formErrors",get:function(){return this.flatten()}}],[{key:"assert",value:function(e){if(!(e instanceof n))throw new Error("Not a ZodError: ".concat(e))}}]),n}(Gg(Error));nC.create=function(e){return new nC(e)};var rC=function(e,t){var n;switch(e.code){case tC.invalid_type:n=e.received===$g.undefined?"Required":"Expected ".concat(e.expected,", received ").concat(e.received);break;case tC.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,wE.jsonStringifyReplacer));break;case tC.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(wE.joinValues(e.keys,", "));break;case tC.invalid_union:n="Invalid input";break;case tC.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(wE.joinValues(e.options));break;case tC.invalid_enum_value:n="Invalid enum value. Expected ".concat(wE.joinValues(e.options),", received '").concat(e.received,"'");break;case tC.invalid_arguments:n="Invalid function arguments";break;case tC.invalid_return_type:n="Invalid function return type";break;case tC.invalid_date:n="Invalid date";break;case tC.invalid_string:"object"===qg(e.validation)?"includes"in e.validation?(n='Invalid input: must include "'.concat(e.validation.includes,'"'),"number"==typeof e.validation.position&&(n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position))):"startsWith"in e.validation?n='Invalid input: must start with "'.concat(e.validation.startsWith,'"'):"endsWith"in e.validation?n='Invalid input: must end with "'.concat(e.validation.endsWith,'"'):wE.assertNever(e.validation):n="regex"!==e.validation?"Invalid ".concat(e.validation):"Invalid";break;case tC.too_small:n="array"===e.type?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)"):"string"===e.type?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)"):"number"===e.type?"Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum):"date"===e.type?"Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum))):"Invalid input";break;case tC.too_big:n="array"===e.type?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)"):"string"===e.type?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)"):"number"===e.type?"Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):"bigint"===e.type?"BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):"date"===e.type?"Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum))):"Invalid input";break;case tC.custom:n="Invalid input";break;case tC.invalid_intersection_types:n="Intersection results could not be merged";break;case tC.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case tC.not_finite:n="Number must be finite";break;default:n=t.defaultError,wE.assertNever(e)}return{message:n}},aC=rC;function iC(){return aC}var oC=function(e){var t=e.data,n=e.path,r=e.errorMaps,a=e.issueData,i=[].concat(Pg(n),Pg(a.path||[])),o=Kg(Kg({},a),{},{path:i});if(void 0!==a.message)return Kg(Kg({},a),{},{path:i,message:a.message});var l,u="",c=r.filter((function(e){return!!e})).slice().reverse(),s=Jg(c);try{for(s.s();!(l=s.n()).done;){u=(0,l.value)(o,{data:t,defaultError:u}).message}}catch(e){s.e(e)}finally{s.f()}return Kg(Kg({},a),{},{path:i,message:u})};function lC(e,t){var n=iC(),r=oC({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===rC?void 0:rC].filter((function(e){return!!e}))});e.common.issues.push(r)}var uC,cC,sC,dC=function(){function e(){Mg(this,e),this.value="valid"}var t;return Vg(e,[{key:"dirty",value:function(){"valid"===this.value&&(this.value="dirty")}},{key:"abort",value:function(){"aborted"!==this.value&&(this.value="aborted")}}],[{key:"mergeArray",value:function(e,t){var n,r=[],a=Jg(t);try{for(a.s();!(n=a.n()).done;){var i=n.value;if("aborted"===i.status)return fC;"dirty"===i.status&&e.dirty(),r.push(i.value)}}catch(e){a.e(e)}finally{a.f()}return{status:e.value,value:r}}},{key:"mergeObjectAsync",value:(t=Rg(regeneratorRuntime.mark((function t(n,r){var a,i,o,l,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=[],i=Jg(r),t.prev=2,i.s();case 4:if((o=i.n()).done){t.next=15;break}return l=o.value,t.next=8,l.key;case 8:return u=t.sent,t.next=11,l.value;case 11:c=t.sent,a.push({key:u,value:c});case 13:t.next=4;break;case 15:t.next=20;break;case 17:t.prev=17,t.t0=t.catch(2),i.e(t.t0);case 20:return t.prev=20,i.f(),t.finish(20);case 23:return t.abrupt("return",e.mergeObjectSync(n,a));case 24:case"end":return t.stop()}}),t,null,[[2,17,20,23]])}))),function(e,n){return t.apply(this,arguments)})},{key:"mergeObjectSync",value:function(e,t){var n,r={},a=Jg(t);try{for(a.s();!(n=a.n()).done;){var i=n.value,o=i.key,l=i.value;if("aborted"===o.status)return fC;if("aborted"===l.status)return fC;"dirty"===o.status&&e.dirty(),"dirty"===l.status&&e.dirty(),"__proto__"===o.value||void 0===l.value&&!i.alwaysSet||(r[o.value]=l.value)}}catch(e){a.e(e)}finally{a.f()}return{status:e.value,value:r}}}]),e}(),fC=Object.freeze({status:"aborted"}),pC=function(e){return{status:"dirty",value:e}},hC=function(e){return{status:"valid",value:e}},vC=function(e){return"aborted"===e.status},mC=function(e){return"dirty"===e.status},yC=function(e){return"valid"===e.status},EC=function(e){return"undefined"!=typeof Promise&&e instanceof Promise};function gC(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function CC(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=function(e){return"string"==typeof e?{message:e}:e||{}},e.toString=function(e){return"string"==typeof e?e:null==e?void 0:e.message}}(uC||(uC={}));var bC=function(){function e(t,n,r,a){Mg(this,e),this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}return Vg(e,[{key:"path",get:function(){var e,t;this._cachedPath.length||(this._key instanceof Array?(e=this._cachedPath).push.apply(e,Pg(this._path).concat(Pg(this._key))):(t=this._cachedPath).push.apply(t,Pg(this._path).concat([this._key])));return this._cachedPath}}]),e}(),IC=function(e,t){if(yC(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;var t=new nC(e.common.issues);return this._error=t,this._error}}};function SC(e){if(!e)return{};var t=e.errorMap,n=e.invalid_type_error,r=e.required_error,a=e.description;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:a};return{errorMap:function(t,a){var i,o,l=e.message;return"invalid_enum_value"===t.code?{message:null!=l?l:a.defaultError}:void 0===a.data?{message:null!==(i=null!=l?l:r)&&void 0!==i?i:a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:null!==(o=null!=l?l:n)&&void 0!==o?o:a.defaultError}},description:a}}var TC,_C=function(){var e,t;function n(e){var t=this;Mg(this,n),this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:function(e){return t["~validate"](e)}}}return Vg(n,[{key:"_getType",value:function(e){return eC(e.data)}},{key:"_getOrReturnCtx",value:function(e,t){return t||{common:e.parent.common,data:e.data,parsedType:eC(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}},{key:"_processInputParams",value:function(e){return{status:new dC,ctx:{common:e.parent.common,data:e.data,parsedType:eC(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}},{key:"_parseSync",value:function(e){var t=this._parse(e);if(EC(t))throw new Error("Synchronous parse encountered promise.");return t}},{key:"_parseAsync",value:function(e){var t=this._parse(e);return Promise.resolve(t)}},{key:"parse",value:function(e,t){var n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}},{key:"safeParse",value:function(e,t){var n,r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:eC(e)},a=this._parseSync({data:e,path:r.path,parent:r});return IC(r,a)}},{key:"~validate",value:function(e){var t,n,r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:eC(e)};if(!this["~standard"].async)try{var a=this._parseSync({data:e,path:[],parent:r});return yC(a)?{value:a.value}:{issues:r.common.issues}}catch(e){(null===(n=null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then((function(e){return yC(e)?{value:e.value}:{issues:r.common.issues}}))}},{key:"parseAsync",value:(t=Rg(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.safeParseAsync(t,n);case 2:if(!(r=e.sent).success){e.next=5;break}return e.abrupt("return",r.data);case 5:throw r.error;case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"safeParseAsync",value:(e=Rg(regeneratorRuntime.mark((function e(t,n){var r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={common:{issues:[],contextualErrorMap:null==n?void 0:n.errorMap,async:!0},path:(null==n?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:eC(t)},a=this._parse({data:t,path:r.path,parent:r}),e.next=4,EC(a)?a:Promise.resolve(a);case 4:return i=e.sent,e.abrupt("return",IC(r,i));case 6:case"end":return e.stop()}}),e,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"refine",value:function(e,t){return this._refinement((function(n,r){var a=e(n),i=function(){return r.addIssue(Kg({code:tC.custom},function(e){return"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t}(n)))};return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return!!e||(i(),!1)})):!!a||(i(),!1)}))}},{key:"refinement",value:function(e,t){return this._refinement((function(n,r){return!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)}))}},{key:"_refinement",value:function(e){return new Tb({schema:this,typeName:Rb.ZodEffects,effect:{type:"refinement",refinement:e}})}},{key:"superRefine",value:function(e){return this._refinement(e)}},{key:"description",get:function(){return this._def.description}}]),Vg(n,[{key:"optional",value:function(){return _b.create(this,this._def)}},{key:"nullable",value:function(){return Ab.create(this,this._def)}},{key:"nullish",value:function(){return this.nullable().optional()}},{key:"array",value:function(){return ib.create(this)}},{key:"promise",value:function(){return Sb.create(this,this._def)}},{key:"or",value:function(e){return ub.create([this,e],this._def)}},{key:"and",value:function(e){return fb.create(this,e,this._def)}},{key:"transform",value:function(e){return new Tb(Kg(Kg({},SC(this._def)),{},{schema:this,typeName:Rb.ZodEffects,effect:{type:"transform",transform:e}}))}},{key:"default",value:function(e){var t="function"==typeof e?e:function(){return e};return new Nb(Kg(Kg({},SC(this._def)),{},{innerType:this,defaultValue:t,typeName:Rb.ZodDefault}))}},{key:"brand",value:function(){return new Db(Kg({typeName:Rb.ZodBranded,type:this},SC(this._def)))}},{key:"catch",value:function(e){var t="function"==typeof e?e:function(){return e};return new Lb(Kg(Kg({},SC(this._def)),{},{innerType:this,catchValue:t,typeName:Rb.ZodCatch}))}},{key:"describe",value:function(e){return new(0,this.constructor)(Kg(Kg({},this._def),{},{description:e}))}},{key:"pipe",value:function(e){return Ob.create(this,e)}},{key:"readonly",value:function(){return kb.create(this)}},{key:"isOptional",value:function(){return this.safeParse(void 0).success}},{key:"isNullable",value:function(){return this.safeParse(null).success}}]),n}(),AC=/^c[^\s-]{8,}$/i,NC=/^[0-9a-z]+$/,LC=/^[0-9A-HJKMNP-TV-Z]{26}$/i,wC=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,DC=/^[a-z0-9_-]{21}$/i,OC=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,kC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,RC=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,PC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,MC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,xC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,VC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,HC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,WC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,UC="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",GC=new RegExp("^".concat(UC,"$"));function zC(e){var t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t="".concat(t,"\\.\\d{").concat(e.precision,"}"):null==e.precision&&(t="".concat(t,"(\\.\\d+)?")),t}function FC(e){var t="".concat(UC,"T").concat(zC(e)),n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t="".concat(t,"(").concat(n.join("|"),")"),new RegExp("^".concat(t,"$"))}function jC(e,t){return!("v4"!==t&&t||!PC.test(e))||!("v6"!==t&&t||!xC.test(e))}function BC(e,t){if(!OC.test(e))return!1;try{var n=Og(e.split("."),1)[0],r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return"object"===qg(a)&&null!==a&&(!(!a.typ||!a.alg)&&(!t||a.alg===t))}catch(e){return!1}}function qC(e,t){return!("v4"!==t&&t||!MC.test(e))||!("v6"!==t&&t||!VC.test(e))}var ZC=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==$g.string){var t=this._getOrReturnCtx(e);return lC(t,{code:tC.invalid_type,expected:$g.string,received:t.parsedType}),fC}var n,r=new dC,a=void 0,i=Jg(this._def.checks);try{for(i.s();!(n=i.n()).done;){var o=n.value;if("min"===o.kind)e.data.lengtho.value&&(lC(a=this._getOrReturnCtx(e,a),{code:tC.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if("length"===o.kind){var l=e.data.length>o.value,u=e.data.lengtht)&&(t=r.value)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"maxLength",get:function(){var e,t=null,n=Jg(this._def.checks);try{for(n.s();!(e=n.n()).done;){var r=e.value;"max"===r.kind&&(null===t||r.valued.value:e.data>=d.value)&&(lC(u=this._getOrReturnCtx(e,u),{code:tC.too_big,maximum:d.value,type:"number",inclusive:d.inclusive,exact:!1,message:d.message}),c.dirty())}else"multipleOf"===d.kind?0!=(r=e.data,a=d.value,i=void 0,o=void 0,l=void 0,i=(r.toString().split(".")[1]||"").length,o=(a.toString().split(".")[1]||"").length,l=i>o?i:o,parseInt(r.toFixed(l).replace(".",""))%parseInt(a.toFixed(l).replace(".",""))/Math.pow(10,l))&&(lC(u=this._getOrReturnCtx(e,u),{code:tC.not_multiple_of,multipleOf:d.value,message:d.message}),c.dirty()):"finite"===d.kind?Number.isFinite(e.data)||(lC(u=this._getOrReturnCtx(e,u),{code:tC.not_finite,message:d.message}),c.dirty()):wE.assertNever(d)}}catch(e){s.e(e)}finally{s.f()}return{status:c.value,value:e.data}}},{key:"gte",value:function(e,t){return this.setLimit("min",e,!0,uC.toString(t))}},{key:"gt",value:function(e,t){return this.setLimit("min",e,!1,uC.toString(t))}},{key:"lte",value:function(e,t){return this.setLimit("max",e,!0,uC.toString(t))}},{key:"lt",value:function(e,t){return this.setLimit("max",e,!1,uC.toString(t))}},{key:"setLimit",value:function(e,t,r,a){return new n(Kg(Kg({},this._def),{},{checks:[].concat(Pg(this._def.checks),[{kind:e,value:t,inclusive:r,message:uC.toString(a)}])}))}},{key:"_addCheck",value:function(e){return new n(Kg(Kg({},this._def),{},{checks:[].concat(Pg(this._def.checks),[e])}))}},{key:"int",value:function(e){return this._addCheck({kind:"int",message:uC.toString(e)})}},{key:"positive",value:function(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:uC.toString(e)})}},{key:"negative",value:function(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:uC.toString(e)})}},{key:"nonpositive",value:function(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:uC.toString(e)})}},{key:"nonnegative",value:function(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:uC.toString(e)})}},{key:"multipleOf",value:function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:uC.toString(t)})}},{key:"finite",value:function(e){return this._addCheck({kind:"finite",message:uC.toString(e)})}},{key:"safe",value:function(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:uC.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:uC.toString(e)})}},{key:"minValue",get:function(){var e,t=null,n=Jg(this._def.checks);try{for(n.s();!(e=n.n()).done;){var r=e.value;"min"===r.kind&&(null===t||r.value>t)&&(t=r.value)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"maxValue",get:function(){var e,t=null,n=Jg(this._def.checks);try{for(n.s();!(e=n.n()).done;){var r=e.value;"max"===r.kind&&(null===t||r.valuen)&&(n=a.value):"max"===a.kind&&(null===t||a.valuei.value:e.data>=i.value)&&(lC(n=this._getOrReturnCtx(e,n),{code:tC.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty())}else"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(lC(n=this._getOrReturnCtx(e,n),{code:tC.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):wE.assertNever(i)}}catch(e){a.e(e)}finally{a.f()}return{status:r.value,value:e.data}}},{key:"_getInvalidInput",value:function(e){var t=this._getOrReturnCtx(e);return lC(t,{code:tC.invalid_type,expected:$g.bigint,received:t.parsedType}),fC}},{key:"gte",value:function(e,t){return this.setLimit("min",e,!0,uC.toString(t))}},{key:"gt",value:function(e,t){return this.setLimit("min",e,!1,uC.toString(t))}},{key:"lte",value:function(e,t){return this.setLimit("max",e,!0,uC.toString(t))}},{key:"lt",value:function(e,t){return this.setLimit("max",e,!1,uC.toString(t))}},{key:"setLimit",value:function(e,t,r,a){return new n(Kg(Kg({},this._def),{},{checks:[].concat(Pg(this._def.checks),[{kind:e,value:t,inclusive:r,message:uC.toString(a)}])}))}},{key:"_addCheck",value:function(e){return new n(Kg(Kg({},this._def),{},{checks:[].concat(Pg(this._def.checks),[e])}))}},{key:"positive",value:function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:uC.toString(e)})}},{key:"negative",value:function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:uC.toString(e)})}},{key:"nonpositive",value:function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:uC.toString(e)})}},{key:"nonnegative",value:function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:uC.toString(e)})}},{key:"multipleOf",value:function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:uC.toString(t)})}},{key:"minValue",get:function(){var e,t=null,n=Jg(this._def.checks);try{for(n.s();!(e=n.n()).done;){var r=e.value;"min"===r.kind&&(null===t||r.value>t)&&(t=r.value)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"maxValue",get:function(){var e,t=null,n=Jg(this._def.checks);try{for(n.s();!(e=n.n()).done;){var r=e.value;"max"===r.kind&&(null===t||r.valueo.value&&(lC(a=this._getOrReturnCtx(e,a),{code:tC.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):wE.assertNever(o)}}catch(e){i.e(e)}finally{i.f()}return{status:r.value,value:new Date(e.data.getTime())}}},{key:"_addCheck",value:function(e){return new n(Kg(Kg({},this._def),{},{checks:[].concat(Pg(this._def.checks),[e])}))}},{key:"min",value:function(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:uC.toString(t)})}},{key:"max",value:function(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:uC.toString(t)})}},{key:"minDate",get:function(){var e,t=null,n=Jg(this._def.checks);try{for(n.s();!(e=n.n()).done;){var r=e.value;"min"===r.kind&&(null===t||r.value>t)&&(t=r.value)}}catch(e){n.e(e)}finally{n.f()}return null!=t?new Date(t):null}},{key:"maxDate",get:function(){var e,t=null,n=Jg(this._def.checks);try{for(n.s();!(e=n.n()).done;){var r=e.value;"max"===r.kind&&(null===t||r.valuea.exactLength.value,o=n.data.lengtha.maxLength.value&&(lC(n,{code:tC.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all(Pg(n.data).map((function(e,t){return a.type._parseAsync(new bC(n,e,n.path,t))}))).then((function(e){return dC.mergeArray(r,e)}));var l=Pg(n.data).map((function(e,t){return a.type._parseSync(new bC(n,e,n.path,t))}));return dC.mergeArray(r,l)}},{key:"min",value:function(e,t){return new n(Kg(Kg({},this._def),{},{minLength:{value:e,message:uC.toString(t)}}))}},{key:"max",value:function(e,t){return new n(Kg(Kg({},this._def),{},{maxLength:{value:e,message:uC.toString(t)}}))}},{key:"length",value:function(e,t){return new n(Kg(Kg({},this._def),{},{exactLength:{value:e,message:uC.toString(t)}}))}},{key:"nonempty",value:function(e){return this.min(1,e)}},{key:"element",get:function(){return this._def.type}}]),n}(_C);function ob(e){if(e instanceof lb){var t={};for(var n in e.shape){var r=e.shape[n];t[n]=_b.create(ob(r))}return new lb(Kg(Kg({},e._def),{},{shape:function(){return t}}))}return e instanceof ib?new ib(Kg(Kg({},e._def),{},{type:ob(e.element)})):e instanceof _b?_b.create(ob(e.unwrap())):e instanceof Ab?Ab.create(ob(e.unwrap())):e instanceof pb?pb.create(e.items.map((function(e){return ob(e)}))):e}ib.create=function(e,t){return new ib(Kg({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Rb.ZodArray},SC(t)))};var lb=function(e){Hg(n,e);var t=Wg(n);function n(){var e;return Mg(this,n),(e=t.apply(this,arguments))._cached=null,e.nonstrict=e.passthrough,e.augment=e.extend,e}return Vg(n,[{key:"_getCached",value:function(){if(null!==this._cached)return this._cached;var e=this._def.shape(),t=wE.objectKeys(e);return this._cached={shape:e,keys:t}}},{key:"_parse",value:function(e){if(this._getType(e)!==$g.object){var t=this._getOrReturnCtx(e);return lC(t,{code:tC.invalid_type,expected:$g.object,received:t.parsedType}),fC}var n=this._processInputParams(e),r=n.status,a=n.ctx,i=this._getCached(),o=i.shape,l=i.keys,u=[];if(!(this._def.catchall instanceof rb&&"strip"===this._def.unknownKeys))for(var c in a.data)l.includes(c)||u.push(c);var s,d=[],f=Jg(l);try{for(f.s();!(s=f.n()).done;){var p=s.value,h=o[p],v=a.data[p];d.push({key:{status:"valid",value:p},value:h._parse(new bC(a,v,a.path,p)),alwaysSet:p in a.data})}}catch(e){f.e(e)}finally{f.f()}if(this._def.catchall instanceof rb){var m=this._def.unknownKeys;if("passthrough"===m){var y,E=Jg(u);try{for(E.s();!(y=E.n()).done;){var g=y.value;d.push({key:{status:"valid",value:g},value:{status:"valid",value:a.data[g]}})}}catch(e){E.e(e)}finally{E.f()}}else if("strict"===m)u.length>0&&(lC(a,{code:tC.unrecognized_keys,keys:u}),r.dirty());else if("strip"!==m)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{var C,b=this._def.catchall,I=Jg(u);try{for(I.s();!(C=I.n()).done;){var S=C.value,T=a.data[S];d.push({key:{status:"valid",value:S},value:b._parse(new bC(a,T,a.path,S)),alwaysSet:S in a.data})}}catch(e){I.e(e)}finally{I.f()}}return a.common.async?Promise.resolve().then(Rg(regeneratorRuntime.mark((function e(){var t,n,r,a,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=Jg(d),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=15;break}return a=r.value,e.next=8,a.key;case 8:return i=e.sent,e.next=11,a.value;case 11:o=e.sent,t.push({key:i,value:o,alwaysSet:a.alwaysSet});case 13:e.next=4;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(2),n.e(e.t0);case 20:return e.prev=20,n.f(),e.finish(20);case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,null,[[2,17,20,23]])})))).then((function(e){return dC.mergeObjectSync(r,e)})):dC.mergeObjectSync(r,d)}},{key:"strict",value:function(e){var t=this;return uC.errToObj,new n(Kg(Kg({},this._def),{},{unknownKeys:"strict"},void 0!==e?{errorMap:function(n,r){var a,i,o,l,u=null!==(o=null===(i=(a=t._def).errorMap)||void 0===i?void 0:i.call(a,n,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===n.code?{message:null!==(l=uC.errToObj(e).message)&&void 0!==l?l:u}:{message:u}}}:{}))}},{key:"strip",value:function(){return new n(Kg(Kg({},this._def),{},{unknownKeys:"strip"}))}},{key:"passthrough",value:function(){return new n(Kg(Kg({},this._def),{},{unknownKeys:"passthrough"}))}},{key:"extend",value:function(e){var t=this;return new n(Kg(Kg({},this._def),{},{shape:function(){return Kg(Kg({},t._def.shape()),e)}}))}},{key:"merge",value:function(e){var t=this;return new n({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:function(){return Kg(Kg({},t._def.shape()),e._def.shape())},typeName:Rb.ZodObject})}},{key:"setKey",value:function(e,t){return this.augment(Yg({},e,t))}},{key:"catchall",value:function(e){return new n(Kg(Kg({},this._def),{},{catchall:e}))}},{key:"pick",value:function(e){var t=this,r={};return wE.objectKeys(e).forEach((function(n){e[n]&&t.shape[n]&&(r[n]=t.shape[n])})),new n(Kg(Kg({},this._def),{},{shape:function(){return r}}))}},{key:"omit",value:function(e){var t=this,r={};return wE.objectKeys(this.shape).forEach((function(n){e[n]||(r[n]=t.shape[n])})),new n(Kg(Kg({},this._def),{},{shape:function(){return r}}))}},{key:"deepPartial",value:function(){return ob(this)}},{key:"partial",value:function(e){var t=this,r={};return wE.objectKeys(this.shape).forEach((function(n){var a=t.shape[n];e&&!e[n]?r[n]=a:r[n]=a.optional()})),new n(Kg(Kg({},this._def),{},{shape:function(){return r}}))}},{key:"required",value:function(e){var t=this,r={};return wE.objectKeys(this.shape).forEach((function(n){if(e&&!e[n])r[n]=t.shape[n];else{for(var a=t.shape[n];a instanceof _b;)a=a._def.innerType;r[n]=a}})),new n(Kg(Kg({},this._def),{},{shape:function(){return r}}))}},{key:"keyof",value:function(){return Cb(wE.objectKeys(this.shape))}},{key:"shape",get:function(){return this._def.shape()}}]),n}(_C);lb.create=function(e,t){return new lb(Kg({shape:function(){return e},unknownKeys:"strip",catchall:rb.create(),typeName:Rb.ZodObject},SC(t)))},lb.strictCreate=function(e,t){return new lb(Kg({shape:function(){return e},unknownKeys:"strict",catchall:rb.create(),typeName:Rb.ZodObject},SC(t)))},lb.lazycreate=function(e,t){return new lb(Kg({shape:e,unknownKeys:"strip",catchall:rb.create(),typeName:Rb.ZodObject},SC(t)))};var ub=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx,n=this._def.options;if(t.common.async)return Promise.all(n.map(function(){var e=Rg(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Kg(Kg({},t),{},{common:Kg(Kg({},t.common),{},{issues:[]}),parent:null}),e.next=3,n._parseAsync({data:t.data,path:t.path,parent:r});case 3:return e.t0=e.sent,e.t1=r,e.abrupt("return",{result:e.t0,ctx:e.t1});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(e){var n,r=Jg(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("valid"===a.result.status)return a.result}}catch(e){r.e(e)}finally{r.f()}var i,o=Jg(e);try{for(o.s();!(i=o.n()).done;){var l,u=i.value;if("dirty"===u.result.status)return(l=t.common.issues).push.apply(l,Pg(u.ctx.common.issues)),u.result}}catch(e){o.e(e)}finally{o.f()}var c=e.map((function(e){return new nC(e.ctx.common.issues)}));return lC(t,{code:tC.invalid_union,unionErrors:c}),fC}));var r,a,i=void 0,o=[],l=Jg(n);try{for(l.s();!(r=l.n()).done;){var u=r.value,c=Kg(Kg({},t),{},{common:Kg(Kg({},t.common),{},{issues:[]}),parent:null}),s=u._parseSync({data:t.data,path:t.path,parent:c});if("valid"===s.status)return s;"dirty"!==s.status||i||(i={result:s,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}}catch(e){l.e(e)}finally{l.f()}if(i)return(a=t.common.issues).push.apply(a,Pg(i.ctx.common.issues)),i.result;var d=o.map((function(e){return new nC(e)}));return lC(t,{code:tC.invalid_union,unionErrors:d}),fC}},{key:"options",get:function(){return this._def.options}}]),n}(_C);ub.create=function(e,t){return new ub(Kg({options:e,typeName:Rb.ZodUnion},SC(t)))};var cb=function e(t){return t instanceof Eb?e(t.schema):t instanceof Tb?e(t.innerType()):t instanceof gb?[t.value]:t instanceof bb?t.options:t instanceof Ib?wE.objectValues(t.enum):t instanceof Nb?e(t._def.innerType):t instanceof $C?[void 0]:t instanceof eb?[null]:t instanceof _b?[void 0].concat(Pg(e(t.unwrap()))):t instanceof Ab?[null].concat(Pg(e(t.unwrap()))):t instanceof Db||t instanceof kb?e(t.unwrap()):t instanceof Lb?e(t._def.innerType):[]},sb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx;if(t.parsedType!==$g.object)return lC(t,{code:tC.invalid_type,expected:$g.object,received:t.parsedType}),fC;var n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(lC(t,{code:tC.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),fC)}},{key:"discriminator",get:function(){return this._def.discriminator}},{key:"options",get:function(){return this._def.options}},{key:"optionsMap",get:function(){return this._def.optionsMap}}],[{key:"create",value:function(e,t,r){var a,i=new Map,o=Jg(t);try{for(o.s();!(a=o.n()).done;){var l=a.value,u=cb(l.shape[e]);if(!u.length)throw new Error("A discriminator value for key `".concat(e,"` could not be extracted from all schema options"));var c,s=Jg(u);try{for(s.s();!(c=s.n()).done;){var d=c.value;if(i.has(d))throw new Error("Discriminator property ".concat(String(e)," has duplicate value ").concat(String(d)));i.set(d,l)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){o.e(e)}finally{o.f()}return new n(Kg({typeName:Rb.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i},SC(r)))}}]),n}(_C);function db(e,t){var n=eC(e),r=eC(t);if(e===t)return{valid:!0,data:e};if(n===$g.object&&r===$g.object){var a,i=wE.objectKeys(t),o=wE.objectKeys(e).filter((function(e){return-1!==i.indexOf(e)})),l=Kg(Kg({},e),t),u=Jg(o);try{for(u.s();!(a=u.n()).done;){var c=a.value,s=db(e[c],t[c]);if(!s.valid)return{valid:!1};l[c]=s.data}}catch(e){u.e(e)}finally{u.f()}return{valid:!0,data:l}}if(n===$g.array&&r===$g.array){if(e.length!==t.length)return{valid:!1};for(var d=[],f=0;fthis._def.items.length&&(lC(a,{code:tC.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());var i=Pg(a.data).map((function(e,n){var r=t._def.items[n]||t._def.rest;return r?r._parse(new bC(a,e,a.path,n)):null})).filter((function(e){return!!e}));return a.common.async?Promise.all(i).then((function(e){return dC.mergeArray(r,e)})):dC.mergeArray(r,i)}},{key:"rest",value:function(e){return new n(Kg(Kg({},this._def),{},{rest:e}))}},{key:"items",get:function(){return this._def.items}}]),n}(_C);pb.create=function(e,t){if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pb(Kg({items:e,typeName:Rb.ZodTuple,rest:null},SC(t)))};var hb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;if(r.parsedType!==$g.object)return lC(r,{code:tC.invalid_type,expected:$g.object,received:r.parsedType}),fC;var a=[],i=this._def.keyType,o=this._def.valueType;for(var l in r.data)a.push({key:i._parse(new bC(r,l,r.path,l)),value:o._parse(new bC(r,r.data[l],r.path,l)),alwaysSet:l in r.data});return r.common.async?dC.mergeObjectAsync(n,a):dC.mergeObjectSync(n,a)}},{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"element",get:function(){return this._def.valueType}}],[{key:"create",value:function(e,t,r){return new n(t instanceof _C?Kg({keyType:e,valueType:t,typeName:Rb.ZodRecord},SC(r)):Kg({keyType:ZC.create(),valueType:e,typeName:Rb.ZodRecord},SC(t)))}}]),n}(_C),vb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;if(r.parsedType!==$g.map)return lC(r,{code:tC.invalid_type,expected:$g.map,received:r.parsedType}),fC;var a=this._def.keyType,i=this._def.valueType,o=Pg(r.data.entries()).map((function(e,t){var n=Og(e,2),o=n[0],l=n[1];return{key:a._parse(new bC(r,o,r.path,[t,"key"])),value:i._parse(new bC(r,l,r.path,[t,"value"]))}}));if(r.common.async){var l=new Map;return Promise.resolve().then(Rg(regeneratorRuntime.mark((function e(){var t,r,a,i,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Jg(o),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=17;break}return a=r.value,e.next=7,a.key;case 7:return i=e.sent,e.next=10,a.value;case 10:if(u=e.sent,"aborted"!==i.status&&"aborted"!==u.status){e.next=13;break}return e.abrupt("return",fC);case 13:"dirty"!==i.status&&"dirty"!==u.status||n.dirty(),l.set(i.value,u.value);case 15:e.next=3;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),t.e(e.t0);case 22:return e.prev=22,t.f(),e.finish(22);case 25:return e.abrupt("return",{status:n.value,value:l});case 26:case"end":return e.stop()}}),e,null,[[1,19,22,25]])}))))}var u,c=new Map,s=Jg(o);try{for(s.s();!(u=s.n()).done;){var d=u.value,f=d.key,p=d.value;if("aborted"===f.status||"aborted"===p.status)return fC;"dirty"!==f.status&&"dirty"!==p.status||n.dirty(),c.set(f.value,p.value)}}catch(e){s.e(e)}finally{s.f()}return{status:n.value,value:c}}},{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}}]),n}(_C);vb.create=function(e,t,n){return new vb(Kg({valueType:t,keyType:e,typeName:Rb.ZodMap},SC(n)))};var mb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;if(r.parsedType!==$g.set)return lC(r,{code:tC.invalid_type,expected:$g.set,received:r.parsedType}),fC;var a=this._def;null!==a.minSize&&r.data.sizea.maxSize.value&&(lC(r,{code:tC.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());var i=this._def.valueType;function o(e){var t,r=new Set,a=Jg(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;if("aborted"===i.status)return fC;"dirty"===i.status&&n.dirty(),r.add(i.value)}}catch(e){a.e(e)}finally{a.f()}return{status:n.value,value:r}}var l=Pg(r.data.values()).map((function(e,t){return i._parse(new bC(r,e,r.path,t))}));return r.common.async?Promise.all(l).then((function(e){return o(e)})):o(l)}},{key:"min",value:function(e,t){return new n(Kg(Kg({},this._def),{},{minSize:{value:e,message:uC.toString(t)}}))}},{key:"max",value:function(e,t){return new n(Kg(Kg({},this._def),{},{maxSize:{value:e,message:uC.toString(t)}}))}},{key:"size",value:function(e,t){return this.min(e,t).max(e,t)}},{key:"nonempty",value:function(e){return this.min(1,e)}}]),n}(_C);mb.create=function(e,t){return new mb(Kg({valueType:e,minSize:null,maxSize:null,typeName:Rb.ZodSet},SC(t)))};var yb=function(e){Hg(n,e);var t=Wg(n);function n(){var e;return Mg(this,n),(e=t.apply(this,arguments)).validate=e.implement,e}return Vg(n,[{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx;if(t.parsedType!==$g.function)return lC(t,{code:tC.invalid_type,expected:$g.function,received:t.parsedType}),fC;function n(e,n){return oC({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,iC(),rC].filter((function(e){return!!e})),issueData:{code:tC.invalid_arguments,argumentsError:n}})}function r(e,n){return oC({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,iC(),rC].filter((function(e){return!!e})),issueData:{code:tC.invalid_return_type,returnTypeError:n}})}var a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Sb){var o=this;return hC(Rg(regeneratorRuntime.mark((function e(){var t,l,u,c,s,d,f,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=p.length,l=new Array(t),u=0;u1&&void 0!==arguments[1]?arguments[1]:this._def;return n.create(e,Kg(Kg({},this._def),t))}},{key:"exclude",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return n.create(this.options.filter((function(t){return!e.includes(t)})),Kg(Kg({},this._def),t))}},{key:"options",get:function(){return this._def.values}},{key:"enum",get:function(){var e,t={},n=Jg(this._def.values);try{for(n.s();!(e=n.n()).done;){var r=e.value;t[r]=r}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"Values",get:function(){var e,t={},n=Jg(this._def.values);try{for(n.s();!(e=n.n()).done;){var r=e.value;t[r]=r}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"Enum",get:function(){var e,t={},n=Jg(this._def.values);try{for(n.s();!(e=n.n()).done;){var r=e.value;t[r]=r}}catch(e){n.e(e)}finally{n.f()}return t}}]),n}(_C);cC=new WeakMap,bb.create=Cb;var Ib=function(e){Hg(n,e);var t=Wg(n);function n(){var e;return Mg(this,n),e=t.apply(this,arguments),sC.set(Ug(e),void 0),e}return Vg(n,[{key:"_parse",value:function(e){var t=wE.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==$g.string&&n.parsedType!==$g.number){var r=wE.objectValues(t);return lC(n,{expected:wE.joinValues(r),received:n.parsedType,code:tC.invalid_type}),fC}if(gC(this,sC,"f")||CC(this,sC,new Set(wE.getValidEnumValues(this._def.values)),"f"),!gC(this,sC,"f").has(e.data)){var a=wE.objectValues(t);return lC(n,{received:n.data,code:tC.invalid_enum_value,options:a}),fC}return hC(e.data)}},{key:"enum",get:function(){return this._def.values}}]),n}(_C);sC=new WeakMap,Ib.create=function(e,t){return new Ib(Kg({values:e,typeName:Rb.ZodNativeEnum},SC(t)))};var Sb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"unwrap",value:function(){return this._def.type}},{key:"_parse",value:function(e){var t=this,n=this._processInputParams(e).ctx;if(n.parsedType!==$g.promise&&!1===n.common.async)return lC(n,{code:tC.invalid_type,expected:$g.promise,received:n.parsedType}),fC;var r=n.parsedType===$g.promise?n.data:Promise.resolve(n.data);return hC(r.then((function(e){return t._def.type.parseAsync(e,{path:n.path,errorMap:n.common.contextualErrorMap})})))}}]),n}(_C);Sb.create=function(e,t){return new Sb(Kg({type:e,typeName:Rb.ZodPromise},SC(t)))};var Tb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"innerType",value:function(){return this._def.schema}},{key:"sourceType",value:function(){return this._def.schema._def.typeName===Rb.ZodEffects?this._def.schema.sourceType():this._def.schema}},{key:"_parse",value:function(e){var t=this,n=this._processInputParams(e),r=n.status,a=n.ctx,i=this._def.effect||null,o={addIssue:function(e){lC(a,e),e.fatal?r.abort():r.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===i.type){var l=i.transform(a.data,o);if(a.common.async)return Promise.resolve(l).then(function(){var e=Rg(regeneratorRuntime.mark((function e(n){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("aborted"!==r.value){e.next=2;break}return e.abrupt("return",fC);case 2:return e.next=4,t._def.schema._parseAsync({data:n,path:a.path,parent:a});case 4:if("aborted"!==(i=e.sent).status){e.next=7;break}return e.abrupt("return",fC);case 7:if("dirty"!==i.status){e.next=9;break}return e.abrupt("return",pC(i.value));case 9:if("dirty"!==r.value){e.next=11;break}return e.abrupt("return",pC(i.value));case 11:return e.abrupt("return",i);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());if("aborted"===r.value)return fC;var u=this._def.schema._parseSync({data:l,path:a.path,parent:a});return"aborted"===u.status?fC:"dirty"===u.status||"dirty"===r.value?pC(u.value):u}if("refinement"===i.type){var c=function(e){var t=i.refinement(e,o);if(a.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===a.common.async){var s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===s.status?fC:("dirty"===s.status&&r.dirty(),c(s.value),{status:r.value,value:s.value})}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){return"aborted"===e.status?fC:("dirty"===e.status&&r.dirty(),c(e.value).then((function(){return{status:r.value,value:e.value}})))}))}if("transform"===i.type){if(!1===a.common.async){var d=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!yC(d))return d;var f=i.transform(d.value,o);if(f instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:f}}return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){return yC(e)?Promise.resolve(i.transform(e.value,o)).then((function(e){return{status:r.value,value:e}})):e}))}wE.assertNever(i)}}]),n}(_C);Tb.create=function(e,t,n){return new Tb(Kg({schema:e,typeName:Rb.ZodEffects,effect:t},SC(n)))},Tb.createWithPreprocess=function(e,t,n){return new Tb(Kg({schema:t,effect:{type:"preprocess",transform:e},typeName:Rb.ZodEffects},SC(n)))};var _b=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){return this._getType(e)===$g.undefined?hC(void 0):this._def.innerType._parse(e)}},{key:"unwrap",value:function(){return this._def.innerType}}]),n}(_C);_b.create=function(e,t){return new _b(Kg({innerType:e,typeName:Rb.ZodOptional},SC(t)))};var Ab=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){return this._getType(e)===$g.null?hC(null):this._def.innerType._parse(e)}},{key:"unwrap",value:function(){return this._def.innerType}}]),n}(_C);Ab.create=function(e,t){return new Ab(Kg({innerType:e,typeName:Rb.ZodNullable},SC(t)))};var Nb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx,n=t.data;return t.parsedType===$g.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}},{key:"removeDefault",value:function(){return this._def.innerType}}]),n}(_C);Nb.create=function(e,t){return new Nb(Kg({innerType:e,typeName:Rb.ZodDefault,defaultValue:"function"==typeof t.default?t.default:function(){return t.default}},SC(t)))};var Lb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this,n=this._processInputParams(e).ctx,r=Kg(Kg({},n),{},{common:Kg(Kg({},n.common),{},{issues:[]})}),a=this._def.innerType._parse({data:r.data,path:r.path,parent:Kg({},r)});return EC(a)?a.then((function(e){return{status:"valid",value:"valid"===e.status?e.value:t._def.catchValue({get error(){return new nC(r.common.issues)},input:r.data})}})):{status:"valid",value:"valid"===a.status?a.value:this._def.catchValue({get error(){return new nC(r.common.issues)},input:r.data})}}},{key:"removeCatch",value:function(){return this._def.innerType}}]),n}(_C);Lb.create=function(e,t){return new Lb(Kg({innerType:e,typeName:Rb.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:function(){return t.catch}},SC(t)))};var wb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){if(this._getType(e)!==$g.nan){var t=this._getOrReturnCtx(e);return lC(t,{code:tC.invalid_type,expected:$g.nan,received:t.parsedType}),fC}return{status:"valid",value:e.data}}}]),n}(_C);wb.create=function(e){return new wb(Kg({typeName:Rb.ZodNaN},SC(e)))};Symbol("zod_brand");var Db=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx,n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}},{key:"unwrap",value:function(){return this._def.type}}]),n}(_C),Ob=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this,n=this._processInputParams(e),r=n.status,a=n.ctx;if(a.common.async){var i=function(){var e=Rg(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._def.in._parseAsync({data:a.data,path:a.path,parent:a});case 2:if("aborted"!==(n=e.sent).status){e.next=5;break}return e.abrupt("return",fC);case 5:if("dirty"!==n.status){e.next=10;break}return r.dirty(),e.abrupt("return",pC(n.value));case 10:return e.abrupt("return",t._def.out._parseAsync({data:n.value,path:a.path,parent:a}));case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return i()}var o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return"aborted"===o.status?fC:"dirty"===o.status?(r.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}],[{key:"create",value:function(e,t){return new n({in:e,out:t,typeName:Rb.ZodPipeline})}}]),n}(_C),kb=function(e){Hg(n,e);var t=Wg(n);function n(){return Mg(this,n),t.apply(this,arguments)}return Vg(n,[{key:"_parse",value:function(e){var t=this._def.innerType._parse(e),n=function(e){return yC(e)&&(e.value=Object.freeze(e.value)),e};return EC(t)?t.then((function(e){return n(e)})):n(t)}},{key:"unwrap",value:function(){return this._def.innerType}}]),n}(_C);kb.create=function(e,t){return new kb(Kg({innerType:e,typeName:Rb.ZodReadonly},SC(t)))};var Rb;lb.lazycreate;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Rb||(Rb={}));var Pb,Mb,xb=ZC.create,Vb=(KC.create,wb.create,YC.create,JC.create),Hb=(XC.create,QC.create,$C.create,eb.create,tb.create),Wb=(nb.create,rb.create,ab.create,ib.create),Ub=lb.create,Gb=(lb.strictCreate,ub.create),zb=(sb.create,fb.create,pb.create,hb.create,vb.create,mb.create,yb.create,Eb.create,gb.create),Fb=(bb.create,Ib.create),jb=(Sb.create,Tb.create,_b.create,Ab.create,Tb.createWithPreprocess);Ob.create;!function(e){e.ZERO="FRICTION_CONTEXT_INVALID",e.ONE="FRICTION_CONTEXT_ONE"}(Pb||(Pb={}));var Bb,qb=Ub({sharedParameters:Ub({shouldAnalyze:Vb().optional(),useContinueMode:Vb().optional(),genericChallengeId:xb().optional()}).optional()}),Zb=Ub({userId:xb(),challengeId:xb(),shouldShowRememberDeviceCheckbox:Vb(),actionType:Fb(Sh)}).and(qb),Kb=Ub({actionType:Fb(Ys),dataExchangeBlob:xb(),unifiedCaptchaId:xb()}).and(qb),Yb=Ub({userId:xb(),sessionId:xb()}).and(qb),Jb=Ub({defaultType:Fb(gh),availableTypes:Wb(Fb(gh)),defaultTypeMetadata:Ub({passkeyAuthOptions:xb().optional(),passkeySessionId:xb().optional()}).nullable()}).and(qb),Xb=Ub({}).and(qb),Qb=Ub({}).and(qb),$b=Ub({sessionId:xb()}).and(qb),eI=Ub({challengeId:xb(),puzzleType:Fb(bh)}).and(qb),tI=Ub({challengeId:xb()}).and(qb),nI=Ub({integrityType:xb(),requestHash:xb()}).and(qb),rI=Ub({challengeId:xb(),artifacts:Ub({puzzleType:Fb(mh),seed:xb(),rounds:xb(),layers:xb()})}).and(qb),aI=Ub({frictionContext:Fb(Pb).optional()}).and(qb),iI=Ub({otpSession:xb(),frictionContext:Fb(Pb).optional()}).and(qb),oI=Hb(),lI=((Mb={})[Ah.TWO_STEP_VERIFICATION]=Zb,Mb[Ah.CAPTCHA]=Kb,Mb[Ah.FORCE_AUTHENTICATOR]=Xb,Mb[Ah.FORCE_TWO_STEP_VERIFICATION]=Qb,Mb[Ah.SECURITY_QUESTIONS]=Yb,Mb[Ah.REAUTHENTICATION]=Jb,Mb[Ah.PROOF_OF_WORK]=$b,Mb[Ah.ROSTILE]=eI,Mb[Ah.PRIVATE_ACCESS_TOKEN]=tI,Mb[Ah.DEVICE_INTEGRITY]=nI,Mb[Ah.PROOF_OF_SPACE]=rI,Mb[Ah.PHONE_VERIFICATION]=aI,Mb[Ah.EMAIL_VERIFICATION]=iI,Mb[Ah.BLOCK_SESSION]=oI,Mb),uI=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cI=function(){return cI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0?[4,vI({challengeBaseProperties:{containerId:e,renderInline:!1,appType:n,shouldModifyBrowserHistory:!0,onChallengeCompleted:function(e){window.history.replaceState(null,"",a),HI(t,ph.CHALLENGE_COMPLETED,e,r)},onChallengeInvalidated:function(e){window.history.replaceState(null,"",a),HI(t,ph.CHALLENGE_INVALIDATED,e,r)},onChallengeDisplayed:function(e){HI(t,ph.CHALLENGE_DISPLAYED,e,r)},onModalChallengeAbandoned:function(){HI(t,ph.CHALLENGE_INVALIDATED,{abandoned:!0},r)}},challengeSpecificProperties:i})]:[3,2]);case 1:return o=l.sent(),[3,4];case 2:return[4,vI({challengeBaseProperties:{containerId:e,renderInline:!0,appType:n,shouldModifyBrowserHistory:!0,onChallengeCompleted:function(e){window.history.replaceState(null,"",a),HI(t,ph.CHALLENGE_COMPLETED,e)},onChallengeInvalidated:function(e){window.history.replaceState(null,"",a),HI(t,ph.CHALLENGE_INVALIDATED,e)},onChallengeDisplayed:function(e){HI(t,ph.CHALLENGE_DISPLAYED,e)},onModalChallengeAbandoned:null},challengeSpecificProperties:i})];case 3:o=l.sent(),l.label=4;case 4:return!1===o?(HI(t,ph.CHALLENGE_INITIALIZED,{initialized:!1},r),[2,!1]):(HI(t,ph.CHALLENGE_INITIALIZED,{initialized:!0},r),[2,!0])}}))}))},YI=function(e,t,n){return HI(t,ph.CHALLENGE_PARSED,{parsed:!0}),!1===ff({containerId:e,forceActionRedirectChallengeType:Yd.ForceAuthenticator,renderInline:!0,onModalChallengeAbandoned:null})?(HI(t,ph.CHALLENGE_INITIALIZED,{initialized:!1}),!1):(HI(t,ph.CHALLENGE_INITIALIZED,{initialized:!0}),HI(t,ph.CHALLENGE_DISPLAYED,{displayed:!0}),!0)},JI=function(e,t,n){return HI(t,ph.CHALLENGE_PARSED,{parsed:!0}),!1===ff({containerId:e,forceActionRedirectChallengeType:Yd.ForceTwoStepVerification,renderInline:!0,onModalChallengeAbandoned:null})?(HI(t,ph.CHALLENGE_INITIALIZED,{initialized:!1}),!1):(HI(t,ph.CHALLENGE_INITIALIZED,{initialized:!0}),HI(t,ph.CHALLENGE_DISPLAYED,{displayed:!0}),!0)},XI=function(e,t,n){return HI(t,ph.CHALLENGE_PARSED,{parsed:!0}),!1===ff({containerId:e,forceActionRedirectChallengeType:Yd.BlockSession,renderInline:!0,onModalChallengeAbandoned:null})?(HI(t,ph.CHALLENGE_INITIALIZED,{initialized:!1}),!1):(HI(t,ph.CHALLENGE_INITIALIZED,{initialized:!0}),HI(t,ph.CHALLENGE_DISPLAYED,{displayed:!0}),!0)},QI=function(e){var t=e.containerId,n=e.hybridTargetToCallbackInputId;return RI(void 0,void 0,void 0,(function(){var e;return PI(this,(function(r){var a,i,o;if(HI(n,ph.CHALLENGE_PAGE_LOADED,{pageLoaded:!0}),a=vi.UrlParser.getParametersAsObject(),i={challengeType:a[Bb.CHALLENGE_TYPE],darkMode:a[Bb.DARK_MODE],appType:a[Bb.APP_TYPE],baristaMode:a[Bb.BARISTA_MODE],origin:a[Bb.ORIGIN]},o=II.safeParse(i),null===(e=o.success?o.data:(console.error(CI,o.error),null)))return HI(n,ph.CHALLENGE_PARSED,{parsed:!1}),[2,!1];switch(e.baristaMode&&(document.body.style.backgroundColor="transparent"),e.darkMode?(document.body.classList.remove(MI),document.body.classList.add(xI)):(document.body.classList.remove(xI),document.body.classList.add(MI)),e.challengeType){case Ah.CAPTCHA:return[2,WI(t,n,e.appType)];case Ah.FORCE_AUTHENTICATOR:return[2,YI(t,n,e.appType)];case Ah.FORCE_TWO_STEP_VERIFICATION:return[2,JI(t,n,e.appType)];case Ah.TWO_STEP_VERIFICATION:return[2,UI(t,n,e.appType)];case Ah.SECURITY_QUESTIONS:return[2,GI(t,n,e.appType)];case Ah.REAUTHENTICATION:return[2,zI(t,n,e.appType)];case Ah.PROOF_OF_WORK:return[2,jI(t,n,e.appType)];case Ah.ROSTILE:return[2,BI(t,n,e.appType)];case Ah.PRIVATE_ACCESS_TOKEN:return[2,FI(t,n,e.appType)];case Ah.DEVICE_INTEGRITY:return[2,qI(t,n,e.appType)];case Ah.PROOF_OF_SPACE:return[2,ZI(t,n,e.appType)];case Ah.PHONE_VERIFICATION:case Ah.EMAIL_VERIFICATION:return[2,!1];case Ah.BLOCK_SESSION:return[2,XI(t,n,e.appType)];case"generic":return[2,KI(t,n,e.appType,e.origin)];default:return e.challengeType,[2,!1]}return[2]}))}))},$I={Captcha:_,DeviceIntegrity:A,ForceActionRedirect:N,Generic:M,HybridWrapper:x,PrivateAccessToken:L,ProofOfSpace:w,ProofOfWork:D,Reauthentication:O,Rostile:k,SecurityQuestions:R,TwoStepVerification:P};Object.assign(mi(),{AccountIntegrityChallengeService:$I}),gI(),te(void 0,void 0,void 0,(function(){var e,t,n,r,a,i;return ne(this,(function(o){switch(o.label){case 0:return[4,fi()];case 1:return o.sent().enableIndexedDbTelemetry?(e=li({databaseName:"rbxInstrumentationDb",objectStoreName:pi,version:1}),ee(e)?(ri(ai,{success:"false",arm:"connection-consumer"}),[2]):[4,e.value]):[2];case 2:return t=o.sent(),n=ui({database:t,objectStoreName:pi,key:hi}),ee(n)?(ri(ai,{success:"false",arm:"get-consumer"}),[2]):[4,n.value];case 3:return void 0!==(r=o.sent())?(ri(ai,{success:"true",arm:"get-consumer",timestamp:r.toString()}),[2]):(a=(new Date).getTime(),i=ci({database:t,objectStoreName:pi,key:hi,value:a}),Ua.pipe(i,X((function(){return{success:"true",arm:"put-consumer",timestamp:a.toString()}})),function(e){return function(t){return ee(t)?e():t.value}}((function(){return{success:"false",arm:"put-consumer",timestamp:a.toString()}})),(function(e){return ri(ai,e)})),[2])}}))}))}()}(); //# sourceMappingURL=https://sourcemaps.rbxcdn.com/983e317768832b4518f9dd992ce1bda5-challenge.bundle.min.js.map /* Bundle detector */ window.Roblox && window.Roblox.BundleDetector && window.Roblox.BundleDetector.bundleDetected("Challenge");