(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25164,e=>{"use strict";var t=e.i(5500);e.s(["default",()=>t.Image])},67034,(e,t,r)=>{var n={872:function(e,t){"use strict";t.byteLength=function(e){var t=o(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,l=o(e),a=l[0],s=l[1],c=new i((a+s)*3/4-s),h=0,u=s>0?a-4:a;for(r=0;r<u;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)],c[h++]=t>>16&255,c[h++]=t>>8&255,c[h++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[h++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[h++]=t>>8&255,c[h++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,l=[],a=0,s=n-i;a<s;a+=16383)l.push(function(e,t,n){for(var i,l=[],a=t;a<n;a+=3)i=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),l.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return l.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?l.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&l.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),l.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=l.length;a<s;++a)r[a]=l[a],n[l.charCodeAt(a)]=a;function o(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},230:function(e,t,r){"use strict";var n=r(872),i=r(321),l="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(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 h(e)}return o(e,t,r)}function o(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);var l=0|f(n,i),o=a(l),c=o.write(n,i);return c!==l&&(o=o.slice(0,c)),o}if(ArrayBuffer.isView(e))return u(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(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(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),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var h=e.valueOf&&e.valueOf();if(null!=h&&h!==e)return s.from(h,t,r);var d=function(e){if(s.isBuffer(e)){var t=0|p(e.length),r=a(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)?a(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(d)return d;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.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 c(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 h(e){return c(e),a(e<0?0:0|p(e))}function u(e){for(var t=e.length<0?0:0|p(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.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}}(),!s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return o(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return h(e)},s.allocUnsafeSlow=function(e){return h(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(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 _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(i)return n?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var i,l,a,s=!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="",l=t;l<r;++l)i+=R[e[l]];return i}(this,t,r);case"utf8":case"utf-8":return v(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,l=t,a=r,0===l&&a===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(l,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",l=0;l<n.length;l+=2)i+=String.fromCharCode(n[l]+256*n[l+1]);return i}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){var l;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(l=r*=1)!=l&&(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=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(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 y(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var l,a=1,s=e.length,o=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;a=2,s/=2,o/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var h=-1;for(l=r;l<s;l++)if(c(e,l)===c(t,-1===h?0:l-h)){if(-1===h&&(h=l),l-h+1===o)return h*a}else -1!==h&&(l-=l-h),h=-1}else for(r+o>s&&(r=s-o),l=r;l>=0;l--){for(var u=!0,p=0;p<o;p++)if(c(e,l+p)!==c(t,p)){u=!1;break}if(u)return l}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.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,l=Math.min(r,n);i<l;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},s.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}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var l=e[r];if(T(l,Uint8Array)&&(l=s.from(l)),!s.isBuffer(l))throw TypeError('"list" argument must be an Array of Buffers');l.copy(n,i),i+=l.length}return n},s.byteLength=f,s.prototype._isBuffer=!0,s.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)g(this,t,t+1);return this},s.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)g(this,t,t+3),g(this,t+1,t+2);return this},s.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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.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+">"},l&&(s.prototype[l]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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 l=i-n,a=r-t,o=Math.min(l,a),c=this.slice(n,i),h=e.slice(t,r),u=0;u<o;++u)if(c[u]!==h[u]){l=c[u],a=h[u];break}return l<a?-1:+(a<l)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)};function v(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var l,a,s,o,c=e[i],h=null,u=c>239?4:c>223?3:c>191?2:1;if(i+u<=r)switch(u){case 1:c<128&&(h=c);break;case 2:(192&(l=e[i+1]))==128&&(o=(31&c)<<6|63&l)>127&&(h=o);break;case 3:l=e[i+1],a=e[i+2],(192&l)==128&&(192&a)==128&&(o=(15&c)<<12|(63&l)<<6|63&a)>2047&&(o<55296||o>57343)&&(h=o);break;case 4:l=e[i+1],a=e[i+2],s=e[i+3],(192&l)==128&&(192&a)==128&&(192&s)==128&&(o=(15&c)<<18|(63&l)<<12|(63&a)<<6|63&s)>65535&&o<1114112&&(h=o)}null===h?(h=65533,u=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=u}var p=n,f=p.length;if(f<=4096)return String.fromCharCode.apply(String,p);for(var d="",g=0;g<f;)d+=String.fromCharCode.apply(String,p.slice(g,g+=4096));return d}function x(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 b(e,t,r,n,i,l){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<l)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,l){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,l){return t*=1,r>>>=0,l||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function C(e,t,r,n,l){return t*=1,r>>>=0,l||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}s.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,l,a,s,o,c,h,u,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!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 l=t.length;n>l/2&&(n=l/2);for(var a=0;a<n;++a){var s,o=parseInt(t.substr(2*a,2),16);if((s=o)!=s)break;e[r+a]=o}return a}(this,e,t,r);case"utf8":case"utf-8":return i=t,l=r,$(_(e,this.length-i),this,i,l);case"ascii":return a=t,s=r,$(A(e),this,a,s);case"latin1":case"binary":return function(e,t,r,n){return $(A(t),e,r,n)}(this,e,t,r);case"base64":return o=t,c=r,$(L(e),this,o,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=t,u=r,$(function(e,t){for(var r,n,i=[],l=0;l<e.length&&!((t-=2)<0);++l)n=(r=e.charCodeAt(l))>>8,i.push(r%256),i.push(n);return i}(e,this.length-h),this,h,u);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.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,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,l=0;++l<t&&(i*=256);)n+=this[e+l]*i;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=this[e],i=1,l=0;++l<t&&(i*=256);)n+=this[e+l]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);for(var n=t,i=1,l=this[e+--n];n>0&&(i*=256);)l+=this[e+--n]*i;return l>=(i*=128)&&(l-=Math.pow(2,8*t)),l},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var l=1,a=0;for(this[t]=255&e;++a<r&&(l*=256);)this[t+a]=e/l&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var l=r-1,a=1;for(this[t+l]=255&e;--l>=0&&(a*=256);)this[t+l]=e/a&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(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},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(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},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var l=0,a=1,s=0;for(this[t]=255&e;++l<r&&(a*=256);)e<0&&0===s&&0!==this[t+l-1]&&(s=1),this[t+l]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var l=r-1,a=1,s=0;for(this[t+l]=255&e;--l>=0&&(a*=256);)e<0&&0===s&&0!==this[t+l+1]&&(s=1),this[t+l]=(e/a|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(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},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(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},s.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.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 l=i-1;l>=0;--l)e[l+t]=this[l+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},s.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&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,l=e.charCodeAt(0);("utf8"===n&&l<128||"latin1"===n)&&(e=l)}}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 a=s.isBuffer(e)?e:s.from(e,n),o=a.length;if(0===o)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%o]}return this};var E=/[^+/0-9A-Za-z-_]/g;function _(e,t){t=t||1/0;for(var r,n=e.length,i=null,l=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&l.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&l.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&l.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;l.push(r)}else if(r<2048){if((t-=2)<0)break;l.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;l.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;l.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return l}function A(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function L(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(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 T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=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}()},321:function(e,t){t.read=function(e,t,r,n,i){var l,a,s=8*i-n-1,o=(1<<s)-1,c=o>>1,h=-7,u=r?i-1:0,p=r?-1:1,f=e[t+u];for(u+=p,l=f&(1<<-h)-1,f>>=-h,h+=s;h>0;l=256*l+e[t+u],u+=p,h-=8);for(a=l&(1<<-h)-1,l>>=-h,h+=n;h>0;a=256*a+e[t+u],u+=p,h-=8);if(0===l)l=1-c;else{if(l===o)return a?0/0:(f?-1:1)*2e308;a+=Math.pow(2,n),l-=c}return(f?-1:1)*a*Math.pow(2,l-n)},t.write=function(e,t,r,n,i,l){var a,s,o,c=8*l-i-1,h=(1<<c)-1,u=h>>1,p=5960464477539062e-23*(23===i),f=n?0:l-1,d=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||1/0===t?(s=+!!isNaN(t),a=h):(a=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+u>=1?t+=p/o:t+=p*Math.pow(2,1-u),t*o>=2&&(a++,o/=2),a+u>=h?(s=0,a=h):a+u>=1?(s=(t*o-1)*Math.pow(2,i),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;e[r+f]=255&s,f+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+f]=255&a,f+=d,a/=256,c-=8);e[r+f-d]|=128*g}}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},a=!0;try{n[e](r,r.exports,l),a=!1}finally{a&&delete i[e]}return r.exports}l.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=l(230)},18566,(e,t,r)=>{t.exports=e.r(76562)},19233,28569,35314,83410,e=>{"use strict";let t,r;var n,i,l=e.i(43476),a=e.i(71645);let s=/#/g,o=/&/g,c=/\//g,h=/=/g,u=/\+/g,p=/%5e/gi,f=/%60/gi,d=/%7c/gi,g=/%20/gi;function m(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(d,"|").replace(u,"%2B").replace(g,"+").replace(s,"%23").replace(o,"%26").replace(f,"`").replace(p,"^").replace(c,"%2F")}function y(e){return m(e).replace(h,"%3D")}function v(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let x=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,b=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,w=/^([/\\]\s*){2,}[^/\\]/,k=/^\.?\//;function C(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(k,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}let E=Symbol.for("ufo:protocolRelative");function _(e=""){let[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}let A=async(e,t="common",r="v1")=>{try{let n=await fetch(C(e,`api/${r}/login-widget`,t));return n.ok?await n.json():(console.error(`Ошибка ${n.status} при загрузке конфига для ${t}`),{})}catch(e){return console.error(`Сетевая ошибка при загрузке конфига для ${t}`,e),{}}};var L=l,$=e.i(65019),T=e.i(7670),R=e.i(12569),j=e.i(54061);let B={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},S=(0,j.g)("heading"),N=Object.freeze({heading:S,states:Object.freeze({display:`${S}--display`,hero:`${S}--hero`,h1:`${S}--h1`,h2:`${S}--h2`,h3:`${S}--h3`,h4:`${S}--h4`,h5:`${S}--h5`,h6:`${S}--h6`})}),O=({as:e,children:t,weight:r,type:n,lineClamp:i,className:a,style:s,dataQa:o,dataId:c,...h})=>{var u;let p=e||B[n]||"div",f=/^h[1-6]$/.test(p),d=(null==(u=n.match(/\d+/))?void 0:u[0])||1;return(0,l.jsx)(p,{className:(0,T.f)(N.heading,N.states[n],a),style:{...r?{fontWeight:`var(--font-weight-${r})`}:void 0,...i?{WebkitLineClamp:i,lineClamp:i,...R.l}:void 0,...s},role:f?null:"heading","aria-level":f?null:d,...h,"data-id":c,"data-qa":o,children:t})};O.displayName="Heading",e.i(8145);var I=e.i(13757),M=e.i(43489),z=e.i(53760),P=e.i(58950),F=e.i(2753),Z=e.i(14044);let U=(0,j.g)("tooltip"),q=Object.freeze({tooltip:U,text:`${U}__text`,wrapper:`${U}__wrapper`,inverted:`${U}--inverted`}),V=({children:e,moveToBody:t})=>t?(0,l.jsx)(M.r,{id:F.T,children:e}):(0,l.jsx)(l.Fragment,{children:e}),D=(0,a.forwardRef)(({position:e="top",text:t,zIndex:r=1,inverted:n,withoutTail:i,children:s,boundingOffset:o=12,boundaryPadding:c,moveToBody:h=!1,hideWhenOutOfBounds:u=!1,style:p,className:f,dataQa:d,dataId:g,...m},y)=>{let[v,x]=(0,a.useState)(!1),b=(0,a.useRef)(null),{refs:w,floatingStyles:k,context:C,middlewareData:E}=(0,M.E)({open:v,onOpenChange:x,placement:e,whileElementsMounted:z.n,middleware:[(0,P.T)({mainAxis:o}),(0,P.x)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==c&&{padding:c}}),(0,P.e)({...void 0!==c&&{padding:c}}),(0,P.P)({element:b,padding:8}),...u?[(0,P.c)({strategy:"escaped",padding:-24})]:[]]}),_=(0,M.V)(C,{delay:300}),{getReferenceProps:A,getFloatingProps:L}=(0,M.t)([_]),$=(0,M.z)(C,{duration:300});return(0,a.useImperativeHandle)(y,()=>({getActivatorElement:w.reference,getTooltipElement:w.floating})),(0,a.useEffect)(()=>{var e;(null==(e=E.hide)?void 0:e.escaped)&&x(!1)},[E.hide]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{"data-qa":(0,Z.g)(`${d}-activator`,!!d),ref:w.setReference,...A,className:q.wrapper,children:s}),$.isMounted&&(0,l.jsx)(V,{moveToBody:h,children:(0,l.jsxs)("div",{role:"tooltip",ref:w.setFloating,style:{...k,...$.styles,...p,zIndex:r},className:(0,T.f)(q.tooltip,f,{[q.inverted]:n}),...L,...m,"data-qa":d,"data-id":g,children:[(0,l.jsx)("span",{className:(0,T.f)(q.text,{[q.inverted]:n}),children:t}),!i&&(0,l.jsx)(M.$,{ref:b,context:C,width:16,d:"M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z",fill:n?"var(--color-white)":"var(--color-black-500)"})]})})]})});D.displayName="Tooltip";let H=function(){for(var e,t,r=0,n="";r<arguments.length;)(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))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(n&&(n+=" "),n+=t);return n};var Q=e.i(96347);e.i(34348);var K=e.i(47611),G=e.i(71121),Y=e.i(91784);e.i(21496);var W=e.i(62383),X=e.i(91390);let J=(0,a.forwardRef)(({maskOpts:e,value:t="",autoFocus:r=!1,onChange:n,onKeyDown:i,...s},o)=>{let[c,h]=(0,a.useState)(""),{ref:u,setValue:p,unmaskedValue:f}=(0,W.f)(e,{onAccept:(e,t)=>{h(e),null==n||n(t.unmaskedValue,e)}});return(0,a.useEffect)(()=>{t!==f&&(p(t),h(t))},[t,p,f]),(0,a.useImperativeHandle)(o,()=>u.current),(0,l.jsx)(X.I,{...s,autoFocus:r,inputRef:u,value:c,onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),p(""),h(""),null==n||n("","")),null==i||i(e)}})});function ee(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M12.004 7.246A1.247 1.247 0 0 1 10.75 6c0-.69.558-1.253 1.25-1.253.69 0 1.25.56 1.25 1.25 0 .688-.559 1.248-1.246 1.25ZM10.75 12c0 .686.559 1.252 1.254 1.247a1.252 1.252 0 0 0 1.246-1.25c0-.69-.56-1.25-1.25-1.25-.692 0-1.25.564-1.25 1.253Zm0 6c0 .686.559 1.253 1.254 1.247a1.252 1.252 0 0 0 1.246-1.25c0-.69-.56-1.25-1.25-1.25-.692 0-1.25.564-1.25 1.253Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}J.displayName="InputMasked";var et=e.i(3315);e.i(89485);var er=e.i(2404);function en(e){return a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.836 6.466a1.5 1.5 0 0 1-.051 2.12l-9.45 9a1.5 1.5 0 0 1-2.07 0l-4.05-3.857a1.5 1.5 0 1 1 2.07-2.172L9.3 14.429l8.415-8.015a1.5 1.5 0 0 1 2.121.052Z"}))}function ei(e){return a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}let el=["checkbox"],ea=(0,j.g)("common-marker"),es={marker:ea,icon:`${ea}__icon`,states:{checkbox:`${ea}--checkbox`,radio:`${ea}--radio`,toggle:`${ea}--toggle`,error:`${ea}--error`,checked:`${ea}--checked`,disabled:`${ea}--disabled`,inverted:`${ea}--inverted`,indeterminate:`${ea}--indeterminate`}},eo=({as:e,state:t="default",type:r="checkbox",className:n,checked:i,inverted:a,disabled:s,...o})=>(0,l.jsx)(e||"span",{...o,className:(0,T.f)(n,es.marker,{[es.states.checkbox]:"checkbox"===r,[es.states.radio]:"radio"===r,[es.states.toggle]:"toggle"===r,[es.states.checked]:!!i,[es.states.indeterminate]:"indeterminate"===i,[es.states.error]:"error"===t,[es.states.inverted]:a,[es.states.disabled]:s}),children:el.includes(r)&&(0,l.jsx)(er.P,{className:(0,T.f)(es.icon,{[es.states.checked]:i,[es.states.inverted]:a,[es.states.error]:"error"===t,[es.states.disabled]:s}),children:"indeterminate"===i?(0,l.jsx)(ei,{}):(0,l.jsx)(en,{})})});eo.displayName="CommonMarker";let ec=(0,j.g)("checkbox"),eh=Object.freeze({checkbox:ec,input:`${ec}__input`,marker:`${ec}__marker`,wrapper:`${ec}__wrapper`,label:`${ec}__label`,caption:`${ec}__caption`,icon:`${ec}__icon`,iconButton:`${ec}__icon-button`,states:{error:`${ec}--error`,disabled:`${ec}--disabled`,inverted:`${ec}--inverted`},sizes:{xs:`${ec}--xs`,s:`${ec}--s`,m:`${ec}--m`},variants:{primary:`${ec}--primary`,secondary:`${ec}--secondary`}}),eu=(0,a.forwardRef)(({value:e=!1,variant:t="primary",state:r="default",label:n,disabled:i=!1,caption:s,className:o,icon:c,withIcon:h=!1,size:u="m",style:p,inverted:f=!1,children:d,inputRef:g,dataQa:m,dataId:y,onChange:v,onIconClick:x,...b},w)=>{let[k,C]=function(e,t){let[r,n]=(0,a.useState)(e);return(0,a.useEffect)(()=>{void 0!==t&&n(t)},[JSON.stringify(t)]),[r,n]}(!1,e),E=(0,a.useId)(),_=d||n;return(0,l.jsxs)("label",{ref:w,htmlFor:E,"data-marker-label":"",className:(0,T.f)(o,eh.checkbox,{[eh.states.inverted]:f,[eh.states.disabled]:i,[eh.states.error]:"error"===r,[eh.sizes[u]]:!0,[eh.variants[t]]:!0}),style:p,"data-id":y,"data-qa":m,children:[(0,l.jsx)("input",{id:E,ref:g,value:String(k),className:eh.input,type:"checkbox","aria-invalid":"error"===r,disabled:i,onChange:e=>{let t="string"==typeof k?!!k:!k;C(t),null==v||v(t,e)},...b}),(0,l.jsx)("span",{className:eh.marker,children:(0,l.jsx)(eo,{type:"checkbox",checked:k,inverted:f,state:r,disabled:i})}),_&&(0,l.jsxs)("span",{className:eh.wrapper,children:[(0,l.jsx)("span",{className:(0,T.f)(eh.label),children:_}),s&&(0,l.jsx)(et.C,{className:eh.caption,withoutIcon:!0,children:s})]}),h&&(0,l.jsx)("button",{type:"button",className:(0,T.f)(eh.iconButton),onClick:i?void 0:x,children:(0,l.jsx)(er.P,{className:(0,T.f)(eh.icon),children:c?(0,l.jsx)(l.Fragment,{children:c}):(0,l.jsx)(ee,{})})})]})});function ep(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}eu.displayName="Checkbox";let ef=ep(),ed=/[&<>"']/,eg=RegExp(ed.source,"g"),em=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ey=RegExp(em.source,"g"),ev={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ex=e=>ev[e];function eb(e,t){if(t){if(ed.test(e))return e.replace(eg,ex)}else if(em.test(e))return e.replace(ey,ex);return e}let ew=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,ek=/(^|[^\[])\^/g;function eC(e,t){let r="string"==typeof e?e:e.source;t=t||"";let n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(ek,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}function eE(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}let e_={exec:()=>null};function eA(e,t){let r=e.replace(/\|/g,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function eL(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n;){let l=e.charAt(n-i-1);if(l!==t||r)if(l!==t&&r)i++;else break;else i++}return e.slice(0,n-i)}function e$(e,t,r,n){let i=t.href,l=t.title?eb(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;let e={type:"link",raw:r,href:i,title:l,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,e}return{type:"image",raw:r,href:i,title:l,text:eb(a)}}class eT{options;rules;lexer;constructor(e){this.options=e||ef}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eL(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t){let r=e.match(/^(\s+)(?:```)/);if(null===r)return t;let n=r[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[r]=t;return r.length>=n.length?e.slice(n.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=eL(e,"#");this.options.pedantic?e=t.trim():(!t||/ $/.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n    $1");e=eL(e.replace(/^ *>[ \t]?/gm,""),"\n");let r=this.lexer.state.top;this.lexer.state.top=!0;let n=this.lexer.blockTokens(e);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:n,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let l=RegExp(`^( {0,3}${r})((?:[	 ][^\\n]*)?(?:\\n|$))`),a="",s="",o=!1;for(;e;){let r,n=!1;if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let c=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),h=e.split("\n",1)[0],u=0;this.options.pedantic?(u=2,s=c.trimStart()):(u=(u=t[2].search(/[^ ]/))>4?1:u,s=c.slice(u),u+=t[1].length);let p=!1;if(!c&&/^ *$/.test(h)&&(a+=h+"\n",e=e.substring(h.length+1),n=!0),!n){let t=RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),r=RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),n=RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),i=RegExp(`^ {0,${Math.min(3,u-1)}}#`);for(;e;){let l=e.split("\n",1)[0];if(h=l,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),n.test(h)||i.test(h)||t.test(h)||r.test(e))break;if(h.search(/[^ ]/)>=u||!h.trim())s+="\n"+h.slice(u);else{if(p||c.search(/[^ ]/)>=4||n.test(c)||i.test(c)||r.test(c))break;s+="\n"+h}p||h.trim()||(p=!0),a+=l+"\n",e=e.substring(l.length+1),c=h.slice(u)}}!i.loose&&(o?i.loose=!0:/\n *\n *$/.test(a)&&(o=!0));let f=null;this.options.gfm&&(f=/^\[[ xX]\] /.exec(s))&&(r="[ ] "!==f[0],s=s.replace(/^\[[ xX]\] +/,"")),i.items.push({type:"list_item",raw:a,task:!!f,checked:r,loose:!1,text:s,tokens:[]}),i.raw+=a}i.items[i.items.length-1].raw=a.trimEnd(),i.items[i.items.length-1].text=s.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let r=eA(t[1]),n=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let e of n)/^ *-+: *$/.test(e)?l.align.push("right"):/^ *:-+: *$/.test(e)?l.align.push("center"):/^ *:-+ *$/.test(e)?l.align.push("left"):l.align.push(null);for(let e of r)l.header.push({text:e,tokens:this.lexer.inline(e)});for(let e of i)l.rows.push(eA(e,l.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:eb(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;let t=eL(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])t++;else if(")"===e[r]&&--t<0)return r;return -1}(t[2]);if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(e)?r.slice(1):r.slice(1,-1)),e$(t,{href:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r,title:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(/\s+/g," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return e$(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,i,l,a=r,s=0,o="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=o.exec(t));){if(!(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(l=[...i].length,n[3]||n[4]){a+=l;continue}if((n[5]||n[6])&&r%3&&!((r+l)%3)){s+=l;continue}if((a-=l)>0)continue;l=Math.min(l,l+a+s);let t=[...n[0]][0].length,o=e.slice(0,r+n.index+t+l);if(Math.min(r,l)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," "),r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=eb(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return r="@"===t[2]?"mailto:"+(e=eb(t[1])):e=eb(t[1]),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])r="mailto:"+(e=eb(t[0]));else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0])e=eb(t[0]),r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:eb(t[0]),{type:"text",raw:t[0],text:e}}}}let eR=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ej=/(?:[*+-]|\d{1,9}[.)])/,eB=eC(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ej).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),eS=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,eN=/(?!\s*\])(?:\\.|[^\[\]\\])+/,eO=eC(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",eN).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),eI=eC(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ej).getRegex(),eM="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ez=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,eP=eC("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",ez).replace("tag",eM).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eF=eC(eS).replace("hr",eR).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eM).getRegex(),eZ={blockquote:eC(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eF).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:eO,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:eR,html:eP,lheading:eB,list:eI,newline:/^(?: *(?:\n|$))+/,paragraph:eF,table:e_,text:/^[^\n]+/},eU=eC("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",eR).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eM).getRegex(),eq={...eZ,table:eU,paragraph:eC(eS).replace("hr",eR).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eU).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eM).getRegex()},eV={...eZ,html:eC("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ez).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:e_,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:eC(eS).replace("hr",eR).replace("heading"," *#{1,6} *[^\n]").replace("lheading",eB).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},eD=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,eH=/^( {2,}|\\)\n(?!\s*$)/,eQ="\\p{P}\\p{S}",eK=eC(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,eQ).getRegex(),eG=eC(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,eQ).getRegex(),eY=eC("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,eQ).getRegex(),eW=eC("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,eQ).getRegex(),eX=eC(/\\([punct])/,"gu").replace(/punct/g,eQ).getRegex(),eJ=eC(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),e1=eC(ez).replace("(?:-->|$)","-->").getRegex(),e0=eC("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",e1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),e2=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,e3=eC(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",e2).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),e4=eC(/^!?\[(label)\]\[(ref)\]/).replace("label",e2).replace("ref",eN).getRegex(),e5=eC(/^!?\[(ref)\](?:\[\])?/).replace("ref",eN).getRegex(),e7=eC("reflink|nolink(?!\\()","g").replace("reflink",e4).replace("nolink",e5).getRegex(),e6={_backpedal:e_,anyPunctuation:eX,autolink:eJ,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:eH,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:e_,emStrongLDelim:eG,emStrongRDelimAst:eY,emStrongRDelimUnd:eW,escape:eD,link:e3,nolink:e5,punctuation:eK,reflink:e4,reflinkSearch:e7,tag:e0,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:e_},e8={...e6,link:eC(/^!?\[(label)\]\((.*?)\)/).replace("label",e2).getRegex(),reflink:eC(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",e2).getRegex()},e9={...e6,escape:eC(eD).replace("])","~|])").getRegex(),url:eC(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},te={...e9,br:eC(eH).replace("{2,}","*").getRegex(),text:eC(e9.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tt={normal:eZ,gfm:eq,pedantic:eV},tr={normal:e6,gfm:e9,breaks:te,pedantic:e8};class tn{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ef,this.options.tokenizer=this.options.tokenizer||new eT,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:tt.normal,inline:tr.normal};this.options.pedantic?(t.block=tt.pedantic,t.inline=tr.pedantic):this.options.gfm&&(t.block=tt.gfm,this.options.breaks?t.inline=tr.breaks:t.inline=tr.gfm),this.tokenizer.rules=t}static get rules(){return{block:tt,inline:tr}}static lex(e,t){return new tn(t).lex(e)}static lexInline(e,t){return new tn(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){let r,n,i,l;for(e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,r)=>t+"    ".repeat(r.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),(n=t[t.length-1])&&("paragraph"===n.type||"text"===n.type)?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),(n=t[t.length-1])&&("paragraph"===n.type||"text"===n.type)?(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{"number"==typeof(t=e.call({lexer:this},n))&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){n=t[t.length-1],l&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),l=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,i,l,a,s,o=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(o));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.anyPunctuation.exec(o));)o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),(n=t[t.length-1])&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,o,s))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let t,r=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(e=>{"number"==typeof(t=e.call({lexer:this},n))&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}}class ti{options;constructor(e){this.options=e||ef}code(e,t,r){let n=(t||"").match(/^\S*/)?.[0];return(e=e.replace(/\n$/,"")+"\n",n)?'<pre><code class="language-'+eb(n)+'">'+(r?e:eb(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:eb(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e,t){return e}heading(e,t,r){return`<h${t}>${e}</h${t}>
`}hr(){return"<hr>\n"}list(e,t,r){let n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e,t,r){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,t){let r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){let n=eE(e);if(null===n)return r;let i='<a href="'+(e=n)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+r+"</a>"}image(e,t,r){let n=eE(e);if(null===n)return r;e=n;let i=`<img src="${e}" alt="${r}"`;return t&&(i+=` title="${t}"`),i+=">"}text(e){return e}}class tl{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class ta{options;renderer;textRenderer;constructor(e){this.options=e||ef,this.options.renderer=this.options.renderer||new ti,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new tl}static parse(e,t){return new ta(t).parse(e)}static parseInline(e,t){return new ta(t).parseInline(e)}parse(e,t=!0){let r="";for(let n=0;n<e.length;n++){let i=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){r+=e||"";continue}}switch(i.type){case"space":continue;case"hr":r+=this.renderer.hr();continue;case"heading":r+=this.renderer.heading(this.parseInline(i.tokens),i.depth,this.parseInline(i.tokens,this.textRenderer).replace(ew,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""));continue;case"code":r+=this.renderer.code(i.text,i.lang,!!i.escaped);continue;case"table":{let e="",t="";for(let e=0;e<i.header.length;e++)t+=this.renderer.tablecell(this.parseInline(i.header[e].tokens),{header:!0,align:i.align[e]});e+=this.renderer.tablerow(t);let n="";for(let e=0;e<i.rows.length;e++){let r=i.rows[e];t="";for(let e=0;e<r.length;e++)t+=this.renderer.tablecell(this.parseInline(r[e].tokens),{header:!1,align:i.align[e]});n+=this.renderer.tablerow(t)}r+=this.renderer.table(e,n);continue}case"blockquote":{let e=this.parse(i.tokens);r+=this.renderer.blockquote(e);continue}case"list":{let e=i.ordered,t=i.start,n=i.loose,l="";for(let e=0;e<i.items.length;e++){let t=i.items[e],r=t.checked,a=t.task,s="";if(t.task){let e=this.renderer.checkbox(!!r);n?t.tokens.length>0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=e+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=e+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",text:e+" "}):s+=e+" "}s+=this.parse(t.tokens,n),l+=this.renderer.listitem(s,a,!!r)}r+=this.renderer.list(l,e,t);continue}case"html":r+=this.renderer.html(i.text,i.block);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(i.tokens));continue;case"text":{let l=i,a=l.tokens?this.parseInline(l.tokens):l.text;for(;n+1<e.length&&"text"===e[n+1].type;)a+="\n"+((l=e[++n]).tokens?this.parseInline(l.tokens):l.text);r+=t?this.renderer.paragraph(a):a;continue}default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}parseInline(e,t){t=t||this.renderer;let r="";for(let n=0;n<e.length;n++){let i=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=e||"";continue}}switch(i.type){case"escape":case"text":r+=t.text(i.text);break;case"html":r+=t.html(i.text);break;case"link":r+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":r+=t.image(i.href,i.title,i.text);break;case"strong":r+=t.strong(this.parseInline(i.tokens,t));break;case"em":r+=t.em(this.parseInline(i.tokens,t));break;case"codespan":r+=t.codespan(i.text);break;case"br":r+=t.br();break;case"del":r+=t.del(this.parseInline(i.tokens,t));break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return r}}class ts{options;constructor(e){this.options=e||ef}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}let to=new class{defaults=ep();options=this.setOptions;parse=this.#e(tn.lex,ta.parse);parseInline=this.#e(tn.lexInline,ta.parseInline);Parser=ta;Renderer=ti;TextRenderer=tl;Lexer=tn;Tokenizer=eT;Hooks=ts;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":for(let e of n.header)r=r.concat(this.walkTokens(e.tokens,t));for(let e of n.rows)for(let n of e)r=r.concat(this.walkTokens(n.tokens,t));break;case"list":r=r.concat(this.walkTokens(n.items,t));break;default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let i=e[n].flat(1/0);r=r.concat(this.walkTokens(i,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];r?t.renderers[e.name]=function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new ti(this.defaults);for(let r in e.renderer){if(!(r in t))throw Error(`renderer '${r}' does not exist`);if("options"===r)continue;let n=e.renderer[r],i=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new eT(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ts;for(let r in e.hooks){if(!(r in t))throw Error(`hook '${r}' does not exist`);if("options"===r)continue;let n=e.hooks[r],i=t[r];ts.passThroughHooks.has(r)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(n.call(t,e)).then(e=>i.call(t,e));let r=n.call(t,e);return i.call(t,r)}:t[r]=(...e)=>{let r=n.apply(t,e);return!1===r&&(r=i.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return tn.lex(e,t??this.defaults)}parser(e,t){return ta.parse(e,t??this.defaults)}#e(e,t){return(r,n)=>{let i={...n},l={...this.defaults,...i};!0===this.defaults.async&&!1===i.async&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);let a=this.#t(!!l.silent,!!l.async);if(null==r)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof r)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(t=>e(t,l)).then(e=>l.hooks?l.hooks.processAllTokens(e):e).then(e=>l.walkTokens?Promise.all(this.walkTokens(e,l.walkTokens)).then(()=>e):e).then(e=>t(e,l)).then(e=>l.hooks?l.hooks.postprocess(e):e).catch(a);try{l.hooks&&(r=l.hooks.preprocess(r));let n=e(r,l);l.hooks&&(n=l.hooks.processAllTokens(n)),l.walkTokens&&this.walkTokens(n,l.walkTokens);let i=t(n,l);return l.hooks&&(i=l.hooks.postprocess(i)),i}catch(e){return a(e)}}}#t(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+eb(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function tc(e,t){return to.parse(e,t)}tc.options=tc.setOptions=function(e){return to.setOptions(e),tc.defaults=to.defaults,ef=tc.defaults,tc},tc.getDefaults=ep,tc.defaults=ef,tc.use=function(...e){return to.use(...e),tc.defaults=to.defaults,ef=tc.defaults,tc},tc.walkTokens=function(e,t){return to.walkTokens(e,t)},tc.parseInline=to.parseInline,tc.Parser=ta,tc.parser=ta.parse,tc.Renderer=ti,tc.TextRenderer=tl,tc.Lexer=tn,tc.lexer=tn.lex,tc.Tokenizer=eT,tc.Hooks=ts,tc.parse=tc,tc.options,tc.setOptions,tc.use,tc.walkTokens,tc.parseInline,ta.parse,tn.lex;let th=(0,j.g)("tag"),tu=Object.freeze({tag:th,label:`${th}__label`,icon:`${th}__icon`,rounded:`${th}--rounded`,variant:{primary:`${th}--primary`,secondary:`${th}--secondary`,outline:`${th}--outline`,tertiary:`${th}--tertiary`,pink:`${th}--pink`,red:`${th}--red`,green:`${th}--green`,blue:`${th}--blue`,orange:`${th}--orange`,purple:`${th}--purple`,violet:`${th}--violet`,blur:`${th}--blur`},size:{s:`${th}--s`,m:`${th}--m`,l:`${th}--l`},iconMargin:{left:`${th}__icon--left`,right:`${th}__icon--right`}}),tp=(0,a.forwardRef)(({label:e,size:t="m",rounded:r,variant:n="primary",iconLeft:i,iconRight:a,onIconLeftClick:s,onIconRightClick:o,className:c,style:h,dataQa:u,dataId:p,...f},d)=>(0,l.jsx)(l.Fragment,{children:e&&(0,l.jsxs)("div",{ref:d,className:(0,T.f)(tu.tag,tu.variant[n],tu.size[t],{[tu.rounded]:r},c),style:h,...f,"data-id":p,"data-qa":u,children:[i&&(0,l.jsx)("button",{type:"button",className:(0,T.f)(tu.icon,tu.iconMargin.left,{[tu.size.l]:"l"===t}),onClick:e=>null==s?void 0:s(e),disabled:!s,children:i}),(0,l.jsx)("span",{className:(0,T.f)(tu.label,tu.size[t]),children:e}),a&&(0,l.jsx)("button",{type:"button",className:(0,T.f)(tu.icon,tu.iconMargin.right,{[tu.size.l]:"l"===t}),onClick:e=>null==o?void 0:o(e),disabled:!o,children:a})]})}));tp.displayName="Tag";var tf=e.i(67034);Object.freeze({643:"RUB",840:"USD",978:"EUR",36:"AUD",944:"AZN",826:"GBP",51:"AMD",933:"BYN",975:"BGN",986:"BRL",348:"HUF",704:"VND",344:"HKD",981:"GEL",208:"DKK",784:"AED",818:"EGP",356:"INR",360:"IDR",398:"KZT",124:"CAD",634:"QAR",417:"KGS",156:"CNY",498:"MDL",554:"NZD",578:"NOK",985:"PLN",946:"RON",960:"XDR",702:"SGD",972:"TJS",764:"THB",949:"TRY",934:"TMT",860:"UZS",980:"UAH",203:"CZK",752:"SEK",756:"CHF",941:"RSD",710:"ZAR",410:"KRW",392:"JPY"});let td=Object.freeze({RUB:"₽",USD:"$",EUR:"€",AUD:"AU$",AZN:"₼",GBP:"£",AMD:"֏",BYN:"Br",BGN:"лв",BRL:"R$",HUF:"Ft",VND:"₫",HKD:"HK$",GEL:"₾",DKK:"kr",AED:"د.إ.",EGP:"E£",INR:"₹",IDR:"Rp",KZT:"₸",CAD:"CA$",QAR:"ر.ق.",KGS:"с",CNY:"CN¥",MDL:"L",NZD:"NZ$",NOK:"kr",PLN:"zł",RON:"L",XDR:"XDR",SGD:"S$",TJS:"SM",THB:"฿",TRY:"₺",TMT:"T",UZS:"сум",UAH:"₴",CZK:"Kč",SEK:"kr",CHF:"₣",RSD:"дин",ZAR:"R",KRW:"₩",JPY:"¥"});var tg=((n=tg||{}).Pending="pending",n.Success="success",n);function tm(e,t){try{let r,{hasCurrencySymbol:n=!0,currencyCode:i,decimalCount:l=2,decimalSeparator:a=",",thousandsSeparator:s=" ",decimalIsWithoutZeros:o=!0,preventLargeNumbers:c=!1}=t||{},h=e;if("string"==typeof h&&(h=h.replace(/\s+/g,"").replace(",",".")),h=Number(h)||0,c&&(r=function(e,t){if(e>=1e9){let r=(Math.floor(e/1e9*1e3)/1e3).toString();return r.includes(".")?r.replace(".",",").replace(/0+$/,"")+t+"млрд":r+t+"млрд"}if(e>=1e6){let r=(Math.floor(e/1e6*1e3)/1e3).toString();return r.includes(".")?r.replace(".",",").replace(/0+$/,"")+t+"млн":r+t+"млн"}return e>=1e4&&e<=99999?Math.trunc(e):e}(h,s)),!c||c&&"number"==typeof r){let e,t=Number(r??h),n=c&&t>1e3?0:(e=Math.abs(Number(l)),Number.isNaN(e)?2:e),i=Math.abs(t).toFixed(n),u=parseInt(i,10);r=function({money:e,moneyInt:t,thousandsSeparator:r}){let n=t.toString(),i=RegExp(n.length>4?"(\\d{3})(?=\\d)":"(\\d{4})(?=\\d)","g"),l=n.length>4?n.length%3:0;return(e<0?"-":"")+(l?n.substr(0,l)+r:"")+n.substr(l).replace(i,`$1${r}`)}({money:t,moneyInt:u,thousandsSeparator:s})+function({money:e,moneyInt:t,decimalCount:r,decimalSeparator:n,decimalIsWithoutZeros:i}){let l=Math.abs(e-t).toFixed(r),a=i?l.slice(2).replace(/0+$/,""):l.slice(2);return!r||0===(Number(e)||0)||i&&0===parseFloat(l)||""===a?"":n+a}({money:Number(i),moneyInt:u,decimalCount:n,decimalSeparator:a,decimalIsWithoutZeros:o})}return r+(n?`\xa0${td[i]||td.RUB}`:"")}catch(e){return console.log(e),""}}function ty(e,t,r=!1){if(!Array.isArray(t))throw Error("Plurals must be type of Array<String>");let[n,i,l]=t,a=Math.abs(+e);return(a%=100)>=5&&a<=20?r?l:`${e} ${l}`:1==(a%=10)?r?n:`${e} ${n}`:a>=2&&a<=4?r?i:`${e} ${i}`:r?l:`${e} ${l}`}let tv="function"==typeof atob,tx="function"==typeof btoa,tb="function"==typeof tf.Buffer,tw=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),tk=(t={},tw.forEach((e,r)=>t[e]=r),t),tC=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,tE=String.fromCharCode.bind(String),t_="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=e=>e)=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),tA=tx?e=>btoa(e):tb?e=>tf.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,n,i,l="",a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");l+=tw[(t=r<<16|n<<8|i)>>18&63]+tw[t>>12&63]+tw[t>>6&63]+tw[63&t]}return a?l.slice(0,a-3)+"===".substring(a):l},tL=tv?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):tb?e=>tf.Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!tC.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let l=0;l<e.length;)t=tk[e.charAt(l++)]<<18|tk[e.charAt(l++)]<<12|(n=tk[e.charAt(l++)])<<6|(i=tk[e.charAt(l++)]),r+=64===n?tE(t>>16&255):64===i?tE(t>>16&255,t>>8&255):tE(t>>16&255,t>>8&255,255&t);return r};var t$=((i=t$||{}).PERSISTENT_STATE="persistentState",i);e.s(["i",0,"dd.MM.yy","j",0,tm,"I",0,function(e){let t=e;return"string"==typeof t&&(t=t.replace(",",".")),t=(Number(t)||0).toString().replace(".",","),`${t}%`},"V",0,ty],28569),e.i(51966);var tT=e.i(30755);e.s(["f",()=>tT.T],35314);var tT=tT;let tR=[{name:"Browser Loona",regex:/\bSapphire(?:\/[0-9.]+)?/i}],tj="function"==typeof tf.Buffer,tB=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),tS=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),tN=(r={},tS.forEach((e,t)=>r[e]=t),r),tO=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,tI=String.fromCharCode.bind(String),tM="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),tz="function"==typeof btoa?e=>btoa(e):tj?e=>tf.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,n,i,l="",a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");l+=tS[(t=r<<16|n<<8|i)>>18&63]+tS[t>>12&63]+tS[t>>6&63]+tS[63&t]}return a?l.slice(0,a-3)+"===".substring(a):l},tP=tj?e=>tf.Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(tI.apply(null,e.subarray(r,r+4096)));return tz(t.join(""))},tF=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?tI(192|t>>>6)+tI(128|63&t):tI(224|t>>>12&15)+tI(128|t>>>6&63)+tI(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return tI(240|t>>>18&7)+tI(128|t>>>12&63)+tI(128|t>>>6&63)+tI(128|63&t)},tZ=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,tU=tj?e=>tf.Buffer.from(e,"utf8").toString("base64"):tB?e=>tP(tB.encode(e)):e=>tz(e.replace(tZ,tF)),tq="function"==typeof atob?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):tj?e=>tf.Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!tO.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",n,i;for(let l=0;l<e.length;)t=tN[e.charAt(l++)]<<18|tN[e.charAt(l++)]<<12|(n=tN[e.charAt(l++)])<<6|(i=tN[e.charAt(l++)]),r+=64===n?tI(t>>16&255):64===i?tI(t>>16&255,t>>8&255):tI(t>>16&255,t>>8&255,255&t);return r},tV=({s3AssetsUrl:e,className:t,withLogo:r=!1,isNewYearLogo:n=!1,dataQa:i,brandmarkCode:l})=>{if(!e)return null;let a=n?C(e,"logo/finuslugi/lk-regular-new-year.svg"):C(e,"logo/finuslugi/lk-regular.svg"),s=C(e,`/images/logo-brandmark-bank-${l}.svg`);return(0,L.jsx)(L.Fragment,{children:r&&(0,L.jsxs)("div",{className:H("_logo_1y5yi_31",t),"data-qa":i,children:[(0,L.jsx)("img",{className:"_mainLogo_1y5yi_38",src:a,alt:"Логотип"}),l&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"_divider_1y5yi_46"}),(0,L.jsx)("img",{className:"_brandmarkLogo_1y5yi_42",src:s,alt:"Логотип партнера"})]})]})})};tV.displayName="Logo";let tD=({children:e,className:t,style:r,autoWidth:n,...i})=>(0,L.jsx)("span",{className:H(t,"_privateIcon_xcp32_1",n&&"_autoWidth_xcp32_14"),style:r,...i,children:e});tD.displayName="PrivateIcon";let tH="_buttons_1vnnm_31",tQ="_--disabled_1vnnm_38",tK="_buttonIcons_1vnnm_42",tG=({buttonsData:e,disabled:t=!1,primaryTextOverride:r,additionalTextOverride:n,extraTextOverride:i,onAnalyticsEvent:l,onOpen:a,linkTarget:s})=>{let{buttons:o,type:c}=e,h={primary:r,additional:n,extra:i};return o.length?(0,L.jsxs)(L.Fragment,{children:[1===o.length&&(0,L.jsx)(K.f,{dataQa:`login-widget-${c}-button`,as:"a",target:s,href:t?"#login-widget-consents":o[0].href,stretch:!0,variant:"primary"===c?"primary":"secondary",disabled:t,label:h[c]??o[0].label,iconLeft:h[c]?void 0:o[0].icon,onClick:()=>{null==l||l({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:o[0].type})}},`button-${c}`),o.length>1&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(K.f,{dataQa:`login-widget-${c}-button`,stretch:!0,variant:"primary"===c?"primary":"secondary",disabled:t,label:h[c]?(0,L.jsx)("span",{children:h[c]}):(0,G.k)("xs")&&o.length>5?(0,L.jsx)("span",{children:"Войти по ID"}):(0,L.jsx)("span",{className:tK,children:o.map(e=>e.icon?(0,L.jsx)(tD,{style:{lineHeight:0},children:e.icon},e.type):void 0)}),onClick:()=>null==a?void 0:a(c)},`button-${c}`)})]}):null};tG.displayName="ButtonsGroup";let tY=({buttonsList:e=[],isOpen:t=!1,buttonsType:r="",onAnalyticsEvent:n,onClose:i,linkTarget:l})=>{var s,o;let c=(0,a.useCallback)(e=>{null==n||n({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e}),setTimeout(()=>null==i?void 0:i())},[]);return(0,L.jsx)(Y.f,{header:{title:"Выберите способ входа"},open:t,onClose:i,dataQa:"login-widget-buttons-modal",children:(0,L.jsx)("div",{className:"_modalInner_1vnnm_71",children:null==(o=null==(s=e.find(e=>e.type===r))?void 0:s.buttons)?void 0:o.map(({type:e,href:t,caption:r,icon:n,secondaryIcon:i})=>(0,L.jsx)(K.f,{dataQa:`login-widget-buttons-modal-button-${null==e?void 0:e.toLowerCase()}`,as:"a",target:l,href:t,stretch:!0,variant:"secondary",label:r,iconLeft:i??n,onClick:()=>c(e)},`modal-button-${e}`))})})};tY.displayName="ButtonsModal";let tW=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:r,additionalTextOverride:n,extraTextOverride:i,onAnalyticsEvent:l,linkTarget:s})=>{let[o,c]=(0,a.useState)(!1),[h,u]=(0,a.useState)(),{primaryGroup:p,remainingGroup:f,isRemainingGroupVisible:d}=(0,a.useMemo)(()=>{let[t,...r]=e,n=r.some(({buttons:e})=>e.length);return{primaryGroup:t,remainingGroup:r,isRemainingGroupVisible:n}},[e]),g=(0,a.useCallback)(e=>{c(!0),u(e),null==l||l({eventCategory:"login-widget",eventAction:"click_popup_open",eventLabel:"popup_select_login_provider"})},[]),m=(0,a.useCallback)(()=>{c(!1),u(""),null==l||l({eventCategory:"login-widget",eventAction:"click_popup_close",eventLabel:"popup_select_login_provider"})},[]);return e.length?(0,L.jsxs)("div",{className:H(tH,{[tQ]:t}),"data-qa":"login-widget-buttons",children:[(0,L.jsx)(tG,{buttonsData:p,disabled:t,primaryTextOverride:r,onAnalyticsEvent:l,onOpen:g,linkTarget:s}),d&&(0,L.jsxs)(L.Fragment,{children:[!!p.buttons.length&&(0,L.jsx)(Q.f,{className:"_divider_1vnnm_47",content:"или",dataQa:"login-widget-buttons-divider"}),f.map(e=>(0,L.jsx)(tG,{buttonsData:e,additionalTextOverride:n,extraTextOverride:i,disabled:t,onAnalyticsEvent:l,onOpen:g,linkTarget:s},`group-${e.type}`))]}),(0,L.jsx)(tY,{buttonsList:e,buttonsType:h,isOpen:o,onAnalyticsEvent:l,onClose:m,linkTarget:s})]}):null};tW.displayName="Buttons";let tX=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:r,onAnalyticsEvent:n,linkTarget:i})=>{let l=(0,a.useCallback)(e=>{null==n||n({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e})},[]),{primaryGroup:s,remainingGroup:o,isRemainingGroupVisible:c}=(0,a.useMemo)(()=>{let[t,...r]=e;return{primaryGroup:t,remainingGroup:r.reduce((e,{buttons:t})=>[...e,...t],[]),isRemainingGroupVisible:r.some(({buttons:e})=>e.length)}},[e]);return e.length?(0,L.jsxs)("div",{className:H(tH,{[tQ]:t}),"data-qa":"login-widget-buttons",children:[(0,L.jsx)(tG,{buttonsData:s,disabled:t,primaryTextOverride:r,onAnalyticsEvent:n,linkTarget:i}),c&&(0,L.jsxs)(L.Fragment,{children:[!!s.buttons.length&&(0,L.jsx)(Q.f,{className:"_gridViewDivider_1vnnm_61",content:"или",dataQa:"login-widget-buttons-divider"}),(0,L.jsx)("div",{className:H("_gridView_1vnnm_51",{[tQ]:t}),"data-qa":"login-widget-buttons",children:o.map(e=>(0,L.jsx)(K.f,{appearance:"outline",stretch:!0,variant:"secondary",dataQa:`login-widget-${e.type}-button`,as:"a",target:i,href:e.href,disabled:t,label:(0,L.jsx)(tD,{className:tK,autoWidth:!0,children:e.icon},e.type),onClick:()=>l(e.type)},`button-${e.type}`))})]})]}):null};tX.displayName="ButtonsGrid";let tJ=({phone:e,onPhoneChange:t,buttonsList:r,disabled:n,primaryTextOverride:i,onAnalyticsEvent:l,linkTarget:a})=>(0,L.jsxs)("div",{className:H("_formView_1vnnm_65"),children:[(0,L.jsx)(J,{label:"Номер телефона",maskOpts:{mask:"+{7} (000) 000-00-00"},maskPlaceholder:"+7 (900) 777-77-77",maskPlaceholderVariant:"default",onChange:t,size:"m",value:e,variant:"primary"}),(0,L.jsx)(tX,{buttonsList:r,disabled:n,primaryTextOverride:i,onAnalyticsEvent:l,linkTarget:a})]});tJ.displayName="PhoneViewButtons";let t1=({template:e,onLinkClick:t})=>{if(!Object.keys(e).length||!e.links)return null;let{text:r,links:n}=e,i=r.split(/(\$\d+)/);return(0,L.jsx)(L.Fragment,{children:i.map(e=>{if(e.startsWith("$")){let r=n[parseInt(e.slice(1))-1];return(0,L.jsx)("a",{href:r.href,target:"_blank",rel:"noreferrer",onClick:()=>null==t?void 0:t(r.href),children:r.text},`link--${r.text}`)}return(0,L.jsx)("span",{children:e},`text--${e}`)})})};t1.displayName="TemplateText";let t0=({consents:e=[],onAgree:t,onError:r,onAnalyticsEvent:n})=>{let[i,l]=(0,a.useState)(()=>Object.fromEntries(e.map(e=>[e.key,e.value]))),s=e.filter(e=>!e.hidden),o=s.filter(e=>e.required).some(e=>!i[e.key]);(0,a.useEffect)(()=>{t(i)},[i]),(0,a.useEffect)(()=>{r(o)},[o]);let c=e=>{null==n||n({eventCategory:"login-widget",eventAction:"click_link_consent",eventLabel:e})};return e.length?(0,L.jsx)("div",{id:"login-widget-consents",className:"_consents_1v8l3_31","data-qa":"login-widget-consents",children:(0,L.jsx)("div",{className:"_list_1v8l3_31","data-qa":"login-widget-consents-list",children:s.map(({key:e,title:t,required:r})=>{var a;return(0,L.jsx)(eu,{dataQa:`login-widget-consents-checkbox-${e}`,className:H("_checkbox_1v8l3_36",{_error_1v8l3_46:!i[e]&&o}),state:r&&!i[e]?"error":"default",value:i[e],onChange:t=>{l(r=>({...r,[e]:t})),null==n||n({eventCategory:"login-widget",eventAction:"click_checkbox_consent",eventLabel:`${e}_${t?"tick":"untick"}`})},children:null!=(a=t.links)&&a.length?(0,L.jsx)(t1,{template:t,onLinkClick:c}):t.text},e)})})}):null};t0.displayName="Consents";let t2={check:(0,L.jsx)(e=>a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"a"},a.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),a.createElement("g",{clipPath:"url(#a)"},a.createElement("path",{d:"m10.53 16.53 8.25-8.25a.743.743 0 0 0 0-1.06.743.743 0 0 0-1.06 0L10 14.94l-3.72-3.72a.743.743 0 0 0-1.06 0 .743.743 0 0 0 0 1.06l4.25 4.25c.146.147.323.22.53.22a.722.722 0 0 0 .53-.22Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))),{}),cup:(0,L.jsx)(e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"a"},a.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),a.createElement("g",{clipPath:"url(#a)"},a.createElement("path",{d:"M16.619 3.039A1.748 1.748 0 0 0 16.25 3h-8.5a1.733 1.733 0 0 0-.968.292 1.757 1.757 0 0 0-.743 1.09c-.026.12-.039.242-.039.368V5H4.361c-.147 0-.256.006-.328.019-.13.023-.25.063-.36.12a1.243 1.243 0 0 0-.307.227 1.242 1.242 0 0 0-.347.667A2.058 2.058 0 0 0 3 6.361V8.75a3.249 3.249 0 0 0 .537 1.79 3.254 3.254 0 0 0 1.448 1.204 3.256 3.256 0 0 0 1.096.252 5.996 5.996 0 0 0 .39 1.34 6.009 6.009 0 0 0 1.286 1.907 6.003 6.003 0 0 0 2.94 1.616c.182.04.367.072.553.095V19.5h-4.5c-.42 0-.75.33-.75.75s.33.75.75.75h10.5c.42 0 .75-.33.75-.75s-.33-.75-.75-.75h-4.5v-2.546a5.838 5.838 0 0 0 1.586-.426 5.976 5.976 0 0 0 2.678-2.229 5.998 5.998 0 0 0 .905-2.303 3.217 3.217 0 0 0 1.622-.533 3.245 3.245 0 0 0 .922-.922A3.246 3.246 0 0 0 21 8.75V6.361c0-.147-.006-.256-.019-.328a1.241 1.241 0 0 0-1.014-1.014A2.058 2.058 0 0 0 19.639 5H18v-.25a1.746 1.746 0 0 0-.291-.967 1.743 1.743 0 0 0-.778-.645 1.738 1.738 0 0 0-.312-.1ZM7.75 4.5h8.5c.03.012.152.049.177.073.012.03.073.143.073.177V11a4.504 4.504 0 0 1-.353 1.752 4.487 4.487 0 0 1-1.686 2.017 4.496 4.496 0 0 1-4.212.378 4.472 4.472 0 0 1-1.431-.965 4.512 4.512 0 0 1-.965-1.43A4.469 4.469 0 0 1 7.5 11V4.75c.012-.03.049-.152.073-.177.025-.024.148-.06.177-.073Zm-3.25 2H6v3.983a1.73 1.73 0 0 1-.15-.029h-.001a1.744 1.744 0 0 1-1.068-.752A1.734 1.734 0 0 1 4.5 8.75V6.5Zm13.65 3.955c-.05.011-.1.02-.15.028V6.5h1.5v2.25a1.752 1.752 0 0 1-.281.952 1.76 1.76 0 0 1-1.07.753Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))),{}),shield:(0,L.jsx)(e=>a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M11.855 2c-.67 0-1.331.142-1.942.416L4.625 4.789A2.752 2.752 0 0 0 3 7.301v3.71c0 4.11 1.819 6.78 3.814 8.445a13.032 13.032 0 0 0 4.788 2.492c.261.07.533.069.792.002.68-.177 2.8-.81 4.766-2.309 1.986-1.513 3.84-3.935 3.84-7.63v-4.71a2.752 2.752 0 0 0-1.625-2.512l-5.287-2.373A4.747 4.747 0 0 0 12.145 2h-.29Zm-1.329 1.787a3.245 3.245 0 0 1 1.33-.285h.289c.458 0 .91.097 1.329.285L18.76 6.16c.45.201.739.648.739 1.14v4.712c0 3.108-1.53 5.125-3.248 6.434-1.738 1.324-3.639 1.895-4.234 2.05a.058.058 0 0 1-.031 0c-.587-.156-2.48-.745-4.212-2.192C6.065 16.875 4.5 14.608 4.5 11.01V7.3c0-.493.289-.94.739-1.141l5.287-2.373Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})),{}),"coat-of-arms":(0,L.jsx)(e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"a"},a.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),a.createElement("g",{clipPath:"url(#a)"},a.createElement("path",{d:"M10.22 3.28a.747.747 0 0 1-.165-.242A.745.745 0 0 1 10 2.75q0-.375.188-.563Q10.374 2 10.75 2h2.5c.104 0 .2.018.288.055.088.037.17.091.242.165.177.176.266.353.266.53 0 .177-.089.354-.266.53l-1.25 1.25q-.265.265-.53.265c-.177 0-.354-.088-.53-.265l-1.25-1.25ZM12 7.19l3.22-3.22a.722.722 0 0 1 .53-.22c.207 0 .384.073.53.22l1.25 1.25a.741.741 0 0 1 .22.53q0 .155-.055.288-.055.132-.165.242-.11.11-.242.165-.133.055-.288.055h-.849l-2.036 3.054.122.123c.171.17.3.36.385.566.085.206.128.43.128.671l1 .086c.083 0 .146-.02.188-.063.041-.041.062-.104.062-.187v-.25a.743.743 0 0 1 .186-.494l3.5-4a.744.744 0 0 1 .564-.256c.104 0 .2.018.288.055.088.037.17.091.242.165a.747.747 0 0 1 .165.242A.745.745 0 0 1 21 6.5v4.256c0 .69-.127 1.325-.38 1.905a4.716 4.716 0 0 1-1.138 1.575L17.26 16.3a.737.737 0 0 1-.361.185.736.736 0 0 1-.405-.03l-1.145-.416 1.712 1.711H18c.42 0 .75.33.75.75s-.33.75-.75.75h-1.25a.746.746 0 0 1-.288-.055.744.744 0 0 1-.242-.165l-2.077-2.076c-.115.08-.248.145-.396.193l2.14 3.458c.037.06.065.123.084.19q.015.05.022.102.007.05.007.103a.722.722 0 0 1-.22.53.722.722 0 0 1-.53.22h-6.5a.75.75 0 0 1-.395-.112.723.723 0 0 1-.335-.466.746.746 0 0 1-.013-.293.744.744 0 0 1 .105-.274l2.141-3.458a1.474 1.474 0 0 1-.396-.193L7.78 19.03q-.11.11-.242.165a.746.746 0 0 1-.288.055H6c-.42 0-.75-.33-.75-.75s.33-.75.75-.75h.94l1.71-1.711-1.144.416a.736.736 0 0 1-.405.03.737.737 0 0 1-.361-.185l-2.222-2.064a4.716 4.716 0 0 1-1.139-1.575Q3 11.791 3 10.756V6.5a.753.753 0 0 1 .256-.564.723.723 0 0 1 .544-.184.722.722 0 0 1 .514.254l3.5 4a.743.743 0 0 1 .174.36Q8 10.432 8 10.5v.25c0 .083.02.146.063.188.041.041.104.062.187.062h1c0-.242.043-.551.128-.758q.128-.309.385-.565l.122-.123L7.849 6.5H7a.749.749 0 0 1-.75-.75c0-.104.018-.2.055-.288a.745.745 0 0 1 .165-.242l1.25-1.25a.722.722 0 0 1 .53-.22c.207 0 .384.073.53.22L12 7.19Zm-1.425.696.899 1.348a.746.746 0 0 1-.094.946l-.557.557c-.012.03-.073.143-.073.177v.836a.722.722 0 0 1-.22.53.722.722 0 0 1-.53.22H8.25c-.583 0-1.02-.146-1.313-.438-.286-.286-.432-.713-.437-1.28l-2-2.286v2.26q0 .708.26 1.303c.173.398.432.757.779 1.078l1.885 1.752 2.32-.844a.722.722 0 0 1 .573.025.722.722 0 0 1 .388.424.744.744 0 0 1 .034.126l.008.064q.003.033.003.066v.75c0 .083.02.146.063.188.041.041.104.062.187.062h.536c.177 0 .331.053.464.16.06-.036.192-.112.259-.131a.746.746 0 0 1 .205-.029H13c.083 0 .146-.02.188-.063.041-.041.062-.104.062-.187v-.75c0-.207.073-.384.22-.53a.722.722 0 0 1 .66-.209.744.744 0 0 1 .126.034l2.32.844 1.885-1.752c.347-.321.606-.68.78-1.077.172-.397.259-.832.259-1.304v-2.26l-2 2.286c-.005.567-.151.994-.438 1.28-.291.292-.729.438-1.312.438H14a.722.722 0 0 1-.53-.22.722.722 0 0 1-.22-.53v-.836c-.012-.03-.049-.152-.073-.177l-.557-.557a.729.729 0 0 1-.216-.456.745.745 0 0 1 .122-.49l.899-1.348-.895.894A.722.722 0 0 1 12 9a.722.722 0 0 1-.53-.22l-.895-.894ZM12 17.175l-1.904 3.075h3.808L12 17.175Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))),{}),"octostar-check":(0,L.jsx)(e=>a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M10.005 2.865a2.73 2.73 0 0 1 3.99 0l.854.914c.245.262.59.405.949.393l1.25-.042a2.73 2.73 0 0 1 2.821 2.821l-.042 1.25c-.012.358.131.704.393.949l.914.854a2.73 2.73 0 0 1 0 3.99l-.914.854c-.262.245-.405.59-.393.949l.042 1.25a2.73 2.73 0 0 1-2.821 2.821l-1.25-.042a1.242 1.242 0 0 0-.949.393l-.854.914a2.73 2.73 0 0 1-3.99 0l-.854-.914a1.242 1.242 0 0 0-.949-.393l-1.25.042a2.73 2.73 0 0 1-2.821-2.821l.042-1.25a1.241 1.241 0 0 0-.393-.949l-.914-.854a2.73 2.73 0 0 1 0-3.99l.914-.854c.262-.245.405-.59.393-.949l-.042-1.25A2.73 2.73 0 0 1 6.952 4.13l1.25.042c.358.012.704-.131.949-.393l.854-.914Zm2.902 1.017a1.241 1.241 0 0 0-1.814 0l-.854.914a2.73 2.73 0 0 1-2.087.865l-1.25-.043a1.241 1.241 0 0 0-1.283 1.283l.043 1.25a2.73 2.73 0 0 1-.865 2.087l-.914.854a1.241 1.241 0 0 0 0 1.814l.914.854c.576.538.891 1.3.865 2.087l-.043 1.25a1.241 1.241 0 0 0 1.283 1.283l1.25-.043a2.731 2.731 0 0 1 2.087.865l.854.914c.49.525 1.323.525 1.814 0l.854-.914a2.731 2.731 0 0 1 2.087-.865l1.25.043a1.241 1.241 0 0 0 1.283-1.283l-.043-1.25a2.73 2.73 0 0 1 .865-2.087l.914-.854a1.241 1.241 0 0 0 0-1.814l-.914-.854a2.73 2.73 0 0 1-.865-2.087l.043-1.25a1.241 1.241 0 0 0-1.283-1.283l-1.25.043a2.73 2.73 0 0 1-2.087-.865l-.854-.914ZM15.03 9.97a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 0 1-1.06 0l-1.5-1.5a.75.75 0 1 1 1.06-1.06l.97.97 2.47-2.47a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})),{}),"shield-check":(0,L.jsx)(e=>a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0 1 11.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0 1 21 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 0 1-.792-.002 13.032 13.032 0 0 1-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373Zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 0 0 4.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 0 0 .03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 0 0-.739-1.14l-5.287-2.373a3.245 3.245 0 0 0-1.33-.285h-.289ZM15.78 9.22a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})),{})},t3=({highlights:e})=>{if(!e||!e.items.length)return null;let{items:t,heading:r}=e;return(0,L.jsxs)($.f,{variant:"secondary",dataQa:"login-widget-highlights",children:[r&&(0,L.jsx)(O,{as:"h5",type:"h5",className:"mb-2",dataQa:"login-widget-highlights-heading",children:r}),(0,L.jsx)("ul",{className:"_list_1896j_39","data-qa":"login-widget-highlights-list",children:(0,L.jsx)(L.Fragment,{children:t.map(({text:e,icon:t})=>(0,L.jsxs)("li",{className:"_item_1896j_47","data-qa":"login-widget-highlights-list-item",children:[(0,L.jsx)("div",{className:"_icon_1896j_61","data-qa":"login-widget-highlights-list-icon",children:t2[t]||t2.check}),(0,L.jsx)(I.f,{as:"p",dataQa:"login-widget-highlights-list-text",children:e})]},`${e}--${t}`))})})]})};t3.displayName="Highlights";let t4=({legalInfo:e,onAnalyticsEvent:t})=>{if(!e||Object.values(e).every(e=>!e))return null;let{plain:r,html:n,md:i}=e,l=i?tc.parse(i):n??"";return(0,L.jsx)("div",{className:"_legalInfo_hviu6_31","data-qa":"login-widget-legal-info",children:r?(0,L.jsx)(t1,{template:r,onLinkClick:e=>{null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:e})}}):(0,L.jsx)("div",{dangerouslySetInnerHTML:{__html:l},onClick:e=>{let{href:r}=e.target;r&&(null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:r}))}})})};t4.displayName="LegalInfo";let t5={DAY:["день","дня","дней"],MONTH:["мес.","мес.","мес."],YEAR:["год","года","лет"],TERMLESS:["бессрочный","бессрочный","бессрочный"]},t7={deposit:"Вклад",credit:"Кредит",bond:"Облигация",account:"Счет","banking-account":"Банковский счет"},t6={productCard:"_productCard_1y8pb_31","--credits":"_--credits_1y8pb_34",detailRate:"_detailRate_1y8pb_34","--bond":"_--bond_1y8pb_37",headingWrap:"_headingWrap_1y8pb_41",wrapper:"_wrapper_1y8pb_49",info:"_info_1y8pb_55",logo:"_logo_1y8pb_61",textWrapper:"_textWrapper_1y8pb_70",text:"_text_1y8pb_70",label:"_label_1y8pb_94",details:"_details_1y8pb_110",detail:"_detail_1y8pb_34",detailTitle:"_detailTitle_1y8pb_122",detailValue:"_detailValue_1y8pb_128"},t8=({title:e,value:t,className:r,...n})=>(0,L.jsxs)("div",{className:t6.detail,...n,children:[(0,L.jsx)(tT.T,{dataQa:"login-widget-product-card-detail-title",className:t6.detailTitle,children:e}),(0,L.jsx)(tT.T,{dataQa:"login-widget-product-card-detail-value",className:(H(t6.detailValue),r),children:t})]});t8.displayName="ProductDetail";let t9=({params:e})=>{if(!e)return null;let{amount:t,rate:r}=e??{},n=(e=>{if(!(e instanceof Date))return null;let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),n=e.getFullYear();return`${t}.${r}.${n}`})(e.endDate),i=e.term,l=[{id:"params-rate",title:"Ставка",value:`${r}%`},{id:"params-amount",title:"Сумма",value:`${tm(null==t?void 0:t.value,{preventLargeNumbers:!0,currencyCode:(null==t?void 0:t.currency)??"RUB"})}`},{id:i?"params-term":n?"params-end-date":"",title:i?"Срок":n?"Погашение":"",value:i?`${ty(i.value,t5[i.type??"DAY"])}`:n||""}];return(0,L.jsx)("div",{className:t6.details,"data-qa":"login-widget-product-card-details",children:l.map(({id:e,title:t,value:r})=>(0,L.jsx)(t8,{"data-qa":`login-widget-product-card-detail-${e}`,title:t,value:r,className:H({[t6.detailRate]:"params-rate"===e})},e))})};t9.displayName="ProductDetails";let re=({productInfo:e,s3AssetsUrl:t,className:r,onAnalyticsEvent:n})=>{let i=(0,a.useRef)(null),l=!e||!Object.keys(e).length,s=!i.current||!Object.keys(i.current).length;if((0,a.useEffect)(()=>{var t;l&&!s?null==n||n({eventCategory:"login-widget",eventAction:"view_product_delete",eventLabel:(null==(t=i.current)?void 0:t.type)??void 0}):!l&&s?null==n||n({eventCategory:"login-widget",eventAction:"view_product_add",eventLabel:e.type??void 0}):l||s||null==n||n({eventCategory:"login-widget",eventAction:"view_product_update",eventLabel:e.type??void 0}),i.current=e},[e]),l)return null;let{title:o,label:c,type:h,params:u,provider:p}=e,f=C(t,`/images/logo-brandmark-bank-${null==p?void 0:p.code}.svg`),d=null==p?void 0:p.code,g=h?t7[h]:"";return(0,L.jsxs)($.f,{variant:"secondary",className:H(t6.productCard,{[t6[`--${h}`]??""]:!0},r),dataQa:"login-widget-product-card",children:[(0,L.jsxs)("div",{className:H("mb-3",t6.headingWrap),children:[(0,L.jsx)(O,{as:"h5",type:"h5",dataQa:"login-widget-product-card-heading",children:"Выбранный продукт"}),c&&(0,L.jsx)(tp,{label:c,rounded:!0,size:"s",variant:"red",dataQa:"login-widget-product-card-label"})]}),(0,L.jsxs)("div",{className:t6.wrapper,children:[(0,L.jsxs)("div",{className:t6.info,"data-qa":"login-widget-product-card-info",children:[d&&(0,L.jsx)("img",{className:t6.logo,loading:"lazy",width:"100%",height:"36px",src:f,alt:"Логотип продукта","data-qa":"login-widget-product-card-logo"}),(0,L.jsxs)("div",{className:t6.textWrapper,children:[g&&(0,L.jsx)(I.f,{as:"p",dataQa:"login-widget-product-card-title",className:t6.text,children:g}),o&&(0,L.jsx)(I.f,{as:"p",dataQa:"login-widget-product-card-text",className:t6.text,children:o})]})]}),(0,L.jsx)(t9,{params:u})]})]})};re.displayName="ProductCard";let rt=Object.freeze({ESIA:{label:"Войти через Госуслуги",caption:"Госуслуги",icon:e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M10.8103 12.2093H8.5558C8.5328 12.2093 8.52129 12.2206 8.50979 12.2432C8.45228 13.2503 8.25673 14.3252 7.98067 15.2078C7.98067 15.2192 7.98067 15.2305 7.99217 15.2418C8.00368 15.2531 8.01518 15.2531 8.02668 15.2531H8.79736C8.82036 15.2531 8.83187 15.2418 8.83187 15.2305C9.05041 14.5516 9.22295 13.6689 9.29197 12.9221H10.0281V15.2192C10.0281 15.2418 10.0511 15.2644 10.0741 15.2644H10.8103C10.8333 15.2644 10.8563 15.2418 10.8563 15.2192V12.2432C10.8563 12.2206 10.8333 12.2093 10.8103 12.2093V12.2093ZM20.346 12.2093H19.6098C19.5868 12.2093 19.5638 12.2319 19.5638 12.2545V14.5516C19.4028 14.5968 19.2417 14.6194 19.0577 14.6194C18.5746 14.6194 18.4595 14.4723 18.4595 13.8387V12.2545C18.4595 12.2319 18.4365 12.2093 18.4135 12.2093H17.6889C17.6659 12.2093 17.6429 12.2319 17.6429 12.2545V13.9179C17.6429 14.9589 17.9994 15.3549 18.9081 15.3549C19.4258 15.3549 20.0124 15.2192 20.3575 15.0947C20.369 15.0834 20.3805 15.0721 20.3805 15.0607V12.2545C20.392 12.2206 20.369 12.2093 20.346 12.2093V12.2093ZM4.74844 12.2093H4.00077C3.97777 12.2093 3.96626 12.2206 3.96626 12.2432C3.85124 12.6958 3.60968 13.4653 3.28761 14.2687L2.53994 12.2432C2.52844 12.2319 2.51693 12.2206 2.50543 12.2206H1.74626C1.73476 12.2206 1.72325 12.2319 1.71175 12.2432C1.70025 12.2545 1.70025 12.2658 1.71175 12.2772L2.83901 15.3097C2.72398 15.5473 2.62046 15.7397 2.51693 15.9207C2.43642 16.0565 2.3674 16.1923 2.29838 16.3281C2.28688 16.3394 2.28688 16.3507 2.29838 16.362C2.30989 16.3733 2.32139 16.3846 2.33289 16.3846H3.14958C3.16108 16.3846 3.18409 16.3733 3.18409 16.362C3.32212 16.1018 3.49466 15.7397 3.65569 15.3663C4.1388 14.2574 4.51839 13.2163 4.80595 12.2658C4.80595 12.2545 4.80595 12.2432 4.79445 12.2319C4.77145 12.2093 4.75994 12.2093 4.74844 12.2093V12.2093ZM7.42855 14.5516C7.42855 14.5402 7.41704 14.5289 7.40554 14.5289H7.37103C7.18699 14.5968 6.85342 14.6421 6.62336 14.6421C6.10575 14.6421 5.86419 14.5063 5.86419 13.7368C5.86419 13.1145 5.94471 12.8316 6.62336 12.8316C6.81891 12.8316 6.99145 12.8542 7.2215 12.9221C7.24451 12.9221 7.25601 12.9221 7.26751 12.8995C7.34803 12.7411 7.45155 12.5487 7.56658 12.3111V12.2772C7.56658 12.2658 7.55508 12.2545 7.54357 12.2545C7.24451 12.164 6.88792 12.1074 6.56585 12.1074C5.49611 12.1074 5.013 12.6053 5.013 13.7255C5.013 14.8571 5.49611 15.3663 6.56585 15.3663C6.83041 15.3663 7.37103 15.3097 7.62409 15.2078C7.6471 15.1965 7.6586 15.1739 7.6471 15.1513L7.42855 14.5516V14.5516ZM14.4336 12.2093H13.686C13.663 12.2093 13.6515 12.2206 13.6515 12.2432C13.5364 12.7071 13.2949 13.4653 12.9728 14.2687L12.2251 12.2432C12.2136 12.2319 12.2021 12.2206 12.1906 12.2206H11.4315C11.42 12.2206 11.4084 12.2319 11.3969 12.2432C11.3854 12.2545 11.3854 12.2658 11.3969 12.2772L12.5242 15.3097C12.4092 15.5473 12.3057 15.7397 12.2021 15.9207C12.1216 16.0565 12.0526 16.1923 11.9836 16.3394C11.9721 16.3507 11.9721 16.362 11.9836 16.3733C11.9951 16.3846 12.0066 16.396 12.0181 16.396H12.8348C12.8463 16.396 12.8693 16.3846 12.8693 16.3733C13.0073 16.1131 13.1799 15.751 13.3409 15.3776C13.8125 14.2687 14.2036 13.2276 14.4911 12.2772C14.4911 12.2658 14.4911 12.2545 14.4796 12.2432C14.4566 12.2093 14.4451 12.2093 14.4336 12.2093V12.2093ZM17.1943 12.2093H15.0203C14.9973 12.2093 14.9743 12.2319 14.9743 12.2545V15.2305C14.9743 15.2531 14.9973 15.2757 15.0203 15.2757H15.7564C15.7794 15.2757 15.8024 15.2531 15.8024 15.2305V12.9334H16.9412C16.9527 12.9334 16.9757 12.9221 16.9757 12.9108C17.0677 12.7071 17.1483 12.4921 17.2403 12.2772V12.2432C17.2173 12.2093 17.2058 12.2093 17.1943 12.2093",fill:"currentColor"}),a.createElement("path",{d:"M5.62258 7.63786C4.56434 7.63786 4.15025 8.09048 4.15025 9.23334C4.15025 10.3988 4.56434 10.8514 5.62258 10.8514C6.69233 10.8514 7.10642 10.3988 7.10642 9.23334C7.10642 8.07917 6.69233 7.63786 5.62258 7.63786ZM5.62258 10.1838C5.13947 10.1838 4.98994 10.0594 4.98994 9.24465C4.98994 8.38468 5.15098 8.30547 5.62258 8.30547C6.10569 8.30547 6.26673 8.38468 6.26673 9.24465C6.26673 10.0594 6.1172 10.1838 5.62258 10.1838ZM10.0511 10.0594C10.0511 10.048 10.0396 10.0367 10.0281 10.0367H9.99357C9.80953 10.1046 9.47596 10.1499 9.24591 10.1499C8.72829 10.1499 8.48673 10.0141 8.48673 9.24465C8.48673 8.62231 8.56725 8.33942 9.24591 8.33942C9.44145 8.33942 9.61399 8.36205 9.84404 8.42994C9.86705 8.42994 9.87855 8.42994 9.89005 8.40731C9.97057 8.2489 10.0741 8.05654 10.1891 7.81891V7.78497C10.1891 7.77365 10.1776 7.76233 10.1661 7.76233C9.86705 7.67181 9.51047 7.61523 9.18839 7.61523C8.11865 7.61523 7.63554 8.11311 7.63554 9.23334C7.63554 10.3649 8.11865 10.8741 9.18839 10.8741C9.45295 10.8741 9.99358 10.8175 10.2466 10.7157C10.2696 10.7043 10.2811 10.6817 10.2696 10.6591L10.0511 10.0594V10.0594ZM3.9202 7.71707H1.74621C1.7232 7.71707 1.7002 7.7397 1.7002 7.76233V10.7383C1.7002 10.7609 1.7232 10.7836 1.74621 10.7836H2.48237C2.50538 10.7836 2.52838 10.7609 2.52838 10.7383V8.42994H3.65564C3.66714 8.42994 3.69015 8.41863 3.69015 8.40731C3.78217 8.20364 3.86269 7.98864 3.95471 7.77365V7.7397C3.9432 7.72839 3.9317 7.71707 3.9202 7.71707Z",fill:"currentColor"}),a.createElement("path",{d:"M23.7851 14.9477V14.9024C23.7851 14.8798 23.7851 14.8458 23.7966 14.8232C23.8312 14.4045 23.8542 13.8953 23.8772 13.3069V13.2617C23.8887 12.8656 23.9002 12.4356 23.9002 11.9943C23.9002 11.553 23.8887 11.1231 23.8772 10.727V10.6818C23.8542 10.1047 23.8312 9.58416 23.7966 9.16549C23.7966 9.14286 23.7966 9.10891 23.7851 9.08628V9.04102C23.7851 8.99576 23.7736 8.96181 23.7736 8.91655V8.87129C23.7391 8.42999 23.7161 8.15842 23.7046 8.13578C23.7046 8.09052 23.6931 8.04526 23.6931 8.01132V7.97737C23.6816 7.89816 23.6701 7.83027 23.6471 7.75106C23.6471 7.73974 23.6471 7.72843 23.6356 7.71711C23.4401 6.80056 22.9224 5.79349 22.2783 5.03536C22.0252 4.74116 21.7607 4.4809 21.4846 4.27723C21.4616 4.2546 21.1395 4.02829 20.6334 3.67751C20.0468 3.28147 19.2071 2.72702 18.2524 2.18388C16.55 1.19943 15.0432 0.509194 14.8361 0.429986C14.8246 0.429986 14.8246 0.41867 14.8246 0.41867C14.376 0.226308 13.8354 0.0905233 13.2488 0.0339463C13.1337 0.0226308 13.0187 0.0113154 12.9037 0.0113154C12.7887 0 12.6851 0 12.5816 0H12.4206C11.6384 0.0226308 10.9137 0.158416 10.3386 0.41867C10.2581 0.452617 8.72824 1.14286 6.99135 2.14993L6.92233 2.18388C5.13943 3.21358 3.74762 4.23197 3.6901 4.27723C3.253 4.59406 2.86192 5.00141 2.50534 5.52192C2.42482 5.63508 2.42482 5.92928 2.76989 5.92928H3.6556C4.03518 5.92928 4.1272 5.70297 4.5528 5.39745C5.0244 5.05799 5.95611 4.37907 7.6585 3.38331C8.88928 2.67044 10.0395 2.10467 10.6032 1.84441C10.6147 1.84441 10.6262 1.8331 10.6377 1.8331C10.6377 1.8331 10.6492 1.8331 10.6492 1.82178C10.6492 1.82178 10.6607 1.82178 10.6607 1.81047C10.6722 1.81047 10.6837 1.79915 10.6837 1.79915C10.6952 1.79915 10.7067 1.78784 10.7182 1.78784C10.8562 1.71994 10.9482 1.686 10.9482 1.686C11.3393 1.51627 11.8915 1.40311 12.4781 1.3918H12.7081C12.8807 1.3918 13.0532 1.40311 13.2143 1.42574C13.5708 1.471 13.8929 1.5389 14.1575 1.65205C14.1805 1.66337 14.215 1.67468 14.238 1.686C14.238 1.686 14.2495 1.69731 14.284 1.70863C14.5486 1.82178 15.9749 2.48939 17.5277 3.38331C18.4479 3.91513 19.2646 4.44696 19.8282 4.83168C20.3229 5.17115 20.6219 5.38614 20.6334 5.39745C20.852 5.55587 21.0705 5.78218 21.2776 6.03112C21.7952 6.68741 22.2208 7.58133 22.2898 8.27157C22.2898 8.28288 22.3243 8.55445 22.3588 9.01839C22.3588 9.05233 22.3588 9.07496 22.3703 9.10891V9.1768C22.3703 9.22206 22.3818 9.25601 22.3818 9.30127V9.34653C22.3818 9.36916 22.3818 9.40311 22.3933 9.42574C22.3933 9.48232 22.4048 9.5389 22.4048 9.59547C22.4048 9.62942 22.4048 9.66337 22.4163 9.69731V9.71994C22.4163 9.7652 22.4163 9.79915 22.4278 9.84441V9.93494C22.4623 10.5233 22.4853 11.2249 22.4853 11.9604C22.4853 12.6959 22.4623 13.3975 22.4278 13.9859V14.0764C22.4278 14.1216 22.4278 14.1556 22.4163 14.2008V14.2235C22.4163 14.2574 22.4163 14.2914 22.4048 14.3253C22.4048 14.3819 22.3933 14.4385 22.3933 14.495C22.3933 14.529 22.3933 14.5516 22.3818 14.5743V14.6195C22.3818 14.6648 22.3703 14.6987 22.3703 14.744V14.8119C22.3703 14.8458 22.3703 14.8798 22.3588 14.9024C22.3243 15.3663 22.2898 15.6492 22.2898 15.6492C22.2208 16.3395 21.7952 17.2334 21.2776 17.8897C21.0705 18.1499 20.852 18.3649 20.6334 18.5233C20.6219 18.5233 20.3229 18.7496 19.8282 19.0891C19.2646 19.4738 18.4364 20.0057 17.5277 20.5375C15.9749 21.4427 14.5371 22.099 14.284 22.2122L14.238 22.2348C14.215 22.2461 14.1805 22.2574 14.1575 22.2687C13.8929 22.3706 13.5708 22.4498 13.2143 22.495C13.0532 22.5177 12.8807 22.529 12.7081 22.529H12.4781C11.8915 22.5177 11.3393 22.4158 10.9482 22.2348C10.9482 22.2348 10.8677 22.2008 10.7182 22.133C10.7067 22.1216 10.6837 22.1216 10.6722 22.1103C10.6607 22.099 10.6492 22.099 10.6377 22.0877C10.6262 22.0877 10.6262 22.0764 10.6147 22.0764C10.6032 22.0764 10.5917 22.0651 10.5802 22.0651C10.5687 22.0537 10.5572 22.0537 10.5341 22.0424H10.5226C9.93601 21.8161 8.83176 21.273 7.6585 20.5941C5.94461 19.6096 5.0244 18.9194 4.5528 18.5799C4.1272 18.2744 4.03518 18.0481 3.6556 18.0481H2.76989C2.42482 18.0481 2.42482 18.3423 2.50534 18.4554C2.86192 18.976 3.253 19.3833 3.6901 19.7001C3.74762 19.7454 5.15093 20.7638 6.92233 21.7935C7.01435 21.8501 7.10637 21.9066 7.2099 21.9519C8.85477 22.8798 10.2696 23.5134 10.3501 23.5587C10.9137 23.8076 11.6499 23.9547 12.4321 23.9774H12.5931C12.6966 23.9774 12.8002 23.9774 12.9037 23.9661C13.0187 23.9661 13.1337 23.9547 13.2488 23.9434C13.8354 23.8868 14.3875 23.7511 14.8246 23.5587C14.8246 23.5587 14.8361 23.5587 14.8361 23.5474C15.0317 23.4569 16.55 22.7666 18.2409 21.7935C19.1956 21.239 20.0353 20.6959 20.6219 20.2999C21.128 19.9491 21.4501 19.7228 21.4731 19.7001C21.7492 19.4965 22.0137 19.2362 22.2668 18.942C22.9109 18.1839 23.4286 17.1768 23.6241 16.2603C23.6241 16.2489 23.6241 16.2376 23.6356 16.2263C23.6471 16.1471 23.6701 16.0679 23.6816 16V15.9661C23.6931 15.9208 23.6931 15.8755 23.6931 15.8416C23.6931 15.819 23.7276 15.5474 23.7621 15.1061V15.0608C23.7851 15.0269 23.7851 14.9929 23.7851 14.9477",fill:"currentColor"})),secondaryIcon:e=>a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("defs",null,a.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"esia-colored",gradientUnits:"userSpaceOnUse"},a.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),a.createElement("stop",{offset:.636,stopColor:"#EF3E58"}))),a.createElement("path",{d:"M22.24 14.656v.042c0 .03 0 .072-.021.082v.042c-.031.404-.063.653-.063.674 0 .03 0 .072-.01.114v.031c-.01.062-.031.135-.041.207-.01.01-.01.021-.01.031-.177.84-.643 1.763-1.223 2.458-.229.27-.467.508-.716.695l-.766.55c-.7.48-1.416.936-2.146 1.368-1.523.892-2.89 1.524-3.067 1.607 0 .01-.01.01-.01.01-.394.177-.891.301-1.42.353-.104.01-.207.02-.31.02-.094.011-.187.011-.28.011h-.146c-.704-.02-1.368-.155-1.875-.383-.073-.042-1.347-.623-2.83-1.473a2.051 2.051 0 0 1-.258-.145 36.043 36.043 0 0 1-2.912-1.918 4.527 4.527 0 0 1-1.068-1.141c-.072-.103-.072-.373.239-.373h.787c.342 0 .425.207.809.487.424.311 1.253.944 2.797 1.846.84.493 1.701.95 2.58 1.369h.011c.021.01.031.01.042.02.01 0 .02.01.03.01.01 0 .01.011.021.011.01.01.021.01.031.02.01.011.032.011.042.021.135.063.207.094.207.094.353.166.85.26 1.378.27h.207c.156 0 .311-.01.457-.032a3.65 3.65 0 0 0 .85-.207c.02-.01.051-.02.072-.031l.041-.02a33.402 33.402 0 0 0 4.995-2.863c.446-.31.715-.518.726-.518.196-.145.393-.342.58-.58.466-.602.85-1.421.912-2.054 0 0 .031-.26.062-.684.01-.02.01-.052.01-.083v-.063c0-.041.01-.072.01-.114v-.04c.011-.022.011-.042.011-.074 0-.051.01-.103.01-.155.01-.031.01-.062.01-.093v-.021c.011-.042.011-.073.011-.114v-.083c.07-1.237.07-2.476 0-3.712v-.083c-.01-.042-.01-.073-.01-.114v-.021c-.01-.031-.01-.062-.01-.093 0-.052-.01-.104-.01-.156-.011-.02-.011-.052-.011-.072v-.042c0-.041-.01-.073-.01-.114v-.062c-.011-.031-.011-.052-.011-.083-.031-.425-.062-.674-.062-.685-.062-.632-.446-1.451-.912-2.053a3.411 3.411 0 0 0-.58-.58 33.42 33.42 0 0 0-5.762-3.401c-.02-.01-.052-.021-.073-.031a3.19 3.19 0 0 0-.85-.208c-.145-.02-.3-.03-.456-.03h-.207c-.528.01-1.025.113-1.378.269 0 0-.083.03-.207.093-.01 0-.02.01-.031.01 0 0-.01.01-.02.01 0 .011-.011.011-.011.011 0 .01-.01.01-.01.01-.011 0-.021.01-.032.01-.497.24-1.533.748-2.642 1.4-1.534.913-2.373 1.535-2.798 1.846-.383.28-.466.488-.808.488h-.798c-.311 0-.311-.27-.239-.384.322-.477.674-.85 1.068-1.14a37.769 37.769 0 0 1 2.912-1.93l.062-.03a34.228 34.228 0 0 1 3.026-1.576c.518-.239 1.17-.373 1.886-.384h.145c.093 0 .186.01.28.01.103 0 .207.01.31.021a4.745 4.745 0 0 1 1.42.353s0 .01.01.01c.177.083 1.545.705 3.068 1.607a33.005 33.005 0 0 1 2.912 1.918c.248.187.487.426.715.695.58.695 1.047 1.618 1.223 2.458.01.01.01.02.01.03.019.069.033.138.041.208v.031c0 .031.01.073.01.114.011.021.032.27.063.674v.042c0 .041.01.072.01.114v.041c.01.021.01.052.01.073l.073 1.39v.04c.01.364.021.758.021 1.162l-.02 1.162v.04c-.021.54-.042 1.007-.073 1.39-.01.021-.01.052-.01.073ZM9.865 10.218a.022.022 0 0 0-.02-.02h-.032a2.295 2.295 0 0 1-.673.103c-.466 0-.684-.124-.684-.83 0-.57.062-.83.684-.83.176 0 .332.022.539.084.02 0 .03 0 .041-.02l.27-.54v-.031a.022.022 0 0 0-.02-.02 3.125 3.125 0 0 0-.882-.136c-.964 0-1.399.456-1.399 1.483 0 1.037.435 1.504 1.399 1.504.238 0 .725-.052.954-.146.02-.01.03-.03.02-.052l-.197-.549Zm-3.99-2.23c-.953 0-1.326.415-1.326 1.463 0 1.068.373 1.483 1.327 1.483.963 0 1.336-.415 1.336-1.483 0-1.048-.373-1.462-1.336-1.462Zm-3.492.084a.044.044 0 0 0-.041.041v2.727c0 .021.02.042.041.042h.664c.02 0 .041-.021.041-.042V8.725h1.026c.01 0 .031-.01.031-.02.083-.187.156-.385.238-.581v-.032c-.01-.01-.02-.02-.03-.02h-1.97Zm3.493 2.26c-.435 0-.57-.114-.57-.86 0-.788.145-.861.57-.861.435 0 .58.072.58.86 0 .737-.135.861-.58.861Zm1.627 3.992a.022.022 0 0 0-.02-.02h-.032a2.295 2.295 0 0 1-.674.103c-.466 0-.684-.124-.684-.83 0-.57.073-.829.684-.829.176 0 .332.02.54.083.02 0 .03 0 .04-.02l.27-.54v-.03a.022.022 0 0 0-.007-.015 3.126 3.126 0 0 0-.895-.141c-.963 0-1.399.456-1.399 1.482 0 1.037.436 1.504 1.4 1.504.238 0 .725-.052.953-.145.02-.01.03-.032.02-.052l-.196-.55Zm3.046-2.146H8.52c-.02 0-.031.01-.041.031A11.895 11.895 0 0 1 8 14.926c0 .01 0 .02.01.03.01.011.021.011.031.011h.695c.02 0 .03-.01.03-.02.198-.623.353-1.432.415-2.116h.664v2.105c0 .02.02.041.041.041h.663c.021 0 .042-.02.042-.041v-2.727c0-.01-.021-.031-.042-.031Zm5.752 0h-1.959a.044.044 0 0 0-.041.041v2.727c0 .021.02.042.041.042h.663c.02 0 .042-.02.042-.042v-2.115h1.025c.01 0 .032-.01.032-.02.083-.187.155-.384.238-.581v-.032c-.02-.01-.031-.02-.041-.02Zm2.839 0h-.663a.045.045 0 0 0-.042.041v2.105c-.145.042-.29.062-.456.062-.435 0-.539-.134-.539-.715v-1.452a.045.045 0 0 0-.041-.041h-.663a.045.045 0 0 0-.041.041v1.525c0 .953.32 1.316 1.14 1.316.466 0 .994-.124 1.305-.238.01-.01.02-.02.02-.031v-2.572c.021-.02 0-.04-.02-.04v-.001Zm-14.052.01h-.674c-.02 0-.03.01-.03.031-.104.415-.322 1.12-.612 1.856L3.1 12.21c-.011-.01-.021-.02-.032-.02h-.684c-.01 0-.02.01-.03.02-.011.01-.011.02 0 .031l1.015 2.779c-.09.19-.187.377-.29.56a4.458 4.458 0 0 0-.197.383c-.01.011-.01.021 0 .032.01.01.02.02.031.02h.736c.01 0 .03-.01.03-.02.154-.3.295-.603.426-.913.435-1.016.777-1.97 1.036-2.84 0-.011 0-.022-.01-.032-.021-.02-.031-.02-.042-.02Zm8.726 0h-.674c-.02 0-.031.01-.031.031-.104.425-.321 1.12-.612 1.856l-.673-1.866c-.01-.01-.02-.02-.031-.02h-.684c-.01 0-.02.01-.031.02-.01.01-.01.02 0 .031l1.015 2.779c-.09.19-.187.377-.29.56a4.444 4.444 0 0 0-.197.383c-.01.011-.01.021 0 .032.01.01.02.02.031.02h.736c.01 0 .031-.01.031-.02.153-.3.295-.603.425-.913a28.78 28.78 0 0 0 1.036-2.84c0-.011 0-.022-.01-.032-.02-.02-.031-.02-.041-.02Z",clipRule:"evenodd",fill:"url(#esia-colored)",fillRule:"evenodd"}))},PHONE:{label:"По номеру телефона",caption:"Номер телефона",icon:e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"a"},a.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),a.createElement("g",{clipPath:"url(#a)"},a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.045 3.68a10.239 10.239 0 0 0 .738 2.993 1.323 1.323 0 0 1-.643 1.696l-.866.41a.225.225 0 0 0-.123.133.158.158 0 0 0 .011.135 12.756 12.756 0 0 0 3.321 3.815c.466.358.957.683 1.473.976a.156.156 0 0 0 .134.011.225.225 0 0 0 .133-.122l.408-.863a1.293 1.293 0 0 1 .732-.666 1.322 1.322 0 0 1 .967.022c1.094.453 2.215.708 3.401.766a1.302 1.302 0 0 1 1.173.805c.066.16.1.327.1.5v4.459a2.712 2.712 0 0 1-.816 1.944 2.494 2.494 0 0 1-1.37.68c-.21.031-.425.035-.644.01a18.77 18.77 0 0 1-9.782-4.113l-.002-.001a18.711 18.711 0 0 1-3.727-4.103 18.728 18.728 0 0 1-2.549-5.666 18.72 18.72 0 0 1-.495-2.672 2.494 2.494 0 0 1 .127-1.11 2.512 2.512 0 0 1 .894-1.194 2.68 2.68 0 0 1 1.001-.457c.2-.046.403-.068.612-.068h4a1.747 1.747 0 0 1 1.234.505 1.804 1.804 0 0 1 .381.532 1.897 1.897 0 0 1 .177.644Zm10.485.85-4 4c-.177.177-.354.265-.53.265-.177 0-.354-.088-.53-.265l-2-2a.743.743 0 0 1 0-1.06.743.743 0 0 1 1.06 0L17 6.94l3.47-3.47a.743.743 0 0 1 1.06 0 .742.742 0 0 1 0 1.06ZM9.552 3.816a.38.38 0 0 0-.044-.149c-.056-.054-.185-.167-.255-.167h-4a1.247 1.247 0 0 0-.485.098 1.174 1.174 0 0 0-.38.26 1.022 1.022 0 0 0-.23.365.976.976 0 0 0-.048.44 17.25 17.25 0 0 0 1.909 6.18 17.291 17.291 0 0 0 4.324 5.268 17.171 17.171 0 0 0 4.308 2.576c.733.303 1.48.555 2.24.753h.001c.801.21 1.617.36 2.448.454a.976.976 0 0 0 .806-.279 1.15 1.15 0 0 0 .26-.38 1.23 1.23 0 0 0 .097-.485v-4.274a11.7 11.7 0 0 1-3.593-.808l-.331.7a1.73 1.73 0 0 1-1 .9 1.648 1.648 0 0 1-1.363-.125 14.257 14.257 0 0 1-4.312-3.77l-.001-.001c-.382-.503-.73-1.03-1.045-1.584a1.642 1.642 0 0 1-.125-1.364 1.726 1.726 0 0 1 .898-1l.703-.333a11.71 11.71 0 0 1-.782-3.275Z",clipRule:"evenodd"}))),secondaryIcon:void 0},WEB_AUTHN:{label:"Быстрый вход",caption:"Быстрый вход",icon:e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24.001,fill:"none",viewBox:"0 0 24 24.001",...e},a.createElement("path",{d:"M0 0h24v24.001H0z"}),a.createElement("path",{fill:"#1f242e",fillRule:"evenodd",d:"M17.753 4.827a11.23 11.23 0 0 0-7.218-1.484q-1.147.152-2.22.523a11.2 11.2 0 0 0-2.065.964.743.743 0 0 1-1.028-.261.743.743 0 0 1 .261-1.028 12.7 12.7 0 0 1 4.857-1.685 12.7 12.7 0 0 1 4.05.116 12.8 12.8 0 0 1 4.13 1.566.743.743 0 0 1 .26 1.028.743.743 0 0 1-1.027.261M2.62 11.844q-.154.543-.244 1.104a.743.743 0 0 0 .621.86.743.743 0 0 0 .86-.622 8.3 8.3 0 0 1 1.283-3.271A8.2 8.2 0 0 1 6.17 8.664a8.23 8.23 0 0 1 8.99-1.789q.758.314 1.425.76.67.447 1.252 1.029a8.23 8.23 0 0 1 2.312 4.524.743.743 0 0 0 .86.621.743.743 0 0 0 .62-.86 9.74 9.74 0 0 0-2.731-5.346 9.7 9.7 0 0 0-1.48-1.216l-.001-.001a9.7 9.7 0 0 0-1.683-.897 9.7 9.7 0 0 0-1.828-.556 9.7 9.7 0 0 0-1.903-.186A9.72 9.72 0 0 0 5.11 7.603a9.7 9.7 0 0 0-2.484 4.228zm14.533 1.632q.1.5.1 1.021c0 .42.33.75.75.75s.75-.33.75-.75a6.73 6.73 0 0 0-2.997-5.611 6.7 6.7 0 0 0-1.17-.625 6.735 6.735 0 0 0-2.583-.514q-.67 0-1.316.128a6.7 6.7 0 0 0-1.268.386 6.72 6.72 0 0 0-3.653 3.653 6.7 6.7 0 0 0-.514 2.583 12.74 12.74 0 0 0 1.465 5.933.743.743 0 0 0 1.013.315.743.743 0 0 0 .314-1.013 11.24 11.24 0 0 1-1.292-5.235 5.24 5.24 0 0 1 2.332-4.365l.001-.001q.426-.285.908-.484a5.25 5.25 0 0 1 3.032-.3 5.25 5.25 0 0 1 2.69 1.438 5.24 5.24 0 0 1 1.438 2.69m-5.534 8.39q.126.11.255.215a.74.74 0 0 0 1.055-.112.743.743 0 0 0-.112-1.055 8.3 8.3 0 0 1-1.674-1.83 8.2 8.2 0 0 1-.763-1.43 8.2 8.2 0 0 1-.628-3.157 2.245 2.245 0 0 1 2.25-2.25 2.24 2.24 0 0 1 1.874 1.004 2.24 2.24 0 0 1 .376 1.246 3.74 3.74 0 0 0 2.315 3.465 3.73 3.73 0 0 0 3.222-.168c.37-.2.502-.648.302-1.017a.743.743 0 0 0-1.016-.301 2.239 2.239 0 0 1-1.933.1 2.23 2.23 0 0 1-1.218-1.218 2.2 2.2 0 0 1-.172-.86 3.744 3.744 0 0 0-3.75-3.75q-.372 0-.731.07l-.002.001a3.756 3.756 0 0 0-3.017 3.678q0 .969.186 1.902.185.933.556 1.83.372.894.898 1.684a9.7 9.7 0 0 0 1.727 1.954m1.133-7.369a5.24 5.24 0 0 0 3.427 4.923q.18.068.367.121a.74.74 0 0 1 .513.93.743.743 0 0 1-.93.511 6.8 6.8 0 0 1-1.595-.694 6.74 6.74 0 0 1-2.144-2.04 6.73 6.73 0 0 1-1.138-3.75c0-.42.33-.75.75-.75s.75.33.75.75"})),secondaryIcon:void 0},ALFA:{label:void 0,caption:"Альфа ID",icon:e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"clip146_396"},a.createElement("rect",{id:"Logo",width:24,height:24,fill:"white",fillOpacity:0})),a.createElement("clipPath",{id:"clip129_3008"},a.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),a.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#EF3124",fillOpacity:1}),a.createElement("g",{clipPath:"url(#clip129_3008)"},a.createElement("g",{clipPath:"url(#clip146_396)"},a.createElement("path",{id:"Union",d:"M12.0784 4.99939C13.0987 4.99939 13.3867 5.60126 13.6481 6.36017L16.3427 14.2609L14.3805 14.2609L13.7791 12.3771L10.2207 12.3771L9.56677 14.2609L7.70911 14.2609L10.4826 6.36017C10.7441 5.57532 11.058 4.99939 12.0784 4.99939ZM11.9999 7.04004L10.7181 10.8074L13.2297 10.8074L12.0524 7.04004L11.9999 7.04004ZM16.5 16.8002L7.49997 16.8002L7.49997 18.6578L16.5 18.6578L16.5 16.8002Z",clipRule:"evenodd",fill:"#FFFFFF",fillOpacity:1,fillRule:"evenodd"})))),secondaryIcon:void 0},SBER:{label:void 0,caption:"Сбер ID",icon:e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"clip146_362"},a.createElement("rect",{id:"Logo",width:20,height:20,transform:"translate(2.000000 2.000000)",fill:"white",fillOpacity:0})),a.createElement("clipPath",{id:"clip129_3001"},a.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),a.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#21A038",fillOpacity:1}),a.createElement("g",{clipPath:"url(#clip129_3001)"},a.createElement("g",{clipPath:"url(#clip146_362)"},a.createElement("path",{id:"Vector",d:"M12 4.5C13.8 4.5 15.45 5.13 16.74 6.19L15.45 7.22C14.48 6.52 13.29 6.1 11.99 6.1C8.74 6.1 6.1 8.74 6.1 12C6.1 15.25 8.74 17.89 11.99 17.89C15.25 17.89 17.89 15.25 17.89 12C17.89 11.92 17.89 11.85 17.88 11.77L19.38 10.69C19.46 11.11 19.49 11.55 19.49 12C19.49 16.14 16.14 19.5 11.99 19.5C7.85 19.5 4.5 16.14 4.5 12C4.5 7.85 7.85 4.5 12 4.5Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"evenodd"}),a.createElement("path",{id:"Vector",d:"M9.17 10.17L12 12L18.08 7.53L18.99 9L12 14.11L9.17 12.35L9.17 10.17Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"evenodd"})))),secondaryIcon:void 0},VTB:{label:void 0,caption:"ВТБ ID",icon:e=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},a.createElement("defs",null,a.createElement("linearGradient",{id:"c",x1:0,x2:24,y1:12,y2:12,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#0037FF"}),a.createElement("stop",{offset:.75,stopColor:"#0085FF"})),a.createElement("clipPath",{id:"b"},a.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),a.createElement("mask",{id:"a",width:24,height:24,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse"},a.createElement("circle",{cx:12,cy:12,r:12,fill:"#F7F8FA"})),a.createElement("g",{mask:"url(#a)"},a.createElement("path",{fill:"#F7F8FA",d:"M0 0h24v24H0z"})),a.createElement("g",{clipPath:"url(#b)",mask:"url(#a)"},a.createElement("path",{fill:"url(#c)",d:"M0 0h24v24H0z"}),a.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M19.5 7.5H7.7l-.85 2.25h11.79l.86-2.25Zm-1.18 3.37H6.52l-.85 2.25h11.8l.85-2.25ZM5.33 14.25h11.52l-.83 2.25H4.5l.83-2.25Z"}))),secondaryIcon:void 0},MTS:{label:void 0,caption:"МТС ID",icon:e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},a.createElement("defs",null),a.createElement("rect",{id:"Button",width:24,height:24,fill:"#FFFFFF",fillOpacity:0}),a.createElement("mask",{id:"mask129_2994","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},a.createElement("rect",{id:"rect",width:24,height:24,fill:"#000000",fillOpacity:1})),a.createElement("g",{mask:"url(#mask129_2994)"},a.createElement("rect",{id:"rect",width:24,height:24,fill:"#FF0032",fillOpacity:1}),a.createElement("path",{id:"path",d:"M15.98 1.82L15.98 2.94L18.4 2.94L18.4 7.32L19.75 7.4L19.75 2.94L22.16 2.94L22.16 1.82L15.98 1.82Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}),a.createElement("path",{id:"path",d:"M7.3 1.84L5.53 5.5L3.77 1.84L1.84 1.84L1.84 7.38L3.19 7.38L3.19 3.42L4.92 6.76L6.15 6.76L7.87 3.42L7.87 7.38L9.22 7.38L9.22 1.84L7.3 1.84Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}),a.createElement("path",{id:"path",d:"M20.81 20.3C20.78 20.51 20.69 20.7 20.54 20.84C20.39 20.98 20.2 21.07 20 21.11C19.71 21.17 19.41 21.2 19.11 21.2C18.79 21.2 18.47 21.15 18.17 21.06C17.92 20.98 17.7 20.81 17.55 20.6C17.41 20.38 17.33 20.06 17.33 19.66L17.33 19.1C17.33 18.69 17.41 18.38 17.55 18.16C17.7 17.94 17.92 17.78 18.16 17.7C18.47 17.6 18.79 17.56 19.11 17.56C19.41 17.56 19.7 17.59 20 17.64C20.2 17.68 20.39 17.78 20.54 17.92C20.69 18.06 20.78 18.25 20.8 18.46L22.16 18.46C22.13 18.03 21.97 17.62 21.69 17.3C21.42 17 21.07 16.78 20.68 16.68C20.17 16.54 19.64 16.48 19.11 16.49C18.46 16.49 17.9 16.58 17.44 16.77C16.98 16.94 16.6 17.27 16.36 17.69C16.12 18.1 15.99 18.65 15.99 19.31L15.99 19.44C15.99 20.11 16.12 20.65 16.36 21.06C16.6 21.49 16.98 21.81 17.44 21.99C17.9 22.17 18.46 22.26 19.11 22.26C19.64 22.27 20.17 22.21 20.68 22.08C21.07 21.97 21.42 21.76 21.69 21.46C21.97 21.13 22.13 20.72 22.16 20.3L20.81 20.3Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}))),secondaryIcon:void 0},TINKOFF:{label:void 0,caption:"T-ID",icon:e=>a.createElement("svg",{width:44,height:24,viewBox:"0 0 44 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},a.createElement("defs",null),a.createElement("mask",{id:"mask129_2984","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:44,height:24},a.createElement("rect",{id:"rect",width:44,height:24,fill:"#000000",fillOpacity:1})),a.createElement("g",{mask:"url(#mask129_2984)"},a.createElement("path",{id:"path",d:"M32.11 0L11.88 0C5.32 0 0 5.37 0 12C0 18.62 5.32 24 11.88 24L32.11 24C38.67 24 44 18.62 44 12C44 5.37 38.67 0 32.11 0Z",fill:"#303030",fillOpacity:1,fillRule:"nonzero"}),a.createElement("path",{id:"path",d:"M6.89 6.16L19.7 6.16L19.7 12.67C19.7 14.33 18.82 15.87 17.39 16.71L13.3 19.09L9.2 16.71C7.77 15.87 6.89 14.33 6.89 12.67L6.89 6.16Z",fill:"#FFDD2D",fillOpacity:1,fillRule:"nonzero"}),a.createElement("path",{id:"path",d:"M10.41 9.59L10.41 11.61C10.68 11.3 11.18 11.08 11.75 11.08L12.37 11.08L12.37 13.44C12.37 14.06 12.2 14.61 11.95 14.91L14.64 14.91C14.39 14.61 14.22 14.06 14.22 13.44L14.22 11.09L14.84 11.09C15.41 11.09 15.91 11.3 16.18 11.61L16.18 9.59L10.41 9.59Z",fill:"#333333",fillOpacity:1,fillRule:"evenodd"}),a.createElement("path",{id:"path",d:"M27.01 16.07L27.01 8.43L24.63 8.43L24.63 16.07L27.01 16.07Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}),a.createElement("path",{id:"path",d:"M32.77 16.07C35.79 16.07 37.28 14.45 37.28 12.25C37.28 10.05 35.79 8.43 33.02 8.43L28.76 8.43L28.76 16.07L32.77 16.07ZM32.53 10.26C34.17 10.26 34.85 11 34.85 12.25C34.85 13.41 34.17 14.29 32.53 14.29L31.06 14.29L31.06 10.26L32.53 10.26Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}))),secondaryIcon:void 0},SOVCOM:{label:void 0,caption:"Совком ID",icon:e=>a.createElement("svg",{width:24.000015,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},a.createElement("defs",null),a.createElement("path",{id:"Vector",d:"M14.39 0.25L14.39 6.47L11.97 6.47C8.93 6.47 6.47 8.93 6.47 11.97C6.47 15.02 8.93 17.48 11.97 17.48L14.39 17.48L14.39 23.7C19.89 22.64 24 17.82 24 11.97C24 6.17 19.89 1.35 14.39 0.25Z",fill:"#003791",fillOpacity:1,fillRule:"nonzero"}),a.createElement("path",{id:"Vector",d:"M11.97 19.42C7.87 19.42 4.52 16.08 4.52 11.97C4.52 7.87 7.87 4.53 11.97 4.53L12.44 4.53L12.44 0L11.97 0C5.37 0 0 5.37 0 11.97C0 18.62 5.37 24 11.97 24L12.44 24L12.44 19.42L11.97 19.42L11.97 19.42Z",fill:"#FC5055",fillOpacity:1,fillRule:"nonzero"})),secondaryIcon:void 0},PSB:{label:void 0,caption:"ПСБ ID",icon:e=>a.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:24,fill:"none",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"clipPath_0"},a.createElement("rect",{width:24,height:24,x:0,y:0,fill:"rgb(255,255,255)"}))),a.createElement("rect",{id:"Logo symbol / Company / Promsvyazbank",width:24,height:24,x:0,y:0}),a.createElement("g",{id:"Logo",clipPath:"url(#clipPath_0)"},a.createElement("rect",{id:"Logo",width:24,height:24,x:0,y:0}),a.createElement("rect",{id:"Brand fill",width:24,height:24,x:0,y:0,opacity:0,fill:"rgb(247,248,250)"}),a.createElement("g",{id:"Group"},a.createElement("path",{id:"Vector",d:"M14.5735 4L9.14286 9.332L14.5735 9.332L14.5735 20L20 14.68L20 4L14.5735 4Z",fill:"rgb(234,86,22)",fillRule:"evenodd"}),a.createElement("path",{id:"Vector",d:"M9.42654 20L14.8571 14.668L9.42654 14.668L9.42654 4L4 9.32L4 20L9.42654 20Z",fill:"rgb(234,86,22)",fillRule:"nonzero"}),a.createElement("path",{id:"Vector",d:"M9.42654 20L14.8571 14.668L9.42654 14.668L9.42654 4L4 9.32L4 20L9.42654 20Z",fill:"rgb(44,45,132)",fillRule:"nonzero"})))),secondaryIcon:void 0},MOBILE:{label:void 0,caption:"Mobile ID",icon:e=>a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("defs",null,a.createElement("clipPath",{id:"a"},a.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),a.createElement("g",{clipPath:"url(#a)"},a.createElement("path",{d:"M4.935 2.92a4.737 4.737 0 0 1 .985-.985c.326-.242.697-.43 1.114-.566q.559-.182 1.323-.266.637-.07 1.61-.09C10.366 1.003 11.043 1 12 1q1.436 0 2.032.012.974.02 1.611.09c.51.057.95.146 1.323.267.417.136.788.325 1.114.566a4.752 4.752 0 0 1 .985.985c.241.326.43.697.566 1.114.121.373.21.814.266 1.323q.07.637.09 1.61Q20 7.565 20 9v6q0 1.436-.012 2.032c-.014.65-.044 1.187-.09 1.611-.057.51-.146.95-.267 1.323a3.864 3.864 0 0 1-.566 1.114c-.28.377-.608.706-.986.985-.325.241-.696.43-1.113.566a6.65 6.65 0 0 1-1.323.266q-.637.07-1.61.09Q13.435 23 12 23t-2.032-.012q-.974-.02-1.611-.09a6.648 6.648 0 0 1-1.323-.267q-.626-.204-1.114-.566a4.72 4.72 0 0 1-.985-.985 3.857 3.857 0 0 1-.566-1.114 6.646 6.646 0 0 1-.266-1.323 18.77 18.77 0 0 1-.09-1.61Q4 16.435 4 15V9q0-1.436.012-2.032.02-.974.09-1.611c.057-.51.146-.95.267-1.323.136-.417.324-.788.566-1.114Zm1.205.894a2.375 2.375 0 0 0-.345.685c-.09.274-.156.615-.201 1.022-.042.38-.07.873-.082 1.478Q5.5 7.58 5.5 9v6c0 .947.004 1.614.012 2 .013.606.04 1.099.082 1.48.045.406.112.747.201 1.021.086.262.2.49.345.685.191.258.416.483.674.674.194.145.423.26.685.345.274.09.615.156 1.022.201.38.042.873.07 1.478.082.387.008 1.054.012 2.001.012q1.42 0 2-.012c.606-.013 1.099-.04 1.48-.082a5.182 5.182 0 0 0 1.021-.201c.262-.086.49-.2.685-.345.258-.191.483-.416.674-.674.145-.194.26-.423.345-.685.09-.274.156-.615.201-1.022.042-.38.07-.873.082-1.478.008-.387.012-1.054.012-2.001V9q0-1.42-.012-2a17.368 17.368 0 0 0-.082-1.48 5.184 5.184 0 0 0-.201-1.021c-.086-.262-.2-.49-.345-.685a3.26 3.26 0 0 0-.308-.359l-.004-.004q-.169-.168-.362-.311a2.374 2.374 0 0 0-.685-.345 5.185 5.185 0 0 0-1.022-.201c-.38-.042-.873-.07-1.478-.082C13.614 2.504 12.947 2.5 12 2.5q-1.42 0-2 .012a17.38 17.38 0 0 0-1.48.082 5.184 5.184 0 0 0-1.021.201c-.262.086-.49.2-.685.345q-.194.143-.362.312a3.256 3.256 0 0 0-.312.362ZM12 20c.552 0 1-.45 1-1s-.448-1-1-1-1 .45-1 1 .448 1 1 1Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))),secondaryIcon:void 0}}),rr=e=>!!rt[e]&&("WEB_AUTHN"!==e||function(){var e,t;if("u"<typeof window||"u"<typeof navigator||tR.some(({regex:e})=>e.test(null==navigator?void 0:navigator.userAgent)))return!1;let r=!!window.isSecureContext,n=!!(null==navigator?void 0:navigator.credentials),i=!!window.PublicKeyCredential,l=!!(null==(e=null==navigator?void 0:navigator.credentials)?void 0:e.create),a=!!(null==(t=null==navigator?void 0:navigator.credentials)?void 0:t.get);return r&&n&&i&&l&&a}()&&function(){if("u"<typeof window)return!1;try{let e=window.localStorage.getItem("webauthnLinked");return!!e&&JSON.parse(e)}catch{return!1}}()),rn=({serverConfig:e,baseUrl:t,s3AssetsUrl:r="",configKey:n,entryPointId:i,apiVersion:l,config:s,product:o,productContext:c,query:h,scenarioParams:p,isSilent:f,skeleton:d=(0,L.jsx)("p",{children:"Загружаем данные..."}),className:g,style:k,onMount:T,onDestroy:R,onAnalyticsEvent:j,...B})=>{let[S,N]=(0,a.useState)(),[M,z]=(0,a.useState)(),[P,F]=(0,a.useState)(),{getConfig:Z,getHref:U}=(e=>{let{configKey:t,entryPointId:r,serverConfig:n={},baseUrl:i,apiBaseUrl:l,apiVersion:s,autoFetch:o=!0,product:c,productContext:h,isSilent:p,config:f,query:d={},scenarioParams:g={},onMount:k,onDestroy:L,onAnalyticsEvent:$}=e,[T,R]=(0,a.useState)(null),[j,B]=(0,a.useState)(o),S=(0,a.useCallback)(async()=>{try{B(!0);let e=await A(l,t??void 0,s);R(e)}catch(e){throw Error(`Unknown fetch error: ${e}`)}finally{B(!1)}},[]);(0,a.useEffect)(()=>(null==k||k(),null==$||$({eventCategory:"login-widget",eventAction:"mount_login_widget"}),()=>{null==L||L(),null==$||$({eventCategory:"login-widget",eventAction:"unmount_login_widget"})}),[]),(0,a.useEffect)(()=>{o&&S()},[o,S]);let N=o?T:n,O=((e,t)=>{var r,n;let i=r=>(null==t?void 0:t[r])===null?null:(null==t?void 0:t[r])??(null==e?void 0:e[r]),l={theme:(null==t?void 0:t.theme)??"light",variant:(null==t?void 0:t.variant)??"primary",linkTarget:(null==t?void 0:t.linkTarget)??"_blank",withLogo:(null==t?void 0:t.withLogo)??!1,isNewYearLogo:(null==t?void 0:t.isNewYearLogo)??!1,primaryTextOverride:null==t?void 0:t.primaryTextOverride,additionalTextOverride:null==t?void 0:t.additionalTextOverride,extraTextOverride:null==t?void 0:t.extraTextOverride,title:i("title"),description:i("description"),highlights:i("highlights"),consents:null==e?void 0:e.consents,legalInfo:null==e?void 0:e.legalInfo,availableAuthProviders:null==e?void 0:e.availableAuthProviders},a=(e=[],t)=>void 0!==t?e.filter(e=>t.includes(e)):e,s=(e,t)=>({...e,primaryAuthProviders:a(null==e?void 0:e.primaryAuthProviders,t),additionalAuthProviders:a(null==e?void 0:e.additionalAuthProviders,t),extraAuthProviders:a(null==e?void 0:e.extraAuthProviders,t)}),o=null==e?void 0:e.availableAuthProviders,c=!(null!=t&&t.primaryAuthProviders)&&!(null!=(r=null==t?void 0:t.additionalAuthProviders)&&r.length)&&!(null!=(n=null==t?void 0:t.extraAuthProviders)&&n.length);if(!t||c)return{...e&&s(e,o),...l};let h=s(t,o);return h.primaryAuthProviders.length>0||h.additionalAuthProviders.length>0||h.extraAuthProviders.length>0?{...h,...l}:{...e&&s(e,o),...l}})(N,f);return{getConfig:()=>({...O}),getHref:(e,t)=>{var n,l,a;let s,o,f,k,A,L,$;return n=C(i,"/registration"),l={...d,scenario:((e,t=!1)=>t?tU(e).replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"):tU(e))(JSON.stringify(((e="ESIA",t={})=>({version:"v2",entryPointId:r,product:c,productContext:h,isSilent:p,authProvider:e,consents:Object.fromEntries(((null==N?void 0:N.consents)??[]).map(e=>[e.key,e.value])),...g,...t}))(e,t)),!0)},o={...function(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let n=v(e[1].replace(u," "));if("__proto__"===n||"constructor"===n)continue;let i=v((e[2]||"").replace(u," "));void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}((s=function e(t="",r){let n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=""]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!function(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?x.test(e):b.test(e)||!!t.acceptRelative&&w.test(e)}(t,{acceptRelative:!0}))return r?e(r+t):_(t);let[,i="",l,a=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",o=""]=a.match(/([^#/?]*)(.*)?/)||[];"file:"===i&&(o=o.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:h,hash:u}=_(o);return{protocol:i.toLowerCase(),auth:l?l.slice(0,Math.max(0,l.length-1)):"",host:s,pathname:c,search:h,hash:u,[E]:!i}}(n)).search),...l},s.search=Object.keys(o).filter(e=>void 0!==o[e]).map(e=>{var t;return(("number"==typeof(t=o[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${y(e)}=${m(t)}`).join("&"):`${y(e)}=${m(t)}`:y(e)}).filter(Boolean).join("&"),f=(a=s).pathname||"",k=a.search?(a.search.startsWith("?")?"":"?")+a.search:"",A=a.hash||"",L=a.auth?a.auth+"@":"",$=a.host||"",(a.protocol||a[E]?(a.protocol||"")+"//":"")+L+$+f+k+A},isPending:j}})({configKey:n,apiBaseUrl:"",apiVersion:l,entryPointId:i,autoFetch:!1,baseUrl:t,product:o,productContext:c,query:h,scenarioParams:p,isSilent:f,config:s,serverConfig:e,onMount:T,onDestroy:R,onAnalyticsEvent:j}),{theme:q,variant:V,linkTarget:Q,title:K,description:G,highlights:Y,withLogo:W,isNewYearLogo:X,legalInfo:J,consents:ee=[],primaryTextOverride:et,additionalTextOverride:er,extraTextOverride:en,primaryAuthProviders:ei,additionalAuthProviders:el=[],extraAuthProviders:ea=[],view:es="base"}=Z(),{buttonsList:eo}=(e=>{let{providers:t,getHref:r,scenarioOptions:n}=e,i=e=>e?e.filter(rr).map(e=>({...rt[e],href:r(e,n),type:e,caption:rt[e].caption,icon:(0,a.createElement)(rt[e].icon),secondaryIcon:rt[e].secondaryIcon?(0,a.createElement)(rt[e].secondaryIcon):void 0})):[],{primary:l=[],additional:s=[],extra:o=[]}=t,c=i(l),h=i(s),u=i(o);return{primaryButtons:c,additionalButtons:h,extraButtons:u,buttonsList:[{type:"primary",buttons:c},{type:"additional",buttons:h},{type:"extra",buttons:u}]}})({providers:{primary:ei,additional:el,extra:ea},getHref:U,scenarioOptions:{consents:S,phone:P}}),ec=eo.some(({buttons:e})=>e.length>0),eh=(0,a.useCallback)(e=>{null==j||j(e)},[j]),eu=(0,a.useCallback)(e=>{F(e)},[]),ep="phone"===es?tJ:tW,ef="primary"===V?$.f:"div",ed=M?D:"div",eg=(0,a.useCallback)(e=>{z(e)},[]),em=(0,a.useMemo)(()=>o??{},[JSON.stringify(o)]);return e?Object.keys(e).length?(0,L.jsx)("div",{className:H("_loginWidget_iyq1s_31",g),style:k,...B,"data-auth-widgets-theme":q,"data-qa":"login-widget",children:(0,L.jsxs)(ef,{className:"_wrapper_iyq1s_51",children:[(0,L.jsx)(tV,{s3AssetsUrl:r,withLogo:W,isNewYearLogo:X,dataQa:"login-widget-logo"}),(K||G)&&(0,L.jsxs)("div",{children:[K&&(0,L.jsx)(O,{type:"h2",className:"_heading_iyq1s_56",dataQa:"login-widget-heading",children:K}),G&&(0,L.jsx)(I.f,{as:"p",size:"14",className:H("_description_iyq1s_57"),dataQa:"login-widget-description",children:G})]}),ec?(0,L.jsx)(ed,{text:M?"Чтобы войти в личный кабинет, подтвердите свое согласие:":"",...M?{dataQa:"login-widget-tooltip"}:{},children:(0,L.jsx)(ep,{buttonsList:eo,disabled:M,primaryTextOverride:et,additionalTextOverride:er,extraTextOverride:en,onAnalyticsEvent:eh,linkTarget:Q,phone:P,onPhoneChange:eu})}):(0,L.jsx)(I.f,{as:"p",weight:"bold",size:"20",dataQa:"login-widget-providers-empty",style:{textAlign:"center"},className:"mb-2",children:"Возникла техническая ошибка. Выберите другой способ входа или попробуйте войти позже"}),(0,L.jsx)(t0,{consents:ee,onAgree:e=>{N(e)},onError:eg,onAnalyticsEvent:j}),(0,L.jsx)(re,{productInfo:em,s3AssetsUrl:r,onAnalyticsEvent:j}),(0,L.jsx)(t3,{highlights:Y??null}),(0,L.jsx)(t4,{legalInfo:J,onAnalyticsEvent:j})]})}):(0,L.jsx)("p",{children:"Возникла техническая ошибка. Попробуйте позже"}):(0,L.jsx)(L.Fragment,{children:d})};rn.displayName="LoginWidget";var ri=e.i(12716),rl=e.i(43732);e.i(29059);var ra=e.i(40797);e.s(["f",0,function({open:e,configKey:t="investment-moneybox",entryPointId:r="moneybox-sc-landing",url:n,onClose:i}){let[s,o]=(0,a.useState)(null),c=(0,ra.f)("NEXT_PUBLIC_PL_LK_API_URL"),h=(0,ra.f)("NEXT_PUBLIC_MARKETPLACE_LK_BASE_URL"),u=(0,ra.f)("NEXT_PUBLIC_S3_ASSETS"),p="true"===(0,ra.f)("NEXT_PUBLIC_FAKE_ESIA_ENABLED"),f=n??`${h}/investment/moneybox/promo`;return(0,a.useEffect)(()=>{!async function(){o(await A(c,t))}()},[c]),(0,l.jsx)(ri.n,{open:e,onClose:i,children:(0,l.jsx)(rn,{serverConfig:s,baseUrl:h,s3AssetsUrl:u,config:{withLogo:!0,linkTarget:"_self"},entryPointId:r,scenarioParams:{targetUri:f},query:{...p&&{uat:!0}},isSilent:!0,onAnalyticsEvent:({eventCategory:e,eventAction:t,eventLabel:r})=>(0,rl.f)(e??"login-widget",t,{eventLabel:r})})})}],19233);var rs=e.i(18566),ro=e.i(6161);e.s(["f",0,function(e){let t=(0,rs.useSearchParams)();(0,a.useEffect)(()=>{t&&(0,ro.f)(Object.fromEntries(t),e)},[e,t])}],83410)}]);