"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{4941:function(e,t,i){t.Z=function(){for(var e,t,i=0,r="";i<arguments.length;)(e=arguments[i++])&&(t=function e(t){var i,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t){if(Array.isArray(t))for(i=0;i<t.length;i++)t[i]&&(r=e(t[i]))&&(n&&(n+=" "),n+=r);else for(i in t)t[i]&&(n&&(n+=" "),n+=i)}return n}(e))&&(r&&(r+=" "),r+=t);return r}},8821:function(e,t,i){t.Z=function(){for(var e,t,i=0,r="";i<arguments.length;)(e=arguments[i++])&&(t=function e(t){var i,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t){if(Array.isArray(t))for(i=0;i<t.length;i++)t[i]&&(r=e(t[i]))&&(n&&(n+=" "),n+=r);else for(i in t)t[i]&&(n&&(n+=" "),n+=i)}return n}(e))&&(r&&(r+=" "),r+=t);return r}},7683:function(e,t,i){i.d(t,{Z:function(){return l}});var r=i(7274),n=i(7458),s=i(2895);function l(e,t){(0,s.Z)(2,arguments);var i=(0,n.Z)(e),l=(0,r.Z)(t);if(isNaN(l))return new Date(NaN);if(!l)return i;var a=i.getDate(),o=new Date(i.getTime());return(o.setMonth(i.getMonth()+l+1,0),a>=o.getDate())?o:(i.setFullYear(o.getFullYear(),o.getMonth(),a),i)}},4572:function(e,t,i){i.d(t,{Z:function(){return l}});var r=i(7274),n=i(7683),s=i(2895);function l(e,t){(0,s.Z)(2,arguments);var i=(0,r.Z)(t);return(0,n.Z)(e,-i)}},2067:function(e,t,i){function r(){return typeof window>"u"}function n(e){r()||(Array.isArray(window.dataLayer)?window.dataLayer.push(e):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}function s(){if(r()){console.warn("Cant initialize tag manager on server side");return}"function"!=typeof window._init_gtm?console.warn("Cant init GTM, please check if GTM script exists"):window._init_gtm(),"function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm()}i.d(t,{AB:function(){return n},zK:function(){return s}})},881:function(e,t,i){i.d(t,{g:function(){return n}});var r=i(426);let n=async(e,t="common",i="v1")=>{try{let n=await fetch((0,r.xn)(e,`api/${i}/login-widget`,t));return n.ok?await n.json():(console.error(`Ошибка ${n.status} при загрузке конфига для ${t}`),{})}catch(e){return console.error(`Сетевая ошибка при загрузке конфига для ${t}`,e),{}}}},1165:function(e,t,i){i.d(t,{U:function(){return tc}});var r=i(7437),n=i(2265),s=i(4941);let l={display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden"};function a(e){return`finkit-${e}`}let o=a("caption");Object.freeze({caption:o,captionWithIcon:`${o}--with-icon`,content:`${o}__content`,icon:`${o}__icon`,text:`${o}__text`,states:{success:`${o}--success`,error:`${o}--error`,warning:`${o}--warning`}});let d=a("card"),c={card:d,variants:{primary:`${d}--primary`,secondary:`${d}--secondary`}},p=({as:e,className:t,style:i,children:n,variant:l="primary",dataQa:a,dataId:o,...d})=>(0,r.jsx)(e||"div",{className:(0,s.Z)(t,c.card,c.variants[l]),style:i,...d,"data-id":o,"data-qa":a,children:n});p.displayName="Card";let u=a("col");Object.freeze({col:u,state:{size:(e,t)=>!0===t?`${u}--${e}`:`${u}--${e}-${t}`,offsetLeft:(e,t)=>`${u}--${e}-offset-left-${t}`,offsetRight:(e,t)=>`${u}--${e}-offset-right-${t}`}});let h=a("container");Object.freeze({container:h,states:{narrow:`${h}--narrow`}});let f=a("divider"),g=Object.freeze({divider:f,content:`${f}__content`}),m=({content:e,className:t,style:i,dataQa:n,dataId:l,...a})=>(0,r.jsx)("div",{className:(0,s.Z)(g.divider,t),style:i,...a,"data-id":l,"data-qa":n,children:e&&(0,r.jsx)("div",{className:g.content,children:e})});m.displayName="Divider";let v=a("form-field");Object.freeze({formField:v,labelWrapper:`${v}__label-wrapper`,label:`${v}__label`,description:`${v}__description`});let w={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},b=a("heading"),x=Object.freeze({heading:b,states:Object.freeze({display:`${b}--display`,hero:`${b}--hero`,h1:`${b}--h1`,h2:`${b}--h2`,h3:`${b}--h3`,h4:`${b}--h4`,h5:`${b}--h5`,h6:`${b}--h6`})}),y=({as:e,children:t,weight:i,type:n,lineClamp:a,className:o,style:d,dataQa:c,dataId:p,...u})=>{var h;let f=e||w[n]||"div",g=/^h[1-6]$/.test(f),m=(null==(h=n.match(/\d+/))?void 0:h[0])||1;return(0,r.jsx)(f,{className:(0,s.Z)(x.heading,x.states[n],o),style:{...i?{fontWeight:`var(--font-weight-${i})`}:void 0,...a?{WebkitLineClamp:a,lineClamp:a,...l}:void 0,...d},role:g?null:"heading","aria-level":g?null:m,...u,"data-id":p,"data-qa":c,children:t})};y.displayName="Heading";let k=a("loader");Object.freeze({loader:k,variant:{primary:`${k}--primary`,purple:`${k}--purple`,accent:`${k}--accent`,white:`${k}--white`},size:{s:`${k}--s`,m:`${k}--m`,l:`${k}--l`}});let C=a("progress-bar");Object.freeze({progressBar:C,rounded:`${C}-rounded`,indicator:`${C}__indicator`,text:`${C}__text`,animationCircle:`${C}__animation-circle`});let E=a("row"),S=(e,t,i)=>`${E}--gutter-${e}-${t}-${i}`;Object.freeze({row:E,state:{reverse:`${E}--reverse`,gutter:(e,t="xs")=>Array.isArray(e)?[S(t,e[0],"h"),S(t,e[1],"v")].join(" "):S(t,e,"h")}});let T=a("skeleton");Object.freeze({skeleton:T,states:{inline:`${T}--inline`,rounded:`${T}--rounded`,inverted:`${T}--inverted`,suspend:`${T}--suspend`}});let _=a("text"),L=Object.freeze({text:_});function M({as:e,className:t,style:i,children:n,size:l,weight:a,fontFamily:o,dataQa:d,dataId:c,...p}){return(0,r.jsx)(e||"span",{className:(0,s.Z)(L.text,t),style:{...l&&{fontSize:`var(--font-size-${l})`,lineHeight:`var(--font-line-height-${l})`},...a&&{fontWeight:`var(--font-weight-${a})`},...o&&{fontFamily:`var(--font-family-${o})`},...i},...p,"data-id":c,"data-qa":d,children:n})}M.displayName="Text";let A=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(Object.keys(A));Object.freeze($.filter(e=>"xs"!==e)),Object.freeze($.filter(e=>"3xl"!==e));var O=i(5043),P=i(426),z=i(9606),I=i(881);function j(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let F=j(),N=/[&<>"']/,R=RegExp(N.source,"g"),D=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,B=RegExp(D.source,"g"),V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},H=e=>V[e];function Z(e,t){if(t){if(N.test(e))return e.replace(R,H)}else if(D.test(e))return e.replace(B,H);return e}let G=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,q=/(^|[^\[])\^/g;function W(e,t){let i="string"==typeof e?e:e.source;t=t||"";let r={replace:(e,t)=>{let n="string"==typeof t?t:t.source;return n=n.replace(q,"$1"),i=i.replace(e,n),r},getRegex:()=>new RegExp(i,t)};return r}function U(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}let Q={exec:()=>null};function Y(e,t){let i=e.replace(/\|/g,(e,t,i)=>{let r=!1,n=t;for(;--n>=0&&"\\"===i[n];)r=!r;return r?"|":" |"}),r=i.split(/ \|/),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t){if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("")}for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function X(e,t,i){let r=e.length;if(0===r)return"";let n=0;for(;n<r;){let s=e.charAt(r-n-1);if(s!==t||i){if(s!==t&&i)n++;else break}else n++}return e.slice(0,r-n)}function K(e,t,i,r){let n=t.href,s=t.title?Z(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;let e={type:"link",raw:i,href:n,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,e}return{type:"image",raw:i,href:n,title:s,text:Z(l)}}class J{options;rules;lexer;constructor(e){this.options=e||F}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:X(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],i=function(e,t){let i=e.match(/^(\s+)(?:```)/);if(null===i)return t;let r=i[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[i]=t;return i.length>=r.length?e.slice(r.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:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=X(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=X(e.replace(/^ *>[ \t]?/gm,""),"\n");let i=this.lexer.state.top;this.lexer.state.top=!0;let r=this.lexer.blockTokens(e);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),r=i.length>1,n={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");let s=RegExp(`^( {0,3}${i})((?:[	 ][^\\n]*)?(?:\\n|$))`),l="",a="",o=!1;for(;e;){let i,r=!1;if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let d=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],p=0;this.options.pedantic?(p=2,a=d.trimStart()):(p=(p=t[2].search(/[^ ]/))>4?1:p,a=d.slice(p),p+=t[1].length);let u=!1;if(!d&&/^ *$/.test(c)&&(l+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=RegExp(`^ {0,${Math.min(3,p-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),i=RegExp(`^ {0,${Math.min(3,p-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=RegExp(`^ {0,${Math.min(3,p-1)}}(?:\`\`\`|~~~)`),n=RegExp(`^ {0,${Math.min(3,p-1)}}#`);for(;e;){let s=e.split("\n",1)[0];if(c=s,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),r.test(c)||n.test(c)||t.test(c)||i.test(e))break;if(c.search(/[^ ]/)>=p||!c.trim())a+="\n"+c.slice(p);else{if(u||d.search(/[^ ]/)>=4||r.test(d)||n.test(d)||i.test(d))break;a+="\n"+c}u||c.trim()||(u=!0),l+=s+"\n",e=e.substring(s.length+1),d=c.slice(p)}}!n.loose&&(o?n.loose=!0:/\n *\n *$/.test(l)&&(o=!0));let h=null;this.options.gfm&&(h=/^\[[ xX]\] /.exec(a))&&(i="[ ] "!==h[0],a=a.replace(/^\[[ xX]\] +/,"")),n.items.push({type:"list_item",raw:l,task:!!h,checked:i,loose:!1,text:a,tokens:[]}),n.raw+=l}n.items[n.items.length-1].raw=l.trimEnd(),n.items[n.items.length-1].text=a.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){let t=n.items[e].tokens.filter(e=>"space"===e.type),i=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw));n.loose=i}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}html(e){let t=this.rules.block.html.exec(e);if(t){let e={type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]};return e}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=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:i,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let i=Y(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===r.length){for(let e of r)/^ *-+: *$/.test(e)?s.align.push("right"):/^ *:-+: *$/.test(e)?s.align.push("center"):/^ *:-+ *$/.test(e)?s.align.push("left"):s.align.push(null);for(let e of i)s.header.push({text:e,tokens:this.lexer.inline(e)});for(let e of n)s.rows.push(Y(e,s.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return s}}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=X(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return -1;let i=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&--i<0)return r;return -1}(t[2],"()");if(e>-1){let i=0===t[0].indexOf("!")?5:4,r=i+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let i=t[2],r="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);e&&(i=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(i=this.options.pedantic&&!/>$/.test(e)?i.slice(1):i.slice(1,-1)),K(t,{href:i?i.replace(this.rules.inline.anyPunctuation,"$1"):i,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let e=(i[2]||i[1]).replace(/\s+/g," "),r=t[e.toLowerCase()];if(!r){let e=i[0].charAt(0);return{type:"text",raw:e,text:e}}return K(i,r,i[0],this.lexer)}}emStrong(e,t,i=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;let n=r[1]||r[2]||"";if(!n||!i||this.rules.inline.punctuation.exec(i)){let i=[...r[0]].length-1,n,s,l=i,a=0,o="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+i);null!=(r=o.exec(t));){if(!(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(s=[...n].length,r[3]||r[4]){l+=s;continue}if((r[5]||r[6])&&i%3&&!((i+s)%3)){a+=s;continue}if((l-=s)>0)continue;s=Math.min(s,s+l+a);let t=[...r[0]][0].length,o=e.slice(0,i+r.index+t+s);if(Math.min(i,s)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let d=o.slice(2,-2);return{type:"strong",raw:o,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," "),i=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return i&&r&&(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,i;return i="@"===t[2]?"mailto:"+(e=Z(t[1])):e=Z(t[1]),{type:"link",raw:t[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,i;if("@"===t[2])i="mailto:"+(e=Z(t[0]));else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=Z(t[0]),i="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:i,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 ee=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,et=/(?:[*+-]|\d{1,9}[.)])/,ei=W(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,et).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(),er=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,en=/(?!\s*\])(?:\\.|[^\[\]\\])+/,es=W(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",en).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),el=W(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,et).getRegex(),ea="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",eo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ed=W("^ {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",eo).replace("tag",ea).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ec=W(er).replace("hr",ee).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",ea).getRegex(),ep=W(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ec).getRegex(),eu={blockquote:ep,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:es,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ee,html:ed,lheading:ei,list:el,newline:/^(?: *(?:\n|$))+/,paragraph:ec,table:Q,text:/^[^\n]+/},eh=W("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ee).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",ea).getRegex(),ef={...eu,table:eh,paragraph:W(er).replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",eh).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",ea).getRegex()},eg={...eu,html:W("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",eo).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:Q,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:W(er).replace("hr",ee).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ei).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},em=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ev=/^( {2,}|\\)\n(?!\s*$)/,ew="\\p{P}\\p{S}",eb=W(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,ew).getRegex(),ex=W(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,ew).getRegex(),ey=W("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,ew).getRegex(),ek=W("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,ew).getRegex(),eC=W(/\\([punct])/,"gu").replace(/punct/g,ew).getRegex(),eE=W(/^<(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(),eS=W(eo).replace("(?:-->|$)","-->").getRegex(),eT=W("^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",eS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),e_=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,eL=W(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",e_).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),eM=W(/^!?\[(label)\]\[(ref)\]/).replace("label",e_).replace("ref",en).getRegex(),eA=W(/^!?\[(ref)\](?:\[\])?/).replace("ref",en).getRegex(),e$=W("reflink|nolink(?!\\()","g").replace("reflink",eM).replace("nolink",eA).getRegex(),eO={_backpedal:Q,anyPunctuation:eC,autolink:eE,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:ev,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Q,emStrongLDelim:ex,emStrongRDelimAst:ey,emStrongRDelimUnd:ek,escape:em,link:eL,nolink:eA,punctuation:eb,reflink:eM,reflinkSearch:e$,tag:eT,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Q},eP={...eO,link:W(/^!?\[(label)\]\((.*?)\)/).replace("label",e_).getRegex(),reflink:W(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",e_).getRegex()},ez={...eO,escape:W(em).replace("])","~|])").getRegex(),url:W(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},eI={...ez,br:W(ev).replace("{2,}","*").getRegex(),text:W(ez.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ej={normal:eu,gfm:ef,pedantic:eg},eF={normal:eO,gfm:ez,breaks:eI,pedantic:eP};class eN{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||F,this.options.tokenizer=this.options.tokenizer||new J,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:ej.normal,inline:eF.normal};this.options.pedantic?(t.block=ej.pedantic,t.inline=eF.pedantic):this.options.gfm&&(t.block=ej.gfm,this.options.breaks?t.inline=eF.breaks:t.inline=eF.gfm),this.tokenizer.rules=t}static get rules(){return{block:ej,inline:eF}}static lex(e,t){let i=new eN(t);return i.lex(e)}static lexInline(e,t){let i=new eN(t);return i.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 i,r,n,s;for(e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,i)=>t+"    ".repeat(i.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(i=r.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))){if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length),1===i.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+i.raw,r.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}if(n=e,this.options.extensions&&this.options.extensions.startBlock){let t,i=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(i=Math.min(i,t))}),i<1/0&&i>=0&&(n=e.substring(0,i+1))}if(this.state.top&&(i=this.tokenizer.paragraph(n))){r=t[t.length-1],s&&"paragraph"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i),s=n.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(i);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 i,r,n,s,l,a;let o=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(o));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(o));)o=o.slice(0,s.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(l||(a=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(i=r.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))){if(i=this.tokenizer.escape(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.tag(e)){e=e.substring(i.raw.length),(r=t[t.length-1])&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if(i=this.tokenizer.link(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(i.raw.length),(r=t[t.length-1])&&"text"===i.type&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);continue}if((i=this.tokenizer.emStrong(e,o,a))||(i=this.tokenizer.codespan(e))||(i=this.tokenizer.br(e))||(i=this.tokenizer.del(e))||(i=this.tokenizer.autolink(e))||!this.state.inLink&&(i=this.tokenizer.url(e))){e=e.substring(i.raw.length),t.push(i);continue}if(n=e,this.options.extensions&&this.options.extensions.startInline){let t,i=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(i=Math.min(i,t))}),i<1/0&&i>=0&&(n=e.substring(0,i+1))}if(i=this.tokenizer.inlineText(n)){e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(a=i.raw.slice(-1)),l=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=i.raw,r.text+=i.text):t.push(i);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 eR{options;constructor(e){this.options=e||F}code(e,t,i){let r=(t||"").match(/^\S*/)?.[0];return(e=e.replace(/\n$/,"")+"\n",r)?'<pre><code class="language-'+Z(r)+'">'+(i?e:Z(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:Z(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e,t){return e}heading(e,t,i){return`<h${t}>${e}</h${t}>
`}hr(){return"<hr>\n"}list(e,t,i){let r=t?"ol":"ul";return"<"+r+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e,t,i){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 i=t.header?"th":"td",r=t.align?`<${i} align="${t.align}">`:`<${i}>`;return r+e+`</${i}>
`}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,i){let r=U(e);if(null===r)return i;let n='<a href="'+(e=r)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+i+"</a>"}image(e,t,i){let r=U(e);if(null===r)return i;e=r;let n=`<img src="${e}" alt="${i}"`;return t&&(n+=` title="${t}"`),n+=">"}text(e){return e}}class eD{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,i){return""+i}image(e,t,i){return""+i}br(){return""}}class eB{options;renderer;textRenderer;constructor(e){this.options=e||F,this.options.renderer=this.options.renderer||new eR,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new eD}static parse(e,t){let i=new eB(t);return i.parse(e)}static parseInline(e,t){let i=new eB(t);return i.parseInline(e)}parse(e,t=!0){let i="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){let e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(n.type)){i+=e||"";continue}}switch(n.type){case"space":continue;case"hr":i+=this.renderer.hr();continue;case"heading":i+=this.renderer.heading(this.parseInline(n.tokens),n.depth,this.parseInline(n.tokens,this.textRenderer).replace(G,(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":i+=this.renderer.code(n.text,n.lang,!!n.escaped);continue;case"table":{let e="",t="";for(let e=0;e<n.header.length;e++)t+=this.renderer.tablecell(this.parseInline(n.header[e].tokens),{header:!0,align:n.align[e]});e+=this.renderer.tablerow(t);let r="";for(let e=0;e<n.rows.length;e++){let i=n.rows[e];t="";for(let e=0;e<i.length;e++)t+=this.renderer.tablecell(this.parseInline(i[e].tokens),{header:!1,align:n.align[e]});r+=this.renderer.tablerow(t)}i+=this.renderer.table(e,r);continue}case"blockquote":{let e=this.parse(n.tokens);i+=this.renderer.blockquote(e);continue}case"list":{let e=n.ordered,t=n.start,r=n.loose,s="";for(let e=0;e<n.items.length;e++){let t=n.items[e],i=t.checked,l=t.task,a="";if(t.task){let e=this.renderer.checkbox(!!i);r?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+" "}):a+=e+" "}a+=this.parse(t.tokens,r),s+=this.renderer.listitem(a,l,!!i)}i+=this.renderer.list(s,e,t);continue}case"html":i+=this.renderer.html(n.text,n.block);continue;case"paragraph":i+=this.renderer.paragraph(this.parseInline(n.tokens));continue;case"text":{let s=n,l=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1<e.length&&"text"===e[r+1].type;)l+="\n"+((s=e[++r]).tokens?this.parseInline(s.tokens):s.text);i+=t?this.renderer.paragraph(l):l;continue}default:{let e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){let e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){i+=e||"";continue}}switch(n.type){case"escape":case"text":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;default:{let e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return i}}class eV{options;constructor(e){this.options=e||F}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class eH{defaults=j();options=this.setOptions;parse=this.#e(eN.lex,eB.parse);parseInline=this.#e(eN.lexInline,eB.parseInline);Parser=eB;Renderer=eR;TextRenderer=eD;Lexer=eN;Tokenizer=J;Hooks=eV;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let r of e)switch(i=i.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)i=i.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)i=i.concat(this.walkTokens(r.tokens,t));break;case"list":i=i.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let n=e[r].flat(1/0);i=i.concat(this.walkTokens(n,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let i={...e};if(i.async=this.defaults.async||i.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let i=t.renderers[e.name];i?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=i.apply(this,t)),r}: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 i=t[e.level];i?i.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)}),i.extensions=t),e.renderer){let t=this.defaults.renderer||new eR(this.defaults);for(let i in e.renderer){if(!(i in t))throw Error(`renderer '${i}' does not exist`);if("options"===i)continue;let r=e.renderer[i],n=t[i];t[i]=(...e)=>{let i=r.apply(t,e);return!1===i&&(i=n.apply(t,e)),i||""}}i.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new J(this.defaults);for(let i in e.tokenizer){if(!(i in t))throw Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let r=e.tokenizer[i],n=t[i];t[i]=(...e)=>{let i=r.apply(t,e);return!1===i&&(i=n.apply(t,e)),i}}i.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eV;for(let i in e.hooks){if(!(i in t))throw Error(`hook '${i}' does not exist`);if("options"===i)continue;let r=e.hooks[i],n=t[i];eV.passThroughHooks.has(i)?t[i]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>n.call(t,e));let i=r.call(t,e);return n.call(t,i)}:t[i]=(...e)=>{let i=r.apply(t,e);return!1===i&&(i=n.apply(t,e)),i}}i.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;i.walkTokens=function(e){let i=[];return i.push(r.call(this,e)),t&&(i=i.concat(t.call(this,e))),i}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return eN.lex(e,t??this.defaults)}parser(e,t){return eB.parse(e,t??this.defaults)}#e(e,t){return(i,r)=>{let n={...r},s={...this.defaults,...n};!0===this.defaults.async&&!1===n.async&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);let l=this.#t(!!s.silent,!!s.async);if(null==i)return l(Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(i):i).then(t=>e(t,s)).then(e=>s.hooks?s.hooks.processAllTokens(e):e).then(e=>s.walkTokens?Promise.all(this.walkTokens(e,s.walkTokens)).then(()=>e):e).then(e=>t(e,s)).then(e=>s.hooks?s.hooks.postprocess(e):e).catch(l);try{s.hooks&&(i=s.hooks.preprocess(i));let r=e(i,s);s.hooks&&(r=s.hooks.processAllTokens(r)),s.walkTokens&&this.walkTokens(r,s.walkTokens);let n=t(r,s);return s.hooks&&(n=s.hooks.postprocess(n)),n}catch(e){return l(e)}}}#t(e,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Z(i.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(i);throw i}}}let eZ=new eH;function eG(e,t){return eZ.parse(e,t)}eG.options=eG.setOptions=function(e){return eZ.setOptions(e),eG.defaults=eZ.defaults,F=eG.defaults,eG},eG.getDefaults=j,eG.defaults=F,eG.use=function(...e){return eZ.use(...e),eG.defaults=eZ.defaults,F=eG.defaults,eG},eG.walkTokens=function(e,t){return eZ.walkTokens(e,t)},eG.parseInline=eZ.parseInline,eG.Parser=eB,eG.parser=eB.parse,eG.Renderer=eR,eG.TextRenderer=eD,eG.Lexer=eN,eG.lexer=eN.lex,eG.Tokenizer=J,eG.Hooks=eV,eG.parse=eG,eG.options,eG.setOptions,eG.use,eG.walkTokens,eG.parseInline,eB.parse,eN.lex;var eq=i(8138);let eW={logo:"_logo_1cju4_61",mainLogo:"_mainLogo_1cju4_68",brandmarkLogo:"_brandmarkLogo_1cju4_72",divider:"_divider_1cju4_76"},eU=({s3AssetsUrl:e,className:t,withLogo:i=!1,isNewYearLogo:n=!1,dataQa:l,brandmarkCode:a})=>{if(!e)return null;let o=n?(0,P.xn)(e,"logo/finuslugi/lk-regular-new-year.svg"):(0,P.xn)(e,"logo/finuslugi/lk-regular.svg"),d=(0,P.xn)(e,`/images/logo-brandmark-bank-${a}.svg`);return(0,r.jsx)(r.Fragment,{children:i&&(0,r.jsxs)("div",{className:(0,s.Z)(eW.logo,t),"data-qa":l,children:[(0,r.jsx)("img",{className:eW.mainLogo,src:o,alt:"Логотип"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:eW.divider}),(0,r.jsx)("img",{className:eW.brandmarkLogo,src:d,alt:"Логотип партнера"})]})]})})};eU.displayName="Logo";let eQ=Object.freeze({ESIA:{label:"Войти через Госуслуги",caption:"Госуслуги",icon:e=>n.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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"}),n.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"}),n.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=>n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"esia-colored",gradientUnits:"userSpaceOnUse"},n.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),n.createElement("stop",{offset:.636,stopColor:"#EF3E58"}))),n.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=>n.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#a)"},n.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},ALFA:{label:void 0,caption:"Альфа ID",icon:e=>n.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},n.createElement("defs",null,n.createElement("clipPath",{id:"clip146_396"},n.createElement("rect",{id:"Logo",width:24,height:24,fill:"white",fillOpacity:0})),n.createElement("clipPath",{id:"clip129_3008"},n.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),n.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#EF3124",fillOpacity:1}),n.createElement("g",{clipPath:"url(#clip129_3008)"},n.createElement("g",{clipPath:"url(#clip146_396)"},n.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=>n.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},n.createElement("defs",null,n.createElement("clipPath",{id:"clip146_362"},n.createElement("rect",{id:"Logo",width:20,height:20,transform:"translate(2.000000 2.000000)",fill:"white",fillOpacity:0})),n.createElement("clipPath",{id:"clip129_3001"},n.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),n.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#21A038",fillOpacity:1}),n.createElement("g",{clipPath:"url(#clip129_3001)"},n.createElement("g",{clipPath:"url(#clip146_362)"},n.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"}),n.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=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},n.createElement("defs",null,n.createElement("linearGradient",{id:"c",x1:0,x2:24,y1:12,y2:12,gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#0037FF"}),n.createElement("stop",{offset:.75,stopColor:"#0085FF"})),n.createElement("clipPath",{id:"b"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("mask",{id:"a",width:24,height:24,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse"},n.createElement("circle",{cx:12,cy:12,r:12,fill:"#F7F8FA"})),n.createElement("g",{mask:"url(#a)"},n.createElement("path",{fill:"#F7F8FA",d:"M0 0h24v24H0z"})),n.createElement("g",{clipPath:"url(#b)",mask:"url(#a)"},n.createElement("path",{fill:"url(#c)",d:"M0 0h24v24H0z"}),n.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=>n.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},n.createElement("defs",null),n.createElement("rect",{id:"Button",width:24,height:24,fill:"#FFFFFF",fillOpacity:0}),n.createElement("mask",{id:"mask129_2994","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},n.createElement("rect",{id:"rect",width:24,height:24,fill:"#000000",fillOpacity:1})),n.createElement("g",{mask:"url(#mask129_2994)"},n.createElement("rect",{id:"rect",width:24,height:24,fill:"#FF0032",fillOpacity:1}),n.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"}),n.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"}),n.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=>n.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},n.createElement("defs",null),n.createElement("mask",{id:"mask129_2984","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:44,height:24},n.createElement("rect",{id:"rect",width:44,height:24,fill:"#000000",fillOpacity:1})),n.createElement("g",{mask:"url(#mask129_2984)"},n.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"}),n.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"}),n.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"}),n.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"}),n.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=>n.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},n.createElement("defs",null),n.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"}),n.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}}),eY=e=>{let{providers:t,getHref:i,scenarioOptions:r}=e,s=e=>e?e.map(e=>({...eQ[e],href:i(e,r),type:e,caption:eQ[e].caption,icon:(0,n.createElement)(eQ[e].icon),secondaryIcon:eQ[e].secondaryIcon?(0,n.createElement)(eQ[e].secondaryIcon):void 0})):[],{primary:l=[],additional:a=[],extra:o=[]}=t,d=s(l),c=s(a),p=s(o);return{primaryButtons:d,additionalButtons:c,extraButtons:p,buttonsList:[{type:"primary",buttons:d},{type:"additional",buttons:c},{type:"extra",buttons:p}]}},eX=(e,t)=>{var i,r;let n=i=>(null==t?void 0:t[i])===null?null:(null==t?void 0:t[i])??(null==e?void 0:e[i]),s={theme:(null==t?void 0:t.theme)??"light",variant:(null==t?void 0:t.variant)??"primary",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:n("title"),description:n("description"),highlights:n("highlights"),consents:null==e?void 0:e.consents,legalInfo:null==e?void 0:e.legalInfo,availableAuthProviders:null==e?void 0:e.availableAuthProviders},l=(e=[],t)=>void 0!==t?e.filter(e=>t.includes(e)):e,a=(e,t)=>({...e,primaryAuthProviders:l(null==e?void 0:e.primaryAuthProviders,t),additionalAuthProviders:l(null==e?void 0:e.additionalAuthProviders,t),extraAuthProviders:l(null==e?void 0:e.extraAuthProviders,t)}),o=null==e?void 0:e.availableAuthProviders,d=!(null!=t&&t.primaryAuthProviders)&&!(null!=(i=null==t?void 0:t.additionalAuthProviders)&&i.length)&&!(null!=(r=null==t?void 0:t.extraAuthProviders)&&r.length);if(!t||d)return{...e&&a(e,o),...s};let c=a(t,o);return c.primaryAuthProviders.length>0||c.additionalAuthProviders.length>0||c.extraAuthProviders.length>0?{...c,...s}:{...e&&a(e,o),...s}},eK=e=>{let{configKey:t,serverConfig:i={},baseUrl:r,apiBaseUrl:s,apiVersion:l,autoFetch:a=!0,product:o,productContext:d,customerType:c,isSilent:p,config:u,query:h={},onMount:f,onDestroy:g,onAnalyticsEvent:m}=e,{requiredIdentLevel:v,targetUri:w,fallbackUri:b,...x}=h??{},[y,k]=(0,n.useState)(null),[C,E]=(0,n.useState)(a),S=(0,n.useCallback)(async()=>{try{E(!0);let e=await (0,I.g)(s,t??void 0,l);k(e)}catch(e){throw Error(`Unknown fetch error: ${e}`)}finally{E(!1)}},[]);(0,n.useEffect)(()=>(null==f||f(),null==m||m({eventCategory:"login-widget",eventAction:"mount_login_widget"}),()=>{null==g||g(),null==m||m({eventCategory:"login-widget",eventAction:"unmount_login_widget"})}),[]),(0,n.useEffect)(()=>{a&&S()},[a,S]);let T=a?y:i,_=(e="ESIA",t={})=>({version:"v2",customerType:c,product:o,productContext:d,isSilent:p,requiredIdentLevel:v,targetUri:w,fallbackUri:b,authProvider:e,consents:Object.fromEntries(((null==T?void 0:T.consents)??[]).map(e=>[e.key,e.value])),...t}),L=(e,t)=>(0,z.j_)(JSON.stringify(_(e,t))),M=eX(T,u);return{getConfig:()=>({...M}),getHref:(e,t)=>(0,P.jb)((0,P.xn)(r,"/registration"),{...x,scenario:L(e,t)}),isPending:C}},eJ=({children:e,className:t,style:i,...n})=>(0,r.jsx)("span",{className:(0,s.Z)(t,"_privateIcon_4e6ha_1"),style:i,...n,children:e});eJ.displayName="PrivateIcon";let e1={buttons:"_buttons_2tixh_61","--disabled":"_--disabled_2tixh_68",buttonIcons:"_buttonIcons_2tixh_72",divider:"_divider_2tixh_77",modalInner:"_modalInner_2tixh_81"},e0=({buttonsData:e,disabled:t=!1,primaryTextOverride:i,additionalTextOverride:n,extraTextOverride:s,overrideLoginAction:l,onAnalyticsEvent:a,onOpen:o})=>{let{buttons:d,type:c}=e,p={primary:i,additional:n,extra:s};return d.length?(0,r.jsxs)(r.Fragment,{children:[1===d.length&&(0,r.jsx)(O.zx,{dataQa:`login-widget-${c}-button`,as:l?"button":"a",...l?{}:{target:"_blank",href:t?"#login-widget-consents":d[0].href},stretch:!0,variant:"primary"===c?"primary":"secondary",disabled:t,label:p[c]??d[0].label,iconLeft:p[c]?void 0:d[0].icon,onClick:()=>{null==a||a({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:d[0].type}),null==l||l(d[0].type)}},`button-${c}`),d.length>1&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(O.zx,{dataQa:`login-widget-${c}-button`,stretch:!0,variant:"primary"===c?"primary":"secondary",disabled:t,label:p[c]?(0,r.jsx)("span",{children:p[c]}):(0,O.aF)("xs")&&d.length>5?(0,r.jsx)("span",{children:"Войти по ID"}):(0,r.jsx)("span",{className:e1.buttonIcons,children:d.map(e=>e.icon?(0,r.jsx)(eJ,{style:{lineHeight:0},children:e.icon},e.type):void 0)}),onClick:()=>null==o?void 0:o(c)},`button-${c}`)})]}):null};e0.displayName="ButtonsGroup";let e2=({buttonsList:e=[],isOpen:t=!1,buttonsType:i="",overrideLoginAction:s,onAnalyticsEvent:l,onClose:a})=>{var o,d;let c=(0,n.useCallback)(e=>{null==l||l({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e}),null==s||s(e),setTimeout(()=>null==a?void 0:a())},[]);return(0,r.jsx)(O.u_,{header:{title:"Выберите способ входа"},open:t,onClose:a,dataQa:"login-widget-buttons-modal",children:(0,r.jsx)("div",{className:e1.modalInner,children:null==(d=null==(o=e.find(e=>e.type===i))?void 0:o.buttons)?void 0:d.map(({type:e,href:t,caption:i,icon:n,secondaryIcon:l})=>(0,r.jsx)(O.zx,{dataQa:`login-widget-buttons-modal-button-${null==e?void 0:e.toLowerCase()}`,as:s?"button":"a",...s?{}:{target:"_blank",href:t},stretch:!0,variant:"secondary",label:i,iconLeft:l??n,onClick:()=>c(e)},`modal-button-${e}`))})})};e2.displayName="ButtonsModal";let e3=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:i,additionalTextOverride:l,extraTextOverride:a,overrideLoginAction:o,onAnalyticsEvent:d})=>{let[c,p]=(0,n.useState)(!1),[u,h]=(0,n.useState)(),{primaryGroup:f,remainingGroup:g,isRemainingGroupVisible:v}=(0,n.useMemo)(()=>{let[t,...i]=e,r=i.some(({buttons:e})=>e.length);return{primaryGroup:t,remainingGroup:i,isRemainingGroupVisible:r}},[e]),w=(0,n.useCallback)(e=>{p(!0),h(e),null==d||d({eventCategory:"login-widget",eventAction:"click_popup_open",eventLabel:"popup_select_login_provider"})},[]),b=(0,n.useCallback)(()=>{p(!1),h(""),null==d||d({eventCategory:"login-widget",eventAction:"click_popup_close",eventLabel:"popup_select_login_provider"})},[]);return e.length?(0,r.jsxs)("div",{className:(0,s.Z)(e1.buttons,{[e1["--disabled"]]:t}),"data-qa":"login-widget-buttons",children:[(0,r.jsx)(e0,{buttonsData:f,disabled:t,primaryTextOverride:i,overrideLoginAction:o,onAnalyticsEvent:d,onOpen:w}),v&&(0,r.jsxs)(r.Fragment,{children:[!!f.buttons.length&&(0,r.jsx)(m,{className:e1.divider,content:"или",dataQa:"login-widget-buttons-divider"}),g.map(e=>(0,r.jsx)(e0,{buttonsData:e,additionalTextOverride:l,extraTextOverride:a,disabled:t,overrideLoginAction:o,onAnalyticsEvent:d,onOpen:w},`group-${e.type}`))]}),(0,r.jsx)(e2,{buttonsList:e,buttonsType:u,isOpen:c,overrideLoginAction:o,onAnalyticsEvent:d,onClose:b})]}):null};e3.displayName="Buttons";let e4=({template:e,onLinkClick:t})=>{if(!Object.keys(e).length||!e.links)return null;let{text:i,links:n}=e,s=i.split(/(\$\d+)/);return(0,r.jsx)(r.Fragment,{children:s.map(e=>{if(e.startsWith("$")){let i=parseInt(e.slice(1))-1,s=n[i];return(0,r.jsx)("a",{href:s.href,target:"_blank",rel:"noreferrer",onClick:()=>null==t?void 0:t(s.href),children:s.text},`link--${s.text}`)}return(0,r.jsx)("span",{children:e},`text--${e}`)})})};e4.displayName="TemplateText";let e7={consents:"_consents_15mth_61",list:"_list_15mth_61",checkbox:"_checkbox_15mth_66",error:"_error_15mth_76"},e5=({consents:e=[],onAgree:t,onError:i,onAnalyticsEvent:l})=>{let[a,o]=(0,n.useState)(()=>Object.fromEntries(e.map(e=>[e.key,e.value]))),d=e.filter(e=>!e.hidden),c=d.filter(e=>e.required).some(e=>!a[e.key]);(0,n.useEffect)(()=>{t(a)},[a]),(0,n.useEffect)(()=>{i(c)},[c]);let p=(e,t)=>{o(i=>({...i,[e]:t})),null==l||l({eventCategory:"login-widget",eventAction:"click_checkbox_consent",eventLabel:`${e}_${t?"tick":"untick"}`})},u=e=>{null==l||l({eventCategory:"login-widget",eventAction:"click_link_consent",eventLabel:e})};return e.length?(0,r.jsx)("div",{id:"login-widget-consents",className:e7.consents,"data-qa":"login-widget-consents",children:(0,r.jsx)("div",{className:e7.list,"data-qa":"login-widget-consents-list",children:d.map(({key:e,title:t,required:i})=>{var n;return(0,r.jsx)(O.XZ,{dataQa:`login-widget-consents-checkbox-${e}`,className:(0,s.Z)(e7.checkbox,{[e7.error]:!a[e]&&c}),state:i&&!a[e]?"error":"default",value:a[e],onChange:t=>p(e,t),children:null!=(n=t.links)&&n.length?(0,r.jsx)(e4,{template:t,onLinkClick:u}):t.text},e)})})}):null};e5.displayName="Consents";let e6={list:"_list_1n3xe_69",item:"_item_1n3xe_77",icon:"_icon_1n3xe_91"},e8={check:(0,r.jsx)(e=>n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#a)"},n.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,r.jsx)(e=>n.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#a)"},n.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,r.jsx)(e=>n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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,r.jsx)(e=>n.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#a)"},n.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,r.jsx)(e=>n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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,r.jsx)(e=>n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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"})),{})},e9=({highlights:e})=>{if(!e||!e.items.length)return null;let t=e=>e8[e]||e8.check,{items:i,heading:n}=e;return(0,r.jsxs)(p,{variant:"secondary",dataQa:"login-widget-highlights",children:[n&&(0,r.jsx)(y,{as:"h5",type:"h5",className:"mb-2",dataQa:"login-widget-highlights-heading",children:n}),(0,r.jsx)("ul",{className:e6.list,"data-qa":"login-widget-highlights-list",children:(0,r.jsx)(r.Fragment,{children:i.map(({text:e,icon:i})=>(0,r.jsxs)("li",{className:e6.item,"data-qa":"login-widget-highlights-list-item",children:[(0,r.jsx)("div",{className:e6.icon,"data-qa":"login-widget-highlights-list-icon",children:t(i)}),(0,r.jsx)(M,{as:"p",dataQa:"login-widget-highlights-list-text",children:e})]},`${e}--${i}`))})})]})};e9.displayName="Highlights";let te={legalInfo:"_legalInfo_1o9mv_61"},tt=({legalInfo:e,onAnalyticsEvent:t})=>{if(!e||Object.values(e).every(e=>!e))return null;let{plain:i,html:n,md:s}=e,l=s?eG.parse(s):n??"";return(0,r.jsx)("div",{className:te.legalInfo,"data-qa":"login-widget-legal-info",children:i?(0,r.jsx)(e4,{template:i,onLinkClick:e=>{null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:e})}}):(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:l},onClick:e=>{let{href:i}=e.target;i&&(null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:i}))}})})};tt.displayName="LegalInfo";let ti={DAY:["день","дня","дней"],MONTH:["мес.","мес.","мес."],YEAR:["год","года","лет"],TERMLESS:["бессрочный","бессрочный","бессрочный"]},tr={deposit:"Вклад",credit:"Кредит",bond:"Облигация",account:"Счет","banking-account":"Банковский счет"},tn=e=>{if(!(e instanceof Date))return null;let t=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),r=e.getFullYear();return`${t}.${i}.${r}`},ts={productCard:"_productCard_1kl4e_61","--credits":"_--credits_1kl4e_64",detailRate:"_detailRate_1kl4e_64","--bond":"_--bond_1kl4e_67",headingWrap:"_headingWrap_1kl4e_71",wrapper:"_wrapper_1kl4e_79",info:"_info_1kl4e_85",logo:"_logo_1kl4e_91",textWrapper:"_textWrapper_1kl4e_100",text:"_text_1kl4e_100",label:"_label_1kl4e_124",details:"_details_1kl4e_140",detail:"_detail_1kl4e_64",detailTitle:"_detailTitle_1kl4e_152",detailValue:"_detailValue_1kl4e_158"},tl=({title:e,value:t,className:i,...n})=>(0,r.jsxs)("div",{className:ts.detail,...n,children:[(0,r.jsx)(M,{dataQa:"login-widget-product-card-detail-title",className:ts.detailTitle,children:e}),(0,r.jsx)(M,{dataQa:"login-widget-product-card-detail-value",className:((0,s.Z)(ts.detailValue),i),children:t})]});tl.displayName="ProductDetail";let ta=({params:e})=>{if(!e)return null;let{amount:t,rate:i}=e??{},n=tn(e.endDate),l=e.term,a=[{id:"params-rate",title:"Ставка",value:`${i}%`},{id:"params-amount",title:"Сумма",value:`${(0,eq.lb)(null==t?void 0:t.value,{preventLargeNumbers:!0,currencyCode:(null==t?void 0:t.currency)??"RUB"})}`},{id:l?"params-term":n?"params-end-date":"",title:l?"Срок":n?"Погашение":"",value:l?`${(0,eq._6)(l.value,ti[l.type??"DAY"])}`:n||""}];return(0,r.jsx)("div",{className:ts.details,"data-qa":"login-widget-product-card-details",children:a.map(({id:e,title:t,value:i})=>(0,r.jsx)(tl,{"data-qa":`login-widget-product-card-detail-${e}`,title:t,value:i,className:(0,s.Z)({[ts.detailRate]:"params-rate"===e})},e))})};ta.displayName="ProductDetails";let to=({productInfo:e,s3AssetsUrl:t,className:i,onAnalyticsEvent:l})=>{let a=(0,n.useRef)(null),o=!e||!Object.keys(e).length,d=!a.current||!Object.keys(a.current).length;if((0,n.useEffect)(()=>{var t;o&&!d?null==l||l({eventCategory:"login-widget",eventAction:"view_product_delete",eventLabel:(null==(t=a.current)?void 0:t.type)??void 0}):!o&&d?null==l||l({eventCategory:"login-widget",eventAction:"view_product_add",eventLabel:e.type??void 0}):o||d||null==l||l({eventCategory:"login-widget",eventAction:"view_product_update",eventLabel:e.type??void 0}),a.current=e},[e]),o)return null;let{title:c,label:u,type:h,params:f,provider:g}=e,m=(0,P.xn)(t,`/images/logo-brandmark-bank-${null==g?void 0:g.code}.svg`),v=null==g?void 0:g.code,w=h?tr[h]:"";return(0,r.jsxs)(p,{variant:"secondary",className:(0,s.Z)(ts.productCard,{[ts[`--${h}`]??""]:!0},i),dataQa:"login-widget-product-card",children:[(0,r.jsxs)("div",{className:(0,s.Z)("mb-3",ts.headingWrap),children:[(0,r.jsx)(y,{as:"h5",type:"h5",dataQa:"login-widget-product-card-heading",children:"Выбранный продукт"}),u&&(0,r.jsx)(O.Vp,{label:u,rounded:!0,size:"s",variant:"red",dataQa:"login-widget-product-card-label"})]}),(0,r.jsxs)("div",{className:ts.wrapper,children:[(0,r.jsxs)("div",{className:ts.info,"data-qa":"login-widget-product-card-info",children:[v&&(0,r.jsx)("img",{className:ts.logo,loading:"lazy",width:"100%",height:"36px",src:m,alt:"Логотип продукта","data-qa":"login-widget-product-card-logo"}),(0,r.jsxs)("div",{className:ts.textWrapper,children:[w&&(0,r.jsx)(M,{as:"p",dataQa:"login-widget-product-card-title",className:ts.text,children:w}),c&&(0,r.jsx)(M,{as:"p",dataQa:"login-widget-product-card-text",className:ts.text,children:c})]})]}),(0,r.jsx)(ta,{params:f})]})]})};to.displayName="ProductCard";let td={loginWidget:"_loginWidget_1v0li_61",wrapper:"_wrapper_1v0li_76",heading:"_heading_1v0li_81",description:"_description_1v0li_82"},tc=({serverConfig:e,baseUrl:t,s3AssetsUrl:i="",configKey:l,apiVersion:a,config:o,product:d,productContext:c,customerType:u,query:h,isSilent:f,skeleton:g=(0,r.jsx)("p",{children:"Загружаем данные..."}),className:m,style:v,overrideLoginAction:w,onMount:b,onDestroy:x,onAnalyticsEvent:k,...C})=>{let[E,S]=(0,n.useState)(),[T,_]=(0,n.useState)(),{getConfig:L,getHref:A}=eK({configKey:l,apiBaseUrl:"",apiVersion:a,autoFetch:!1,baseUrl:t,product:d,productContext:c,customerType:u,query:h,isSilent:f,config:o,serverConfig:e,onMount:b,onDestroy:x,onAnalyticsEvent:k}),{theme:$,variant:P="primary",title:z,description:I,highlights:j,withLogo:F,isNewYearLogo:N,legalInfo:R,consents:D=[],primaryTextOverride:B,additionalTextOverride:V,extraTextOverride:H,primaryAuthProviders:Z,additionalAuthProviders:G=[],extraAuthProviders:q=[]}=L(),{buttonsList:W}=eY({providers:{primary:Z,additional:G,extra:q},getHref:A,scenarioOptions:{consents:E}}),U=W.some(({buttons:e})=>e.length>0),Q="primary"===P?p:"div",Y=T?O.u:"div",X=(0,n.useCallback)(e=>{_(e)},[]),K=(0,n.useMemo)(()=>d??{},[JSON.stringify(d)]);return e?Object.keys(e).length?(0,r.jsx)("div",{className:(0,s.Z)(td.loginWidget,m),style:v,...C,"data-auth-widgets-theme":$,"data-qa":"login-widget",children:(0,r.jsxs)(Q,{className:td.wrapper,children:[(0,r.jsx)(eU,{s3AssetsUrl:i,withLogo:F,isNewYearLogo:N,dataQa:"login-widget-logo"}),(z||I)&&(0,r.jsxs)("div",{children:[z&&(0,r.jsx)(y,{type:"h2",className:td.heading,dataQa:"login-widget-heading",children:z}),I&&(0,r.jsx)(M,{as:"p",fontFamily:"secondary",size:"14",className:(0,s.Z)(td.description),dataQa:"login-widget-description",children:I})]}),U?(0,r.jsx)(Y,{text:T?"Чтобы войти в личный кабинет, подтвердите свое согласие:":"",...T?{dataQa:"login-widget-tooltip"}:{},children:(0,r.jsx)(e3,{buttonsList:W,disabled:T,primaryTextOverride:B,additionalTextOverride:V,extraTextOverride:H,overrideLoginAction:w,onAnalyticsEvent:e=>{null==k||k(e)}})}):(0,r.jsx)(M,{as:"p",weight:"bold",size:"20",dataQa:"login-widget-providers-empty",style:{textAlign:"center"},className:"mb-2",children:"Возникла техническая ошибка. Выберите другой способ входа или попробуйте войти позже"}),(0,r.jsx)(e5,{consents:D,onAgree:e=>{S(e)},onError:X,onAnalyticsEvent:k}),(0,r.jsx)(to,{productInfo:K,s3AssetsUrl:i,onAnalyticsEvent:k}),(0,r.jsx)(e9,{highlights:j??null}),(0,r.jsx)(tt,{legalInfo:R,onAnalyticsEvent:k})]})}):(0,r.jsx)("p",{children:"Возникла техническая ошибка. Попробуйте позже"}):(0,r.jsx)(r.Fragment,{children:g})};tc.displayName="LoginWidget"},426:function(e,t,i){i.d(t,{jb:function(){return b},xn:function(){return x}});let r=/#/g,n=/&/g,s=/\//g,l=/=/g,a=/\+/g,o=/%5e/gi,d=/%60/gi,c=/%7c/gi,p=/%20/gi;function u(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(c,"|").replace(a,"%2B").replace(p,"+").replace(r,"%23").replace(n,"%26").replace(d,"`").replace(o,"^").replace(s,"%2F")}function h(e){return u(e).replace(l,"%3D")}function f(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let g=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,m=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,v=/^([/\\]\s*){2,}[^/\\]/,w=/^\.?\//;function b(e,t){let i=function e(t="",i){let r=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){let[,e,t=""]=r;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)?g.test(e):m.test(e)||!!t.acceptRelative&&v.test(e)}(t,{acceptRelative:!0}))return i?e(i+t):k(t);let[,n="",s,l=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",o=""]=l.match(/([^#/?]*)(.*)?/)||[];"file:"===n&&(o=o.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:d,search:c,hash:p}=k(o);return{protocol:n.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:a,pathname:d,search:c,hash:p,[y]:!n}}(e),r={...function(e=""){let t=Object.create(null);for(let i of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=i.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=f(e[1].replace(a," "));if("__proto__"===r||"constructor"===r)continue;let n=f((e[2]||"").replace(a," "));void 0===t[r]?t[r]=n:Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]}return t}(i.search),...t};return i.search=Object.keys(r).filter(e=>void 0!==r[e]).map(e=>{var t;return(("number"==typeof(t=r[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${h(e)}=${u(t)}`).join("&"):`${h(e)}=${u(t)}`:h(e)}).filter(Boolean).join("&"),function(e){let t=e.pathname||"",i=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",n=e.auth?e.auth+"@":"",s=e.host||"",l=e.protocol||e[y]?(e.protocol||"")+"//":"";return l+n+s+t+i+r}(i)}function x(e,...t){let i=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(i){let t=e.replace(w,"");i=function(e="",t){return e.endsWith("/")?e:e+"/"}(i)+t}else i=e;return i}let y=Symbol.for("ufo:protocolRelative");function k(e=""){let[t="",i="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:i,hash:r}}},9336:function(e,t,i){let r;i.d(t,{Z:function(){return u}});let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var s={randomUUID:n};let l=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));var o=function(e,t,i){if(s.randomUUID&&!t&&!e)return s.randomUUID();e=e||{};let n=e.random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(l)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=n[e];return t}return function(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}(n)},d=i(1490);let c="browserId",p={expires:365,domain:void 0,debug:!1};function u(e=p){try{var t,i;let r=localStorage.getItem(c)||d.Z.get(c)||o(),n=sessionStorage.getItem(c)||o();return localStorage.setItem(c,r),sessionStorage.setItem(c,n),d.Z.set(c,r,{...p,secure:(t=e.domain||location.origin,/^https:\/\//gi.test(t)),sameSite:"strict",domain:(i=e.domain||location.hostname,["",...i.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."))}),{browserId:r,sessionId:n}}catch{return{browserId:null,sessionId:null}}}},1490:function(e,t){/*! js-cookie v3.0.1 | MIT */function i(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)e[r]=i[r]}return e}var r=function e(t,r){function n(e,n,s){if("undefined"!=typeof document){"number"==typeof(s=i({},r,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var a in s)s[a]&&(l+="; "+a,!0!==s[a]&&(l+="="+s[a].split(";")[0]));return document.cookie=e+"="+t.write(n,e)+l}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],r={},n=0;n<i.length;n++){var s=i[n].split("="),l=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(r[a]=t.read(l,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){n(e,"",i({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,i({},this.attributes,t))},withConverter:function(t){return e(i({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});t.Z=r},7062:function(e,t,i){i.d(t,{pt:function(){return d},W_:function(){return l},tl:function(){return o}});var r=i(9280),n=i(1439);function s(e,t,i,r){return e.params.createElements&&Object.keys(r).forEach(s=>{if(!i[s]&&!0===i.auto){let l=(0,n.e)(e.el,`.${r[s]}`)[0];l||((l=(0,n.c)("div",r[s])).className=r[s],e.el.append(l)),i[s]=l,t[s]=l}}),i}function l(e){let{swiper:t,extendParams:i,on:r,emit:l}=e;function a(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e)||t.hostEl.querySelector(e))?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i)?e:i}function o(e,i){let r=t.params.navigation;(e=(0,n.m)(e)).forEach(e=>{e&&(e.classList[i?"add":"remove"](...r.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](r.lockClass))})}function d(){let{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop){o(i,!1),o(e,!1);return}o(i,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function c(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),l("navigationPrev"))}function p(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),l("navigationNext"))}function u(){let e=t.params.navigation;if(t.params.navigation=s(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(e.nextEl||e.prevEl))return;let i=a(e.nextEl),r=a(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:r}),i=(0,n.m)(i),r=(0,n.m)(r);let l=(i,r)=>{i&&i.addEventListener("click","next"===r?p:c),!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};i.forEach(e=>l(e,"next")),r.forEach(e=>l(e,"prev"))}function h(){let{nextEl:e,prevEl:i}=t.navigation;e=(0,n.m)(e),i=(0,n.m)(i);let r=(e,i)=>{e.removeEventListener("click","next"===i?p:c),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>r(e,"next")),i.forEach(e=>r(e,"prev"))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},r("init",()=>{!1===t.params.navigation.enabled?f():(u(),d())}),r("toEdge fromEdge lock unlock",()=>{d()}),r("destroy",()=>{h()}),r("enable disable",()=>{let{nextEl:e,prevEl:i}=t.navigation;if(e=(0,n.m)(e),i=(0,n.m)(i),t.enabled){d();return}[...e,...i].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),r("click",(e,i)=>{let{nextEl:r,prevEl:s}=t.navigation;r=(0,n.m)(r),s=(0,n.m)(s);let a=i.target,o=s.includes(a)||r.includes(a);if(t.isElement&&!o){let e=i.path||i.composedPath&&i.composedPath();e&&(o=e.find(e=>r.includes(e)||s.includes(e)))}if(t.params.navigation.hideOnClick&&!o){let e;if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):s.length&&(e=s[0].classList.contains(t.params.navigation.hiddenClass)),!0===e?l("navigationShow"):l("navigationHide"),[...r,...s].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});let f=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),u(),d()},disable:f,update:d,init:u,destroy:h})}function a(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function o(e){let t,{swiper:i,extendParams:r,on:l,emit:o}=e,d="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${d}-bullet`,bulletActiveClass:`${d}-bullet-active`,modifierClass:`${d}-`,currentClass:`${d}-current`,totalClass:`${d}-total`,hiddenClass:`${d}-hidden`,progressbarFillClass:`${d}-progressbar-fill`,progressbarOppositeClass:`${d}-progressbar-opposite`,clickableClass:`${d}-clickable`,lockClass:`${d}-lock`,horizontalClass:`${d}-horizontal`,verticalClass:`${d}-vertical`,paginationDisabledClass:`${d}-disabled`}}),i.pagination={el:null,bullets:[]};let c=0;function p(){return!i.params.pagination.el||!i.pagination.el||Array.isArray(i.pagination.el)&&0===i.pagination.el.length}function u(e,t){let{bulletActiveClass:r}=i.params.pagination;e&&(e=e[`${"prev"===t?"previous":"next"}ElementSibling`])&&(e.classList.add(`${r}-${t}`),(e=e[`${"prev"===t?"previous":"next"}ElementSibling`])&&e.classList.add(`${r}-${t}-${t}`))}function h(e){let t=e.target.closest(a(i.params.pagination.bulletClass));if(!t)return;e.preventDefault();let r=(0,n.h)(t)*i.params.slidesPerGroup;if(i.params.loop){var s,l,o;if(i.realIndex===r)return;let e=(s=i.realIndex,l=r,(s%=o=i.slides.length,(l%=o)===s+1)?"next":l===s-1?"previous":void 0);"next"===e?i.slideNext():"previous"===e?i.slidePrev():i.slideToLoop(r)}else i.slideTo(r)}function f(){let e,r;let s=i.rtl,l=i.params.pagination;if(p())return;let d=i.pagination.el;d=(0,n.m)(d);let h=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.slides.length,f=i.params.loop?Math.ceil(h/i.params.slidesPerGroup):i.snapGrid.length;if(i.params.loop?(r=i.previousRealIndex||0,e=i.params.slidesPerGroup>1?Math.floor(i.realIndex/i.params.slidesPerGroup):i.realIndex):void 0!==i.snapIndex?(e=i.snapIndex,r=i.previousSnapIndex):(r=i.previousIndex||0,e=i.activeIndex||0),"bullets"===l.type&&i.pagination.bullets&&i.pagination.bullets.length>0){let a,o,p;let h=i.pagination.bullets;if(l.dynamicBullets&&(t=(0,n.f)(h[0],i.isHorizontal()?"width":"height",!0),d.forEach(e=>{e.style[i.isHorizontal()?"width":"height"]=`${t*(l.dynamicMainBullets+4)}px`}),l.dynamicMainBullets>1&&void 0!==r&&((c+=e-(r||0))>l.dynamicMainBullets-1?c=l.dynamicMainBullets-1:c<0&&(c=0)),p=((o=(a=Math.max(e-c,0))+(Math.min(h.length,l.dynamicMainBullets)-1))+a)/2),h.forEach(e=>{let t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${l.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)h.forEach(t=>{let r=(0,n.h)(t);r===e?t.classList.add(...l.bulletActiveClass.split(" ")):i.isElement&&t.setAttribute("part","bullet"),l.dynamicBullets&&(r>=a&&r<=o&&t.classList.add(...`${l.bulletActiveClass}-main`.split(" ")),r===a&&u(t,"prev"),r===o&&u(t,"next"))});else{let t=h[e];if(t&&t.classList.add(...l.bulletActiveClass.split(" ")),i.isElement&&h.forEach((t,i)=>{t.setAttribute("part",i===e?"bullet-active":"bullet")}),l.dynamicBullets){let e=h[a],t=h[o];for(let e=a;e<=o;e+=1)h[e]&&h[e].classList.add(...`${l.bulletActiveClass}-main`.split(" "));u(e,"prev"),u(t,"next")}}if(l.dynamicBullets){let e=Math.min(h.length,l.dynamicMainBullets+4),r=(t*e-t)/2-p*t,n=s?"right":"left";h.forEach(e=>{e.style[i.isHorizontal()?n:"top"]=`${r}px`})}}d.forEach((t,r)=>{if("fraction"===l.type&&(t.querySelectorAll(a(l.currentClass)).forEach(t=>{t.textContent=l.formatFractionCurrent(e+1)}),t.querySelectorAll(a(l.totalClass)).forEach(e=>{e.textContent=l.formatFractionTotal(f)})),"progressbar"===l.type){let r;r=l.progressbarOpposite?i.isHorizontal()?"vertical":"horizontal":i.isHorizontal()?"horizontal":"vertical";let n=(e+1)/f,s=1,o=1;"horizontal"===r?s=n:o=n,t.querySelectorAll(a(l.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${o})`,e.style.transitionDuration=`${i.params.speed}ms`})}"custom"===l.type&&l.renderCustom?(t.innerHTML=l.renderCustom(i,e+1,f),0===r&&o("paginationRender",t)):(0===r&&o("paginationRender",t),o("paginationUpdate",t)),i.params.watchOverflow&&i.enabled&&t.classList[i.isLocked?"add":"remove"](l.lockClass)})}function g(){let e=i.params.pagination;if(p())return;let t=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.grid&&i.params.grid.rows>1?i.slides.length/Math.ceil(i.params.grid.rows):i.slides.length,r=i.pagination.el;r=(0,n.m)(r);let s="";if("bullets"===e.type){let r=i.params.loop?Math.ceil(t/i.params.slidesPerGroup):i.snapGrid.length;i.params.freeMode&&i.params.freeMode.enabled&&r>t&&(r=t);for(let t=0;t<r;t+=1)e.renderBullet?s+=e.renderBullet.call(i,t,e.bulletClass):s+=`<${e.bulletElement} ${i.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(i,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(i,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),i.pagination.bullets=[],r.forEach(t=>{"custom"!==e.type&&(t.innerHTML=s||""),"bullets"===e.type&&i.pagination.bullets.push(...t.querySelectorAll(a(e.bulletClass)))}),"custom"!==e.type&&o("paginationRender",r[0])}function m(){let e;i.params.pagination=s(i,i.originalParams.pagination,i.params.pagination,{el:"swiper-pagination"});let t=i.params.pagination;t.el&&("string"==typeof t.el&&i.isElement&&(e=i.el.querySelector(t.el)),e||"string"!=typeof t.el||(e=[...document.querySelectorAll(t.el)]),e||(e=t.el),e&&0!==e.length&&(i.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(e)&&e.length>1&&(e=[...i.el.querySelectorAll(t.el)]).length>1&&(e=e.find(e=>(0,n.a)(e,".swiper")[0]===i.el)),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(i.pagination,{el:e}),(e=(0,n.m)(e)).forEach(e=>{"bullets"===t.type&&t.clickable&&e.classList.add(...(t.clickableClass||"").split(" ")),e.classList.add(t.modifierClass+t.type),e.classList.add(i.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.classList.add(`${t.modifierClass}${t.type}-dynamic`),c=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass),t.clickable&&e.addEventListener("click",h),i.enabled||e.classList.add(t.lockClass)})))}function v(){let e=i.params.pagination;if(p())return;let t=i.pagination.el;t&&(t=(0,n.m)(t)).forEach(t=>{t.classList.remove(e.hiddenClass),t.classList.remove(e.modifierClass+e.type),t.classList.remove(i.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(t.classList.remove(...(e.clickableClass||"").split(" ")),t.removeEventListener("click",h))}),i.pagination.bullets&&i.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}l("changeDirection",()=>{if(!i.pagination||!i.pagination.el)return;let e=i.params.pagination,{el:t}=i.pagination;(t=(0,n.m)(t)).forEach(t=>{t.classList.remove(e.horizontalClass,e.verticalClass),t.classList.add(i.isHorizontal()?e.horizontalClass:e.verticalClass)})}),l("init",()=>{!1===i.params.pagination.enabled?w():(m(),g(),f())}),l("activeIndexChange",()=>{void 0===i.snapIndex&&f()}),l("snapIndexChange",()=>{f()}),l("snapGridLengthChange",()=>{g(),f()}),l("destroy",()=>{v()}),l("enable disable",()=>{let{el:e}=i.pagination;e&&(e=(0,n.m)(e)).forEach(e=>e.classList[i.enabled?"remove":"add"](i.params.pagination.lockClass))}),l("lock unlock",()=>{f()}),l("click",(e,t)=>{let r=t.target,s=(0,n.m)(i.pagination.el);if(i.params.pagination.el&&i.params.pagination.hideOnClick&&s&&s.length>0&&!r.classList.contains(i.params.pagination.bulletClass)){if(i.navigation&&(i.navigation.nextEl&&r===i.navigation.nextEl||i.navigation.prevEl&&r===i.navigation.prevEl))return;let e=s[0].classList.contains(i.params.pagination.hiddenClass);!0===e?o("paginationShow"):o("paginationHide"),s.forEach(e=>e.classList.toggle(i.params.pagination.hiddenClass))}});let w=()=>{i.el.classList.add(i.params.pagination.paginationDisabledClass);let{el:e}=i.pagination;e&&(e=(0,n.m)(e)).forEach(e=>e.classList.add(i.params.pagination.paginationDisabledClass)),v()};Object.assign(i.pagination,{enable:()=>{i.el.classList.remove(i.params.pagination.paginationDisabledClass);let{el:e}=i.pagination;e&&(e=(0,n.m)(e)).forEach(e=>e.classList.remove(i.params.pagination.paginationDisabledClass)),m(),g(),f()},disable:w,render:g,update:f,init:m,destroy:v})}function d(e){let t,i,n,s,l,a,o,d,c,p,{swiper:u,extendParams:h,on:f,emit:g,params:m}=e;u.autoplay={running:!1,paused:!1,timeLeft:0},h({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let v=m&&m.autoplay?m.autoplay.delay:3e3,w=m&&m.autoplay?m.autoplay.delay:3e3,b=new Date().getTime();function x(e){u&&!u.destroyed&&u.wrapperEl&&e.target===u.wrapperEl&&(u.wrapperEl.removeEventListener("transitionend",x),!p&&(!e.detail||!e.detail.bySwiperTouchMove)&&_())}let y=()=>{if(u.destroyed||!u.autoplay.running)return;u.autoplay.paused?s=!0:s&&(w=n,s=!1);let e=u.autoplay.paused?n:b+w-new Date().getTime();u.autoplay.timeLeft=e,g("autoplayTimeLeft",e,e/v),i=requestAnimationFrame(()=>{y()})},k=()=>{let e;if(!(e=u.virtual&&u.params.virtual.enabled?u.slides.find(e=>e.classList.contains("swiper-slide-active")):u.slides[u.activeIndex]))return;let t=parseInt(e.getAttribute("data-swiper-autoplay"),10);return t},C=e=>{if(u.destroyed||!u.autoplay.running)return;cancelAnimationFrame(i),y();let r=void 0===e?u.params.autoplay.delay:e;v=u.params.autoplay.delay,w=u.params.autoplay.delay;let s=k();!Number.isNaN(s)&&s>0&&void 0===e&&(r=s,v=s,w=s),n=r;let l=u.params.speed,a=()=>{u&&!u.destroyed&&(u.params.autoplay.reverseDirection?!u.isBeginning||u.params.loop||u.params.rewind?(u.slidePrev(l,!0,!0),g("autoplay")):u.params.autoplay.stopOnLastSlide||(u.slideTo(u.slides.length-1,l,!0,!0),g("autoplay")):!u.isEnd||u.params.loop||u.params.rewind?(u.slideNext(l,!0,!0),g("autoplay")):u.params.autoplay.stopOnLastSlide||(u.slideTo(0,l,!0,!0),g("autoplay")),u.params.cssMode&&(b=new Date().getTime(),requestAnimationFrame(()=>{C()})))};return r>0?(clearTimeout(t),t=setTimeout(()=>{a()},r)):requestAnimationFrame(()=>{a()}),r},E=()=>{b=new Date().getTime(),u.autoplay.running=!0,C(),g("autoplayStart")},S=()=>{u.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),g("autoplayStop")},T=(e,i)=>{if(u.destroyed||!u.autoplay.running)return;clearTimeout(t),e||(c=!0);let r=()=>{g("autoplayPause"),u.params.autoplay.waitForTransition?u.wrapperEl.addEventListener("transitionend",x):_()};if(u.autoplay.paused=!0,i){d&&(n=u.params.autoplay.delay),d=!1,r();return}let s=n||u.params.autoplay.delay;n=s-(new Date().getTime()-b),u.isEnd&&n<0&&!u.params.loop||(n<0&&(n=0),r())},_=()=>{u.isEnd&&n<0&&!u.params.loop||u.destroyed||!u.autoplay.running||(b=new Date().getTime(),c?(c=!1,C(n)):C(),u.autoplay.paused=!1,g("autoplayResume"))},L=()=>{if(u.destroyed||!u.autoplay.running)return;let e=(0,r.g)();"hidden"===e.visibilityState&&(c=!0,T(!0)),"visible"===e.visibilityState&&_()},M=e=>{"mouse"===e.pointerType&&(c=!0,p=!0,u.animating||u.autoplay.paused||T(!0))},A=e=>{"mouse"===e.pointerType&&(p=!1,u.autoplay.paused&&_())},$=()=>{u.params.autoplay.pauseOnMouseEnter&&(u.el.addEventListener("pointerenter",M),u.el.addEventListener("pointerleave",A))},O=()=>{u.el&&"string"!=typeof u.el&&(u.el.removeEventListener("pointerenter",M),u.el.removeEventListener("pointerleave",A))},P=()=>{let e=(0,r.g)();e.addEventListener("visibilitychange",L)},z=()=>{let e=(0,r.g)();e.removeEventListener("visibilitychange",L)};f("init",()=>{u.params.autoplay.enabled&&($(),P(),E())}),f("destroy",()=>{O(),z(),u.autoplay.running&&S()}),f("_freeModeStaticRelease",()=>{(a||c)&&_()}),f("_freeModeNoMomentumRelease",()=>{u.params.autoplay.disableOnInteraction?S():T(!0,!0)}),f("beforeTransitionStart",(e,t,i)=>{!u.destroyed&&u.autoplay.running&&(i||!u.params.autoplay.disableOnInteraction?T(!0,!0):S())}),f("sliderFirstMove",()=>{if(!u.destroyed&&u.autoplay.running){if(u.params.autoplay.disableOnInteraction){S();return}l=!0,a=!1,c=!1,o=setTimeout(()=>{c=!0,a=!0,T(!0)},200)}}),f("touchEnd",()=>{if(!u.destroyed&&u.autoplay.running&&l){if(clearTimeout(o),clearTimeout(t),u.params.autoplay.disableOnInteraction){a=!1,l=!1;return}a&&u.params.cssMode&&_(),a=!1,l=!1}}),f("slideChange",()=>{!u.destroyed&&u.autoplay.running&&(d=!0)}),Object.assign(u.autoplay,{start:E,stop:S,pause:T,resume:_})}},9280:function(e,t,i){function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function n(e,t){void 0===e&&(e={}),void 0===t&&(t={});let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:r(t[i])&&r(e[i])&&Object.keys(t[i]).length>0&&n(e[i],t[i])})}i.d(t,{a:function(){return o},g:function(){return l}});let s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function l(){let e="undefined"!=typeof document?document:{};return n(e,s),e}let a={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function o(){let e="undefined"!=typeof window?window:{};return n(e,a),e}},1439:function(e,t,i){i.d(t,{a:function(){return b},c:function(){return f},d:function(){return l},e:function(){return p},f:function(){return x},h:function(){return w},j:function(){return a},m:function(){return y},n:function(){return s},p:function(){return v},q:function(){return m},r:function(){return g},s:function(){return d},t:function(){return c},u:function(){return h},v:function(){return u},w:function(){return function e(){let t=Object(arguments.length<=0?void 0:arguments[0]),i=["__proto__","constructor","prototype"];for(let r=1;r<arguments.length;r+=1){let n=r<0||arguments.length<=r?void 0:arguments[r];if(null!=n&&("undefined"!=typeof window&&void 0!==window.HTMLElement?!(n instanceof HTMLElement):!n||1!==n.nodeType&&11!==n.nodeType)){let r=Object.keys(Object(n)).filter(e=>0>i.indexOf(e));for(let i=0,s=r.length;i<s;i+=1){let s=r[i],l=Object.getOwnPropertyDescriptor(n,s);void 0!==l&&l.enumerable&&(o(t[s])&&o(n[s])?n[s].__swiper__?t[s]=n[s]:e(t[s],n[s]):!o(t[s])&&o(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:e(t[s],n[s])):t[s]=n[s])}}}return t}},x:function(){return n}});var r=i(9280);function n(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch(e){}try{delete e[t]}catch(e){}})}function s(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function l(){return Date.now()}function a(e,t){let i,n,s;void 0===t&&(t="x");let l=(0,r.a)(),a=function(e){let t;let i=(0,r.a)();return i.getComputedStyle&&(t=i.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return l.WebKitCSSMatrix?((n=a.transform||a.webkitTransform).split(",").length>6&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),s=new l.WebKitCSSMatrix("none"===n?"":n)):i=(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(n=l.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(n=l.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0}function o(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function d(e,t,i){e.style.setProperty(t,i)}function c(e){let t,{swiper:i,targetPosition:n,side:s}=e,l=(0,r.a)(),a=-i.translate,o=null,d=i.params.speed;i.wrapperEl.style.scrollSnapType="none",l.cancelAnimationFrame(i.cssModeFrameID);let c=n>a?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{t=new Date().getTime(),null===o&&(o=t);let e=Math.max(Math.min((t-o)/d,1),0),r=a+(.5-Math.cos(e*Math.PI)/2)*(n-a);if(p(r,n)&&(r=n),i.wrapperEl.scrollTo({[s]:r}),p(r,n)){i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[s]:r})}),l.cancelAnimationFrame(i.cssModeFrameID);return}i.cssModeFrameID=l.requestAnimationFrame(u)};u()}function p(e,t){void 0===t&&(t="");let i=(0,r.a)(),n=[...e.children];return(i.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t)?n.filter(e=>e.matches(t)):n}function u(e,t){let i=(0,r.a)(),n=t.contains(e);if(!n&&i.HTMLSlotElement&&t instanceof HTMLSlotElement){let i=[...t.assignedElements()];(n=i.includes(e))||(n=function(e,t){let i=[t];for(;i.length>0;){let t=i.shift();if(e===t)return!0;i.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))}return n}function h(e){try{console.warn(e);return}catch(e){}}function f(e,t){var i;void 0===t&&(t=[]);let r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:(void 0===(i=t)&&(i=""),i.trim().split(" ").filter(e=>!!e.trim()))),r}function g(e,t){let i=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&i.push(r):i.push(r),e=r}return i}function m(e,t){let i=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&i.push(r):i.push(r),e=r}return i}function v(e,t){let i=(0,r.a)();return i.getComputedStyle(e,null).getPropertyValue(t)}function w(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function b(e,t){let i=[],r=e.parentElement;for(;r;)t?r.matches(t)&&i.push(r):i.push(r),r=r.parentElement;return i}function x(e,t,i){let n=(0,r.a)();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function y(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}},8278:function(e,t,i){let r,n,s;i.d(t,{tq:function(){return q},o5:function(){return W}});var l=i(2265),a=i(9280),o=i(1439);function d(){return r||(r=function(){let e=(0,a.a)(),t=(0,a.g)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),r}function c(e){return void 0===e&&(e={}),n||(n=function(e){let{userAgent:t}=void 0===e?{}:e,i=d(),r=(0,a.a)(),n=r.navigator.platform,s=t||r.navigator.userAgent,l={ios:!1,android:!1},o=r.screen.width,c=r.screen.height,p=s.match(/(Android);?[\s\/]+([\d.]+)?/),u=s.match(/(iPad).*OS\s([\d_]+)/),h=s.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),g="MacIntel"===n;return!u&&g&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${c}`)>=0&&((u=s.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),g=!1),p&&"Win32"!==n&&(l.os="android",l.android=!0),(u||f||h)&&(l.os="ios",l.ios=!0),l}(e)),n}function p(){return s||(s=function(){let e=(0,a.a)(),t=c(),i=!1;function r(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(r()){let t=String(e.navigator.userAgent);if(t.includes("Version/")){let[e,r]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));i=e<16||16===e&&r<2}}let n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),s=r(),l=s||n&&t.ios;return{isSafari:i||s,needPerspectiveFix:i,need3dFix:l,isWebView:n}}()),s}let u=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},h=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},f=(e,t)=>{if(!e||e.destroyed||!e.params)return;let i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&t.remove()})),t&&t.remove()}},g=(e,t)=>{if(!e.slides[t])return;let i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},m=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);let r="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let i=[n-t];i.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,r)=>{i.includes(t.column)&&g(e,r)});return}let s=n+r-1;if(e.params.rewind||e.params.loop)for(let r=n-t;r<=s+t;r+=1){let t=(r%i+i)%i;(t<n||t>s)&&g(e,t)}else for(let r=Math.max(n-t,0);r<=Math.min(s+t,i-1);r+=1)r!==n&&(r>s||r<n)&&g(e,r)};function v(e){let{swiper:t,runCallbacks:i,direction:r,step:n}=e,{activeIndex:s,previousIndex:l}=t,a=r;if(a||(a=s>l?"next":s<l?"prev":"reset"),t.emit(`transition${n}`),i&&s!==l){if("reset"===a){t.emit(`slideResetTransition${n}`);return}t.emit(`slideChangeTransition${n}`),"next"===a?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`)}}function w(e,t,i){let r=(0,a.a)(),{params:n}=e,s=n.edgeSwipeDetection,l=n.edgeSwipeThreshold;return!s||!(i<=l)&&!(i>=r.innerWidth-l)||"prevent"===s&&(t.preventDefault(),!0)}function b(e){let t=(0,a.g)(),i=e;i.originalEvent&&(i=i.originalEvent);let r=this.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type){w(this,i,i.targetTouches[0].pageX);return}let{params:n,touches:s,enabled:l}=this;if(!l||!n.simulateTouch&&"mouse"===i.pointerType||this.animating&&n.preventInteractionOnTransition)return;!this.animating&&n.cssMode&&n.loop&&this.loopFix();let d=i.target;if("wrapper"===n.touchEventsTarget&&!(0,o.v)(d,this.wrapperEl)||"which"in i&&3===i.which||"button"in i&&i.button>0||r.isTouched&&r.isMoved)return;let c=!!n.noSwipingClass&&""!==n.noSwipingClass,p=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&p&&(d=p[0]);let u=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,h=!!(i.target&&i.target.shadowRoot);if(n.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===(0,a.g)()||i===(0,a.a)())return null;i.assignedSlot&&(i=i.assignedSlot);let r=i.closest(e);return r||i.getRootNode?r||t(i.getRootNode().host):null}(t)}(u,d):d.closest(u))){this.allowClick=!0;return}if(n.swipeHandler&&!d.closest(n.swipeHandler))return;s.currentX=i.pageX,s.currentY=i.pageY;let f=s.currentX,g=s.currentY;if(!w(this,i,f))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=f,s.startY=g,r.touchStartTime=(0,o.d)(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let m=!0;d.matches(r.focusableElements)&&(m=!1,"SELECT"===d.nodeName&&(r.isTouched=!1)),t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==d&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!d.matches(r.focusableElements))&&t.activeElement.blur();let v=m&&this.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||v)&&!d.isContentEditable&&i.preventDefault(),n.freeMode&&n.freeMode.enabled&&this.freeMode&&this.animating&&!n.cssMode&&this.freeMode.onTouchStart(),this.emit("touchStart",i)}function x(e){let t,i;let r=(0,a.g)(),n=this.touchEventsData,{params:s,touches:l,rtlTranslate:d,enabled:c}=this;if(!c||!s.simulateTouch&&"mouse"===e.pointerType)return;let p=e;if(p.originalEvent&&(p=p.originalEvent),"pointermove"===p.type){if(null!==n.touchId)return;let e=p.pointerId;if(e!==n.pointerId)return}if("touchmove"===p.type){if(!(t=[...p.changedTouches].find(e=>e.identifier===n.touchId))||t.identifier!==n.touchId)return}else t=p;if(!n.isTouched){n.startMoving&&n.isScrolling&&this.emit("touchMoveOpposite",p);return}let u=t.pageX,h=t.pageY;if(p.preventedByNestedSwiper){l.startX=u,l.startY=h;return}if(!this.allowTouchMove){p.target.matches(n.focusableElements)||(this.allowClick=!1),n.isTouched&&(Object.assign(l,{startX:u,startY:h,currentX:u,currentY:h}),n.touchStartTime=(0,o.d)());return}if(s.touchReleaseOnEdges&&!s.loop){if(this.isVertical()){if(h<l.startY&&this.translate<=this.maxTranslate()||h>l.startY&&this.translate>=this.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(d&&(u>l.startX&&-this.translate<=this.maxTranslate()||u<l.startX&&-this.translate>=this.minTranslate()))return;else if(!d&&(u<l.startX&&this.translate<=this.maxTranslate()||u>l.startX&&this.translate>=this.minTranslate()))return}if(r.activeElement&&r.activeElement.matches(n.focusableElements)&&r.activeElement!==p.target&&"mouse"!==p.pointerType&&r.activeElement.blur(),r.activeElement&&p.target===r.activeElement&&p.target.matches(n.focusableElements)){n.isMoved=!0,this.allowClick=!1;return}n.allowTouchCallbacks&&this.emit("touchMove",p),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=u,l.currentY=h;let f=l.currentX-l.startX,g=l.currentY-l.startY;if(this.params.threshold&&Math.sqrt(f**2+g**2)<this.params.threshold)return;if(void 0===n.isScrolling){let e;this.isHorizontal()&&l.currentY===l.startY||this.isVertical()&&l.currentX===l.startX?n.isScrolling=!1:f*f+g*g>=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(f))/Math.PI,n.isScrolling=this.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(n.isScrolling&&this.emit("touchMoveOpposite",p),void 0===n.startMoving&&(l.currentX!==l.startX||l.currentY!==l.startY)&&(n.startMoving=!0),n.isScrolling||"touchmove"===p.type&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;this.allowClick=!1,!s.cssMode&&p.cancelable&&p.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&p.stopPropagation();let m=this.isHorizontal()?f:g,v=this.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;s.oneWayMovement&&(m=Math.abs(m)*(d?1:-1),v=Math.abs(v)*(d?1:-1)),l.diff=m,m*=s.touchRatio,d&&(m=-m,v=-v);let w=this.touchesDirection;this.swipeDirection=m>0?"prev":"next",this.touchesDirection=v>0?"prev":"next";let b=this.params.loop&&!s.cssMode,x="next"===this.touchesDirection&&this.allowSlideNext||"prev"===this.touchesDirection&&this.allowSlidePrev;if(!n.isMoved){if(b&&x&&this.loopFix({direction:this.swipeDirection}),n.startTranslate=this.getTranslate(),this.setTransition(0),this.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});this.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,s.grabCursor&&(!0===this.allowSlideNext||!0===this.allowSlidePrev)&&this.setGrabCursor(!0),this.emit("sliderFirstMove",p)}if(new Date().getTime(),!1!==s._loopSwapReset&&n.isMoved&&n.allowThresholdMove&&w!==this.touchesDirection&&b&&x&&Math.abs(m)>=1){Object.assign(l,{startX:u,startY:h,currentX:u,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}this.emit("sliderMove",p),n.isMoved=!0,n.currentTranslate=m+n.startTranslate;let y=!0,k=s.resistanceRatio;if(s.touchReleaseOnEdges&&(k=0),m>0?(b&&x&&!i&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?this.minTranslate()-this.slidesSizesGrid[this.activeIndex+1]-("auto"!==s.slidesPerView&&this.slides.length-s.slidesPerView>=2?this.slidesSizesGrid[this.activeIndex+1]+this.params.spaceBetween:0)-this.params.spaceBetween:this.minTranslate())&&this.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>this.minTranslate()&&(y=!1,s.resistance&&(n.currentTranslate=this.minTranslate()-1+(-this.minTranslate()+n.startTranslate+m)**k))):m<0&&(b&&x&&!i&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?this.maxTranslate()+this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween+("auto"!==s.slidesPerView&&this.slides.length-s.slidesPerView>=2?this.slidesSizesGrid[this.slidesSizesGrid.length-1]+this.params.spaceBetween:0):this.maxTranslate())&&this.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:this.slides.length-("auto"===s.slidesPerView?this.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslate<this.maxTranslate()&&(y=!1,s.resistance&&(n.currentTranslate=this.maxTranslate()+1-(this.maxTranslate()-n.startTranslate-m)**k))),y&&(p.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),this.allowSlidePrev||this.allowSlideNext||(n.currentTranslate=n.startTranslate),s.threshold>0){if(Math.abs(m)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,n.currentTranslate=n.startTranslate,l.diff=this.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY;return}}else{n.currentTranslate=n.startTranslate;return}}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&this.freeMode||s.watchSlidesProgress)&&(this.updateActiveIndex(),this.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&this.freeMode&&this.freeMode.onTouchMove(),this.updateProgress(n.currentTranslate),this.setTranslate(n.currentTranslate))}function y(e){let t,i;let r=this,n=r.touchEventsData,s=e;s.originalEvent&&(s=s.originalEvent);let l="touchend"===s.type||"touchcancel"===s.type;if(l){if(!(t=[...s.changedTouches].find(e=>e.identifier===n.touchId))||t.identifier!==n.touchId)return}else{if(null!==n.touchId||s.pointerId!==n.pointerId)return;t=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)){let e=["pointercancel","contextmenu"].includes(s.type)&&(r.browser.isSafari||r.browser.isWebView);if(!e)return}n.pointerId=null,n.touchId=null;let{params:a,touches:d,rtlTranslate:c,slidesGrid:p,enabled:u}=r;if(!u||!a.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&r.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&r.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(!0===r.allowSlideNext||!0===r.allowSlidePrev)&&r.setGrabCursor(!1);let h=(0,o.d)(),f=h-n.touchStartTime;if(r.allowClick){let e=s.path||s.composedPath&&s.composedPath();r.updateClickedSlide(e&&e[0]||s.target,e),r.emit("tap click",s),f<300&&h-n.lastClickTime<300&&r.emit("doubleTap doubleClick",s)}if(n.lastClickTime=(0,o.d)(),(0,o.n)(()=>{r.destroyed||(r.allowClick=!0)}),!n.isTouched||!n.isMoved||!r.swipeDirection||0===d.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,i=a.followFinger?c?r.translate:-r.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){r.freeMode.onTouchEnd({currentPos:i});return}let g=i>=-r.maxTranslate()&&!r.params.loop,m=0,v=r.slidesSizesGrid[0];for(let e=0;e<p.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==p[e+t]?(g||i>=p[e]&&i<p[e+t])&&(m=e,v=p[e+t]-p[e]):(g||i>=p[e])&&(m=e,v=p[p.length-1]-p[p.length-2])}let w=null,b=null;a.rewind&&(r.isBeginning?b=a.virtual&&a.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1:r.isEnd&&(w=0));let x=(i-p[m])/v,y=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(f>a.longSwipesMs){if(!a.longSwipes){r.slideTo(r.activeIndex);return}"next"===r.swipeDirection&&(x>=a.longSwipesRatio?r.slideTo(a.rewind&&r.isEnd?w:m+y):r.slideTo(m)),"prev"===r.swipeDirection&&(x>1-a.longSwipesRatio?r.slideTo(m+y):null!==b&&x<0&&Math.abs(x)>a.longSwipesRatio?r.slideTo(b):r.slideTo(m))}else{if(!a.shortSwipes){r.slideTo(r.activeIndex);return}let e=r.navigation&&(s.target===r.navigation.nextEl||s.target===r.navigation.prevEl);e?s.target===r.navigation.nextEl?r.slideTo(m+y):r.slideTo(m):("next"===r.swipeDirection&&r.slideTo(null!==w?w:m+y),"prev"===r.swipeDirection&&r.slideTo(null!==b?b:m))}}function k(){let e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:n,snapGrid:s}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let a=l&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||a?e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function C(e){this.enabled&&!this.allowClick&&(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function E(){let{wrapperEl:e,rtlTranslate:t,enabled:i}=this;if(!i)return;this.previousTranslate=this.translate,this.isHorizontal()?this.translate=-e.scrollLeft:this.translate=-e.scrollTop,0===this.translate&&(this.translate=0),this.updateActiveIndex(),this.updateSlidesClasses();let r=this.maxTranslate()-this.minTranslate();(0===r?0:(this.translate-this.minTranslate())/r)!==this.progress&&this.updateProgress(t?-this.translate:this.translate),this.emit("setTranslate",this.translate,!1)}function S(e){f(this,e.target),!this.params.cssMode&&("auto"===this.params.slidesPerView||this.params.autoHeight)&&this.update()}function T(){!this.documentTouchHandlerProceeded&&(this.documentTouchHandlerProceeded=!0,this.params.touchReleaseOnEdges&&(this.el.style.touchAction="auto"))}let _=(e,t)=>{let i=(0,a.g)(),{params:r,el:n,wrapperEl:s,device:l}=e,o=!!r.nested,d="on"===t?"addEventListener":"removeEventListener";n&&"string"!=typeof n&&(i[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),n[d]("touchstart",e.onTouchStart,{passive:!1}),n[d]("pointerdown",e.onTouchStart,{passive:!1}),i[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),i[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),i[d]("touchend",e.onTouchEnd,{passive:!0}),i[d]("pointerup",e.onTouchEnd,{passive:!0}),i[d]("pointercancel",e.onTouchEnd,{passive:!0}),i[d]("touchcancel",e.onTouchEnd,{passive:!0}),i[d]("pointerout",e.onTouchEnd,{passive:!0}),i[d]("pointerleave",e.onTouchEnd,{passive:!0}),i[d]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&n[d]("click",e.onClick,!0),r.cssMode&&s[d]("scroll",e.onScroll),r.updateOnWindowResize?e[t](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",k,!0):e[t]("observerUpdate",k,!0),n[d]("load",e.onLoad,{capture:!0}))},L=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var M={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};let A={eventsEmitter:{on(e,t,i){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;let n=i?"unshift":"push";return e.split(" ").forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][n](t)}),r},once(e,t,i){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof t)return r;function n(){r.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];t.apply(r,s)}return n.__emitterProxy=t,r.on(e,n,i)},onAny(e,t){return!this.eventsListeners||this.destroyed||"function"!=typeof e||0>this.eventsAnyListeners.indexOf(e)&&this.eventsAnyListeners[t?"unshift":"push"](e),this},offAny(e){if(!this.eventsListeners||this.destroyed||!this.eventsAnyListeners)return this;let t=this.eventsAnyListeners.indexOf(e);return t>=0&&this.eventsAnyListeners.splice(t,1),this},off(e,t){let i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((r,n)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)})}),i},emit(){let e,t,i;let r=this;if(!r.eventsListeners||r.destroyed||!r.eventsListeners)return r;for(var n=arguments.length,s=Array(n),l=0;l<n;l++)s[l]=arguments[l];"string"==typeof s[0]||Array.isArray(s[0])?(e=s[0],t=s.slice(1,s.length),i=r):(e=s[0].events,t=s[0].data,i=s[0].context||r),t.unshift(i);let a=Array.isArray(e)?e:e.split(" ");return a.forEach(e=>{r.eventsAnyListeners&&r.eventsAnyListeners.length&&r.eventsAnyListeners.forEach(r=>{r.apply(i,[e,...t])}),r.eventsListeners&&r.eventsListeners[e]&&r.eventsListeners[e].forEach(e=>{e.apply(i,t)})}),r}},update:{updateSize:function(){let e,t;let i=this.el;e=void 0!==this.params.width&&null!==this.params.width?this.params.width:i.clientWidth,t=void 0!==this.params.height&&null!==this.params.height?this.params.height:i.clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt((0,o.p)(i,"padding-left")||0,10)-parseInt((0,o.p)(i,"padding-right")||0,10),t=t-parseInt((0,o.p)(i,"padding-top")||0,10)-parseInt((0,o.p)(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){let e;let t=this;function i(e,i){return parseFloat(e.getPropertyValue(t.getDirectionLabel(i))||0)}let r=t.params,{wrapperEl:n,slidesEl:s,size:l,rtlTranslate:a,wrongRTL:d}=t,c=t.virtual&&r.virtual.enabled,p=c?t.virtual.slides.length:t.slides.length,u=(0,o.e)(s,`.${t.params.slideClass}, swiper-slide`),h=c?t.virtual.slides.length:u.length,f=[],g=[],m=[],v=r.slidesOffsetBefore;"function"==typeof v&&(v=r.slidesOffsetBefore.call(t));let w=r.slidesOffsetAfter;"function"==typeof w&&(w=r.slidesOffsetAfter.call(t));let b=t.snapGrid.length,x=t.slidesGrid.length,y=r.spaceBetween,k=-v,C=0,E=0;if(void 0===l)return;"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*l:"string"==typeof y&&(y=parseFloat(y)),t.virtualSize=-y,u.forEach(e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),r.centeredSlides&&r.cssMode&&((0,o.s)(n,"--swiper-centered-offset-before",""),(0,o.s)(n,"--swiper-centered-offset-after",""));let S=r.grid&&r.grid.rows>1&&t.grid;S?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let T="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>void 0!==r.breakpoints[e].slidesPerView).length>0;for(let n=0;n<h;n+=1){let s;if(e=0,u[n]&&(s=u[n]),S&&t.grid.updateSlide(n,s,u),!u[n]||"none"!==(0,o.p)(s,"display")){if("auto"===r.slidesPerView){T&&(u[n].style[t.getDirectionLabel("width")]="");let l=getComputedStyle(s),a=s.style.transform,d=s.style.webkitTransform;if(a&&(s.style.transform="none"),d&&(s.style.webkitTransform="none"),r.roundLengths)e=t.isHorizontal()?(0,o.f)(s,"width",!0):(0,o.f)(s,"height",!0);else{let t=i(l,"width"),r=i(l,"padding-left"),n=i(l,"padding-right"),a=i(l,"margin-left"),o=i(l,"margin-right"),d=l.getPropertyValue("box-sizing");if(d&&"border-box"===d)e=t+a+o;else{let{clientWidth:i,offsetWidth:l}=s;e=t+r+n+a+o+(l-i)}}a&&(s.style.transform=a),d&&(s.style.webkitTransform=d),r.roundLengths&&(e=Math.floor(e))}else e=(l-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(e=Math.floor(e)),u[n]&&(u[n].style[t.getDirectionLabel("width")]=`${e}px`);u[n]&&(u[n].swiperSlideSize=e),m.push(e),r.centeredSlides?(k=k+e/2+C/2+y,0===C&&0!==n&&(k=k-l/2-y),0===n&&(k=k-l/2-y),.001>Math.abs(k)&&(k=0),r.roundLengths&&(k=Math.floor(k)),E%r.slidesPerGroup==0&&f.push(k),g.push(k)):(r.roundLengths&&(k=Math.floor(k)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup==0&&f.push(k),g.push(k),k=k+e+y),t.virtualSize+=e+y,C=e,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,l)+w,a&&d&&("slide"===r.effect||"coverflow"===r.effect)&&(n.style.width=`${t.virtualSize+y}px`),r.setWrapperSize&&(n.style[t.getDirectionLabel("width")]=`${t.virtualSize+y}px`),S&&t.grid.updateWrapperSize(e,f),!r.centeredSlides){let e=[];for(let i=0;i<f.length;i+=1){let n=f[i];r.roundLengths&&(n=Math.floor(n)),f[i]<=t.virtualSize-l&&e.push(n)}f=e,Math.floor(t.virtualSize-l)-Math.floor(f[f.length-1])>1&&f.push(t.virtualSize-l)}if(c&&r.loop){let e=m[0]+y;if(r.slidesPerGroup>1){let i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup),n=e*r.slidesPerGroup;for(let e=0;e<i;e+=1)f.push(f[f.length-1]+n)}for(let i=0;i<t.virtual.slidesBefore+t.virtual.slidesAfter;i+=1)1===r.slidesPerGroup&&f.push(f[f.length-1]+e),g.push(g[g.length-1]+e),t.virtualSize+=e}if(0===f.length&&(f=[0]),0!==y){let e=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");u.filter((e,t)=>!r.cssMode||!!r.loop||t!==u.length-1).forEach(t=>{t.style[e]=`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(y||0)}),e-=y;let t=e>l?e-l:0;f=f.map(e=>e<=0?-v:e>t?t+w:e)}if(r.centerInsufficientSlides){let e=0;m.forEach(t=>{e+=t+(y||0)}),e-=y;let t=(r.slidesOffsetBefore||0)+(r.slidesOffsetAfter||0);if(e+t<l){let i=(l-e-t)/2;f.forEach((e,t)=>{f[t]=e-i}),g.forEach((e,t)=>{g[t]=e+i})}}if(Object.assign(t,{slides:u,snapGrid:f,slidesGrid:g,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){(0,o.s)(n,"--swiper-centered-offset-before",`${-f[0]}px`),(0,o.s)(n,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);let e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+i)}if(h!==p&&t.emit("slidesLengthChange"),f.length!==b&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),g.length!==x&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!c&&!r.cssMode&&("slide"===r.effect||"fade"===r.effect)){let e=`${r.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);h<=r.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t;let i=this,r=[],n=i.virtual&&i.params.virtual.enabled,s=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);let l=e=>n?i.slides[i.getSlideIndexByData(e)]:i.slides[e];if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>1){if(i.params.centeredSlides)(i.visibleSlides||[]).forEach(e=>{r.push(e)});else for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){let e=i.activeIndex+t;if(e>i.slides.length&&!n)break;r.push(l(e))}}else r.push(l(i.activeIndex));for(t=0;t<r.length;t+=1)if(void 0!==r[t]){let e=r[t].offsetHeight;s=e>s?e:s}(s||0===s)&&(i.wrapperEl.style.height=`${s}px`)},updateSlidesOffset:function(){let e=this.slides,t=this.isElement?this.isHorizontal()?this.wrapperEl.offsetLeft:this.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(this.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-t-this.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);let t=this.params,{slides:i,rtlTranslate:r,snapGrid:n}=this;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();let s=-e;r&&(s=e),this.visibleSlidesIndexes=[],this.visibleSlides=[];let l=t.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*this.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<i.length;e+=1){let a=i[e],o=a.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(o-=i[0].swiperSlideOffset);let d=(s+(t.centeredSlides?this.minTranslate():0)-o)/(a.swiperSlideSize+l),c=(s-n[0]+(t.centeredSlides?this.minTranslate():0)-o)/(a.swiperSlideSize+l),p=-(s-o),h=p+this.slidesSizesGrid[e],f=p>=0&&p<=this.size-this.slidesSizesGrid[e],g=p>=0&&p<this.size-1||h>1&&h<=this.size||p<=0&&h>=this.size;g&&(this.visibleSlides.push(a),this.visibleSlidesIndexes.push(e)),u(a,g,t.slideVisibleClass),u(a,f,t.slideFullyVisibleClass),a.progress=r?-d:d,a.originalProgress=r?-c:c}},updateProgress:function(e){if(void 0===e){let t=this.rtlTranslate?-1:1;e=this&&this.translate&&this.translate*t||0}let t=this.params,i=this.maxTranslate()-this.minTranslate(),{progress:r,isBeginning:n,isEnd:s,progressLoop:l}=this,a=n,o=s;if(0===i)r=0,n=!0,s=!0;else{r=(e-this.minTranslate())/i;let t=1>Math.abs(e-this.minTranslate()),l=1>Math.abs(e-this.maxTranslate());n=t||r<=0,s=l||r>=1,t&&(r=0),l&&(r=1)}if(t.loop){let t=this.getSlideIndexByData(0),i=this.getSlideIndexByData(this.slides.length-1),r=this.slidesGrid[t],n=this.slidesGrid[i],s=this.slidesGrid[this.slidesGrid.length-1],a=Math.abs(e);(l=a>=r?(a-r)/s:(a+s-n)/s)>1&&(l-=1)}Object.assign(this,{progress:r,progressLoop:l,isBeginning:n,isEnd:s}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&this.updateSlidesProgress(e),n&&!a&&this.emit("reachBeginning toEdge"),s&&!o&&this.emit("reachEnd toEdge"),(a&&!n||o&&!s)&&this.emit("fromEdge"),this.emit("progress",r)},updateSlidesClasses:function(){let e,t,i;let{slides:r,params:n,slidesEl:s,activeIndex:l}=this,a=this.virtual&&n.virtual.enabled,d=this.grid&&n.grid&&n.grid.rows>1,c=e=>(0,o.e)(s,`.${n.slideClass}${e}, swiper-slide${e}`)[0];if(a){if(n.loop){let t=l-this.virtual.slidesBefore;t<0&&(t=this.virtual.slides.length+t),t>=this.virtual.slides.length&&(t-=this.virtual.slides.length),e=c(`[data-swiper-slide-index="${t}"]`)}else e=c(`[data-swiper-slide-index="${l}"]`)}else d?(e=r.find(e=>e.column===l),i=r.find(e=>e.column===l+1),t=r.find(e=>e.column===l-1)):e=r[l];e&&!d&&(i=(0,o.q)(e,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!i&&(i=r[0]),t=(0,o.r)(e,`.${n.slideClass}, swiper-slide`)[0],n.loop),r.forEach(r=>{h(r,r===e,n.slideActiveClass),h(r,r===i,n.slideNextClass),h(r,r===t,n.slidePrevClass)}),this.emitSlidesClasses()},updateActiveIndex:function(e){let t,i;let r=this,n=r.rtlTranslate?r.translate:-r.translate,{snapGrid:s,params:l,activeIndex:a,realIndex:o,snapIndex:d}=r,c=e,p=e=>{let t=e-r.virtual.slidesBefore;return t<0&&(t=r.virtual.slides.length+t),t>=r.virtual.slides.length&&(t-=r.virtual.slides.length),t};if(void 0===c&&(c=function(e){let t;let{slidesGrid:i,params:r}=e,n=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<i.length;e+=1)void 0!==i[e+1]?n>=i[e]&&n<i[e+1]-(i[e+1]-i[e])/2?t=e:n>=i[e]&&n<i[e+1]&&(t=e+1):n>=i[e]&&(t=e);return r.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(r)),s.indexOf(n)>=0)t=s.indexOf(n);else{let e=Math.min(l.slidesPerGroupSkip,c);t=e+Math.floor((c-e)/l.slidesPerGroup)}if(t>=s.length&&(t=s.length-1),c===a&&!r.params.loop){t!==d&&(r.snapIndex=t,r.emit("snapIndexChange"));return}if(c===a&&r.params.loop&&r.virtual&&r.params.virtual.enabled){r.realIndex=p(c);return}let u=r.grid&&l.grid&&l.grid.rows>1;if(r.virtual&&l.virtual.enabled&&l.loop)i=p(c);else if(u){let e=r.slides.find(e=>e.column===c),t=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(r.slides.indexOf(e),0)),i=Math.floor(t/l.grid.rows)}else if(r.slides[c]){let e=r.slides[c].getAttribute("data-swiper-slide-index");i=e?parseInt(e,10):c}else i=c;Object.assign(r,{previousSnapIndex:d,snapIndex:t,previousRealIndex:o,realIndex:i,previousIndex:a,activeIndex:c}),r.initialized&&m(r),r.emit("activeIndexChange"),r.emit("snapIndexChange"),(r.initialized||r.params.runCallbacksOnInit)&&(o!==i&&r.emit("realIndexChange"),r.emit("slideChange"))},updateClickedSlide:function(e,t){let i;let r=this.params,n=e.closest(`.${r.slideClass}, swiper-slide`);!n&&this.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!n&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(n=e)});let s=!1;if(n){for(let e=0;e<this.slides.length;e+=1)if(this.slides[e]===n){s=!0,i=e;break}}if(n&&s)this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):this.clickedIndex=i;else{this.clickedSlide=void 0,this.clickedIndex=void 0;return}r.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");let{params:t,rtlTranslate:i,translate:r,wrapperEl:n}=this;if(t.virtualTranslate)return i?-r:r;if(t.cssMode)return r;let s=(0,o.j)(n,e);return s+=this.cssOverflowAdjustment(),i&&(s=-s),s||0},setTranslate:function(e,t){let{rtlTranslate:i,params:r,wrapperEl:n,progress:s}=this,l=0,a=0;this.isHorizontal()?l=i?-e:e:a=e,r.roundLengths&&(l=Math.floor(l),a=Math.floor(a)),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?l:a,r.cssMode?n[this.isHorizontal()?"scrollLeft":"scrollTop"]=this.isHorizontal()?-l:-a:r.virtualTranslate||(this.isHorizontal()?l-=this.cssOverflowAdjustment():a-=this.cssOverflowAdjustment(),n.style.transform=`translate3d(${l}px, ${a}px, 0px)`);let o=this.maxTranslate()-this.minTranslate();(0===o?0:(e-this.minTranslate())/o)!==s&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,r,n){let s;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===r&&(r=!0);let l=this,{params:a,wrapperEl:d}=l;if(l.animating&&a.preventInteractionOnTransition)return!1;let c=l.minTranslate(),p=l.maxTranslate();if(s=r&&e>c?c:r&&e<p?p:e,l.updateProgress(s),a.cssMode){let e=l.isHorizontal();if(0===t)d[e?"scrollLeft":"scrollTop"]=-s;else{if(!l.support.smoothScroll)return(0,o.t)({swiper:l,targetPosition:-s,side:e?"left":"top"}),!0;d.scrollTo({[e?"left":"top"]:-s,behavior:"smooth"})}return!0}return 0===t?(l.setTransition(0),l.setTranslate(s),i&&(l.emit("beforeTransitionStart",t,n),l.emit("transitionEnd"))):(l.setTransition(t),l.setTranslate(s),i&&(l.emit("beforeTransitionStart",t,n),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(e){l&&!l.destroyed&&e.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,i&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){this.params.cssMode||(this.wrapperEl.style.transitionDuration=`${e}ms`,this.wrapperEl.style.transitionDelay=0===e?"0ms":""),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);let{params:i}=this;i.cssMode||(i.autoHeight&&this.updateAutoHeight(),v({swiper:this,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);let{params:i}=this;this.animating=!1,i.cssMode||(this.setTransition(0),v({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,i,r,n){let s;void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));let l=this,a=e;a<0&&(a=0);let{params:d,snapGrid:c,slidesGrid:u,previousIndex:h,activeIndex:f,rtlTranslate:g,wrapperEl:m,enabled:v}=l;if(!v&&!r&&!n||l.destroyed||l.animating&&d.preventInteractionOnTransition)return!1;void 0===t&&(t=l.params.speed);let w=Math.min(l.params.slidesPerGroupSkip,a),b=w+Math.floor((a-w)/l.params.slidesPerGroup);b>=c.length&&(b=c.length-1);let x=-c[b];if(d.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){let t=-Math.floor(100*x),i=Math.floor(100*u[e]),r=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=i&&t<r-(r-i)/2?a=e:t>=i&&t<r&&(a=e+1):t>=i&&(a=e)}if(l.initialized&&a!==f&&(!l.allowSlideNext&&(g?x>l.translate&&x>l.minTranslate():x<l.translate&&x<l.minTranslate())||!l.allowSlidePrev&&x>l.translate&&x>l.maxTranslate()&&(f||0)!==a))return!1;a!==(h||0)&&i&&l.emit("beforeSlideChangeStart"),l.updateProgress(x),s=a>f?"next":a<f?"prev":"reset";let y=l.virtual&&l.params.virtual.enabled;if(!(y&&n)&&(g&&-x===l.translate||!g&&x===l.translate))return l.updateActiveIndex(a),d.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),"slide"!==d.effect&&l.setTranslate(x),"reset"!==s&&(l.transitionStart(i,s),l.transitionEnd(i,s)),!1;if(d.cssMode){let e=l.isHorizontal(),i=g?x:-x;if(0===t)y&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),y&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[e?"scrollLeft":"scrollTop"]=i})):m[e?"scrollLeft":"scrollTop"]=i,y&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1});else{if(!l.support.smoothScroll)return(0,o.t)({swiper:l,targetPosition:i,side:e?"left":"top"}),!0;m.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}let k=p(),C=k.isSafari;return y&&!n&&C&&l.isElement&&l.virtual.update(!1,!1,a),l.setTransition(t),l.setTranslate(x),l.updateActiveIndex(a),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,r),l.transitionStart(i,s),0===t?l.transitionEnd(i,s):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(e){l&&!l.destroyed&&e.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(i,s))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,r){if(void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e){let t=parseInt(e,10);e=t}let n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);let s=n.grid&&n.params.grid&&n.params.grid.rows>1,l=e;if(n.params.loop){if(n.virtual&&n.params.virtual.enabled)l+=n.virtual.slidesBefore;else{let e;if(s){let t=l*n.params.grid.rows;e=n.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else e=n.getSlideIndexByData(l);let t=s?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:i}=n.params,a=n.params.slidesPerView;"auto"===a?a=n.slidesPerViewDynamic():(a=Math.ceil(parseFloat(n.params.slidesPerView,10)),i&&a%2==0&&(a+=1));let o=t-e<a;if(i&&(o=o||e<Math.ceil(a/2)),r&&i&&"auto"!==n.params.slidesPerView&&!s&&(o=!1),o){let r=i?e<n.activeIndex?"prev":"next":e-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?n.realIndex:void 0})}if(s){let e=l*n.params.grid.rows;l=n.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else l=n.getSlideIndexByData(l)}}return requestAnimationFrame(()=>{n.slideTo(l,t,i,r)}),n},slideNext:function(e,t,i){void 0===t&&(t=!0);let r=this,{enabled:n,params:s,animating:l}=r;if(!n||r.destroyed)return r;void 0===e&&(e=r.params.speed);let a=s.slidesPerGroup;"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));let o=r.activeIndex<s.slidesPerGroupSkip?1:a,d=r.virtual&&s.virtual.enabled;if(s.loop){if(l&&!d&&s.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+o,e,t,i)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,e,t,i):r.slideTo(r.activeIndex+o,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);let r=this,{params:n,snapGrid:s,slidesGrid:l,rtlTranslate:a,enabled:o,animating:d}=r;if(!o||r.destroyed)return r;void 0===e&&(e=r.params.speed);let c=r.virtual&&n.virtual.enabled;if(n.loop){if(d&&!c&&n.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}let p=a?r.translate:-r.translate;function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let h=u(p),f=s.map(e=>u(e)),g=n.freeMode&&n.freeMode.enabled,m=s[f.indexOf(h)-1];if(void 0===m&&(n.cssMode||g)){let e;s.forEach((t,i)=>{h>=t&&(e=i)}),void 0!==e&&(m=g?s[e]:s[e>0?e-1:e])}let v=0;if(void 0!==m&&((v=l.indexOf(m))<0&&(v=r.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(v=Math.max(v=v-r.slidesPerViewDynamic("previous",!0)+1,0))),n.rewind&&r.isBeginning){let n=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(n,e,t,i)}return n.loop&&0===r.activeIndex&&n.cssMode?(requestAnimationFrame(()=>{r.slideTo(v,e,t,i)}),!0):r.slideTo(v,e,t,i)},slideReset:function(e,t,i){if(void 0===t&&(t=!0),!this.destroyed)return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i,r){if(void 0===t&&(t=!0),void 0===r&&(r=.5),this.destroyed)return;void 0===e&&(e=this.params.speed);let n=this.activeIndex,s=Math.min(this.params.slidesPerGroupSkip,n),l=s+Math.floor((n-s)/this.params.slidesPerGroup),a=this.rtlTranslate?this.translate:-this.translate;if(a>=this.snapGrid[l]){let e=this.snapGrid[l],t=this.snapGrid[l+1];a-e>(t-e)*r&&(n+=this.params.slidesPerGroup)}else{let e=this.snapGrid[l-1],t=this.snapGrid[l];a-e<=(t-e)*r&&(n-=this.params.slidesPerGroup)}return n=Math.min(n=Math.max(n,0),this.slidesGrid.length-1),this.slideTo(n,e,t,i)},slideToClickedSlide:function(){let e;let t=this;if(t.destroyed)return;let{params:i,slidesEl:r}=t,n="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,s=t.clickedIndex,l=t.isElement?"swiper-slide":`.${i.slideClass}`;if(i.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?s<t.loopedSlides-n/2||s>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),s=t.getSlideIndex((0,o.e)(r,`${l}[data-swiper-slide-index="${e}"]`)[0]),(0,o.n)(()=>{t.slideTo(s)})):t.slideTo(s):s>t.slides.length-n?(t.loopFix(),s=t.getSlideIndex((0,o.e)(r,`${l}[data-swiper-slide-index="${e}"]`)[0]),(0,o.n)(()=>{t.slideTo(s)})):t.slideTo(s)}else t.slideTo(s)}},loop:{loopCreate:function(e,t){let i=this,{params:r,slidesEl:n}=i;if(!r.loop||i.virtual&&i.params.virtual.enabled)return;let s=()=>{let e=(0,o.e)(n,`.${r.slideClass}, swiper-slide`);e.forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},l=i.grid&&r.grid&&r.grid.rows>1,a=r.slidesPerGroup*(l?r.grid.rows:1),d=i.slides.length%a!=0,c=l&&i.slides.length%r.grid.rows!=0,p=e=>{for(let t=0;t<e;t+=1){let e=i.isElement?(0,o.c)("swiper-slide",[r.slideBlankClass]):(0,o.c)("div",[r.slideClass,r.slideBlankClass]);i.slidesEl.append(e)}};if(d){if(r.loopAddBlankSlides){let e=a-i.slides.length%a;p(e),i.recalcSlides(),i.updateSlides()}else(0,o.u)("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(c){if(r.loopAddBlankSlides){let e=r.grid.rows-i.slides.length%r.grid.rows;p(e),i.recalcSlides(),i.updateSlides()}else(0,o.u)("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();i.loopFix({slideRealIndex:e,direction:r.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:i=!0,direction:r,setTranslate:n,activeSlideIndex:s,initial:l,byController:a,byMousewheel:d}=void 0===e?{}:e,c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");let{slides:p,allowSlidePrev:u,allowSlideNext:h,slidesEl:f,params:g}=c,{centeredSlides:m,initialSlide:v}=g;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&g.virtual.enabled){i&&(g.centeredSlides||0!==c.snapIndex?g.centeredSlides&&c.snapIndex<g.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=h,c.emit("loopFix");return}let w=g.slidesPerView;"auto"===w?w=c.slidesPerViewDynamic():(w=Math.ceil(parseFloat(g.slidesPerView,10)),m&&w%2==0&&(w+=1));let b=g.slidesPerGroupAuto?w:g.slidesPerGroup,x=b;x%b!=0&&(x+=b-x%b),x+=g.loopAdditionalSlides,c.loopedSlides=x;let y=c.grid&&g.grid&&g.grid.rows>1;p.length<w+x||"cards"===c.params.effect&&p.length<w+2*x?(0,o.u)("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&"row"===g.grid.fill&&(0,o.u)("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let k=[],C=[],E=y?Math.ceil(p.length/g.grid.rows):p.length,S=l&&E-v<w&&!m,T=S?v:c.activeIndex;void 0===s?s=c.getSlideIndex(p.find(e=>e.classList.contains(g.slideActiveClass))):T=s;let _="next"===r||!r,L="prev"===r||!r,M=0,A=0,$=y?p[s].column:s,O=$+(m&&void 0===n?-w/2+.5:0);if(O<x){M=Math.max(x-O,b);for(let e=0;e<x-O;e+=1){let t=e-Math.floor(e/E)*E;if(y){let e=E-t-1;for(let t=p.length-1;t>=0;t-=1)p[t].column===e&&k.push(t)}else k.push(E-t-1)}}else if(O+w>E-x){A=Math.max(O-(E-2*x),b),S&&(A=Math.max(A,w-E+v+1));for(let e=0;e<A;e+=1){let t=e-Math.floor(e/E)*E;y?p.forEach((e,i)=>{e.column===t&&C.push(i)}):C.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),"cards"===c.params.effect&&p.length<w+2*x&&(C.includes(s)&&C.splice(C.indexOf(s),1),k.includes(s)&&k.splice(k.indexOf(s),1)),L&&k.forEach(e=>{p[e].swiperLoopMoveDOM=!0,f.prepend(p[e]),p[e].swiperLoopMoveDOM=!1}),_&&C.forEach(e=>{p[e].swiperLoopMoveDOM=!0,f.append(p[e]),p[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===g.slidesPerView?c.updateSlides():y&&(k.length>0&&L||C.length>0&&_)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),g.watchSlidesProgress&&c.updateSlidesOffset(),i){if(k.length>0&&L){if(void 0===t){let e=c.slidesGrid[T],t=c.slidesGrid[T+M],i=t-e;d?c.setTranslate(c.translate-i):(c.slideTo(T+Math.ceil(M),0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-i,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-i))}else if(n){let e=y?k.length/g.grid.rows:k.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(C.length>0&&_){if(void 0===t){let e=c.slidesGrid[T],t=c.slidesGrid[T-A],i=t-e;d?c.setTranslate(c.translate-i):(c.slideTo(T-A,0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-i,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-i))}else{let e=y?C.length/g.grid.rows:C.length;c.slideTo(c.activeIndex-e,0,!1,!0)}}}if(c.allowSlidePrev=u,c.allowSlideNext=h,c.controller&&c.controller.control&&!a){let e={slideRealIndex:t,direction:r,setTranslate:n,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===g.slidesPerView&&i})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===g.slidesPerView&&i})}c.emit("loopFix")},loopDestroy:function(){let{params:e,slidesEl:t}=this;if(!e.loop||!t||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();let i=[];this.slides.forEach(e=>{let t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),i.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let{params:e}=this;this.onTouchStart=b.bind(this),this.onTouchMove=x.bind(this),this.onTouchEnd=y.bind(this),this.onDocumentTouchStart=T.bind(this),e.cssMode&&(this.onScroll=E.bind(this)),this.onClick=C.bind(this),this.onLoad=S.bind(this),_(this,"on")},detachEvents:function(){_(this,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:i,params:r,el:n}=e,s=r.breakpoints;if(!s||s&&0===Object.keys(s).length)return;let l=(0,a.g)(),d="window"!==r.breakpointsBase&&r.breakpointsBase?"container":r.breakpointsBase,c=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:l.querySelector(r.breakpointsBase),p=e.getBreakpoint(s,d,c);if(!p||e.currentBreakpoint===p)return;let u=p in s?s[p]:void 0,h=u||e.originalParams,f=L(e,r),g=L(e,h),m=e.params.grabCursor,v=h.grabCursor,w=r.enabled;f&&!g?(n.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&g&&(n.classList.add(`${r.containerModifierClass}grid`),(h.grid.fill&&"column"===h.grid.fill||!h.grid.fill&&"column"===r.grid.fill)&&n.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),m&&!v?e.unsetGrabCursor():!m&&v&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===h[t])return;let i=r[t]&&r[t].enabled,n=h[t]&&h[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()});let b=h.direction&&h.direction!==r.direction,x=r.loop&&(h.slidesPerView!==r.slidesPerView||b),y=r.loop;b&&i&&e.changeDirection(),(0,o.w)(e.params,h);let k=e.params.enabled,C=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),w&&!k?e.disable():!w&&k&&e.enable(),e.currentBreakpoint=p,e.emit("_beforeBreakpoint",h),i&&(x?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&C?(e.loopCreate(t),e.updateSlides()):y&&!C&&e.loopDestroy()),e.emit("breakpoint",h)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let r=!1,n=(0,a.a)(),s="window"===t?n.innerHeight:i.clientHeight,l=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){let t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}});l.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<l.length;e+=1){let{point:s,value:a}=l[e];"window"===t?n.matchMedia(`(min-width: ${a}px)`).matches&&(r=s):a<=i.clientWidth&&(r=s)}return r||"max"}},checkOverflow:{checkOverflow:function(){let{isLocked:e,params:t}=this,{slidesOffsetBefore:i}=t;if(i){let e=this.slides.length-1,t=this.slidesGrid[e]+this.slidesSizesGrid[e]+2*i;this.isLocked=this.size>t}else this.isLocked=1===this.snapGrid.length;!0===t.allowSlideNext&&(this.allowSlideNext=!this.isLocked),!0===t.allowSlidePrev&&(this.allowSlidePrev=!this.isLocked),e&&e!==this.isLocked&&(this.isEnd=!1),e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let{classNames:e,params:t,rtl:i,el:r,device:n}=this,s=function(e,t){let i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(r=>{e[r]&&i.push(t+r)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:n.android},{ios:n.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...s),r.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},$={};class O{constructor(){let e,t;for(var i=arguments.length,r=Array(i),n=0;n<i;n++)r[n]=arguments[n];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?t=r[0]:[e,t]=r,t||(t={}),t=(0,o.w)({},t),e&&!t.el&&(t.el=e);let s=(0,a.g)();if(t.el&&"string"==typeof t.el&&s.querySelectorAll(t.el).length>1){let e=[];return s.querySelectorAll(t.el).forEach(i=>{let r=(0,o.w)({},t,{el:i});e.push(new O(r))}),e}let l=this;l.__swiper__=!0,l.support=d(),l.device=c({userAgent:t.userAgent}),l.browser=p(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);let u={};l.modules.forEach(e=>{var i;e({params:t,swiper:l,extendParams:(i=t,function(e){void 0===e&&(e={});let t=Object.keys(e)[0],r=e[t];if("object"!=typeof r||null===r||(!0===i[t]&&(i[t]={enabled:!0}),"navigation"===t&&i[t]&&i[t].enabled&&!i[t].prevEl&&!i[t].nextEl&&(i[t].auto=!0),["pagination","scrollbar"].indexOf(t)>=0&&i[t]&&i[t].enabled&&!i[t].el&&(i[t].auto=!0),!(t in i&&"enabled"in r))){(0,o.w)(u,e);return}"object"!=typeof i[t]||"enabled"in i[t]||(i[t].enabled=!0),i[t]||(i[t]={enabled:!1}),(0,o.w)(u,e)}),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});let h=(0,o.w)({},M,u);return l.params=(0,o.w)({},h,$,t),l.originalParams=(0,o.w)({},l.params),l.passedParams=(0,o.w)({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach(e=>{l.on(e,l.params.on[e])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}getSlideIndex(e){let{slidesEl:t,params:i}=this,r=(0,o.e)(t,`.${i.slideClass}, swiper-slide`),n=(0,o.h)(r[0]);return(0,o.h)(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e))}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=(0,o.e)(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let i=this.minTranslate(),r=this.maxTranslate(),n=(r-i)*e+i;this.translateTo(n,void 0===t?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(i=>{let r=e.getSlideClasses(i);t.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);let{params:i,slides:r,slidesGrid:n,slidesSizesGrid:s,size:l,activeIndex:a}=this,o=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=r[a]?Math.ceil(r[a].swiperSlideSize):0;for(let i=a+1;i<r.length;i+=1)r[i]&&!e&&(t+=Math.ceil(r[i].swiperSlideSize),o+=1,t>l&&(e=!0));for(let i=a-1;i>=0;i-=1)r[i]&&!e&&(t+=r[i].swiperSlideSize,o+=1,t>l&&(e=!0))}else if("current"===e)for(let e=a+1;e<r.length;e+=1){let i=t?n[e]+s[e]-n[a]<l:n[e]-n[a]<l;i&&(o+=1)}else for(let e=a-1;e>=0;e-=1){let t=n[a]-n[e]<l;t&&(o+=1)}return o}update(){let e;let t=this;if(!t||t.destroyed)return;let{snapGrid:i,params:r}=t;function n(){let e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}if(r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&f(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),r.freeMode&&r.freeMode.enabled&&!r.cssMode)n(),r.autoHeight&&t.updateAutoHeight();else{if(("auto"===r.slidesPerView||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){let i=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;e=t.slideTo(i.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||n()}r.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);let i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.el.classList.remove(`${this.params.containerModifierClass}${i}`),this.el.classList.add(`${this.params.containerModifierClass}${e}`),this.emitContainerClasses(),this.params.direction=e,this.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),this.emit("changeDirection"),t&&this.update()),this}changeLanguageDirection(e){(!this.rtl||"rtl"!==e)&&(this.rtl||"ltr"!==e)&&(this.rtl="rtl"===e,this.rtlTranslate="horizontal"===this.params.direction&&this.rtl,this.rtl?(this.el.classList.add(`${this.params.containerModifierClass}rtl`),this.el.dir="rtl"):(this.el.classList.remove(`${this.params.containerModifierClass}rtl`),this.el.dir="ltr"),this.update())}mount(e){let t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,n=(()=>{if(i&&i.shadowRoot&&i.shadowRoot.querySelector){let e=i.shadowRoot.querySelector(r());return e}return(0,o.e)(i,r())[0]})();return!n&&t.params.createElements&&(n=(0,o.c)("div",t.params.wrapperClass),i.append(n),(0,o.e)(i,`.${t.params.slideClass}`).forEach(e=>{n.append(e)})),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===(0,o.p)(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===(0,o.p)(i,"direction")),wrongRTL:"-webkit-box"===(0,o.p)(n,"display")}),!0}init(e){let t=this;if(t.initialized)return t;let i=t.mount(e);if(!1===i)return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let r=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&r.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(e=>{e.complete?f(t,e):e.addEventListener("load",e=>{f(t,e.target)})}),m(t),t.initialized=!0,m(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);let i=this,{params:r,el:n,wrapperEl:s,slides:l}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),t&&(i.removeClasses(),n&&"string"!=typeof n&&n.removeAttribute("style"),s&&s.removeAttribute("style"),l&&l.length&&l.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),(0,o.x)(i)),i.destroyed=!0),null}static extendDefaults(e){(0,o.w)($,e)}static get extendedDefaults(){return $}static get defaults(){return M}static installModule(e){O.prototype.__modules__||(O.prototype.__modules__=[]);let t=O.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>O.installModule(e)):O.installModule(e),O}}Object.keys(A).forEach(e=>{Object.keys(A[e]).forEach(t=>{O.prototype[t]=A[e][t]})}),O.use([function(e){let{swiper:t,on:i,emit:r}=e,n=(0,a.a)(),s=null,l=null,o=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&(s=new ResizeObserver(e=>{l=n.requestAnimationFrame(()=>{let{width:i,height:r}=t,n=i,s=r;e.forEach(e=>{let{contentBoxSize:i,contentRect:r,target:l}=e;l&&l!==t.el||(n=r?r.width:(i[0]||i).inlineSize,s=r?r.height:(i[0]||i).blockSize)}),(n!==i||s!==r)&&o()})})).observe(t.el)},c=()=>{l&&n.cancelAnimationFrame(l),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},p=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};i("init",()=>{if(t.params.resizeObserver&&void 0!==n.ResizeObserver){d();return}n.addEventListener("resize",o),n.addEventListener("orientationchange",p)}),i("destroy",()=>{c(),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",p)})},function(e){let{swiper:t,extendParams:i,on:r,emit:n}=e,s=[],l=(0,a.a)(),d=function(e,i){void 0===i&&(i={});let r=l.MutationObserver||l.WebkitMutationObserver,a=new r(e=>{if(t.__preventObserver__)return;if(1===e.length){n("observerUpdate",e[0]);return}let i=function(){n("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(i):l.setTimeout(i,0)});a.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:t.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),s.push(a)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",()=>{if(t.params.observer){if(t.params.observeParents){let e=(0,o.a)(t.hostEl);for(let t=0;t<e.length;t+=1)d(e[t])}d(t.hostEl,{childList:t.params.observeSlideChildren}),d(t.wrapperEl,{attributes:!1})}}),r("destroy",()=>{s.forEach(e=>{e.disconnect()}),s.splice(0,s.length)})}]);let P=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function z(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function I(e,t){let i=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>i.indexOf(e)).forEach(i=>{void 0===e[i]?e[i]=t[i]:z(t[i])&&z(e[i])&&Object.keys(t[i]).length>0?t[i].__swiper__?e[i]=t[i]:I(e[i],t[i]):e[i]=t[i]})}function j(e){return void 0===e&&(e={}),e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function F(e){return void 0===e&&(e={}),e.pagination&&void 0===e.pagination.el}function N(e){return void 0===e&&(e={}),e.scrollbar&&void 0===e.scrollbar.el}function R(e){void 0===e&&(e="");let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),i=[];return t.forEach(e=>{0>i.indexOf(e)&&i.push(e)}),i.join(" ")}let D=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function V(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function H(e,t){return"undefined"==typeof window?(0,l.useEffect)(e,t):(0,l.useLayoutEffect)(e,t)}let Z=(0,l.createContext)(null),G=(0,l.createContext)(null),q=(0,l.forwardRef)(function(e,t){var i;let{className:r,tag:n="div",wrapperTag:s="div",children:a,onSwiper:o,...d}=void 0===e?{}:e,c=!1,[p,u]=(0,l.useState)("swiper"),[h,f]=(0,l.useState)(null),[g,m]=(0,l.useState)(!1),v=(0,l.useRef)(!1),w=(0,l.useRef)(null),b=(0,l.useRef)(null),x=(0,l.useRef)(null),y=(0,l.useRef)(null),k=(0,l.useRef)(null),C=(0,l.useRef)(null),E=(0,l.useRef)(null),S=(0,l.useRef)(null),{params:T,passedParams:_,rest:L,events:A}=function(e,t){void 0===e&&(e={}),void 0===t&&(t=!0);let i={on:{}},r={},n={};I(i,M),i._emitClasses=!0,i.init=!1;let s={},l=P.map(e=>e.replace(/_/,"")),a=Object.assign({},e);return Object.keys(a).forEach(a=>{void 0!==e[a]&&(l.indexOf(a)>=0?z(e[a])?(i[a]={},n[a]={},I(i[a],e[a]),I(n[a],e[a])):(i[a]=e[a],n[a]=e[a]):0===a.search(/on[A-Z]/)&&"function"==typeof e[a]?t?r[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:i.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:s[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===i[e]&&(i[e]={}),!1===i[e]&&delete i[e]}),{params:i,passedParams:n,rest:s,events:r}}(d),{slides:$,slots:Z}=function(e){let t=[],i={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return l.Children.toArray(e).forEach(e=>{if(V(e))t.push(e);else if(e.props&&e.props.slot&&i[e.props.slot])i[e.props.slot].push(e);else if(e.props&&e.props.children){let r=function e(t){let i=[];return l.Children.toArray(t).forEach(t=>{V(t)?i.push(t):t.props&&t.props.children&&e(t.props.children).forEach(e=>i.push(e))}),i}(e.props.children);r.length>0?r.forEach(e=>t.push(e)):i["container-end"].push(e)}else i["container-end"].push(e)}),{slides:t,slots:i}}(a),q=()=>{m(!g)};Object.assign(T.on,{_containerClasses(e,t){u(t)}});let W=()=>{Object.assign(T.on,A),c=!0;let e={...T};if(delete e.wrapperClass,b.current=new O(e),b.current.virtual&&b.current.params.virtual.enabled){b.current.virtual.slides=$;let e={cache:!1,slides:$,renderExternal:f,renderExternalUpdate:!1};I(b.current.params.virtual,e),I(b.current.originalParams.virtual,e)}};w.current||W(),b.current&&b.current.on("_beforeBreakpoint",q);let U=()=>{!c&&A&&b.current&&Object.keys(A).forEach(e=>{b.current.on(e,A[e])})},Q=()=>{A&&b.current&&Object.keys(A).forEach(e=>{b.current.off(e,A[e])})};return(0,l.useEffect)(()=>()=>{b.current&&b.current.off("_beforeBreakpoint",q)}),(0,l.useEffect)(()=>{!v.current&&b.current&&(b.current.emitSlidesClasses(),v.current=!0)}),H(()=>{if(t&&(t.current=w.current),w.current)return b.current.destroyed&&W(),function(e,t){let{el:i,nextEl:r,prevEl:n,paginationEl:s,scrollbarEl:l,swiper:a}=e;j(t)&&r&&n&&(a.params.navigation.nextEl=r,a.originalParams.navigation.nextEl=r,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),F(t)&&s&&(a.params.pagination.el=s,a.originalParams.pagination.el=s),N(t)&&l&&(a.params.scrollbar.el=l,a.originalParams.scrollbar.el=l),a.init(i)}({el:w.current,nextEl:k.current,prevEl:C.current,paginationEl:E.current,scrollbarEl:S.current,swiper:b.current},T),o&&!b.current.destroyed&&o(b.current),()=>{b.current&&!b.current.destroyed&&b.current.destroy(!0,!1)}},[]),H(()=>{U();let e=function(e,t,i,r,n){let s=[];if(!t)return s;let l=e=>{0>s.indexOf(e)&&s.push(e)};if(i&&r){let e=r.map(n),t=i.map(n);e.join("")!==t.join("")&&l("children"),r.length!==i.length&&l("children")}let a=P.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,""));return a.forEach(i=>{if(i in e&&i in t){if(z(e[i])&&z(t[i])){let r=Object.keys(e[i]),n=Object.keys(t[i]);r.length!==n.length?l(i):(r.forEach(r=>{e[i][r]!==t[i][r]&&l(i)}),n.forEach(r=>{e[i][r]!==t[i][r]&&l(i)}))}else e[i]!==t[i]&&l(i)}}),s}(_,x.current,$,y.current,e=>e.key);return x.current=_,y.current=$,e.length&&b.current&&!b.current.destroyed&&function(e){let t,i,r,n,s,l,a,o,{swiper:d,slides:c,passedParams:p,changedParams:u,nextEl:h,prevEl:f,scrollbarEl:g,paginationEl:m}=e,v=u.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:w,pagination:b,navigation:x,scrollbar:y,virtual:k,thumbs:C}=d;u.includes("thumbs")&&p.thumbs&&p.thumbs.swiper&&!p.thumbs.swiper.destroyed&&w.thumbs&&(!w.thumbs.swiper||w.thumbs.swiper.destroyed)&&(t=!0),u.includes("controller")&&p.controller&&p.controller.control&&w.controller&&!w.controller.control&&(i=!0),u.includes("pagination")&&p.pagination&&(p.pagination.el||m)&&(w.pagination||!1===w.pagination)&&b&&!b.el&&(r=!0),u.includes("scrollbar")&&p.scrollbar&&(p.scrollbar.el||g)&&(w.scrollbar||!1===w.scrollbar)&&y&&!y.el&&(n=!0),u.includes("navigation")&&p.navigation&&(p.navigation.prevEl||f)&&(p.navigation.nextEl||h)&&(w.navigation||!1===w.navigation)&&x&&!x.prevEl&&!x.nextEl&&(s=!0);let E=e=>{d[e]&&(d[e].destroy(),"navigation"===e?(d.isElement&&(d[e].prevEl.remove(),d[e].nextEl.remove()),w[e].prevEl=void 0,w[e].nextEl=void 0,d[e].prevEl=void 0,d[e].nextEl=void 0):(d.isElement&&d[e].el.remove(),w[e].el=void 0,d[e].el=void 0))};if(u.includes("loop")&&d.isElement&&(w.loop&&!p.loop?l=!0:!w.loop&&p.loop?a=!0:o=!0),v.forEach(e=>{if(z(w[e])&&z(p[e]))Object.assign(w[e],p[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in p[e]&&!p[e].enabled&&E(e);else{let t=p[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&E(e):w[e]=p[e]}}),v.includes("controller")&&!i&&d.controller&&d.controller.control&&w.controller&&w.controller.control&&(d.controller.control=w.controller.control),u.includes("children")&&c&&k&&w.virtual.enabled?(k.slides=c,k.update(!0)):u.includes("virtual")&&k&&w.virtual.enabled&&(c&&(k.slides=c),k.update(!0)),u.includes("children")&&c&&w.loop&&(o=!0),t){let e=C.init();e&&C.update(!0)}i&&(d.controller.control=w.controller.control),r&&(d.isElement&&(!m||"string"==typeof m)&&((m=document.createElement("div")).classList.add("swiper-pagination"),m.part.add("pagination"),d.el.appendChild(m)),m&&(w.pagination.el=m),b.init(),b.render(),b.update()),n&&(d.isElement&&(!g||"string"==typeof g)&&((g=document.createElement("div")).classList.add("swiper-scrollbar"),g.part.add("scrollbar"),d.el.appendChild(g)),g&&(w.scrollbar.el=g),y.init(),y.updateSize(),y.setTranslate()),s&&(d.isElement&&(h&&"string"!=typeof h||((h=document.createElement("div")).classList.add("swiper-button-next"),h.innerHTML=d.hostEl.constructor.nextButtonSvg,h.part.add("button-next"),d.el.appendChild(h)),f&&"string"!=typeof f||((f=document.createElement("div")).classList.add("swiper-button-prev"),f.innerHTML=d.hostEl.constructor.prevButtonSvg,f.part.add("button-prev"),d.el.appendChild(f))),h&&(w.navigation.nextEl=h),f&&(w.navigation.prevEl=f),x.init(),x.update()),u.includes("allowSlideNext")&&(d.allowSlideNext=p.allowSlideNext),u.includes("allowSlidePrev")&&(d.allowSlidePrev=p.allowSlidePrev),u.includes("direction")&&d.changeDirection(p.direction,!1),(l||o)&&d.loopDestroy(),(a||o)&&d.loopCreate(),d.update()}({swiper:b.current,slides:$,passedParams:_,changedParams:e,nextEl:k.current,prevEl:C.current,scrollbarEl:S.current,paginationEl:E.current}),()=>{Q()}}),H(()=>{D(b.current)},[h]),l.createElement(n,B({ref:w,className:R(`${p}${r?` ${r}`:""}`)},L),l.createElement(G.Provider,{value:b.current},Z["container-start"],l.createElement(s,{className:(void 0===(i=T.wrapperClass)&&(i=""),i)?i.includes("swiper-wrapper")?i:`swiper-wrapper ${i}`:"swiper-wrapper"},Z["wrapper-start"],T.virtual?function(e,t,i){if(!i)return null;let r=e=>{let i=e;return e<0?i=t.length+e:i>=t.length&&(i-=t.length),i},n=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${i.offset}px`}:{top:`${i.offset}px`},{from:s,to:a}=i,o=e.params.loop?-t.length:0,d=e.params.loop?2*t.length:t.length,c=[];for(let e=o;e<d;e+=1)e>=s&&e<=a&&c.push(t[r(e)]);return c.map((t,i)=>l.cloneElement(t,{swiper:e,style:n,key:t.props.virtualIndex||t.key||`slide-${i}`}))}(b.current,$,h):$.map((e,t)=>l.cloneElement(e,{swiper:b.current,swiperSlideIndex:t})),Z["wrapper-end"]),j(T)&&l.createElement(l.Fragment,null,l.createElement("div",{ref:C,className:"swiper-button-prev"}),l.createElement("div",{ref:k,className:"swiper-button-next"})),N(T)&&l.createElement("div",{ref:S,className:"swiper-scrollbar"}),F(T)&&l.createElement("div",{ref:E,className:"swiper-pagination"}),Z["container-end"]))});q.displayName="Swiper";let W=(0,l.forwardRef)(function(e,t){let{tag:i="div",children:r,className:n="",swiper:s,zoom:a,lazy:o,virtualIndex:d,swiperSlideIndex:c,...p}=void 0===e?{}:e,u=(0,l.useRef)(null),[h,f]=(0,l.useState)("swiper-slide"),[g,m]=(0,l.useState)(!1);function v(e,t,i){t===u.current&&f(i)}H(()=>{if(void 0!==c&&(u.current.swiperSlideIndex=c),t&&(t.current=u.current),u.current&&s){if(s.destroyed){"swiper-slide"!==h&&f("swiper-slide");return}return s.on("_slideClass",v),()=>{s&&s.off("_slideClass",v)}}}),H(()=>{s&&u.current&&!s.destroyed&&f(s.getSlideClasses(u.current))},[s]);let w={isActive:h.indexOf("swiper-slide-active")>=0,isVisible:h.indexOf("swiper-slide-visible")>=0,isPrev:h.indexOf("swiper-slide-prev")>=0,isNext:h.indexOf("swiper-slide-next")>=0},b=()=>"function"==typeof r?r(w):r;return l.createElement(i,B({ref:u,className:R(`${h}${n?` ${n}`:""}`),"data-swiper-slide-index":d,onLoad:()=>{m(!0)}},p),a&&l.createElement(Z.Provider,{value:w},l.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof a?a:void 0},b(),o&&!g&&l.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&l.createElement(Z.Provider,{value:w},b(),o&&!g&&l.createElement("div",{className:"swiper-lazy-preloader"})))});W.displayName="SwiperSlide"}}]);