(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2736],{25676:function(){},67356:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var l=n(32464);let i=async(e,t="common",n="v1")=>{try{let i=await fetch((0,l.xn)(e,`api/${n}/login-widget`,t));return i.ok?await i.json():(console.error(`Ошибка ${i.status} при загрузке конфига для ${t}`),{})}catch(e){return console.error(`Сетевая ошибка при загрузке конфига для ${t}`,e),{}}}},12736:function(e,t,n){"use strict";let l;n.d(t,{U:function(){return tM}});var i,r,a=n(57437),s=n(2265),o=n(19979),c=n(53035),h=n(88614),d=n(57885),p=function(){for(var e,t,n=0,l="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,l,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(l=e(t[n]))&&(i&&(i+=" "),i+=l);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(l&&(l+=" "),l+=t);return l},u=n(32464),g=n(65686),f=n(66187),m=n(89694),x=n(15149),k=n(55773),v=n(16355);let b=(0,s.forwardRef)((e,t)=>{let{maskOpts:n,value:l="",autoFocus:i=!1,onChange:r,onKeyDown:o,...c}=e,[h,d]=(0,s.useState)(""),{ref:p,setValue:u,unmaskedValue:g}=(0,k.Cj)(n,{onAccept:(e,t)=>{d(e),null==r||r(t.unmaskedValue,e)}});return(0,s.useEffect)(()=>{l!==g&&(u(l),d(l))},[l,u,g]),(0,s.useImperativeHandle)(t,()=>p.current),(0,a.jsx)(v.I,{...c,autoFocus:i,inputRef:p,value:h,onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),u(""),d(""),null==r||r("","")),null==o||o(e)}})});b.displayName="InputMasked";var w=n(50422);function y(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let C=y(),_=/[&<>"']/,$=RegExp(_.source,"g"),E=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,L=RegExp(E.source,"g"),A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},j=e=>A[e];function z(e,t){if(t){if(_.test(e))return e.replace($,j)}else if(E.test(e))return e.replace(L,j);return e}let R=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,T=/(^|[^\[])\^/g;function O(e,t){let n="string"==typeof e?e:e.source;t=t||"";let l={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(T,"$1"),n=n.replace(e,i),l},getRegex:()=>new RegExp(n,t)};return l}function N(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}let Z={exec:()=>null};function S(e,t){let n=e.replace(/\|/g,(e,t,n)=>{let l=!1,i=t;for(;--i>=0&&"\\"===n[i];)l=!l;return l?"|":" |"}).split(/ \|/),l=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("")}for(;l<n.length;l++)n[l]=n[l].trim().replace(/\\\|/g,"|");return n}function F(e,t,n){let l=e.length;if(0===l)return"";let i=0;for(;i<l;){let r=e.charAt(l-i-1);if(r!==t||n){if(r!==t&&n)i++;else break}else i++}return e.slice(0,l-i)}function I(e,t,n,l){let i=t.href,r=t.title?z(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){l.state.inLink=!0;let e={type:"link",raw:n,href:i,title:r,text:a,tokens:l.inlineTokens(a)};return l.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:r,text:z(a)}}class M{options;rules;lexer;constructor(e){this.options=e||C}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:F(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t){let n=e.match(/^(\s+)(?:```)/);if(null===n)return t;let l=n[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[n]=t;return n.length>=l.length?e.slice(l.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:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=F(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=F(e.replace(/^ *>[ \t]?/gm,""),"\n");let n=this.lexer.state.top;this.lexer.state.top=!0;let l=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:l,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),l=n.length>1,i={type:"list",raw:"",ordered:l,start:l?+n.slice(0,-1):"",loose:!1,items:[]};n=l?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=l?n:"[*+-]");let r=RegExp(`^( {0,3}${n})((?:[	 ][^\\n]*)?(?:\\n|$))`),a="",s="",o=!1;for(;e;){let n,l=!1;if(!(t=r.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],d=0;this.options.pedantic?(d=2,s=c.trimStart()):(d=(d=t[2].search(/[^ ]/))>4?1:d,s=c.slice(d),d+=t[1].length);let p=!1;if(!c&&/^ *$/.test(h)&&(a+=h+"\n",e=e.substring(h.length+1),l=!0),!l){let t=RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),n=RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),l=RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),i=RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;e;){let r=e.split("\n",1)[0];if(h=r,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),l.test(h)||i.test(h)||t.test(h)||n.test(e))break;if(h.search(/[^ ]/)>=d||!h.trim())s+="\n"+h.slice(d);else{if(p||c.search(/[^ ]/)>=4||l.test(c)||i.test(c)||n.test(c))break;s+="\n"+h}p||h.trim()||(p=!0),a+=r+"\n",e=e.substring(r.length+1),c=h.slice(d)}}!i.loose&&(o?i.loose=!0:/\n *\n *$/.test(a)&&(o=!0));let u=null;this.options.gfm&&(u=/^\[[ xX]\] /.exec(s))&&(n="[ ] "!==u[0],s=s.replace(/^\[[ xX]\] +/,"")),i.items.push({type:"list_item",raw:a,task:!!u,checked:n,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),n=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw));i.loose=n}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," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=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:n,title:l}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let n=S(t[1]),l=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===l.length){for(let e of l)/^ *-+: *$/.test(e)?r.align.push("right"):/^ *:-+: *$/.test(e)?r.align.push("center"):/^ *:-+ *$/.test(e)?r.align.push("left"):r.align.push(null);for(let e of n)r.header.push({text:e,tokens:this.lexer.inline(e)});for(let e of i)r.rows.push(S(e,r.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return r}}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:z(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=F(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let t=0;t<e.length;t++)if("\\"===e[t])t++;else if("("===e[t])n++;else if(")"===e[t]&&--n<0)return t;return -1}(t[2],"()");if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],l="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],l=e[3])}else l=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),I(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:l?l.replace(this.rules.inline.anyPunctuation,"$1"):l},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return I(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let l=this.rules.inline.emStrongLDelim.exec(e);if(!(!l||l[3]&&n.match(/[\p{L}\p{N}]/u))&&(!(l[1]||l[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...l[0]].length-1,i,r,a=n,s=0,o="*"===l[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!=(l=o.exec(t));){if(!(i=l[1]||l[2]||l[3]||l[4]||l[5]||l[6]))continue;if(r=[...i].length,l[3]||l[4]){a+=r;continue}if((l[5]||l[6])&&n%3&&!((n+r)%3)){s+=r;continue}if((a-=r)>0)continue;r=Math.min(r,r+a+s);let t=[...l[0]][0].length,o=e.slice(0,n+l.index+t+r);if(Math.min(n,r)%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," "),n=/[^ ]/.test(e),l=/^ /.test(e)&&/ $/.test(e);return n&&l&&(e=e.substring(1,e.length-1)),e=z(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,n;return n="@"===t[2]?"mailto:"+(e=z(t[1])):e=z(t[1]),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=z(t[0]));else{let l;do l=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(l!==t[0]);e=z(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,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]:z(t[0]),{type:"text",raw:t[0],text:e}}}}let P=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,V=/(?:[*+-]|\d{1,9}[.)])/,q=O(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,V).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(),H=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,B=/(?!\s*\])(?:\\.|[^\[\]\\])+/,D=O(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",B).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),U=O(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,V).getRegex(),Q="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",W=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,G=O("^ {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",W).replace("tag",Q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),K=O(H).replace("hr",P).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",Q).getRegex(),X={blockquote:O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",K).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:D,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:P,html:G,lheading:q,list:U,newline:/^(?: *(?:\n|$))+/,paragraph:K,table:Z,text:/^[^\n]+/},Y=O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",P).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",Q).getRegex(),J={...X,table:Y,paragraph:O(H).replace("hr",P).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Y).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",Q).getRegex()},ee={...X,html:O("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",W).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:Z,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:O(H).replace("hr",P).replace("heading"," *#{1,6} *[^\n]").replace("lheading",q).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},et=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,en=/^( {2,}|\\)\n(?!\s*$)/,el="\\p{P}\\p{S}",ei=O(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,el).getRegex(),er=O(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,el).getRegex(),ea=O("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,el).getRegex(),es=O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,el).getRegex(),eo=O(/\\([punct])/,"gu").replace(/punct/g,el).getRegex(),ec=O(/^<(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(),eh=O(W).replace("(?:-->|$)","-->").getRegex(),ed=O("^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",eh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ep=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,eu=O(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ep).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),eg=O(/^!?\[(label)\]\[(ref)\]/).replace("label",ep).replace("ref",B).getRegex(),ef=O(/^!?\[(ref)\](?:\[\])?/).replace("ref",B).getRegex(),em=O("reflink|nolink(?!\\()","g").replace("reflink",eg).replace("nolink",ef).getRegex(),ex={_backpedal:Z,anyPunctuation:eo,autolink:ec,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:en,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Z,emStrongLDelim:er,emStrongRDelimAst:ea,emStrongRDelimUnd:es,escape:et,link:eu,nolink:ef,punctuation:ei,reflink:eg,reflinkSearch:em,tag:ed,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Z},ek={...ex,link:O(/^!?\[(label)\]\((.*?)\)/).replace("label",ep).getRegex(),reflink:O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ep).getRegex()},ev={...ex,escape:O(et).replace("])","~|])").getRegex(),url:O(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},eb={...ev,br:O(en).replace("{2,}","*").getRegex(),text:O(ev.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ew={normal:X,gfm:J,pedantic:ee},ey={normal:ex,gfm:ev,breaks:eb,pedantic:ek};class eC{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||C,this.options.tokenizer=this.options.tokenizer||new M,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:ew.normal,inline:ey.normal};this.options.pedantic?(t.block=ew.pedantic,t.inline=ey.pedantic):this.options.gfm&&(t.block=ew.gfm,this.options.breaks?t.inline=ey.breaks:t.inline=ey.gfm),this.tokenizer.rules=t}static get rules(){return{block:ew,inline:ey}}static lex(e,t){return new eC(t).lex(e)}static lexInline(e,t){return new eC(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 n,l,i,r;for(e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,n)=>t+"    ".repeat(n.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>!!(n=l.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),(l=t[t.length-1])&&("paragraph"===l.type||"text"===l.type)?(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);continue}if((n=this.tokenizer.fences(e))||(n=this.tokenizer.heading(e))||(n=this.tokenizer.hr(e))||(n=this.tokenizer.blockquote(e))||(n=this.tokenizer.list(e))||(n=this.tokenizer.html(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),(l=t[t.length-1])&&("paragraph"===l.type||"text"===l.type)?(l.raw+="\n"+n.raw,l.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if((n=this.tokenizer.table(e))||(n=this.tokenizer.lheading(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t,n=1/0,l=e.slice(1);this.options.extensions.startBlock.forEach(e=>{"number"==typeof(t=e.call({lexer:this},l))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){l=t[t.length-1],r&&"paragraph"===l.type?(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n),r=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),(l=t[t.length-1])&&"text"===l.type?(l.raw+="\n"+n.raw,l.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):t.push(n);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 n,l,i,r,a,s;let o=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(o));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(o));)o=o.slice(0,r.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(l=>!!(n=l.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),(l=t[t.length-1])&&"text"===n.type&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),(l=t[t.length-1])&&"text"===n.type&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,o,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let t,n=1/0,l=e.slice(1);this.options.extensions.startInline.forEach(e=>{"number"==typeof(t=e.call({lexer:this},l))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,(l=t[t.length-1])&&"text"===l.type?(l.raw+=n.raw,l.text+=n.text):t.push(n);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 e_{options;constructor(e){this.options=e||C}code(e,t,n){let l=(t||"").match(/^\S*/)?.[0];return(e=e.replace(/\n$/,"")+"\n",l)?'<pre><code class="language-'+z(l)+'">'+(n?e:z(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:z(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>
`}hr(){return"<hr>\n"}list(e,t,n){let l=t?"ol":"ul";return"<"+l+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+l+">\n"}listitem(e,t,n){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 n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
`}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,n){let l=N(e);if(null===l)return n;let i='<a href="'+(e=l)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"}image(e,t,n){let l=N(e);if(null===l)return n;e=l;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=">"}text(e){return e}}class e${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,n){return""+n}image(e,t,n){return""+n}br(){return""}}class eE{options;renderer;textRenderer;constructor(e){this.options=e||C,this.options.renderer=this.options.renderer||new e_,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new e$}static parse(e,t){return new eE(t).parse(e)}static parseInline(e,t){return new eE(t).parseInline(e)}parse(e,t=!0){let n="";for(let l=0;l<e.length;l++){let i=e[l];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)){n+=e||"";continue}}switch(i.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":n+=this.renderer.heading(this.parseInline(i.tokens),i.depth,this.parseInline(i.tokens,this.textRenderer).replace(R,(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":n+=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 l="";for(let e=0;e<i.rows.length;e++){let n=i.rows[e];t="";for(let e=0;e<n.length;e++)t+=this.renderer.tablecell(this.parseInline(n[e].tokens),{header:!1,align:i.align[e]});l+=this.renderer.tablerow(t)}n+=this.renderer.table(e,l);continue}case"blockquote":{let e=this.parse(i.tokens);n+=this.renderer.blockquote(e);continue}case"list":{let e=i.ordered,t=i.start,l=i.loose,r="";for(let e=0;e<i.items.length;e++){let t=i.items[e],n=t.checked,a=t.task,s="";if(t.task){let e=this.renderer.checkbox(!!n);l?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,l),r+=this.renderer.listitem(s,a,!!n)}n+=this.renderer.list(r,e,t);continue}case"html":n+=this.renderer.html(i.text,i.block);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(i.tokens));continue;case"text":{let r=i,a=r.tokens?this.parseInline(r.tokens):r.text;for(;l+1<e.length&&"text"===e[l+1].type;)a+="\n"+((r=e[++l]).tokens?this.parseInline(r.tokens):r.text);n+=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 n}parseInline(e,t){t=t||this.renderer;let n="";for(let l=0;l<e.length;l++){let i=e[l];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)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i.text);break;case"html":n+=t.html(i.text);break;case"link":n+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":n+=t.image(i.href,i.title,i.text);break;case"strong":n+=t.strong(this.parseInline(i.tokens,t));break;case"em":n+=t.em(this.parseInline(i.tokens,t));break;case"codespan":n+=t.codespan(i.text);break;case"br":n+=t.br();break;case"del":n+=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 n}}class eL{options;constructor(e){this.options=e||C}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class eA{defaults=y();options=this.setOptions;parse=this.#e(eC.lex,eE.parse);parseInline=this.#e(eC.lexInline,eE.parseInline);Parser=eE;Renderer=e_;TextRenderer=e$;Lexer=eC;Tokenizer=M;Hooks=eL;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":for(let e of l.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of l.rows)for(let l of e)n=n.concat(this.walkTokens(l.tokens,t));break;case"list":n=n.concat(this.walkTokens(l.items,t));break;default:{let e=l;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(l=>{let i=e[l].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let l=e.renderer.apply(this,t);return!1===l&&(l=n.apply(this,t)),l}: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 n=t[e.level];n?n.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)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new e_(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if("options"===n)continue;let l=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=l.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new M(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let l=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=l.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eL;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if("options"===n)continue;let l=e.hooks[n],i=t[n];eL.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(l.call(t,e)).then(e=>i.call(t,e));let n=l.call(t,e);return i.call(t,n)}:t[n]=(...e)=>{let n=l.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,l=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(l.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return eC.lex(e,t??this.defaults)}parser(e,t){return eE.parse(e,t??this.defaults)}#e(e,t){return(n,l)=>{let i={...l},r={...this.defaults,...i};!0===this.defaults.async&&!1===i.async&&(r.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),r.async=!0);let a=this.#t(!!r.silent,!!r.async);if(null==n)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(t=>e(t,r)).then(e=>r.hooks?r.hooks.processAllTokens(e):e).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>t(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(a);try{r.hooks&&(n=r.hooks.preprocess(n));let l=e(n,r);r.hooks&&(l=r.hooks.processAllTokens(l)),r.walkTokens&&this.walkTokens(l,r.walkTokens);let i=t(l,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(e){return a(e)}}}#t(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+z(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}}let ej=new eA;function ez(e,t){return ej.parse(e,t)}ez.options=ez.setOptions=function(e){return ej.setOptions(e),ez.defaults=ej.defaults,C=ez.defaults,ez},ez.getDefaults=y,ez.defaults=C,ez.use=function(...e){return ej.use(...e),ez.defaults=ej.defaults,C=ez.defaults,ez},ez.walkTokens=function(e,t){return ej.walkTokens(e,t)},ez.parseInline=ej.parseInline,ez.Parser=eE,ez.parser=eE.parse,ez.Renderer=e_,ez.TextRenderer=e$,ez.Lexer=eC,ez.lexer=eC.lex,ez.Tokenizer=M,ez.Hooks=eL,ez.parse=ez,ez.options,ez.setOptions,ez.use,ez.walkTokens,ez.parseInline,eE.parse,eC.lex;var eR=n(35515);n(96434).Buffer,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 eT=Object.freeze({RUB:"₽",USD:"$",EUR:"€",AUD:"AU$",AZN:"₼",GBP:"\xa3",AMD:"֏",BYN:"Br",BGN:"лв",BRL:"R$",HUF:"Ft",VND:"₫",HKD:"HK$",GEL:"₾",DKK:"kr",AED:"د.إ.",EGP:"E\xa3",INR:"₹",IDR:"Rp",KZT:"₸",CAD:"CA$",QAR:"ر.ق.",KGS:"с",CNY:"CN\xa5",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:"\xa5"});var eO=((i=eO||{}).Pending="pending",i.Success="success",i);let eN={decimalCount:2,decimalSeparator:",",thousandsSeparator:"\xa0",decimalIsWithoutZeros:!0,preventLargeNumbers:!1};"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder,(e=>{let t={};e.forEach((e,n)=>t[e]=n)})(Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);var eZ=((r=eZ||{}).PERSISTENT_STATE="persistentState",r),eS=n(61994);function eF(e){return`finkit-${e}`}let eI=Object.freeze({privateIcon:eF("private-icon")}),eM={display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden"},eP=eF("caption");Object.freeze({caption:eP,captionWithIcon:`${eP}--with-icon`,content:`${eP}__content`,icon:`${eP}__icon`,text:`${eP}__text`,size:{s:`${eP}--s`,m:`${eP}--m`},states:{success:`${eP}--success`,error:`${eP}--error`,warning:`${eP}--warning`}});let eV=eF("form-field");Object.freeze({formField:eV,labelWrapper:`${eV}__label-wrapper`,label:`${eV}__label`,description:`${eV}__description`});let eq=eF("heading");Object.freeze({heading:eq,states:Object.freeze({display:`${eq}--display`,hero:`${eq}--hero`,h1:`${eq}--h1`,h2:`${eq}--h2`,h3:`${eq}--h3`,h4:`${eq}--h4`,h5:`${eq}--h5`,h6:`${eq}--h6`})});let eH=Object.freeze({text:eF("text")});function eB({as:e,className:t,style:n,children:l,size:i,weight:r,lineClamp:s,dataQa:o,dataId:c,...h}){return(0,a.jsx)(e||"span",{className:(0,eS.Z)(eH.text,t),style:{...i&&{fontSize:`var(--font-size-${i})`,lineHeight:`var(--font-line-height-${i})`},...r&&{fontWeight:`var(--font-weight-${r})`},...s&&{WebkitLineClamp:s,lineClamp:s,...eM},...n},...h,"data-id":c,"data-qa":o,children:l})}eB.displayName="Text";let eD=Object.freeze(Object.keys(Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})})));Object.freeze(eD.filter(e=>"xs"!==e)),Object.freeze(eD.filter(e=>"3xl"!==e)),eF("card");let eU=eF("col");Object.freeze({col:eU,state:{size:(e,t)=>!0===t?`${eU}--${e}`:`${eU}--${e}-${t}`,offsetLeft:(e,t)=>`${eU}--${e}-offset-left-${t}`,offsetRight:(e,t)=>`${eU}--${e}-offset-right-${t}`}});let eQ=eF("container");Object.freeze({container:eQ,states:{narrow:`${eQ}--narrow`}});let eW=eF("divider");Object.freeze({divider:eW,content:`${eW}__content`});let eG=eF("loader");Object.freeze({loader:eG,variant:{primary:`${eG}--primary`,purple:`${eG}--purple`,accent:`${eG}--accent`,white:`${eG}--white`},size:{s:`${eG}--s`,m:`${eG}--m`,l:`${eG}--l`}});let eK=eF("progress-bar");Object.freeze({progressBar:eK,rounded:`${eK}-rounded`,indicator:`${eK}__indicator`,text:`${eK}__text`,animationCircle:`${eK}__animation-circle`});let eX=eF("row"),eY=(e,t,n)=>`${eX}--gutter-${e}-${t}-${n}`;Object.freeze({row:eX,state:{reverse:`${eX}--reverse`,gutter:(e,t="xs")=>Array.isArray(e)?[eY(t,e[0],"h"),eY(t,e[1],"v")].join(" "):eY(t,e,"h")}});let eJ=eF("skeleton");Object.freeze({skeleton:eJ,states:{inline:`${eJ}--inline`,rounded:`${eJ}--rounded`,inverted:`${eJ}--inverted`,suspend:`${eJ}--suspend`}});let e1=[{name:"Browser Loona",regex:/\bSapphire(?:\/[0-9.]+)?/i}];var e0=n(96434).Buffer;let e2="function"==typeof e0;"function"==typeof TextDecoder&&new TextDecoder;let e3="function"==typeof TextEncoder?new TextEncoder:void 0,e4=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),e7=(l={},e4.forEach((e,t)=>l[e]=t),l),e5=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,e6=String.fromCharCode.bind(String);"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);let e8=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),e9="function"==typeof btoa?e=>btoa(e):e2?e=>e0.from(e,"binary").toString("base64"):e=>{let t,n,l,i,r="",a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(l=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw TypeError("invalid character found");r+=e4[(t=n<<16|l<<8|i)>>18&63]+e4[t>>12&63]+e4[t>>6&63]+e4[63&t]}return a?r.slice(0,a-3)+"===".substring(a):r},te=e2?e=>e0.from(e).toString("base64"):e=>{let t=[];for(let n=0,l=e.length;n<l;n+=4096)t.push(e6.apply(null,e.subarray(n,n+4096)));return e9(t.join(""))},tt=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?e6(192|t>>>6)+e6(128|63&t):e6(224|t>>>12&15)+e6(128|t>>>6&63)+e6(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return e6(240|t>>>18&7)+e6(128|t>>>12&63)+e6(128|t>>>6&63)+e6(128|63&t)},tn=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,tl=e=>e.replace(tn,tt),ti=e2?e=>e0.from(e,"utf8").toString("base64"):e3?e=>te(e3.encode(e)):e=>e9(tl(e)),tr=(e,t=!1)=>t?e8(ti(e)):ti(e),ta=e=>tr(e,!0);"function"==typeof atob||e2||(e=>{if(e=e.replace(/\s+/g,""),!e5.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n="",l,i;for(let r=0;r<e.length;)t=e7[e.charAt(r++)]<<18|e7[e.charAt(r++)]<<12|(l=e7[e.charAt(r++)])<<6|(i=e7[e.charAt(r++)]),n+=64===l?e6(t>>16&255):64===i?e6(t>>16&255,t>>8&255):e6(t>>16&255,t>>8&255,255&t);return n});var ts=n(67356);let to={logo:"_logo_1y5yi_31",mainLogo:"_mainLogo_1y5yi_38",brandmarkLogo:"_brandmarkLogo_1y5yi_42",divider:"_divider_1y5yi_46"},tc=({s3AssetsUrl:e,className:t,withLogo:n=!1,isNewYearLogo:l=!1,dataQa:i,brandmarkCode:r})=>{if(!e)return null;let s=l?(0,u.xn)(e,"logo/finuslugi/lk-regular-new-year.svg"):(0,u.xn)(e,"logo/finuslugi/lk-regular.svg"),o=(0,u.xn)(e,`/images/logo-brandmark-bank-${r}.svg`);return(0,a.jsx)(a.Fragment,{children:n&&(0,a.jsxs)("div",{className:p(to.logo,t),"data-qa":i,children:[(0,a.jsx)("img",{className:to.mainLogo,src:s,alt:"Логотип"}),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:to.divider}),(0,a.jsx)("img",{className:to.brandmarkLogo,src:o,alt:"Логотип партнера"})]})]})})};tc.displayName="Logo";let th={privateIcon:"_privateIcon_xcp32_1",autoWidth:"_autoWidth_xcp32_14"},td=({children:e,className:t,style:n,autoWidth:l,...i})=>(0,a.jsx)("span",{className:p(t,th.privateIcon,l&&th.autoWidth),style:n,...i,children:e});td.displayName="PrivateIcon";let tp={buttons:"_buttons_1vnnm_31","--disabled":"_--disabled_1vnnm_38",buttonIcons:"_buttonIcons_1vnnm_42",divider:"_divider_1vnnm_47",gridView:"_gridView_1vnnm_51",gridViewDivider:"_gridViewDivider_1vnnm_61",formView:"_formView_1vnnm_65",modalInner:"_modalInner_1vnnm_71"},tu=({buttonsData:e,disabled:t=!1,primaryTextOverride:n,additionalTextOverride:l,extraTextOverride:i,onAnalyticsEvent:r,onOpen:s,linkTarget:o})=>{let{buttons:c,type:h}=e,d={primary:n,additional:l,extra:i};return c.length?(0,a.jsxs)(a.Fragment,{children:[1===c.length&&(0,a.jsx)(f.z,{dataQa:`login-widget-${h}-button`,as:"a",target:o,href:t?"#login-widget-consents":c[0].href,stretch:!0,variant:"primary"===h?"primary":"secondary",disabled:t,label:d[h]??c[0].label,iconLeft:d[h]?void 0:c[0].icon,onClick:()=>{null==r||r({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:c[0].type})}},`button-${h}`),c.length>1&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(f.z,{dataQa:`login-widget-${h}-button`,stretch:!0,variant:"primary"===h?"primary":"secondary",disabled:t,label:d[h]?(0,a.jsx)("span",{children:d[h]}):(0,m.aF)("xs")&&c.length>5?(0,a.jsx)("span",{children:"Войти по ID"}):(0,a.jsx)("span",{className:tp.buttonIcons,children:c.map(e=>e.icon?(0,a.jsx)(td,{style:{lineHeight:0},children:e.icon},e.type):void 0)}),onClick:()=>null==s?void 0:s(h)},`button-${h}`)})]}):null};tu.displayName="ButtonsGroup";let tg=({buttonsList:e=[],isOpen:t=!1,buttonsType:n="",onAnalyticsEvent:l,onClose:i,linkTarget:r})=>{var o,c;let h=(0,s.useCallback)(e=>{null==l||l({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e}),setTimeout(()=>null==i?void 0:i())},[]);return(0,a.jsx)(x.u,{header:{title:"Выберите способ входа"},open:t,onClose:i,dataQa:"login-widget-buttons-modal",children:(0,a.jsx)("div",{className:tp.modalInner,children:null==(c=null==(o=e.find(e=>e.type===n))?void 0:o.buttons)?void 0:c.map(({type:e,href:t,caption:n,icon:l,secondaryIcon:i})=>(0,a.jsx)(f.z,{dataQa:`login-widget-buttons-modal-button-${null==e?void 0:e.toLowerCase()}`,as:"a",target:r,href:t,stretch:!0,variant:"secondary",label:n,iconLeft:i??l,onClick:()=>h(e)},`modal-button-${e}`))})})};tg.displayName="ButtonsModal";let tf=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:n,additionalTextOverride:l,extraTextOverride:i,onAnalyticsEvent:r,linkTarget:o})=>{let[c,h]=(0,s.useState)(!1),[d,u]=(0,s.useState)(),{primaryGroup:f,remainingGroup:m,isRemainingGroupVisible:x}=(0,s.useMemo)(()=>{let[t,...n]=e,l=n.some(({buttons:e})=>e.length);return{primaryGroup:t,remainingGroup:n,isRemainingGroupVisible:l}},[e]),k=(0,s.useCallback)(e=>{h(!0),u(e),null==r||r({eventCategory:"login-widget",eventAction:"click_popup_open",eventLabel:"popup_select_login_provider"})},[]),v=(0,s.useCallback)(()=>{h(!1),u(""),null==r||r({eventCategory:"login-widget",eventAction:"click_popup_close",eventLabel:"popup_select_login_provider"})},[]);return e.length?(0,a.jsxs)("div",{className:p(tp.buttons,{[tp["--disabled"]]:t}),"data-qa":"login-widget-buttons",children:[(0,a.jsx)(tu,{buttonsData:f,disabled:t,primaryTextOverride:n,onAnalyticsEvent:r,onOpen:k,linkTarget:o}),x&&(0,a.jsxs)(a.Fragment,{children:[!!f.buttons.length&&(0,a.jsx)(g.i,{className:tp.divider,content:"или",dataQa:"login-widget-buttons-divider"}),m.map(e=>(0,a.jsx)(tu,{buttonsData:e,additionalTextOverride:l,extraTextOverride:i,disabled:t,onAnalyticsEvent:r,onOpen:k,linkTarget:o},`group-${e.type}`))]}),(0,a.jsx)(tg,{buttonsList:e,buttonsType:d,isOpen:c,onAnalyticsEvent:r,onClose:v,linkTarget:o})]}):null};tf.displayName="Buttons";let tm=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:n,onAnalyticsEvent:l,linkTarget:i})=>{let r=(0,s.useCallback)(e=>{null==l||l({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e})},[]),{primaryGroup:o,remainingGroup:c,isRemainingGroupVisible:h}=(0,s.useMemo)(()=>{let[t,...n]=e;return{primaryGroup:t,remainingGroup:n.reduce((e,{buttons:t})=>[...e,...t],[]),isRemainingGroupVisible:n.some(({buttons:e})=>e.length)}},[e]);return e.length?(0,a.jsxs)("div",{className:p(tp.buttons,{[tp["--disabled"]]:t}),"data-qa":"login-widget-buttons",children:[(0,a.jsx)(tu,{buttonsData:o,disabled:t,primaryTextOverride:n,onAnalyticsEvent:l,linkTarget:i}),h&&(0,a.jsxs)(a.Fragment,{children:[!!o.buttons.length&&(0,a.jsx)(g.i,{className:tp.gridViewDivider,content:"или",dataQa:"login-widget-buttons-divider"}),(0,a.jsx)("div",{className:p(tp.gridView,{[tp["--disabled"]]:t}),"data-qa":"login-widget-buttons",children:c.map(e=>(0,a.jsx)(f.z,{appearance:"outline",stretch:!0,variant:"secondary",dataQa:`login-widget-${e.type}-button`,as:"a",target:i,href:e.href,disabled:t,label:(0,a.jsx)(td,{className:tp.buttonIcons,autoWidth:!0,children:e.icon},e.type),onClick:()=>r(e.type)},`button-${e.type}`))})]})]}):null};tm.displayName="ButtonsGrid";let tx=({phone:e,onPhoneChange:t,buttonsList:n,disabled:l,primaryTextOverride:i,onAnalyticsEvent:r,linkTarget:s})=>(0,a.jsxs)("div",{className:p(tp.formView),children:[(0,a.jsx)(b,{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,a.jsx)(tm,{buttonsList:n,disabled:l,primaryTextOverride:i,onAnalyticsEvent:r,linkTarget:s})]});tx.displayName="PhoneViewButtons";let tk=({template:e,onLinkClick:t})=>{if(!Object.keys(e).length||!e.links)return null;let{text:n,links:l}=e,i=n.split(/(\$\d+)/);return(0,a.jsx)(a.Fragment,{children:i.map(e=>{if(e.startsWith("$")){let n=l[parseInt(e.slice(1))-1];return(0,a.jsx)("a",{href:n.href,target:"_blank",rel:"noreferrer",onClick:()=>null==t?void 0:t(n.href),children:n.text},`link--${n.text}`)}return(0,a.jsx)("span",{children:e},`text--${e}`)})})};tk.displayName="TemplateText";let tv={consents:"_consents_1v8l3_31",list:"_list_1v8l3_31",checkbox:"_checkbox_1v8l3_36",error:"_error_1v8l3_46"},tb=({consents:e=[],onAgree:t,onError:n,onAnalyticsEvent:l})=>{let[i,r]=(0,s.useState)(()=>Object.fromEntries(e.map(e=>[e.key,e.value]))),o=e.filter(e=>!e.hidden),c=o.filter(e=>e.required).some(e=>!i[e.key]);(0,s.useEffect)(()=>{t(i)},[i]),(0,s.useEffect)(()=>{n(c)},[c]);let h=(e,t)=>{r(n=>({...n,[e]:t})),null==l||l({eventCategory:"login-widget",eventAction:"click_checkbox_consent",eventLabel:`${e}_${t?"tick":"untick"}`})},d=e=>{null==l||l({eventCategory:"login-widget",eventAction:"click_link_consent",eventLabel:e})};return e.length?(0,a.jsx)("div",{id:"login-widget-consents",className:tv.consents,"data-qa":"login-widget-consents",children:(0,a.jsx)("div",{className:tv.list,"data-qa":"login-widget-consents-list",children:o.map(({key:e,title:t,required:n})=>{var l;return(0,a.jsx)(w.X,{dataQa:`login-widget-consents-checkbox-${e}`,className:p(tv.checkbox,{[tv.error]:!i[e]&&c}),state:n&&!i[e]?"error":"default",value:i[e],onChange:t=>h(e,t),children:null!=(l=t.links)&&l.length?(0,a.jsx)(tk,{template:t,onLinkClick:d}):t.text},e)})})}):null};tb.displayName="Consents";let tw={list:"_list_1896j_39",item:"_item_1896j_47",icon:"_icon_1896j_61"},ty={check:(0,a.jsx)(e=>s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),s.createElement("g",{clipPath:"url(#a)"},s.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,a.jsx)(e=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),s.createElement("g",{clipPath:"url(#a)"},s.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,a.jsx)(e=>s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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,a.jsx)(e=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),s.createElement("g",{clipPath:"url(#a)"},s.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,a.jsx)(e=>s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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,a.jsx)(e=>s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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"})),{})},tC=({highlights:e})=>{if(!e||!e.items.length)return null;let t=e=>ty[e]||ty.check,{items:n,heading:l}=e;return(0,a.jsxs)(o.Z,{variant:"secondary",dataQa:"login-widget-highlights",children:[l&&(0,a.jsx)(c.X,{as:"h5",type:"h5",className:"mb-2",dataQa:"login-widget-highlights-heading",children:l}),(0,a.jsx)("ul",{className:tw.list,"data-qa":"login-widget-highlights-list",children:(0,a.jsx)(a.Fragment,{children:n.map(({text:e,icon:n})=>(0,a.jsxs)("li",{className:tw.item,"data-qa":"login-widget-highlights-list-item",children:[(0,a.jsx)("div",{className:tw.icon,"data-qa":"login-widget-highlights-list-icon",children:t(n)}),(0,a.jsx)(h.x,{as:"p",dataQa:"login-widget-highlights-list-text",children:e})]},`${e}--${n}`))})})]})};tC.displayName="Highlights";let t_={legalInfo:"_legalInfo_hviu6_31"},t$=({legalInfo:e,onAnalyticsEvent:t})=>{if(!e||Object.values(e).every(e=>!e))return null;let{plain:n,html:l,md:i}=e,r=i?ez.parse(i):l??"";return(0,a.jsx)("div",{className:t_.legalInfo,"data-qa":"login-widget-legal-info",children:n?(0,a.jsx)(tk,{template:n,onLinkClick:e=>{null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:e})}}):(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:r},onClick:e=>{let{href:n}=e.target;n&&(null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:n}))}})})};t$.displayName="LegalInfo";let tE={DAY:["день","дня","дней"],MONTH:["мес.","мес.","мес."],YEAR:["год","года","лет"],TERMLESS:["бессрочный","бессрочный","бессрочный"]},tL={deposit:"Вклад",credit:"Кредит",bond:"Облигация",account:"Счет","banking-account":"Банковский счет"},tA=e=>{if(!(e instanceof Date))return null;let t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),l=e.getFullYear();return`${t}.${n}.${l}`},tj={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"},tz=({title:e,value:t,className:n,...l})=>(0,a.jsxs)("div",{className:tj.detail,...l,children:[(0,a.jsx)(eB,{dataQa:"login-widget-product-card-detail-title",className:tj.detailTitle,children:e}),(0,a.jsx)(eB,{dataQa:"login-widget-product-card-detail-value",className:(p(tj.detailValue),n),children:t})]});tz.displayName="ProductDetail";let tR=({params:e})=>{if(!e)return null;let{amount:t,rate:n}=e??{},l=tA(e.endDate),i=e.term,r=[{id:"params-rate",title:"Ставка",value:`${n}%`},{id:"params-amount",title:"Сумма",value:`${function(e,t){try{let n;let{hasCurrencySymbol:l=!0,currencyCode:i,decimalCount:r=eN.decimalCount,decimalSeparator:a=eN.decimalSeparator,thousandsSeparator:s=eN.thousandsSeparator,decimalIsWithoutZeros:o=eN.decimalIsWithoutZeros,preventLargeNumbers:c=eN.preventLargeNumbers}=t||{},h=e;if("string"==typeof h&&(h=h.replace(/\s+/g,"").replace(",",".")),h=Number(h)||0,c&&(n=function(e,t){if(e>=1e9){let n=(Math.floor(e/1e9*1e3)/1e3).toString();return n.includes(".")?n.replace(".",",").replace(/0+$/,"")+t+"млрд":n+t+"млрд"}if(e>=1e6){let n=(Math.floor(e/1e6*1e3)/1e3).toString();return n.includes(".")?n.replace(".",",").replace(/0+$/,"")+t+"млн":n+t+"млн"}return e>=1e4&&e<=99999?Math.trunc(e):e}(h,s)),!c||c&&"number"==typeof n){let e=Number(n??h),t=c&&e>1e3?0:function(e){let t=Math.abs(Number(e));return Number.isNaN(t)?eN.decimalCount:t}(r),l=Math.abs(e).toFixed(t),i=parseInt(l,10);n=function({money:e,moneyInt:t,thousandsSeparator:n}){let l=t.toString(),i=RegExp(l.length>4?"(\\d{3})(?=\\d)":"(\\d{4})(?=\\d)","g"),r=l.length>4?l.length%3:0,a=r?l.substr(0,r)+n:"";return(e<0?"-":"")+a+l.substr(r).replace(i,`$1${n}`)}({money:e,moneyInt:i,thousandsSeparator:s})+function({money:e,moneyInt:t,decimalCount:n,decimalSeparator:l,decimalIsWithoutZeros:i}){let r=Math.abs(e-t).toFixed(n),a=i?r.slice(2).replace(/0+$/,""):r.slice(2);return!n||0===(Number(e)||0)||i&&0===parseFloat(r)||""===a?"":l+a}({money:Number(l),moneyInt:i,decimalCount:t,decimalSeparator:a,decimalIsWithoutZeros:o})}return n+(l?`\xa0${eT[i]||eT.RUB}`:"")}catch(e){return console.log(e),""}}(null==t?void 0:t.value,{preventLargeNumbers:!0,currencyCode:(null==t?void 0:t.currency)??"RUB"})}`},{id:i?"params-term":l?"params-end-date":"",title:i?"Срок":l?"Погашение":"",value:i?`${function(e,t,n=!1){if(!Array.isArray(t))throw Error("Plurals must be type of Array<String>");let[l,i,r]=t,a=Math.abs(+e);return(a%=100)>=5&&a<=20?n?r:`${e} ${r}`:1==(a%=10)?n?l:`${e} ${l}`:a>=2&&a<=4?n?i:`${e} ${i}`:n?r:`${e} ${r}`}(i.value,tE[i.type??"DAY"])}`:l||""}];return(0,a.jsx)("div",{className:tj.details,"data-qa":"login-widget-product-card-details",children:r.map(({id:e,title:t,value:n})=>(0,a.jsx)(tz,{"data-qa":`login-widget-product-card-detail-${e}`,title:t,value:n,className:p({[tj.detailRate]:"params-rate"===e})},e))})};tR.displayName="ProductDetails";let tT=({productInfo:e,s3AssetsUrl:t,className:n,onAnalyticsEvent:l})=>{let i=(0,s.useRef)(null),r=!e||!Object.keys(e).length,d=!i.current||!Object.keys(i.current).length;if((0,s.useEffect)(()=>{var t;r&&!d?null==l||l({eventCategory:"login-widget",eventAction:"view_product_delete",eventLabel:(null==(t=i.current)?void 0:t.type)??void 0}):!r&&d?null==l||l({eventCategory:"login-widget",eventAction:"view_product_add",eventLabel:e.type??void 0}):r||d||null==l||l({eventCategory:"login-widget",eventAction:"view_product_update",eventLabel:e.type??void 0}),i.current=e},[e]),r)return null;let{title:g,label:f,type:m,params:x,provider:k}=e,v=(0,u.xn)(t,`/images/logo-brandmark-bank-${null==k?void 0:k.code}.svg`),b=null==k?void 0:k.code,w=m?tL[m]:"";return(0,a.jsxs)(o.Z,{variant:"secondary",className:p(tj.productCard,{[tj[`--${m}`]??""]:!0},n),dataQa:"login-widget-product-card",children:[(0,a.jsxs)("div",{className:p("mb-3",tj.headingWrap),children:[(0,a.jsx)(c.X,{as:"h5",type:"h5",dataQa:"login-widget-product-card-heading",children:"Выбранный продукт"}),f&&(0,a.jsx)(eR.V,{label:f,rounded:!0,size:"s",variant:"red",dataQa:"login-widget-product-card-label"})]}),(0,a.jsxs)("div",{className:tj.wrapper,children:[(0,a.jsxs)("div",{className:tj.info,"data-qa":"login-widget-product-card-info",children:[b&&(0,a.jsx)("img",{className:tj.logo,loading:"lazy",width:"100%",height:"36px",src:v,alt:"Логотип продукта","data-qa":"login-widget-product-card-logo"}),(0,a.jsxs)("div",{className:tj.textWrapper,children:[w&&(0,a.jsx)(h.x,{as:"p",dataQa:"login-widget-product-card-title",className:tj.text,children:w}),g&&(0,a.jsx)(h.x,{as:"p",dataQa:"login-widget-product-card-text",className:tj.text,children:g})]})]}),(0,a.jsx)(tR,{params:x})]})]})};tT.displayName="ProductCard";let tO=Object.freeze({ESIA:{label:"Войти через Госуслуги",caption:"Госуслуги",icon:e=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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"}),s.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"}),s.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=>s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("defs",null,s.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"esia-colored",gradientUnits:"userSpaceOnUse"},s.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),s.createElement("stop",{offset:.636,stopColor:"#EF3E58"}))),s.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=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),s.createElement("g",{clipPath:"url(#a)"},s.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=>s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24.001,fill:"none",viewBox:"0 0 24 24.001",...e},s.createElement("path",{d:"M0 0h24v24.001H0z"}),s.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=>s.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},s.createElement("defs",null,s.createElement("clipPath",{id:"clip146_396"},s.createElement("rect",{id:"Logo",width:24,height:24,fill:"white",fillOpacity:0})),s.createElement("clipPath",{id:"clip129_3008"},s.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),s.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#EF3124",fillOpacity:1}),s.createElement("g",{clipPath:"url(#clip129_3008)"},s.createElement("g",{clipPath:"url(#clip146_396)"},s.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=>s.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},s.createElement("defs",null,s.createElement("clipPath",{id:"clip146_362"},s.createElement("rect",{id:"Logo",width:20,height:20,transform:"translate(2.000000 2.000000)",fill:"white",fillOpacity:0})),s.createElement("clipPath",{id:"clip129_3001"},s.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),s.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#21A038",fillOpacity:1}),s.createElement("g",{clipPath:"url(#clip129_3001)"},s.createElement("g",{clipPath:"url(#clip146_362)"},s.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"}),s.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=>s.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},s.createElement("defs",null,s.createElement("linearGradient",{id:"c",x1:0,x2:24,y1:12,y2:12,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0037FF"}),s.createElement("stop",{offset:.75,stopColor:"#0085FF"})),s.createElement("clipPath",{id:"b"},s.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),s.createElement("mask",{id:"a",width:24,height:24,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse"},s.createElement("circle",{cx:12,cy:12,r:12,fill:"#F7F8FA"})),s.createElement("g",{mask:"url(#a)"},s.createElement("path",{fill:"#F7F8FA",d:"M0 0h24v24H0z"})),s.createElement("g",{clipPath:"url(#b)",mask:"url(#a)"},s.createElement("path",{fill:"url(#c)",d:"M0 0h24v24H0z"}),s.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=>s.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},s.createElement("defs",null),s.createElement("rect",{id:"Button",width:24,height:24,fill:"#FFFFFF",fillOpacity:0}),s.createElement("mask",{id:"mask129_2994","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},s.createElement("rect",{id:"rect",width:24,height:24,fill:"#000000",fillOpacity:1})),s.createElement("g",{mask:"url(#mask129_2994)"},s.createElement("rect",{id:"rect",width:24,height:24,fill:"#FF0032",fillOpacity:1}),s.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"}),s.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"}),s.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=>s.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},s.createElement("defs",null),s.createElement("mask",{id:"mask129_2984","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:44,height:24},s.createElement("rect",{id:"rect",width:44,height:24,fill:"#000000",fillOpacity:1})),s.createElement("g",{mask:"url(#mask129_2984)"},s.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"}),s.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"}),s.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"}),s.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"}),s.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=>s.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},s.createElement("defs",null),s.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"}),s.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=>s.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},s.createElement("defs",null,s.createElement("clipPath",{id:"clipPath_0"},s.createElement("rect",{width:24,height:24,x:0,y:0,fill:"rgb(255,255,255)"}))),s.createElement("rect",{id:"Logo symbol / Company / Promsvyazbank",width:24,height:24,x:0,y:0}),s.createElement("g",{id:"Logo",clipPath:"url(#clipPath_0)"},s.createElement("rect",{id:"Logo",width:24,height:24,x:0,y:0}),s.createElement("rect",{id:"Brand fill",width:24,height:24,x:0,y:0,opacity:0,fill:"rgb(247,248,250)"}),s.createElement("g",{id:"Group"},s.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"}),s.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"}),s.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=>s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),s.createElement("g",{clipPath:"url(#a)"},s.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}}),tN=e=>!!tO[e]&&("WEB_AUTHN"!==e||function(){var e,t;if("undefined"==typeof window||"undefined"==typeof navigator||e1.some(({regex:e})=>e.test(null==navigator?void 0:navigator.userAgent)))return!1;let n=!!window.isSecureContext,l=!!(null==navigator?void 0:navigator.credentials),i=!!window.PublicKeyCredential,r=!!(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 n&&l&&i&&r&&a}()&&function(){if("undefined"==typeof window)return!1;try{let e=window.localStorage.getItem("webauthnLinked");return!!e&&JSON.parse(e)}catch{return!1}}()),tZ=e=>{let{providers:t,getHref:n,scenarioOptions:l}=e,i=e=>e?e.filter(tN).map(e=>({...tO[e],href:n(e,l),type:e,caption:tO[e].caption,icon:(0,s.createElement)(tO[e].icon),secondaryIcon:tO[e].secondaryIcon?(0,s.createElement)(tO[e].secondaryIcon):void 0})):[],{primary:r=[],additional:a=[],extra:o=[]}=t,c=i(r),h=i(a),d=i(o);return{primaryButtons:c,additionalButtons:h,extraButtons:d,buttonsList:[{type:"primary",buttons:c},{type:"additional",buttons:h},{type:"extra",buttons:d}]}},tS=(e,t)=>{var n,l;let i=n=>(null==t?void 0:t[n])===null?null:(null==t?void 0:t[n])??(null==e?void 0:e[n]),r={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!=(n=null==t?void 0:t.additionalAuthProviders)&&n.length)&&!(null!=(l=null==t?void 0:t.extraAuthProviders)&&l.length);if(!t||c)return{...e&&s(e,o),...r};let h=s(t,o);return h.primaryAuthProviders.length>0||h.additionalAuthProviders.length>0||h.extraAuthProviders.length>0?{...h,...r}:{...e&&s(e,o),...r}},tF=e=>{let{configKey:t,entryPointId:n,serverConfig:l={},baseUrl:i,apiBaseUrl:r,apiVersion:a,autoFetch:o=!0,product:c,productContext:h,isSilent:d,config:p,query:g={},scenarioParams:f={},onMount:m,onDestroy:x,onAnalyticsEvent:k}=e,[v,b]=(0,s.useState)(null),[w,y]=(0,s.useState)(o),C=(0,s.useCallback)(async()=>{try{y(!0);let e=await (0,ts.g)(r,t??void 0,a);b(e)}catch(e){throw Error(`Unknown fetch error: ${e}`)}finally{y(!1)}},[]);(0,s.useEffect)(()=>(null==m||m(),null==k||k({eventCategory:"login-widget",eventAction:"mount_login_widget"}),()=>{null==x||x(),null==k||k({eventCategory:"login-widget",eventAction:"unmount_login_widget"})}),[]),(0,s.useEffect)(()=>{o&&C()},[o,C]);let _=o?v:l,$=(e="ESIA",t={})=>({version:"v2",entryPointId:n,product:c,productContext:h,isSilent:d,authProvider:e,consents:Object.fromEntries(((null==_?void 0:_.consents)??[]).map(e=>[e.key,e.value])),...f,...t}),E=(e,t)=>ta(JSON.stringify($(e,t))),L=tS(_,p);return{getConfig:()=>({...L}),getHref:(e,t)=>(0,u.jb)((0,u.xn)(i,"/registration"),{...g,scenario:E(e,t)}),isPending:w}},tI={loginWidget:"_loginWidget_iyq1s_31",wrapper:"_wrapper_iyq1s_51",heading:"_heading_iyq1s_56",description:"_description_iyq1s_57"},tM=({serverConfig:e,baseUrl:t,s3AssetsUrl:n="",configKey:l,entryPointId:i,apiVersion:r,config:u,product:g,productContext:f,query:m,scenarioParams:x,isSilent:k,skeleton:v=(0,a.jsx)("p",{children:"Загружаем данные..."}),className:b,style:w,onMount:y,onDestroy:C,onAnalyticsEvent:_,...$})=>{let[E,L]=(0,s.useState)(),[A,j]=(0,s.useState)(),[z,R]=(0,s.useState)(),{getConfig:T,getHref:O}=tF({configKey:l,apiBaseUrl:"",apiVersion:r,entryPointId:i,autoFetch:!1,baseUrl:t,product:g,productContext:f,query:m,scenarioParams:x,isSilent:k,config:u,serverConfig:e,onMount:y,onDestroy:C,onAnalyticsEvent:_}),{theme:N,variant:Z,linkTarget:S,title:F,description:I,highlights:M,withLogo:P,isNewYearLogo:V,legalInfo:q,consents:H=[],primaryTextOverride:B,additionalTextOverride:D,extraTextOverride:U,primaryAuthProviders:Q,additionalAuthProviders:W=[],extraAuthProviders:G=[],view:K="base"}=T(),{buttonsList:X}=tZ({providers:{primary:Q,additional:W,extra:G},getHref:O,scenarioOptions:{consents:E,phone:z}}),Y=X.some(({buttons:e})=>e.length>0),J=(0,s.useCallback)(e=>{null==_||_(e)},[_]),ee=(0,s.useCallback)(e=>{R(e)},[]),et="phone"===K?tx:tf,en="primary"===Z?o.Z:"div",el=A?d.u:"div",ei=(0,s.useCallback)(e=>{j(e)},[]),er=(0,s.useMemo)(()=>g??{},[JSON.stringify(g)]);return e?Object.keys(e).length?(0,a.jsx)("div",{className:p(tI.loginWidget,b),style:w,...$,"data-auth-widgets-theme":N,"data-qa":"login-widget",children:(0,a.jsxs)(en,{className:tI.wrapper,children:[(0,a.jsx)(tc,{s3AssetsUrl:n,withLogo:P,isNewYearLogo:V,dataQa:"login-widget-logo"}),(F||I)&&(0,a.jsxs)("div",{children:[F&&(0,a.jsx)(c.X,{type:"h2",className:tI.heading,dataQa:"login-widget-heading",children:F}),I&&(0,a.jsx)(h.x,{as:"p",size:"14",className:p(tI.description),dataQa:"login-widget-description",children:I})]}),Y?(0,a.jsx)(el,{text:A?"Чтобы войти в личный кабинет, подтвердите свое согласие:":"",...A?{dataQa:"login-widget-tooltip"}:{},children:(0,a.jsx)(et,{buttonsList:X,disabled:A,primaryTextOverride:B,additionalTextOverride:D,extraTextOverride:U,onAnalyticsEvent:J,linkTarget:S,phone:z,onPhoneChange:ee})}):(0,a.jsx)(h.x,{as:"p",weight:"bold",size:"20",dataQa:"login-widget-providers-empty",style:{textAlign:"center"},className:"mb-2",children:"Возникла техническая ошибка. Выберите другой способ входа или попробуйте войти позже"}),(0,a.jsx)(tb,{consents:H,onAgree:e=>{L(e)},onError:ei,onAnalyticsEvent:_}),(0,a.jsx)(tT,{productInfo:er,s3AssetsUrl:n,onAnalyticsEvent:_}),(0,a.jsx)(tC,{highlights:M??null}),(0,a.jsx)(t$,{legalInfo:q,onAnalyticsEvent:_})]})}):(0,a.jsx)("p",{children:"Возникла техническая ошибка. Попробуйте позже"}):(0,a.jsx)(a.Fragment,{children:v})};tM.displayName="LoginWidget"},32464:function(e,t,n){"use strict";n.d(t,{jb:function(){return v},xn:function(){return b}});let l=/#/g,i=/&/g,r=/\//g,a=/=/g,s=/\+/g,o=/%5e/gi,c=/%60/gi,h=/%7c/gi,d=/%20/gi;function p(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(h,"|").replace(s,"%2B").replace(d,"+").replace(l,"%23").replace(i,"%26").replace(c,"`").replace(o,"^").replace(r,"%2F")}function u(e){return p(e).replace(a,"%3D")}function g(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let f=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,m=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,x=/^([/\\]\s*){2,}[^/\\]/,k=/^\.?\//;function v(e,t){let n=function e(t="",n){let l=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(l){let[,e,t=""]=l;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)?f.test(e):m.test(e)||!!t.acceptRelative&&x.test(e)}(t,{acceptRelative:!0}))return n?e(n+t):y(t);let[,i="",r,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:d}=y(o);return{protocol:i.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:h,hash:d,[w]:!i}}(e),l={...function(e=""){let t=Object.create(null);for(let n of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let l=g(e[1].replace(s," "));if("__proto__"===l||"constructor"===l)continue;let i=g((e[2]||"").replace(s," "));void 0===t[l]?t[l]=i:Array.isArray(t[l])?t[l].push(i):t[l]=[t[l],i]}return t}(n.search),...t};return n.search=Object.keys(l).filter(e=>void 0!==l[e]).map(e=>{var t;return(("number"==typeof(t=l[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${u(e)}=${p(t)}`).join("&"):`${u(e)}=${p(t)}`:u(e)}).filter(Boolean).join("&"),function(e){let t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",l=e.hash||"",i=e.auth?e.auth+"@":"",r=e.host||"";return(e.protocol||e[w]?(e.protocol||"")+"//":"")+i+r+t+n+l}(n)}function b(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(k,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}let w=Symbol.for("ufo:protocolRelative");function y(e=""){let[t="",n="",l=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:l}}},80410:function(e,t,n){"use strict";n.d(t,{H:function(){return h}});var l=n(57437),i=n(61994),r=n(72196),a=n(40997);n(25676);let s={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},o=(0,a.g)("heading"),c=Object.freeze({heading:o,states:Object.freeze({display:`${o}--display`,hero:`${o}--hero`,h1:`${o}--h1`,h2:`${o}--h2`,h3:`${o}--h3`,h4:`${o}--h4`,h5:`${o}--h5`,h6:`${o}--h6`})}),h=({as:e,children:t,weight:n,type:a,lineClamp:o,className:h,style:d,dataQa:p,dataId:u,...g})=>{var f;let m=e||s[a]||"div",x=/^h[1-6]$/.test(m),k=(null==(f=a.match(/\d+/))?void 0:f[0])||1;return(0,l.jsx)(m,{className:(0,i.Z)(c.heading,c.states[a],h),style:{...n?{fontWeight:`var(--font-weight-${n})`}:void 0,...o?{WebkitLineClamp:o,lineClamp:o,...r.l}:void 0,...d},role:x?null:"heading","aria-level":x?null:k,...g,"data-id":u,"data-qa":p,children:t})};h.displayName="Heading"},53035:function(e,t,n){"use strict";n.d(t,{X:function(){return l.H}});var l=n(80410)}}]);