1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,r)=>{t.exports=e.r(76562)},67034,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,a=l(e),s=a[0],o=a[1],u=new i((s+o)*3/4-o),c=0,d=o>0?s-4:s;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===o&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===o&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],s=0,o=n-i;s<o;s+=16383)a.push(function(e,t,n){for(var i,a=[],s=t;s<n;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)r[s]=a[s],n[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);var a=0|h(n,i),l=s(a),u=l.write(n,i);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(A(e,ArrayBuffer)||e&&A(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(A(e,SharedArrayBuffer)||e&&A(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return o.from(c,t,r);var p=function(e){if(o.isBuffer(e)){var t=0|f(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(p)return p;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),s(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!o.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return c(e)},o.allocUnsafeSlow=function(e){return c(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||A(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(i)return n?-1:j(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,a,s,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=T[e[a]];return i}(this,t,r);case"utf8":case"utf-8":return y(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,a=t,s=r,0===a&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(a,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return _(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){var a,s=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(a=r;a<o;
vendor: 12,407 bytes, line 1
1a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*s}else -1!==c&&(a-=a-c),c=-1}else for(r+l>o&&(r=o-l),a=r;a>=0;a--){for(var d=!0,f=0;f<l;f++)if(u(e,a+f)!==u(t,f)){d=!1;break}if(d)return a}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(A(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),A(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(A(a,Uint8Array)&&(a=o.from(a)),!o.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},o.byteLength=h,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):p.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,i){if(A(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,l=Math.min(a,s),u=this.slice(n,i),c=e.slice(t,r),d=0;d<l;++d)if(u[d]!==c[d]){a=u[d],s=c[d];break}return a<s?-1:+(s<a)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)};function y(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,s,o,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],s=e[i+2],(192&a)==128&&(192&s)==128&&(l=(15&u)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],s=e[i+2],o=e[i+3],(192&a)==128&&(192&s)==128&&(192&o)==128&&(l=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}var f=n,h=f.length;if(h<=4096)return String.fromCharCode.apply(String,f);for(var p="",m=0;m<h;)p+=String.fromCharCode.apply(String,f.slice(m,m+=4096));return p}function C(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function v(e,t,r,n,i,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function b(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,n,a){return t*=1,r>>>=0,a||b(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function w(e,t,r,n,a){return t*=1,r>>>=0,a||b(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,s,o,l,u,c,d,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o,l=parseInt(t.substr(2*s,2),16);if((o=l)!=o)break;e[r+s]=l}return s}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,k(j(e,this.length-i),this,i,a);case"ascii":return s=t,o=r,k(E(e),this,s,o);case"latin1":case"binary":return function(e,t,r,n){return k(E(t),e,r,n)}(this,e,t,r);case"base64":return l=t,u=r,k(R(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,k(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,o.prototype),n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},o.prototype.readInt8=function(e,t){return(e>>>=0,t||C(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,e,t,r,i,0)}var a=1,s=0;for(this[t]=255&e;++s<r&&(a*=256);)this[t+s]=e/a&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;v(this,e,t,r,i,0)}var a=r-1,s=1;for(this[t+a]=255&e;--a>=0&&(s*=256);)this[t+a]=e/s&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,e,t,r,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a<r&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);v(this,e,t,r,i-1,-i)}var a=r-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||v(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return w(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return w(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var a=i-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=o.isBuffer(e)?e:o.from(e,n),l=s.length;
1if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%l]}return this};var S=/[^+/0-9A-Za-z-_]/g;function j(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function E(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function R(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function k(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,l=(1<<o)-1,u=l>>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,a=h&(1<<-c)-1,h>>=-c,c+=o;c>0;a=256*a+e[t+d],d+=f,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=n;c>0;s=256*s+e[t+d],d+=f,c-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),a-=u}return(h?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var s,o,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,f=5960464477539062e-23*(23===i),h=n?0:a-1,p=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(o=0,s=c):s+d>=1?(o=(t*l-1)*Math.pow(2,i),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&o,h+=p,o/=256,i-=8);for(s=s<<i|o,u+=i;u>0;e[r+h]=255&s,h+=p,s/=256,u-=8);e[r+h-p]|=128*m}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},s=!0;try{n[e](r,r.exports,a),s=!1}finally{s&&delete i[e]}return r.exports}a.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=a(72)},81949,e=>{"use strict";let t,r,n,i;var a,s,o,l,u=e.i(47167);function c(e,t){return function(){return e.apply(t,arguments)}}let{toString:d}=Object.prototype,{getPrototypeOf:f}=Object,{iterator:h,toStringTag:p}=Symbol,m=(t=Object.create(null),e=>{let r=d.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())}),g=e=>(e=e.toLowerCase(),t=>m(t)===e),_=e=>t=>typeof t===e,{isArray:y}=Array,C=_("undefined");function v(e){return null!==e&&!C(e)&&null!==e.constructor&&!C(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let b=g("ArrayBuffer"),x=_("string"),w=_("function"),S=_("number"),j=e=>null!==e&&"object"==typeof e,E=e=>{if("object"!==m(e))return!1;let t=f(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(p in e)&&!(h in e)},R=g("Date"),k=g("File"),A=g("Blob"),T=g("FileList"),L=g("URLSearchParams"),[N,M,O,P]=["ReadableStream","Request","Response","Headers"].map(g);function V(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),y(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(v(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;for(n=0;n<s;n++)i=a[n],t.call(null,e[i],i,e)}}function I(e,t){let r;if(v(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let B="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,U=e=>!C(e)&&e!==B,F=(r="u">typeof Uint8Array&&f(Uint8Array),e=>r&&e instanceof r),D=g("HTMLFormElement"),H=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),K=g("RegExp"),z=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};V(r,(r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)}),Object.defineProperties(e,n)},W=g("AsyncFunction"),$=(a="function"==typeof setImmediate,s=w(B.postMessage),a?setImmediate:s?(o=`axios@${Math.random()}`,l=[],B.addEventListener("message",({source:e,data:t})=>{e===B&&t===o&&l.length&&l.shift()()},!1),e=>{l.push(e),B.postMessage(o,"*")}):e=>setTimeout(e)),q="u">typeof queueMicrotask?queueMicrotask.bind(B):void 0!==u.default&&u.default.nextTick||$,Z={isArray:y,isArrayBuffer:b,isBuffer:v,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||w(e.append)&&("formdata"===(t=m(e))||"object"===t&&w(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer)},isString:x,isNumber:S,isBoolean:e=>!0===e||!1===e,isObject:j,isPlainObject:E,isEmptyObject:e=>{if(!j(e)||v(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:N,isRequest:M,isResponse:O,isHeaders:P,isUndefined:C,isDate:R,isFile:k,isBlob:A,isRegExp:K,isFunction:w,isStream:e=>j(e)&&w(e.pipe),isURLSearchParams:L,isTypedArray:F,isFileList:T,forEach:V,merge:function e(){let{caseless:t,skipUndefined:r}=U(this)&&this||{},n={},i=(i,a)=>{let s=t&&I(n,a)||a;E(n[s])&&E(i)?n[s]=e(n[s],i):E(i)?n[s]=e({},i):y(i)?n[s]=i.slice():r&&C(i)||(n[s]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&V(arguments[e],i);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(V(t,(t,n)=>{r&&w(t)?Object.defineProperty(e,n,{value:c(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,
1configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,s,o={};if(t=t||{},null==e)return t;do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)s=i[a],(!n||n(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&f(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:m,kindOfTest:g,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(y(e))return e;let t=e.length;if(!S(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[h]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:D,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:z,freezeMethods:e=>{z(e,(t,r)=>{if(w(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(w(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(y(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:I,global:B,isContextDefined:U,isSpecCompliantForm:function(e){return!!(e&&w(e.append)&&"FormData"===e[p]&&e[h])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(j(e)){if(t.indexOf(e)>=0)return;if(v(e))return e;if(!("toJSON"in e)){t[n]=e;let i=y(e)?[]:{};return V(e,(e,t)=>{let a=r(e,n+1);C(a)||(i[t]=a)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:W,isThenable:e=>e&&(j(e)||w(e))&&w(e.then)&&w(e.catch),setImmediate:$,asap:q,isIterable:e=>null!=e&&w(e[h])};var Q=e.i(67034);class G extends Error{static from(e,t,r,n,i,a){let s=new G(e.message,t||e.code,r,n,i);return s.cause=e,s.name=e.name,a&&Object.assign(s,a),s}constructor(e,t,r,n,i){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}}G.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",G.ERR_BAD_OPTION="ERR_BAD_OPTION",G.ECONNABORTED="ECONNABORTED",G.ETIMEDOUT="ETIMEDOUT",G.ERR_NETWORK="ERR_NETWORK",G.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",G.ERR_DEPRECATED="ERR_DEPRECATED",G.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",G.ERR_BAD_REQUEST="ERR_BAD_REQUEST",G.ERR_CANCELED="ERR_CANCELED",G.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",G.ERR_INVALID_URL="ERR_INVALID_URL";let J=G;function Y(e){return Z.isPlainObject(e)||Z.isArray(e)}function X(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function ee(e,t,r){return e?e.concat(t).map(function(e,t){return e=X(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let et=Z.toFlatObject(Z,{},null,function(e){return/^is[A-Z]/.test(e)}),er=function(e,t,r){if(!Z.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=Z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Z.isUndefined(t[e])})).metaTokens,i=r.visitor||u,a=r.dots,s=r.indexes,o=(r.Blob||"u">typeof Blob&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Z.isDate(e))return e.toISOString();if(Z.isBoolean(e))return e.toString();if(!o&&Z.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(e)||Z.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Q.Buffer.from(e):e}function u(e,r,i){let o=e;if(e&&!i&&"object"==typeof e)if(Z.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(Z.isArray(e)&&(u=e,Z.isArray(u)&&!u.some(Y))||(Z.isFileList(e)||Z.endsWith(r,"[]"))&&(o=Z.toArray(e)))return r=X(r),o.forEach(function(e,n){Z.isUndefined(e)||null===e||t.append(!0===s?ee([r],n,a):null===s?r:r+"[]",l(e))}),!1}return!!Y(e)||(t.append(ee(i,r,a),l(e)),!1)}let c=[],d=Object.assign(et,{defaultVisitor:u,convertValue:l,isVisitable:Y});if(!Z.isObject(e))throw TypeError("data must be an object");
1return!function e(r,n){if(!Z.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),Z.forEach(r,function(r,a){!0===(!(Z.isUndefined(r)||null===r)&&i.call(t,r,Z.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a])}),c.pop()}}(e),t};function en(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ei(e,t){this._pairs=[],e&&er(e,this,t)}let ea=ei.prototype;function es(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eo(e,t,r){let n;if(!t)return e;let i=r&&r.encode||es,a=Z.isFunction(r)?{serialize:r}:r,s=a&&a.serialize;if(n=s?s(t,a):Z.isURLSearchParams(t)?t.toString():new ei(t,a).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ea.append=function(e,t){this._pairs.push([e,t])},ea.toString=function(e){let t=e?function(t){return e.call(this,t,en)}:en;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let el=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Z.forEach(this.handlers,function(t){null!==t&&e(t)})}},eu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ec="u">typeof URLSearchParams?URLSearchParams:ei,ed="u">typeof FormData?FormData:null,ef="u">typeof Blob?Blob:null,eh="u">typeof window&&"u">typeof document,ep="object"==typeof navigator&&navigator||void 0,em=eh&&(!ep||0>["ReactNative","NativeScript","NS"].indexOf(ep.product)),eg="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,e_=eh&&window.location.href||"http://localhost";e.s(["hasBrowserEnv",()=>eh,"hasStandardBrowserEnv",()=>em,"hasStandardBrowserWebWorkerEnv",()=>eg,"navigator",()=>ep,"origin",()=>e_],57536);let ey={...e.i(57536),isBrowser:!0,classes:{URLSearchParams:ec,FormData:ed,Blob:ef},protocols:["http","https","file","blob","url","data"]},eC=function(e){if(Z.isFormData(e)&&Z.isFunction(e.entries)){let t={};return Z.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let a=t[i++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),o=i>=t.length;return(a=!a&&Z.isArray(n)?n.length:a,o)?Z.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r:(n[a]&&Z.isObject(n[a])||(n[a]=[]),e(t,r,n[a],i)&&Z.isArray(n[a])&&(n[a]=function(e){let t,r,n={},i=Object.keys(e),a=i.length;for(t=0;t<a;t++)n[r=i[t]]=e[r];return n}(n[a]))),!s}(Z.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},ev={transitional:eu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=Z.isObject(e);if(a&&Z.isHTMLForm(e)&&(e=new FormData(e)),Z.isFormData(e))return i?JSON.stringify(eC(e)):e;if(Z.isArrayBuffer(e)||Z.isBuffer(e)||Z.isStream(e)||Z.isFile(e)||Z.isBlob(e)||Z.isReadableStream(e))return e;if(Z.isArrayBufferView(e))return e.buffer;if(Z.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1){var s,o;return(s=e,o=this.formSerializer,er(s,new ey.classes.URLSearchParams,{visitor:function(e,t,r,n){return ey.isNode&&Z.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...o})).toString()}if((r=Z.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return er(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(a||i){t.setContentType("application/json",!1);var l=e;if(Z.isString(l))try{return(0,JSON.parse)(l),Z.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||ev.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Z.isResponse(e)||Z.isReadableStream(e))return e;
1if(e&&Z.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ey.classes.FormData,Blob:ey.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{ev.headers[e]={}});let eb=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ex=Symbol("internals");function ew(e){return e&&String(e).trim().toLowerCase()}function eS(e){return!1===e||null==e?e:Z.isArray(e)?e.map(eS):String(e)}function ej(e,t,r,n,i){if(Z.isFunction(n))return n.call(this,t,r);if(i&&(t=r),Z.isString(t)){if(Z.isString(n))return -1!==t.indexOf(n);if(Z.isRegExp(n))return n.test(t)}}class eE{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=ew(t);if(!i)throw Error("header name must be a non-empty string");let a=Z.findKey(n,i);a&&void 0!==n[a]&&!0!==r&&(void 0!==r||!1===n[a])||(n[a||t]=eS(e))}let a=(e,t)=>Z.forEach(e,(e,r)=>i(e,r,t));if(Z.isPlainObject(e)||e instanceof this.constructor)a(e,t);else{let n;if(Z.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var s;let r,n,i,o;a((o={},(s=e)&&s.split("\n").forEach(function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||o[r]&&eb[r]||("set-cookie"===r?o[r]?o[r].push(n):o[r]=[n]:o[r]=o[r]?o[r]+", "+n:n)}),o),t)}else if(Z.isObject(e)&&Z.isIterable(e)){let r={},n,i;for(let t of e){if(!Z.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?Z.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=ew(e)){let r=Z.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(Z.isFunction(t))return t.call(this,e,r);if(Z.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ew(e)){let r=Z.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||ej(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=ew(e)){let i=Z.findKey(r,e);i&&(!t||ej(r,r[i],i,t))&&(delete r[i],n=!0)}}return Z.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||ej(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return Z.forEach(this,(n,i)=>{let a=Z.findKey(r,i);if(a){t[a]=eS(n),delete t[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();s!==i&&delete t[i],t[s]=eS(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Z.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Z.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ex]=this[ex]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=ew(e);if(!t[n]){let i;i=Z.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return Z.isArray(e)?e.forEach(n):n(e),this}}function eR(e,t){let r=this||ev,n=t||r,i=eE.from(n.headers),a=n.data;return Z.forEach(e,function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function ek(e){return!!(e&&e.__CANCEL__)}eE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(eE.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Z.freezeMethods(eE);let eA=class extends J{constructor(e,t,r){super(null==e?"canceled":e,J.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function eT(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}let eL=function(e,t){let r,n=Array(e=e||10),i=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(o){let l=Date.now(),u=i[s];r||(r=l),n[a]=o,i[a]=l;let c=s,d=0;for(;c!==a;)d+=n[c++],c%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),l-r<t)return;let f=u&&l-u;return f?Math.round(1e3*d/f):void 0}},eN=function(e,t){let r,n,i=0,a=1e3/t,s=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),o=t-i;o>=a?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},a-o)))},()=>r&&s(r)]},eM=(e,t,r=3)=>{let n=0,i=eL(50,250);return eN(r=>{let a=r.loaded,s=r.lengthComputable?r.total:void 0,o=a-n,l=i(o);n=a,e({loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&a<=s?(s-a)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},eO=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eP=e=>(...t)=>Z.asap(()=>e(...t)),eV=ey.hasStandardBrowserEnv?(n=new URL(ey.origin),i=ey.navigator&&/(msie|trident)/i.test(ey.navigator.userAgent),e=>(e=new URL(e,ey.origin),n.protocol===e.protocol&&n.host===e.host&&(i||n.port===e.port))):()=>!0,eI=ey.hasStandardBrowserEnv?{write(e,t,r,n,i,a,s){if("u"<typeof document)return;let o=[`${e}=${encodeURIComponent(t)}`];Z.isNumber(r)&&o.push(`expires=${new Date(r).toUTCString()}`),Z.isString(n)&&o.push(`path=${n}`),Z.isString(i)&&o.push(`domain=${i}`),!0===a&&o.push("secure"),Z.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eB(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eU=e=>e instanceof eE?{...e}:e;function eF(e,t){t=t||{};let r={};function n(e,t,r,n){return Z.isPlainObject(e)&&Z.isPlainObject(t)?Z.merge.call({caseless:n},e,t):Z.isPlainObject(t)?Z.merge({},t):Z.isArray(t)?t.slice():t}function i(e,t,r,i){return Z.isUndefined(t)?Z.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function a(e,t){if(!Z.isUndefined(t))return n(void 0,t)}function s(e,t){return Z.isUndefined(t)?Z.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function o(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}let l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(e,t,r)=>i(eU(e),eU(t),r,!0)};return Z.forEach(Object.keys({...e,...t}),function(n){let a=l[n]||i,s=a(e[n],t[n],n);Z.isUndefined(s)&&a!==o||(r[n]=s)}),r}let eD=e=>{let t=eF({},e),{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;if(t.headers=s=eE.from(s),t.url=eo(eB(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),Z.isFormData(r)){if(ey.hasStandardBrowserEnv||ey.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Z.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}}if(ey.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||!1!==n&&eV(t.url))){let e=i&&a&&eI.read(a);e&&s.set(i,e)}return t},eH="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var n;let i,a,s,o,l,u,c=eD(e),d=c.data,f=eE.from(c.headers).normalize(),{responseType:h,onUploadProgress:p,onDownloadProgress:m}=c;function g(){o&&o(),l&&l(),c.cancelToken&&c.cancelToken.unsubscribe(i),c.signal&&c.signal.removeEventListener("abort",i)}let _=new XMLHttpRequest;function y(){if(!_)return;let n=eE.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());eT(function(e){t(e),g()},function(e){r(e),g()},{data:h&&"text"!==h&&"json"!==h?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:n,config:e,request:_}),_=null}
1_.open(c.method.toUpperCase(),c.url,!0),_.timeout=c.timeout,"onloadend"in _?_.onloadend=y:_.onreadystatechange=function(){!_||4!==_.readyState||(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(y)},_.onabort=function(){_&&(r(new J("Request aborted",J.ECONNABORTED,e,_)),_=null)},_.onerror=function(t){let n=new J(t&&t.message?t.message:"Network Error",J.ERR_NETWORK,e,_);n.event=t||null,r(n),_=null},_.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",n=c.transitional||eu;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new J(t,n.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,_)),_=null},void 0===d&&f.setContentType(null),"setRequestHeader"in _&&Z.forEach(f.toJSON(),function(e,t){_.setRequestHeader(t,e)}),Z.isUndefined(c.withCredentials)||(_.withCredentials=!!c.withCredentials),h&&"json"!==h&&(_.responseType=c.responseType),m&&([s,l]=eM(m,!0),_.addEventListener("progress",s)),p&&_.upload&&([a,o]=eM(p),_.upload.addEventListener("progress",a),_.upload.addEventListener("loadend",o)),(c.cancelToken||c.signal)&&(i=t=>{_&&(r(!t||t.type?new eA(null,e,_):t),_.abort(),_=null)},c.cancelToken&&c.cancelToken.subscribe(i),c.signal&&(c.signal.aborted?i():c.signal.addEventListener("abort",i)));let C=(n=c.url,(u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n))&&u[1]||"");C&&-1===ey.protocols.indexOf(C)?r(new J("Unsupported protocol "+C+":",J.ERR_BAD_REQUEST,e)):_.send(d||null)})},eK=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},ez=async function*(e,t){for await(let r of eW(e))yield*eK(r,t)},eW=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},e$=(e,t,r,n)=>{let i,a=ez(e,t),s=0,o=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await a.next();if(t){o(),e.close();return}let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw o(e),e}},cancel:e=>(o(e),a.return())},{highWaterMark:2})},{isFunction:eq}=Z,eZ=(({Request:e,Response:t})=>({Request:e,Response:t}))(Z.global),{ReadableStream:eQ,TextEncoder:eG}=Z.global,eJ=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eY=e=>{let t,{fetch:r,Request:n,Response:i}=e=Z.merge.call({skipUndefined:!0},eZ,e),a=r?eq(r):"function"==typeof fetch,s=eq(n),o=eq(i);if(!a)return!1;let l=a&&eq(eQ),u=a&&("function"==typeof eG?(t=new eG,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=s&&l&&eJ(()=>{let e=!1,t=new n(ey.origin,{body:new eQ,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=o&&l&&eJ(()=>Z.isReadableStream(new i("").body)),f={stream:d&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{f[e]||(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,r)})});let h=async e=>{if(null==e)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e)){let t=new n(ey.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Z.isArrayBufferView(e)||Z.isArrayBuffer(e)?e.byteLength:(Z.isURLSearchParams(e)&&(e+=""),Z.isString(e))?(await u(e)).byteLength:void 0},p=async(e,t)=>{let r=Z.toFiniteNumber(e.getContentLength());return null==r?h(t):r};return async e=>{let t,{url:a,method:o,data:l,signal:u,cancelToken:h,timeout:m,onDownloadProgress:g,onUploadProgress:_,responseType:y,headers:C,withCredentials:v="same-origin",fetchOptions:b}=eD(e),x=r||fetch;y=y?(y+"").toLowerCase():"text";let w=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,s();let t=e instanceof Error?e:this.reason;n.abort(t instanceof J?t:new eA(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new J(`timeout of ${t}ms exceeded`,J.ETIMEDOUT))},t),s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};
1e.forEach(e=>e.addEventListener("abort",i));let{signal:o}=n;return o.unsubscribe=()=>Z.asap(s),o}})([u,h&&h.toAbortSignal()],m),S=null,j=w&&w.unsubscribe&&(()=>{w.unsubscribe()});try{if(_&&c&&"get"!==o&&"head"!==o&&0!==(t=await p(C,l))){let e,r=new n(a,{method:"POST",body:l,duplex:"half"});if(Z.isFormData(l)&&(e=r.headers.get("content-type"))&&C.setContentType(e),r.body){let[e,n]=eO(t,eM(eP(_)));l=e$(r.body,65536,e,n)}}Z.isString(v)||(v=v?"include":"omit");let r=s&&"credentials"in n.prototype,u={...b,signal:w,method:o.toUpperCase(),headers:C.normalize().toJSON(),body:l,duplex:"half",credentials:r?v:void 0};S=s&&new n(a,u);let h=await (s?x(S,b):x(a,u)),m=d&&("stream"===y||"response"===y);if(d&&(g||m&&j)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});let t=Z.toFiniteNumber(h.headers.get("content-length")),[r,n]=g&&eO(t,eM(eP(g),!0))||[];h=new i(e$(h.body,65536,r,()=>{n&&n(),j&&j()}),e)}y=y||"text";let E=await f[Z.findKey(f,y)||"text"](h,e);return!m&&j&&j(),await new Promise((t,r)=>{eT(t,r,{data:E,headers:eE.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:S})})}catch(t){if(j&&j(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,S),{cause:t.cause||t});throw J.from(t,t&&t.code,e,S)}}},eX=new Map,e1=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,a=[n,i,r],s=a.length,o,l,u=eX;for(;s--;)o=a[s],void 0===(l=u.get(o))&&u.set(o,l=s?new Map:eY(t)),u=l;return l};e1();let e0={http:null,xhr:eH,fetch:{get:e1}};Z.forEach(e0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e2=e=>`- ${e}`,e3=e=>Z.isFunction(e)||null===e||!1===e,e5=function(e,t){let r,n,{length:i}=e=Z.isArray(e)?e:[e],a={};for(let s=0;s<i;s++){let i;if(n=r=e[s],!e3(r)&&void 0===(n=e0[(i=String(r)).toLowerCase()]))throw new J(`Unknown adapter '${i}'`);if(n&&(Z.isFunction(n)||(n=n.get(t))))break;a[i||"#"+s]=n}if(!n){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new J("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(e2).join("\n"):" "+e2(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function e6(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eA(null,e)}function e4(e){return e6(e),e.headers=eE.from(e.headers),e.data=eR.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e5(e.adapter||ev.adapter,e)(e).then(function(t){return e6(e),t.data=eR.call(e,e.transformResponse,t),t.headers=eE.from(t.headers),t},function(t){return!ek(t)&&(e6(e),t&&t.response&&(t.response.data=eR.call(e,e.transformResponse,t.response),t.response.headers=eE.from(t.response.headers))),Promise.reject(t)})}let e9="1.13.4",e8={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e8[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let e7={};e8.transitional=function(e,t,r){function n(e,t){return"[Axios v"+e9+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new J(n(i," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!e7[i]&&(e7[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}},e8.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let te=function(e,t,r){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let a=n[i],s=t[a];if(s){let t=e[a],r=void 0===t||s(t,a,e);if(!0!==r)throw new J("option "+a+" must be "+r,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}};class tt{constructor(e){this.defaults=e||{},this.interceptors={request:new el,response:new el}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:a,headers:s}=t=eF(this.defaults,t);void 0!==i&&te(i,{silentJSONParsing:e8.transitional(e8.boolean),forcedJSONParsing:e8.transitional(e8.boolean),clarifyTimeoutError:e8.transitional(e8.boolean)}
1,!1),null!=a&&(Z.isFunction(a)?t.paramsSerializer={serialize:a}:te(a,{encode:e8.function,serialize:e8.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),te(t,{baseUrl:e8.spelling("baseURL"),withXsrfToken:e8.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&Z.merge(s.common,s[t.method]);s&&Z.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=eE.concat(o,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[e4.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);d<n;)r=r.then(e[d++],e[d++]);return r}n=l.length;let f=t;for(;d<n;){let e=l[d++],t=l[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{r=e4.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,n=c.length;d<n;)r=r.then(c[d++],c[d++]);return r}getUri(e){return eo(eB((e=eF(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}
1Z.forEach(["delete","get","head","options"],function(e){tt.prototype[e]=function(t,r){return this.request(eF(r||{},{method:e,url:t,data:(r||{}).data}))}}),Z.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(eF(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tt.prototype[e]=t(),tt.prototype[e+"Form"]=t(!0)});class tr{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eA(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tr(function(t){e=t}),cancel:e}}}let tn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
1alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tn).forEach(([e,t])=>{tn[t]=e});let ti=function e(t){let r=new tt(t),n=c(tt.prototype.request,r);return Z.extend(n,tt.prototype,r,{allOwnKeys:!0}),Z.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eF(t,r))},n}(ev);ti.Axios=tt,ti.CanceledError=eA,ti.CancelToken=tr,ti.isCancel=ek,ti.VERSION=e9,ti.toFormData=er,ti.AxiosError=J,ti.Cancel=ti.CanceledError,ti.all=function(e){return Promise.all(e)},ti.spread=function(e){return function(t){return e.apply(null,t)}},ti.isAxiosError=function(e){return Z.isObject(e)&&!0===e.isAxiosError},ti.mergeConfig=eF,ti.AxiosHeaders=eE,ti.formToJSON=e=>eC(Z.isHTMLForm(e)?new FormData(e):e),ti.getAdapter=e5,ti.HttpStatusCode=tn,ti.default=ti,e.s(["default",0,ti],81949)},77753,e=>{"use strict";var t,r,n,i,a,s,o,l;let u=((t={}).Kent="kent",t.Vogue="vogue",t.Rothmans="rothmans",t.Dunhill="dunhill",t.Lucky="lucky",t.Yava="yava",t),c=((r={})[r.PersonalData=0]="PersonalData",r[r.PersonalDataAgreement=1]="PersonalDataAgreement",r[r.UserAgreement=2]="UserAgreement",r[r.Cookie=3]="Cookie",r[r.TobaccoQuality=4]="TobaccoQuality",r),d=((n={}).Passport="passport",n.PersonPhoto="person_photo",n),f=((i={}).Email="EMAIL",i.Phone="PHONE",i),h=((a={}).Selfie="selfie",a.Manual="manual",a),p=((s={}).Required="required",s.RequiredExternal="required_external",s.Passed="passed",s.Moderation="moderation",s.Failed="failed",s),m=((o={}).Auto="auto",o.Manual="manual",o),g=((l={}).KentBlue="wp3Ck3Zn",l.KentSilver="wozClm9n",l.KentWhite="wojCl2pn",l.KentSwitch="wozCiGpn",l.KentCrystalBlue="wpzCjWE1",l.KentCrystal="wpTCmm1n",l.KentNanoSilver="wpHCnm0n",l.KentNanoWhite="wpHCnm2n",l.KentNanoMix="wpHCnm1n",l.KentCrystalMix="wpzCnnNr",l.KentCrystalMixRuby="wpzCjXZr",l.KentCrystalMixPlus="wpvCnGAr",l.KentDesktop="dzU8j3Nrv",l.KentTest="tq34uK9m",l);e.s(["AgeVerificationMethods",()=>m,"AgeVerificationStatuses",()=>p,"CashbackQRList",()=>g,"ContactTypes",()=>f,"DocumentTypes",()=>d,"PoliticTypes",()=>c,"SiteTypes",()=>u,"VerificationTypes",()=>h])},14056,e=>{"use strict";var t=e.i(71645),r=function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function i(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}"function"==typeof SuppressedError&&SuppressedError;var a=/^(\S+)$/,s=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,o=/^[^\s\.]+\.\S{2,}$/,l=/^(https?:\/\/)?([0-9]{1,3}\.){3}[0-9]{1,3}\:\d+$/,u=/^(https?:\/\/)?\[([0-9a-fA-F]{0,4}\:){7}
1([0-9a-fA-F]){0,4}\]\:\d+$/;function c(e){if("string"!=typeof e)return!1;var t=e.match(a);if(!t)return!1;var r=t[0];return!!r&&!!(s.test(r)||o.test(r)||l.test(r)||u.test(r))}var d=function(e){void 0===e&&(e="smartcaptcha.cloud.yandex.ru");var t=/^https?/.test(e)?e:"https://".concat(e);return"".concat(t,"/captcha.js?render=onload&onload=__onSmartCaptchaReady")},f=[],h=new Map;function p(e,r){var n=i((0,t.useState)(),2),a=n[0],s=n[1];return(0,t.useEffect)(function(){if(void 0!==e&&!c(e))throw Error("[SmartCaptcha] ".concat(e," host is invalid. It should be of a kind: domain.ru, localhost:3000"));if(void 0===a&&(void 0===e||c(e))){void 0===window.__onSmartCaptchaReady&&(window.__onSmartCaptchaReady=function(){f.forEach(function(e){return e()})}),window.smartCaptcha&&s(window.smartCaptcha);var t,n,i,o,l,u,p=f.push(function(){return s(window.smartCaptcha)});return h.get(e)||(t=d(e),n=null,i=function(t,n,i,a,s){null==r||r({filename:d(e),message:(null==s?void 0:s.message)||"Unknown error on script loading",col:a||0,line:i||0})},void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=!0),(l=document.createElement("script")).src=t,l.onload=n,l.onerror=i,l.type="text/javascript",l.crossOrigin="anonymous","u">typeof window&&window.addEventListener("error",function(e){0===e.filename.indexOf(t)&&r&&r({filename:e.filename,message:e.message,col:e.colno,line:e.lineno})}),u=function(){return document.body.appendChild(l)},o?u():window.addEventListener("load",u),h.set(e,!0)),function(){f.splice(p,1)}}},[e,r,a]),a}function m(e){var r=(0,t.useRef)({}),n=e.widgetId,i=e.smartCaptcha;r.current={onChallengeHidden:e.onChallengeHidden,onChallengeVisible:e.onChallengeVisible,onSuccess:e.onSuccess,onNetworkError:e.onNetworkError,onTokenExpired:e.onTokenExpired,onJavascriptError:e.onJavascriptError},(0,t.useEffect)(function(){if(i&&"number"==typeof n){var e=[i.subscribe(n,"challenge-visible",function(){var e,t;null==(t=(e=r.current).onChallengeVisible)||t.call(e)}),i.subscribe(n,"challenge-hidden",function(){var e,t;null==(t=(e=r.current).onChallengeHidden)||t.call(e)}),i.subscribe(n,"network-error",function(){var e,t;null==(t=(e=r.current).onNetworkError)||t.call(e)}),i.subscribe(n,"success",function(e){var t,n;null==(n=(t=r.current).onSuccess)||n.call(t,e)}),i.subscribe(n,"token-expired",function(){var e,t;null==(t=(e=r.current).onTokenExpired)||t.call(e)}),i.subscribe(n,"javascript-error",function(e){var t,n;null==(n=(t=r.current).onJavascriptError)||n.call(t,e)})];return function(){return e.forEach(function(e){return null==e?void 0:e()})}}},[n,i])}var g="u">typeof window?t.useLayoutEffect:t.useEffect,_={height:102}
1,y=function(e){var a=(0,t.useRef)(null),s=e.onChallengeHidden,o=e.onChallengeVisible,l=e.onSuccess,u=e.onNetworkError,c=e.onTokenExpired,d=e.onJavascriptError,f=e.language,h=e.host,y=e.theme,C=n(e,["onChallengeHidden","onChallengeVisible","onSuccess","onNetworkError","onTokenExpired","onJavascriptError","language","host","theme"]),v=p(h,d),b=i((0,t.useState)(),2),x=b[0],w=b[1],S=(0,t.useRef)({});return m({widgetId:x,smartCaptcha:v,onChallengeHidden:s,onChallengeVisible:o,onSuccess:l,onNetworkError:u,onTokenExpired:c,onJavascriptError:d}),g(function(){if(a.current&&v){var e=v.render(a.current,r(r({},C),{hl:f,theme:y}));return w(e),function(){v.destroy(e),w(void 0),S.current[e]=!0}}},[v,f,C.sitekey,C.test,C.webview]),(0,t.useEffect)(function(){x&&y&&window.smartCaptcha.setTheme(x,y)},[y,x]),t.default.createElement("div",{ref:a,className:"smart-captcha",style:_})},C=function(e){var a=(0,t.useRef)(null),s=e.onChallengeHidden,o=e.onChallengeVisible,l=e.onSuccess,u=e.onNetworkError,c=e.onTokenExpired,d=e.onJavascriptError,f=e.language,h=e.host,_=e.theme,y=n(e,["onChallengeHidden","onChallengeVisible","onSuccess","onNetworkError","onTokenExpired","onJavascriptError","language","host","theme"]),C=p(h,d),v=i((0,t.useState)(),2),b=v[0],x=v[1],w=(0,t.useRef)({});return m({widgetId:b,smartCaptcha:C,onChallengeHidden:s,onChallengeVisible:o,onSuccess:l,onNetworkError:u,onTokenExpired:c,onJavascriptError:d}),g(function(){if(a.current&&C){var e=C.render(a.current,r(r({},y),{invisible:!0,hl:f,theme:_}));return x(e),function(){null==C||C.destroy(e),x(void 0),w.current[e]=!0}}},[C,f,y.hideShield,y.shieldPosition,y.sitekey,y.test,y.webview]),(0,t.useEffect)(function(){C&&y.visible&&"number"==typeof b&&!w.current[b]&&C.execute(b)},[C,y.visible,b]),(0,t.useEffect)(function(){b&&_&&window.smartCaptcha.setTheme&&window.smartCaptcha.setTheme(b,_)},[_,b]),t.default.createElement("div",{ref:a,className:"smart-captcha"})};e.s(["InvisibleSmartCaptcha",()=>C,"SmartCaptcha",()=>y])},7670,e=>{"use strict";e.s(["default",0,function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}])},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(90809)._(e.r(98183)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",o=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${i}${c}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},18581,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(71645);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return _},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return C},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return x}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>o.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class _ extends Error{}class y extends Error{}class C extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),i=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return C}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(90809),s=e.r(43476),o=a._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let h=e.r(91949),p=e.r(73668),m=e.r(9396);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function _(t){var r;let n,i,a,[l,_]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),C=(0,o.useRef)(null),{href:v,as:b,children:x,prefetch:w=null,passHref:S,replace:j,shallow:E,scroll:R,onClick:k,onMouseEnter:A,onTouchStart:T,legacyBehavior:L=!1,onNavigate:N,ref:M,unstable_dynamicOnHover:O,...P}=t;n=x,L&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let V=o.default.useContext(u.AppRouterContext),I=!1!==w,B=!1!==w?null===(r=w)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:U,as:F}=o.default.useMemo(()=>{let e=g(v);return{href:e,as:b?g(b):e}},[v,b]);if(L){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=o.default.Children.only(n)}let D=L?i&&"object"==typeof i&&i.ref:M,H=o.default.useCallback(e=>(null!==V&&(C.current=(0,h.mountLinkInstance)(e,U,V,B,I,_)),()=>{C.current&&((0,h.unmountLinkForCurrentNavigation)(C.current),C.current=null),(0,h.unmountPrefetchableInstance)(e)}),[I,U,V,B,_]),K={ref:(0,c.useMergedRef)(H,D),onClick(t){L||"function"!=typeof k||k(t),L&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!V||t.defaultPrevented||function(t,r,n,i,a,s,l){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);o.default.startTransition(()=>{d(n||r,a?"replace":"push",s??!0,i.current)})}}(t,U,F,C,j,R,N)},onMouseEnter(e){L||"function"!=typeof A||A(e),L&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),V&&I&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){L||"function"!=typeof T||T(e),L&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),V&&I&&(0,h.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,d.isAbsoluteUrl)(F)?K.href=F:L&&!S&&("a"!==i.type||"href"in i.props)||(K.href=(0,f.addBasePath)(F)),a=L?o.default.cloneElement(i,K):(0,s.jsx)("a",{...P,...K,children:n}),(0,s.jsx)(y.Provider,{value:l,children:a})}e.r(84508);let y=(0,o.createContext)(h.IDLE_LINK_STATUS),C=()=>(0,o.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},93933,91476,99011,64044,82588,70468,40895,90841,17860,1062,18737,31931,17350,84490,e=>{"use strict";var t,r,n,i,a,s,o=e.i(18566),l=e.i(71645),u=e.i(81949);let{Axios:c,AxiosError:d,CanceledError:f,isCancel:h,CancelToken:p,VERSION:m,all:g,Cancel:_,isAxiosError:y,spread:C,toFormData:v,AxiosHeaders:b,HttpStatusCode:x,formToJSON:w,getAdapter:S,mergeConfig:j}=u.default;function E(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)"__proto__"!==n&&(e[n]=r[n])}return e}e.s(["isAxiosError",()=>y],91476);var R=function e(t,r){function n(e,n,i){if("u">typeof document){"number"==typeof(i=E({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+a}}return Object.create({set:n,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var a=r[i].split("="),s=a.slice(1).join("=");try{var o=decodeURIComponent(a[0]);if(o in n||(n[o]=t.read(s,o)),e===o)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){n(e,"",E({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,E({},this.attributes,t))},withConverter:function(t){return e(E({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});e.s(["default",()=>R],99011);let k=((t={}).code="code",t.success="success",t.error="error",t),A={UserAuth:{event:"authentication"},LoginStepCode:{event:"interaction",site_section:"login",action:"step_code"},LoginSuccess:{event:"interaction",site_section:"login",action:"login_success"},LoginError:{event:"interaction",site_section:"login",action:"login_error"},RegStart:{event:"interaction",site_section:"registration",action:"registration_start"},RegStep:{event:"interaction",site_section:"registration"},CashbackRegSuccess:{event:"interaction",site_section:"cashback",action:"registration_success"},EventRegSuccess:{event:"interaction",site_section:"registration",action:"registration_success"}};e.s(["GAEvents",()=>A,"RegStatus",()=>k],64044);let T=()=>(e,t)=>{if(!("dataLayer"in window))return void console.warn("Google Analytics is not loaded");let{event:r,...n}=A[e],i=t?Object.assign(n,t):n;window.dataLayer?.push?.({event:r,...i})},L=e=>(t,r,n)=>{if(r===k.code&&e("RegStep",{action:`step_${t}_code`,eventContext:`step_${t}`}),r===k.success){let r="3"===t?"registration":`step_${t}`;e("RegStep",{action:`${r}_success`,label:n,eventContext:`step_${t}`})}r===k.error&&e("RegStep",{action:"step_error",label:n,eventContext:"ageverification"===t?"step_ageverification":t})};e.s(["gaTrackEventConstructor",()=>T,"regStepAnalyticConstructor",()=>L],82588);var N=e.i(77753);let M=e=>{try{return localStorage.getItem(e)}catch{return null}},O=(e,t)=>{try{localStorage.setItem(e,t)}catch{}},P=e=>{try{localStorage.removeItem(e)}catch{}},V=e=>e.replaceAll(/\D+/g,""),I=e=>{let t=new Date(e);return`${t.getDate()}.${t.getMonth()+1}.${t.getFullYear()}`},B=e=>{let t=e.split(".");return`${t[2]}-${t[1]}-${t[0]}`},U=e=>{switch(e){case N.SiteTypes.Dunhill:return R.get("actualQr")||"";case N.SiteTypes.Rothmans:return R.get("qr-code")||"";case N.SiteTypes.Kent:case N.SiteTypes.Vogue:case N.SiteTypes.Lucky:return R.get("qr")||"";default:return""}},F=e=>t=>{let r;e((r=("string"==typeof t?t:t.target.value).replaceAll(/^[\s-]+/g,"").replaceAll(/-{2,}/g,"-").replaceAll(/\s{2,}/g," ").replaceAll(/^\s*-\s*|\s*-\s*$/g,"-").replaceAll(/[^\sÐ-Ñ-]/g,"").replaceAll(/([Ð-Ñ])\1{3,}/gi,e=>e.slice(0,3))).charAt(0).toUpperCase()+r.slice(1))};e.s(["birthdayToSubmit",()=>I,"dateToInputFormat",()=>B,"getFormattedNameHandler",()=>F,"getQR",()=>U,"phoneToSubmit",()=>V,"readStorage",()=>M,"removeStorage",()=>P,"writeStorage",()=>O],70468);let D={UserAuth:{eventCategory:"userParams"},RegStart:{reachGoalID:"registrationStart",eventCategory:"registration",eventName:"registration_start"},RegEmailCode:{reachGoalID:"regEmailCode",eventCategory:"registration",eventName:"registration_email_code"},RegEmailVerification:{reachGoalID:"regEmailVerification",eventCategory:"registration",eventName:"registration_email_verification"},RegAgeVerification:{reachGoalID:"regAgeVerification",eventCategory:"registration",eventName:"registartion_age_verification"},RegMobileCode:{reachGoalID:"regMobileCode",eventCategory:"registration",eventName:"registration_mobile_code"},RegistrationSuccess:{reachGoalID:"registrationSuccess",eventCategory:"registration",eventName:"registation_success"},RegistrationError:{eventCategory:"registration",eventName:"registration_error"},LoginStart:{reachGoalID:"loginStart",eventCategory:"login",eventName:"login_start"},LoginMobileCode:{reachGoalID:"loginMobileCode",eventCategory:"login",eventName:"login_mobile_code"},LoginSuccess:{reachGoalID:"loginSuccess",eventCategory:"login",eventName:"login_success"},LoginError:{eventCategory:"login",eventName:"login_error"},MainBlogArticleClick:{reachGoalID:"mainBlogArticleClick",eventCategory:"blog",eventName:"article_click"}},H=((r={}).Selfie="selfie mode",r);e.s(["YMEvents",()=>D,"YMVerificationTypes",()=>H],40895);let K={[N.CashbackQRList.KentBlue]:"kent_blue",[N.CashbackQRList.KentSilver]:"kent_silver",[N.CashbackQRList.KentWhite]:"kent_white",[N.CashbackQRList.KentSwitch]:"kent_switch",[N.CashbackQRList.KentCrystalBlue]:"kent_crystal_blue",[N.CashbackQRList.KentCrystal]:"kent_crystal",[N.CashbackQRList.KentNanoSilver]:"kent_nano_silver",[N.CashbackQRList.KentNanoWhite]:"kent_nano_white",[N.CashbackQRList.KentNanoMix]:"kent_nano_mix",[N.CashbackQRList.KentCrystalMix]:"kent_crystal_mix",[N.CashbackQRList.KentCrystalMixRuby]:"kent_crystal_mix_ruby",[N.CashbackQRList.KentCrystalMixPlus]:"kent_crystal_mix_plus",[N.CashbackQRList.KentDesktop]:"kent_blue",[N.CashbackQRList.KentTest]:"kent_blue"},z={[N.CashbackQRList.KentBlue]:"activation",[N.CashbackQRList.KentSilver]:"activation",[N.CashbackQRList.KentWhite]:"activation",[N.CashbackQRList.KentSwitch]:"activation",[N.CashbackQRList.KentCrystalBlue]:"activation",[N.CashbackQRList.KentCrystal]:"activation",[N.CashbackQRList.KentNanoSilver]:"activation",[N.CashbackQRList.KentNanoWhite]:"activation",[N.CashbackQRList.KentNanoMix]:"activation",[N.CashbackQRList.KentCrystalMix]:"activation",[N.CashbackQRList.KentCrystalMixRuby]:"activation",[N.CashbackQRList.KentCrystalMixPlus]:"activation",[N.CashbackQRList.KentDesktop]:"activation",[N.CashbackQRList.KentTest]:"activation"},W={[N.DocumentTypes.Passport]:"паÑпоÑÑ",[N.DocumentTypes.PersonPhoto]:"ÑелÑи"},$=e=>K[e],q=e=>z[e];e.s(["AnalyticDocsType",()=>
1W,"getEventContext",()=>$,"getEventLabel",()=>q],90841);let Z=((n={}).SMS="sms",n.TG="tg",n.ALL="all",n),Q=((i={}).Default="default",i.Strict="strict",i);e.s(["CodeSourceReqTypes",()=>Z,"RegMode",()=>Q],17860);let G=e=>({sendAuthSms:(t,r)=>e.post("/auth/sms/code/send",t,r),checkAuthSms:(t,r)=>e.post("/auth/sms/code/check",t,r),getUser:(t,r)=>e.get(`/users/${t}`,r),checkUser:t=>e.get("/user/checking",t),getBackgroundUrls:t=>e.get("/av/background",t),maxAuth:(t,r)=>e.post("/kent/auth/login-by-token",{initData:t},{...r,headers:{...r?.headers,"Content-Type":"application/json"},withCredentials:!0})});e.s(["authorizationApiConstructor",()=>G],1062);let J={[N.SiteTypes.Kent]:"Kent",[N.SiteTypes.Vogue]:"Vogue",[N.SiteTypes.Rothmans]:"Rothmans",[N.SiteTypes.Dunhill]:"Dunhill",[N.SiteTypes.Lucky]:"Lucky Strike",[N.SiteTypes.Yava]:"ÐолоÑÐ°Ñ Ð¯Ð²Ð°"},Y="redirectionPath",X="user_id",ee="reg_info";e.s(["BACK_PATH_COOKE_NAME",()=>Y,"EMAIL_CHECK_LIMIT_ERROR",()=>"email-check-limit-reached","MAX_VERIFICATION_AUTO_CHECK",()=>3,"REG_INFO_STORAGE_KEY",()=>ee,"SITE_NAME",()=>J,"USER_ID_STORAGE_KEY",()=>X,"VERIFICATION_INSTRUCTIONS_URL",()=>"/local/files/verification_instructions.pdf"],18737),e.i(14056);var et=e.i(43476);e.i(7670),e.i(22016);let er=((a={}).NotAdult="0",a.Adult="1",a);e.s(["AgeVerificationStatus",()=>er],31931);let en={phone:"",regMode:null},ei=()=>
1{if("u"<typeof window)return en;let e=M(ee);if(!e)return en;try{let t=JSON.parse(e);return{phone:"string"==typeof t.phone?t.phone:"",regMode:t.regMode??null}}catch{return en}},ea=(e,t)=>{let r={phone:e,regMode:t??Q.Strict};return O(ee,JSON.stringify(r)),r},es=()=>P(ee),eo=()=>{if("u">typeof window)switch(R.get("verify")){case"1":return er.Adult;case"0":return er.NotAdult}return null};e.s(["clearRegInfo",()=>es,"getAgeVerification",()=>eo,"readRegInfo",()=>ei,"saveRegInfo",()=>ea],17350);let el=((s={}).AuthSendSmsCode="auth_send_sms_code",s.AuthCheckSmsCode="auth_check_sms_code",s.SignupSendEmailCode="signup_send_email_code",s.SignupCheckEmailCode="signup_check_email_code",s.SignupSendSmsCode="signup_send_sms_code",s.SignupCheckSmsCode="signup_check_sms_code",s.SignupCheckEmail="signup_check_email",s.Signup="signup",s.SignupWithVerification="signup_with_verification",s.SignupCheckPhone="signup_check_phone",s.AgeVerificationBySelfie="age_verification_by_selfie",s.UpdateUser="user_update",s);e.s(["CaptchaActions",()=>el],84490);let eu=(0,l.createContext)(null),ec=({children:e,baseUrl:t,apiPath:r,captchaKey:n,ymKey:i,siteType:a,userAgreementLink:s,personalDataProcessingLink:c,personalDataAgreementLink:d,cookisePoliticsLink:f,tobaccoQualityLink:h,authorizationPath:p="/",registrationPath:m,registrationSuccessPath:g,profilePath:_,protectedPaths:C,isDevMode:v=!1,isInitialAgeVerified:b,initialAuthState:x,initialRedirectionPath:w})=>{let S=(0,o.useRouter)(),j=(0,o.usePathname)(),E=(0,o.useSearchParams)(),k=w??E.get("back_url")??null,[A,L]=(0,l.useState)(()=>{let e=x?.user;return e&&(e.isAgeVerified||e.ageVerificationStatus!==N.AgeVerificationStatuses.Moderation&&e.ageVerificationStatus!==N.AgeVerificationStatuses.RequiredExternal)?e:null}),[O,P]=(0,l.useState)(x?.isVerifiedUser??!1),[V,I]=(0,l.useState)(()=>void 0===b?eo():b),[B,F]=(0,l.useState)(ei),[H,K]=(0,l.useState)(()=>!x?.user||!x.user.isAgeVerified),[z,W]=(0,l.useState)(!1),[$,q]=(0,l.useState)(!1),[Z,J]=(0,l.useState)(x?.selfieAttemptsLeft??3),[ee,er]=(0,l.useState)(x?.avSessionExpiresAt??null),[en,ec]=(0,l.useState)(k?{path:k,hard:!1}:null),ed=(0,l.useRef)(en),ef=(0,l.useCallback)((e,t)=>{let r=e?{path:e,hard:t?.hard??!1}:null;ed.current=r,ec(r)},[]),[,eh]=(0,l.useReducer)(e=>e+1,0),[ep,em]=(0,l.useState)(x?.background?.urls),[eg,e_]=(0,l.useState)(x?.background?.isDark??!1),[ey,eC]=(0,l.useState)(!1),ev=(0,l.useCallback)((e=!1)=>{let t=ed.current,r=t?.path||E.get("back_url"),n=!!(t?.path&&t.hard);if(!r&&!e){S.refresh(),eh();return}ef(null),R.remove(Y);let i=r?decodeURIComponent(r):"/";if(/^https?:\/\//i.test(i)){let e=new URL(i);i=`${e.pathname}${e.search}${e.hash}`}if((m===i||m.startsWith(i)||i.startsWith(m))&&(i="/"),n){window.location.href=i;return}i!==j?S.push(i):(S.refresh(),eh())},[S,j,E,m,ef]),eb=(0,l.useCallback)(e=>{e?R.set("verify",e,{secure:!0,sameSite:"None"}):R.remove("verify",{secure:!0,sameSite:"None"}),I(e)},[]),ex=(0,l.useCallback)(()=>{A||q(!0)},[q,A]),ew=(0,l.useMemo)(()=>(e,t="")=>{if("function"!=typeof window.ym)return void console.warn("Yandex Metrika is not loaded");let{reachGoalID:r,eventCategory:n,eventName:s}=D[e],o=U(a)||"null",l=n===D.UserAuth.eventCategory,u={[n]:{[s]:{[t||"null"]:{[o]:{page_url:window.location.href}}}}};r?window.ym?.(i,"reachGoal",r,u):window.ym?.(i,l?"userParams":"params",l?{[n]:t||"null"}:u)},[i,a]),eS=(0,l.useMemo)(()=>T(),[]),ej=(0,l.useMemo)(()=>u.default.create({baseURL:`${t}${r}`,headers:{"Content-Type":"application/json"},withCredentials:!0}),[t,r]),eE=(0,l.useCallback)(async(e,t,r)=>{try{let n={token:r,action:el.UpdateUser,fields:t},i=await ej.post(`/user/${e}`,n);if(!i.data.success)return i.data.errors?.[0]?.[0]||null;{let t=await ej.get(`/user/${e}`);return t.data.success?L(t.data.user):console.error(`ÐаннÑе полÑзоваÑÐµÐ»Ñ Ð½Ðµ Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ñ Ð¿Ð¾ пÑиÑине: ${i.data.errors?.[0]?.[0]}`),!0}}catch(e){if(y(e)&&(e.response?.status===400||e.response?.status===403)){let t=e?.response?.data?.errors?.[0]?.[0];if("string"==typeof t)return t}}return null},[ej]),eR=(0,l.useCallback)(async()=>{let e=await ej.post("/logout");e.data?.success?window.location.href="/":console.error(e.data?.message)},[ej]);(0,l.useEffect)(()=>{let e;if(!O||A?.isAgeVerified||!ee)return;let t=async()=>{try{let e=await ej.post("/logout");e.data?.success||A||R.remove("av_session")}catch(e){console.error("AV session logout failed:",e),A||R.remove("av_session")}},r=()=>{let n=1e3*ee-Date.now();n<=0?t():e=setTimeout(r,Math.min(n,0x80000000-1))};return r(),()=>clearTimeout(e)},[O,ee,ej,A]);let ek=(0,l.useCallback)(()=>null!==ee&&1e3*ee<=Date.now(),[ee]),eA=(0,l.useCallback)(()=>{P(!1),er(null)},[]);return(0,l.useEffect)(()=>{null===V&&I(eo()),(async()=>{let e=G(ej),t=window?.WebApp?.platform,r=window?.WebApp?.initData,n=0;if(!t&&!r){let e=0;for(;!t&&!r&&e<500;)await new Promise(e=>setTimeout(e,100)),e+=100,t=window?.WebApp?.platform,r=window?.WebApp?.initData}let i=E.get("WebAppStartParam"),a="u">typeof window?window.location.hash:"",s=(i?`/sauth/max-auth-fail?WebAppStartParam=${encodeURIComponent(i)}`:"/sauth/max-auth-fail")+a,o=(i?`/users/sign-in?WebAppStartParam=${encodeURIComponent(i)}`:"/users/sign-in")+a,l=()=>window?.WebApp?.ready?.(),u=()=>{if(x?.user?.isAgeVerified){ev(),K(!1),l();return}S.push(s),W(!0),K(!1),l()};if(!r&&t)for(;!r&&n<7e3;)await new Promise(e=>setTimeout(e,500)),n+=500,r=window?.WebApp?.initData;if(r){let t=null;try{let{data:n}=await e.maxAuth(r);t=n??null}catch(e){console.error("MAX auth request failed:",e)}if(t?.success){try{localStorage.setItem(X,String(t.user.id)),localStorage.setItem("is_Max_ok","1")}catch(e){console.error("MAX auth localStorage write failed:",e)}let{user:e}=t;if(!e.isAgeVerified){if(e.ageVerificationStatus===N.AgeVerificationStatuses.Moderation||e.ageVerificationStatus===N.AgeVerificationStatuses.RequiredExternal){S.push(g),W(!0),K(!1),l();return}L(e),es(),F({phone:e.phone||"",regMode:Q.Strict}),S.push(m),W(!0),K(!1),l();return}"/sauth/max-auth-fail"===j?S.push(o):ev(),L(e),K(!1),l();return}u();return}if(t)return u();if(x){let e=x.user;if(e&&!e.isAgeVerified){if(e.ageVerificationStatus===N.AgeVerificationStatuses.Moderation||e.ageVerificationStatus===N.AgeVerificationStatuses.RequiredExternal){S.push(g),W(!0),K(!1);return}F(ea(e.phone||"",Q.Strict)),S.push(m),W(!0),K(!1);return}e&&(k||"/users/sign-in"===j)&&ev(),K(!1);return}try{let{data:t}=await e.checkUser();if(J(t.av.selfie_attempts_left??3),t.auth.value&&t.auth.id){let r=t.auth.id||M(X);if(r){let{data:t}=await e.getUser(r);if(t.success&&t.user?.id){let{user:e}=t;if(!e.isAgeVerified){if(e.ageVerificationStatus===N.AgeVerificationStatuses.Moderation||e.ageVerificationStatus===N.AgeVerificationStatuses.RequiredExternal){S.push(g),W(!0),K(!1);return}L(e),F(ea(e.phone||"",Q.Strict)),S.push(m),W(!0),K(!1);return}ev(),L(e),K(!1);return}}}else if(t.av.authorized){P(!0),er(t.av.expires_at??null),K(!1);return}}catch(e){console.error("Auth request failed:",e)}K(!1)})()},[]),(0,l.useEffect)(()=>{$&&j!==p&&q(!1)},[j]),(0,et.jsx)(eu.Provider,{value:{user:A,setUser:L,isVerifiedUser:O,setIsVerifiedUser:P,regInfo:B,setRegInfo:F,backgroundUrls:ep,isDark:eg,setBackgroun
1dUrls:em,setIsDark:e_,setIsBackgroundLoading:eC,isInitialLoading:ey||H,isNavigatingAway:z,setIsUserDataLoading:K,captchaKey:n,siteType:a,isAgeVerified:V,ymKey:i,client:ej,isDevMode:v,selfieAttemptsLeft:Z,redirectionPath:en,setRedirectionPath:ef,changeUser:eE,setIsAgeVerified:eb,ymTrackEvent:ew,gaTrackEvent:eS,logout:eR,isAvSessionExpired:ek,resetVerifiedSession:eA,isShowAuthModal:$,setIsShowAuthModal:q,showAuthModal:ex,goBackUrl:ev,links:{userAgreementLink:s,personalDataProcessingLink:c,personalDataAgreementLink:d,cookisePoliticsLink:f,tobaccoQualityLink:h},paths:{authorizationPath:p,registrationPath:m,registrationSuccessPath:g,profilePath:_,protectedPaths:C}},children:e})},ed=()=>{let e=(0,l.useContext)(eu);if(!e)throw Error("useMainContext must be used within an MainContextProvider");return e},ef=()=>{let e=(0,l.useContext)(eu);if(!e)throw Error("useMainContext must be used within an MainContextProvider");return{user:e.user,logout:e.logout,changeUser:e.changeUser,isInitialLoading:e.isInitialLoading,isNavigatingAway:e.isNavigatingAway,isVerifiedUser:e.isVerifiedUser,isAgeVerified:e.isAgeVerified,setIsAge
1Verified:e.setIsAgeVerified,showAuthModal:e.showAuthModal,isAvSessionExpired:e.isAvSessionExpired,resetVerifiedSession:e.resetVerifiedSession,setRedirectionPath:e.setRedirectionPath}};e.s(["MainContextProvider",()=>ec,"useMainContext",()=>ed,"useMainContextExport",()=>ef],93933)},53162,e=>{"use strict";let t;var r=e.i(71645);let n="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),i=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));let s=function(e,r,s){if(n&&!r&&!e)return n();var o=e,l=s;let u=(o=o||{}).random??o.rng?.()??function(){if(!t){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");t=crypto.getRandomValues.bind(crypto)}return t(i)}();if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,r){if((l=l||0)<0||l+16>r.length)throw RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let e=0;e<16;++e)r[l+e]=u[e];return r}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(u)},o=(e=!0)=>{let[t,n]=(0,r.useState)({token:"",isActive:e,captchaKey:s()});return(0,r.useMemo)(()=>({...t,resetCaptcha(){n({token:"",isActive:e,captchaKey:s()})},setToken(e){n(t=>({...t,token:e}))},activate(){n(e=>({...e,isActive:!0}))}}),[n,e,t])};e.s(["useSmartCaptcha",()=>o],53162)},79020,5256,42010,56105,56789,56966,e=>{"use strict";var t=e.i(43476);let r=e=>({width:r=24,height:n=24,...i})=>(0,t.jsx)(e,{width:r,height:n,...i}),n=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 53 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,t.jsx)("circle",{cx:"26.958",cy:"26",r:"25.3",stroke:"#939393",strokeWidth:"1.4"}),(0,t.jsx)("path",{d:"M9.41701 17.801L14.358 16.1H15.573V35H14.142V17.666L9.76801 19.043L9.41701 17.801ZM28.2369 25.226C29.2809 25.64 30.0999 26.27 30.6939 27.116C31.3059 27.944 31.6119 28.889 31.6119 29.951C31.6119 31.625 31.0269 32.939 29.8569 33.893C28.7049 34.829 27.2019 35.297 25.3479 35.297C23.4939 35.297 21.9909 34.829 20.8389 33.893C19.6689 32.939 19.0839 31.625 19.0839 29.951C19.0839 28.889 19.3809 27.944 19.9749 27.116C20.5869 26.27 21.4149 25.64 22.4589 25.226C21.5949 24.794 20.9199 24.209 20.4339 23.471C19.9479 22.715 19.7049 21.86 19.7049 20.906C19.7049 19.286 20.2449 18.035 21.3249 17.153C22.4409 16.253 23.7819 15.803 25.3479 15.803C26.9139 15.803 28.2459 16.253 29.3439 17.153C30.4419 18.035 30.9909 19.286 30.9909 20.906C30.9909 21.86 30.7479 22.715 30.2619 23.471C29.7759 24.209 29.1009 24.794 28.2369 25.226ZM21.1359 20.906C21.1359 22.022 21.5229 22.922 22.2969 23.606C23.0889 24.272 24.1059 24.605 25.3479 24.605C26.5899 24.605 27.5979 24.272 28.3719 23.606C29.1639 22.922 29.5599 22.022 29.5599 20.906C29.5599 19.754 29.1729 18.845 28.3989 18.179C27.6249 17.513 26.6079 17.18 25.3479 17.18C24.0879 17.18 23.0709 17.513 22.2969 18.179C21.5229 18.845 21.1359 19.754 21.1359 20.906ZM20.5419 29.951C20.5419 31.193 20.9739 32.165 21.8379 32.867C22.7019 33.569 23.8719 33.92 25.3479 33.92C26.8239 33.92 27.9939 33.569 28.8579 32.867C29.7219 32.165 30.1539 31.193 30.1539 29.951C30.1539 28.709 29.7219 27.746 28.8579 27.062C27.9939 26.36 26.8239 26.009 25.3479 26.009C23.8719 26.009 22.7019 26.36 21.8379 27.062C20.9739 27.746 20.5419 28.709 20.5419 29.951ZM40.6246 24.902H45.4576V26.198H40.6246V31.031H39.3016V26.198H34.4686V24.902H39.3016V20.069H40.6246V24.902Z",fill:"#939393"})]})),i=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 26 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,t.jsx)("path",{d:"M13.1849 18.4688C9.44074 18.4688 6.39453 15.4226 6.39453 11.6785C6.39453 7.93439 9.44074 4.88818 13.1849 4.88818C16.929 4.88818 19.9752 7.93439 19.9752 11.6785C19.9752 15.4226 16.929 18.4688 13.1849 18.4688ZM13.1849 6.24697C10.1894 6.24697 7.75272 8.68369 7.75272 11.6791C7.75272 14.6745 10.1894 17.1112 13.1849 17.1112C16.1803 17.1112 18.617 14.6745 18.617 11.6791C18.617 8.68369 16.1803 6.24697 13.1849 6.24697Z",fill:"white"}),(0,t.jsx)("path",{d:"M22.6908 21.1852H3.67866C2.18125 21.1852 0.962891 19.9668 0.962891 18.4694V6.92635C0.962891 5.42894 2.18125 4.20998 3.67866 4.20998H6.70096L8.23661 1.79536C8.6035 1.19007 9.27034 0.814819 9.97841 0.814819H16.4903C17.2019 0.814819 17.8712 1.19365 18.2369 1.80373L19.6805 4.20998H22.6908C24.1883 4.20998 25.4066 5.42834 25.4066 6.92635V18.4694C25.4066 19.9668 24.1883 21.1852 22.6908 21.1852ZM3.67866 5.56816C2.92996 5.56816 2.32048 6.17764 2.32048 6.92635V18.4694C2.32048 19.2181 2.92996 19.8276 3.67866 19.8276H22.6908C23.4396 19.8276 24.049 19.2181 24.049 18.4694V6.92635C24.049 6.17764 23.4396 5.56816 22.6908 5.56816H19.2957C19.0573 5.56816 18.8362 5.44328 18.7137 5.23833L17.0723 2.50284C16.9504 2.29968 16.7269 2.173 16.4903 2.173H9.97841C9.74119 2.173 9.51831 2.29908 9.39642 2.50284C9.39343 2.50762 9.39044 2.513 9.38686 2.51778L7.64685 5.25327C7.52197 5.44926 7.30626 5.56757 7.07382 5.56757H3.67866V5.56816Z",fill:"white"})]})),a=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 18 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,t.jsx)("g",{id:"icon",clipPath:"url(#clip0_1273_398)",children:(0,t.jsx)("g",{id:"âÂÂÃÂÃ
1ÂÃÂ_1",children:(0,t.jsx)("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M17.2802 11.0804C16.9517 11.0804 16.6301 11.4097 16.6301 11.7401C16.6301 16.0407 13.1578 19.5099 9.04214 19.5099C4.92653 19.5099 1.45325 16.0407 1.45325 11.7401C1.45325 7.76984 4.44308 4.45833 8.31552 4.0496V5.79067C8.31552 6.10714 8.47635 6.27877 8.64298 6.4504C8.798 6.52976 8.88132 6.52976 9.04118 6.52976C9.1245 6.52976 9.28532 6.52976 9.36283 6.4504L13.6461 3.87798C13.8834 3.79861 13.9677 3.54861 13.9677 3.29762C13.9677 3.06052 13.8844 2.73016 13.6461 2.65079L9.3638 0.15873C9.28629 0.0793651 9.12546 0 9.04214 0H8.96561C8.88229 0 8.798 0.0793651 8.64395 0.15873C8.47731 0.250992 8.31649 0.489087 8.31649 0.831349V2.55952C3.6341 2.96825 0 6.93849 0 11.7401C0 16.8581 4.03908 21 9.04118 21C14.0433 21 18 16.8581 18 11.7401C18 11.4107 17.6783 11.0804 17.2792 11.0804H17.2802Z",fill:"white"})})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1273_398",children:(0,t.jsx)("rect",{width:"18",height:"21",fill:"white"})})})]})),s=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,t.jsx)("path",{d:"M1 13L13 1.00001",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M1.00024 1L13.0002 13",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round"})]})),o=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26 51C39.8071 51 51 39.8071 51 26C51 12.1929 39.8071 1 26 1C12.1929 1 1 12.1929 1 26C1 39.8071 12.1929 51 26 51Z",stroke:"currentColor",strokeWidth:"2"}),(0,t.jsx)("path",{d:"M8.9606 36.0042V33.8297C9.03714 33.8881 9.09838 33.9464 9.15962 33.9902C9.60359 34.3843 10.5681 34.574 11.0733 34.574C12.1449 34.574 12.2062 33.7713 12.2062 33.6108C12.2062 33.0562 11.7622 32.8227 11.4407 32.633L10.8896 32.3557C10.8436 32.3265 10.7824 32.2973 10.7365 32.2681C10.0016 31.8595 8.89936 31.2612 8.89936 29.5829C8.86874 28.7072 9.08307 28.0359 9.52704 27.4959C10.0169 26.9268 10.6293 26.6933 11.5938 26.6933C12.6195 26.6933 13.2166 26.9998 13.5534 27.1895V29.2618C13.4156 29.1451 13.2472 29.0283 13.1094 28.9407L13.0482 28.897C12.6961 28.6343 12.2521 28.4757 11.8541 28.4757C11.4254 28.4757 11.257 28.6197 11.1805 28.6926C11.0274 28.8532 10.9355 29.1159 10.9355 29.364C10.9355 29.831 11.5173 30.0937 11.8388 30.225C11.9 30.2542 11.9459 30.2688 11.9765 30.298L12.6195 30.6336C12.8339 30.7358 13.2778 30.9693 13.6759 31.4363C14.0739 31.9033 14.2729 32.5308 14.2729 33.3189C14.2729 33.9027 14.1199 34.5156 13.8596 35.041C13.186 36.2815 11.9765 36.4274 11.1345 36.4274C10.1088 36.4274 9.25147 36.1501 8.9606 36.0042ZM20.0599 26.9122H14.5026V28.751H16.0948L16.1254 36.1793H18.3299V28.7656H20.0599V26.9122ZM23.4279 32.706L22.9534 32.7206L22.938 36.1939H20.8713V26.9122H23.2595C23.382 26.9122 23.4892 26.9122 23.6117 26.9122C24.6527 26.9122 25.6478 26.8976 26.1836 27.423C26.5357 27.7586 26.9032 28.4883 26.9032 29.5391C26.9032 30.0499 26.8266 30.5169 26.6582 30.9401C26.4286 31.553 25.9081 31.8011 25.51 31.9909C25.4335 32.0346 25.3569 32.0638 25.2957 32.1076L25.2345 32.1368L26.9185 36.1939H24.668L23.4279 32.706ZM23.183 31.0277C23.5963 31.0277 23.9332 30.9547 24.2087 30.8379C24.6374 30.6336 24.8517 30.2688 24.8517 29.7726C24.8517 29.0575 24.5149 28.6489 23.9178 28.6489C23.8566 28.6489 23.6576 28.6489 23.4586 28.6489C23.2749 28.6489 23.0758 28.6489 23.0146 28.6489H22.938V31.0131H23.0146C23.0605 31.0277 23.1218 31.0277 23.183 31.0277ZM27.7911 26.9122V36.1939H30.0263V26.9122H27.7911ZM33.4556 36.1939V26.9122H31.3123V36.1939H33.4556ZM35.4611 36.1939H37.8494L35.6907 31.2028L35.7061 31.1736L37.6963 26.9122H35.3846L33.5168 31.2028L33.5934 31.3925C33.6087 31.4363 35.0937 35.1869 35.4611 36.1939ZM43.1923 32.2973V30.5753H40.8347V28.7364H43.4526L43.4373 26.9268H38.6914V36.2085H43.5291V34.3113H40.85V32.3119H43.1923V32.2973ZM11.0733 15.7771V25.0442H15.5742V23.0886H13.3085V15.7771H11.0733ZM27.1787 15.5728C24.8364 15.5728 23.4279 17.4408 23.4279 20.5639C23.4279 21.7168 23.6423 23.3221 24.6833 24.3729C25.311 25.0004 26.1224 25.3069 27.2247 25.3069C27.8983 25.3069 28.8475 24.942 29.0618 24.8545L29.0465 22.7238C28.6944 23.001 28.2657 23.2491 27.6993 23.2491C26.6123 23.2491 26.1071 22.5194 25.8774 21.7897V21.7751C25.8468 21.6876 25.8315 21.6 25.8009 21.4979C25.709 21.0746 25.6784 20.666 25.
16784 20.4471C25.6784 18.3748 26.6735 17.6451 27.5921 17.6451C28.2657 17.6451 28.7862 17.937 29.0618 18.1559V15.996C28.8628 15.8938 27.9901 15.5728 27.1787 15.5728ZM43.223 15.7771H41.0031C40.5285 17.251 40.2376 18.0537 39.9314 18.871L39.8702 19.0461L39.7937 18.871C39.0588 17.1489 38.5536 16.0106 38.4464 15.7771H36.395C36.7012 16.463 38.4617 20.4179 38.7526 21.06V21.0892C38.7526 21.1184 38.7985 23.8621 38.7526 25.0442H40.9419C40.9112 24.008 40.9419 21.1184 40.9419 21.0892V21.06L41.0184 20.8557C41.6002 19.4693 42.4575 17.397 43.223 15.7771ZM37.0074 25.0442L34.5119 20.0531L36.5175 15.7771H34.2057L32.2921 20.2136V15.7625H30.1488V25.0442H32.2921V20.2574L34.6344 25.0442H37.0074ZM22.5247 15.7771H20.4426V22.4902C20.4426 23.0448 19.968 23.5118 19.371 23.5118C18.7892 23.5118 18.2993 23.0594 18.2993 22.4902V15.8063H16.2325V22.4902C16.2325 24.0372 17.641 25.2923 19.3863 25.2923C21.1162 25.2923 22.54 24.0372 22.54 22.4902L22.5247 15.7771Z",fill:"currentColor"})]})),l=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 80 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,t.jsx)("path",{d:"M0 0.0529903C0.653422 0.0529903 1.3245 0.0529903 1.97793 0.0529903C2.29581 0.0529903 2.61369 0.0529903 2.94923 0.0529903C2.94923 3.07286 2.94923 6.07507 2.94923 9.1126C3.03753 9.05962 3.10817 9.0243 3.16115 8.98898C7.4702 6.03975 16.4945 0.0529903 16.4945 0.0529903C16.4945 0.0529903 19.4437 0.0176702 20.9272 0.0529903C16.5475 3.07286 12.1854 6.09273 7.77042 9.13026C12.1501 12.1501 16.4945 15.17 20.8918 18.2075C20.8035 18.2252 20.7506 18.2252 20.6976 18.2252C19.2141 18.2252 17.7484 18.2252 16.2649 18.2252C16.159 18.2252 16.053 18.1899 15.9647 18.1369C11.691 15.1877 7.41722 12.2384 3.16115 9.2892C3.10817 9.25388 3.05519 9.21856 2.96689 9.16558C2.96689 12.1855 2.96689 15.17 2.96689 18.1545C2.93157 18.1899 2.91391 18.1899 2.91391 18.1899C1.94261 18.1899 0.971303 18.1899 0 18.1899C0 15.7704 0 13.351 0 10.9139C0.724062 10.3135 1.46578 9.7307 2.20751 9.13026C1.46578 8.52982 0.741722 7.94703 0 7.34659C0 4.92716 0 2.49008 0 0.0529903Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M80.0002 3.00221C79.9119 3.00221 79.806 3.01987 79.7177 3.01987C77.3866 3.01987 75.0554 3.01987 72.7243 3.01987C72.636 3.01987 72.53 3.01987 72.4241 3.01987C72.4241 8.08831 72.4241 13.1391 72.4241 18.1899C71.4351 18.1899 70.4638 18.1899 69.4572 18.1899C69.4572 13.1391 69.4572 8.08831 69.4572 3.01987C66.9141 3.01987 64.3888 3.01987 61.8457 3.01987C61.8457 2.01325 61.8457 1.00662 61.8457 0C67.9031 0 73.9428 0 80.0002 0C80.0002 1.00662 80.0002 1.99559 80.0002 3.00221Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M45.246 6.37525C45.246 10.3664 45.246 14.2693 45.246 18.2075C44.2571 18.2075 43.3034 18.2075 42.3145 18.2075C42.3145 12.1678 42.3145 6.11035 42.3145 0.0352927C47.065 3.95583 51.7802 7.8587 56.5485 11.7792C56.5485 7.82338 56.5485 3.93816 56.5485 0.0176315C57.5374 0.0176315 58.5264 0.0176315 59.5153 0.0176315C59.5153 6.07503 59.5153 12.1148 59.5153 18.2252C54.7471 14.2693 50.0319 10.3311 45.246 6.37525Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M38.6574 0.0176315C38.6574 1.00659 38.6574 1.99556 38.6574 2.98452C33.377 2.98452 28.1143 2.98452 22.834 2.98452C22.834 1.99556 22.834 1.02425 22.834 0.0176315C28.1143 0.0176315 33.377 0.0176315 38.6574 0.0176315Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M22.834 10.5607C22.834 9.57176 22.834 8.58279 22.834 7.59383C28.1143 7.59383 33.377 7.59383 38.6751 7.59383C38.6751 8.58279 38.6751 9.57176 38.6751 10.5607C33.377 10.5607 28.1143 10.5607 22.834 10.5607Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M22.6055 15.2583C27.9741 15.2583 33.3075 15.2583 38.6585 15.2583C38.6585 16.2472 38.6585 17.2362 38.6585 18.2428C38.5878 18.2428 38.5172 18.2605 38.4465 18.2605C34.6143 18.2605 30.7644 18.2605 26.9322 18.2605C26.8262 18.2605 26.7026 18.2428 26.632 18.1722C25.3428 17.2539 24.0536 16.3179 22.7644 15.3819C22.7114 15.3466 22.6761 15.3113 22.6055 15.2583Z",fill:"currentColor"})]})),u=r(({width:e,height:r,...n})=>(0,t.jsx)("svg",{width:e,height:r,viewBox:"0 0 86 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,t.jsx)("path",{d:"M85.6995 25.3838C80.2001 29.74
166 79.7009 29.8459 76.3017 30.639C75.8025 30.7384 75.3017 30.7384 74.8025 30.7384C73.0027 30.7384 71.1028 30.2433 69.9041 28.8542L69.8039 28.7548H69.9041C72.4033 26.8706 74.0028 24.9864 74.5036 22.9052C74.7039 21.8141 74.3033 20.8223 73.4034 20.3272C73.0027 20.1285 72.6037 20.0292 72.1028 20.0292H71.6036C71.203 20.0292 70.7038 20.1285 70.4033 20.3272C68.1043 21.5177 66.6034 23.7976 66.6034 26.5742C66.6034 28.1604 67.0041 28.8542 67.0041 28.8542C63.1041 31.2334 62.4045 29.5479 62.6049 26.6719C62.7051 25.1851 62.9054 24.094 63.0056 23.4002C63.1057 23.0029 62.9054 22.7065 62.6049 22.7065C61.0055 22.6072 60.6048 23.8969 60.4045 24.7894L60.0038 25.7811C58.3042 30.144 57.5045 31.3344 56.3041 31.2351C56.2039 31.2351 56.2039 31.2351 56.1038 31.2351C54.6045 31.0364 55.4042 24.195 56.1038 22.4101C56.2039 22.2114 56.1038 21.7164 55.7031 21.7164C55.6029 21.7164 55.5028 21.7164 55.4026 21.7164C53.6028 21.7164 51.1036 23.6006 46.504 27.1703C45.8045 27.6653 44.8044 28.6571 43.9046 29.4502C40.6056 27.864 36.3065 25.5825 36.8057 24.3936C38.305 24.2943 40.5054 23.9963 41.8043 23.6999L42.205 23.6006C43.3052 23.2032 44.5039 22.8075 45.3053 21.8157C45.6058 21.4183 45.6534 21.0177 45.7059 20.7246C45.7831 20.2914 45.4695 19.7149 45.0064 19.4348C44.2395 19.0928 43.9062 19.1368 43.407 19.1368C41.9077 19.1368 39.0078 20.2279 39.0078 20.2279C37.5085 20.9216 35.809 21.7147 34.7087 23.1038C34.5084 23.1038 34.4082 23.1038 34.2095 23.1038H33.6102C32.8105 23.1038 31.9106 23.0045 31.0107 22.7065L30.5115 22.6072C30.0123 22.5078 29.5115 22.4085 29.211 22.0127C28.9105 21.4183 28.5114 20.9216 28.0106 20.3272C27.3111 19.6335 26.4112 18.8404 25.4111 18.8404C25.2108 18.8404 25.0105 18.8404 24.8118 18.9397C23.5112 19.5341 24.5113 21.1219 24.5113 21.1219C21.7115 21.42 20.3124 24.493 20.2122 26.2778C20.0119 29.0545 20.8116 30.9387 22.6113 31.8311C24.3109 32.7235 26.1107 32.4255 27.5097 31.4337C29.61 29.8476 30.61 26.9716 30.009 23.9963V23.7976H30.2094C31.7086 24.195 33.1093 24.2927 34.3081 24.392H34.4082V24.4914C34.5084 25.6818 34.1077 27.1686 42.0063 30.8377L42.1064 30.937L42.0063 31.0364C41.3067 31.6308 40.7057 32.3262 40.0062 32.9206C38.4068 34.3081 36.8074 35.7966 35.4066 37.4821L34.8073 38.2752C33.6069 39.8614 32.308 41.6462 32.2078 43.7291C32.2078 44.0271 32.2078 44.2242 32.2078 44.5222C32.4082 45.514 33.308 46.6051 34.2079 47.0008C39.1063 49.0837 44.9062 47.5952 48.6059 45.4146C51.005 43.8284 53.5043 41.7456 53.8048 38.7719C54.0052 36.0946 51.4057 33.1193 45.4054 29.9469C48.1051 27.369 51.1052 25.2861 53.5043 23.6999C53.1036 25.1867 51.8047 32.2268 55.5044 33.0199C56.9035 33.3179 58.8034 33.2186 60.7033 28.3591C60.6032 30.639 62.5031 33.4157 68.1027 29.7466C68.303 30.0446 68.6019 30.4403 69.0025 30.7384L69.303 30.937C70.9025 31.8295 72.4033 32.2268 74.0028 32.2268C78.6023 32.3262 82.2018 29.8476 86 25.3854C85.8982 25.5825 85.7997 25.4831 85.6995 25.3838ZM26.2092 30.341C25.8085 30.639 25.4095 30.8361 25.0088 30.9354H24.7083C24.6081 30.9354 24.508 30.9354 24.4078 30.9354C22.9086 30.4403 22.8084 28.5561 22.7082 27.3657C22.7082 25.3822 23.5079 23.498 25.0072 22.2098L25.1073 22.1105L25.2075 22.2098C26.1074 22.8042 26.9071 23.3009 27.807 23.6966C28.6083 26.0775 28.0089 28.6555 26.2092 30.341ZM50.5042 36.6874C51.1036 37.4804 51.8047 38.5716 51.5042 40.0584C50.8047 42.6364 48.0049 44.0239 45.9046 45.2143L45.7043 45.3136C44.1049 46.1067 42.3051 46.5041 40.3051 46.8005H40.2049H40.1047C39.704 46.8005 39.4052 46.8005 39.0045 46.8005H38.5053C36.9059 46.8005 35.3065 46.5025 34.2063 45.413C33.7071 45.0156 33.5067 44.5206 33.6069 43.9261C33.6069 43.3317 33.8072 42.835 34.0076 42.34L34.1077 42.0419C36.1078 37.9771 39.7073 34.9025 43.2067 31.8295L43.5072 31.6308L43.7075 31.7301C45.9063 33.0183 48.5057 34.4074 50.5042 36.6874ZM69.2012 27.6653V27.4667C68.9007 25.9798 69.4016 24.392 70.5018 22.9052C70.9025 22.4101 71.8023 21.5177 72.5019 21.5177C72.8024 21.5177 73.0011 21.617 73.2014 22.1121C73.3016 22.6072 73.3016 23.0045 72.2014 24.7894C71.5018 25.8805 70.4016 26.7729 69.4016 27.566L69.2012 27.6653ZM19.6096 19.4348C17.0101 22.2114 16.0101 24.2927 15.5109 27.566C15.1102 30.0446 16.0101 32.8212 14.7112 33.9124C14.5108 34.111 14.3105 34.111 14.0116 34.2104H13.7111C12.8112 34.111 11.711 33.5166 10.8111 32.3262C9.11156 30.0462 7.91118 27.9634 6.41194 22.9068C5.2132 19.0374 3.61214 11.7009 3.01277 8.82496C2.31324 5.55326 1.71387 2.97531 1.31319 1.98354C1.11285 1.3875 0.813991 1.09111 0.313148 0.793091C-0.0858845 0.693751 -0.0858845 0.39736 0.212979 0.19868C0.413316 0.0993399 0.813991 0 1.31319 0C1.91256 0 2.61374 0.0993399 3.21311 0.495071C4.21316 1.18882 4.61219 2.37927 5.01286 4.55986C5.7124 8.4276 6.41194 12.5917 7.11312 16.2608C8.01299 21.02
11 9.11321 24.5907 10.1133 27.3657C10.8128 29.4486 12.1133 32.3229 13.2136 32.5216H13.4139C14.1134 32.4223 13.6142 30.7367 13.6142 29.2499C13.7144 25.2844 14.4139 23.0029 15.8146 20.3256C17.6144 16.8552 20.6145 14.5753 22.7132 12.095C25.0121 9.21907 26.1123 7.23715 26.4128 5.45229C26.8135 3.46875 26.6132 1.78323 25.8134 0.791462C25.8134 0.493442 25.8134 0.394103 26.0138 0.394103C26.114 0.394103 26.114 0.394102 26.2141 0.493442C28.3144 1.98028 28.8136 5.05493 28.4145 7.63289C28.0139 9.71577 27.3143 11.6977 24.6147 14.673C22.5095 17.1532 21.5095 17.3519 19.6096 19.4348Z",fill:"currentColor"})})),c=r(({width:e,height:r,...n})=>(0,t.jsx)("svg",{width:e,height:r,viewBox:"0 0 84 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,t.jsx)("path",{d:"M81.79 8.46C81.74 8.46 81.66 8.46 81.56 8.47C79.69 8.55 78.54 9.59 78.43 10.65C78.43 10.65 78.42 10.74 78.42 10.84C78.42 11.73 78.97 12.37 80.04 13.3C80.8 13.96 81.33 14.56 81.33 15.21C81.33 16.47 79.8 16.62 79.53 16.62C77.92 16.62 77.74 15.14 77.74 15.06C77.74 14.89 77.79 14.67 77.79 14.46C77.79 14.33 77.76 14.18 77.41 14.18C77.3 14.18 77.19 14.2 77.1 14.23C76.79 14.33 76.54 14.58 76.4 14.88C76.2 15.3 75.74 16.07 75.06 16.07C74.69 16.07 74.66 15.67 74.66 15.64C74.66 15.58 74.67 15.47 74.73 15.32C74.74 15.29 74.64 15.53 76.59 10.97C76.78 10.51 76.83 10.17 76.83 9.9C76.83 8.56 75.53 8.61 75.47 8.61C73.35 8.61 71.44 11.22 71.31 11.49C71.31 11.46 72.45 8.84 72.45 8.82C72.45 8.79 72.43 8.76 72.39 8.76L70.66 8.74H70.65C70.42 8.74 70.22 8.88 70.13 9.09L69.82 9.83C68.87 12.15 66.02 16.33 64.98 16.33C64.83 16.33 64.5 16.11 64.5 15.7C64.5 15.49 64.58 15.3 64.62 15.22C65.35 13.53 67.37 8.85 67.37 8.82C67.37 8.79 67.34 8.76 67.31 8.76L65.6 8.74H65.59C65.36 8.74 65.16 8.87 65.07 9.09C65.01 9.25 64.62 10.14 64.6 10.14C64.54 10.14 64.8 8.56 62.98 8.56C60.29 8.56 58.74 11.18 58.52 11.55C58.34 11.86 57.79 12.95 57.61 13.23C57.41 13.53 55.79 16.01 54.71 16.01C54.33 16.01 54.35 15.67 54.35 15.64C54.35 15.56 54.36 15.45 54.42 15.3C56.68 10.29 56.51 10.28 56.51 9.92C56.51 9.38 56.24 8.61 55.17 8.61C53.52 8.61 51.83 10.25 51.19 11.08L51.16 11.11C51.16 11.09 51.5 10.49 51.5 9.91C51.5 8.65 50.32 8.62 50.12 8.62C47.91 8.62 46.03 11.37 46.01 11.37C46.01 11.35 47.09 8.79 47.09 8.77C47.09 8.74 46.22 8.74 45.59 8.74C45.34 8.74 44.96 8.69 44.79 9.09L44.5 9.82C44.05 10.88 41.04 16.26 39.55 16.26C39.18 16.26 39.1 15.96 39.09 15.81C39.09 15.8 39.09 15.79 39.09 15.77C39.09 15.07 41.33 11.16 41.33 9.74C41.33 9.3 41.35 8.61 40.28 8.61C37.82 8.61 35.67 11.85 35.65 11.85C35.65 11.81 39.56 2.87 39.56 2.85C39.56 2.84 39.32 2.82 38.49 2.82C37.06 2.82 37.05 3.63 34.46 9.48C34.22 10.02 33.21 11.98 32.84 12.54C32.38 13.23 29.89 16.15 29.05 16.22C29.05 16.22 29.05 16.22 29 16.22C28.58 16.22 28.55 15.83 28.55 15.75C28.55 15.6 28.59 15.43 28.67 15.27C28.67 15.26 31.68 8.31 31.98 7.62C31.99 7.59 31.92 7.59 32.42 7.59C32.71 7.59 33.17 7.59 33.95 7.59H33.97H33.98C34 7.59 34 7.57 34.17 7.16C34.17 7.15 34.18 7.15 34.18 7.14C34.18 7.13 34.13 7.13 33.85 7.13C33.58 7.13 33.09 7.13 32.22 7.13C32.21 7.13 32.2 7.14 32.2 7.14H32.19C32.19 7.07 34.04 2.87 34.04 2.85C34.04 2.84 33.8 2.82 32.98 2.82C32.31 2.82 31.69 3.22 31.43 3.85C29.81 7.62 29.94 7.28 29.94 7.28C29.94 7.33 28.16 11.53 26.1 11.53C26.07 11.49 25.98 10.99 25.92 10.8C25.79 10.44 25.16 8.63 22.89 8.61C20.19 8.61 17.98 11.2 17.98 13.69C18 17.02 21.08 17.04 21.24 17.04C23.03 17.04 24.65 15.9 25.5 14.39C26.03 13.44 26.12 12.04 26.12 12.04C27.74 12 28.42 10.84 28.51 10.69C28.44 10.85 27.82 12.19 26.73 14.72C26.51 15.23 26.52 15.58 26.52 15.66C26.52 17.04 27.97 17.05 28.07 17.05C28.08 17.05 28.09 17.05 28.11 17.05C30.45 17.05 32.83 13.24 32.9 13.24C32.9 13.28 31.29 16.95 31.29 16.95C31.29 16.95 31.82 16.96 33.43 16.96C33.44 16.96 33.44 16.96 33.44 16.96C33.44 16.96 36.39 9.62 39.07 9.62C39.74 9.62 38.98 10.78 37.29 14.72C37.13 15.1 37.07 15.38 37.07 15.64C37.07 16.55 37.81 17.05 38.55 17.05C40.81 17.05 41.9 14.91 42.64 13.83C42.7 13.75 43.11 13.14 43.11 13.14C43.07 13.26 41.43 16.93 41.43 16.95C41.43 16.96 41.48 16.96 41.8 16.96C42.1 16.96 42.63 16.96 43.58 16.96C43.59 16.96 43.59 16.96 43.59 16.96C43.62 16.96 44.74 14.33 44.95 13.85C45.84 11.86 47.71 9.6 49 9.6C49.36 9.6 49.41 9.89 49.41 10.01C49.41 10.09 49.4 10.2 49.34 10.35C49.29 10.49 46.52 16.92 46.52 16.94C46.52 16.95 46.57 16.95 46.88 16.95C47.18 16.95 47.71 16.95 48.66 16.95C48.67 16.95 48.67 16.95 48.67 16.95C48.77 16.95 50.07 13.69 50.59 12.56C51.26 11.11 53 9.62 54.03 9.62C54.45 9.62 54.44 10.01 54.44 10.03C54.44 10.1 54.43 10.21 54.36 10.37C54.35 10.41 54.46 10.14 52.46 14.82C52.27 15.26 52.28 15.59 52.27 15.62C52.27 15.63 52.27 15.64 52.27 15.66C52.27 16.66 53.15 17.05 53.76 17.05C55.89 17.05 57.73 13.82 57.76 13.82C57.76 13.84 57.73 13.92 57.73 14.2C57.73 16.18 59.11 17.06 60.39 17.06C61.93 17.06 62.62 15.43 62.68
115.43C62.76 15.43 62.67 17.06 64.24 17.06C66.14 17.06 67.78 14.08 68.32 13.28C68.29 13.37 66.72 16.94 66.72 16.96C66.72 16.97 68.91 16.97 68.91 16.97H68.92C68.93 16.97 70.36 13.59 70.6 13.05C71.42 11.17 73.22 9.72 74.29 9.66C74.29 9.66 74.3 9.66 74.32 9.66C74.67 9.66 74.7 9.94 74.7 10.06C74.7 10.16 74.69 10.27 74.62 10.41C74.22 11.3 72.91 14.36 72.58 15.11C72.12 16.17 72.83 17.06 74.02 17.06C75.47 17.06 76.5 15.68 76.55 15.68C76.63 15.68 76.88 16.74 78.67 17.03C78.76 17.05 78.89 17.08 79.31 17.08C81.26 17.08 83.06 16.14 83.06 14.3C83.06 13.35 82.37 12.63 81.85 12.12C80.87 11.17 79.97 10.66 79.97 10.03C79.97 9.92 80.09 8.97 81.35 8.97C81.94 8.97 82.69 9.27 82.77 10C82.82 10.44 82.76 10.57 83.01 10.57C83.04 10.57 83.08 10.57 83.13 10.57C83.61 10.53 83.96 10.19 83.96 10.02C84 9.71 83.74 8.48 81.79 8.46ZM20.79 16.36C20.14 16.36 19.93 15.77 19.93 15.06C19.93 13 21.84 9.3 23.27 9.3C23.82 9.3 24.02 9.73 24.02 10.37C24.02 11.53 22.69 16.36 20.79 16.36ZM63.95 11.69C63.86 11.88 63.34 13.16 62.75 14.49C62.16 15.83 61.6 16.51 60.62 16.51C60.31 16.51 59.81 16.38 59.81 15.44C59.81 13.61 61.79 9.15 63.48 9.15C64.82 9.15 64.2 11.17 63.95 11.69ZM25.61 17.56C25.66 17.62 25.67 17.71 25.63 17.77C25.41 18.14 25.12 18.47 24.8 18.74C24.48 19.02 24.12 19.26 23.75 19.46C23 19.87 22.18 20.15 21.31 20.26C20.44 20.37 19.52 20.3 18.64 20C17.76 19.7 16.95 19.14 16.34 18.44C15.73 17.73 15.29 16.91 15.02 16.07C14.75 15.25 14.57 14.44 14.43 13.64C14.29 12.85 14.19 12.06 14.03 11.34C13.95 10.98 13.85 10.64 13.7 10.35C13.62 10.21 13.52 10.08 13.4 9.97C13.28 9.87 13.12 9.78 12.95 9.73C12.95 9.73 12.82 9.7 12.86 9.58C12.89 9.45 13.02 9.45 13.12 9.45H13.27H13.29C16.21 9.45 17.89 7.16 17.89 4.63C17.89 2.26 15.55 0.69 12.24 0.63C4.94 0.66 0.48 6.31 0.48 10.37C0.48 13.75 2.36 16.4 4.76 16.4C6.17 16.4 6.82 15.63 7.48 14.26C7.67 13.83 11.06 5.89 12.29 3C12.56 2.37 13.17 1.97 13.85 1.97H14.96C15 1.97 15.03 2.01 15.01 2.05C14.7 2.76 12.41 7.97 11.55 10.02C10.56 12.38 9.44 17.09 5.28 17.09C2.43 17.09 0 14.26 0 10.5C0 6.14 4.71 0 12.47 0C14.55 0 19.75 0.52 19.75 4.66C19.75 8.65 15.57 9.6 14.05 9.69C14.12 9.73 14.19 9.78 14.26 9.83C14.64 10.14 14.9 10.53 15.11 10.91C15.53 11.69 15.79 12.47 16.03 13.24C16.27 14 16.49 14.75 16.76 15.44C17.02 16.11 17.32 16.74 17.73 17.27C18.13 17.8 18.63 18.24 19.23 18.53C19.83 18.82 20.52 18.96 21.23 18.96C21.94 18.96 22.68 18.84 23.39 18.61C24.1 18.38 24.8 18.05 25.36 17.55L25.37 17.54C25.43 17.48 25.54 17.48 25.61 17.56Z",fill:"currentColor"})})),d=r(({width:e,height:r,...n})=>(0,t.jsx)("svg",{width:e,height:r,viewBox:"0 0 108 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,t.jsx)("path",{d:"M84.2415 22.2572H75.5597V11.7428H77.7721V20.0646H84.2415V22.2572ZM71.8091 11.7428H69.5967V22.2572H71.8091V11.7428ZM57.8385 18.7624H63.7287V22.2572H65.941V11.7428H63.7287V16.5699H57.8385V11.7428H55.6261V22.2572H57.8385V18.7624ZM95.2591 20.0646H88.7897V11.7428H86.5773V22.2572H95.2591V20.0646ZM28.8433 21.5642C29.7865 22.2036 31.0335 22.525 32.5496 22.525C34.0656 22.525 35.3063 22.2003 36.2305 21.5642C37.2022 20.9115 37.696 20.0345 37.696 18.9566V11.7428H35.4836V18.6018C35.4836 19.144 35.2747 19.5323 34.8284 19.8202C34.3283 20.1449 33.5624 20.3056 32.5496 20.3056C31.5367 20.3056 30.7645 20.1416 30.2549 19.8169C29.8023 19.529 29.5902 19.1407 29.5902 18.5984V11.7395H27.3778V18.9532C27.3778 20.0211 27.8684 20.8981 28.8401 21.5609L28.8433 21.5642ZM18.8606 22.2572H12.6508V11.7428H18.5726C20.2533 11.7428 21.6143 12.2316 22.6176 13.1956C23.6304 14.1697 24.1431 15.4853 24.1431 17.1088C24.1431 18.6084 23.5988 19.8771 22.529 20.8747C21.5415 21.7952 20.3071 22.2605 18.8575 22.2605L18.8606 22.2572ZM18.6992 19.9206C19.6044 19.9206 20.3292 19.6562 20.9084 19.1173C21.5066 18.5616 21.7725 17.9423 21.7725 17.1054C21.7725 15.8435 21.3136 15.2543 20.9686 14.9229C20.3862 14.3639 19.5253 14.0794 18.4112 14.0794H14.8632V19.9206H18.6992ZM43.6748 15.579L49.5871 18.6285V22.2572H51.7995V11.7529H49.5871V16.0845L41.4624 11.7395V22.2538H43.6748V15.5757V15.579ZM107.913 0V34H0V0H107.913ZM106.755 1.22516H1.15842V32.7715H106.751V1.22516H106.755Z",fill:"currentColor"})})),f=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 100 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:[(0,t.jsx)("path",{d:"M99.8239 49.8276C99.8239 76.8965 77.5432 98.7931 49.9994 98.7931C22.4555 98.7931 0.174805 76.8965 0.174805 49.8276C0.174805 22.7586 22.4555 0.862061 49.9994 0.862061C77.5432 0.862061 99.8239 22.7586 99.8239 49.8276Z",fill:"none"}),(0,t.jsx)("path",{d:"M49.8465 6.57513C25.5515 6.57513 6.00977 25.9529 6.00977 49.6561C6.00977 73.5323 25.7275 92.7371 49.8465 92.7371C74.1416 92.7371 93.6833 73.3593 93.6833 49.6561C93.6833 25.7799 73.9656 6.57513 49.8465 6.57513Z",fill:"none"}),(0,t.jsx)("path",{d:"M49.9994 0.862061C22.4555 0.862061 0.174805 22.7586 0.174805 49.8276C0.174805 76.8965 22.4555 98.7931 49.9994 98.7931C77.5432 98.7931 99.8239 76.8965 99.8239 49.8276C99.6485 22.7586 77.3678 0.862061 49.9994 0.862061ZM49.8239 92.7586C25.6134 92.7586 6.13972 73.4483 6.13972 49.8276C6.13972 26.2069 25.7888 6.89654 49.8239 6.89654C74.0345 6.89654 93.5081 26.2069 93.5081 49.8276C93.5081 73.4483 74.0345 92.7586 49.8239 92.7586Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M82.7652 21.5515C89.4527 29.1377 93.5004 38.9653 93.5004 49.8274C93.5004 53.2757 93.1485 56.5515 92.2685 59.8274C92.0925 60.3446 90.8606 63.9653 88.7488 63.9653C86.6369 63.9653 85.053 61.7239 84.5251 58.7929C83.9971 55.8619 82.7652 52.586 81.8853 51.3791C80.1254 48.9653 77.4856 47.586 74.6698 47.9308C70.7981 48.4481 67.8063 52.586 68.6862 57.586C69.5662 62.586 73.9658 66.5515 77.8376 65.8619C80.3014 65.517 81.7093 64.3101 82.4132 62.4136C83.6451 64.9998 85.933 66.0343 88.5728 66.0343C89.2767 66.0343 89.9807 65.8619 90.5087 65.517C83.9971 81.3791 68.3342 92.586 49.6796 92.586C38.7684 92.586 28.5611 88.6205 20.9937 82.0688C28.9131 89.9998 40.0003 94.8274 52.1434 94.8274C76.2537 94.8274 95.9643 75.6894 95.9643 51.8963C95.9643 40.1722 90.8606 29.3101 82.7652 21.5515ZM77.6616 63.1032C75.5497 63.2757 73.2619 60.6894 72.5579 57.0688C71.854 53.4481 73.0859 50.3446 75.1978 49.9998C77.8376 49.655 79.5974 52.4136 80.3014 56.0343C81.0053 59.8274 80.3014 62.9308 77.6616 63.1032Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M35.0875 52.9305C36.1402 52.9305 37.1928 52.9305 38.2454 52.9305C39.1226 55.3443 39.6489 57.0684 39.8244 57.5857C42.456 65.5167 45.263 65.8615 47.3682 65.8615C49.4755 65.8615 51.2279 65.3443 54.0349 62.9305C55.9647 64.6546 58.4209 65.8615 61.0524 65.8615C68.5963 65.8615 68.9472 57.0684 67.1928 53.6201C65.6139 50.5167 62.9823 48.6201 60.7016 47.9305C60.7016 47.4133 60.877 46.896 60.877 46.3788C61.7542 36.896 59.6489 24.1374 53.1577 24.1374C46.6665 24.1374 44.3858 34.3098 45.263 43.1029C45.4384 44.827 45.7893 46.896 46.491 49.1374C45.263 49.3098 44.2103 49.4822 43.1577 49.6546C40.5261 42.2408 36.491 30.5167 34.5612 24.9995C34.0349 23.6201 32.9823 23.4477 32.1051 23.965C31.5788 24.3098 30.877 24.827 29.9998 25.3443C25.4384 28.6202 19.1226 36.5512 19.4755 42.2408C19.4755 42.4133 19.4755 42.5857 19.4755 42.7581C19.8244 48.965 24.2103 51.5512 29.4755 52.5857C29.6489 55.3443 30.3507 66.0339 19.2981 63.6202C17.0174 63.1029 15.0875 61.896 13.1577 60.3443C14.0349 62.9305 18.4209 66.2064 22.9823 66.2064C34.5612 66.0339 35.0875 56.2064 35.0875 52.9305ZM53.3332 54.827C53.1577 54.4822 52.9823 54.1374 52.8068 53.7926C52.8
1068 53.6202 52.6314 53.4477 52.6314 53.2753C52.456 52.9305 52.2805 52.4133 52.2805 52.2408C52.2805 52.2408 52.2805 52.0684 52.1051 52.0684C51.7542 51.2064 51.5788 50.6891 51.5788 50.6891C51.5788 50.6891 52.1051 50.5167 52.9823 50.5167C53.8595 50.5167 54.9121 50.3443 56.3156 50.5167C55.9647 53.1029 55.0875 55.6891 54.3858 57.0684C54.0349 56.2064 53.684 55.5167 53.3332 54.827ZM62.8068 53.965C66.6665 58.965 64.2103 62.9305 61.5788 62.9305C61.4033 62.9305 61.0525 62.9305 60.877 62.7581C59.1226 62.4133 57.7191 61.3788 56.3156 59.827C57.8946 57.5857 58.9472 54.6546 59.8244 51.3788C60.877 52.0684 61.9296 52.7581 62.8068 53.965ZM52.9823 27.0684C57.7191 27.0684 57.8946 41.896 56.8419 47.2408C56.1402 47.2408 55.4384 47.2408 54.5612 47.4133C53.3331 47.5857 52.1051 47.7581 50.877 48.1029C48.7718 38.7926 48.5963 27.0684 52.9823 27.0684ZM47.1928 51.7236C47.5437 52.5857 47.8946 53.6201 48.2454 54.4822C49.2981 56.7236 50.5261 58.965 51.9296 60.8615C51.0524 61.7236 50.3507 62.4133 49.6489 62.4133C47.8946 62.4133 47.0174 60.8615 45.263 56.0339C45.263 56.0339 44.7367 54.4822 44.0349 52.2408C45.0875 52.0684 46.1402 51.896 47.1928 51.7236ZM25.4384 43.965C25.0875 42.7581 24.9121 41.5512 25.0875 40.3443C25.4384 37.2408 27.1928 34.1374 28.7717 32.2408C29.8244 30.8615 30.7016 30.1719 30.7016 30.1719C31.2279 31.5512 34.7367 42.4132 37.3682 50.1719C29.6489 50.5167 27.1928 48.7926 25.4384 43.965Z",fill:"currentColor"})]})),h=r(({width:e,height:r,...n})=>(0,t.jsx)("svg",{width:e,height:r,viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,t.jsx)("path",{d:"M9.80418 0.213594C9.86625 0.28113 9.9155 0.361359 9.9491 0.449687C9.9827 0.538015 10 0.632706 10 0.728336C10 0.823967 9.9827 0.918658 9.9491 1.00699C9.9155 1.09531 9.86625 1.17554 9.80418 1.24308L3.8054 7.78641C3.74349 7.85411 3.66993 7.90783 3.58896 7.94448C3.50798 7.98113 3.42117 8 3.3335 8C3.24583 8 3.15901 7.98113 3.07804 7.94448C2.99706 7.90783 2.92351 7.85411 2.86159 7.78641L0.195469 4.87826C0.0703122 4.74174 0 4.55658 0 4.36352C0 4.17045 0.0703122 3.98529 0.195469 3.84878C0.320626 3.71226 0.490375 3.63556 0.667373 3.63556C0.844371 3.63556 1.01412 3.71226 1.13928 3.84878L3.3335 6.24363L8.86037 0.213594C8.92229 0.145888 8.99584 0.0921704 9.07682 0.0555184C9.1578 0.0188664 9.24461 0 9.33228 0C9.41995 0 9.50676 0.0188664 9.58774 0.0555184C9.66871 0.0921704 9.74227 0.145888 9.80418 0.213594Z",fill:"#2E70C6"})})),p=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",...n,children:[(0,t.jsx)("path",{d:"M8.49927 16V0.999998",stroke:"#25272C",strokeWidth:"1.2",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M0.999756 8.5H15.9998",stroke:"#25272C",strokeWidth:"1.2",strokeLinecap:"round"})]})),m=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",...n,children:[(0,t.jsx)("path",{d:"M1 21L21 1.00002",stroke:"black",strokeWidth:"2",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M1.00024 1L21.0002 21",stroke:"black",strokeWidth:"2",strokeLinecap:"round"})]})),g=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,viewBox:"0 0 20 20",fill:"none",...n,children:[(0,t.jsx)("path",{d:"M10 1.5C11.1162 1.5 12.2215 1.71986 13.2528 2.14702C14.2841 2.57419 15.2211 3.20029 16.0104 3.98959C16.7997 4.77889 17.4258 5.71592 17.853 6.74719C18.2801 7.77846 18.5 8.88377 18.5 10C18.5 11.1162 18.2801 12.2215 17.853 13.2528C17.4258 14.2841 16.7997 15.2211 16.0104 16.0104C15.2211 16.7997 14.2841 17.4258 13.2528 17.853C12.2215 18.2801 11.1162 18.5 10 18.5C8.88376 18.5 7.77846 18.2801 6.74719 17.853C5.71592 17.4258 4.77889 16.7997 3.98959 16.0104C3.20029 15.2211 2.57419 14.2841 2.14702 13.2528C1.71986 12.2215 1.5 11.1162 1.5 10C1.5 8.88376 1.71986 7.77845 2.14703 6.74719C2.57419 5.71592 3.2003 4.77889 3.9896 3.98959C4.77889 3.20029 5.71593 2.57419 6.7472 2.14702C7.77846 1.71986 8.88377 1.5 10 1.5L10 1.5Z",strokeWidth:"3",stroke:"rgba(255, 255, 255, 0.5)"}),(0,t.jsx)("path",{d:"M10.0957 1.50054C11.9667 1.5216 13.7785 2.15944 15.25 3.31516C16.7216 4.47087 17.7707 6.07986 18.2346 7.89258C18.6985 9.70529 18.5513 11.6204 17.8159 13.341C17.0804 15.0615 15.7978 16.4913
114.1669 17.4086",stroke:"#FFFFFF",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})),_=r(({width:e,height:r,...n})=>(0,t.jsxs)("svg",{width:e,height:r,fill:"#000000",viewBox:"0 0 24 24",...n,children:[(0,t.jsx)("path",{d:"M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10s10-4.5,10-10S17.5,2,12,2z M16.9,8.1l-1.7,8.2c-0.1,0.6-0.5,0.7-0.9,0.4l-2.6-2\r c-0.6,0.6-1.2,1.1-1.3,1.3c-0.2,0.1-0.3,0.3-0.5,0.3c-0.3,0-0.3-0.2-0.4-0.4l-0.9-3L5.9,12c-0.6-0.2-0.6-0.6,0.1-0.9l10.2-3.9\r C16.6,7.1,17.1,7.3,16.9,8.1z M14.5,9l-5.7,3.6l0.9,3l0.2-2l4.9-4.4C15.1,8.9,14.9,8.9,14.5,9z"}),(0,t.jsx)("rect",{width:"24",height:"24",fill:"none"})]}));e.s(["Check",()=>h,"Cross",()=>m,"DisclaimerAge",()=>n,"Loader",()=>g,"LogoDunhill",()=>d,"LogoKent",()=>l,"LogoLucky",()=>o,"LogoRothmans",()=>c,"LogoVogue",()=>u,"LogoYava",()=>f,"Photo",()=>i,"Plus",()=>p,"Retry",()=>a,"Telegram",()=>_,"Сross",()=>s],26e3);let y={...e.i(26e3)};e.s(["Icons",()=>y],79020);let C=({else:e=null,then:t=null,elseIf:r=null,children:n=null,value:i})=>i&&n?n:Array.isArray(i)?i[0]?t:i[1]?r:e:i?t:e;e.s(["Condition",()=>C],5256);var v=e.i(7670),b={typography:"styles-module__typography___8BiKW",heading_L:"styles-module__heading_L___Gbcdl",heading_M:"styles-module__heading_M___NIwvz",text_L:"styles-module__text_L___KYg5D",text_M:"styles-module__text_M___QwP1A",text_S:"styles-module__text_S___fOKml"};function x({children:e,as:r="p",variant:n="text_M",className:i}){return(0,t.jsx)(r,{className:(0,v.default)(b.typography,b[n],i),children:e})}e.s(["Typography",()=>x],42010);let w=(0,e.i(71645).forwardRef)(({children:e,className:r,style:n},i)=>(0,t.jsx)("div",{ref:i,className:(0,v.default)("styles-module__card___b1xxy",r),style:n,children:e}));e.s(["Card",()=>w],56105);var S=e.i(22016);let j=({className:e})=>(0,t.jsx)("span",{className:(0,v.default)("styles-module__preloader___fRZH6",e),children:(0,t.jsx)(y.Loader,{className:"styles-module__preloader__icon___Xle09",width:16,height:16})});e.s(["Preloader",()=>j],56789);var E={button:"styles-module__button___fkLCY",filled:"styles-module__filled___xYgj2",outlined:"styles-module__outlined___Kb4zN",underline:"styles-module__underline___kvVvw",small:"styles-module__small___9PogK",medium:"styles-module__medium___OwtfL",underline_accent:"styles-module__underline_accent___-3bEI",withIcon:"styles-module__withIcon___mclSw",large:"styles-module__large___Y9JBP",loading:"styles-module__loading___G8SZv"};function R({children:e,customize:r="filled",size:n="large",loading:i=!1,icon:a,className:s,nextHref:o,...l}){let u=(0,v.default)(E.button,E[r],n&&E[n],a&&E.withIcon,i&&E.loading,s);return l.href?(0,t.jsx)("a",{className:u,...l,children:e}):o?(0,t.jsx)(S.default,{className:u,...l,href:o,children:e}):(0,t.jsx)("button",{className:u,onClick:l.onClick,...l,children:(0,t.jsx)(C,{value:i,then:(0,t.jsx)(j,{}),else:a||e})})}e.s(["Button",()=>R],56966)},75608,88709,40109,52536,37453,16880,21832,37722,61850,10037,35906,28078,e=>{"use strict";var t,r,n,i,a,s=e.i(71645),o=e.i(14056);e.i(18566),e.i(99011),e.i(90841),e.i(18737);var l=e.i(7670),u=e.i(43476);e.i(22016);var c=e.i(84490),d=e.i(53162);let f=(e,t,r,n,i)=>{let[a,o]=(0,s.useState)(null),[l,u]=(0,s.useState)(!1),[f,h]=(0,s.useState)(0),[p,m]=(0,s.useState)(!(e>0));(0,s.useEffect)(()=>{e<=0&&m(!0)},[e]);let[g,_]=(0,s.useState)(!1),[y,C]=(0,s.useState)(!1),v=f>=e,b=(0,d.useSmartCaptcha)(!1),x=(0,s.useCallback)(()=>{_(e=>!e)},[]),w=(0,s.useCallback)(()=>{b.activate()},[b]),S=(0,s.useCallback)(async e=>{if(a){C(!0),h(e=>e+1);try{let s=await t.verifyUserAgeBySelfie({document_file:a,token:e,action:c.CaptchaActions.AgeVerificationBySelfie,url:window.location.href});if(s.data.success)n?.(),r();else if(!g){let e=s.data;e.errors&&i?.(e.errors.document_file.join(", ")),m(429===e.status),x()}}catch(e){if(!g){let t=e?.response?.data?.errors;t?i?.(Object.values(t).join(", ")):i?.(e?.message??"unknown"),x()}}finally{C(!1),b.resetCaptcha()}}},[a,r,g,b,t,i,n,x]);return{photo:a,setPhoto:o,canRetry:l,setCanRetry:u,selfieAttempts:f,isSelfieServerLimitReached:p,selfieVerificationError:g,changeSelfieErrorStatus:x,sendPhotoIsLoading:y,isSelfieAttemptsLimitReached:v,sendPhoto:w,captchaForSendPhoto:b,onCaptchaForSendPhoto:S}};e.s(["useSelfieVerefication",()=>f],75608);let h=e=>({fileToBase64:e=>new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.addEventListener("load",()=>t(n.result?.toString()||"")),n.addEventListener("error",e=>r(e))}),verifyUserAgeBySelfie:(t,r)=>e.post("/verification/selfie",t,{...r,headers:{...r?.headers,"Content-Type":"multipart/form-data"}})});e.s(["verificationApiConstructor",()=>h],88709);let p=e=>{let t={};for(let r in e)t[r]={error:null,isShowError:!1};return t};
1function m(e){let[t,r]=(0,s.useState)((e=>{let t={};for(let r in e)t[r]=e[r].initialValue;return t})(e)),[n,i]=(0,s.useState)(p(e)),a=(0,s.useCallback)((n,a)=>{let s;s="object"==typeof a&&"target"in a?"checkbox"===a.target.type?a.target.checked:a.target.value:a;let o=t;if(r(e=>(o=e,{...e,[n]:s})),e[n].validator){let t=e[n].validator(s,o);i(e=>({...e,[n]:{error:t,isShowError:e[n].isShowError}}))}},[]),o=(0,s.useCallback)((e,t)=>{r(r=>({...r,[e]:t}))},[]),l=(0,s.useCallback)((e,t,r=!0)=>{i(n=>({...n,[e]:{error:t,isShowError:r}}))},[]),u=(0,s.useCallback)(()=>{i(p(e))},[]);return{values:t,errors:n,controller:e=>({input:{name:e,value:t[e],onChange:t=>a(e,t),onBlur:()=>i(t=>({...t,[e]:{error:t[e].error,isShowError:!0}}))},error:n[e]?.error||null,isShowError:n[e]?.isShowError||!1}),setValue:o,setValues:r,setError:l,setErrors:i,resetErrors:u}}e.s(["useForm",()=>m],40109);let g=/^(([^\s"(),.:;<>@[\\\]]+(\.[^\s"(),.:;<>@[\\\]]+)*)|(".+"))@((\[(?:\d{1,3}\.){3}\d{1,3}])|(([\dA-Za-z-]+\.)+[A-Za-z]{2,}))$/,_=e=>{let t=e.replace(/\D/g,"");return 11===t.length&&t.startsWith("7")?null:"ÐекоÑÑекÑнÑй ÑелеÑон"},y=e=>e?null:"ÐбÑзаÑелÑное поле Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ",C=e=>e.trim().length<2?"ÐбÑзаÑелÑное поле Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ":null,v=e=>{if(!e||!e.trim())return"ÐбÑзаÑелÑное поле Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ";let t=new Date(e),r=new Date,n=r.getFullYear()-t.getFullYear(),i=r.getMonth()-t.getMonth();return(i<0||0===i&&r.getDate()<t.getDate())&&n--,n>=18?null:"Ð¡Ð°Ð¹Ñ Ð¿ÑедназнаÑен Ð´Ð»Ñ Ð»Ð¸Ñ ÑÑаÑÑе 18 леÑ"},b=e=>e&&e.trim()?g.test(e)?null:"ÐекоÑÑекÑÐ½Ð°Ñ Ð¿Ð¾ÑÑа":"ÐбÑзаÑелÑное поле Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ";e.s(["validateBirthday",()=>v,"validateEmail",()=>b,"validateName",()=>C,"validatePhone",()=>_,"validateRequired",()=>y],52536);var x=e.i(77753);let w={[x.CashbackQRList.KentBlue]:"Kent_WoF",[x.CashbackQRList.KentSilver]:"Kent_WoF",[x.CashbackQRList.KentWhite]:"Kent_WoF",[x.CashbackQRList.KentSwitch]:"Kent_WoF",[x.CashbackQRList.KentCrystalBlue]:"Kent_WoF",[x.CashbackQRList.KentCrystal]:"Kent_WoF",[x.CashbackQRList.KentNanoSilver]:"Kent_WoF",[x.CashbackQRList.KentNanoWhite]:"Kent_WoF",[x.CashbackQRList.KentNanoMix]:"Kent_WoF",[x.CashbackQRList.KentCrystalMix]:"Kent_WoF",[x.CashbackQRList.KentCrystalMixRuby]:"Kent_WoF",[x.CashbackQRList.KentCrystalMixPlus]:"Kent_WoF",[x.CashbackQRList.KentDesktop]:"Kent_WoF",[x.CashbackQRList.KentTest]:"Kent_WoF"},S=e=>e&&window.location.search.includes("zadaniya")?w[e]??"":"";e.s(["getCashbackPromoName",()=>S],37453);var j=x,E=e.i(5256),R=e.i(42010),k=e.i(79020);let A=({className:e,children:t})=>(0,u.jsxs)("div",{className:(0,l.default)("styles-module__message___vH8Cb",e),children:[(0,u.jsx)("span",{className:"styles-module__message__icon___RW28G",children:(0,u.jsx)(k.Icons.Check,{width:16,height:16})}),(0,u.jsx)(R.Typography,{className:"styles-module__message__text___LFUvS",variant:"text_L",children:t})]});e.s(["SuccessMessage",()=>A],16880);let T=({type:e,className:t})=>(0,u.jsxs)(A,{className:(0,l.default)("styles-module__confirmedMessage___xDVZm",t),children:["СпаÑибо,"," ",e===x.ContactTypes.Phone?"Ð½Ð¾Ð¼ÐµÑ ÑÑпеÑно подÑвеÑжден":"поÑÑа ÑÑпеÑно подÑвеÑждена"]});var L=e.i(74080),N=e.i(56105),M={wrapper:"styles-module__wrapper___nb7BH",inner:"styles-module__inner___nvw7Q",header:"styles-module__header___eD-n6",header__title:"styles-module__header__title___aIrLy",header__closeButton:"styles-module__header__closeButton___vJjfo"};let O=({children:e,onClose:t,className:r,title:n,style:i})=>{let a=(0,s.useRef)(null),o=(0,s.useCallback)(()=>{t?.()},[t]),c=(0,s.useCallback)(e=>{"Escape"===e.key&&(o(),e.stopPropagation())},[o]);return(0,s.useEffect)(()=>{let e=a.current;if(!e)return;let t=t=>{t.target===e&&(t.stopPropagation(),o())};return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},[o]),(0,s.useEffect)(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),(0,L.createPortal)((0,u.jsx)("div",{className:M.wrapper,ref:a,children:(0,u.jsx)(N.Card,{className:(0,l.default)(M.inner,r),style:i,children:(0,u.jsxs)("div",{className:M.content,children:[(0,u.jsxs)("div",{className:M.header,children:[(0,u.jsx)(R.Typography,{className:M.header__title,as:"h2",variant:"heading_M",children:n}),(0,u.jsx)("button",{className:M.header__closeButton,onClick:o,children:(0,u.jsx)(k.Icons.Cross,{})})]}),e]})})}),document.getElementById("auth-modal-root"))};var P=x;let V={[x.ContactTypes.Email]:{title:"Ðе пÑиÑ
Ð¾Ð´Ð¸Ñ Ð¿Ð¸ÑÑмо\n Ñ кодом?",checklist:["пиÑÑмо не попало в Ñпам или в нежелаÑелÑнÑе пиÑÑма;","поÑÑа введена коÑÑекÑно."],note:"Ðногда пиÑÑмо пÑиÑ
Ð¾Ð´Ð¸Ñ Ð½ÐµÂ ÑÑазÑ, попÑобÑйÑе полÑÑиÑÑ ÐºÐ¾Ð´ еÑе Ñаз."},[x.ContactTypes.Phone]:{title:"Ðе пÑиÑ
Ð¾Ð´Ð¸Ñ ÐºÐ¾Ð´?",checklist:["ÑелеÑон вклÑÑен Ð¸Â Ð¸Ð¼ÐµÐµÑ Ð´Ð¾ÑÑÑп к инÑеÑнеÑÑ;","введен пÑавилÑнÑй Ð½Ð¾Ð¼ÐµÑ ÑелеÑона."]}},I=({type:e=P.ContactTypes.Phone,height:t="auto",onClose:r})=>{let{title:n,checklist:i,note:a}=V[e];return(0,u.jsx)(O,{title:n,style:{height:t},onClose:r,children:(0,u.jsxs)(R.Typography,{className:"styles-module__content___UVvsH",as:"div",variant:"text_L",children:[(0,u.jsx)("p",{children:"УбедиÑÑ, ÑÑо:"}),(0,u.jsx)("ul",{className:"styles-module__list___nf2UW",children:i.map(e=>(0,u.jsx)("li",{children:e},e))}),a&&(0,u.jsx)("p",{children:a})]})})};var B=e.i(17860),U=e.i(93933);let F=e=>{let{captchaKey:t}=(0,U.useMainContext)();if("invisible"!==e.mode)return(0,u.jsx)("div",{className:"styles-module__container___i5weP",children:(0,u.jsx)(o.SmartCaptcha,{...e,sitekey:t})});{let{isActive:r=!1,...n}=e;return(0,u.jsx)(o.InvisibleSmartCaptcha,{visible:r,...n,sitekey:t,hideShield:!0})}};e.s(["SmartCaptcha",()=>F],21832);var D=x,H=e.i(56966);let K=({className:e,defaultValue:t,readOnly:r=!1,controller:n,onChange:i,onComplete:a})=>
1{let[o,c]=(0,s.useState)(t||""),d=[(0,s.useRef)(null),(0,s.useRef)(null),(0,s.useRef)(null),(0,s.useRef)(null)],f=(0,s.useRef)(null),h=(0,s.useRef)(null),{isShowError:p,error:m}=n||{},g=(e,t)=>{if(e){let t=e.clipboardData.getData("text");4===t.length&&(c(t),i?.(t),d.forEach((e,r)=>{e.current&&(e.current.value=t.charAt(r))}))}t&&4===t.length&&(c(t),i?.(t),d.forEach((e,r)=>{e.current&&(e.current.value=t.charAt(r))}),d[t.length-1].current&&d[t.length-1].current?.focus())},_=e=>{e.currentTarget.value=e.currentTarget.value.replace("-",""),e.currentTarget.value.length>1&&(e.currentTarget.value=e.currentTarget.value.slice(0,1))};return(0,s.useEffect)(()=>{d[0].current?.focus()},[]),(0,s.useEffect)(()=>{c(t||"")},[t]),(0,s.useEffect)(()=>{4===o.length&&a?.(o)},[o]),(0,s.useEffect)(()=>("OTPCredential"in window&&(async()=>{try{h.current=new AbortController;let e=await navigator.credentials.get({otp:{transport:["sms"]},signal:h.current.signal});e?.code&&f.current&&g(null,e.code)}catch(e){console.error("Web OTP не поддеÑживаеÑÑÑ Ð¸Ð»Ð¸ оÑменен:",e)}})(),()=>{h.current?.abort()}),[]),(0,u.jsxs)("div",{className:(0,l.default)("styles-module__wrapper___mwXDS",p&&m&&"styles-module__wrapper_withError___NEx6K",e),children:[(0,u.jsxs)("div",{className:"styles-module__inputList___6PISy",children:[(0,u.jsx)("input",{ref:f,type:"text",inputMode:"numeric",pattern:"[0-9]",autoComplete:"one-time-code",maxLength:4,className:"visually-hidden",name:"code",onChange:e=>g(null,e.target.value),onInput:e=>g(null,e.currentTarget.value)}),d.map((e,t)=>(0,u.jsx)("input",{ref:e,className:"styles-module__input___knKg1",type:"number",maxLength:1,readOnly:r,onPaste:g,onChange:e=>{let r,n,a,s;return n=(r=e.target).previousElementSibling,a=r.nextElementSibling,void((s=o.split(""))[t]=r.value,c(s.join("")),i?.(s.join("")),""===r.value?t>0?n?.focus():r?.focus():a?.focus())},onKeyDown:e=>((e,t)=>{let r=e.target,n=r.previousElementSibling,a=r.nextElementSibling;switch(e.code){case"Backspace":case"Delete":if(""===r.value){e.preventDefault();let r=o.slice(0,t)+o.slice(t+1);c(r),i?.(r),n.focus()}break;case"ArrowLeft":e.preventDefault(),n?.focus();break;case"ArrowRight":e.preventDefault(),a?.focus()}})(e,t),onFocus:e=>{r||e.target.select()},onInput:_},t))]}),p&&m&&(0,u.jsx)("span",{className:"styles-module__error___tR3DE",children:m})]})};var z=e.i(56789),W="styles-module__timer___txOir",$="styles-module__resendCode__button___Q3mZh";let q=({type:e=D.ContactTypes.Phone,isRegMode:t=!1,emailOrPhone:r,fieldCode:n,mainHeading:i,isLoading:a,canChangeEmailOrPhone:o,codeCaptcha:c,resendCaptcha:d,controller:f,cardHeight:h,onBack:p,onResend:m,onChange:g,onCodeComplete:_})=>{let[y,C]=(0,s.useState)(0),[v,b]=(0,s.useState)(!1),x=(0,s.useRef)(void 0),w=()=>{clearInterval(x.current),C(60),x.current=setInterval(()=>{C(e=>e>0?e-1:(clearInterval(x.current),x.current=void 0,0))},1e3)};(0,s.useEffect)(()=>(w(),()=>clearInterval(x.current)),[]);let S=e===D.ContactTypes.Phone,j=e=>{let t=Math.floor(e/60);return`${String(t).padStart(2,"0")}:${String(e-60*t).padStart(2,"0")}`};return(0,u.jsxs)("div",{className:(0,l.default)("styles-module__wrapper___3cFcE",o&&"styles-module__wrapper_withChangeButton___HTugq"),children:[(0,u.jsxs)(R.Typography,{className:"styles-module__title___8kccq",variant:i?"heading_M":"text_L",children:["ÐÑ Ð¾ÑпÑавили код на",(0,u.jsx)("br",{}),r," ",S&&"в ТелегÑам или СÐС"]}),o&&p&&(0,u.jsxs)(H.Button,{className:"styles-module__changeEmailOrPhone___baS0t",type:"button",customize:"underline",size:"medium",onClick:p,children:["ÐзмениÑÑ ",S?"номеÑ":"поÑÑÑ"]}),(0,u.jsx)(K,{readOnly:a,controller:f(n),onComplete:_,onChange:g}),(0,u.jsxs)("div",{className:"styles-module__resendCode___x83VP",children:[S&&!t&&(0,u.jsx)(E.Condition,{value:y,then:(0,u.jsxs)(R.Typography,{className:W,children:["ÐолÑÑиÑÑ ÐºÐ¾Ð´ в ТелегÑам повÑоÑно ÑеÑез ",j(y)]}),else:(0,u.jsx)(H.Button,{className:$,type:"button",customize:"underline",size:"small",onClick:()=>{w(),m(B.CodeSourceReqTypes.TG)},children:"ÐÑÑлаÑÑ ÐºÐ¾Ð´ повÑоÑно в ТелегÑам"})}),(0,u.jsx)(E.Condition,{value:y,then:(0,u.jsxs)(R.Typography,{className:W,children:["ÐолÑÑиÑÑ ÐºÐ¾Ð´ повÑоÑно ÑеÑез ",j(y)]}),else:(0,u.jsxs)(H.Button,{className:$,type:"button",customize:"underline",size:"small",onClick:()=>{w(),m(B.CodeSourceReqTypes.SMS)},children:["ÐÑÑлаÑÑ ÐºÐ¾Ð´ повÑоÑно",S&&!t&&" ÑеÑез СÐС"]})}),(0,u.jsxs)(H.Button,{className:$,type:"button",customize:"underline",size:"small",onClick:()=>b(!v),children:["Ðе пÑиÑ
Ð¾Ð´Ð¸Ñ ",S?"код":"пиÑÑмо","?"]}),(0,u.jsx)(F,{mode:"invisible",...c},c.captchaKey),d&&(0,u.jsx)(F,{mode:"invisible",...d},d.captchaKey)]}),a&&(0,u.jsx)("div",{className:"styles-module__preloader___fyEcA",children:(0,u.jsx)(z.Preloader,{})}),v&&(0,u.jsx)(I,{type:e,height:h,onClose:()=>b(!v)})]})},Z=({children:e,confirmed:t=!1,canChangeEmailOrPhone:r=!0,step:n="email-
1or-phone",type:i=j.ContactTypes.Phone,formClassName:a,onChangeStep:o,...c})=>{let[d,f]=(0,s.useState)(n||"email-or-phone"),h="code"===d;return(0,s.useEffect)(()=>(f(n),()=>f("email-or-phone")),[n]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:(0,l.default)(a,h&&"visually-hidden"),children:e}),(0,u.jsx)(E.Condition,{value:[t,h],then:(0,u.jsx)(T,{type:i}),elseIf:(0,u.jsx)(q,{type:i,canChangeEmailOrPhone:r,onBack:()=>{f("email-or-phone"),o?.("email-or-phone")},...c})})]})};e.s(["CodeForm",()=>Z],37722);let Q=(0,s.forwardRef)(({className:e,children:t,isAuthForm:r=!1,isChecked:n=!1,controller:i,...a},s)=>{let{input:o,isShowError:c,error:d}=i||{};return(0,u.jsxs)("label",{className:(0,l.default)("styles-module__wrapper___ZWp8s",c&&d&&"styles-module__withError___KwLsR",!r&&n&&"styles-module__isChecked___BHlRu",e),children:[(0,u.jsx)("input",{ref:s,type:"checkbox",className:(0,l.default)("visually-hidden","styles-module__input___dmsdb"),checked:n||o?.value,onChange:o?.onChange,...o,...a}),(0,u.jsx)("span",{className:"styles-module__mark___ZIUiI",children:(0,u.jsx)(k.Icons.Check,{className:"styles-module__markIcon___o0HYx"})}),(0,u.jsx)(R.Typography,{className:"styles-module__text___DqukQ",children:t}),r&&c&&d&&(0,u.jsx)(R.Typography,{as:"span",variant:"text_S",className:"styles-module__errorMessage___I-Bxt",children:d})]})}),G=({className:e,isAuthForm:t=!1,isSuccessForm:r=!1,verificationMethod:n,controller:i})=>{let{links:a}=(0,U.useMainContext)(),s=i("consumerAgreement"),o=i("politicsAgreement");return(0,u.jsxs)("div",{className:(0,l.default)("styles-module__politics___i2HVA",e),children:[!t&&(0,u.jsx)(Q,{controller:s,isChecked:s.input.value&&r&&n!==x.VerificationTypes.Selfie,children:"Я ÑвлÑÑÑÑ Ð¿Ð¾ÑÑебиÑелем ÑабаÑной пÑодÑкÑии"}),(0,u.jsxs)(Q,{isAuthForm:t,isChecked:o.input.value&&r&&n!==x.VerificationTypes.Selfie,controller:o,children:["Я ÑоглаÑен на обÑабоÑÐºÑ Ð¼Ð¾Ð¸Ñ
пеÑÑоналÑнÑÑ
даннÑÑ
в ÑооÑвеÑÑÑвии Ñ ",(0,u.jsx)(H.Button,{customize:"underline_accent",href:a.userAgreementLink,target:"_blank",children:"ÐолÑзоваÑелÑÑким ÑоглаÑением"}),","," ",(0,u.jsx)(H.Button,{customize:"underline_accent",href:a.personalDataAgreementLink,target:"_blank",children:"СоглаÑием на обÑабоÑÐºÑ Ð¿ÐµÑÑоналÑнÑÑ
даннÑÑ
"})," ","и ",(0,u.jsx)(H.Button,{customize:"underline_accent",href:a.personalDataProcessingLink,target:"_blank",children:"ÐолиÑикой в оÑноÑении обÑабоÑки пеÑÑоналÑнÑÑ
даннÑÑ
"}),", полноÑÑÑÑ Ð¸Â Ð±ÐµÐ·Ð¾Ð³Ð¾Ð²Ð¾ÑоÑно пÑинимаÑ иÑ
.",(0,u.jsx)("br",{}),"Я Ñакже ÑоглаÑаÑÑÑ Ð½Ð°Â Ð¾Ð±ÑабоÑÐºÑ Ð¼Ð¾Ð¸Ñ
пеÑÑоналÑнÑÑ
даннÑÑ
Ð´Ð»Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð¼Ð¾ÐµÐ³Ð¾ возÑаÑÑа"]})]})};function J(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Y(){}function X(e){return!!(e||"").match(/\d/)}function ee(e){return null==e}function et(e){var t=(0,s.useRef)(e);return t.current=e,(0,s.useRef)(function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return t.current.apply(t,e)}).current}function er(e,t){return Array(t+1).join(e)}function en(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}e.s(["PoliticsAgreement",()=>G],61850),(t=a||(a={})).event="event",t.props="prop";var ei=(r=function(e,t){for(var r=0,n=0,i=e.length,a=t.length;e[r]===t[r]&&r<i;)r++;for(;e[i-1-n]===t[a-1-n]&&a-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:a-n}}},i=void 0,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return n&&e.length===n.length&&e.every(function(e,t){return e===n[t]})?i:(n=e,i=r.apply(void 0,e))}),ea=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function es(e){return Math.max(e.selectionStart,e.selectionEnd)}function eo(e,t){return(void 0===e&&(e=" "),"string"==typeof e)?e:e[t]||" "}function el(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return t[n]===r[i]}function eu(e,t,r,n){var i=e.length;if(t=Math.min(Math.max(t,0),i),"left"===n){for(;t>=0&&!r[t];)t--;-1===t&&(t=r.indexOf(!0))}else{for(;t<=i&&!r[t];)t++;t>i&&(t=r.lastIndexOf(!0))}return -1===t&&(t=i),t}function ec(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(X(e[r])||X(e[r-1]));return t}function ed(e){return e.replace(/[^0-9]/g,"")}function ef(e){return e}function eh(e){var t,r,n,i,o,l,u,c,d,f,h,p,m=e.type;void 0===m&&(m="text");
1var g=e.displayType;void 0===g&&(g="input");var _=e.customInput,y=e.renderText,C=e.getInputRef,v=e.format;void 0===v&&(v=ef);var b=e.removeFormatting;void 0===b&&(b=ed);var x=e.defaultValue,w=e.valueIsNumericString,S=e.onValueChange,j=e.isAllowed,E=e.onChange;void 0===E&&(E=Y);var R=e.onKeyDown;void 0===R&&(R=Y);var k=e.onMouseUp;void 0===k&&(k=Y);var A=e.onFocus;void 0===A&&(A=Y);var T=e.onBlur;void 0===T&&(T=Y);var L=e.value,N=e.getCaretBoundary;void 0===N&&(N=ec);var M=e.isValidInputCharacter;void 0===M&&(M=X);var O=e.isCharacterSame,P=J(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),V=(t=!!w,r=v,n=b,void 0===(i=S)&&(i=Y),o=et(function(e,t){var i,a;return ee(e)||"number"==typeof e&&isNaN(e)||"number"==typeof e&&!isFinite(e)?(a="",i=""):i="number"==typeof e||t?r(a="number"==typeof e?function(e){var t=e+"",r="-"===t[0]?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),i=n[0],a=n[1];if(!(a=Number(a)))return r+i;i=i.replace(".","");var s=1+a,o=i.length;return s<0?i="0."+er("0",Math.abs(s))+i:s>=o?i+=er("0",s-o):i=(i.substring(0,s)||"0")+"."+i.substring(s),r+i}(e):e):r(a=n(e,void 0)),{formattedValue:i,numAsString:a}}),u=(l=(0,s.useState)(function(){return o(ee(L)?x:L,t)}))[0],c=l[1],d=et(function(e,t){e.formattedValue!==u.formattedValue&&c({formattedValue:e.formattedValue,numAsString:e.value}),i(e,t)}),f=L,h=t,ee(L)&&(f=u.numAsString,h=!0),p=o(f,h),(0,s.useMemo)(function(){c(p)},[p.formattedValue]),(0,s.useEffect)(function(){if(!ee(x)&&ee(L)&&""!==u.formattedValue){var e=parseFloat(u.numAsString);d({formattedValue:u.formattedValue,value:u.numAsString,floatValue:isNaN(e)?void 0:e},{event:void 0,source:a.props})}},[]),[u,d]),I=V[0],B=I.formattedValue,U=I.numAsString,F=V[1],D=(0,s.useRef)(),H=(0,s.useRef)({formattedValue:B,numAsString:U}),K=function(e,t){H.current={formattedValue:e.formattedValue,numAsString:e.value},F(e,t)},z=(0,s.useState)(!1),W=z[0],$=z[1],q=(0,s.useRef)(null),Z=(0,s.useRef)({setCaretTimeout:null,focusTimeout:null});(0,s.useEffect)(function(){return $(!0),function(){clearTimeout(Z.current.setCaretTimeout),clearTimeout(Z.current.focusTimeout)}},[]);var Q=v,G=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},eo=function(e,t,r){(0!==e.selectionStart||e.selectionEnd!==e.value.length)&&(en(e,t),Z.current.setCaretTimeout=setTimeout(function(){e.value===r&&e.selectionStart!==t&&en(e,t)},0))},eh=function(e,t,r){return eu(e,t,N(e),r)},ep=function(e,t,r){var n=N(t),i=function(e,t,r,n,i,a,s){void 0===s&&(s=el);var o=i.findIndex(function(e){return e}),l=e.slice(0,o);t||r.startsWith(l)||(t=l,r=l+r,n+=l.length);for(var u=r.length,c=e.length,d={},f=Array(u),h=0;h<u;h++){f[h]=-1;for(var p=0;p<c;p++)if(s({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p})&&!0!==d[p]){f[h]=p,d[p]=!0;break}}for(var m=n;m<u&&(-1===f[m]||!a(r[m]));)m++;var g=m===u||-1===f[m]?c:f[m];for(m=n-1;m>0&&-1===f[m];)m--;var _=-1===m||-1===f[m]?0:f[m]+1;return _>g?g:n-_<g-n?_:g}(t,B,e,r,n,M,O);return eu(t,i,n)},em=function(e){var t,r=e.formattedValue;void 0===r&&(r="");var n=e.input,i=e.source,a=e.event,s=e.numAsString;if(n){var o=e.inputValue||n.value,l=es(n);n.value=r,void 0!==(t=ep(o,r,l))&&eo(n,t,r)}r!==B&&K(G(r,s),{event:a,source:i})};(0,s.useEffect)(function(){var e=H.current,t=e.formattedValue,r=e.numAsString;(B!==t||U!==r)&&K(G(B,U),{event:void 0,source:a.props})},[B,U]);var eg=q.current?es(q.current):void 0;("u">typeof window?s.useLayoutEffect:s.useEffect)(function(){var e=q.current;if(B!==H.current.formattedValue&&e){var t=ep(H.current.formattedValue,B,eg);e.value=B,eo(e,t,B)}},[B]);var e_=function(e,t,r){var n=t.target,i=Object.assign(Object.assign({},D.current?ea(D.current,n.selectionEnd):ei(B,e)),{lastValue:B}),a=b(e,i),s=Q(a);if(a=b(s,void 0),j&&!j(G(s,a))){var o=t.target,l=ep(e,B,es(o));return o.value=B,eo(o,l,B),!1}return em({formattedValue:s,numAsString:a,inputValue:e,event:t,source:r,input:t.target}),!0},ey=function(e,t){void 0===t&&(t=0),D.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},eC=Object.assign({inputMode:W&&"u">typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))?"numeric":void 0},P,{type:m,value:B,onChange:function(e){e_(e.target.value,e,a.event)&&E(e),D.current=void 0},onKeyDown:function(e){var t,r=e.target,n=e.key,i=r.selectionStart,a=r.selectionEnd,s=r.value;void 0===s&&(s=""),"ArrowLeft"===n||"Backspace"===n?t=Math.max(i-1,0):"ArrowRight"===n?t=Math.min(i+1,s.length):"Delete"===n&&(t=i);var o=0;"Delete"===n&&i===a&&(o=1);var l="ArrowLeft"===n||"ArrowRight"===n;if(void 0===t||i!==a&&!l){R(e),ey(r,o);return}var u=t;l?(u=eh(s,t,"ArrowLeft"===n?"left":"right"))!==t&&e.preventDefault():"Delete"!==n||M(s[t])?"Backspace"!==n||M(s[t])||(u=eh(s,t,"left")):u=eh(s,t,"right"),u!==t&&eo(r,u,s),R(e),ey(r,o)},onMouseUp:function(e){var t=e.target,r=function(){var e=t.selectionStart,r=t.selectionEnd,n=t.value;if(void 0===n&&(n=""),e===r){var i=eh(n,e);i!==e&&eo(t,i,n)}};r(),requestAnimationFrame(function(){r()}),k(e),ey(t)},onFocus:function(e){e.persist&&e.persist();var t=e.target,r=e.currentTarget;q.current=t,Z.current.focusTimeout=setTimeout(function(){var n=t.selectionStart,i=t.selectionEnd,a=t.value;void 0===a&&(a="");var s=eh(a,n);s!==n&&(0!==n||i!==a.length)&&eo(t,s,a),A(Object.assign(Object.assign({},e),{currentTarget:r}))},0)},onBlur:function(e){q.current=null,clearTimeout(Z.current.focusTimeout),clearTimeout(Z.current.setCaretTimeout),T(e)}});return"text"===g?y?s.default.createElement(s.default.Fragment,null,y(B,P)||null):s.default.createElement("span",Object.assign({},P,{ref:C}),B):_?s.default.createElement(_,Object.assign({},eC,{ref:C})):s.default.createElement("input",Object.assign({},eC,{ref:C}))}function ep(e){var t=function(e){e.mask,e.allowEmptyFormatting;var t=e.format,r=e.inputMode;void 0===r&&(r="numeric");var n=e.onKeyDown;void 0===n&&(n=Y);var i=e.patternChar;void 0===i&&(i="#");var a=e.value,s=e.defaultValue,o=e.valueIsNumericString,l=J(e,["mask","allowEmptyFormatting","format","inputMode","onKeyDown","patternChar","value","defaultValue","valueIsNumericString"]),u=e.mask;if(u&&("string"===u?u:u.toString()).match(/\d/g))throw Error("Mask "+u+" should not contain numeric character;");var c=function(t){return function(e,t){var r=t.format,n=t.mask,i=t.patternChar;void 0===i&&(i="#");var a=Array.from({length:e.length+1}).map(function(){return!0}),s=0,o=-1,l={};r.split("").forEach(function(t,r){var a=void 0;t===i&&(a=eo(n,++s-1),-1===o&&e[r]===a&&(o=r)),l[r]=a});for(var u=function(t){return r[t]===i&&e[t]!==l[t]},c=0,d=a.length;c<d;c++)a[c]=c===o||u(c)||u(c-1);return a[r.indexOf(i)]=!0,a}(t,e)},d=ee(a)?s:a,f=null!=o?o:""===d||!(null==t?void 0:t.match(/\d/))&&"string"==typeof d&&(!!d.match(/^\d+$/)||""===d),h=Object.assign(Object.assign({},e),{valueIsNumericString:f});return Object.assign(Object.assign({},l),{value:a,defaultValue:s,valueIsNumericString:f,inputMode:r,format:function(e){return function(e,t){var r=t.format,n=t.allowEmptyFormatting,i=t.mask,a=t.patternChar;if(void 0===a&&(a="#"),""===e&&!n)return"";for(var s=0,o=r.split(""),l=0,u=r.length;l<u;l++)r[l]===a&&(o[l]=e[s]||eo(i,s),s+=1);return o.join("")}(e,h)},removeFormatting:function(e,t){return function(e,t,r){void 0===t&&(t={from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""});var n=r.format,i=r.patternChar;void 0===i&&(i="#");var a=t.from,s=t.to,o=t.lastValue;void 0===o&&(o="");var l=function(e){return n[e]===i},u=function(e,t){for(var r="",n=0;n<e.length;n++)l(t+n)&&X(e[n])&&(r+=e[n]);return r},c=function(e){return e.replace(/[^0-9]/g,"")};if(!n.match(/\d/))return c(e);if((""===o||a.end-a.start===o.length)&&e.length===n.length){for(var d="",f=0;f<e.length;f++)if(l(f))X(e[f])&&(d+=e[f]);else if(e[f]!==n[f])return c(e);return d}var h=o.substring(0,a.start),p=e.substring(s.start,s.end),m=o.substring(a.end);return""+u(h,0)+c(p)+u(m,a.end)}(e,t,h)},getCaretBoundary:c,onKeyDown:function(e){var r=e.key,a=e.target,s=a.selectionStart,o=a.selectionEnd,l=a.value;if(s!==o)return void n(e);var u=s;if("Backspace"===r||"Delete"===r){var d="right";if("Backspace"===r){for(;u>0&&t[u-1]!==i;)u--;d="left"}else{for(var f=t.length;u<f&&t[u]!==i;)u++;d="right"}u=eu(l,u,c(l),d)}else t[u]!==i&&"ArrowLeft"!==r&&"ArrowRight"!==r&&(u=eu(l,u+1,c(l),"right"));u!==s&&en(a,u),n(e)}})}(e);return s.default.createElement(eh,Object.assign({},t))}var em="styles-module__inputField___bScR5";let eg=(0,s.forwardRef)(({label:e,type:t="text",placeholder:r,isPhone:n,disabled:i,required:a,controller:o,className:c,labelClassName:d,inputClassName:f,...h},p)=>
1{let m=(0,s.useRef)(null),[g,_]=(0,s.useState)(!1),{input:y,isShowError:C,error:v}=o||{},{onFocus:b,onBlur:x}=y||{},w="date"===t&&r?.length&&!g&&!m.current?.value&&!y?.value,S=e=>{(m.current=e,"function"==typeof p)?p(e):p?.current&&(p.current=e)},j=e=>{_(!0),b?.(e)},E=e=>{_(!1),x?.(e)};return(0,u.jsxs)("div",{className:(0,l.default)("styles-module__inputWrapper___XMs9h",C&&v&&"styles-module__error___rX9bR",i&&"styles-module__disabled___mgi3j","date"===t&&"styles-module__inputWrapper_date___nhhA5",c),children:[(0,u.jsxs)("label",{className:"styles-module__customInput___BQUEN",children:[(0,u.jsxs)("span",{className:(0,l.default)("styles-module__label___qcwjS",d),children:[e,a&&"*"]}),n?(0,u.jsx)(ep,{className:(0,l.default)(em,f),format:"+7(###)###-##-##",allowEmptyFormatting:!0,mask:"_",disabled:i,getInputRef:S,onFocus:j,onBlur:E,...y,...h}):(0,u.jsx)("input",{ref:S,className:(0,l.default)(em,f),type:t,..."date"===t&&{max:"9999-12-31"},disabled:i,placeholder:r,...y,...h,onFocus:j,onBlur:E}),w&&(0,u.jsx)("span",{className:"styles-module__datePlaceholder___t2VDu",children:r})]}),C&&v&&(0,u.jsx)(R.Typography,{as:"span",variant:"text_S",className:"styles-module__errorMessage___nTPe8",children:v})]})});e.s(["Input",()=>eg],10037);var e_={selfieWrapper:"styles-module__selfieWrapper___umXfJ",selfieInfo:"styles-module__selfieInfo___oQzed",selfieNote:"styles-module__selfieNote___bfxce",selfieContainer:"styles-module__selfieContainer___kb71b",selfieIconBtn:"styles-module__selfieIconBtn___DBHAu",iconPhoto:"styles-module__iconPhoto___me6gT",iconRetry:"styles-module__iconRetry___jtKas",video:"styles-module__video___IP9XL",videoSnapshot:"styles-module__videoSnapshot___61oM9",active:"styles-module__active___YYYyo",submitButton:"styles-module__submitButton___9lgn2",retryButton:"styles-module__retryButton___Q69L4"};e.s(["default",()=>e_],35906);let ey=({title:e,description:t,button:r,showButton:n})=>(0,u.jsxs)(N.Card,{className:"styles-module__errorCard___HwT86",children:[(0,u.jsx)(R.Typography,{className:"styles-module__errorCard__title___P15Ht",variant:"text_L",children:e}),(0,u.jsx)(R.Typography,{className:"styles-module__errorCard__description___fByQU",variant:"text_L",as:"div",children:t.map(e=>(0,u.jsx)("p",{children:e},e?.toString()))}),n&&(0,u.jsx)("div",{className:"styles-module__errorCard__buttonWrapper___E8NUC",children:r})]}),eC={audio:!1,video:{facingMode:"user"}},ev=(e,t,r)=>{if(!e||!t.videoWidth||!t.videoHeight)return;let n=Math.max(r.width/t.videoWidth,r.height/t.videoHeight),i=t.videoWidth*n,a=t.videoHeight*n,s=(r.width-i)/2,o=(r.height-a)/2;e.clearRect(0,0,r.width,r.height),e.drawImage(t,0,0,t.videoWidth,t.videoHeight,s,o,i,a)},eb=({photo:e,canRetry:t,selfieVerificationError:r,sendPhotoIsLoading:n,isSelfieServerLimitReached:i,isSelfieAttemptsLimitReached:a,captchaForSendPhoto:o,onCaptchaForSendPhoto:c,setPhoto:d,setCanRetry:f,changeSelfieErrorStatus:h,sendPhoto:p,onBack:m,backText:g})=>{let _=a&&r,y=(0,s.useRef)(null),C=(0,s.useRef)(null),[v,b]=(0,s.useState)("mobile"),[x,w]=(0,s.useState)(null),[S,j]=(0,s.useState)(null),E=(0,s.useRef)(0),R=(0,s.useRef)(null),A=()=>{function e(e){let t=y.current,r=C.current;if(!t||!r)return;let n=t.getContext("2d");r.srcObject=e,r.onloadedmetadata=()=>{let e="mobile"===v?287:377;t.width=e,t.height=e,n?.translate(e,0),n?.scale(-1,1)},r.onplay=()=>{let e=()=>{r.paused||r.ended||(ev(n,r,t),setTimeout(e,1e3/300))};e()}}(async()=>{if(!r){let t=++E.current;try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw Error("getUserMedia is not supported in this browser");if(R.current)R.current&&e(R.current);else{let r;try{r=await navigator.mediaDevices.getUserMedia({...eC,video:{...eC.video,width:{ideal:1280},height:{ideal:1280}}})}catch{r=await navigator.mediaDevices.getUserMedia(eC)}if(t!==E.current)return void r.getTracks().forEach(e=>e.stop());R.current=r,w(r);let n=y.current;n&&(n.style.backgroundColor="transparent"),e(r),j(null)}}catch(e){console.error("Camera access error:",e),j(e instanceof Error?e.message:"Failed to access camera")}}})()},T=()=>
1{E.current+=1,R.current&&(R.current.getTracks().forEach(e=>e.stop()),R.current=null);let e=C.current;e&&e.srcObject&&(e.srcObject.getTracks().forEach(e=>e.stop()),e.srcObject=null),w(null)},L=()=>{let e=y.current;if(e){let t=e.getContext("2d");t?.clearRect(0,0,e.width,e.height),e.style.backgroundColor="white"}d("")},N=()=>{f(!1),L(),h(),A()},M=async()=>{T(),p()};(0,s.useEffect)(()=>{let e=()=>{window.innerWidth>=768?b("tablet-or-desktop"):b("mobile")};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e),L(),f(!1)}},[]),(0,s.useEffect)(()=>(A(),()=>{T()}),[v,r]),(0,s.useEffect)(()=>{r&&(T(),L())},[r]);let O=g&&m&&(0,u.jsx)(H.Button,{className:e_.submitButton,type:"button",customize:"filled",size:"large",onClick:m,children:g});return S?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ey,{title:"ÐÑибка доÑÑÑпа к камеÑе",description:["УбедиÑеÑÑ, ÑÑо Ð²Ñ ÑазÑеÑили доÑÑÑп к камеÑе","и иÑполÑзÑеÑе безопаÑное Ñоединение (HTTPS)"],button:(0,u.jsx)(H.Button,{className:e_.retryButton,type:"button",customize:"filled",size:"large",onClick:()=>{j(null),A()},children:(0,u.jsx)(k.Icons.Retry,{width:18,height:21,className:e_.iconRetry})}),showButton:!0}),O]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:e_.selfieContainer,children:[r&&(0,u.jsx)(ey,{title:i?"ÐÑевÑÑен Ð»Ð¸Ð¼Ð¸Ñ Ð¾ÑпÑавки ÑоÑо":"Ðе ÑдалоÑÑ ÑаÑпознаÑÑ Ñвой возÑаÑÑ",description:_?["ÐоÑполÑзÑйÑÑ\n дÑÑгим ÑпоÑобом."]:[i?"ÐопÑобÑй позже.":"ÐопÑобÑй ÑÑоÑогÑаÑиÑоваÑÑÑÑ\n еÑе Ñаз."],showButton:!_,button:(0,u.jsx)(H.Button,{className:e_.retryButton,type:"button",customize:"filled",size:"large",disabled:i,onClick:N,children:(0,u.jsx)(k.Icons.Retry,{width:18,height:21,className:e_.iconRetry})})}),(0,u.jsx)("canvas",{ref:y,className:(0,l.default)(e_.videoSnapshot,e&&e_.active,r&&"visually-hidden")}),(0,u.jsx)("video",{ref:C,className:(0,l.default)(e_.video,r&&"visually-hidden"),autoPlay:!0,playsInline:!0,muted:!0}),!r&&(0,u.jsx)(H.Button,{className:e_.selfieIconBtn,type:"button",customize:"filled",size:"large",disabled:n||i||!!S,icon:t||r?(0,u.jsx)(k.Icons.Retry,{width:18,height:21,className:e_.iconRetry}):(0,u.jsx)(k.Icons.Photo,{width:24,height:20,className:e_.iconPhoto}),onClick:r?N:()=>{if(t)f(!1),L(),A();else if(x&&x.getTracks().length>0){let e=y.current,t=C.current;if(!e||!t)return;ev(e.getContext("2d"),t,e),d((e=>{if(!e.videoWidth||!e.videoHeight)return"";let t=Math.min(e.videoWidth,e.videoHeight),r=(e.videoWidth-t)/2,n=(e.videoHeight-t)/2,i=document.createElement("canvas");i.width=t,i.height=t;let a=i.getContext("2d");return a?(a.drawImage(e,r,n,t,t,0,0,t,t),i.toDataURL("image/jpeg",.9)):""})(t)||e.toDataURL("image/png")),f(!0),T()}}})]}),!_&&(0,u.jsx)(H.Button,{className:e_.submitButton,type:"button",customize:"filled",size:"large",onClick:M,disabled:!e||r||!!S,loading:n,children:"ÐÑпÑавиÑÑ"}),O,(0,u.jsx)(F,{mode:"invisible",isActive:o.isActive,onSuccess:c},o.captchaKey)]})};e.s(["SelfieField",()=>eb],28078)},42954,91894,e=>{"use strict";var t=e.i(18566),r=e.i(71645),n=e.i(91476),i=e.i(75608),a=e.i(7670);e.i(14056);var s=e.i(93933),o=e.i(43476),l=e.i(84490),u=e.i(53162);e.i(22016);var c=e.i(17860),d=e.i(1062),f=e.i(88709),h=e.i(18737),p=e.i(40109),m=e.i(77753),g=e.i(70468),_=e.i(52536),y=e.i(17350);let C={phone:{initialValue:"",validator:_.validatePhone},code:{initialValue:""},politicsAgreement:{initialValue:!1,validator:_.validateRequired}},v=(0,r.createContext)(void 0),b=({children:e})=>{let{client:a,ymTrackEvent:b,gaTrackEvent:x,siteType:w,ymKey:S,setUser:j,setRegInfo:E,paths:R,isVerifiedUser:k,isShowAuthModal:A,setIsShowAuthModal:T,goBackUrl:L,selfieAttemptsLeft:N,backgroundUrls:M,isDark:O,setBackgroundUrls:P,setIsDark:V,setIsBackgroundLoading:I}=(0,s.useMainContext)(),B=(0,t.useRouter)(),U=(0,r.useMemo)(()=>(0,d.authorizationApiConstructor)(a),[a]),F=(0,r.useMemo)(()=>(0,f.verificationApiConstructor)(a),[a]),{values:D,errors:H,setValue:K,setValues:z,setError:W,controller:$,resetErrors:q}=(0,p.useForm)(C),[Z,Q]=(0,r.useState)("code"),[G,J]=(0,r.useState)("email-
1or-phone"),[Y,X]=(0,r.useState)(c.CodeSourceReqTypes.ALL),[ee,et]=(0,r.useState)(!1),[er,en]=(0,r.useState)(!1),ei=(0,r.useCallback)(async()=>{en(!0)},[]),ea=(0,i.useSelfieVerefication)(N,F,ei),es=(0,u.useSmartCaptcha)(!0),eo=(0,u.useSmartCaptcha)(!1),el=(0,u.useSmartCaptcha)(!1),eu=(0,r.useCallback)((e,t,r,i="Unknown error")=>{let a=e,s="Unknown error";if(t)a=Object.keys(t).join(", ")||e,s=Object.values(t).join(", ")||s,i=t?.[e]?.[0]||i;else if(r){let t=(0,n.isAxiosError)(r)?r?.response?.data?.errors:null;t&&(a=Object.keys(t).join(", ")||e,s=Object.values(t).join(", ")||s)}x("LoginError",{label:a}),b("LoginError",s),W(e,i)},[x,b,W]),ec=(0,r.useCallback)(e=>{K("code",e),W("code","",!1)},[K,W]),ed=(0,r.useCallback)(async e=>{if(e?.preventDefault(),D.politicsAgreement&&!(0,_.validatePhone)(D.phone)&&"email-or-phone"===G){et(!0);try{let e=D.phone.replace(/\D/g,""),t=await U.sendAuthSms({phone:e,token:es.token,action:l.CaptchaActions.AuthSendSmsCode,type:c.CodeSourceReqTypes.ALL});t.data.success?(x("LoginStepCode"),b("LoginMobileCode"),J("code")):t.data.need_to_register?(E((0,y.saveRegInfo)(e,t.data.registration_mode)),B.push(R.registrationPath)):eu("phone",t.data.errors)}catch(e){eu("phone",void 0,e,"ÐÑоизоÑла оÑибка пÑи оÑпÑавке запÑоÑа")}finally{et(!1),es.resetCaptcha()}}},[D,es,U,x,b,eu,E,B,G,R.registrationPath]),ef=(0,r.useCallback)(async e=>{et(!0);try{let t=D.phone.replace(/\D/g,""),r=await U.checkAuthSms({phone:t,code:D.code,token:e,action:l.CaptchaActions.AuthCheckSmsCode}),n=r.data?.user,i=n?.id;if(r.data.success&&i){if(i=String(i),x("LoginSuccess"),x("UserAuth",{UserID:i}),b("UserAuth",i),b("LoginSuccess"),window.ym?.(S,"userParams",{UserID:i}),window.ym?.(S,"setUserID",i),(0,g.writeStorage)(h.USER_ID_STORAGE_KEY,i),T(!1),w===m.SiteTypes.Kent&&((0,g.writeStorage)("uid",i),(0,g.writeStorage)("enter_pack","1")),w===m.SiteTypes.Vogue&&(0,g.writeStorage)("userInfo",JSON.stringify(n)),n&&!n.isAgeVerified){if(n.ageVerificationStatus===m.AgeVerificationStatuses.Moderation||n.ageVerificationStatus===m.AgeVerificationStatuses.RequiredExternal)return void B.push(R.registrationSuccessPath);j(n),E((0,y.saveRegInfo)(t,r.data.registration_mode)),B.push(R.registrationPath);return}L(),j(n??null)}else r.data.need_to_register?(r.data.user&&j(r.data.user),E((0,y.saveRegInfo)(t,r.data.registration_mode)),B.push(R.registrationPath)):eu("code",r.data.errors)}catch(e){eu("code",void 0,e,"Ðе ÑдалоÑÑ Ð¿ÑовеÑиÑÑ ÐºÐ¾Ð´")}finally{et(!1),el.resetCaptcha()}},[D,U,x,w,S,b,el,eu,j,B,E,R.registrationPath,R.registrationSuccessPath,L,T]),eh=(0,r.useCallback)(async e=>{et(!0);try{let t=await U.sendAuthSms({phone:D.phone.replace(/\D/g,""),token:e,action:l.CaptchaActions.AuthSendSmsCode,type:Y});t.data.success||eu("code",t.data.errors)}catch(e){eu("phone",void 0,e,"ÐÑоизоÑла оÑибка пÑи оÑпÑавке запÑоÑа")}finally{et(!1),eo.resetCaptcha()}},[D,Y,U,eo,eu]);(0,r.useEffect)(()=>{q(),X(c.CodeSourceReqTypes.ALL)},[G,q]),(0,r.useEffect)(()=>{A||(J("email-or-phone"),Q("code"),en(!1),z({phone:"",code:"",politicsAgreement:!1}),q())},[A,z,q]),(0,r.useEffect)(()=>{b("LoginStart")},[b]),(0,r.useEffect)(()=>{let e=window?.WebApp?.initData;M||O||A||e||(async()=>{I(!0);try{let e=await U.getBackgroundUrls();e.data.success&&e.data.background&&(P(e.data.background),V(e.data.isDark))}catch(e){console.error("Background image request failed:",e)}finally{I(!1)}})()},[]);let ep={values:D,errors:H,handlers:{handleChangeCode:ec,handlePhoneSubmit:ed,handleChangeStep:J,handleChangeMethod:Q,handleResend:(e=c.CodeSourceReqTypes.ALL)=>{et(!0),eo.activate(),X(e)},handleCheckCode:()=>{et(!0),el.activate()}},controller:$,states:{isLoading:ee,isAuthFormValid:!!(D.politicsAgreement&&!H.phone.error&&D.phone),step:G,method:Z,isVerifiedUser:k,isSelfieVerified:er,selfieAuthState:ea},captchaForGetCode:es,captchaForResendCode:eo,captchaForCheckCode:el,onCaptchaForCheckCode:ef,onCaptchaForResendCode:eh};return(0,o.jsx)(v.Provider,{value:ep,children:e})},x=()=>{let e=(0,r.useContext)(v);if(!e)throw Error("useAuth must be used within an AuthProvider");return e};e.s(["AuthProvider",()=>b,"useAuth",()=>x],42954);var w=e.i(5256),S=e.i(37722),j=e.i(61850),E=e.i(21832),R=e.i(10037),k=e.i(56105),A=e.i(56966),T=e.i(42010),L="styles-module__getCodeBtn___FOxvL";let N=({isSelfieAvailable:e=!0,isModalMode:t=!1})=>{let n=(0,r.useRef)(null),i=(e=>{let[t,n]=(0,r.useState)();return(0,r.useEffect)(()=>{let t=e.current;if(!t)return;let r=new ResizeObserver(()=>{let{width:e,height:r}=t.getBoundingClientRect();n({width:e,height:r})});return r.observe(t),()=>r.disconnect()},[e]),t})(n),{values:s,handlers:l,states:u,controller:c,captchaForGetCode:d,captchaForCheckCode:f,captchaForResendCode:h,onCaptchaForCheckCode:p,onCaptchaForResendCode:g}=x(),_=s.phone.replaceAll(/[()-]/g,""),y=e&&!(u.selfieAuthState.isSelfieAttemptsLimitReached||u.selfieAuthState.isSelfieServerLimitReached);return(0,o.jsxs)(k.Card,{className:(0,a.default)("styles-module__phoneForm___6B4hy","code"!==u.step&&"styles-module__phone___cV0Uf"),ref:n,children:["email-or-phone"===u.step&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.Typography,{as:"h2",variant:"heading_M",children:"ÐвÑоÑизоваÑÑÑÑ Ð½Ð°Â ÑайÑе"}),(0,o.jsx)(T.Typography,{as:"p",variant:"text_L",children:"ЧÑÐ¾Ð±Ñ Ð¿ÑодолжиÑÑ, введи Ð½Ð¾Ð¼ÐµÑ ÑелеÑона"}),(0,o.jsx)(T.Typography,{as:"span",variant:"text_S",className:"styles-module__formNote___Ouo-7",children:"*ÐбÑзаÑелÑное поле Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ"})]}),(0,o.jsxs)("form",{onSubmit:l.handlePhoneSubmit,children:[(0,o.jsxs)("div",{className:(0,a.default)("styles-module__phoneInput___gjiZ8","code"===u.step&&"visually-hidden"),children:[(0,o.jsx)(R.Input,{label:"ТелеÑон",controller:c("phone"),readOnly:u.isLoading,isPhone:!0,required:!0}),(0,o.jsx)(j.PoliticsAgreement,{controller:c,className:"styles-module__phoneInput__politics___29Lva",isAuthForm:!0}),(0,o.jsx)(E.SmartCaptcha,{mode:"visible",onSuccess:d.setToken},d.captchaKey),(0,o.jsx)(A.Button,{customize:"filled",size:"large",loading:u.isLoading,className:L,disabled:!u.isAuthFormValid||!d.token,onClick:l.handlePhoneSubmit,type:"button",children:"ÐолÑÑиÑÑ ÐºÐ¾Ð´"}),y&&(0,o.jsx)(A.Button,{customize:"filled",size:"large",className:L,disabled:u.isLoading,onClick:()=>l.handleChangeMethod("seflie"),type:"button",children:"ÐойÑи по ÑелÑи"})]}),(0,o.jsx)("div",{className:"styles-module__codeInput___89eYc",children:(0,o.jsx)(S.CodeForm,{emailOrPhone:_,type:m.ContactTypes.Phone,fieldCode:"code",controller:c,onChangeStep:()=>
1l.handleChangeStep("email-or-phone"),onCodeComplete:l.handleCheckCode,onResend:l.handleResend,onChange:l.handleChangeCode,step:u.step,isLoading:u.isLoading,codeCaptcha:{captchaKey:f.captchaKey,isActive:f.isActive,onSuccess:p},resendCaptcha:{captchaKey:h.captchaKey,isActive:h.isActive,onSuccess:g},mainHeading:!0,cardHeight:t&&i?`${i.height}px`:void 0})})]})]})};var M=e.i(35906);let O=()=>{let[e,t]=(0,r.useState)(3),[n,i]=(0,r.useState)(""),{goBackUrl:a,setIsVerifiedUser:l}=(0,s.useMainContext)(),u=()=>{l(!0),a()};return(0,r.useEffect)(()=>{let r;return e>0&&(r=setInterval(()=>{t(e=>e-1),i(`${n}${e}${1===e?"":"..."}`)},1e3)),0===e&&u(),()=>clearInterval(r)},[e]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.Typography,{className:M.default.selfieTitle,as:"h1",variant:"heading_M",children:"Ð¢Ñ Ð¿Ð¾Ð´ÑвеÑдил возÑаÑÑ Ð¸ Ñвои изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ ÑдаленÑ."}),(0,o.jsxs)(T.Typography,{className:M.default.selfieInfo,variant:"text_S",children:["ÐвÑомаÑиÑеÑкий пеÑеÑ
од на ÑÐ°Ð¹Ñ ÑеÑез ",n]}),(0,o.jsx)(A.Button,{onClick:u,children:"ÐеÑейÑи на ÑайÑ"})]})};e.i(99011),e.i(90841);var P=e.i(28078);let V=()=>{let{handlers:{handleChangeMethod:e},states:{selfieAuthState:t}}=x();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T.Typography,{className:M.default.selfieTitle,as:"h1",variant:"heading_M",children:"ÐодÑвеÑди возÑаÑÑ ÑÑÐ¾Ð±Ñ Ð¿ÑойÑи далÑÑе"}),(0,o.jsxs)(T.Typography,{className:M.default.selfieInfo,variant:"text_S",children:["ÐаÑ
оди на ÑÐ°Ð¹Ñ Ð±ÐµÐ· огÑаниÑений",(0,o.jsx)("br",{}),"РазÑеÑи доÑÑÑп к камеÑе.",(0,o.jsx)("br",{}),"Сделай ÑелÑи, Ð½Ð°Ñ Ð¸ÑкÑÑÑÑвеннÑй инÑÐµÐ»Ð»ÐµÐºÑ Ð¾Ð¿ÑÐµÐ´ÐµÐ»Ð¸Ñ ÑÑо ÑÑ ÑÑаÑÑе 18 леÑ.",(0,o.jsx)("br",{}),"Ðли авÑоÑизÑйÑÑ Ð¿Ð¾ номеÑÑ ÑелеÑона"]}),(0,o.jsx)(P.SelfieField,{...t,onBack:()=>e("code"),backText:"ÐвÑоÑизоваÑÑÑÑ Ð¿Ð¾ номеÑÑ\nÑелеÑона"})]})},I=()=>{let{client:e}=(0,s.useMainContext)(),{states:{isSelfieVerified:t}}=x();return(0,r.useEffect)(()=>{e.post("/av/gate",{action:"start"})},[]),(0,o.jsx)(k.Card,{className:M.default.selfieWrapper,children:(0,o.jsx)(w.Condition,{value:!t,then:(0,o.jsx)(V,{}),else:(0,o.jsx)(O,{})})})},B=({isSelfieAvailable:e=!0,isModalMode:t=!1})=>{let{states:{method:r}}=x();return(0,o.jsx)(w.Condition,{value:"code"===r,then:(0,o.jsx)(N,{isSelfieAvailable:e,isModalMode:t}),else:(0,o.jsx)(I,{})})};e.s(["AuthorizationForm",()=>B],91894)},71370,e=>{"use strict";var t=e.i(42954),r=e.i(93933);e.i(18566),e.i(71645),e.i(99011),e.i(7670);var n=e.i(43476),i=e.i(79020);e.i(22016),e.i(18737),e.i(37453),e.i(90841),e.i(14056),e.i(74080);var a=e.i(91894);let s=()=>(0,n.jsx)(t.AuthProvider,{children:(0,n.jsx)(o,{})}),o=()=>{let{user:e,isShowAuthModal:t,setIsShowAuthModal:s}=(0,r.useMainContext)(),o=()=>s(!1);return!t||e?null:(0,n.jsxs)("section",{className:"styles-module__overlay___TA1G6",onClick:e=>{e.target===e.currentTarget&&o()},children:[(0,n.jsxs)("div",{className:"styles-module__content___5HO1A",children:[(0,n.jsx)("button",{className:"styles-module__closeButton___bOOFk",onClick:o,children:(0,n.jsx)(i.Icons.Cross,{})}),(0,n.jsx)(a.AuthorizationForm,{isSelfieAvailable:!1,isModalMode:!0})]}),(0,n.jsx)("div",{id:"auth-modal-root"})]})};e.s(["AuthModal",()=>s],71370)},1718,e=>{"use strict";var t=e.i(71645),r=e.i(7670),n=e.i(93933),i=e.i(43476),a=e.i(56105),s=e.i(56966),o=e.i(31931);function l(){let{setIsAgeVerified:e,links:t}=(0,n.useMainContext)();return(0,i.jsxs)(a.Card,{className:"styles-module__ageGate__card___jjHX9",children:[(0,i.jsxs)("div",{className:"styles-module__ageGate__info___vQxz3",children:[(0,i.jsxs)("p",{className:"styles-module__ageGate__infoDescription___FOaNc",children:["ÐодÑвеÑждаÑ, ÑÑо мне иÑполнилоÑÑ 18 или более леÑ, Ñ Ñакже подÑвеÑждаÑ, ÑÑо ÑвлÑÑÑÑ Ð¿Ð¾ÑÑебиÑелем Ñабака или иной никоÑиноÑодеÑжаÑей пÑодÑкÑии и ÑоглаÑаÑÑÑ Ñ ",(0,i.jsx)(s.Button,{nextHref:t.cookisePoliticsLink,customize:"none",target:"_blank",className:"styles-module__ageGate__infoCookies___2e4dT",children:"иÑполÑзованием кÑки"}),"."]}),(0,i.jsx)("div",{className:"styles-module__ageGate__infoIcon___RTqdK"})]}),(0,i.jsx)("p",{className:"styles-module__ageGate__cardConfirm___jN4oj",children:"ÐодÑвеÑди Ñвой возÑаÑÑ"}),(0,i.jsxs)("div",{className:"styles-module__ageGate__cardButtons___Zuzig",children:[(0,i.jsx)(s.Button,{className:"styles-module__ageGate__buttonsItem___SDhtL",onClick:()=>e(o.AgeVerificationStatus.NotAdult),children:"Я младÑе 18"}),(0,i.jsx)(s.Button,{className:"styles-module__ageGate__buttonsItem_adult___0Ze8w",onClick:()=>e(o.AgeVerificationStatus.Adult),children:"Я ÑÑаÑÑе 18"})]})]})}function u(){return(0,i.jsx)("div",{className:"styles-module__ageGate___040lR",children:(0,i.jsx)("h1",{className:"styles-module__ageGate__exit___I9dZG",children:"Ð¡Ð°Ð¹Ñ Ð¿ÑедназнаÑен Ð´Ð»Ñ Ð»Ð¸Ñ ÑÑаÑÑе 18 леÑ"})})}var c=e.i(18737),d=e.i(77753),f=e.i(42010),h=e.i(79020);let p=()=>(0,i.jsxs)("div",{className:"styles-module__disclaimerBody___Fb-XK",children:[(0,i.jsx)(h.Icons.DisclaimerAge,{width:52,height:52,className:"styles-module__disclaimerIcon___Cy-nK"}),(0,i.jsxs)("div",{className:"styles-module__disclaimerText___U0Mfw",children:[(0,i.jsx)("span",{className:"styles-module__top___vsb7C",children:"ÐУРÐÐÐРУÐÐÐÐÐТ"}),(0,i.jsx)("span",{className:"styles-module__bottom___S-LqA",children:"Ð¢Ñ Ð½Ð°Ñ
одиÑÑÑÑ Ð½Ð° оÑиÑиалÑном ÑайÑе ÑабаÑной компании"})]})]}),m=/<(\w+)\s*([^>]*?)>(.*?)<\/\1>/is,g=()=>{let{client:e}=(0,n.useMainContext)(),r=(0,t.useRef)([]);return(0,t.useEffect)(()=>(e.get("/widget/").then(e=>
1{e.data.strings?.forEach(e=>{let t=e.match(m);if(t){let[,e,n,i]=t,a=document.createElement(e);n.split(" ").forEach(t=>{try{let[n,s]=t.split("=");a.setAttribute(n,s?s.slice(1,-1):""),"script"===e&&a.setAttribute("async",""),a.innerHTML=i,document.body.append(a),r.current.push(a)}catch(e){console.error(e)}})}})}).catch(e=>console.error(e)),()=>r.current.forEach(e=>e?.remove())),[]),null};e.i(22016);var _="styles-module__logo___6rGa5";let y={[d.SiteTypes.Kent]:(0,i.jsx)(h.Icons.LogoKent,{className:(0,r.default)(_,"styles-module__kent___-kG-e"),width:50,height:22}),[d.SiteTypes.Vogue]:(0,i.jsx)(h.Icons.LogoVogue,{className:(0,r.default)(_,"styles-module__vogue___Mt31v"),width:86,height:50}),[d.SiteTypes.Rothmans]:(0,i.jsx)(h.Icons.LogoRothmans,{className:(0,r.default)(_,"styles-module__rothmans___XjaW-"),width:84,height:20}),[d.SiteTypes.Dunhill]:(0,i.jsx)(h.Icons.LogoDunhill,{className:(0,r.default)(_,"styles-module__dunhill___ECK07"),width:108,height:34}),[d.SiteTypes.Lucky]:(0,i.jsx)(h.Icons.LogoLucky,{className:(0,r.default)(_,"styles-module__luckyStrike___VhEKG"),width:50,height:50}),[d.SiteTypes.Yava]:(0,i.jsx)(h.Icons.LogoYava,{className:(0,r.default)(_,"styles-module__yava___pX-5v"),width:53,height:53})},C={[d.SiteTypes.Kent]:"ÐÑиÑиалÑнÑй ÑÐ°Ð¹Ñ Kent",[d.SiteTypes.Vogue]:"ÐÑиÑиалÑнÑй ÑÐ°Ð¹Ñ ÑигаÑÐµÑ Vogue",[d.SiteTypes.Rothmans]:"ÐÑиÑиалÑнÑй ÑÐ°Ð¹Ñ Rothmans",[d.SiteTypes.Dunhill]:"ÐÑиÑиалÑнÑй ÑÐ°Ð¹Ñ Dunhill",[d.SiteTypes.Lucky]:"ÐÑиÑиалÑнÑй ÑÐ°Ð¹Ñ Lucky Strike",[d.SiteTypes.Yava]:"ÐÑиÑиалÑнÑй ÑÐ°Ð¹Ñ ÐолоÑÐ°Ñ Ð¯Ð²Ð°"},v=({rightContent:e=null,leftContent:a=null,bottomContent:h=null,centerContent:m=null,reverse:_=!1,start:v=!1,center:b=!1,className:x,backgroundUrls:w,isDark:S=!0,withPolitics:j=!1,contentKey:E})=>{let{isAgeVerified:R,siteType:k,links:A}=(0,n.useMainContext)(),T=(0,t.useRef)(null),L=(0,t.useRef)(null),N=m;null!==R||m?R===o.AgeVerificationStatus.NotAdult&&(N=(0,i.jsx)(u,{})):(a=(0,i.jsxs)(f.Typography,{as:"h1",variant:"heading_L",className:"styles-module__title___6hZeP",children:["ÐобÑо пожаловаÑÑ Ð½Ð° ÑÐ°Ð¹Ñ ",c.SITE_NAME[k]]}),e=(0,i.jsx)(l,{})),(0,t.useEffect)(()=>{let e=document.documentElement,t=T.current;if(!t)return;let r=()=>{let r=e.scrollHeight-e.clientHeight,n=t.scrollHeight-t.clientHeight;r<=0||n<=0||(t.scrollTop=window.scrollY/r*n)};return document.addEventListener("scroll",r,{passive:!0}),()=>document.removeEventListener("scroll",r)},[T]),(0,t.useEffect)(()=>{let e=T.current,t=L.current;if(!e||!t)return;let r=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{let r=e.scrollHeight,n=t.clientHeight;e.style.overflow=r>n+10?"auto":"hidden"})})};r(),setTimeout(r,100);let n=new ResizeObserver(r);return n.observe(e),n.observe(t),t.complete?r():t.addEventListener("load",r),()=>{n.disconnect(),t.removeEventListener("load",r)}},[w,E]);let M=(0,t.useMemo)(()=>({[d.PoliticTypes.PersonalData]:{name:"ÐолиÑика в оÑноÑении обÑабоÑки пеÑÑоналÑнÑÑ
даннÑÑ
",href:A.personalDataProcessingLink},[d.PoliticTypes.PersonalDataAgreement]:{name:"СоглаÑие на обÑабоÑÐºÑ Ð¿ÐµÑÑоналÑнÑÑ
даннÑÑ
",href:A.personalDataAgreementLink},[d.PoliticTypes.UserAgreement]:{name:"ÐолÑзоваÑелÑÑкое ÑоглаÑение",href:A.userAgreementLink},[d.PoliticTypes.Cookie]:{name:"ÐолиÑика кÑки",href:A.cookisePoliticsLink},[d.PoliticTypes.TobaccoQuality]:{name:"ÐÑавила пÑовеÑки каÑеÑÑва ÑабаÑной пÑодÑкÑии",href:A.tobaccoQualityLink}}),[A]),O=!(w?.mobile&&w?.desktop);return(0,i.jsxs)("section",{className:"styles-module__authLayout___uLTI6",children:[(0,i.jsx)("img",{ref:L,src:w?.mobile,srcSet:`${w?.mobile} 900w, ${w?.desktop} 1920w`,sizes:"100vw",alt:"background",className:"styles-module__backgroundImage___f8-91"}),(0,i.jsx)("div",{className:(0,r.default)("styles-module__layoutWrapper___pgtwa",(S||O)&&"styles-module__darkText___27N6W",O||"styles-module__noBackground___zs-2r"),children:(0,i.jsxs)("div",{className:"styles-module__layoutContainer___GXmv9",ref:T,children:[(0,i.jsx)("header",{className:"styles-module__layoutHeader___baPoA",children:void 0!==R&&y[k]}),C[k]&&(0,i.jsx)("h1",{className:"visually-hidden",children:C[k]}),(0,i.jsx)("div",{className:(0,r.default)("styles-module__layoutMain___Pvq76",b&&"styles-module__center___lsqVk"),children:(0,i.jsx)("div",{className:(0,r.default)("styles-module__layoutContent___hVvmG",_&&"styles-module__reverse___6QVaJ",v&&"styles-module__start___0mMCz",x),children:N?(0,i.jsx)("div",{className:"styles-module__centerContent___CaDj-",children:N}):(0,i.jsxs)(i.Fragment,{children:[a&&(0,i.jsx)("div",{className:"styles-module__leftContent___Yfj4A",children:a}),e&&(0,i.jsx)("div",{className:"styles-module__rightContent___msNOq",children:e}),h&&(0,i.jsx)("div",{className:"styles-module__bottomContent___k1O4Y",children:h})]})})}),(0,i.jsxs)("footer",{className:(0,r.default)("styles-module__layoutFooter___GvA-N",j&&"styles-module__withPolitics___VCzBJ"),children:[(0,i.jsx)("div",{className:"styles-module__politics___ra3Da",children:j&&Object.values(M).map(({name:e,href:t})=>(0,i.jsx)(s.Button,{className:"styles-module__politics__link___RMJIs",customize:"underline",href:t,target:"_blank",children:e},e))}),(0,i.jsxs)("p",{className:"styles-module__bottomBlock___tc9mC",children:[(0,i.jsx)("span",{children:"© ITMS РоÑÑиÑ. ÐÑе пÑава заÑиÑенÑ."}),(0,i.jsx)("span",{children:"ÐÑÐ¾Ñ ÑÐ°Ð¹Ñ Ð·Ð°ÑиÑен SmartCaptcha."})]})]})]})}),(0,i.jsx)(p,{}),(0,i.jsx)(g,{}),(0,i.jsx)("div",{id:"auth-modal-root"})]})};e.s(["Layout",()=>v],1718)},91759,e=>{"use strict";var t=e.i(18566),r=e.i(71645),n=e.i(99011),i=e.i(93933),a=e.i(91476),s=e.i(17350),o=e.i(37453),l=e.i(82588),u=e.i(64044),c=e.i(70468),d=e.i(90841),f=e.i(17860),h=e.i(88709),p=e.i(18737),m=e.i(40109);e.i(14056);var g=e.i(43476),_=e.i(84490),y=e.i(53162),C=e.i(77753),v=e.i(52536);let b={first_name:{initialValue:"",validator:v.validateName},last_name:{initialValue:"",validator:v.validateName},birthday:{initialValue:"",validator:v.validateBirthday},email:{initialValue:"",validator:v.validateEmail},email_otp_code:{initialValue:""},emailConfirmed:{initialValue:!1},phone:{initialValue:"",validator:v.validatePhone},phone_otp_code:{initialValue:""},consumerAgreement:{initialValue:!1,validator:v.validateRequired},politicsAgreement:{initialValue:!1,validator:v.validateRequired},verificationMethod:{initialValue:""},documentFileForManualCheck:{initialValue:void 0},phoneConfirmed:{initialValue:!1},useEmail:{initialValue:!0}},x=(0,r.createContext)(null),w=({children:e})=>{let n=(0,t.useRouter)(),v=(0,t.useSearchParams)(),{user:w,regInfo:S,siteType:j,setUser:E,ymTrackEvent:R,gaTrackEvent:k,client:A,paths:T}=(0,i.useMainContext)(),{values:L,errors:N,controller:M,setValue:O,setValues:P,setError:V}=(0,m.useForm)(b),[I,B]=(0,r.useState)(1),[U,F]=(0,r.useState)(!1),[D,H]=(0,r.useState)("email-
1or-phone"),[K,z]=(0,r.useState)(!1),[W,$]=(0,r.useState)(!1),[q,Z]=(0,r.useState)(!1),[Q,G]=(0,r.useState)(!1),[J,Y]=(0,r.useState)(!1),[X,ee]=(0,r.useState)(!1),[et,er]=(0,r.useState)(!1),[en,ei]=(0,r.useState)(void 0),ea=S.regMode===f.RegMode.Default&&(void 0===en||en>0),es=(0,y.useSmartCaptcha)(!0),eo=(0,y.useSmartCaptcha)(!1),el=(0,y.useSmartCaptcha)(!1),eu=(0,y.useSmartCaptcha)(!1),ec=(0,y.useSmartCaptcha)(!1),ed=(0,y.useSmartCaptcha)(!1),ef=(0,y.useSmartCaptcha)(!1),eh=(0,y.useSmartCaptcha)(!1),ep=(0,r.useMemo)(()=>!!(!N.first_name.error&&!N.last_name.error&&!N.email.error&&!N.phone.error&&L.emailConfirmed&&L.first_name&&L.last_name&&L.email&&L.phone),[N,L]),em=(0,r.useMemo)(()=>!!(!N.birthday.error&&L.birthday&&L.consumerAgreement&&L.politicsAgreement),[N,L]),eg=(0,r.useMemo)(()=>L.consumerAgreement&&L.politicsAgreement,[L]),e_=(0,r.useMemo)(()=>!!(!N.birthday.error&&L.birthday),[N.birthday.error,L.birthday]),ey=(0,r.useMemo)(()=>(0,h.verificationApiConstructor)(A),[A]),eC=(0,r.useMemo)(()=>({sendRegistrationMail:(e,t)=>A.post("/registration/email/code/send",e,t),checkRegistrationMail:(e,t)=>A.post("/registration/email/code/check",e,t),sendRegistrationSms:(e,t)=>A.post("/registration/sms/code/send",e,t),checkRegistrationSms:(e,t)=>A.post("/registration/sms/code/check",e,t),checkPhone:(e,t)=>A.post("/registration/phone-check",e,t),checkEmail:(e,t)=>A.post("/registration/email-check",e,t),getRegistrationProgress:e=>A.get("/registration/progress",e),registerUser:(e,t)=>A.post("/registration",e,t),registerUserInPerson:(e,t)=>A.post("/registration-in-person",e,t),registerUserWithManualVerification:(e,t)=>A.post("/registration-with-verification",e,t),updateAgeVerification:(e,t)=>A.post("/registration-update-age-verification",e,t)}),[A]),ev=(0,r.useMemo)(()=>(0,l.regStepAnalyticConstructor)(k),[k]),eb=(0,r.useCallback)(e=>{let t=(0,c.getQR)(j);if((0,s.clearRegInfo)(),e?.id){let t=String(e.id);(0,c.writeStorage)(p.USER_ID_STORAGE_KEY,t),j===C.SiteTypes.Kent&&(0,c.writeStorage)("uid",t)}
1let r=(0,d.getEventContext)(t);[C.SiteTypes.Rothmans,C.SiteTypes.Dunhill,C.SiteTypes.Vogue].includes(j)&&r?k("EventRegSuccess",{eventContext:r}):ev("3",u.RegStatus.success),R("RegistrationSuccess",(0,d.getEventLabel)(t)),E(e),F(!0);let i=v.get("back_url");L.verificationMethod===C.VerificationTypes.Manual?n.push(T.registrationSuccessPath):i?n.push(`${T.registrationSuccessPath}?back_url=${i}`):n.push(T.registrationSuccessPath)},[E,R,k,ev,L.verificationMethod,v,n,j,T.registrationSuccessPath]),ex=(0,r.useCallback)((e=1)=>{B(t=>t<3?t+e:t)},[]),ew=(0,r.useCallback)(()=>{L.verificationMethod!==C.VerificationTypes.Manual?ed.activate():w&&!w.isAgeVerified?eh.activate():ef.activate()},[L.verificationMethod,w,ed,ef,eh]),eS=(0,r.useCallback)(e=>{O("phone_otp_code",e),ec.activate()},[O,ec]),ej=(0,r.useCallback)(()=>{R("RegMobileCode"),eu.activate()},[R,eu]),eE=(0,r.useCallback)(()=>{V("phone_otp_code",null)},[V]),eR=(0,r.useCallback)(()=>{eo.activate()},[eo]),ek=(0,r.useCallback)(e=>{O("email_otp_code",e),el.activate()},[O,el]),eA=(0,r.useCallback)(()=>{V("email_otp_code",null)},[V]),eT=(0,r.useCallback)(()=>{O("verificationMethod",ea?C.VerificationTypes.Selfie:C.VerificationTypes.Manual);let{useEmail:e,email:t}=L;!e&&t||et?es.activate():(ex(1),j===C.SiteTypes.Dunhill&&ev("1",u.RegStatus.success))},[ea,L,et,O,ex,es,ev,j]),eL=(0,r.useCallback)(async e=>{try{let t=await eC.checkEmail({email:L.email,token:e,action:_.CaptchaActions.SignupCheckEmail});if(t.data.success)j===C.SiteTypes.Dunhill&&ev("1",u.RegStatus.success),ex(1);else{let e=t.data;if(er(e.status===p.EMAIL_CHECK_LIMIT_ERROR),e.errors){let t=Object.keys(e.errors).join(", ");j===C.SiteTypes.Dunhill&&ev("1",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`),V("email",e.errors.email?.join(". ")??null)}}}catch(e){if((0,a.isAxiosError)(e)&&e.response?.status===400){let t=Object.keys(e.response.data.errors??{}).join(", ");j===C.SiteTypes.Dunhill&&ev("1",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`),V("email",et?"ÐÑевÑÑен Ð»Ð¸Ð¼Ð¸Ñ Ð¿Ð¾Ð¿ÑÑок. ÐопÑобÑйÑе позже.":"ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе позже")}}finally{es.resetCaptcha()}},[L.email,et,V,ex,R,ev,es,eC,j]),eN=(0,r.useCallback)(async e=>{if(N.email.error||!L.email)return void eo.resetCaptcha();z(!0);try{let t=await eC.sendRegistrationMail({email:L.email,token:e,action:_.CaptchaActions.SignupSendEmailCode});if(t.data.success)"code"!==D&&(j!==C.SiteTypes.Dunhill&&(ev("1",u.RegStatus.code),R("RegEmailCode")),H("code"));else{let e=t.data;if(e.errors){let t=Object.keys(e.errors).join(", ");j!==C.SiteTypes.Dunhill&&ev("1",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`),V("email",e.errors.email?.join(". ")??null)}}}catch(e){if((0,a.isAxiosError)(e)&&e.response?.status===400){let t=e.response.data,r=t.errors?Object.keys(t.errors).join(", "):"email";j!==C.SiteTypes.Dunhill&&ev("1",u.RegStatus.error,r),R("RegistrationError",`registration_error_${r}`),V("email",t.errors?.email?.join(". ")??null)}}finally{z(!1),eo.resetCaptcha()}},[N.email.error,L.email,D,V,R,ev,eo,eC,j]),eM=(0,r.useCallback)(async e=>{$(!0);
1try{let t=await eC.checkRegistrationMail({email:L.email,code:L.email_otp_code,token:e,action:_.CaptchaActions.SignupCheckEmailCode});if(t.data.success)O("email_otp_code",L.email_otp_code),j!==C.SiteTypes.Dunhill&&(ev("1",u.RegStatus.success),R("RegEmailVerification")),O("emailConfirmed",!0);else{let e=t.data;if(e.errors){let t=Object.keys(e.errors).join(", ");j!==C.SiteTypes.Dunhill&&ev("1",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`),V("email_otp_code",e.errors.code?.join(". ")??null)}}}catch(e){if((0,a.isAxiosError)(e)&&e.response?.status===400){let t=e.response.data,r=t.errors?Object.keys(t.errors).join(", "):"email_otp_code";j!==C.SiteTypes.Dunhill&&ev("1",u.RegStatus.error,r),R("RegistrationError",`registration_error_${r}`),V("email_otp_code",t.errors?.code?.join(". ")??null)}}finally{$(!1),el.resetCaptcha()}},[L.email,L.email_otp_code,O,V,R,ev,el,eC,j]),eO=(0,r.useCallback)(async e=>{Z(!0);try{let t=await eC.sendRegistrationSms({phone:(0,c.phoneToSubmit)(L.phone),token:e,action:_.CaptchaActions.SignupSendSmsCode});if(t.data.success)ev("3",u.RegStatus.code),ex(1);else{let e=t.data;if(e.errors){let t=Object.keys(e.errors).join(", ");ev("3",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`);let r=L.verificationMethod!==C.VerificationTypes.Manual?"birthday":"documentFileForManualCheck";V(r,e.errors.phone?.join(". ")??null)}}}catch(e){if((0,a.isAxiosError)(e)&&e.response?.status===400){let t=e.response.data,r=t.errors?Object.keys(t.errors).join(", "):"phone";ev("3",u.RegStatus.error,r),R("RegistrationError",`registration_error_${r}`),V(L.verificationMethod!==C.VerificationTypes.Manual?"birthday":"documentFileForManualCheck",t.errors?.phone?.join(". ")??null)}}finally{Z(!1),eu.resetCaptcha()}},[L.phone,L.verificationMethod,ex,V,R,ev,eu,eC]),eP=(0,r.useCallback)(async e=>{G(!0);
1try{let t=await eC.checkRegistrationSms({phone:(0,c.phoneToSubmit)(L.phone),code:L.phone_otp_code,token:e,action:_.CaptchaActions.SignupCheckSmsCode});if(t.data.success)O("phoneConfirmed",!0),ew();else{let e=t.data;if(e.errors){let t=Object.keys(e.errors).join(", ");ev("3",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`),V("phone_otp_code",e.errors.code?.join(". ")??null)}}}catch(e){if((0,a.isAxiosError)(e)&&e.response?.status===400){let t=e.response.data,r=t.errors?Object.keys(t.errors).join(", "):"phone_otp_code";ev("3",u.RegStatus.error,r),R("RegistrationError",`registration_error_${r}`),V("phone_otp_code",t.errors?.code?.join(". ")??null)}}finally{G(!1),ec.resetCaptcha()}},[L.phone,L.phone_otp_code,O,V,ew,R,ev,ec,eC]),eV=(0,r.useCallback)(async e=>{Y(!0);try{let{first_name:t,last_name:r,birthday:n,email:i,phone:a,phone_otp_code:s,email_otp_code:l,useEmail:d,verificationMethod:f}=L,h=(0,o.getCashbackPromoName)((0,c.getQR)(j)),p=await eC.registerUser({first_name:t,last_name:r,...d?{email:i,email_otp_code:l}:i?{email:i}:{},phone:(0,c.phoneToSubmit)(a),birthday:(0,c.birthdayToSubmit)(n),phone_otp_code:s,verification_age:f,token:e,action:_.CaptchaActions.Signup,...h&&{first_external_sub_source:h}});if(p.data.success&&p.data.user)eb(p.data.user);else{let e=p.data;if(e.errors){let t=Object.keys(e.errors).join(", ");for(let r in ev("3",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`),e.errors)V("phone_otp_code",e.errors[r][0]??null)}}}catch(e){if((0,a.isAxiosError)(e)&&e.response?.status===400){let t=e.response.data,r=Object.keys(t.errors??{}).join(", ");for(let e in ev("3",u.RegStatus.error,r),R("RegistrationError",`registration_error_${r}`),t.errors)V("phone_otp_code",t.errors?.[e][0]??null)}}finally{Y(!1),ed.resetCaptcha()}},[L,eb,V,R,ev,ed,eC,j]),eI=(0,r.useCallback)(async e=>{if(!L.documentFileForManualCheck)return void ef.resetCaptcha();ee(!0);try{let t=await ey.fileToBase64(L.documentFileForManualCheck),{first_name:r,last_name:n,birthday:i,email:a,phone:s,phone_otp_code:l,email_otp_code:d,useEmail:f,verificationMethod:h}=L,p=(0,o.getCashbackPromoName)((0,c.getQR)(j)),m=await eC.registerUserWithManualVerification({first_name:r,last_name:n,...f?{email:a,email_otp_code:d}:a?{email:a}:{},phone:(0,c.phoneToSubmit)(s),birthday:(0,c.birthdayToSubmit)(i),phone_otp_code:l,document_file:t,verification_age:h,token:e,action:_.CaptchaActions.SignupWithVerification,...p&&{first_external_sub_source:p}});if(m.data.success&&m.data.user)eb(m.data.user);else{let e=m.data;if(e.errors){let t=Object.keys(e.errors).join(", ");for(let r in ev("3",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`),e.errors)V("phone_otp_code",e.errors[r][0]??null)}}}catch(e){if((0,a.isAxiosError)(e)&&e.response?.status===400){let t=e.response.data,r=Object.keys(t.errors??{}).join(", ");for(let e in ev("3",u.RegStatus.error,r),R("RegistrationError",`registration_error_${r}`),t.errors)V(e,t.errors?.[e][0]??null)}}finally{ee(!1),ef.resetCaptcha()}},[L,eb,V,R,ev,ef,eC,ey,j]),eB=(0,r.useCallback)(async e=>{ee(!0);try{let t=L.documentFileForManualCheck?await ey.fileToBase64(L.documentFileForManualCheck):void 0,r=await eC.updateAgeVerification({id:String(w?.id??""),phone:(0,c.phoneToSubmit)(L.phone),birthday:(0,c.birthdayToSubmit)(L.birthday),...t&&{document_file:t},verification_age:L.verificationMethod,token:e,action:_.CaptchaActions.SignupWithVerification});if(r.data.success&&r.data.user)eb(r.data.user);else{let e=r.data;if(e.errors){let t=Object.keys(e.errors).join(", ");for(let r in ev("3",u.RegStatus.error,t),R("RegistrationError",`registration_error_${t}`),e.errors)V(r,e.errors[r][0]??null)}}}catch(e){if((0,a.isAxiosError)(e)&&e.response?.status===400){let t=e.response.data,r=Object.keys(t.errors??{}).join(", ");for(let e in ev("3",u.RegStatus.error,r),R("RegistrationError",`registration_error_${r}`),t.errors)V(e,t.errors?.[e][0]??null)}}finally{ee(!1),eh.resetCaptcha()}},[L,w,eb,V,R,ev,eh,eC,ey]);return(0,r.useEffect)(()=>{S.phone&&O("phone",S.phone)},[S.phone]),(0,r.useEffect)(()=>{if(!w||w.isAgeVerified)return;let e=S.regMode!==f.RegMode.Default||w.ageVerificationStatus===C.AgeVerificationStatuses.Failed;P(t=>({...t,first_name:w.name||"",last_name:w.lastName||"",birthday:w.birthday?(0,c.dateToInputFormat)(w.birthday):"",email:w.email||"",emailConfirmed:w.isEmailVerified||!1,phone:w.phone||"",phoneConfirmed:w.isPhoneVerified||!1,verificationMethod:e?C.VerificationTypes.Manual:C.VerificationTypes.Selfie})),B(2)},[]),(0,r.useEffect)(()=>{(async()=>{try{let e=await eC.getRegistrationProgress();
1if(e.data.success){let t=(0,c.getQR)(j),r=(0,d.getEventContext)(t);k("RegStart",{...[C.SiteTypes.Rothmans,C.SiteTypes.Dunhill,C.SiteTypes.Vogue].includes(j)&&r&&{eventContext:r}}),R("RegStart",(0,d.getEventLabel)(t)),O("useEmail",e.data.use_email);let n=!1===e.data.selfie_available?0:e.data.selfie_attempts_left;ei(n),n<=0&&O("verificationMethod",C.VerificationTypes.Manual)}}catch{}})()},[]),(0,g.jsx)(x.Provider,{value:{values:L,errors:N,controller:M,setValue:O,setValues:P,setError:V,regStepAnalytic:ev,isMainInfoValid:ep,isValidAfterSelfieVerification:em,isAgreementsValid:eg,isBirthdayValid:e_,step:I,isRegistered:U,regUserIsLoading:J,regUserWithManualVerificationIsLoading:X,emailActiveStep:D,setEmailActiveStep:H,sendMailIsLoading:K,checkEmailCodeIsLoading:W,sendSmsIsLoading:q,checkSmsCodeIsLoading:Q,isCheckEmailLimitReached:et,selfieAttemptsLeft:en,handlers:{handleNextStep:ex,handleSubmit:ew,handlePhoneCodeComplete:eS,handlePhoneSend:ej,handlePhoneCodeChange:eE,handleCheckEmailAndNextStep:eT,handleSendEmailCode:eR,handleSendEmailOtpCode:ek,handleEmailCodeChange:eA},captchaForCheckEmail:es,captchaForSendMail:eo,captchaForCheckEmailCode:el,captchaForSendSms:eu,captchaForCheckSmsCode:ec,captchaForRegUser:ed,captchaForManualRegUser:ef,captchaForUpdate:eh,captchaHandlers:{onCaptchaForCheckEmail:eL,onCaptchaForSendMail:eN,onCaptchaForCheckEmailCode:eM,onCaptchaForSendSms:eO,onCaptchaForCheckSmsCode:eP,onCaptchaForRegUser:eV,onCaptchaForManualRegUser:eI,onCaptchaForUpdate:eB}},children:e})},S=()=>{let e=(0,r.useContext)(x);if(!e)throw Error("useRegistration must be used within a RegistrationProvider");return e};var j=e.i(7670);e.i(22016);var E=e.i(5256),R=e.i(21832),k=e.i(10037),A=e.i(56105),T=e.i(56966),L=e.i(42010),N=e.i(37722);let M=({controller:e})=>{let[t,n]=(0,r.useState)(null),{values:i,emailActiveStep:a,setEmailActiveStep:s,sendMailIsLoading:o,checkEmailCodeIsLoading:l,captchaForSendMail:u,captchaForCheckEmailCode:c,captchaHandlers:{onCaptchaForSendMail:d,onCaptchaForCheckEmailCode:f},handlers:{handleSendEmailCode:h,handleSendEmailOtpCode:p,handleEmailCodeChange:m}}=S(),_=()=>{t?.focus(),t?.blur(),h()};return(0,g.jsx)(N.CodeForm,{formClassName:"styles-module__form___t4GSQ",type:C.ContactTypes.Email,emailOrPhone:i.email,step:a,confirmed:i.emailConfirmed,isLoading:l,fieldCode:"email_otp_code",controller:e,onChangeStep:s,onCodeComplete:p,onResend:_,onChange:m,codeCaptcha:{captchaKey:c.captchaKey,isActive:c.isActive,onSuccess:f},children:(0,g.jsxs)("div",{className:"styles-module__wrapper___bF9aH",children:[(0,g.jsxs)("div",{className:"styles-module__emailContainer___adZ-h",children:[(0,g.jsx)(k.Input,{ref:n,label:"ÐоÑÑа",type:"email",placeholder:"[email protected]",readOnly:o,controller:e("email"),required:i.useEmail,onKeyDown:e=>{"Enter"===e.key&&_()}}),i.useEmail&&(0,g.jsx)(T.Button,{className:"styles-module__submitButton___O662i",type:"button",size:"large",loading:o,onClick:_,children:"ÐолÑÑиÑÑ ÐºÐ¾Ð´"})]}),i.useEmail&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(R.SmartCaptcha,{mode:"invisible",isActive:u.isActive,onSuccess:d},u.captchaKey),(0,g.jsx)(L.Typography,{children:"ÐÐ»Ñ Ð¿ÑÐ¾Ð´Ð¾Ð»Ð¶ÐµÐ½Ð¸Ñ ÑегиÑÑÑаÑии, пожалÑйÑÑа, подÑвеÑди ÑлекÑÑоннÑÑ Ð¿Ð¾ÑÑÑ"})]})]})})};var O={wrapper:"styles-module__wrapper___rI9F4",mainInfo:"styles-module__mainInfo___f-LRM",mainInfo__note:"styles-module__mainInfo__note___YFNed",mainInfoForm:"styles-module__mainInfoForm___Bbkxk",mainInfoForm__submitButton:"styles-module__mainInfoForm__submitButton___WtI7M"};let P=({className:e,controller:t})=>{let{siteType:r}=(0,i.useMainContext)(),{sendMailIsLoading:n,isMainInfoValid:a,captchaForCheckEmail:s,handlers:{handleCheckEmailAndNextStep:o}}=S(),l=!a||!s.token,u=t("phone"),d=(0,c.phoneToSubmit)(u.input.value),f=t("first_name");f.input.onChange=(0,c.getFormattedNameHandler)(f.input.onChange);let h=t("last_name");h.input.onChange=(0,c.getFormattedNameHandler)(h.input.onChange);let p=e=>{"Enter"===e.key&&o()};return(0,g.jsxs)(A.Card,{className:(0,j.default)(O.wrapper,e),children:[(0,g.jsx)(L.Typography,{as:"h2",variant:"heading_M",children:"СоздаÑÑ ÑÑеÑнÑÑ Ð·Ð°Ð¿Ð¸ÑÑ"}),(0,g.jsxs)("div",{className:O.mainInfo,children:[(0,g.jsx)(L.Typography,{className:O.mainInfo__note,children:"*ÐбÑзаÑелÑное поле Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ"}),(0,g.jsxs)("div",{className:(0,j.default)(O.mainInfoForm,O[r]),children:[(0,g.jsx)(k.Input,{label:"ÐмÑ",placeholder:"Ðведи Ð¸Ð¼Ñ ÑоглаÑно доÐ
1ºÑменÑÑ",controller:f,readOnly:n,onKeyDown:p,required:!0}),(0,g.jsx)(k.Input,{label:"ФамилиÑ",placeholder:"Ðведи ÑÐ°Ð¼Ð¸Ð»Ð¸Ñ ÑоглаÑно докÑменÑÑ",controller:h,readOnly:n,onKeyDown:p,required:!0}),(0,g.jsx)(M,{controller:t}),(0,g.jsx)(k.Input,{label:"ТелеÑон",value:d.slice(1),controller:u,readOnly:11===d.length,isPhone:!0,required:!0}),(0,g.jsx)(R.SmartCaptcha,{mode:"visible",onSuccess:s.setToken},s.captchaKey),(0,g.jsx)(T.Button,{className:O.mainInfoForm__submitButton,disabled:l,type:"button",onClick:o,children:"ÐÑодолжиÑÑ"})]})]})]})},V=({verificationMethod:e})=>{let{captchaForRegUser:t,captchaForManualRegUser:r,captchaForUpdate:n,captchaForSendSms:i,values:{phoneConfirmed:a},captchaHandlers:{onCaptchaForRegUser:s,onCaptchaForManualRegUser:o,onCaptchaForUpdate:l,onCaptchaForSendSms:u}}=S();return a?e===C.VerificationTypes.Manual?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(R.SmartCaptcha,{mode:"invisible",isActive:n.isActive,onSuccess:l},n.captchaKey),(0,g.jsx)(R.SmartCaptcha,{mode:"invisible",isActive:r.isActive,onSuccess:o},r.captchaKey)]}):(0,g.jsx)(R.SmartCaptcha,{mode:"invisible",isActive:t.isActive,onSuccess:s},t.captchaKey):(0,g.jsx)(R.SmartCaptcha,{mode:"invisible",isActive:i.isActive,onSuccess:u},i.captchaKey)},I=({controller:e})=>{let{values:t,checkSmsCodeIsLoading:r,captchaForCheckSmsCode:n,captchaHandlers:{onCaptchaForCheckSmsCode:i},regUserIsLoading:a,regUserWithManualVerificationIsLoading:s,handlers:{handlePhoneCodeComplete:o,handlePhoneSend:l,handlePhoneCodeChange:u}}=S(),c=t.phone.replaceAll(/[()-]/g,"");return(0,g.jsxs)(A.Card,{children:[(0,g.jsx)(V,{phoneConfirmed:t.phoneConfirmed,verificationMethod:t.verificationMethod}),(0,g.jsx)(N.CodeForm,{type:C.ContactTypes.Phone,isRegMode:!0,emailOrPhone:c.startsWith("+")?c:`+${c}`,canChangeEmailOrPhone:!1,fieldCode:"phone_otp_code",step:"code",isLoading:a||s||r,controller:e,onCodeComplete:o,onResend:l,onChange:u,codeCaptcha:{captchaKey:n.captchaKey,isActive:n.isActive,onSuccess:i},mainHeading:!0})]})};e.i(74080);var B=e.i(75608),U=e.i(40895);let F=["Тип Ñайла: JPG, JPEG, JPE, JFIF, JP2, PCX, BPM, GIF, PNG, PDF, TIFF или TIF","Ð Ð°Ð·Ð¼ÐµÑ Ñайла: до 15 мб","РазÑеÑение: более 300 dpi, ÑекомендованнÑй ÑоÑÐ¼Ð°Ñ 600Ñ
600 px","Скан копии должен бÑÑÑ ÑеÑким, Ñ
оÑоÑо оÑвеÑеннÑм, без бликов, Ð¾Ð±Ð¸Ð»Ð¸Ñ Ñеней и ÑилÑÑÑов"],D={document_file:{initialValue:void 0,validator:e=>e?e.size>0xf00000?`Файл ÑлиÑком болÑÑой (макÑ. 15 ÐÐ)`:null:"ÐагÑÑзи докÑменÑ"}},H=(0,r.createContext)(null),K=({children:e})=>{let{user:t,client:n,ymTrackEvent:a}=(0,i.useMainContext)(),{values:s,errors:o,setValue:l,handlers:{handleSubmit:c,handlePhoneSend:f},regStepAnalytic:_,selfieAttemptsLeft:y}=S(),v=(0,r.useMemo)(()=>(0,h.verificationApiConstructor)(n),[n]),[b,x]=(0,r.useState)(!1),w=(0,r.useCallback)(()=>{x(!0)},[]),j=(0,r.useCallback)(()=>{_("ageverification",u.RegStatus.success,d.AnalyticDocsType[C.DocumentTypes.PersonPhoto]),a("RegAgeVerification",U.YMVerificationTypes.Selfie)},[_,a]),E=(0,r.useCallback)(e=>{_("ageverification",u.RegStatus.error,e),a("RegistrationError","registration_error_ageverification_selfie")},[_,a]),R=(0,B.useSelfieVerefication)(y??p.MAX_VERIFICATION_AUTO_CHECK,v,w,j,E),{values:k,errors:A,controller:T,setValue:L,setError:N,resetErrors:M}=(0,m.useForm)(D),[O,P]=(0,r.useState)(!1),V=(0,r.useCallback)((e,t)=>{L(e,t)},[L]),I=(0,r.useCallback)((e,t)=>{N(e,t)},[N]),F=(0,r.useCallback)(()=>{if(!s.birthday||o.birthday?.error)return;let e=k.document_file;e&&l("documentFileForManualCheck",e),s.phoneConfirmed?c():f()},[k.document_file,s.phoneConfirmed,l,c,f,s.birthday,o.birthday?.error]);(0,r.useEffect)(()=>{o.documentFileForManualCheck?.error&&I("document_file",o.documentFileForManualCheck?.error)},[o.documentFileForManualCheck?.error]),(0,r.useEffect)(()=>{t?.ageVerificationStatus===C.AgeVerificationStatuses.Passed&&(P(!0),x(!0))},[t]);let K={selfieState:{isSelfieVerified:b,...R},docState:{docValues:k,docErrors:A,docController:T,setDocValue:V,setDocError:I,resetDocErrors:M,isDocVerified:O,onDocSubmit:F}};return(0,g.jsx)(H.Provider,{value:K,children:e})},z=()=>{let e=(0,r.useContext)(H);if(!e)throw Error("useVerification must be used within a VerificationProvider");return e};var W=e.i(79020);let $=(0,r.forwardRef)(({controller:e,className:t,placeholder:n,defaultValue:i,isLoading:a,...s},o)=>{var l;let u,c,d=(0,r.useRef)(null),[f,h]=(0,r.useState)(i||null),{input:p,isShowError:m,error:_}=e||{},{onChange:y}=p||{},C=(0,r.useCallback)(e=>{let t=e.target&&"files"in e.target?e.target.files:null;t?.length?h(t[0]):h(null),y?.(t?.[0]||void 0)},[y]);return(0,r.useEffect)(()=>
1{if(d.current)return d.current?.addEventListener("change",C),()=>d.current?.removeEventListener("change",C)},[C]),(0,g.jsxs)("div",{className:(0,j.default)("styles-module__inputWrapper___Gz12f",m&&_&&"styles-module__error___pCawp",t),children:[(0,g.jsxs)("label",{className:"styles-module__label___m2WKL",children:[(0,g.jsx)("input",{ref:e=>{(d.current=e,"function"==typeof o)?o(e):o?.current&&(o.current=e)},className:"visually-hidden",type:a?"text":"file",...s}),(0,g.jsx)(E.Condition,{value:f,then:(0,g.jsxs)("span",{className:"styles-module__fileInfo___NYeWL",children:[(0,g.jsx)("span",{className:"styles-module__fileInfo__name___ErKh3",children:(l=f?.name,u=l?.split("."),u?.splice(0,u.length-1).join(".")||"")}),(0,g.jsxs)("span",{className:"styles-module__fileInfo__type___AzUqp",children:[".",(c=f?.name,c?.split(".")?.pop()||"")]})]}),else:(0,g.jsx)("span",{className:"styles-module__placeholder___5MoLE",children:n})}),(0,g.jsx)(W.Icons.Plus,{className:"styles-module__icon___v3giL"})]}),m&&(0,g.jsx)(L.Typography,{as:"span",variant:"text_S",className:"styles-module__errorMessage___H9Jwp",children:_})]})}),q=()=>(0,g.jsx)(L.Typography,{as:"div",variant:"text_M",children:(0,g.jsxs)("ul",{className:"styles-module__requirementsList___oLFbx",children:[F.map(e=>(0,g.jsx)("li",{children:e},e)),(0,g.jsxs)("li",{children:[(0,g.jsx)(T.Button,{href:p.VERIFICATION_INSTRUCTIONS_URL,target:"_blank",customize:"underline_accent",children:"ÐнÑÑÑÑкÑÐ¸Ñ Ð¿Ð¾ загÑÑзке докÑменÑов"}),"."]})]})}),Z=({phoneConfirmed:e})=>{let{captchaForUpdate:t,captchaForSendSms:r,captchaHandlers:{onCaptchaForUpdate:n,onCaptchaForSendSms:i}}=S();return e?(0,g.jsx)(R.SmartCaptcha,{mode:"invisible",isActive:t.isActive,onSuccess:n},t.captchaKey):(0,g.jsx)(R.SmartCaptcha,{mode:"invisible",isActive:r.isActive,onSuccess:i},r.captchaKey)},Q=()=>{let{isBirthdayValid:e,regUserIsLoading:t,regUserWithManualVerificationIsLoading:r,sendSmsIsLoading:n,values:{phoneConfirmed:i}}=S(),{docState:{docValues:a,docController:s,onDocSubmit:o}}=z(),l=!(a.document_file&&e),u=r||n||t;return(0,g.jsxs)(A.Card,{className:(0,j.default)("styles-module__wrapper___h2KJk","styles-module__wrapper_manual___6Px-6"),children:[(0,g.jsx)(L.Typography,{className:"styles-module__title___W8Tap",as:"h3",variant:"text_L",children:"ÐагÑÑзи ÑоÑо пеÑвой ÑÑÑаниÑÑ Ð´Ð¾ÐºÑменÑа"}),(0,g.jsxs)("div",{className:"styles-module__form___DK1Xi",children:[(0,g.jsx)($,{placeholder:"ÐагÑÑзиÑÑ Ð´Ð¾ÐºÑменÑ",accept:".jpg, .jpeg, .jpe, .jfif, .jp2, .pcx, .bpm, .gif, .png, .pdf, .tiff, .tif",controller:s("document_file"),isLoading:u,readOnly:u}),(0,g.jsx)(q,{}),(0,g.jsx)(T.Button,{className:"styles-module__form__submitButton___I-29k",type:"button",disabled:l,loading:u,onClick:o,children:"ÐÑпÑавиÑÑ"}),(0,g.jsx)(Z,{phoneConfirmed:i})]})]})},G=({controller:e})=>(0,g.jsxs)(A.Card,{className:(0,j.default)("styles-module__card___JY2Gc","styles-module__card_manual___VBIqc"),children:[(0,g.jsx)(L.Typography,{className:"styles-module__card__title___3vs5l",as:"h1",variant:"heading_M",children:"ÐодÑвеÑдиÑÑ Ð²Ð¾Ð·ÑаÑÑ"}),(0,g.jsxs)(L.Typography,{className:"styles-module__card__description___qZUyK",variant:"text_L",children:["Ð ÑÑÐ½Ð°Ñ Ð¿ÑовеÑка докÑменÑов. ÐоÑле пÑовеÑки ÑÑ ÑможеÑÑ Ð·Ð°Ð²ÐµÑÑиÑÑ ÑегиÑÑÑаÑиÑ.",(0,g.jsx)("br",{}),"СпеÑиалиÑÑÑ Ð¿ÑовеÑÑÑ Ð´Ð¾ÐºÑменÑÑ, и, еÑли даннÑе коÑÑекÑнÑ, аккаÑÐ½Ñ Ð±ÑÐ´ÐµÑ Ð²ÐµÑиÑиÑиÑован."]}),(0,g.jsx)(k.Input,{className:"styles-module__card__dateInput___SPovx",label:"ÐаÑа ÑождениÑ",placeholder:"ÐаÑа ÑождениÑ",type:"date",controller:e("birthday"),required:!0}),(0,g.jsx)(Q,{})]});var J=e.i(28078),Y=e.i(35906);let X={title:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("strong",{children:"Ð ÑÑнаÑ"})," пÑовеÑка докÑменÑа"]}),descriptions:["паÑпоÑÑ Ð Ð¤","загÑаниÑнÑй паÑпоÑÑ","водиÑелÑÑкое ÑдоÑÑовеÑение"],time:30,type:C.VerificationTypes.Manual},ee=()=>{let{setValue:e,regStepAnalytic:t}=S(),n=(0,r.useMemo)(()=>[X],[]);return(0,g.jsx)("div",{className:"styles-module__wrapper___DRwlX",children:(0,g.jsx)("div",{className:"styles-module__variantList___sQGKR",children:n.map(({title:r,de
1scriptions:n,time:i,type:a})=>(0,g.jsxs)(A.Card,{className:"styles-module__variant___PBE7N",children:[(0,g.jsxs)(L.Typography,{className:"styles-module__variant__time___pWVWh",as:"span",variant:"text_M",children:[(0,g.jsx)("strong",{children:i})," мин"]}),(0,g.jsx)(L.Typography,{className:"styles-module__variant__title___zp7ZE",variant:"text_L",children:r}),(0,g.jsx)("ul",{className:"styles-module__variant__list___w3qfb",children:n.map(e=>(0,g.jsx)("li",{children:e},e))}),(0,g.jsx)(T.Button,{type:"button",className:"styles-module__variant__link___6FBtr",size:"small",onClick:()=>{let r;return r=a===C.VerificationTypes.Manual?"ÑÑÑнаÑ":"мгновеннаÑ",void(t("ageverification",u.RegStatus.error,r),e("verificationMethod",a))},children:"ÐÑбÑаÑÑ"})]},a))})})},et=()=>{let{selfieState:e}=z(),t=e.isSelfieAttemptsLimitReached||e.isSelfieServerLimitReached;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(A.Card,{className:Y.default.selfieWrapper,children:[(0,g.jsx)(L.Typography,{className:Y.default.selfieTitle,as:"h1",variant:"heading_M",children:"ÐодÑвеÑдиÑÑ Ð²Ð¾Ð·ÑаÑÑ"}),(0,g.jsxs)(L.Typography,{className:Y.default.selfieInfo,variant:"text_S",children:["ÐÑовеÑка возÑаÑÑа Ñ помоÑÑÑ ÑелÑи*. ",(0,g.jsx)("br",{})," ÐожалÑйÑÑа, ÑазÑеÑи доÑÑÑп к камеÑе."]}),(0,g.jsx)(J.SelfieField,{...e}),!e.selfieVerificationError&&(0,g.jsxs)("div",{className:Y.default.selfieNote,children:[(0,g.jsx)(L.Typography,{variant:"text_M",children:"Ðажно! ÐлÑ пÑовеÑки возÑаÑÑа по ÑелÑи необÑ
одимо ÑазÑеÑиÑÑ Ð´Ð¾ÑÑÑп к камеÑе."}),(0,g.jsx)(L.Typography,{variant:"text_M",children:"*СелÑи пÑовеÑÑеÑÑÑ Ð¸ÑкÑÑÑÑвеннÑм инÑеллекÑом и ÑдалÑеÑÑÑ ÑÑазÑ же поÑле пÑовеÑки."})]})]}),t&&(0,g.jsx)(ee,{})]})};var er=e.i(61850),en=e.i(16880);let ei=({controller:e})=>{let{values:{verificationMethod:t,phoneConfirmed:n},isValidAfterSelfieVerification:i,regUserIsLoading:a,sendSmsIsLoading:s,regStepAnalytic:o,handlers:{handleSubmit:l,handlePhoneSend:c}}=S(),{docState:{resetDocErrors:d}}=z();return(0,r.useEffect)(()=>{d()},[]),(0,g.jsxs)(A.Card,{className:"styles-module__wrapper___Zy9rp",children:[(0,g.jsx)(L.Typography,{className:"styles-module__title___x-bJ3",as:"h1",variant:"heading_M",children:"ÐодÑвеÑдиÑÑ Ð²Ð¾Ð·ÑаÑÑ"}),(0,g.jsxs)("div",{className:"styles-module__verificationForm___PwI9l",children:[(0,g.jsx)(en.SuccessMessage,{children:"СпаÑибо. ÐÑ Ð¿ÑоÑли веÑиÑикаÑиÑ. Ð
1аÑи изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ ÑдаленÑ."}),(0,g.jsx)(k.Input,{label:"ÐаÑа ÑождениÑ",placeholder:"ÐаÑа ÑождениÑ",type:"date",controller:e("birthday"),required:!0}),(0,g.jsx)(er.PoliticsAgreement,{controller:e,isSuccessForm:!0,verificationMethod:t}),(0,g.jsx)(T.Button,{className:"styles-module__verificationForm__submitButton___NeYY-",type:"button",customize:"filled",size:"large",disabled:!i,loading:n?a:s,onClick:()=>{n?l():c(),o("2",u.RegStatus.success)},children:"ÐÑодолжиÑÑ"}),(0,g.jsx)(V,{verificationMethod:t,phoneConfirmed:n})]})]})},ea=({className:e,controller:t})=>{let{values:r}=S(),{selfieState:{isSelfieVerified:n},docState:{isDocVerified:i}}=z(),{verificationMethod:a}=r;return(0,g.jsx)("div",{className:e,children:(0,g.jsx)(E.Condition,{value:!(n||i),then:(0,g.jsx)(E.Condition,{value:a===C.VerificationTypes.Manual,then:(0,g.jsx)(G,{controller:t}),else:(0,g.jsx)(et,{})}),else:(0,g.jsx)(ei,{controller:t})})})},es=({className:e,controller:t})=>(0,g.jsx)(K,{children:(0,g.jsx)(ea,{className:e,controller:t})}),eo=()=>{let{controller:e,step:t}=S();return(0,g.jsx)("form",{className:"styles-module__form___5JgVi",children:(0,g.jsx)(E.Condition,{value:[1===t,2===t],then:(0,g.jsx)(P,{controller:e}),elseIf:(0,g.jsx)(es,{controller:e}),else:(0,g.jsx)(I,{controller:e})})})};var el=e.i(1718);let eu=[f.RegMode.Default,f.RegMode.Strict],ec=()=>(0,g.jsx)(w,{children:(0,g.jsx)(ed,{})}),ed=()=>{let{user:e,paths:a,regInfo:s}=(0,i.useMainContext)(),{step:o,values:{verificationMethod:l}}=S(),u=(0,t.useRouter)(),c=(0,t.useSearchParams)(),d=e&&!e.isAgeVerified;return(0,r.useEffect)(()=>{let t=c.get("utm_reg");if(t&&n.default.set("utm_reg",t,{expires:365}),!e||e.isAgeVerified||e.ageVerificationMethod!==C.AgeVerificationMethods.Manual||e.ageVerificationStatus!==C.AgeVerificationStatuses.Failed){if(!e&&!s.phone)return void u.push(a.authorizationPath);s.regMode&&eu.includes(s.regMode)||u.push(a.authorizationPath)}},[s.regMode]),(0,g.jsx)(el.Layout,{start:!0,isDark:!0,contentKey:`${o}-${l}`,leftContent:(0,g.jsxs)(A.Card,{className:"styles-module__pageDescription___xf3sx",children:[(0,g.jsx)(L.Typography,{as:"h2",variant:"heading_M",children:(0,g.jsx)(E.Condition,{value:d,then:"ÐодÑвеÑди возÑаÑÑ, ÑÑÐ¾Ð±Ñ Ð¿ÑодолжиÑÑ",else:(0,g.jsxs)(g.Fragment,{children:["Твой Ð½Ð¾Ð¼ÐµÑ Ð½ÐµÂ Ð·Ð°ÑегиÑÑÑиÑован.",(0,g.jsx)("br",{}),"Создай ÑÑеÑнÑÑ Ð·Ð°Ð¿Ð¸ÑÑ,",(0,g.jsx)("br",{})," ÑÑÐ¾Ð±Ñ Ð¿ÑодолжиÑÑ."]})})}),(0,g.jsx)(L.Typography,{variant:"text_L",children:"ÐÑо Ð·Ð°Ð¹Ð¼ÐµÑ Ð²Ñего паÑÑ Ð¼Ð¸Ð½ÑÑ."}),!d&&(0,g.jsxs)(L.Typography,{variant:"text_L",children:["Шаг ",o," из 3"]})]}),rightContent:(0,g.jsx)(eo,{})})};e.s(["RegistrationPage",()=>ec],91759)}
1,7652,e=>{"use strict";var t=e.i(42954),r=e.i(93933);e.i(18566),e.i(71645),e.i(99011),e.i(7670);var n=e.i(42010),i=e.i(43476),a=e.i(56105);e.i(22016);var s=e.i(18737);e.i(37453),e.i(90841),e.i(14056),e.i(74080);var o=e.i(91894),l=e.i(1718);let u=({bottomContent:e})=>(0,i.jsx)(t.AuthProvider,{children:(0,i.jsx)(c,{bottomContent:e})}),c=({bottomContent:e})=>{let{siteType:t,isInitialLoading:u,backgroundUrls:c,isDark:d}=(0,r.useMainContext)();return u?null:(0,i.jsx)(l.Layout,{leftContent:(0,i.jsxs)(a.Card,{className:"styles-module__authInfo___kNRr5",children:[(0,i.jsxs)("h1",{className:"visually-hidden",children:["ÐÑиÑиалÑнÑй ÑÐ°Ð¹Ñ ",s.SITE_NAME[t]]}),(0,i.jsxs)(n.Typography,{as:"p",variant:"text_L",className:"styles-module__infoText___xM6Ul",children:["Ðа ÑайÑе ÑÐµÐ±Ñ Ð¶Ð´ÐµÑ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾Ð±Ð¾ вÑеÑ
пÑедложениÑÑ
",s.SITE_NAME[t],", иÑÑоÑÐ¸Ñ Ð»ÐµÐ³ÐµÐ½Ð´Ð°Ñного бÑенда и доÑÑÑп к ÑозÑгÑÑÑам кÑÑÑÑÑ
пÑизов."]})]}),rightContent:(0,i.jsx)(o.AuthorizationForm,{}),bottomContent:e,className:"styles-module__authPageLayout___cI0Vq",backgroundUrls:c,isDark:!c||d})};e.s(["AuthorizationPage",()=>u],7652)},92516,e=>{"use strict";var t=e.i(71645),r=e.i(93933),n=e.i(77753),i=e.i(7670),a=e.i(42010),s=e.i(43476),o=e.i(56105),l=e.i(56966),u=e.i(1718),c=e.i(79020);e.i(22016);var d="styles-module__successInfoItem___jhR85",f="styles-module__logo___Ka-Vk";let h={[n.SiteTypes.Kent]:(0,s.jsx)(c.Icons.LogoKent,{className:(0,i.default)(f,"styles-module__kent___9Nr1b"),width:50,height:22}),[n.SiteTypes.Vogue]:(0,s.jsx)(c.Icons.LogoVogue,{className:(0,i.default)(f,"styles-module__vogue___PpyHb"),width:71,height:39}),[n.SiteTypes.Rothmans]:(0,s.jsx)(c.Icons.LogoRothmans,{className:(0,i.default)(f,"styles-module__rothmans___CAKUQ"),width:84,height:20}),[n.SiteTypes.Dunhill]:(0,s.jsx)(c.Icons.LogoDunhill,{className:(0,i.default)(f,"styles-module__dunhill___LUi-I"),width:90,height:28}),[n.SiteTypes.Lucky]:(0,s.jsx)(c.Icons.LogoLucky,{className:(0,i.default)(f,"styles-module__luckyStrike___cnpWI"),width:37,height:37}),[n.SiteTypes.Yava]:(0,s.jsx)(c.Icons.LogoYava,{className:(0,i.default)(f,"styles-module__yava___q0OsZ"),width:39,height:39})},p=()=>{let[e,i]=(0,t.useState)(3),[c,f]=(0,t.useState)(""),[p,m]=(0,t.useState)(!1),{user:g,siteType:_,goBackUrl:y}
1=(0,r.useMainContext)(),C=!!g&&g?.ageVerificationMethod!==n.AgeVerificationMethods.Manual&&g?.ageVerificationStatus!==n.AgeVerificationStatuses.RequiredExternal;return(0,t.useEffect)(()=>{if(p){let t;return e>0&&(t=setInterval(()=>{i(e=>e-1),f(`${c}${e}${1===e?"":"..."}`)},1e3)),0===e&&y(!0),()=>clearInterval(t)}},[e,p]),(0,t.useEffect)(()=>{C&&setTimeout(()=>{m(!0)},2e3)},[C]),(0,s.jsx)(u.Layout,{leftContent:(0,s.jsxs)(o.Card,{className:"styles-module__successCard___9lP4S",children:[(0,s.jsxs)(a.Typography,{as:"h1",variant:"heading_M",children:["СпаÑибо",g?.name?`, ${g.name}`:"","!"]}),(0,s.jsx)(a.Typography,{as:"p",variant:"text_L",className:"styles-module__successDescription___MhquH",children:C?"Ð¢Ñ Ð¿ÑоÑел веÑиÑикаÑÐ¸Ñ Ð¸ Ñвои изобÑÐ°Ð¶ÐµÐ½Ð¸Ñ ÑдаленÑ.":"ÐÑÑалоÑÑ ÑовÑем ÑÑÑÑ-ÑÑÑÑ."}),!C&&(0,s.jsxs)(a.Typography,{as:"p",variant:"text_L",className:"styles-module__textWithPhone___6cAHv",children:["ЧÑÐ¾Ð±Ñ Ð·Ð°Ð²ÐµÑÑиÑÑ ÑегиÑÑÑаÑиÑ, позвони по номеÑÑ"," ",(0,s.jsx)(l.Button,{href:"tel:+78002007737",customize:"underline_accent",children:"+7 800 200 77 37"})]}),(0,s.jsx)(a.Typography,{as:"p",variant:"text_L",children:"РегиÑÑÑаÑÐ¸Ñ Ð±ÑÐ´ÐµÑ Ð´ÐµÐ¹ÑÑвиÑелÑна на ÑайÑаÑ
:"}),(0,s.jsx)("div",{className:"styles-module__siteLogos___uCZkD",children:Object.entries(h).filter(e=>e[0].toLowerCase()!==_.toLowerCase()).map(e=>(0,s.jsx)("div",{className:"styles-module__siteLogosItem___IcT1N",children:e[1]},e[0]))})]}),rightContent:(0,s.jsxs)("div",{className:"styles-module__successInfo___YA8RW",children:[p&&(0,s.jsxs)(a.Typography,{as:"span",variant:"text_M",className:d,children:["ÐвÑомаÑиÑеÑкий пеÑеÑ
од на ÑÐ°Ð¹Ñ ÑеÑез ",c]}),(0,s.jsxs)(a.Typography,{as:"span",variant:"text_M",className:d,children:["ÐаÑÑÑойки ÑаÑÑÑлок вÑегда можно поменÑÑÑ Ð² ",(0,s.jsx)("br",{})," лиÑном кабинеÑе."]})]}),className:"styles-module__successLayout___OBGyd",isDark:!0})};e.s(["VerificationCompletePage",()=>p],92516)},38207,e=>{"use strict";var t=e.i(22016),r=e.i(18566),n=e.i(93933),i=e.i(43476);function a({href:e,onClick:a,target:s,fallbackFn:o,...l}){let u=(0,r.useRouter)(),{user:c,isInitialLoading:d,isVerifiedUser:f,isDevMode:h,isAvSessionExpired:p,resetVerifiedSession:m,setRedirectionPath:g,showAuthModal:_,paths:{profilePath:y,protectedPaths:C}}=(0,n.useMainContext)();return(0,i.jsx)(t.default,{href:e,target:s,onClick:t=>{if(a?.(t),h||t.defaultPrevented||"_blank"===s||0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||d)return;if(p()){t.preventDefault(),m(),u.push("/");return}let r=function(e){let t="string"==typeof e?e:e.pathname??"";if(/^https?:\/\//i.test(t))try{return new URL(t).pathname}catch{return t}return t.split(/[?#]/)[0]}(e),n=r.startsWith(y);if(!n&&!C.some(e=>r.startsWith(e)))return;let i=!!(c?.isAgeVerified||f);n&&!c?.isAgeVerified&&f?(t.preventDefault(),g(r),_()):i||(t.preventDefault(),g(r),o?o(r):u.push("/"))},...l})}e.s(["ProtectedLink",()=>a])},87340,68131,61243,e=>{"use strict";e.i(77753),e.i(93933),e.i(71645),e.i(7670);var t=e.i(43476);e.i(22016),e.i(31931),e.i(53162),e.i(71370),e.i(91759),e.i(7652),e.i(92516);var r=e.i(42010),n=e.i(56105),i=e.i(56966),a=e.i(1718);e.i(18566),e.i(99011),e.i(90841),e.i(18737),e.i(14056);let s=()=>(0,t.jsx)(a.Layout,{leftContent:(0,t.jsxs)(n.Card,{className:"styles-module__card___DkZNg",children:[(0,t.jsx)(r.Typography,{as:"h1",variant:"heading_M",children:"ÐоÑÑа подÑвеÑждена"}),(0,t.jsx)(r.Typography,{as:"p",variant:"text_L",children:"ÐÑиÑ
оди на ÑÐ°Ð¹Ñ â Ñ Ð½Ð°Ñ Ð¼Ð½Ð¾Ð³Ð¾ инÑеÑеÑного"}),(0,t.jsx)(i.Button,{className:"styles-module__card__button___q-bJX",customize:"filled",size:"large",href:"/",children:"ÐеÑейÑи на ÑайÑ"})]}),center:!0,isDark:!0});e.s(["EmailConfirmPage",()=>s],68131);let o=()=>(0,t.jsx)(a.Layout,{centerContent:(0,t.jsx)(r.Typography,{as:"h1",variant:"heading_L",children:"ÐÐ»Ñ Ð¿ÑÐ¾Ð´Ð¾Ð»Ð¶ÐµÐ½Ð¸Ñ Ð²Ð°Ð¼ необÑ
одимо ÑоглаÑиÑÑÑÑ Ñ Ð¿Ð¾Ð»Ð¸Ñиками обÑабоÑки пеÑÑоналÑнÑÑ
даннÑÑ
и поделиÑÑÑÑ ÐºÐ¾Ð½ÑакÑом."}),center:!0,isDark:!0});e.s(["MaxAuthFailPage",()=>o],61243),e.i(38207),e.i(21832),e.s([],87340)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.