class Utils{static phoneValidator={set:(e=!1,t={siteId:"ru",region:"ru",pattern:"+7 (___) ___-__-__",placeholder:"+7 (___) ___-__-__"})=>{if(!e)return!1;t.placeholder&&(e.placeholder=t.placeholder),e.value||(e.value=""),e._phoneValidator?(e._phoneValidator.params.siteId=t.siteId,e._phoneValidator.params.region=t.region,e._phoneValidator.params.pattern=t.pattern,e.value=""):new this.phoneValidator.processor(e,t)},destroy:e=>{e._phoneValidator&&(e.removeEventListener("input",e._phoneValidator.process),e.removeEventListener("focus",e._phoneValidator.process),e.removeEventListener("blur",e._phoneValidator.process),e.removeEventListener("keydown",e._phoneValidator.process),e.value="",delete e._phoneValidator)},processor:class{constructor(e,t={siteId:"ru",region:"ru",pattern:"+7 (___) ___-__-__"}){return this.input=e,this.params=t,this.set()}set(){return!(!this.input||"input"!=this.input.nodeName.toLowerCase())&&((this.input._phoneValidator=this).input.addEventListener("input",this.process,!1),this.input.addEventListener("focus",this.process,!1),this.input.addEventListener("blur",this.process,!1),this.input.addEventListener("keydown",this.process,!1),this.process({target:this.input}),this)}process(e){let t=!1;e.keyCode&&(t=e.keyCode);e.target.selectionStart<4&&("function"==typeof e.preventDefault&&e.preventDefault(),e.target.selectionStart=4);var i=this._phoneValidator??e.target._phoneValidator,r=i.params.pattern,a=0,o=r.replace(/\D/g,""),n=e.target.value.replace(/\D/g,""),s=r.replace(/[_\d]/g,function(e){return a<n.length?n.charAt(a++)||o.charAt(a):e}),l=(-1!=(a=s.indexOf("_"))&&("kz"===i.params.region?a<2&&(a=3):a<6&&(a=3),s=s.slice(0,a)),r.substr(0,e.target.value.length).replace(/_+/g,function(e){return"\\d{1,"+e.length+"}"}).replace(/[+()]/g,"\\$&"));(!(l=new RegExp("^"+l+"$")).test(e.target.value)||e.target.value.length<5||47<t&&t<58)&&(e.target.value=s),i.isFilled=r.length===e.target.value.length}}};static html={convertSpecialCharsBack:e=>e=e&&"string"==typeof e?(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"")).replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""):e,parseFromText:e=>(new DOMParser).parseFromString(e,"text/html").querySelector("body").childNodes,getFormValues:e=>{let t=(e,t,i)=>{let r=t;for(;-1!=r.indexOf("]");)r=r.replace("]","");r=r.split(/\s*\[\s*/);let a=e;return r.forEach((e,t)=>{a[e]=a[e]??{},t==r.length-1?a[e]=i:a=a[e]}),e},i={};var r=e.querySelectorAll("input"),r=(r&&r.forEach(e=>{""==e.name||e.dataset.not_for_sku||("checkbox"!=e.type&&"radio"!=e.type||1==e.checked)&&(i=t(i,e.name,e.value))}),e.querySelectorAll("select")),r=(r&&r.forEach(e=>{""!=e.name&&(i=t(i,e.name,e.value))}),e.querySelectorAll("textarea"));return r&&r.forEach(e=>{""!=e.name&&(i=t(i,e.name,e.value))}),i},replaceBlock(e,t){if("object"!=typeof e)return!1;switch(typeof t){case"string":t=Utils.html.parseFromText(t)[0];break;case"object":break;default:return!1}let i="";return t.classList.forEach(e=>{i+="."+e}),""!=i&&((e=e.querySelector(i))?t.dataset.hash&&e.dataset.hash&&t.dataset.hash==e.dataset.hash?e:e.parentNode.replaceChild(t,e):void 0)}};static object={checkIsChild:(e,t)=>{let i=!1;for(var r in t){var a;if("object"==typeof t[r]?(a=Utils.object.checkIsChild(e,t[r]),i=a||i):t[r]==e&&(i=!0),i)break}return i},setFields:(e,t,i={recursive:!1})=>{let r=!1;for(var a in void 0===t&&(t={},r=!0),e)switch(typeof t[a]){case"object":if(!0===i.recursive){this.object.setFields(e[a],t[a]);break}default:t[a]=e[a]}if(!0===r)return t}};static string={caseWordEndingProduct:(e,t,i)=>{if(!(10<=(e=parseInt(e))&&e<=19)){if(e%10==1)return t+i.product__declination_;if(2<=e%10&&e%10<=4)return t+i.product__declination_A}return t+i.product__declination_OV},formatNumber:(e,t="ru-RU")=>{void 0===e&&(e=0),t=t.replace("_","-");try{e=new Intl.NumberFormat(t,{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}catch(e){console.log(e)}return e}};static http={GET:{string:{del:(t,i)=>{let r="",a=t.indexOf("&"+i+"=");if(-1!==(a=-1===a?t.indexOf("?"+i+"="):a)){let e=-1;-1!==a&&-1===(e=t.indexOf("&",a+i.length))&&(e=t.indexOf("?",a+i.length)),-1!==a&&(r=t.substr(0,a),-1!=e)&&(r+=t.substr(e,t.length)),-1!==(r=-1!==(r=-1!==r.indexOf("&")&&-1===r.indexOf("?")?r.replace("&","?"):r).indexOf("&")&&-1!==r.indexOf("?")&&r.indexOf("&")<r.indexOf("?")?(r=r.replace("?","&")).replace("&","?"):r).indexOf(i)&&(r=Utils.http.GET.string.del(r,i))}else r=t;return r},set:(e,t,i)=>{let r="&";return-1===e.indexOf("?")&&(r="?"),e+=r+t+"="+i},getAll:t=>{let i={};try{if(-1!=t.indexOf("?")){let e=t.split("?");e[1]&&0<(e=e[1].split("&")).length&&e.forEach(e=>{e=e.split("="),i[e[0]]=e[1]||""})}}catch(e){console.log(e)}return i}}},request:{sendFormDataAsync:(t,i={})=>{event.preventDefault();var e=Utils.html.getFormValues(t);fetch(t.action,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json()).then(e=>{1==e.status?(t.querySelectorAll("input").forEach(e=>{"hidden"!=e.type&&(e.value="")}),i.suc&&"function"==typeof i.suc.f&&(i.suc.d?i.suc.f(i.suc.d):i.suc.f())):i.fa&&"function"==typeof i.fa.f&&(i.fa.d?i.fa.f(i.suc.d):i.fa.f())}).catch(e=>{console.log(e)})}}};static cookie={set:(e,t,i,r=!0)=>{let a="";i&&((o=new Date).setTime(o.getTime()+24*i*60*60*1e3),a="; expires="+o.toUTCString());var i=document.domain.match(/[^.]*\.[^.]{2,3}([^.]{2,3})?$/),o=r&&i?"; domain=."+i[0]:"";document.cookie=e+"="+(t||"")+a+o+"; path=/"},get:e=>{for(var t=e+"=",i=document.cookie.split(";"),r=0;r<i.length;r++){for(var a=i[r];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null},erase:e=>{document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}};dateTime={diff:(e,t)=>Math.abs(t-e),timestampParse:e=>{var t={m:0,d:0,H:0,i:0,s:0};return t.m=~~((e/=1e3)/2592e3),t.d=~~((e%=2592e3)/86400),t.H=~~((e%=86400)/3600),t.i=~~((e%=3600)/60),t.s=~~(e%=60),t},formatString:(e,t=0)=>{let i="",r=(0<e.m&&(i+=e.m+glLang.months),0<(0<e.d||e.m)&&(i+=e.d+glLang.days),!1),a=!1;return void 0!==e.H&&(i=i?" ":"",i+=e.H.toString().padStart(2,0),r=!0),void 0!==e.i&&(i=(i=(i+=r?":":"")+(i&&!r?" ":""))+e.i.toString().padStart(2,0),a=!0),i=void 0!==e.s?(i=(i+=a?":":"")+(i&&!a?" ":""))+e.s.toString().padStart(2,0):i}};static iMissYou(e){this.iMY.opts=e,this.iMY.favicon=document.head.querySelector('link[rel="icon"]'),this.iMY.appleFavicon=document.head.querySelector('link[rel="apple-touch-icon"]'),this.iMY.originalFavicon=this.iMY.favicon.href,this.iMY.originalAppleFavicon=this.iMY.appleFavicon.href,this.iMY.faviconLink=this.iMY.favicon.href,this.iMY.originalTitle=document.title,document.addEventListener("visibilitychange",e=>{document.hidden?(this.iMY.originalTitle=document.title,document.title=this.iMY.opts.title):document.title=this.iMY.originalTitle,this.iMY.opts.favicon.enabled&&(document.hidden?this.iMY.chFavicon():this.iMY.revertFavicon())}),this.iMY.chFavicon=()=>{this.iMY.favicon.href=this.iMY.opts.favicon.src,this.iMY.appleFavicon.href=this.iMY.opts.favicon.src},this.iMY.revertFavicon=()=>{this.iMY.favicon.href=this.iMY.originalFavicon,this.iMY.appleFavicon.href=this.iMY.originalAppleFavicon}}static youtube={getLink:e=>{if(!e)return"";let t="";return e=(e=(e=e.replace("https://","")).replace("http://","")).replace("www.",""),(t=-1!==e.indexOf("youtu.be/")?e.replace("youtu.be/",""):-1!==e.indexOf("youtube.com/embed/")?(e=(e=e.replace("youtube.com/embed/","")).split("?"))[0]:-1!==e.indexOf("youtube.com/watch?v=")?e.replace("youtube.com/watch?v=",""):e)?"https://www.youtube.com/embed/"+t:""},getIframe:(e,t={className:""})=>{return!!(e=Utils.youtube.getLink(e))&&Utils.html.parseFromText(`<iframe class="${t.className}" style="
    display: block;
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;" src="${e}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; controls" allowfullscreen></iframe>`)}};static user={browser:{isSafari:()=>navigator.vendor&&-1<navigator.vendor.indexOf("Apple")&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS")},device:{isApple:()=>/iPhone|iPad|iPod/i.test(navigator.userAgent)}};static parseNodeFromText=Utils.html.parseFromText;static replaceBlock=Utils.html.replaceBlock;static setFieldsObject=Utils.object.setFields}
function MD5(r){function f(r,n,t,e,o,u){return v((n=v(v(n,r),v(e,u)))<<o|n>>>32-o,t)}function g(r,n,t,e,o,u,c){return f(n&t|~n&e,r,n,o,u,c)}function l(r,n,t,e,o,u,c){return f(n&e|t&~e,r,n,o,u,c)}function A(r,n,t,e,o,u,c){return f(n^t^e,r,n,o,u,c)}function C(r,n,t,e,o,u,c){return f(t^(n|~e),r,n,o,u,c)}function v(r,n){var t=(65535&r)+(65535&n);return(r>>16)+(n>>16)+(t>>16)<<16|65535&t}return r=unescape(encodeURIComponent(r)),(result=function(r){for(var n,t="0123456789ABCDEF",e="",o=0;o<r.length;o++)n=r.charCodeAt(o),e+=t.charAt(n>>>4&15)+t.charAt(15&n);return e}(function(r){for(var n="",t=0;t<32*r.length;t+=8)n+=String.fromCharCode(r[t>>5]>>>t%32&255);return n}(function(r,n){r[n>>5]|=128<<n%32,r[14+(n+64>>>9<<4)]=n;for(var t=1732584193,e=-271733879,o=-1732584194,u=271733878,c=0;c<r.length;c+=16){var f=t,a=e,h=o,i=u;e=C(e=C(e=C(e=C(e=A(e=A(e=A(e=A(e=l(e=l(e=l(e=l(e=g(e=g(e=g(e=g(e,o=g(o,u=g(u,t=g(t,e,o,u,r[c+0],7,-680876936),e,o,r[c+1],12,-389564586),t,e,r[c+2],17,606105819),u,t,r[c+3],22,-1044525330),o=g(o,u=g(u,t=g(t,e,o,u,r[c+4],7,-176418897),e,o,r[c+5],12,1200080426),t,e,r[c+6],17,-1473231341),u,t,r[c+7],22,-45705983),o=g(o,u=g(u,t=g(t,e,o,u,r[c+8],7,1770035416),e,o,r[c+9],12,-1958414417),t,e,r[c+10],17,-42063),u,t,r[c+11],22,-1990404162),o=g(o,u=g(u,t=g(t,e,o,u,r[c+12],7,1804603682),e,o,r[c+13],12,-40341101),t,e,r[c+14],17,-1502002290),u,t,r[c+15],22,1236535329),o=l(o,u=l(u,t=l(t,e,o,u,r[c+1],5,-165796510),e,o,r[c+6],9,-1069501632),t,e,r[c+11],14,643717713),u,t,r[c+0],20,-373897302),o=l(o,u=l(u,t=l(t,e,o,u,r[c+5],5,-701558691),e,o,r[c+10],9,38016083),t,e,r[c+15],14,-660478335),u,t,r[c+4],20,-405537848),o=l(o,u=l(u,t=l(t,e,o,u,r[c+9],5,568446438),e,o,r[c+14],9,-1019803690),t,e,r[c+3],14,-187363961),u,t,r[c+8],20,1163531501),o=l(o,u=l(u,t=l(t,e,o,u,r[c+13],5,-1444681467),e,o,r[c+2],9,-51403784),t,e,r[c+7],14,1735328473),u,t,r[c+12],20,-1926607734),o=A(o,u=A(u,t=A(t,e,o,u,r[c+5],4,-378558),e,o,r[c+8],11,-2022574463),t,e,r[c+11],16,1839030562),u,t,r[c+14],23,-35309556),o=A(o,u=A(u,t=A(t,e,o,u,r[c+1],4,-1530992060),e,o,r[c+4],11,1272893353),t,e,r[c+7],16,-155497632),u,t,r[c+10],23,-1094730640),o=A(o,u=A(u,t=A(t,e,o,u,r[c+13],4,681279174),e,o,r[c+0],11,-358537222),t,e,r[c+3],16,-722521979),u,t,r[c+6],23,76029189),o=A(o,u=A(u,t=A(t,e,o,u,r[c+9],4,-640364487),e,o,r[c+12],11,-421815835),t,e,r[c+15],16,530742520),u,t,r[c+2],23,-995338651),o=C(o,u=C(u,t=C(t,e,o,u,r[c+0],6,-198630844),e,o,r[c+7],10,1126891415),t,e,r[c+14],15,-1416354905),u,t,r[c+5],21,-57434055),o=C(o,u=C(u,t=C(t,e,o,u,r[c+12],6,1700485571),e,o,r[c+3],10,-1894986606),t,e,r[c+10],15,-1051523),u,t,r[c+1],21,-2054922799),o=C(o,u=C(u,t=C(t,e,o,u,r[c+8],6,1873313359),e,o,r[c+15],10,-30611744),t,e,r[c+6],15,-1560198380),u,t,r[c+13],21,1309151649),o=C(o,u=C(u,t=C(t,e,o,u,r[c+4],6,-145523070),e,o,r[c+11],10,-1120210379),t,e,r[c+2],15,718787259),u,t,r[c+9],21,-343485551),t=v(t,f),e=v(e,a),o=v(o,h),u=v(u,i)}return Array(t,e,o,u)}(function(r){for(var n=Array(r.length>>2),t=0;t<n.length;t++)n[t]=0;for(t=0;t<8*r.length;t+=8)n[t>>5]|=(255&r.charCodeAt(t/8))<<t%32;return n}(r),8*r.length)))).toLowerCase()}
class HeaderFooterHandler{#requestURL="/local/action/header.php";H=document.querySelector("header");F=document.querySelector("footer");constructor(e={}){this._main=e._main,this._parent=e._parent,this.init.full(),this.init.unknownFunctions()}functionality={topBannerClosing:()=>{const t=this.H.querySelector('[data-banner="main"]');t&&t.addEventListener("click",e=>{e.target.closest('[data-banner="close"]')&&(Utils.cookie.set("headertopbannerwasclosed","Y",.5),t.remove(),delete this.PP.headerBanner,this.PP.contentMain.node.classList.remove("margin_banner"),setTimeout(()=>{this.positions.setMainPadding(),this.positions.setMenuPadding(),this.positions.setHeaderPadding()},100))})},burger:()=>{var e=[];this.PP.mobileBurger&&e.push(this.PP.mobileBurger.node);let t;this.PP.mobileNavbar&&(t=this.PP.mobileNavbar.node.querySelector('[data-popup="burger"]'))&&e.push(t),e.forEach(e=>{e.addEventListener("click",e=>{let t=0;var o;this.PP.bxPanel.node&&(o=this.PP.bxPanel.node.getBoundingClientRect(),(t=o.height+o.top)<0)&&(t=0),this.PP.mobileMenu.node.querySelector(".header-mobile-submenu.active")&&this.PP.mobileMenu.node.querySelector(".header-mobile-submenu.active").classList.remove("active"),this.PP.mobileBurger.node.classList.toggle("active"),this.PP.mobileMenu.node.classList.toggle("active"),this.H.classList.toggle("active"),this.H.classList.toggle("fixed"),document.body.classList.add("no-scroll"),this.PP.mobileBurger.node.classList.contains("active")||document.body.classList.remove("no-scroll"),this.folding.scrollUpMob(t)})})},countryDropChange:()=>{this.H.querySelector(".header__top-country")&&this.H.querySelectorAll(".header__top-country").forEach(e=>{e.addEventListener("click",e=>{e.target.closest(".header__top-country-wrapper").parentNode.querySelector(".header__top-countryList").classList.toggle("active")})})},showPhoneNumber:()=>{this.H.querySelectorAll(".header__numbers").forEach(e=>{let t=e.querySelector(".header__number"),o=e.querySelector(".header__number--hide");t&&o&&t.addEventListener("click",e=>{e.preventDefault(),o.style.width=t.offsetWidth+"px",t.style.display="none",o.style.display="block",this._main.h.metrics.userExp("showPhone")})})},scrollTopBtn:()=>{if(this.pageParts.nodes.scrollTopBtn){let o=this.pageParts.nodes.scrollTopBtn.node;window.addEventListener("scroll",e=>{var t=document.documentElement.scrollHeight-window.innerHeight;window.pageYOffset>t-600&&1201<=window.innerWidth||window.pageYOffset>t-950&&window.innerWidth<1201&&959<window.innerWidth||window.pageYOffset>t-400&&window.innerWidth<=959&&768<window.innerWidth?o.classList.add("fixed-footer"):o.classList.remove("fixed-footer"),1e3<window.pageYOffset?o.classList.add("active"):o.classList.remove("active")}),o.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})})}},footerMenuFolding:()=>{this.F&&this.F.querySelectorAll('[data-accordion="btn"]').forEach(t=>{t.addEventListener("click",e=>{e=e.target.closest('[data-accordion=""]');e&&(e.classList.toggle("active"),t.classList.toggle("active"))})})},headerMenuBtn:()=>{let t=this.H.querySelector(".header__all-products"),o=this.H.querySelector(".products");t&&t.addEventListener("click",e=>{e.preventDefault(),o.classList.toggle("hidden"),t.classList.toggle("active"),document.body.classList.add("no-scroll"),o.classList.contains("hidden")&&(document.body.style.marginRight="",document.body.classList.remove("no-scroll")),this._main.h.metrics.userExp(t.classList.contains("active")?"openMainMenu":"closeMainMenu")})},topMenuGorizontalScroll:()=>{let o=document.querySelector(".header__menu");!o||o.scrollWidth<=o.offsetWidth||(o.addEventListener("mousewheel",e=>{e=window.event||e;var t=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail));o.scrollLeft-=25*t,e.preventDefault()},!1),o.onmousedown=()=>{let t=0;document.onmousemove=e=>{0!==t&&(o.scrollLeft=o.scrollLeft+(t-e.pageX)),t=e.pageX},document.onmouseup=()=>{document.onmousemove=null},o.ondragstart=()=>!1})},headerSearch:()=>{(this.PP.headerFixed?this.PP.headerFixed.node.querySelectorAll(".header__top-search-field"):[]).forEach(t=>{["touchstart","mousedown"].forEach(e=>{t.addEventListener(e,()=>{this._main.h.metrics.userExp("clickToSearch")})})}),this._main.sd.search&&this._main.h.search&&this._main.h.search.init({inputs:this.PP.headerFixed?this.PP.headerFixed.node.querySelectorAll(".header__top-search-field"):[]})},headerContacts:()=>{this.PP.headerTop.node.querySelectorAll(".header__contacts-wrap span a").forEach(t=>{t.addEventListener("click",e=>{-1!==t.href.indexOf("wa.me")&&this._main.h.metrics.userExp("clickWhatsAppHeader")})})},navbarUserMenu:()=>{var e=document.querySelectorAll('[data-popup="personal-account-menu"]');if(0<e.length)for(var t of e)t.mobileUsetMenuEventWasSet||(t.mobileUsetMenuEventWasSet=!0,t.addEventListener("click",e=>{this.mobileUserMenu.load(e.target.closest("button"))}))},footerContactMedia:()=>{this.F&&this.F.querySelectorAll(".footer__contact-mediaLink").forEach(t=>{t.addEventListener("click",e=>{t.href.includes("facebook")?this._main.h.metrics.userExp("clickOnFooterFacebookLink"):t.href.includes("instagram")&&this._main.h.metrics.userExp("clickOnFooterInstagramLink")})})},footerCountries:()=>{var e;this.F&&(e=this.F.querySelector(".footer__countries"))&&e.querySelectorAll(".footer__link").forEach(e=>{e.addEventListener("click",()=>{this._main.h.metrics.userExp("clickOnFooterCountries")})})},init:()=>{this.functionality.scrollTopBtn(),this.functionality.countryDropChange(),this.functionality.burger(),this.functionality.topBannerClosing(),this.functionality.showPhoneNumber(),this.functionality.footerMenuFolding(),this.functionality.headerMenuBtn(),this.functionality.topMenuGorizontalScroll(),this.functionality.navbarUserMenu(),this.functionality.footerContactMedia(),this.functionality.footerCountries(),!0!==this._main.const("isBot")&&(this.functionality.headerSearch(),this.functionality.headerContacts())}};init={unknownFunctions:()=>{document.addEventListener("click",e=>{var t=e.target.closest(".header-mobile__wrapper"),e=e.target.closest(".header-mobile__link--back");t&&((t=t.querySelector(".header-mobile-submenu"))&&t.classList.add("active"),e)&&e.closest(".header-mobile-submenu").classList.remove("active")})},full:()=>{!0!==this._main.const("isBot")&&(this.pageParts.get(),this.controlButtons.init(),this.additionsPageParts.buildAdditionsWrapper(),this.folding.bitrixPanelHandler(),this.folding.setHeaderFolding(),this.folding.resizeWindow(),this.functionality.init(),this.positions.setMenuPadding(),this.positions.setMainPadding(),this.positions.setHeaderPadding())}};pageParts={nodes:{},nodesList:{headerFixed:this.H,headerBanner:this.H.querySelector(".banner"),headerTop:this.H.querySelector(".header__top"),headerBottomDesktop:this.H.querySelector(".header__inner"),headerMenuFooterMobile:this.H.querySelector(".header-mobile__footer"),contentMain:document.querySelector("main"),bxPanelWrapper:document.querySelector(".bxpanel"),headerMobSearch:this.H.querySelector(".header__top-search--mobile"),mobileNavbar:this.H.querySelector(".mobile-menu"),mobileMenu:this.H.querySelector(".header-mobile__menu"),mobileMenuItemsWrp:this.H.querySelector(".header-mobile__box"),mobileBurger:this.H.querySelector(".header-mobile__burger"),scrollTopBtn:this.H.querySelector(".scroll-top")},get:(e=!1)=>{let t=e?!1:!0;if(e){for(var o in e)this.pageParts.nodes[o]={node:e[o]};this.pageParts.calcStyles(this.pageParts.nodes[n])}else{for(var s in this.pageParts.nodesList)this.pageParts.nodes[s]={node:this.pageParts.nodesList[s]};this.pageParts.calcStyles(),this.pageParts.getBxPanel(t)}},getBxPanel:e=>{e&&(this.PP.bxPanel={node:this.PP.bxPanelWrapper.node.querySelector("#bx-panel"),blockHeight:this.PP.bxPanelWrapper.node.offsetHeight,posTop:this.PP.bxPanelWrapper.node.scrollTop},this.PP.bxPanel.node)&&(this.PP.bxPanel.sizes=this.PP.bxPanel.node.getBoundingClientRect(),this.PP.bxPanel.isFixed=!!this.PP.bxPanel.node.classList.contains("bx-panel-fixed"))},calcStyles:(e=!1)=>{let o=e=>{e.blockHeight=e.node.offsetHeight;var t=window.getComputedStyle(e.node,null);e.style={paddingTop:t.paddingTop,paddingBottom:t.paddingBottom,margin:t.margin,zIndex:t.zIndex}};for(var s in this.pageParts.nodes)if(!1===e||e==s)if(this.pageParts.nodes[s]&&this.pageParts.nodes[s].node){let t=this.pageParts.nodes[s];"headerBanner"===s?t.node.querySelectorAll("img.banner__img").forEach(e=>{e.complete&&0!==e.naturalHeight?o(t):e.onload=()=>{o(t),this.positions.setMainPadding()}}):o(t)}else delete this.pageParts.nodes[s];this.PP=this.pageParts.nodes},removeStyles:()=>{for(var e in this.pageParts.nodesList)this.pageParts.nodesList[e]&&this.pageParts.nodesList[e].hasAttribute("style")&&this.pageParts.nodesList[e].removeAttribute("style")},add:(e,t)=>{this.pageParts.get({[t]:{node:e}})}};additionsPageParts={nodes:{},buildAdditionsWrapper:()=>{},add(e,t){var o,s;for(o in s=this.pageParts.get({[t]:{node:e}}))this.additionsPageParts.nodes[o]=s[o];this.additionsPageParts.buildAdditionsWrapper()}};folding={bitrixPanelHandler:()=>{var e=document.querySelector("#bx-panel-hider"),t=document.querySelector("#bx-panel-expander"),o=document.querySelector("#bx-panel-pin");e&&e.addEventListener("click",()=>{setTimeout(()=>{this.PP.bxPanel.blockHeight=this.PP.bxPanel.node.offsetHeight},100)}),t&&t.addEventListener("click",()=>{setTimeout(()=>{this.PP.bxPanel.blockHeight=this.PP.bxPanel.node.offsetHeight},100)}),o&&o.addEventListener("click",()=>{setTimeout(()=>{this.PP.bxPanel.node.classList.contains("bx-panel-fixed")?this.PP.bxPanel.isFixed=!0:this.PP.bxPanel.isFixed=!1,this.PP.bxPanel.sizes=this.PP.bxPanel.node.getBoundingClientRect()},100)})},scrollUpDesk:e=>{this.PP.headerBottomDesktop&&this.PP.headerBottomDesktop.node&&(this.scrollUpWasHandled&&!this.PP.bxPanel.node||(this.scrollUpWasHandled=!0,this.scrollDownWasHandled=!1,this.PP.headerBottomDesktop.node.style.height=this.PP.headerBottomDesktop.blockHeight+"px",this.PP.headerBottomDesktop.node.style.paddingTop=this.PP.headerBottomDesktop.style.paddingTop,this.PP.headerBottomDesktop.node.style.paddingBottom=this.PP.headerBottomDesktop.style.paddingBottom,this.PP.headerBottomDesktop.node.style.opacity="1",this.PP.headerTop.node.style.top="0px",this.PP.headerTop.node.style.paddingBottom=this.PP.headerTop.style.paddingBottom,this.PP.headerBanner&&(this.PP.headerBanner.node.style.height=this.PP.headerBanner.blockHeight+"px"),this.PP.headerBottomDesktop&&(this.PP.headerBottomDesktop.node.style.overflowY=""),this.PP.headerFixed.node.style.top=e+"px",this.PP.headerBanner&&this.PP.headerBanner.node&&(this.PP.headerBanner.node.style.top="0px",this.PP.headerTop.node.style.top="0px",this.PP.headerFixed.node.style.pos="0px")))},scrollDownDesk:e=>{this.PP.headerBottomDesktop&&this.PP.headerBottomDesktop.node&&(this.scrollDownWasHandled&&!this.PP.bxPanel.node||(this.scrollDownWasHandled=!0,this.scrollUpWasHandled=!1,this.PP.headerBottomDesktop.node.style.height="0px",this.PP.headerBottomDesktop.node.style.paddingTop="0px",this.PP.headerBottomDesktop.node.style.paddingBottom="0px",this.PP.headerBottomDesktop.node.style.opacity="0",this.PP.headerTop.node.style.paddingBottom="10px",this.PP.headerBottomDesktop&&(this.PP.headerBottomDesktop.node.style.overflowY="hidden"),this.PP.headerBanner&&(this.PP.headerBanner.node.style.height="0px"),this.PP.headerFixed.node.style.top=e+"px",this.additionsBlock&&(this.PP.headerTop.node.style.paddingBottom="12px")))},scrollUpMob:e=>{this.PP.headerMobSearch&&this.PP.headerMobSearch.node&&(this.scrollUpWasHandled&&!this.PP.bxPanel.node||(this.scrollUpWasHandled=!0,this.scrollDownWasHandled=!1,this.PP.headerMobSearch.node.style.top="0px",this.PP.headerMobSearch.node.style.height=this.PP.headerMobSearch.blockHeight+"px",this.PP.headerMobSearch.node.style.paddingBottom=this.PP.headerMobSearch.style.paddingBottom,this.PP.headerMobSearch.node.style.margin=this.PP.headerMobSearch.style.margin,this.PP.headerMobSearch.node.style.zIndex=this.PP.headerMobSearch.style.zIndex,this.PP.mobileMenu.node.style.top=`${this.PP.headerBanner?this.PP.headerBanner.blockHeight+e:e}px`,this.PP.headerBanner&&(this.PP.headerBanner.node.style.height=this.PP.headerBanner.blockHeight+"px"),this.PP.headerFixed.node.style.top=e+"px"))},scrollDownMob:e=>{this.PP.headerMobSearch&&this.PP.headerMobSearch.node&&(this.scrollDownWasHandled&&!this.PP.bxPanel.node||(this.scrollDownWasHandled=!0,this.scrollUpWasHandled=!1,this.PP.headerMobSearch.node.style.top="-"+this.PP.headerMobSearch.blockHeight+"px",this.PP.headerMobSearch.node.style.height="0px",this.PP.headerMobSearch.node.style.margin="0px",this.PP.headerMobSearch.node.style.zIndex="0",this.PP.headerBanner&&(this.PP.headerBanner.node.style.height="0px"),this.PP.headerBanner&&(this.PP.mobileMenu.node.style.top="-"+this.PP.headerBanner.blockHeight+"px"),this.PP.headerFixed.node.style.top=e+"px"))},setHeaderFolding:()=>{window.addEventListener("scroll",()=>{if(this.resize)setTimeout(()=>{this.resize=!1},300);else{let e=0;var t;this.PP.bxPanel.node&&(t=this.PP.bxPanel.node.getBoundingClientRect(),(e=t.height+t.top)<0)&&(e=0),this.PP.contentMain.node.querySelector(".order-info")&&(this.PP.contentMain.node.querySelector(".order-info").style.top=this.H.offsetHeight+"px"),768<window.innerWidth?window.innerHeight/2>window.scrollY?this.folding.scrollUpDesk(e):this.folding.scrollDownDesk(e):window.innerHeight/2>window.scrollY?this.folding.scrollUpMob(e):this.folding.scrollDownMob(e),window.lastScrollPos=window.scrollY}})},resizeWindow:()=>{window.addEventListener("resize",e=>{this.pageParts.removeStyles(),setTimeout(()=>{this.pageParts.get(),this.positions.setMenuPadding(),this.positions.setMainPadding(),this.positions.setHeaderPadding()},250),this.resize=!0,this.scrollUpWasHandled=!1,this.scrollDownWasHandled=!1})}};positions={setHeaderPadding:()=>{let e=0;var t;this.PP.bxPanel.node&&(t=this.PP.bxPanel.node.getBoundingClientRect(),(e=t.height+t.top)<0)&&(e=0),this.PP.headerFixed.node.style.top=e+"px"},setMainPadding:()=>{this.PP.contentMain.node.style.paddingTop=this.H.offsetHeight+"px"},setMenuPadding:()=>{if(this.PP.headerMenuFooterMobile&&(this.PP.headerMenuFooterMobile.node.style.paddingBottom=parseInt(this.PP.mobileNavbar.blockHeight)+50+(this.PP.headerBanner?this.PP.headerBanner.node.offsetHeight:"")+"px"),this.PP.mobileMenu){let e=0;var t;this.PP.bxPanel.node&&(t=this.PP.bxPanel.node.getBoundingClientRect(),(e=t.height+t.top)<0)&&(e=0),this.PP.mobileMenu.node.style.top=`${this.PP.headerBanner?this.PP.headerBanner.node.offsetHeight+e:e}px`}this.PP.mobileMenuItemsWrp&&(this.PP.mobileMenuItemsWrp.node.style.bottom=this.PP.headerMenuFooterMobile.blockHeight+"px")}};controlButtons={getGiftIcon:()=>{return`
            <svg class="gift-icon">
                <use href="${this._main.sd.siteConsts.templateConsts.iconsPath}/icons.svg#gift"></use>
            </svg>`},create:()=>{},init:()=>{var e=this.H.querySelectorAll("[data-control-btn]"),t=this.PP.contentMain.node.querySelectorAll("[data-control-btn]");(e=[...e,...t]).forEach(e=>{let o=e.dataset.controlBtn;e.controlId=o,e.counters=e.querySelectorAll(".header__top-buttons__item-counter, .navbar__elem-counter, .account-menu-list__counter, .cabinet-menu__badge"),e.setCount=t=>{return this.controlButtons[o].counters.forEach(e=>{e.innerText=parseFloat(t)}),!0},e.removeAttribute("data-control-btn"),this.controlButtons[o]=e})},set:{favorites:(e=!1)=>{e=e||this._main.h.favorites.count,this.controlButtons.fv&&this.controlButtons.fv.setCount(e),this.controlButtons.fv_nvbr&&this.controlButtons.fv_nvbr.setCount(e),this.controlButtons.mm_fv&&this.controlButtons.mm_fv.setCount(e),this.controlButtons.lk_fav&&this.controlButtons.lk_fav.setCount(e)},cart:(o=!1,s={gift:!1})=>{setTimeout(()=>{if(!o)try{o=this._main.h.basket.count}catch(e){console.log(e)}if(!s.gift)try{var e=this._main.h.basket.basketData;s.gift=this._main.h.basket.checkIsAvailableGifts(e)}catch(e){console.log(e)}var t;this.controlButtons.crt&&(e=this.controlButtons.crt.querySelector(".gift-icon"),this.controlButtons.crt.setCount(o),s.gift?(t=this.controlButtons.crt.querySelector(".header__top-icon"),e||t.insertAdjacentHTML("afterend",this.controlButtons.getGiftIcon())):e&&e.remove()),this.controlButtons.crt_nvbr&&(this.controlButtons.crt_nvbr.setCount(o),t=this.controlButtons.crt_nvbr.querySelector(".gift-icon"),s.gift?(e=this.controlButtons.crt_nvbr.querySelector(".mobile-menu__icon"),t||e.insertAdjacentHTML("beforebegin",this.controlButtons.getGiftIcon())):t&&t.remove()),this.controlButtons.lk_crt&&this.controlButtons.lk_crt.setCount(o)},500)},compare:(e=!1)=>{e=e||this._main.h.compare.count,this.controlButtons.cmp&&this.controlButtons.cmp.setCount(e),this.controlButtons.mm_cmp&&this.controlButtons.mm_cmp.setCount(e),this.controlButtons.lk_cmp&&this.controlButtons.lk_cmp.setCount(e)}},reset:()=>{for(var e in this.controlButtons.set)this.controlButtons.set[e](!1)}};mobileUserMenu={popupId:"personal-account-menu",load:(e=!1)=>{1!=e.popupStatusActive&&(event.preventDefault(),e=this.getRequestData("loadUserMobileMenu",{}),this.request(e,e=>{let t=document.querySelector("#"+this.mobileUserMenu.popupId);t&&t.parentNode.removeChild(t),e.data.html?(e=Utils.html.parseFromText(e.data.html),this.H.insertAdjacentElement("beforeEnd",e[0]),this._main.h.popups.init(),this._main.h.modals.init(),this.controlButtons.init(),this.controlButtons.reset(),this._main.h.popups.p[this.mobileUserMenu.popupId].removeAfterClosing=!1,setTimeout(()=>{this._main.h.popups.p[this.mobileUserMenu.popupId]&&!t&&this._main.h.popups.p[this.mobileUserMenu.popupId].open(this._main.h.popups)},50)):this._main.iw.show.smallWindow("Произошла ошибка при загрузке")}))}};getRequestData(e,t){return!!e&&(t.site_id=this._main.const("siteId"),t.action=e="loadUserMobileMenu"!==e?!1:e,t)}request(e,t=!1){fetch(this.#requestURL,{headers:{"Content-Type":"multipart/form-data"},method:"POST",body:JSON.stringify(e)}).then(e=>e.json()).then(e=>{t&&t(e),0==e.status&&this._main.iw.show.smallWindow(""+this._main.gm("req_err_load")+(e.message?": "+e.message:""))}).catch(e=>{console.log(e),this._main.iw.show.smallWindow(this._main.gm("req_err_retry"))})}}
class SearchHandler{constructor(t,e){this._main=e._main,this._parent=e._parent}search={searchInit:!1};h={react:!1};init(t={inputs:[]}){let i=this._main.sd.search?.modalId;i&&(this.init.initializedInputs=this.init.initializedInputs??[],t.inputs.forEach(e=>{-1===this.init.initializedInputs.indexOf(e)&&(["touchstart","mousedown"].forEach(t=>{e.addEventListener(t,()=>{this._main.h.metrics.userExp("clickToSearch")})}),"object"==typeof this._main.h.modals.events.onOpen&&(this._main.h.modals.events.onOpen.add(i,{fn:()=>{this._main.h.search.h.react.search.setState({query:e.value,focus:!0}),this._main.h.search.action.search({query:e.value})}}),this._main.h.modals.events.onClose.add(i,{fn:()=>{var t=this._main.h.modals.mod[i].querySelector(".search__input");e.value=t.value}})),e.addEventListener("keyup",t=>{this._main.h.modals.mod[i].isOpened||this._main.h.modals.mod[i].o(i),this._main.h.search.h.react.search.setState({query:t.target.value,focus:!0})}))}))}action={searchTimer:!1,search:(e={})=>{this.action.searchTimer&&clearTimeout(this.action.searchTimer),this.action.searchTimer=setTimeout(()=>{var t=this.getRequestData({query:e.query});this.request(t,t=>{0==t.status?this.h.react.search.setState({itemsList:[]}):this.h.react.search.setState({itemsList:t.data})})},500)}};getRequestData(t={}){return t.siteId=t.siteId??this._main.const("siteId"),t.limit=t.limit??50,t.action=t.action??"search",t}request(t,e=!1){fetch("/local/action/search.php",{headers:{"Content-Type":"text/html"},method:"POST",body:JSON.stringify(t)}).then(t=>t.json()).then(t=>{"function"==typeof e&&e(t)}).catch(t=>{console.log(t)})}}
class SelectLangSite{constructor(e={}){this._main=e._main,this._parent=e._parent,this.init.full()}init={dropdownList:()=>{document.querySelectorAll(".lang-select").forEach(e=>{e&&new TomSelect(e,{controlInput:null,render:{option:function(e,t){return`<div><img class="me-2" src="${e.src}">${e.text}</div>`},item:function(e,t){return`<div><img class="me-2" src="${e.src}">${e.text}</div>`}}})})},setEventHandler:()=>{document.querySelectorAll(".header__top-country-wrapper").forEach(e=>{e.querySelectorAll("button[data-lang-id]").forEach(e=>{let t=e.dataset.langId;e.removeAttribute("data-lang-id"),this._main.const("siteLangVersion")!=t&&e.addEventListener("click",()=>{this.setSiteLang(t)})})})},full:()=>{this.init.dropdownList(),this.init.setEventHandler()}};setSiteLang(e){location.href=this.replaceQueryParam("user_lang",e,window.location.search),this._main.h.metrics.userExp("selectSiteLanguage",e),this._main.h.metrics.changeRegion(e)}replaceQueryParam(e,t,n){var r=new RegExp("([?;&])"+e+"[^&;]*[;&]?"),n=n.replace(r,"$1").replace(/&$/,"");return(2<n.length?n+"&":"?")+(t?e+"="+t:"")}}
class Favorites{favoritesList={};countItems=0;constructor(t=0,a={}){this.requestURL="/local/action/fav.php",this._main=a._main,this._parent=a._main,this._main.const("isBot")||document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{this.get(!1,{isInitial:!0})},500)})}set count(t){this.countItems=parseInt(t),this._main.h.hf.controlButtons.set.favorites(this.count)}get count(){return this.countItems}add(t,a={blockName:"",callbackFn:!1}){this.request({id:t,action:"add"},a)}remove(t,a={blockName:"",callbackFn:!1}){this.request({id:t,action:"remove"},a)}clearAll(t=!1){this.request({action:"clearAll"},{callbackFn:t})}get(t=!1,a={isInitial:!1}){var i={action:"get"};if(a.isInitial){a=this._main.ls.get("FavoritesLastResponse"+this._main.const("siteId"));if(a)return void this.refresh(i,a,{callbackFn:t})}this.request(i,{callbackFn:t})}request(a={},i={}){var t={site_id:this._main.const("siteId"),id:a.id,action:a.action};i.blockName=i.blockName??"",i.callbackFn="function"==typeof i.callbackFn&&i.callbackFn,fetch(this.requestURL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>t.json()).then(t=>{this.refresh(a,t,i),delete t.message,this._main.ls.set("FavoritesLastResponse"+this._main.const("siteId"),t)}).catch(t=>{console.log(t)})}refresh(t={},a=!1,i={}){if("object"==typeof a&&!0===a.status){if(this.favoritesList=a.data,i.callbackFn&&"function"==typeof i.callbackFn)try{i.callbackFn(a)}catch(t){console.log(t)}switch(this.procAll(a),this.setCount(a),t.action){case"get":break;case"add":try{this._main.h.metrics.changeFavorites("add",t.id,{blockName:i.blockName},a.dataDetailed)}catch(t){console.log(t)}default:this._main.iw.show.smallWindow(a.message)}}}procAll(t){if(1==t.status){for(var a in window.prodBlocks)try{window.prodBlocks[a].h.fav.procAll&&window.prodBlocks[a].h.fav.procAll(t.data)}catch(t){console.log("Favorites: error in "+a,t)}for(var i in this._main.catH)try{this._main.catH[i].h.fav&&this._main.catH[i].h.fav.procAll&&this._main.catH[i].h.fav.procAll(t.data)}catch(t){console.log("Favorites: error in "+i,t)}}else this._main.iw.show.smallWindow(this._main.const("favorites_load_error"))}setCount(a){if(void 0!==this._main.h.hf){let t=0;for(var i in a.data)t+=Object.keys(a.data[i]).length;this.count=t}}}
class Compare{countItems=0;constructor(t=0,a={}){this._main=a._main,this._parent=a._parent,this.requestURL="/local/action/compare.php",document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{this.get(!1,{isInitial:!0})},500)})}set count(t){this.countItems=parseInt(t),this._main.h.hf.controlButtons.set.compare(this.count)}get count(){return this.countItems}add(t,a={blockName:"",callbackFn:!1}){this.request({id:t,action:"add"},a)}remove(t,a={blockName:"",callbackFn:!1}){this.request({id:t,action:"remove"},a)}clearAll(t=!1){this.request({action:"clearAll"},{callbackFn:t})}get(t=!1,a={isInitial:!1}){var e={action:"get"};if(a.isInitial){a=this._main.ls.get("CompareLastResponse"+this._main.const("siteId"));if(a)return void this.refresh(e,a,{callbackFn:t})}this.request(e,{callbackFn:t})}request(a={},e={}){var t={site_id:this._main.const("siteId"),id:a.id,action:a.action};e.blockName=e.blockName??"",e.callbackFn="function"==typeof e.callbackFn&&e.callbackFn,fetch(this.requestURL,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(t=>t.json()).then(t=>{this.refresh(a,t,e),delete t.message,this._main.ls.set("CompareLastResponse"+this._main.const("siteId"),t)}).catch(t=>{console.log(t)})}refresh(t={},a=!1,e={}){if("object"==typeof a&&!0===a.status){if(e.callbackFn&&"function"==typeof e.callbackFn)try{e.callbackFn(a)}catch(t){console.log(t)}switch(this.procAll(a),this.setCount(a),t.action){case"get":break;case"add":this._main.h.metrics.changeCompare("add",t.id,{blockName:e.blockName});break;default:this._main.iw.show.smallWindow(a.message)}}}procAll(t){if(1==t.status){for(var a in window.prodBlocks)try{window.prodBlocks[a].h.cmp.procAll&&window.prodBlocks[a].h.cmp.procAll(t.data)}catch(t){console.log(t)}for(var e in this._main.catH)try{this._main.catH[e].h&&this._main.catH[e].h.cmp&&this._main.catH[e].h.cmp.procAll&&this._main.catH[e].h.cmp.procAll(t.data)}catch(t){console.log(t)}}else this._main.iw.show.smallWindow(this._main.gm("compare_load_error"))}setCount(t){var a;void 0!==this._main.h.hf&&(a=0,a=Object.keys(t.data).length,this.count=a)}}
class Basket{#basketHandler="/local/action/basket.php";basketList={};basketData={};countItems=0;constructor(e={},t={}){this.p=e,this._main=t._main,this._parent=t._parent}set count(e){this.countItems=parseInt(e),this._main.h.hf.controlButtons.set.cart(this.count)}get count(){return this.countItems}add2basket(e,t={},s=!1){e=this.getRequestData("add",{id:e});t&&t.properties&&(e.properties=t.properties),t&&t.productPlaceProperties&&(e.productPlaceProperties=t.productPlaceProperties),this.request(e,s)}removeFromBasket(e,t=!1){e=this.getRequestData("remove",{id:e});this.request(e,t)}get(e=!1,t={responseData:!1,needRefreshSmallBasket:!0}){var s;"object"==typeof t&&"object"==typeof t.responseData?this.processResponse(this.getRequestData(),t.responseData,!1,t):(s=this.getRequestData("getUserBasket",{}),this.request(s,e,t))}initProcAll(e,t={}){if(!0===e.status){for(var s in window.prodBlocks)try{window.prodBlocks[s].h.basket&&"function"==typeof window.prodBlocks[s].h.basket.procAll&&window.prodBlocks[s].h.basket.procAll(e)}catch(e){console.log(e)}for(var a in this._main.catH)try{this._main.catH[a].h.basket&&"function"==typeof this._main.catH[a].h.basket.procAll&&this._main.catH[a].h.basket.procAll(e)}catch(e){console.log(e)}!1!==t.needRefreshSmallBasket&&"object"==typeof this._main.h.smBask&&setTimeout(()=>{this._main.h.smBask.refresh.basketSm()},100)}}getRequestData(e="getUserBasket",t={}){return t.site_id=this._main.const("siteId"),t.action=e,t}request(t,s=!1,a={responseData:!1,needRefreshSmallBasket:!0}){fetch(this.#basketHandler,{method:"POST",headers:{"Content-Type":"multipart/form-data"},body:JSON.stringify(t)}).then(e=>e.json()).then(e=>{this.processResponse(t,e,s,a)}).catch(e=>{console.log(e)})}processResponse(e,t,s,a={responseData:!1,needRefreshSmallBasket:!0}){if(!0===t.status){this.basketList=t.data,this.basketData=t.detailedData;try{this.initProcAll(t,a),this.setCount(t)}catch(e){console.log(e)}try{switch(e.action){case"getUserBasket":this._main.h.metrics.changeBasket(this.basketData);break;case"add":this._main.h.metrics.addToBasket(e.id,e.productPlaceProperties??{}),this._main.h.metrics.changeBasket(this.basketData);break;case"remove":this._main.h.metrics.removeFromBasket(e.id,{quantity:1}),this._main.h.metrics.changeBasket(this.basketData)}}catch(e){console.log(e)}}else t.message&&this._main.iw.show.smallWindow(t.message);try{"function"==typeof s&&s(t)}catch(e){console.log(e)}}getPropsForAdd2Basket=s=>{let a={};s.querySelectorAll(".addition-value_wrapper input:checked").forEach(e=>{let t=e.name;-1!=t.indexOf("[]")&&(t=t.replace("[]","")),a[t]=a[t]||[],a[t].push(e.value)});var o,i=[];for(o in a){let e="",t=s.querySelector('[data-prop_code="'+o+'"]');(t=t&&t.querySelector(".addition-title"))&&(e=t.innerText),i.push({propCode:o,propName:e,propValues:a[o]})}return i};checkIsSetItems(e,t){if(t[e])return!0;let s=!1;for(var a in t)s=-1!==t[a].indexOf(e)||s;return s}checkIsAvailableGifts(e){return!!Object.values(e).filter(e=>1==e.ISSET_GIFTS).length}setCount(e){var t;void 0!==this._main.h.hf&&(t=0,t=Object.keys(e.data).length,this.count=t)}}
class Popups{popupsList={cart:"cart","personal-account-menu":"personal-account-menu","card-constructor":"card-constructor","card-fabric":"card-fabric","card-fabric-constructor":"card-fabric-constructor","card-reviews":"card-reviews","card-description":"card-description","card-features":"card-features","card-instructions":"card-instructions","card-delivery":"card-delivery","card-pickup":"card-pickup",filter:"filter","select-base":"select-base"};p={};b={};c={};o={};constructor(t={JSObjectName:"pps"}){document.addEventListener("DOMContentLoaded",()=>{Utils.setFieldsObject(t,this),this.init()})}init(){this.events.construct(),this.getPopups(),this.getButtons(),this.getCloseButtons(),this.getOverlays()}events={construct:()=>{["onOpen","onClose"].forEach(s=>{this.events[s]||(this.events[s]={popups:{popupId:[]},add:(t,e={fn:()=>{},args:{}})=>{this.events[s].popups[t]=this.events[s].popups[t]??[];e={fn:e.fn,args:e.args};-1===this.events[s].popups[t].indexOf(e)&&this.events[s].popups[t].push(e)},exec:t=>{this.events[s].popups[t]&&this.events[s].popups[t].forEach(t=>{t.fn(t.args)})}})})}};getPopups(){for(var t in this.p=this.p??{},this.popupsList)this.p[t]=document.querySelector("#"+this.popupsList[t]),this.p[t]||delete this.p[t];for(let t in this.p)this.p[t].open=()=>{this.open(t)},this.p[t].close=()=>{this.close(t)}}eventTomSelectCallback(t){t.addEventListener("click",t=>{var e=t.target;switch(e.nodeName){case"INPUT":case"SELECT":e.removeAttribute("onclick");var s=e.closest(".popup").id;this.p[s].tomselect.addItem(e.value)}}),t.querySelectorAll("input").forEach(t=>{t.removeAttribute("onclick")})}getButtons(){this.b=this.b??{};for(let s in this.popupsList){this.b[s]=document.querySelectorAll('[data-popup="'+this.popupsList[s]+'"]');let e=[];this.b[s].forEach(t=>{t.tomselect&&1==t.dataset.popupCallback&&(this.p[s].tomselect=t.tomselect,Utils.setFieldsObject(t.dataset,t.tomselect.control.dataset),e.push(t.tomselect.control),this.eventTomSelectCallback(this.p[s]))}),this.b[s]=[...this.b[s],...e],this.b[s].length<1&&delete this.b[s]}let e=t=>{var t=t.target.closest("[data-opener]"),e=t.dataset.popup;this.p[e]&&(!1===t.popupStatusActive?this.p[e].open():this.p[e].close())};for(var t in this.b)0<this.b[t].length&&this.b[t].forEach(t=>{void 0===t.popupStatusActive&&(t.popupStatusActive=!1,t.removeEventListener("click",e),t.addEventListener("click",e))})}getCloseButtons(){for(var t in this.c=this.c??{},this.popupsList)this.c[t]=document.querySelectorAll(`#${this.popupsList[t]} .popup__close`),this.c[t]||delete this.c[t];let e=t=>{t=t.target.closest(".card-popup, .popup");t.id;this.p[t.id]&&this.p[t.id].close()};for(var s in this.c)this.c[s].forEach(t=>{t.eventCloseIsSet||(t.eventCloseIsSet=!0,t.addEventListener("click",e))})}getOverlays(){for(var t in this.o=this.o??{},this.popupsList)this.o[t]=document.querySelectorAll(`#${this.popupsList[t]} .popup__overlay`),this.o[t]||delete this.o[t];let e=t=>{t=t.target.closest(".popup");this.p[t.id]&&this.p[t.id].close()};for(var s in this.o)this.o[s].forEach(t=>{t.closeEventIsSet||(t.closeEventIsSet=!0,t.addEventListener("click",e))})}open(t){var e=document.body.classList;"card-constructor"==t&&e.add("hide-menu"),e.remove("no-scroll"),e.remove("hide-menu"),e.add("no-scroll"),this.p[t].classList.add("popup-opened"),this.processBtnOpener(t,"open"),this.events.onOpen.exec(t)}close(t){var e=document.body.classList;e.remove("no-scroll"),e.remove("hide-menu"),document.body.style.marginRight="",this.p[t].classList.remove("popup-opened"),this.processBtnOpener(t,"close"),!0===this.p[t].removeAfterClosing&&setTimeout(()=>{this.p[t].parentNode.removeChild(this.p[t])},350),this.events.onClose.exec(t)}closeAllPopups(){for(var t in this.p)this.p[t].close()}unactiveAllBtns(){for(var t in this.b)this.b[t].forEach(t=>{t.classList.remove("is-active")})}processBtnOpener(t,e){this.b[t]&&this.b[t].forEach(t=>{"open"===e?(t.classList.remove("is-active"),this.unactiveAllBtns(),t.classList.add("is-active"),t.popupStatusActive=!0):(t.classList.remove("is-active"),document.body.style.marginRight="",t.popupStatusActive=!1)})}}
class Modals{modals={"choice-city":"choice-city","shop-address":"shop-address","call-back":"call-back",signin:"signin",signup:"signup",signinsignup:"signinsignup","leave-reviewe":"leave-reviewe",detail_zoom_slider:"detail_zoom_slider",pc_detail_zoom_slider:"pc_detail_zoom_slider","buy-one-click":"buy-one-click","dostavka-kurerom-minsk":"dostavka-kurerom-minsk","samovyvoz-minsk":"samovyvoz-minsk","vacancies-modal":"vacancies-modal","i-want":"i-want","dp-select-shops":"dp-select-shops","shop-contact-us":"shop-contact-us","shop-contact-us":"shop-contact-us",halal_callback_contacts:"halal_callback_contacts","ergomotion-order-consultation":"ergomotion-order-consultation","call-back-color":"call-back-color","mattresses-selection-quiz":"mattresses-selection-quiz","sofas-selection-quiz":"sofas-selection-quiz","beds-selection-quiz":"beds-selection-quiz","pillows-selection-quiz":"pillows-selection-quiz",quiz:"quiz",doc:"doc","info-window-big":"info-window-big",search:"search",fabricsfilter:"fabricsfilter","fabric-big-slider":"fabric-big-slider"};mod={};btn={};cls={};constructor(s=0,t){this.init()}init(){this.events.construct(),this.findUniversalModals(),this.getModals(),this.getButtons(),this.getCloseBtns()}events={construct:()=>{["onOpen","onClose"].forEach(e=>{this.events[e]=this.events[e]??{popups:{popupId:[]},add:(s,t={fn:()=>{},args:{}})=>{this.events[e].popups[s]=this.events[e].popups[s]??[];t={fn:t.fn,args:t.args};-1===this.events[e].popups[s].indexOf(t)&&this.events[e].popups[s].push(t)},exec:s=>{this.events[e].popups[s]&&this.events[e].popups[s].forEach(s=>{s.fn(s.args)})}}})}};getModals(){for(var s in this.mod=this.mod??{},this.modals)this.mod[s]=document.getElementById(this.modals[s]),this.mod[s]||delete this.mod[s];for(let s in this.mod)this.mod[s].o=()=>{this.o(s)},this.mod[s].c=()=>{this.c(s)},void 0===this.mod[s].isOpened&&(this.mod[s].isOpened=!1)}findUniversalModals(){let s=["dostavka-kurerom-","samovyvoz-","payment-"];document.querySelectorAll("[data-modal-name]").forEach(e=>{if(e.dataset.modalName){let t=!1;s.forEach(s=>{-1!=e.dataset.modalName.indexOf(s)&&(t=e.dataset.modalName)}),t&&!this.modals[t]&&(this.modals[t]=t)}})}getButtons(){for(var s in this.btn=this.btn??{},this.modals){var t=document.querySelectorAll('[href="'+this.modals[s]+'"]'),e=document.querySelectorAll('[data-modal-name="'+this.modals[s]+'"]');this.btn[s]=[...t,...e],this.btn[s]||delete this.btn[s]}let o=s=>{s.preventDefault();let t,e;t=s.target.closest(".modal-btn"),e=(e=t.getAttribute("href"))||t.dataset.modalName,this.mod[e]&&this.mod[e].o(this,t)};for(var i in this.btn)this.btn[i].forEach(s=>{void 0===s.modalStatusActive&&(s.modalStatusActive=!1,s.removeEventListener("click",o),s.addEventListener("click",o))})}getCloseBtns(){for(var s in this.cls=this.cls??{},this.mod)this.cls[s]=document.getElementById(s).querySelector(".modal__close");var t,e=s=>{s.preventDefault();let t=s.target.closest(".modal__close").parentElement.closest(".modal").getAttribute("id");this.mod[t].c(),!0===this.mod[t].removeAfterClosing&&setTimeout(()=>{this.mod[t].parentNode.removeChild(this.mod[t])},350)};for(t in this.cls)this.cls[t]?this.cls[t].closeEventIsSet||(this.cls[t].closeEventIsSet=!0,this.cls[t].addEventListener("click",e)):delete this.cls[t]}handleInner(){var s,t=s=>{let t=s.target.closest(".modal").getAttribute("id");document.getElementById(t)==s.target&&(this.mod[t].c(this),!0===this.mod[t].removeAfterClosing)&&setTimeout(()=>{this.mod[t].parentNode.removeChild(this.mod[t])},350)};for(s in this.mod)this.mod[s].removeEventListener("click",t),this.mod[s].addEventListener("click",t)}o(s){for(var t in this.mod)this.mod[t].c();this.handleOpen(s),document.body.classList.add("modalOpen"),this.mod[s].classList.add("modal--active"),this.mod[s].isOpened=!0,this.events.onOpen.exec(s)}c(s){this.mod[s].classList.contains("modal--active")&&(this.mod[s].classList.remove("modal--active"),document.body.classList.remove("modalOpen"),this.mod[s].isOpened=!1,this.events.onClose.exec(s))}handleOpen(s){if((s=this.mod[s]).classList.contains("modal--active"))s.classList.remove("modal--active");else{for(var t in this.handleInner(),s.classList.remove("modal--active"),this.mod)this.mod[t].c(this);s.classList.add("modal--active")}}}
class Order{#requestURL="/local/action/order_one_click.php";#modalId="buy-one-click";#installmentSubmit={skrepka:!1};constructor(e,t={}){Utils.setFieldsObject(e,this),this._main=t._main,this._parent=t._parent,this.formsProcessor=new FormsProcessor({params:{}},{_main:this._main,_parent:this})}n={modal:!1,form:!1,get:()=>{this.n.modal=document.querySelector("#"+this.#modalId),this.n.form=this.n.modal.querySelector("form"),this.n.form&&(this.n.btnSubm=this.n.form.querySelector('[type="submit"]'))}};actionsInit={phoneMask:()=>{this.n.form.querySelectorAll('input[type="tel"]').forEach(e=>{Utils.phoneValidator.set(e,{siteId:this._main.const("siteId"),region:this._main.const("region"),pattern:this._main.const("phone").mask,placeholder:this._main.const("phone").placeholder})})},full:()=>{this.actionsInit.phoneMask()}};create={oneClick:{load:(a="load",r={itemsId:!1,page:"smallBasket",source:"in_one_click",basketItemsProperties:{}})=>{r=this.getRequestData(a,r);this.request(r,e=>{var t=document.querySelector("#"+this.#modalId);if(t&&t.parentNode.removeChild(t),e.data.html){t=Utils.parseNodeFromText(e.data.html);switch(t[0].removeAfterClosing=!0,document.body.insertAdjacentElement("beforeEnd",t[0]),this.n.get(),a){case"skrepkaAfterFail":setTimeout(()=>{this.create.oneClick.load("loadSkrepkaInstallment",r)},3e3);break;case"loadAfterFail":setTimeout(()=>{this.create.oneClick.load("load",r)},3e3);break;case"loadSkrepkaInstallment":this._main.h.metrics.userExp("openInstallment");case"load":this.actionsInit.full();var s=this.n.form.querySelector("#order-input-skrepka-cp");s&&new TomSelect(s,{create:!1,controlInput:null}),this.n.form.onsubmit=e=>{this.submit(e,a)}}this._main.h.modals.init(),this._main.h.modals.mod[this.#modalId]&&this._main.h.modals.mod[this.#modalId].o(this._main.h.modals)}else this._main.iw.show.smallWindow(this._main.gm("req_err_load"))})}}};submit(e,t){event.preventDefault();var s=t=>{if(t.message&&this._main.h.iw.show.smallWindow(t.message),!0===t.status)"skrepkaOrder"===t.action?(this._main.h.metrics.userExp("sendInstallment","skrepka"),this.create.oneClick.load("skrepkaAfterSuccess",{}),"undefined"!=typeof smBask&&smBask.refresh.basketSm(),location.href="/order/?ORDER_ID="+t.data.orderId):(this.create.oneClick.load("loadAfterSuccess",{}),"undefined"!=typeof smBask&&smBask.refresh.basketSm());else if(null!==t.nextAction){let e;e="skrepkaOrder"===t.action?"skrepkaAfterFail":"loadAfterFail",this.create.oneClick.load(e,{page:t.data.page,itemsId:t.data.itemsId,source:t.source})}};let a=null;a="loadSkrepkaInstallment"===t?this.getRequestData("skrepkaOrder",this.formsProcessor.service.collectFormValues(e.target)):this.getRequestData("order",this.formsProcessor.service.collectFormValues(e.target)),(this.n.btnSubm&&!1===this.n.btnSubm.disabled?this.n.btnSubm.disabled=!0:!this.n.btnSubm)&&this.request(a,s)}getRequestData(e="load",t={itemsId:!1,page:"smallBasket",source:"in_one_click",basketItemsProperties:{}}){switch(e){case"load":case"loadAfterSuccess":case"loadAfterFail":case"order":case"loadSkrepkaInstallment":case"skrepkaAfterFail":case"skrepkaOrder":case"skrepkaAfterSuccess":break;default:e="load"}switch(t.site_id=this._main.const("siteId"),t.action=e,t.source=t.source??"in_one_click",t.basketItemsProperties=t.basketItemsProperties??{},t.page){case"smallBasket":case"orderPage":case"detailPage":case"catalogSection":case"ergomotion":break;default:t.page="smallBasket"}return t.values&&t.values.productId&&(t.itemsId=t.values.productId),t}request(s,a=!1){fetch(this.#requestURL,{headers:{"Content-Type":"multipart/form-data"},method:"POST",body:JSON.stringify(s)}).then(e=>e.json()).then(e=>{try{"function"==typeof a&&a(e)}catch(e){console.log(e)}let t="";switch(s.action){case"skrepkaAfterSuccess":case"loadSkrepkaInstallment":case"skrepkaAfterFail":case"skrepkaOrder":t="Order in credit";break;case"load":case"loadAfterSuccess":case"loadAfterFail":case"order":t="Order in one click"}if(e.data.orderId&&("order"===s.action||"skrepkaOrder"===s.action))try{this._main.h.metrics.sendOrder({id:e.data.orderId,checkoutType:t})}catch(e){console.log(e)}0==e.status&&this._main.iw.show.smallWindow(""+this._main.gm("req_err_load")+(e.message?": "+e.message:""))}).catch(e=>{console.log(e),this._main.iw.show.smallWindow(this._main.gm("req_err_retry"))}).finally(()=>{this.n.btnSubm&&(this.n.btnSubm.disabled=!1)})}}
class InfoWindows{showDuration=2e3;smallInfoWindow="";anchor=!1;queue=[];CSSRules={0:".small-info-window{z-index: 1001;position: fixed;top: -100px;left: 20px;background: #fefefe;padding: 5px 10px;max-width: calc(610px);-webkit-box-shadow: 0px 7px 16px 3px rgb(34 60 80 / 25%);-moz-box-shadow: 0px 7px 16px 3px rgba(34, 60, 80, 0.25);box-shadow: 0px 7px 16px 3px rgb(34 60 80 / 25%);border-radius: 5px;border-color: #223c500d;border-width: 1px;border-style: solid;font-size: 14px;transition-duration: 0.5s;opacity: 0;}",1:"@media (max-width: 768px) {.small-info-window {max-width: calc(100vw - 40px);}}",2:".small-info-window.show {top: 20px;opacity: 1;}"};constructor(e,o={}){this.insertCSSRules(),this._main=o._main,this._parent=o._parent}insertCSSRules(){let o=document.styleSheets[0];Object.keys(this.CSSRules).forEach(e=>{o.insertRule(this.CSSRules[e],o.cssRules.length)})}checkQueue(){}show={smallWindow:(e,o={})=>{let t=document.createElement("div"),i=(t.classList.add("small-info-window"),t.innerHTML=e,document.body.appendChild(t),this.show.paramsHandler(t,o),0),n={destroy:()=>{t&&this.destroyWindow(t),n.destroy=()=>{},n=!1,clearTimeout(i)}};return setTimeout(()=>{t&&t.classList.add("show"),i=setTimeout(()=>{n&&n.destroy&&n.destroy()},this.showDuration)},50),n},infoWindow:(t,i={windowType:"done",closeBtn:this._main.gm("close_btn")})=>{if(t){(i="object"!=typeof i?{}:i).closeBtn=i.closeBtn||this._main.gm("close_btn");let e=document.createElement("div");var n=this._main.const("templateConsts").imagesPath;let o="";e.classList.add("modal","modal-message"),e.id="info-window-big";n=`<div class="modal__inner">
                                <div class="modal__body">
                                    <div class="modal-img">
                                        <img src="${n+"/"+(o="error"===i.windowType?"modal-error.svg":"modal-done.svg")}">
                                    </div>
                                    <h2 class="modal__title">${t}</h2>
                                    <button class="btn btn--accent w-full modal__close">${i.closeBtn}</button>
                                </div>
                            </div>`;e.innerHTML=n,document.body.appendChild(e),this._main.h.modals.init(),setTimeout(()=>{this._main.h.modals.mod["info-window-big"].o("info-window-big")},100),setTimeout(()=>{this._main.h.modals.mod["info-window-big"].c("info-window-big"),setTimeout(()=>{e.remove()},450)},2500),e.querySelector("button.btn").addEventListener("click",()=>{setTimeout(()=>{e.remove()},2900)})}},paramsHandler:(i,n={})=>{let s=i.getBoundingClientRect();Object.keys(n).forEach(t=>{switch(t){case"marginLeft":let e=s.left+n[t];(e=(e-=s.right)+s.width>window.innerWidth?window.innerWidth-s.width:e)-s.width<0&&!n.bindingToElement&&(e=41),n.bindingToElement&&e<0&&(e=41),i.style.marginLeft=e+50+"px";break;case"marginTop":var o=20+n[t]-20;i.style.marginTop=(o<20?20:o)+"px";break;case"fontSize":i.style.fontSize=n[t]+"px";break;case"backgroundColor":i.style.backgroundColor=n[t];break;case"bindingToElement":if(n.bindingToElement){this.anchor||(n[t].scrollIntoView({block:"center",behavior:"smooth"}),this.anchor=!0),n.lastErrorElem&&(this.anchor=!1);o=window.getComputedStyle(n[t].parentNode);i.style.zIndex=o.zIndex;let e=()=>{var e,o;i&&(o=(e=n[t].getBoundingClientRect()).top-60,i.style.marginTop=o+"px",o=s.left+e.left,o-=s.right,i.style.marginLeft=50+(o=o<0?41:o)+"px")};e(),window.addEventListener("scroll",e),setTimeout(()=>{window.removeEventListener("scroll",e)},n.showDuration)}break;case"showDuration":this.showDuration=n[t]??this.showDuration}})}};destroyWindow(e){e&&(e.classList.remove("show"),setTimeout(()=>{e&&e.parentNode&&e.parentNode.removeChild(e)},1e3))}}
class Preloader{constructor(e={visual:{circleColor:"#00B9BF",circleColorActive:"#00C1C8",period:"2s",circlesCount:8}},r={}){this._main=r._main,this._parent=r._parent,this.visual=e.visual,this.visual.radius=70,this.visual.circlesCount=this.visual.circlesCount??8,this.insertCSSRules(e.visual),this.buildHTML(e.visual)}insertCSSRules(){var e=[...[`.preloader {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 10000000;
    top: 0;
    left: 0;
    display: flex;
    transition-duration: 0.1s;
}`,`.preloader .preloader__circle-wrapper {
    pointer-events: none;
}`,`.preloader .preloader__overlay {
    width: 100%;
    height: 100%;
    background-color: #1E1E1E22;
    position: fixed;
}`,`.preloader .preloader__icon {
    margin: auto;
    display: flex;
    width: 100%;
    justify-content: center;
}`,`.preloader .preloader__circle-wrapper {
    transform: rotate(45deg);
    display: flex;
    justify-content: end;
    position: absolute;
    width: ${this.visual.radius}px;
}`,`.preloader .preloader__circle {
    background-color: ${this.visual.circleColor};
    border-radius: 50%;
    transition-duration: 0.5s;
    box-shadow: 0 0 1px 1px ${this.visual.circleColor};
}`],...this.calc.circles(),...this.calc.deg(),...this.calc.keyframes()];let i=document.styleSheets[0];e.forEach((e,r)=>{i.insertRule(e,i.cssRules.length)})}buildHTML(){let r=`
<div class="preloader">
    <div class="preloader__overlay"></div>
    <div class="preloader__icon">`;for(let e=1;e<=this.visual.circlesCount;e++)r+=`
        <div class="preloader__circle-wrapper">
            <div class="preloader__circle"></div>
        </div>`;r+=`
    </div>
</div>`;var e=(new DOMParser).parseFromString(r,"text/html");this.preloaderNode=e.querySelector(".preloader"),this.preloaderNode.style.display="none"}calc={deg:()=>{var r=[];let i=0;for(let e=1;e<=this.visual.circlesCount;e++)i+=360/this.visual.circlesCount,r.push(`.preloader .preloader__circle-wrapper:nth-child(${e}) {
    transform: rotate(${i}deg);
}`),r.push(`.preloader .preloader__circle-wrapper:nth-child(${e}) .preloader__circle {
    animation: preloader-circle-${e} ${this.visual.period} ease infinite;
}`);return r},keyframes:()=>{var a=[];for(let t=1;t<=this.visual.circlesCount;t++){let e=100/this.visual.circlesCount,r=t*e,i=r-e,l=r+e+30,s="",o=`
0% {transform: scale(1);}`;i<0&&(i=100+i,s+=`
0% {transform: scale(1);}`),100<l&&(l-=100),100==r&&(o="",s+=`
0% {transform: scale(1.5);}`),a.push(`@keyframes preloader-circle-${t} {
    ${o}
    ${i}% {transform: scale(1);}
    ${r}% {transform: scale(1.5);box-shadow: 0 0 1px 1px ${this.visual.circleColorActive};background-color: ${this.visual.circleColorActive}}
    ${l}% {transform: scale(1);}
    ${s}
}`)}return a},circles:()=>{var e=[],r=1.1*this.visual.radius/this.visual.circlesCount;return e.push(`.preloader .preloader__circle {
    width: ${r}px;
    height: ${r}px;
}`),e}};show(){document.body.insertAdjacentElement("beforeend",this.preloaderNode),this.preloaderNode.style.display="flex",setTimeout(()=>{this.preloaderNode.style.opacity="1"},100)}hide(){setTimeout(()=>{this.preloaderNode.style.display="none"},200),this.preloaderNode.style.opacity="0",document.body.contains(this.preloaderNode)&&document.body.removeChild(this.preloaderNode)}}
class CacheManager{constructor(t={storage:"localStorage"}){"sessionStorage"===t.storage?this.storage="object"==typeof sessionStorage?sessionStorage:{}:this.storage="object"==typeof localStorage?localStorage:{}}get(t){if(!t)return!1;let e=!1;try{e=JSON.parse(this.storage.getItem(t))}catch(t){console.log(t)}return e}set(t,e){if(!t)return!1;if(5e6<=(e=JSON.stringify(e)).length)return!1;try{this.storage.setItem(t,e)}catch(t){this.storage.clear(),console.log(t)}return!0}}
class Banners_1{blockSelector="";ecommerceData={};initSlider=!1;constructor(e,i={}){this._main=i._main,this._parent=i._parent,Utils.setFieldsObject(e,this),1!=this._main.const("isBot")&&(this.blockSelector="."+this.blockClassName,this.n.get(),!0===this.initSlider&&this.slider.init(),this.init.ecommerce())}n={get:()=>{this.n.bannersBlock=document.querySelector(this.blockSelector)}};init={ecommerce:()=>{!0===this.sendEcommerce&&this._main.h.metrics.showBanners(this.ecommerceData,{locationId:this.locationId??"main_page_banners"}),this.n.bannersBlock.querySelectorAll("a").forEach(e=>{e.dataset.bid&&(e.bnrId=e.dataset.bid,e.removeAttribute("data-bid"),e.addEventListener("click",e=>{var i=e.target.closest("a");e.preventDefault();try{for(var t in this.ecommerceData)this.ecommerceData[t].bnrId==i.bnrId&&this._main.h.metrics.userExp("clickPromo",{bannerName:this.ecommerceData[t].name,locationId:this.locationId??"main_page_banners"})}catch(e){console.log(e)}"_blank"===i.target?window.open(i.href):location.href=i.href}))})}};slider={node:{},splide:!1,destroy:()=>{this.slider.splide&&this.slider.splide.destroy(),this.slider.splide=!1,this.slider.node.classList.add("splide__preload")},rmOptClasses:()=>{this.slider.node.classList.remove("splide__preload")},make:()=>{var e;this.slider.splide||(e=this._main.const("rightSideOrientation"),this.slider.rmOptClasses(),this.slider.splide=new Splide(this.slider.node,{perPage:3,perMove:1,type:"loop",padding:"4.9%",gap:"32px",arrows:!1,focus:0,flickPower:100,flickMaxPages:1,autoplay:!0,interval:4e3,speed:1e3,direction:e?"rtl":"ltr",paginationDirection:e?"rtl":"ltr",breakpoints:{1440:{padding:"1.2%"},1200:{perPage:3,gap:"16px",padding:"1.5%"},900:{padding:"2%"},768:{perPage:2,padding:"16px"},767:{perPage:1,gap:"10px",padding:"3.7%"},425:{perPage:1,gap:"10px",padding:"4.2%"}}}).mount())},init:()=>{this.n.bannersBlock&&(this.slider.node=this.n.bannersBlock,this.slider.make())}}}
class SmallBasketHandler{loaded=!1;popupId="cart";constructor(t={},e={}){this._main=e._main,this._parent=e._parent,Utils.setFieldsObject(t,this),this.removedProducts={},this.p=t.params,this._main.const("isBot")||(this.cache.h=new this._main.componentDataCache({cacheKey:"smallBasketHandler",siteId:this._main.const("siteId"),storage:"localStorage"},{_main:this._main,_parent:this}),this.cache.handleCacheOtherSites.init(),e=()=>{this.loaded=!0,this._main.h.popups.init(),this.n.get(),this.init(),this.installments.actionInit()},!0===this.params.loadAsync?this.loadAsync(e):e(),this.refresh.initDelayedRefresh())}cache={h:{},handleCacheOtherSites:{data:{},init:()=>{var t;this._main.const("syncBasketBetweenSites")&&(t=this._main.const("sitesId")).length&&Array.isArray(t)&&t.forEach(t=>{t!==this._main.const("siteId")&&(this.cache.handleCacheOtherSites.data[t]=new this._main.componentDataCache({cacheKey:"smallBasketHandler",siteId:t,storage:"localStorage"},{_main:this._main,_parent:this}))})},clean:()=>{var t;this._main.const("syncBasketBetweenSites")&&(t=this._main.const("sitesId")).length&&Array.isArray(t)&&t.forEach(t=>{t!==this._main.const("siteId")&&this.cache.handleCacheOtherSites.data[t].cleanAllCache()})}}};loadAsync(s=()=>{}){let e=t=>{this.result=t.componentResult.result,this.signedParamsString=t.componentResult.signedParamsString;var e=Utils.html.parseFromText(t.componentResult.html)[0];this.n.cartBox=document.querySelector("#cart"),this.n.cartBox.parentNode.replaceChild(e,this.n.cartBox),setTimeout(()=>{this._main.h.basket.get(!1,{needRefreshSmallBasket:!1,responseData:t})},500),s()};var t=this.cache.h.get("BasketLastResponse");"object"==typeof t&&"object"==typeof t.data?e(t):fetch("/local/action/basket.php",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({action:"loadSmallBasket",siteId:this._main.const("siteId")})}).then(t=>t.json()).then(t=>{!0===t.status&&(this.cache.h.set("BasketLastResponse",t),e(t))})}n={get:()=>{this.n.cartBox=document.querySelector("#cart"),this.n.blocks=this.n.blocks??{},this.n.cartBox&&(this.n.blocks.title=this.n.cartBox.querySelector(".popup__title"),this.n.blocks.title&&(this.n.blocks.title.setCount=t=>{var e=parseInt(t);this.n.blocks.title.innerText=e==t?Utils.string.caseWordEndingProduct(t,this._main.gm("sm_product"),this._main.sd.glLang)+": "+t:t}),this.n.getOrderOneClickBtn(),this.n.blocks.cartProducts=this.n.cartBox?this.n.cartBox.querySelector(".cart__products"):{})},getItems:()=>{this.n.items={},this.n.cartBox&&this.n.cartBox.querySelectorAll(".cart-item").forEach(t=>{var e,a=t.dataset.id;t.dataset.productId;let i={};for(e in this.removedProducts)a==e&&(i={id:e,productId:e,quantity:this.removedProducts[e].quantity});if(!i.id){let s=t.parentNode.closest(".cart-item");if(s=s&&s.basketProductId){let e=!1;if(this.result.forEach(t=>{t.ID==s&&(e=t)}),e&&"object"==typeof e.RECOMMENDED_PRODUCTS_TO_BUY)for(var n in e.RECOMMENDED_PRODUCTS_TO_BUY){n=e.RECOMMENDED_PRODUCTS_TO_BUY[n];if(n.items[a]){i={id:n.items[a].data.PRODUCT_ID,productId:n.items[a].data.PRODUCT_ID,quantity:n.items[a].data.QUANTITY};break}}}}if(!i.id)for(var s in this.result){s=this.result[s];if(s.ID==a){i={id:s.ID,productId:s.PRODUCT_ID,quantity:s.QUANTITY};break}}t.querySelector("[data-inp-count]")&&(t.inpCount=t.querySelector("[data-inp-count]").value),t.quantity=parseInt(i.quantity),t.basketProductId=parseInt(i.id),t.productId=parseInt(i.productId),(this.n.items[t.dataset.id]=t).removeAttribute("data-id"),t.removeAttribute("data-product-id")})},getOrderOneClickBtn:()=>{this.n.cartBox&&(this.n.blocks.oneClickBtn=this.n.cartBox.querySelector("[data-boc]"),this.n.blocks.oneClickBtn)&&(this.n.blocks.oneClickBtn.removeAttribute("data-boc"),this.n.blocks.oneClickBtn.addEventListener("click",()=>{this._main.h.order.create.oneClick.load()}))}};init(){this.n.getItems(),this.setItemsAction(),this.metrics(),this._main.h.hf.controlButtons.crt&&this._main.h.hf.controlButtons.crt.setCount(this.result.length),this._main.h.hf.controlButtons.crt_nvbr&&this._main.h.hf.controlButtons.crt_nvbr.setCount(this.result.length),this._main.catH=this._main.catH??{},this._main.catH.smallBasket={h:{fav:this.fav,cmp:{}}}}installments={brokerage:{brokerageBasketRun:()=>{var t,e;"kz"===this._main.const("region")&&this.n.cartBox&&(t=this.n.cartBox.querySelector(".brokerage-credit"))&&(e=this.installments.brokerage.prepareData(this.result),this._main.h.installments.inst.brokerage.data.set(e,"smallBasket"),this._main.h.installments.inst.brokerage.actions.setBtnEvents([{node:t,page:"smallBasket"}]))},prepareData:e=>{if("kz"===this._main.const("region")){var s,a,i={page:"smallBasket",items:[]};let t=0;for(const n in e)e.hasOwnProperty(n)&&(a=(s=e[n]).PRODUCT_XML_ID.split("#")[1],a={itemId:s.PRODUCT_ID,name:s.NAME,category:"",code:a,price:s.PRICE,quantity:s.QUANTITY},i.items.push(a)),t++;return i}}},skrepka:{init:()=>{var t;"by"===this._main.const("region")&&this.n.cartBox&&(t=this.n.cartBox.querySelector(".skrepka-credit"))&&this._main.h.installments.inst.skrepka.initModal([{node:t,page:"smallBasket"}])}},actionInit:()=>{try{this.installments.brokerage.brokerageBasketRun()}catch(t){console.log(t)}try{this.installments.skrepka.init()}catch(t){console.log(t)}},actionUpdate:()=>{try{this.installments.brokerage.brokerageBasketRun(this.result)}catch(t){console.log(t)}try{this.installments.skrepka.init()}catch(t){console.log(t)}}};actions={assignHandlersActions:()=>{for(var t in this.n.items){let s=this.n.items[t];s.querySelectorAll("[data-btn-action]").forEach(t=>{t.btnAction||(t.btnAction=t.dataset.btnAction,t.addEventListener("click",t=>{var t=t.target.closest("button"),e=t.closest(".cart-item");switch(t.btnAction){case"remove_product":this.product.remove(e);break;case"restore_product":this.product.restore(e);break;case"fav":this.product.fav(s.basketProductId)}}))})}},assignOperationsCount:()=>{this.n.cartBox&&this.n.cartBox.querySelectorAll("[data-ch-op]").forEach(e=>{switch(e.operation=e.dataset.chOp,e.removeAttribute("data-ch-op"),e.nodeName){case"INPUT":e.addEventListener("keyup",t=>{"e"===t.target.operation&&(this._temp=this._temp??{},this._temp.setTimeout&&clearTimeout(this._temp.setTimeout),this._temp.setTimeout=setTimeout(()=>{this.product.countEnter(e.closest(".cart-item"),{action:"countEnter"})},500))});break;case"BUTTON":e.addEventListener("click",t=>{switch(t.target.closest("button").operation){case"d":this.product.countEnter(e.closest(".cart-item"),{action:"countDecrement"});break;case"i":this.product.countEnter(e.closest(".cart-item"),{action:"countIncrement"})}})}})}};product={remove:t=>{for(var e in this.n.items)this.n.items[e]==t&&(e=this.getRequestData("removeProduct",{additions:{remove:{basketProductId:t.basketProductId}}}),this.query(e))},countEnter:(s,a={action:"countEnter/countIncrement/countDecrement"})=>{if(a.action){let e=1;for(var i in this.n.items)if(this.n.items[i]==s){for(var n in this.result)this.result[n].ID==s.basketProductId&&(e=this.result[n].QUANTITY);let t=parseInt(s.querySelector("[data-inp-count]").value);switch(a.action){case"countIncrement":t++;break;case"countDecrement":t--}i=this.getRequestData("countEnter",{operation:a.action,id:s.basketProductId,oldQuantity:parseInt(e),quantity:t});this.query(i)}}},restore:t=>{for(var e in this.n.items)if(this.n.items[e]==t||this.n.items[e].contains(t)){e=this.getRequestData("restoreProduct",{id:t.basketProductId,quantity:t.quantity||t.inpCount||(t.querySelector("[data-inp-count]")?t.querySelector("[data-inp-count]").value:1)});this.query(e);break}},fav:(e,t=0)=>{for(var s in this.result){var a=this.result[s];let t=!1;if("object"==typeof a.RECOMMENDED_PRODUCTS_TO_BUY)for(var i in a.RECOMMENDED_PRODUCTS_TO_BUY){var n,r=a.RECOMMENDED_PRODUCTS_TO_BUY[i];for(n in r.items)r.items[n].id==e&&(t=e)}if(t||a.ID==e&&(t=a.PRODUCT_ID),t){switch(Utils.object.checkIsChild(t,this.fav.favList)){case!0:this._main.h.favorites.remove(t);break;case!1:this._main.h.favorites.add(t,{blockName:"Small basket"})}break}}}};refresh={basketSm:(t=!1)=>{!t&&this.loaded&&(t=this.getRequestData("refreshBasket"),this.query(t))},initDelayedRefresh:()=>{this.refresh.timer&&clearTimeout(this.refresh.timer),this.refresh.timer=setTimeout(()=>{this.refresh.basketSm()},12e4)}};setItemsAction(){this.actions.assignHandlersActions(),this.actions.assignOperationsCount(),this.installments.actionUpdate()}getRequestData(t,e={}){let s=e;switch(s["soa-action"]=t,s.action=t,s.signedParamsString=this.signedParamsString,s.site_id=this._main.const("siteId"),s.via_ajax="Y",s.additions=s.additions??{},s.additions.allRemovedProducts=this.removedProducts,t){case"removeProduct":this.result.forEach(t=>{t.ID==s.additions.remove.basketProductId&&(s.additions.remove={basketProductId:t.ID,quantity:parseInt(t.QUANTITY),properties:t.PROPERTIES})});break;case"countEnter":s["soa-action"]=e.operation,s.action=e.operation}return s}query(a={}){fetch(this.handlerScript,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then(t=>t.json()).then(t=>{this.data=t,this.removedProducts=t.result.removedProducts??this.removedProducts,this.result=t.result.ITEMS??this.result;try{var e=0<Object.keys(t.data).length&&{componentResult:{result:t.result.ITEMS??this.result,signedParamsString:this.signedParamsString,html:this.data.html},data:t.data,detailedData:t.detailedData,status:!0};this.cache.h.set("BasketLastResponse",e),this.cache.handleCacheOtherSites.clean()}catch(t){console.log(t)}if(this.data.html=Utils.html.parseFromText(this.data.html)[0],0==!!t.status)this._main.iw.show.smallWindow(this._main.gm("error_while_updating"));else{this.data.action&&"refreshBasket"!==this.data.action&&this._main.h.basket.get(!1,{needRefreshSmallBasket:!1,responseData:{status:t.status,data:t.data,detailedData:t.detailedData}});try{var s;if(0<(s=!(s=this.n.items[a.id]?this.n.items[a.id].productId:0)&&a.additions.remove?this.n.items[a.additions.remove.basketProductId].productId:s)){switch(a.quantity=parseInt(a.quantity),this.data.action){case"countIncrement":this._main.h.metrics.addToBasket(s,{quantity:1,blockName:"Small basket"});break;case"restoreProduct":this._main.h.metrics.addToBasket(s,{quantity:a.quantity,blockName:"Small basket"});break;case"countDecrement":this._main.h.metrics.removeFromBasket(s,{quantity:1,blockName:"Small basket"});break;case"removeProduct":this._main.h.metrics.removeFromBasket(s,{quantity:a.additions.remove.quantity,blockName:"Small basket"});break;case"countEnter":a.quantity>a.oldQuantity?this._main.h.metrics.addToBasket(s,{quantity:a.quantity-a.oldQuantity,blockName:"Small basket"}):this._main.h.metrics.removeFromBasket(s,{quantity:a.oldQuantity-a.quantity,blockName:"Small basket"})}try{this._main.h.metrics.changeBasket(t.result.ITEMS)}catch(t){console.log(t)}}}catch(t){console.log(t)}this.refresh.initDelayedRefresh()}}).catch(t=>{console.log(t)}).finally(()=>{let t=!1;this.n.blocks.cartProducts&&(t=this.n.blocks.cartProducts.scrollTop),this.changeBlockWrapper(),this.n.getItems(),this.setItemsAction();var e=this.data.html.querySelector(".popup__title");this.n.blocks.title&&this.n.blocks.title.setCount(e?e.innerText:this.data.result.ITEMS.length),this.fav.procAll(),t&&this.n.blocks.cartProducts&&(this.n.blocks.cartProducts.scrollTop=t),this.data.action="",this.canQuery=!0})}changeBlockWrapper(){var t,e;this.n.cartBox&&(t=this.data.html.querySelector(".cart__wrapper"),(e=this.n.cartBox.querySelector(".cart__wrapper"))&&e.parentNode.replaceChild(t,e),this._main.h.hf.controlButtons.crt&&this._main.h.hf.controlButtons.crt.setCount(this.result.length),this._main.h.hf.controlButtons.crt_nvbr&&this._main.h.hf.controlButtons.crt_nvbr.setCount(this.result.length),this.n.get())}fav={procAll:(t=!1)=>{for(var e in t?this.fav.favList=t:t=this.fav.favList,this.n.items){var e=this.n.items[e],s=e.productId,s=Utils.object.checkIsChild(s,t),e=e.querySelector('[data-btn-action="fav"]');s?(e.classList.add("active"),e.innerText=this._main.gm("remove_from_favorites")):(e.classList.remove("active"),e.innerText=this._main.gm("add_to_favorites"))}}};cmp={procAll:t=>{}};metrics(){this._main.h.popups.events.onOpen.add(this.popupId,{fn:()=>{this._main.h.metrics.userExp("openSmallBasket")}})}}
class Shops{#modalId="shop-address";constructor(s={}){this._main=s._main,this._parent=s._parent,this.shopsBlock=document.querySelector("#"+this.#modalId),this.shopsBlock&&(this.bl={s:{node:this.shopsBlock.querySelector("#shops_search")},l:{node:this.shopsBlock.querySelector("#shops_list")},f:{node:this.shopsBlock.querySelector(".address-list__footer")}},this.bl.l.points=Array.from(this.bl.l.node.querySelectorAll("li")).map(s=>({element:s,display:s.style.display})),this.bl.f.node&&(this.bl.btnExpand=this.bl.f.node.querySelector(".address-list__btn-expand")),this.initSearch(),this.initEvents(),this.metrics(),location.hash==="#"+this.#modalId)&&document.addEventListener("DOMContentLoaded",()=>{this._main.h.modals.mod[this.#modalId].o(this._main.h.modals)})}initEvents(){this.bl.btnExpand&&(this.bl.btnExpand.addEventListener("click",s=>{this.bl.l.node.classList.toggle("expand"),this.bl.btnExpand.classList.toggle("active")}),this.bl.btnExpand.style.display=0<this.bl.l.node.querySelectorAll("li.inactive").length?"block":"none")}initSearch(){if(this.bl.s.node&&this.bl.l.node)this.bl.s.node.addEventListener("keyup",s=>{let i=s.target.value.toLowerCase(),l=!1;this.bl.l.points.forEach(({element:s,display:t})=>{var e=s.innerText.toLowerCase();""===i?s.classList.contains("inactive-region")?s.style.display="none":(s.style.display=t,l=!0):e.includes(i)?(s.style.display=t,l=!0):s.style.display="none"}),l?(this.bl.l.node.classList.add("expand"),this.bl.btnExpand&&this.bl.btnExpand.classList.add("active")):(this.bl.l.node.classList.remove("expand"),this.bl.btnExpand&&this.bl.btnExpand.classList.remove("active"))})}metrics(){var s=this._main.h.modals.btn[this.#modalId];s&&s.forEach(s=>{s.onclick=s=>{event.preventDefault(),s.preventDefault(),this._main.h.metrics.userExp("clickShopsBtn")}}),this._main.h.modals.events.onOpen.add(this.#modalId,{fn:()=>{this._main.h.metrics.userExp("openModalShops")}}),this._main.h.modals.events.onClose.add(this.#modalId,{fn:()=>{this._main.h.metrics.userExp("closeModalShops")}})}}
class Regions{modalId="choice-city";constructor(t){this._main=t._main,this._parent=t._parent,this.n.get(),this.n.modal&&(this.init.full(),this.init.metrics())}n={get:()=>{this.n.modal=document.querySelector("#"+this.modalId),this.n.modal&&(this.n.bl={s:{node:this.n.modal.querySelector("#region_search")},l:{node:this.n.modal.querySelector("#regions_list")}},this.n.bl.l.points=this.n.bl.l.node.querySelectorAll("li"),this.n.cityItems=this.n.bl.l.node.querySelectorAll("a"))}};init={search:()=>{this.n.bl.s.node&&this.n.bl.l.node&&this.n.bl.s.node.addEventListener("keyup",t=>{let e=t.target.value;this.n.bl.l.points.forEach(t=>{-1==t.innerText.toLowerCase().indexOf(e.toLowerCase())?"none"!=t.style.display&&(t.style.display="none"):"flex"!=t.style.display&&(t.style.display="flex")})})},full:()=>{this.init.search()},metrics:()=>{this.n.cityItems.forEach(t=>{t.addEventListener("click",()=>{this._main.h.metrics.userExp("clickOnCityMenu",t.textContent)})})}}}
class TabbyHandler{constructor(t=0,n={}){this._main=n._main,this._parent=n._parent}initProductNotify(t=[],o={}){t.forEach(n=>{if("object"==typeof n){let t=()=>{new TabbyPromo({selector:"#"+n.id,currency:this._main.const("siteCurrency"),price:o.price,installmentsCount:4,lang:this._main.const("siteLangVersion"),source:"product",publicKey:this._main.const("ps")?.tabby?.merchant,merchantCode:this._main.const("ps")?.tabby?.publicKey})};var e;n.innerHTML="","function"!=typeof TabbyPromo?((e=document.createElement("script")).src="https://checkout.tabby.ai/tabby-promo.js",e.onload=()=>{"function"==typeof TabbyPromo&&t()},n.insertAdjacentElement("beforeEnd",e)):t()}})}}
class InstallmentsHandler{inst={brokerage:!1,skrepka:!1,tabby:!1};constructor(e=0,t={}){this._main=t._main,this._parent=t._parent,this.init()}init(){switch(this._main.const("region")){case"kz":this.inst.brokerage="undefined"==typeof BrokerageHandler||this.inst.brokerage?this.inst.brokerage:new BrokerageHandler({},{_main:this._main,_parent:this});break;case"by":this.inst.skrepka="undefined"==typeof SkrepkaHandler||this.inst.skrepka?this.inst.skrepka:new SkrepkaHandler({},{_main:this._main,_parent:this});break;case"ae":this.inst.tabby="undefined"==typeof TabbyHandler||this.inst.tabby?this.inst.tabby:new TabbyHandler({},{_main:this._main,_parent:this});break;default:return}}}
class User{#queryURL="/local/action/user.php";constructor(s,t){this._main=t._main,this._parent=t._parent,this.actionsInit.formsProcessorSetting()}h={regAuth:!1};blocks={n:{modal:{},forms:{}},get:()=>{}};actionsInit={formsProcessorSetting:()=>{this.formsProcessor=new FormsProcessor({params:{siteId:this._main.sd.siteConsts.siteId}},{_main:this._main,_parent:this})},phoneMask:s=>{var t;this.blocks.n.form&&(t=this.blocks.n.form.querySelector('.cabinet__form input[type="tel"]'),Utils.phoneValidator.set(t,{siteId:this._main.sd.siteConsts.siteId,region:s,pattern:this._main.sd.phonePatterns[s].mask,placeholder:this._main.sd.phonePatterns[s].placeholder}))},full:()=>{}}}
class UserRegistrationAuthorization{constructor(s,t){this._main=t._main,this._parent=t._parent,this.p=s.params,this.scriptSrc=this._main.sd.user.actionScript,this.actionsInit.formsProcessorSetting(),this.init.metrics()}h={react:!1};blocks={n:{modal:{},forms:{}},get:()=>{this._main.h.modals.init(),this.blocks.n.modal=document.querySelector("#"+this._main.sd.user.regauth.params.modalId),this.blocks.n.form=this.blocks.n.modal.querySelector("form"),this.blocks.n.btnProcess=this.blocks.n.form.querySelector('button[type="submit"]')}};init={metrics:()=>{this._main.h.modals.events.onOpen.add(this.p.modalId,{fn:()=>{this._main.h.metrics.userExp("openAuthForm")}})}};actionsInit={formsProcessorSetting:()=>{this.formsProcessor=new FormsProcessor({params:{siteId:this._main.const("siteId")}},{_main:this._main,_parent:this})},phoneMask:t=>{this.blocks.n.form&&this.blocks.n.form.querySelectorAll(".form-row__input").forEach(s=>{"tel"!=s.type||s.classList.contains("check-code-input")?Utils.phoneValidator.destroy(s):Utils.phoneValidator.set(s,{siteId:this._main.const("siteId"),region:t,pattern:this._main.const("phonePatterns")[t].mask,placeholder:this._main.const("phonePatterns")[t].placeholder})})},formSubmitProcess:()=>{!this.blocks.n.form||this.blocks.n.form.submitProcessWasSet||(this.blocks.n.form.submitProcessWasSet=!0,this.blocks.n.form.addEventListener("submit",s=>{s.preventDefault();s=this.h.react.modal.state;this.actions.processSubmit.ways[s.way][s.method]["stage"+s.stage]()}))},full:()=>{this.blocks.get(),this.actionsInit.phoneMask(this._main.const("region")),this.actionsInit.formSubmitProcess()}};actions={init:()=>{},changeWay:s=>{var t;!0==!!this.h.react.modal.props.availaible[s]?this.h.react.modal.setState(this.h.react.modal.props.availaible[s][this.h.react.modal.state.method]?{way:s,stage:1}:{way:s,method:Object.keys(this.h.react.modal.props.availaible[s])[0],stage:1}):(s=Object.keys(this.h.react.modal.props.availaible),t=Object.keys(this.h.react.modal.props.availaible[s[0]]),this.h.react.modal.setState({way:s[0],method:t[0],stage:1}))},changeMethod:s=>{var s=s.target.closest("input"),t=Object.keys(this.h.react.modal.props.availaible[this.h.react.modal.state.way]);this.h.react.modal.setState({method:-1!==t.indexOf(s.value)?s.value:t[0],stage:1})},processSubmit:{ways:{auth:{phone:{stage1:()=>{this.formsProcessor.response.success=s=>{1==s.status&&this.h.react.modal.setState({stage:2}),s.message&&this._main.iw.show.smallWindow(s.message,{showDuration:5e3})},this.formsProcessor.process(this.blocks.n.form,{action:"send",type:"auth",method:"phone",stage:1,url:this.scriptSrc})},stage2:()=>{this.formsProcessor.response.success=s=>{s.message&&this._main.iw.show.smallWindow(s.message,{showDuration:5e3}),s.status&&window.location.reload()},this.formsProcessor.process(this.blocks.n.form,{action:"send",type:"auth",method:"phone",stage:2,url:this.scriptSrc})}},email:{stage1:()=>{this.formsProcessor.response.success=s=>{s.message&&this._main.iw.show.smallWindow(s.message,{showDuration:5e3}),s.status&&window.location.reload()},this.formsProcessor.process(this.blocks.n.form,{action:"send",type:"auth",method:"email",stage:1,url:this.scriptSrc})}}},reg:{phone:{stage1:()=>{this.formsProcessor.response.success=s=>{s.message&&this._main.iw.show.smallWindow(s.message,{showDuration:5e3}),s.status&&this.h.react.modal.setState({stage:2})},this.formsProcessor.process(this.blocks.n.form,{action:"send",type:"reg",method:"phone",stage:1,url:this.scriptSrc})},stage2:()=>{this.formsProcessor.response.success=s=>{s.message&&this._main.iw.show.smallWindow(s.message,{showDuration:5e3}),s.status&&window.location.reload()},this.formsProcessor.process(this.blocks.n.form,{action:"send",type:"reg",method:"phone",stage:2,url:this.scriptSrc})}},email:{stage1:()=>{this.formsProcessor.response.success=s=>{s.message&&this._main.iw.show.smallWindow(s.message,{showDuration:5e3}),s.status&&this.h.react.modal.setState({stage:2})},this.formsProcessor.process(this.blocks.n.form,{action:"send",type:"reg",method:"email",stage:1,url:this.scriptSrc})},stage2:()=>{this.formsProcessor.response.success=s=>{s.message&&this._main.iw.show.smallWindow(s.message,{showDuration:5e3}),s.status&&window.location.reload()},this.formsProcessor.process(this.blocks.n.form,{action:"send",type:"reg",method:"email",stage:2,url:this.scriptSrc})}}}}}}}
class MainHandler{n={};h={catH:{}};sd={};catH={};constructor(t,e=()=>{}){Utils.setFieldsObject(t.data,this.sd),this.gm=this.actions.gm,this.const=this.actions.const,this.init.main(e).then(t=>{})}init={_constructor:{_main:this,_parent:this},compability:()=>{let e=setInterval(()=>{if(void 0!==window.prodBlocks){for(var t in window.prodBlocks)"object"!=typeof window.prodBlocks[t].h||window.prodBlocks[t].h._main||(window.prodBlocks[t].h._main=this);"undefined"==typeof smBask||null==smBask||smBask._main||(smBask._main=this),"undefined"!=typeof metric&&(metric=this.h.metrics),"undefined"==typeof basketHandler||(basketHandler=basketHandler||this.h.basket),"undefined"==typeof BOC||(BOC=BOC||this.h.order),clearInterval(e)}},300)},handlers:()=>{this.h.iw="undefined"!=typeof InfoWindows?new InfoWindows({JSObjectName:"infoWindowsHandler"},this.init._constructor):{},this.iw=this.h.iw,this.h.ls="function"==typeof CacheManager?new CacheManager({storage:"localStorage"}):{},this.h.ss="function"==typeof CacheManager?new CacheManager({storage:"sessionStorage"}):{},this.ls=this.h.ls,this.ss=this.h.ss,this.h.metrics="function"==typeof MetricsMainHandler?new MetricsMainHandler({},this.init._constructor):{},this.h.modals="undefined"!=typeof modals?modals:"undefined"!=typeof Modals?new Modals({JSObjectName:"modals"},this.init._constructor):{init:()=>{}},this.h.modals.init(),this.h.popups="undefined"!=typeof pps?pps:"undefined"!=typeof Popups?new Popups({JSObjectName:"pps"},this.init._constructor):{init:()=>{}},this.h.popups.init(),this.h.basket="function"==typeof Basket?new Basket({},this.init._constructor):{},this.h.compare="function"==typeof Compare?new Compare({},this.init._constructor):{},this.h.search="undefined"!=typeof SearchHandler?new SearchHandler(this.sd.search,this.init._constructor):{},this.h.hf="function"==typeof HeaderFooterHandler?new HeaderFooterHandler(this.init._constructor):{},this.h.shopsPopup="function"==typeof Shops?new Shops(this.init._constructor):{},this.h.selectLang=this.const("isBot")||"function"!=typeof SelectLangSite?{}:new SelectLangSite(this.init._constructor),this.h.regions="function"==typeof Regions?new Regions(this.init._constructor):{},this.h.crm=this.h.crm??{},this.h.crm.cbHeader="function"!=typeof CallbackHeader||this.const("isBot")?{}:new CallbackHeader({},this.init._constructor),this.h.installments="function"==typeof InstallmentsHandler?new InstallmentsHandler({},this.init._constructor):{},this.h.order="function"==typeof Order?new Order({},this.init._constructor):{},this.h.favorites="function"==typeof Favorites?new Favorites({},this.init._constructor):{},this.h.files="function"==typeof Files?new Files({},this.init._constructor):{}},metricsEvents:{clickToPhone:()=>{document.querySelectorAll("a").forEach(t=>{-1!==t.href.indexOf("tel:")&&t.addEventListener("click",()=>{this.h.metrics.userExp("clickToPhone")})})},openBxOpenLines:()=>{window.addEventListener("onBitrixLiveChat",t=>{var e=document.querySelector(".b24-widget-button-wrapper");let s=e.querySelector(".b24-widget-button-inner-container");s&&s.addEventListener("click",t=>{var e=s.parentNode.parentNode.querySelector(".b24-widget-button-shadow");e&&e.classList.contains("b24-widget-button-show")&&this.h.metrics.userExp("clickBxOpenLines"),e&&e.classList.contains("b24-widget-button-hide")&&this.h.metrics.userExp("clickBxCloseLines")}),e.querySelectorAll("[data-b24-crm-button-widget]").forEach(t=>{t.addEventListener("click",t=>{t=t.target.closest("[data-b24-crm-button-widget]");-1!==t.dataset.b24CrmButtonWidget.indexOf("whatsapp")&&this.h.metrics.userExp("clickBxOLWA"),-1!==t.dataset.b24CrmButtonWidget.indexOf("telegram")&&this.h.metrics.userExp("clickBxOLTelegram"),-1!==t.dataset.b24CrmButtonWidget.indexOf("viber")&&this.h.metrics.userExp("clickBxOLViber"),-1!==t.dataset.b24CrmButtonWidget.indexOf("callback")&&this.h.metrics.userExp("clickBxOLCallback"),-1!==t.dataset.b24CrmButtonWidget.indexOf("livechat")&&this.h.metrics.userExp("clickBxOLChat")})}),t.detail.widget.subscribe({type:BX.LiveChatWidget.SubscriptionType.userMessage,callback:t=>{this.h.metrics.userExp("bxChatSendMessage")}})})},full:()=>{!0!==this.const("isBot")&&(this.init.metricsEvents.clickToPhone(),this.init.metricsEvents.openBxOpenLines())}},main:async(t=()=>{})=>{this.init.handlers(),this.init.compability();return t&&t(this),this.init.metricsEvents.full(),!0}};actions={gm:(t,e={})=>{let s=this.sd.glLang[t];for(var i in e)-1!=s.indexOf(i)&&(s=s.replace(i,e[i]));return s},const:(t="")=>this.sd.siteConsts[t]};componentDataCache=class{key="";s="";storage={};constructor(t,e={}){this._main=e._main,this._parent=e._parent,this.key=t.cacheKey,this.s=t.siteId??this._main.const("siteId"),"sessionStorage"===t.storage?this.storage=this._main.ss??!1:this.storage=this._main.ls??!1}getTTLKey(){return Math.round(Date.now()/1e3/60/10)}checkStorage(){return!(!this.storage||0==Object.keys(this.storage).length||"object"!=typeof this.storage)}cleanAllCache(){var t,e;return!(!this.checkStorage()||(t=this.storage.get(this.key),e=this.s,!t)||!t[e])&&(delete t[e],void this.storage.set(this.key,t))}cleaning(){if(!this.checkStorage())return!1;var t=this.storage.get(this.key),e=this.s;if(!t||!t[e])return!1;var s,i=this.getTTLKey();let n=!1;for(s in t[e])s!=i&&(n=!0,delete t[e][s]);n&&this.storage.set(this.key,t)}set(t,e){var s,i,n;return!!this.checkStorage()&&(s=(s=this.storage.get(this.key))||{},i=this.s,n=this.getTTLKey(),s[i]=s[i]||{},s[i][n]=s[i][n]||{},s[i][n][t]=e,this.storage.set(this.key,s),!0)}get(t){var e,s,i;return!!this.checkStorage()&&(e=this.s,!!(s=this.storage.get(this.key)))&&(i=this.getTTLKey(),s?.[e]?.[i]||(s[e]={}),s?.[e]?.[i]?.[t])}delete(t){var e,s,i;return!!this.checkStorage()&&(e=(e=this.storage.get(this.key))||{},s=this.s,i=this.getTTLKey(),e[s]=e[s]||{},e[s][i]=e[s][i]||{},e[s][i][t]&&delete e[s][i][t],this.storage.set(this.key,e),!0)}}}
class FormsProcessor{constructor(e,t=0){this.params=e.params}service={setValue:(e,t,s)=>{let a=t;for(;-1!=a.indexOf("]");)a=a.replace("]","");a=a.split(/\s*\[\s*/);let l=e;return a.forEach((e,t)=>{l[e]=l[e]??{},t==a.length-1?l[e]=s:l=l[e]}),e},collectFormValues:a=>{let l={};a.querySelectorAll("input").forEach(e=>{""==e.name||e.dataset.not_for_sku||("checkbox"!=e.type&&"radio"!=e.type||1==e.checked)&&(l=this.service.setValue(l,e.name,e.value))}),a.querySelectorAll("select").forEach(e=>{""!=e.name&&(l=this.service.setValue(l,e.name,e.value))});a.querySelectorAll("textarea").forEach(e=>{""!=e.name&&(l=this.service.setValue(l,e.name,e.value))});var e=a.querySelectorAll('[type="file"]');return a.filesLoaded=0,e.forEach(s=>{if(""!=s.name)for(let t in s.files)if("object"==typeof s.files[t]){let e=new FileReader;e.readAsDataURL(s.files[t]),e.onload=()=>{l=this.service.setValue(l,s.name,{content:e.result,name:s.files[t].name,size:s.files[t].size,type:s.files[t].type}),a.filesLoaded++,this.request.async(this.requestData[a.dataset.type],a)}}}),l},calcFormFilesCount:t=>{var e;return"object"==typeof t&&t.tagName?(e=t.querySelectorAll('[type="file"]'),t.filesNum=0,e.forEach(e=>{""!=e.name&&(t.filesNum+=e.files.length)}),t.filesNum):0}};getRequestData(e,t={action:"send"},s={}){switch(t.type||(t.type="default"),(t="object"!=typeof t?{}:t).action){case"load":case"send":break;default:t.action="send"}var a=t.url||("object"==typeof e?e.action:""),l=(delete t.url,{}),e=("object"==typeof e&&e.tagName&&Utils.setFieldsObject(this.service.collectFormValues(e),l),Utils.setFieldsObject(s,l),{url:a,params:t,siteId:this.params.siteId,values:l});return e}request={sync:(e,t)=>{var s=e.url;delete e.url,fetch(s,{headers:{"Content-Type":t.enctype||"multipart/form-data"},method:t.method||"POST",body:JSON.stringify(e)}).then(e=>e.json()).then(e=>{this.response.success(e)}).catch(e=>{this.response.catch(e),console.log(e)}).finally(()=>{this.response.finally(),this.requestData[e.type]={}})},async:(e,t,s={filesCount:!0})=>{let a=!0;(a=!0===s.filesCount&&(s=this.service.calcFormFilesCount(t),t.filesLoaded<s)?!1:a)&&this.request.sync(e,t)}};process(e,t={action:"send"},s={}){this.requestData=this.requestData||{},this.requestData[t.type]=this.getRequestData(e,t,s),0<this.service.calcFormFilesCount(e)||this.request.sync(this.requestData[t.type],e)}response={success:()=>{console.log("form response success")},catch:()=>{console.log("form response catch branch")},finally:()=>{console.log("form response finally branch")}}}
class CRMFormsCommon{#queryPath="/local/action/forms.php";constructor(a=0,t={}){this._main=t._main,this._parent=t._parent}getRequestData(a,t={action:"load",form:"callback_header",type:""}){return a.site_id=this._main.const("siteId"),a.params=a.params??{},a.params.action="load"==t.action||"send"==t.action?t.action:"load",a.params.form=t.form,a.params.type=t.type,a}request(a={},t={},e=()=>{}){a=this.getRequestData(a,t),fetch(this.#queryPath,{method:"POST",headers:{"Content-Type":"multipart/formdata"},body:JSON.stringify(a)}).then(a=>a.json()).then(a=>{a.message&&this._main.iw.show.smallWindow(a.message),e&&e(a)})}}
class CallbackHeader extends CRMFormsCommon{#formName="callback_header";#modalId="call-back";constructor(t={},e={}){super(t,e),this._main=e._main,this._parent=e._parent,this.actionsInit.load()}getForm(){this.modal=document.querySelector("#call-back"),this.form=this.modal.querySelector(".callback_header_form")}actionsInit={makeLangSelect:()=>{this.form&&this.form.querySelectorAll(".callback__lang-select").forEach(t=>{if(!t.tomselect)try{new TomSelect(t,{controlInput:null,render:{option:function(t,e){return`<div><img class="me-2" src="${t.src}">${t.text}</div>`},item:function(t,e){return`<div><img class="me-2" src="${t.src}">${t.text}</div>`}}})}catch(t){console.log(t)}})},selectTimeForm:()=>{if(this.form){try{this.form.querySelectorAll(".call-back__time-btn").forEach(t=>{t.addEventListener("click",t=>{t=t.target.closest(".call-back");t&&t.classList.add("call-back--active")})})}catch(t){console.log(t)}for(var t in this.dateSelects={day:{node:this.form.querySelector('[name="values[day]"]'),ts:{}},time:{node:this.form.querySelector('[name="values[time]"]'),ts:{}}},this.dateSelects){var e=this.dateSelects[t].node;e&&!e.tomselect&&(this.dateSelects[t].ts=new TomSelect(e,{create:!1}))}}},phoneMask:()=>{var t;this.form&&(t=this.form.querySelector(".form-row__input"),Utils.phoneValidator.set(t,{siteId:this._main.const("siteId"),region:this._main.const("region"),pattern:this._main.const("phone").mask,placeholder:this._main.const("phone").placeholder}))},getCallNowBtn:()=>{var t;this.form&&(t=this.form.querySelector(".call-back__call-now"))&&(t.onclick=()=>{var t=new Date(Date.now()+3e5).toLocaleString("ru-RU",{hour:"numeric",minute:"numeric",timeZone:this._main.const("timeZone")});this.dateSelects.time.ts.addOption({value:t,text:t}),this.dateSelects.time.ts.addItem(t)})},submit:()=>{this.form&&(this.form.onsubmit=t=>{t.preventDefault(),this.eventSubmit(t)})},load:()=>{this._main.h.modals.btn["call-back"].forEach(t=>{t.onclick=t=>{event.preventDefault(),t.preventDefault(),this._main.h.metrics.userExp("callbackOpen","header"),"kz"===this._main.const("region")&&"object"==typeof ringostatAPI?ringostatAPI.openCallbackForm():this.load("form")}})},full:()=>{this.actionsInit.makeLangSelect(),this.actionsInit.selectTimeForm(),this.actionsInit.phoneMask(),this.actionsInit.submit(),this.actionsInit.getCallNowBtn()}};load(t="form",e={}){t={action:"load",form:this.#formName,type:t};this.request(e,t,t=>{var e=document.querySelector("#"+this.#modalId);e&&e.parentNode.removeChild(e),1==t.status?(e=Utils.html.parseFromText(t.data.html),document.body.insertAdjacentElement("beforeEnd",e[0]),this._main.h.modals.init(),this._main.h.modals.mod[this.#modalId].removeAfterClosing=!0,this.getForm(),this.actionsInit.full(),this._main.h.modals.mod[this.#modalId].o(this._main.h.modals)):this._main.iw.show.smallWindow(this._main.gm("req_err_form"))})}eventSubmit(t){var e=Utils.html.getFormValues(this.form);this.request(e,{action:"send",form:this.#formName},t=>{switch(t.status){case!0:this.load("success",{result:{message:t.message}}),this._main.h.metrics.userExp("callbackSubmit","header");break;case!1:this.load("fail",{result:{message:t.message}}),setTimeout(()=>{this.load("form")},3e3)}})}}
class Files{files=[];tmpPath="/upload/forms_data/";constructor(e=0,t={}){this._main=t._main,this._parent=t._parent}uploadFiles(t,e=!1,i=()=>{}){var s=new FormData;for(let e=0;e<t.length;e++)s.append(e,t[e]);s.append("form",e),s.append("type","upload"),fetch("/local/action/upload_delete_file.php",{method:"POST",body:s}).then(e=>e.json()).then(e=>{e&&i&&i(e)}).catch(e=>{console.log(e)})}uploadPhoto(e,t,i){if(e.target.files.length){let a=i.querySelector("#"+t);this.files=Array.from(e.target.files);i=this.files;this.uploadFiles(i,"formFiles",e=>{e.status?(this.updateFilesCount(),e.files.forEach(t=>{if(t.status){this._main.iw.show.smallWindow(t.message);let e=document.createElement("div");e.setAttribute("class","preview"),e.setAttribute("name",t.file.name),e.setAttribute("id",t.file.newFileName),a.appendChild(e);var i=document.createElement("button"),s=(i.setAttribute("class","preview-remove"),i.setAttribute("type","button"),i.innerHTML='<svg class="icon-remove-image"><use href="'+this._main.const("siteTemplatePath")+'/images/icons/icons.svg#close"></use></svg>',e.appendChild(i),document.createElement("img"));s.setAttribute("class","upload-image"),s.setAttribute("src",this.tmpPath+t.file.newFileName),e.appendChild(s),i.addEventListener("click",()=>{this.deletePhoto(e)})}else this._main.iw.show.smallWindow(t.file.name+" "+this._main.gm("file_error")+". "+t.message)})):this._main.iw.show.smallWindow(e.message)})}}deletePhoto(t){let i=t.getAttribute("name");var e=t.getAttribute("id");this.deleteUploadedFiles(e,"formFiles",e=>{e[0].status?(this.files=this.files.filter(e=>e.name!==i),this.updateFilesCount(),t.remove()):this._main.iw.show.smallWindow(e[0].message)})}deleteUploadedFiles(e,t=!1,i=()=>{}){fetch("/local/action/upload_delete_file.php",{method:"POST",body:JSON.stringify({files:e,type:"delete",form:t}),headers:{"Content-Type":"multipart/formdata"}}).then(e=>e.json()).then(e=>{e&&i&&i(e)}).catch(e=>{console.log(e)})}updateFilesCount(){var e=Array.from(this.files),t=e.length,i=document.querySelector(".file-msg");1===t?(s=e[0].name.split("\\").pop(),i.innerHTML=s):i.innerHTML=1<t&&t<5?t+" "+this._main.gm("file_add"):t+" "+this._main.gm("files_add");var s=e.filter(function(e){return 8388608<e.size});0<s.length&&(alert(this._main.gm("max_size_alert")+s.map(function(e){return e.name}).join("\n")),this.value="",i.innerHTML=this._main.gm("rev_upload_type"))}}
class FormCallbackColors extends CRMFormsCommon{#formName="callback_colors-form";#modalId="call-back-color";constructor(s={},t={}){super(s,t)}blocks={n:{modal:{},forms:{},countries:{}},get:()=>{this.blocks.n.modal=document.querySelector("#call-back-color"),this.blocks.n.form=this.blocks.n.modal.querySelector(".callback_colors-form"),this.blocks.n.countries=!!this.blocks.n.form&&this.blocks.n.form.querySelector(".lang-select")}};actionsInit={formsProcessorSetting:()=>{this.formsProcessor=new FormsProcessor({params:{siteId:this._main.const("siteId")}},{_main:this._main,_parent:this})},languageSelect:{visual:()=>{if(this.blocks.n.countries&&!this.blocks.n.countries.tomselect)try{new TomSelect(this.blocks.n.countries,{controlInput:null,render:{option:function(s,t){return`<div><img class="me-2" src="${s.src}">${s.text}</div>`},item:function(s,t){return`<div><img class="me-2" src="${s.src}">${s.text}</div>`}}})}catch(s){console.log(s)}},event:()=>{this.blocks.n.countries&&(this.blocks.n.countries.onchange=this.actionsInit.languageSelect.processSelect)},processSelect:(s=!1)=>{s=s?s.target:this.blocks.n.countries;this.actionsInit.phoneMask(s.value)}},phoneMask:()=>{var s;this.blocks.n.form&&(s=this.blocks.n.form.querySelector(".form-row__input"),Utils.phoneValidator.set(s,{siteId:this._main.const("siteId"),region:this._main.const("region"),pattern:this._main.const("phone").mask,placeholder:this._main.const("phone").placeholder}))},submit:()=>{this.blocks.n.form&&(this.blocks.n.form.onsubmit=s=>{s.preventDefault(),this.eventSubmit(s)})},full:()=>{this.actionsInit.languageSelect.event(),this.actionsInit.languageSelect.processSelect(),this.actionsInit.languageSelect.visual(),this.actionsInit.submit()}};load(s="form",t={}){s={action:"load",form:this.#formName,type:s};this.request(t,s,s=>{var t=document.querySelector("#"+this.#modalId);t&&t.parentNode.removeChild(t),1==s.status?(t=Utils.html.parseFromText(s.data.html),document.body.insertAdjacentElement("beforeEnd",t[0]),this._main.h.modals.init(),this._main.h.modals.mod[this.#modalId].removeAfterClosing=!0,this.blocks.get(),this.actionsInit.full(),this._main.h.modals.mod[this.#modalId].o(this._main.h.modals)):this._main.iw.show.smallWindow(this._main.gm("req_err_form"))})}eventSubmit(s){var t=Utils.html.getFormValues(this.blocks.n.form);this.request(t,{action:"send",form:this.#formName},s=>{switch(s.status){case!0:this.load("success",{result:{message:s.message}});break;case!1:this.load("fail",{result:{message:s.message}}),setTimeout(()=>{this.load("form")},3e3)}})}}
const closeAllCheckBox=()=>{var e=document.querySelectorAll(".filter__content");document.querySelectorAll(".checkbox__btn").forEach(e=>{e.classList.remove("active")}),e.forEach(e=>{e.classList.remove("show")})},checkBoxHandler=e=>{var s=e.target.closest(".checkbox__btn"),l=e.target.closest(".filter__content");s&&(e.preventDefault(),e=s.nextElementSibling,s.classList.contains("active")?closeAllCheckBox():(closeAllCheckBox(),s.classList.add("active"),e.classList.add("show"))),s||l||closeAllCheckBox()},scrollHandler=(document.addEventListener("click",checkBoxHandler),e=>{var s=e.scrollTop,l=e.scrollHeight-e.offsetHeight;e.classList.contains("has-scroll")&&l<=s?e.classList.remove("has-scroll"):!e.classList.contains("has-scroll")&&s<l&&e.classList.add("has-scroll")}),$filterMenu=document.querySelectorAll(".filter__menu");if($filterMenu.forEach(e=>{scrollHandler(e),e.addEventListener("scroll",()=>{scrollHandler(e)})}),document.querySelector(".catalog-benefits__more")){function toggleActiveClass(e){e.preventDefault();var e=e.target.closest(".catalog-benefits__more"),s=e.previousElementSibling;s.classList.contains("is-active")?(s.classList.remove("is-active"),s.style.maxHeight=null,e.classList.remove("is-active")):(s.classList.add("is-active"),s.style.maxHeight=s.scrollHeight+"px",e.classList.add("is-active"))}const m=document.querySelector(".catalog-benefits__more");m.addEventListener("click",toggleActiveClass)}
class CatalogCommon{constructor(){this.seo.getNodes()}canQuery=!0;getRequestParams(e="loadSku",t={}){var a,s={cmpPrms:{siteId:this._main.const("siteId"),JSObjectName:this.p.props.JSObjectName,setPurchaseFunctionality:this.p.props.setPurchaseFunctionality,enableWebP:this.p.props.enableWebP,imagesQuality:this.p.props.imagesQuality,componentTemplateFolder:this.p.props.componentTemplateFolder,loadSkuScript:t.loadSkuScript??this.p.props.loadSkuScript,setActiveFirstPicOnBlur:this.p.props.setActiveFirstPicOnBlur,sectionName:this.p.props.sectionName,propsToBasket:this.p.props.propsToBasket,isMobile:this.p.props.isMobile,bot:this.p.props.bot,openLinksNewWindow:this.p.props.openLinksNewWindow}};for(a in t)s[a]=t[a];switch(s.cmpPrms.itemNum=s.itemNum,delete s.itemNum,e){case"loadSku":case"loadItem":case"loadSlider":case"loadFabric":case"loadConstructor":case"loadProductsSlider":break;default:e="loadSku"}return s.action=e,s}request(e,t=!1){fetch(e.loadSkuScript??this.p.props.loadSkuScript,{method:"POST",headers:{"Content-Type":"multipart/formdata"},body:JSON.stringify(e)}).then(e=>e.json()).then(e=>{t&&t(e)}).catch(e=>{console.log(e)}).finally(()=>{this.canQuery=!0})}collectSelectedProperties(e=[]){let t={};return e.forEach(e=>{switch(e.nodeName){case"INPUT":e.dataset.shBeCons?e.checked&&"need"==e.dataset.shBeCons&&(t[e.dataset.typeProp]=e.value):e.checked&&(t[e.dataset.typeProp]=e.value);break;case"SELECT":e.dataset.multiple&&"json"===e.dataset.multiple?(e.value=e.value.replaceAll("&quot;",'"'),t[e.dataset.typeProp]=JSON.parse(e.value)):t[e.dataset.typeProp]=e.value}}),t}replaceBlock=Utils.html.replaceBlock;seo={metaData:{h1:"",title:"",canonical:"",metaDescription:"",metaKeywords:"",url:""},getNodes:()=>{this.seo.nodes={h1:document.querySelector("h1")??{},title:document.querySelector("title")??{},canonical:document.querySelector('link[rel="canonical"]')??{},metaDescription:document.querySelector('meta[name="description"]')??{},metaKeywords:document.querySelector('meta[name="keywords"]')??{}},this.seo.nodes.h1.set=e=>{this.seo.nodes.h1.innerHTML=e},this.seo.nodes.title.set=e=>{this.seo.nodes.title.innerHTML=e},this.seo.nodes.canonical.set=e=>{this.seo.nodes.canonical.href=e},this.seo.nodes.metaDescription.set=e=>{this.seo.nodes.metaDescription.content=e},this.seo.nodes.metaKeywords.set=e=>{this.seo.nodes.metaKeywords.content=e}},parse:e=>{e={h1:e.querySelector("body h1"),title:e.querySelector("head title, title"),canonical:e.querySelector('head link[rel="canonical"]'),metaDescription:e.querySelector('head meta[name="description"]'),metaKeywords:e.querySelector('head meta[name="keywords"]')};this.seo.metaData.h1=e.h1?e.h1.innerHTML:this.seo.metaData.h1,this.seo.metaData.title=e.title?e.title.innerHTML:this.seo.metaData.title,this.seo.metaData.canonical=e.canonical?e.canonical.href:this.seo.metaData.canonical,this.seo.metaData.metaDescription=e.metaDescription?e.metaDescription.content:this.seo.metaData.metaDescription,this.seo.metaData.metaKeywords=e.metaKeywords?e.metaKeywords.content:this.seo.metaData.metaKeywords,this.seo.metaData.url=this.seo.metaData.url??!1},getFrom:e=>{this.seo.metaData.h1=e.h1??this.seo.metaData.h1,this.seo.metaData.metaDescription=e.metaDescription??this.seo.metaData.metaDescription,this.seo.metaData.metaKeywords=e.metaKeywords??this.seo.metaData.metaKeywords,this.seo.metaData.title=e.title??this.seo.metaData.title,this.seo.metaData.canonical=e.canonical??this.seo.metaData.canonical,this.seo.metaData.url=e.url??this.seo.metaData.url},set:()=>{this.seo.metaData&&(this.seo.metaData.h1&&this.seo.nodes.h1.set(this.seo.metaData.h1),this.seo.metaData.title&&this.seo.nodes.title.set(this.seo.metaData.title),this.seo.metaData.canonical&&this.seo.nodes.canonical.set(this.seo.metaData.canonical),this.seo.metaData.metaDescription&&this.seo.nodes.metaDescription.set(this.seo.metaData.metaDescription),this.seo.metaData.metaKeywords&&this.seo.nodes.metaKeywords.set(this.seo.metaData.metaKeywords),this.seo.metaData.url)&&history.pushState(null,null,this.seo.metaData.url)}};blocks={}}
class SharesProductsList extends CatalogCommon{set sectionItemsCount(t){this.p.props.sectionItemsCount=parseInt(t),this.n.itemsCount.setCount(this.p.props.sectionItemsCount)}get sectionItemsCount(){return this.p.props.sectionItemsCount}cards={};constructor(t,e={}){super(t),t.mainSelector=t.sectionSelector,this._main=e._main,this._parent=e._parent,this.d={items:t.itemsArray,ecommerce:t.ecommerce},this.p={props:t.params,JSClassName:t.JSClassName,mainSelector:t.params.mainSelector},this.n.get.list(),this.plugins.sectionsMenu.init(),this.sort.init(),this.sectionItemsCount=this.p.props.sectionItemsCount,this.init.full(),this._main.catH=this._main.catH??{},this._main.catH[this.p.props.JSObjectName]={wrp:this.n.listWrap,h:this},this.analytics.init()}init={cards:()=>{for(var t in this.d.items){var t=this.d.items[t],e=JSON.stringify(this.p.props);this.n.cards[t.ID]=this.n.wrapper.querySelector("."+t.params.mainSelector),this.n.cards[t.ID]&&(this.cards[t.ID]=new Card_v1({productData:t,params:JSON.parse(e),node:this.n.cards[t.ID],mainNode:this.n.wrapper},{_main:this._main,_parent:this}))}},section:()=>{this.showMore.init(),this.infiniteScroll.init()},preorderFunctionality:()=>{this.preorder=new IWantForms({},{_main:this._main,_parent:this})},full:()=>{this.init.cards(),this.init.section(),this.init.preorderFunctionality()}};n={cards:{},get:{list:()=>{this.n.wrapper=document.querySelector(this.p.props.mainSelector),this.n.itemsList=this.n.wrapper.querySelector("."+this.p.props.sectionSelector),this.n.sortBlock=this.n.wrapper.querySelector("#sort-list"),this.n.sectionFilter=this.n.wrapper.querySelector("#section-filter-list"),this.n.sectionsMenuSlider=this.n.wrapper.querySelector("#catalog-slider"),this.n.itemsCount=this.n.wrapper.closest(".catalog, .container").querySelector(".catalog__counter"),this.n.itemsCount.setCount=t=>{this.n.itemsCount.innerText=this._main.gm("products")+": "+parseInt(t)},this.n.btnShowMore=this.n.wrapper.querySelector("[data-show-more]"),this.n.catalogDescription=this.n.wrapper.querySelector(".catalog-benefits"),this.n.pagination=this.n.wrapper.querySelector(".pagination")}}};sort={process:e=>{var t=location.href;Utils.cookie.set("catalogListSort",e,.001),t=Utils.http.GET.string.del(t,"PAGEN_2"),t=Utils.http.GET.string.del(t,"PAGEN_1"),this.load.exec(t,{},t=>{this._main.h.metrics.userExp("catalogSortApply",e)})},init:()=>{this.n.sortBlock&&(this.n.sortBlock.addEventListener("change",t=>{t=t.target.closest("select");this.sort.process(t.value)}),this.n.sortBlock.classList.remove("ts__preload"),"undefined"!=typeof TomSelect)&&(this.n.sortBlock=new TomSelect(this.n.sortBlock,{create:!1,controlInput:null,allowEmptyOption:!0}))}};load={html:{},exec:(t,e={},s={})=>{if(t){var i={wrpClass:this.p.props.sectionSelector,loading:"async",page:"sharesProductsList",siteId:this._main.const("siteId"),JSObjectName:this.p.props.JSObjectName};try{this._main.h.preloader.show()}catch(t){console.log(t)}fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(t=>{let e=!1;return(e=!0===t.redirected?t.url:e)?{redirect:e}:t.json()}).then(t=>{if(t.redirect)this.load.exec(t.redirect,e,s);else{t=t[this.p.props.JSObjectName],this.load.html.node=(new DOMParser).parseFromString(t.html,"text/html"),this.load.html.catalogList=this.load.html.node.querySelector("."+this.p.props.sectionSelector),this.load.html.pageNav=this.load.html.node.querySelector(".pagination_wrp"),this.load.html.sectionDescription=this.load.html.node.querySelector(".catalog-benefits"),this.load.html.breadcrumbs=this.load.html.node.querySelector(".breadcrumbs"),this.load.html.filters=this.load.html.node.querySelector(".catalog__filter-wrapper");try{if(this.load.html.pageNav&&(this.replaceBlock(this.n.wrapper.parentNode,this.load.html.pageNav),this.n.get.list()),this.load.html.catalogList){if(!0===e.loadMoreCards){var i=this.n.itemsList.querySelectorAll(".product-card");let e=[];i.forEach(t=>{e.push(t)}),e.reverse().forEach(t=>{this.load.html.catalogList.insertAdjacentElement("afterbegin",t)})}this.replaceBlock(this.n.wrapper.parentNode,this.load.html.catalogList),this.n.get.list()}this.load.html.sectionDescription&&(this.replaceBlock(this.n.wrapper.parentNode,this.load.html.sectionDescription),this.n.get.list()),this.load.html.breadcrumbs&&(this.replaceBlock(this.n.wrapper.parentNode,this.load.html.breadcrumbs),this.n.get.list()),this.load.html.filters&&this.p.props.smartFilterJSObjectName&&this._main.h[this.p.props.smartFilterJSObjectName].loadSect&&(this.replaceBlock(this.n.wrapper.parentNode,this.load.html.filters),this.n.get.list())}catch(t){console.log(t)}this.seo.getFrom(t.meta),this.seo.parse(this.load.html.node),this.seo.set(),Utils.setFieldsObject(t.jsData.itemsArray,this.d.items),this.d.ecommerce=t.jsData.ecommerce,this.n.get.list(),this.sectionItemsCount=t.jsData.params.sectionItemsCount,this.init.full(),s&&"function"==typeof s&&s(t)}}).catch(t=>{console.log("Failed to fetch page: ",t),console.log(t)}).finally(()=>{try{this._main.h.preloader.hide()}catch(t){console.log(t)}})}}};appendList(t){try{this.load.html.catalogList.forEach(t=>{this.n.wrapper.appendChild(t)})}catch(t){console.log(t)}}plugins={sectionsMenu:{destroy:()=>{this.plugins.sectionsMenu.spl&&this.plugins.sectionsMenu.spl.destroy(),this.plugins.sectionsMenu.spl=!1},make:()=>{var i=this.n.sectionsMenuSlider.querySelector(".splide__list"),s=this.n.sectionsMenuSlider.querySelectorAll(".splide__slide");if(!(s.length<1)){var t=this._main.const("rightSideOrientation"),n=(this.n.sectionsMenuSlider.classList.remove("splide__preload"),{perPage:10,perMove:1,arrows:!0,direction:t?"rtl":"ltr",paginationDirection:t?"rtl":"ltr",breakpoints:{1441:{},1367:{perPage:9},1200:{perPage:8},1024:{arrows:!1,gap:"45px",autoWidth:!0,focus:"center",start:3},980:{gap:"32px",start:0},768:{focus:0,start:0,pagination:!1,speed:50,flickPower:50,gap:"32px"},620:{focus:0,autoWidth:!0,pagination:!1,perMove:1}}});let e=!1;switch(!0){case 1441<window.innerWidth:s.length<=10&&(e=1441);break;case 1367<window.innerWidth:s.length<=10&&(e=1367);break;case 1024<window.innerWidth:s.length<=8&&(e=1024);break;case 910<window.innerWidth:s.length<=6&&(e=910);break;case 768<window.innerWidth:s.length<=5&&(e=768)}if(0<e){for(var r in n.drag=!1,delete n.focus,delete n.start,delete n.gap,n.breakpoints)r>=e&&(delete n.breakpoints[r].focus,delete n.breakpoints[r].start,delete n.breakpoints[r].gap);let t=!1;switch(!0){case 1441<window.innerWidth:s.length<=10&&(t="space-evenly"),s.length<=5&&(t="center");break;case 1367<window.innerWidth:s.length<=10&&(t="space-evenly"),s.length<=4&&(t="center");break;case 1024<window.innerWidth:s.length<=8&&(t="space-evenly"),s.length<=4&&(t="center");break;case 910<window.innerWidth:s.length<=6&&(t="space-evenly"),s.length<=3&&(t="center");break;case 768<window.innerWidth:s.length<=5&&(t="space-evenly"),s.length<=3&&(t="center");break;default:t="space-evenly"}i&&t&&(i.style.justifyContent=t)}else i&&(i.style.justifyContent="unset");this.plugins.sectionsMenu.spl=new Splide(this.n.sectionsMenuSlider,n);t=this.n.sectionsMenuSlider.querySelectorAll(".splide__slide");const o=document.querySelector(".catalog-slider-progress-bar");0===t.length&&o.remove(),this.plugins.sectionsMenu.spl.on("move",()=>{var t=this.plugins.sectionsMenu.spl.Components.Controller.getEnd()+1,t=Math.min((this.plugins.sectionsMenu.spl.index+1)/t,1);t<.73?0==this.plugins.sectionsMenu.spl.index?o.style.left="0":o.style.left=100*t+"%":o.style.left="calc(100% - 100px)"}),this.plugins.sectionsMenu.spl.mount()}},init:()=>{this.n.sectionsMenuSlider&&(this.plugins.sectionsMenu.make(),window.addEventListener("resize",()=>{this.plugins.sectionsMenu.destroy(),this.plugins.sectionsMenu.make()}))}}};showMore={process:()=>{var t=this.n.wrapper.querySelector(".pagination__next").href;this.load.exec(t,{loadMoreCards:!0},t=>{})},init:()=>{this.n.btnShowMore&&!0!==this.n.btnShowMore.initialized&&(this.n.btnShowMore.initialized=!0,this.n.btnShowMore.addEventListener("click",()=>{this.n.btnShowMore.disabled=!0,this.showMore.process()}),this.n.btnShowMore.disabled=!1)}};analytics={scrollTracking:()=>{if(this.d.ecommerce.items){var t=window.pageYOffset,e=(window.innerHeight,this.n.wrapper.offsetTop);if(t<=this.n.wrapper.clientHeight+e)try{!this.analytics.blockShow&&this._main&&(this._main.h.metrics.viewItemsList(this.d.ecommerce.items,{blockName:this.p.props.blockName??this.p.props.sectionName??"catalog section"}),window.removeEventListener("scroll",this.analytics.scrollTracking),this.analytics.blockShow=!0)}catch(t){console.log(t)}}},initScrollTracking:()=>{window.addEventListener("scroll",this.analytics.scrollTracking)},showSection:()=>{try{this._main.h.metrics.showSection({sectionCode:this.p.props.sectionCode}),-1!==window.location.href.indexOf("utsenyennye-tovary")&&this._main.h.metrics.userExp("showMarkdownProductsList")}catch(t){console.log(t)}},init:()=>{this.analytics.initScrollTracking(),this.analytics.showSection()}};basket={procAll:t=>{for(var e in t?this.basket.bsktList=t:t=this.basket.bsktList,this.cards)this.cards[e].bskt.procState(t)}};fav={procAll:t=>{for(var e in t?this.fav.favList=t:t=this.fav.favList,this.cards)this.cards[e].fav.procState(t)}};cmp={procAll:t=>{for(var e in t?this.cmp.cmpList=t:t=this.cmp.cmpList,this.cards)this.cards[e].cmp.procState(t)}};infiniteScroll={isLoading:!1,fetchNextPage:()=>{var t=this.n.wrapper.querySelector(".pagination__next")??null;!this.infiniteScroll.isLoading&&t&&(this.infiniteScroll.isLoading=!0,this.load.exec(t.href,{loadMoreCards:!0},t=>{this.infiniteScroll.isLoading=!1}))},init:()=>{!this.n.wrapper||this.infiniteScroll.isLoading||window.addEventListener("scroll",()=>{this.n.wrapper.getBoundingClientRect().bottom<=window.innerHeight&&this.infiniteScroll.fetchNextPage()})}}}
class Card_v1{p={};cards={};productData={};canQuery=!0;constructor(t,e={}){return this._main=e._main,this._parent=e._parent,t.productData.params.itemNum=parseInt(t.productData.params.itemNum),Utils.setFieldsObject(t.params,this.p),this.n.node=t.node,this.n.listWrap=t.mainNode,this.productData=t.productData,this.cardView=!1,this.init.all(),this}init={actions:{buyInOneClick:()=>{var t=this.n.node.querySelector("[data-boc]");t&&(t.removeAttribute("[data-boc]"),t.addEventListener("click",()=>{this._main.h.order.create.oneClick.load("load",{itemsId:[this.productData.SELECTED_ID??this.productData.ID],page:"catalogSection",source:"in_one_click"})}))},loadSku:()=>{var t=this.n.node.querySelectorAll("[data-type-prop]");t.length&&t.forEach(t=>{!0!==t.loadSkuEventWasSet&&(t.loadSkuEventWasSet=!0,t.addEventListener("click",t=>{this.sku.load(t.target.closest("[data-type-prop]"))}))})},favorites:()=>{this.n.node.querySelectorAll('[data-btn="favorite"]').forEach(t=>{1!=t.favActionsWasInit&&(t.addEventListener("click",this.fav.processClick),t.favActionsWasInit=!0)})},compare:()=>{this.n.node.querySelectorAll('[data-btn="compare"]').forEach(t=>{1!=t.cmpActionsWasInit&&(t.addEventListener("click",this.cmp.processClick),t.cmpActionsWasInit=!0)})},addToCart:()=>{this.n.node.querySelectorAll('[data-btn="basket"]').forEach(t=>{1!=t.basketActionsWasInit&&(t.addEventListener("click",this.bskt.processClick),t.basketActionsWasInit=!0)})},all:()=>{this.init.actions.buyInOneClick(),this.init.actions.loadSku(),this.init.actions.favorites(),this.init.actions.compare(),this.init.actions.addToCart()}},all:()=>{this.n.get(),this.p.bot||(this.slider.imgLazyLoading.set(),this.slider.initSliders()),this._parent.canQuery=!0,this.init.actions.all(),this.analytics.init()}};n={get:()=>{this.n.listWrap=this.n.listWrap??document.querySelector("."+this.p.sectionSelector)}};sku={load:t=>{if(this.productData.SELECTED_ID&&!0===this._parent.canQuery){this._parent.canQuery=!1;var t={property:t.dataset.typeProp,value:t.value},e=this.n.node.dataset,t=this._parent.getRequestParams("loadSku",{id:this.productData.ID,skuSelectedProps:this.sku.getSelParams(),clickOn:t,itemNum:e.num,editAreaId:this.n.node.id,mainSelector:this.p.sectionSelector}),e=t=>{this._parent.canQuery=!0,this.productData.SELECTED_ID=t.id,this.productData.SELECTED_XML_ID=t.xmlId,this.productData.params.itemPrice=t.itemPrice,this.productData.params.quantity=t.quantity,this.sku.replaceBlocks(t.blocks),this.init.all(),this.fav.procState(),this.cmp.procState(),this.bskt.procState()};try{this._parent.request(t,e)}catch(t){console.log(t),this._parent.canQuery=!0}}},getSelParams:()=>{let t={};var e,a=this.n.node.querySelector(".sku_params");return a&&(e=a.querySelectorAll("input"),a=a.querySelectorAll("select"),t=this._parent.collectSelectedProperties([...e,...a])),t},replaceBlock:Utils.html.replaceBlock,replaceBlocks:t=>{for(var e in t){t[e]=Utils.parseNodeFromText(t[e])[0];var a=this.sku.replaceBlock(this.n.node,t[e]);"slider"===e&&(delete this.slider.sliders[a.dataset.hash],this.slider.initSliders(t[e]))}}};slider={sliders:{},slideForHover:(t,a)=>{this.p.isMobile||this.p.bot||t.querySelectorAll(".splide__pagination__page").forEach(e=>{e.addEventListener("mouseenter",()=>{var t=e.getAttribute("aria-label").replace(/^\D+/g,"");a.go(parseInt(t-1,10))})})},initSliders:(t=!1)=>{try{var e=t?[t]:this.n.node.querySelectorAll(".splide__gallery");if(e.length){let a=this._main.const("rightSideOrientation");e.forEach((t,e)=>{t.classList.contains("is-initialized")||t.classList.contains("lazy-load-waiting")||(t.classList.remove("splide__preload"),t.id=`product-gallery-${t.dataset.hash}-`+this.p.JSObjectName,this.slider.sliders[t.dataset.hash]=new Splide("#"+t.id,{type:"fade",pagination:!this.p.isMobile,arrows:!1,gap:0,drag:!0,direction:a?"rtl":"ltr",paginationDirection:a?"rtl":"ltr",breakpoints:{}}),this.slider.sliders[t.dataset.hash].mount(),1<this.slider.sliders[t.dataset.hash].length&&this.slider.slideForHover(t,this.slider.sliders[t.dataset.hash]))})}}catch(t){console.log(t)}},imgLazyLoading:{set:()=>{this.slider.imgLazyLoading.sliderLazyLoadEventWasSet||(this.slider.imgLazyLoading.sliderLazyLoadEventWasSet=!0,this.slider.imgLazyLoading.scrollProcess(),window.addEventListener("scroll",()=>{this.slider.imgLazyLoading.scrollProcess(),this.slider.imgLazyLoading.scrollCards()}))},scrollProcess:t=>{for(var e in this.cards){var a,i,e=this.cards[e];!0!==e.lazyLoadImgWasLoaded&&((a=e.querySelector(".splide__gallery"))&&a.classList.contains("lazy-load-waiting")&&(i=e.getBoundingClientRect(),window.innerHeight>i.y)&&-200<i.y)&&(a.classList.remove("lazy-load-waiting"),a.querySelectorAll("img").forEach(t=>{t.dataset.src&&(t.src=t.dataset.src,t.removeAttribute("data-src"))}),e.lazyLoadImgWasLoaded=!0,this.slider.initSliders(a))}},scrollCards:()=>{if(!this.p.bot){var t=this.n.node.offsetTop,e=document.documentElement.clientHeight,a=document.documentElement.scrollTop;this.n.node.querySelectorAll(".splide__gallery");if(t<=a+e&&!this.cardView){t=this.n.node.querySelector("[data-src]");if(t){if(!t.dataset.src)return;t.setAttribute("src",t.dataset.src),t.removeAttribute("data-src"),"video/mp4"===t.type&&((a=this.n.node.querySelector("video")).load(),a.play())}this.cardView=!0}}}}};analytics={clickOnProduct:{process:e=>{e.preventDefault();var e=e.target.closest(".product-card").querySelector("a"),a="_blank"===e.target;try{this._main.h.metrics.clickOnProduct({link:e.href,id:this.productData.SELECTED_ID??this.productData.ID,position:this.productData.params.itemNum+1,blockName:this.p.blockName??this.p.sectionName??"catalog section",newWindow:a})}catch(t){console.log(t),a?window.open(e.href):window.location.href=e.href}},init:()=>{this.n.node.querySelectorAll("a:not(.product-card__image-lable)").forEach(t=>{t.removeEventListener("click",this.analytics.clickOnProduct.process),t.addEventListener("click",this.analytics.clickOnProduct.process)})}},init:()=>{this.analytics.clickOnProduct.init()}};fav={state:!1,favList:{},processClick:()=>{switch(this.fav.state){case!1:this.fav.add();break;case!0:this.fav.rm()}},add:()=>{event.preventDefault(),this._main.h.favorites.add(this.productData.SELECTED_ID??this.productData.ID,{blockName:this.p.blockName??this.p.sectionName??"favorites list",callbackFn:!1})},rm:()=>{event.preventDefault(),this._main.h.favorites.remove(this.productData.SELECTED_ID??this.productData.ID)},procState:(t=!1)=>{t?this.fav.favList=t:t=this.fav.favList;var e=this.n.node.querySelectorAll('[data-btn="favorite"]');e.length&&(this.fav.state=!!t&&Utils.object.checkIsChild(this.productData.SELECTED_ID??this.productData.ID,t),e.forEach(t=>{var e=t.querySelector("[data-hint]");switch(this.fav.state){case!0:t.classList.add("active"),e&&(e.innerText=this._main.gm("remove_from_favorites"));break;case!1:t.classList.remove("active"),e&&(e.innerText=this._main.gm("add_to_favorites"))}}))}};cmp={state:!1,cmpList:{},processClick:()=>{switch(this.cmp.state){case!1:this.cmp.add();break;case!0:this.cmp.rm()}},add:()=>{event.preventDefault(),this._main.h.compare.add(this.productData.SELECTED_ID??this.productData.ID,{blockName:this.p.blockName??this.p.sectionName??"favorites list",callbackFn:!1})},rm:()=>{event.preventDefault(),this._main.h.compare.remove(this.productData.SELECTED_ID??this.productData.ID)},procState:(t=!1)=>{t?this.cmp.cmpList=t:t=this.cmp.cmpList;var e=this.n.node.querySelectorAll('[data-btn="compare"]');e.length&&(this.cmp.state=!!t&&Utils.object.checkIsChild(this.productData.SELECTED_ID??this.productData.ID,t),e.forEach(t=>{var e=t.querySelector("[data-hint]");switch(this.cmp.state){case!0:t.classList.add("active"),e&&(e.innerText=this._main.gm("rm_from_cmp"));break;case!1:t.classList.remove("active"),e&&(e.innerText=this._main.gm("add_to_cmp"))}}))}};bskt={state:!1,bsktList:{},processClick:()=>{switch(this.bskt.state){case!1:this.bskt.add();break;case!0:window.location.href=this._main.const("siteDir")+"order/"}},add:()=>{event.preventDefault();var t={productPlaceProperties:{blockName:this.p.blockName??this.p.sectionName??"favorites list",position:this.productData.params.itemNum+1,quantity:1}};this._main.h.basket.add2basket(this.productData.SELECTED_ID??this.productData.ID,t)},rm:()=>{event.preventDefault(),this._main.h.basket.removeFromBasket(this.productData.SELECTED_ID??this.productData.ID)},procState:(t=!1)=>{t?this.bskt.bsktList=t:t=this.bskt.bsktList;var e=this.n.node.querySelectorAll('[data-btn="basket"]');e.length&&(this.bskt.state=!!t&&Utils.object.checkIsChild(this.productData.SELECTED_ID??this.productData.ID,t),e.forEach(t=>{switch(this.bskt.state){case!0:t.classList.add("active"),t.innerText=this._main.gm("go_to_basket");break;case!1:t.classList.remove("active"),t.innerText=this._main.gm("add_to_basket")}}))}}}
class IWantForms extends CRMFormsCommon{#formName="i-want-form";#modalId="i-want";constructor(t={},e={}){super(t,e),this.actionsInit.load()}getForm(){this.modal=document.querySelector("#i-want"),this.form=this.modal.querySelector(".iWant-form")}actionsInit={phoneMask:()=>{var t;this.form&&(t=this.form.querySelector(".form-row__input"),Utils.phoneValidator.set(t,{siteId:this._main.const("siteId"),region:this._main.const("region"),pattern:this._main.const("phone").mask,placeholder:this._main.const("phone").placeholder}))},submit:()=>{this.form&&(this.form.onsubmit=t=>{t.preventDefault(),this.eventSubmit(t)})},load:()=>{this._main.h.modals.btn["i-want"].forEach(t=>{t.onclick=t=>{var e=t.target.closest(".product-card__container");let s={};e&&(s={prodId:e.querySelector("form").dataset.id,prodName:e.querySelector(".product-card__title").innerText}),event.preventDefault(),t.preventDefault(),this.load("form",s)}})},full:()=>{this.actionsInit.phoneMask(),this.actionsInit.submit()}};load(t="form",e={}){t={action:"load",form:this.#formName,type:t};this.request(e,t,t=>{var e=document.querySelector("#"+this.#modalId);e&&e.parentNode.removeChild(e),1==t.status?(e=Utils.parseNodeFromText(t.data.html),document.body.insertAdjacentElement("beforeEnd",e[0]),this._main.h.modals.init(),this.getForm(),this.actionsInit.full(),this._main.h.modals.mod[this.#modalId].o(this._main.h.modals)):this._main.iw.show.smallWindow(this._main.gm("req_err_form"))})}eventSubmit(t){var e=Utils.html.getFormValues(this.form);this.request(e,{action:"send",form:this.#formName},t=>{switch(t.status){case!0:this.load("success",{result:{message:t.message}});break;case!1:this.load("fail",{result:{message:t.message}}),setTimeout(()=>{this.load("form")},3e3)}})}}
class SharesFilter{constructor(t={ajaxURL:"",params:"",items:""},e={}){this._main=e._main,this._parent=e._parent,this.form=null,this.timer=null,this.cacheKey="",this.cache=[],this.popups=[],this.allNoUiSliders=[],this.p={props:{JSObjectName:t.JSObjectName,catalogSectionJSObjectName:t.catalogSectionJSObjectName,ajaxURL:t.ajaxURL,mainSelector:t.mainSelector,formName:t.formName,clearURL:t.params.SEF_DEL_FILTER_URL}},this.d={filters:t.items},!0!==this._main.const("isBot")&&(this.init.all(),this.sectionFilter.init())}set filterURL(t){t=Utils.html.convertSpecialCharsBack(t),t=(t=(t=this.check.filtersSet()?t:(t=t.replace("/apply","")).replace("/filter","")).replace("/clear","")).replace("/filter/apply","");var e,i=Utils.http.GET.string.getAll(location.href);for(e in i)"filterPrepareLink"!==e&&(t=Utils.http.GET.string.set(t,e,i[e]));t=Utils.http.GET.string.del(t,"filterPrepareLink"),t=Utils.http.GET.string.del(t,"noindex"),t=Utils.http.GET.string.del(t,"PAGEN_1"),t=Utils.http.GET.string.del(t,"PAGEN_2"),t=Utils.http.GET.string.del(t,"PAGEN_3"),this.p.props.ajaxURL=t}get filterURL(){return this.p.props.ajaxURL}n={get:()=>{this.n.filterBlock=document.querySelector("."+this.p.props.mainSelector),this.n.sectionFilter=document.querySelector("#section-filter-list"),this.n.filterControlBlock=document.querySelector(`[data-filters-selector="${this.p.props.mainSelector}"]`),this.n.form&&(this.n.accordionBtns=this.n.filterBlock.querySelectorAll('[data-accordion="btn"]'),this.n.form=this.n.filterBlock.querySelector("#filter form"),this.n.btnShow=this.n.filterBlock.querySelector(".filter__btn-show"),this.n.btnReset=this.n.filterBlock.querySelectorAll(".filter__btn-reset"))},filterItems:{},filterItemsPreview:{},getFilters:()=>{for(var t in this.d.filters){var e,i=this.d.filters[t];for(e in i.PROPERTY_TYPE,i.VALUES){var s=i.VALUES[e];this.n.filterBlock&&(this.n.filterItems[s.CONTROL_ID]=this.n.filterBlock.querySelector("#"+s.CONTROL_ID),this.n.filterItemsPreview[s.CONTROL_ID]=this.n.filterBlock.querySelector("#preview_"+s.CONTROL_ID))}}}};init={loadFilterData:(e=()=>{})=>{var t=location.href,i={wrpClass:this.p.props.sectionSelector,loading:"async",page:"sharesFilter",siteId:this._main.const("siteId"),JSObjectName:this.p.props.JSObjectName};fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(t=>t.json()).then(t=>{t=t[this.p.props.JSObjectName];this.p.props.ajaxURL=t.ajaxURL,this.d.filters=t.items,"function"==typeof e&&e()}).catch(t=>{console.log(t)})},setFilterItemsEvents:()=>{for(var t in this.n.getFilters(),this.d.filters){var e,i=this.d.filters[t];for(e in i.PROPERTY_TYPE,i.VALUES){var s=i.VALUES[e].CONTROL_ID;if(this.n.filterItems[s]){let t="click";"INPUT"===this.n.filterItems[s].nodeName&&(t="change"),this.n.filterItems[s].addEventListener(t,t=>{this.a.click(t.target)})}if(this.n.filterItemsPreview[s]){let t="click";"INPUT"===this.n.filterItemsPreview[s].nodeName&&(t="change"),this.n.filterItemsPreview[s].addEventListener(t,t=>{this.a.click(t.target)})}}}this.n.btnShow&&(this.n.btnShow.set=(t=0)=>{this.n.btnShow.style.pointerEvents="auto",this.n.btnShow.style.backgroundColor="",this.n.btnShow.innerHTML=0<t?this._main.gm("show_filter")+" ("+t+")":this._main.gm("show_filter")},this.n.btnShow.unset=(t=0)=>{this.n.btnShow.style.pointerEvents="none",this.n.btnShow.style.backgroundColor="#cacaca",this.n.btnShow.innerHTML=0<t?this._main.gm("show_filter")+" ("+t+")":this._main.gm("show_filter")},this.n.btnShow.addEventListener("click",t=>{this.load.filteredContent()})),this.n.btnReset&&this.n.btnReset.forEach(t=>{t.set=()=>{t.style.display="inline-block",t.classList.remove("is-empty")},t.unset=()=>{t.style.display="none",t.classList.add("is-empty")},t.addEventListener("click",t=>{this.a.clean()})})},processFilterItemsState:()=>{for(var t in this.d.filters){var e,i=this.d.filters[t];for(e in i.VALUES){var s,r=i.VALUES[e],l=r.CONTROL_ID;this.n.filterItems[l]&&(this.n.filterItems[l].disabled=!!r.DISABLED,this.n.filterItems[l].disabled&&this.n.filterItems[l].checked&&(this.n.filterItems[l].checked=!1,this.n.filterItems[l].removeAttribute("checked")),s=this.n.filterItems[l].parentNode.querySelector(".checkbox__count"))&&(s.innerHTML=parseInt(r.ELEMENT_COUNT)),this.n.filterItemsPreview[l]&&(this.n.filterItemsPreview[l].disabled=!!r.DISABLED,this.n.filterItemsPreview[l].disabled&&this.n.filterItemsPreview[l].checked&&(this.n.filterItemsPreview[l].checked=!1,this.n.filterItemsPreview[l].removeAttribute("checked")),s=this.n.filterItemsPreview[l].parentNode.querySelector(".checkbox__count"))&&(s.innerHTML=parseInt(r.ELEMENT_COUNT))}}},visual:{rangeSlider:()=>{var t=document.querySelectorAll(".filter_price_slider");let l=!0;t.forEach(t=>{let i=t.querySelector(".filter-price__slider");let s=[t.querySelector(".filter-price__field--min"),t.querySelector(".filter-price__field--max")];t={min:Number(i.dataset.min),max:Number(i.dataset.max),startMin:Number(i.dataset.startMin),startMax:Number(i.dataset.startMax),step:Number(i.dataset.step)};this.allNoUiSliders.push(noUiSlider.create(i,{start:[t.startMin,t.startMax],step:t.step,connect:!0,range:{min:[t.min],max:[t.max]}}));let r=0;i.noUiSlider.on("update",(t,e)=>{l||(s[e].value=Math.round(t[e]),clearTimeout(r),r=setTimeout(()=>{this.a.reload(s[e])},1e3))}),s.forEach((t,e)=>{t.addEventListener("change",function(){i.noUiSlider.setHandle(e,this.value)})})}),l=!1},matchingIdenticalSliders:()=>{let t=[];this.allNoUiSliders.forEach((i,s)=>{let r=[];this.allNoUiSliders.forEach((t,e)=>{i.target.attributes.name.nodeValue===t.target.attributes.name.nodeValue&&s!==e&&(r.push(i),r.push(t),this.allNoUiSliders.splice(s,1),this.allNoUiSliders.splice(e-1,1))}),0<r.length&&t.push(r)}),t.forEach(i=>{i[0].on("slide",function(t,e){i[1].set(t)}),i[1].on("slide",function(t,e){i[0].set(t)})})},accordions:()=>{this.n.accordionBtns&&this.n.accordionBtns.forEach(e=>{e.addEventListener("click",t=>{t=t.target.closest('[data-accordion=""]');t&&(t.classList.toggle("active"),e.classList.toggle("active"))})})},rolledGroup:()=>{this.n.filterBlock&&this.n.filterBlock.querySelectorAll(".filter__show--more").forEach(t=>{t.state=t.dataset.state||"opened",t.removeAttribute("data-state"),t.addEventListener("click",t=>{var e=t.target.closest(".filter__block");if(e)switch(t.target.state){case"opened":e.classList.add("filter__group-minimize"),t.target.state="closed",t.target.innerText=this._main.gm("show_more"),t.target.classList.remove("filter__prop--close");break;case"closed":e.classList.remove("filter__group-minimize"),t.target.state="opened",t.target.innerText=this._main.gm("hide"),t.target.classList.add("filter__prop--close")}})})},tomselect:()=>{this.n.filterBlock&&(this.n.TomSelect=this.n.TomSelect??{},this.n.filterBlock.querySelectorAll("select").forEach((t,e)=>{this.n.TomSelect[e]=new TomSelect(t,{create:!1,controlInput:null,allowEmptyOption:!0})}))}},all:()=>{this.n.get(),this.init.setFilterItemsEvents(),this.init.processFilterItemsState(),this.init.visual.rangeSlider(),this.init.visual.matchingIdenticalSliders(),this.init.visual.accordions(),this.init.visual.rolledGroup(),this.init.visual.tomselect(),this.canFastLoadResult=!1,this.a.updateControlButtonsActivity()}};a={keyup:t=>{event.preventDefault(),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.a.reload(t)},500)},click:t=>{event.preventDefault(),this.timer&&clearTimeout(this.timer),this.a.translateItemState(t),this.timer=setTimeout(()=>{this.a.reload(t)},500)},clean:()=>{this.filterURL=this.p.props.clearURL,location.href=this.filterURL,this.n.btnReset.forEach(t=>{t.unset()})},reload:(t,e="auto")=>{if(""!==this.cacheKey)this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.a.reload(t)},1e3);else{switch(this.cacheKey="|",this.form=t.closest("form"),this.input=t,e){case"auto":this.checkCanFastLoadResult();break;case!0:this.canFastLoadResult=!0}if(this.form){var i=[];i[0]={name:"ajax",value:"y"},this.utils.gatherInputsValues(i,this.form.querySelectorAll("input"));for(let t=0;t<i.length;t++)this.cacheKey+=i[t].name+":"+i[t].value+"|";if(this.cache[this.cacheKey])this.a.postHandler(this.cache[this.cacheKey],!0);else{var s,r=this.utils.values2post(i);let t=this.p.props.ajaxURL;for(s in r)t=Utils.http.GET.string.set(t,s,r[s]);fetch(t,{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(t=>t.text()).then(t=>{t=t.replace(/'/g,'"'),this.a.postHandler(JSON.parse(t),[])}).catch(t=>{console.log(t)})}}}},postHandler:(t,e)=>{if(t&&t.ITEMS){this.d.filters=t.ITEMS,this.filterURL=t.FILTER_URL,this.a.updateControlButtonsActivity({countItems:t.ELEMENT_COUNT});var i=Utils.http.GET.string.getAll(location.href);if(t.FILTER_URL_TO_SET)for(var s in this.filterURLSmall=t.FILTER_URL_TO_SET,i)"filterPrepareLink"!==s&&(this.filterURLSmall=Utils.http.GET.string.set(this.filterURLSmall,s,i[s]));else this.filterURLSmall=this.filterURL}e||""===this.cacheKey||(this.cache[this.cacheKey]=t),this.cacheKey="",this.init.processFilterItemsState(),1==this.canFastLoadResult&&(this.canFastLoadResult=!1,this.load.filteredContent()),this._main.h[this.p.props.catalogSectionJSObjectName].sectionItemsCount=t.ELEMENT_COUNT},translateItemState:i=>{let s=!1;[this.n.filterItems,this.n.filterItemsPreview].forEach(t=>{for(var e in this.n.filterItems)this.n.filterItems[e]==i&&(s=e)}),s&&(this.n.filterItems[s]&&(this.n.filterItems[s].checked=i.checked),this.n.filterItemsPreview[s])&&(this.n.filterItemsPreview[s].checked=i.checked)},updateControlButtonsActivity:(t={countItems:0})=>{this.n.btnShow&&(location.pathname!=this.filterURL.split("?")[0]?this.n.btnShow.set(parseInt(t.countItems)):this.n.btnShow.unset()),this.n.btnReset&&this.n.btnReset.forEach(t=>{this.check.filtersSet()?t.set():t.unset()})}};load={filteredContent:()=>{var t=this.filterURLSmall&&""!=this.filterURLSmall?this.filterURLSmall:this.filterURL;"undefined"!=typeof event&&event.preventDefault&&event.preventDefault(),t&&(t=this.utils.rmSubstrFilter(t),this._main.h[this.p.props.catalogSectionJSObjectName].load.exec(t,{},t=>{this._main.h.popups.p.filter&&this._main.h.popups.p.filter.close(),this.a.updateControlButtonsActivity(),this._main.h.popups.init()}))}};check={propRange:t=>!!(t.VALUES&&t.VALUES.MIN&&t.VALUES.MAX),filtersSet:()=>{let i=!1;for(var t in this.d.filters){let e=this.d.filters[t].VALUES;if(e&&e.MIN&&e.MAX)["MIN","MAX"].forEach(t=>{e[t].HTML_VALUE&&e[t].HTML_VALUE!=e[t].VALUE&&(i=!0)});else for(var s in e)e[s].CHECKED&&(i=!0)}return i}};checkCanFastLoadResult(){this.form.classList.forEach(t=>{t==="filter_"+this.p.props.formName+"_small"&&(this.canFastLoadResult=!0)})}utils={rmSubstrFilter:t=>{var e="filter/",i=t.indexOf(e),s=t.split("?")[0];return t=-1!=i&&i+7==s.length?t.replace(e,""):t},gatherInputsValues:(e,i)=>{if(i)for(let t=0;t<i.length;t++){var s=i[t];if(!s.disabled&&s.type)switch(s.type.toLowerCase()){case"text":case"textarea":case"password":case"hidden":case"select-one":s.value.length&&(e[e.length]={name:s.name,value:s.value});break;case"radio":case"checkbox":s.checked&&(e[e.length]={name:s.name,value:s.value});break;case"select-multiple":for(let t=0;t<s.options.length;t++)s.options[t].selected&&(e[e.length]={name:s.name,value:s.options[t].value})}}},values2post:t=>{var e=[];let i=e;for(var s=0;s<t.length;){var r,l,a=t[s].name.indexOf("[");-1==a?(i[t[s].name]=t[s].value,i=e,s++):(r=t[s].name.substring(0,a),a=t[s].name.substring(a+1),i[r]||(i[r]=[]),-1==(l=a.indexOf("]"))?(i=e,s++):0==l?(i=i[r],t[s].name=""+i.length):(i=i[r],t[s].name=a.substring(0,l)+a.substring(l+1)))}return e}};sectionFilter={init:()=>{if(this.n.sectionFilter){let e=setInterval(()=>{var t=this.p.props.catalogSectionJSObjectName;t&&this._main.h[t].p&&this._main.h[t].p.props&&(this._main.h[t].p.props.smartFilterJSObjectName=this.p.props.JSObjectName,clearInterval(e))},300);this.n.sectionFilter.addEventListener("change",t=>{t=t.target.closest("select").value;this.loadSect=!0,this._main.h[this.p.props.catalogSectionJSObjectName].load.exec(t,{},t=>{this.loadSect=!1,this.init.loadFilterData(this.init.all),this._main.h.popups.init()})}),this.n.sectionFilter.classList.remove("ts__preload"),"undefined"!=typeof TomSelect&&(this.n.sectionFilter=new TomSelect(this.n.sectionFilter,{create:!1,controlInput:null,allowEmptyOption:!0}))}}}}
class FlocktoryHandler{constructor(e={}){this._main=e._main,this._parent=e._parent}addTrackingCode(e){var t=document.createElement("script");t.type="text/javascript",window.flocktory=window.flocktory||[],window.flocktory.push(["postcheckout",{user:{name:e.flcktr.user.name,email:e.flcktr.user.email||e.flcktr.user.phone+"@unknown.email",sex:e.flcktr.user.sex},order:{id:e.flcktr.order_id,price:e.flcktr.price,custom_field:e.flcktr.order_id,items:e.flcktr.products}}]),t.innerHTML=JSON.stringify(window.flocktory),(document.head||document.getElementsByTagName("head")[0]).appendChild(t)}addExchange(e){var t=document.createElement("div");t.classList.add("i-flocktory"),t.classList.add("class"),t.dataset.flAction="exchange",t.dataset.flUserEmail=e.flcktr.user.email||e.flcktr.user.phone+"@unknown.email",e.flcktr.user.name&&(t.dataset.flUserName=e.flcktr.user.name),document.body.querySelector("header").after(t)}}
class AdmitadHandler{constructor(e={}){this._main=e._main,this._parent=e._parent,this.cookieName="deduplication_cookie",this.daysToStore=90,this.deduplicationCookieValue="admitad",this.channelName="utm_source",this.setSourceCookie(),this.defineContainerCodes(this._main.const("region"))}setParams(){window.ADMITAD=window.ADMITAD||{},ADMITAD.Invoice=ADMITAD.Invoice||{},this.getSourceCookie(this.cookieName)?this.getSourceCookie(this.cookieName)!=this.deduplicationCookieValue?ADMITAD.Invoice.broker=this.getSourceCookie(this.cookieName):ADMITAD.Invoice.broker="adm":ADMITAD.Invoice.broker="na",ADMITAD.Invoice.category="1"}sendRetagData(){var e,t="admitad-retag";document.getElementById(t)||((e=document.createElement("script")).async=!0,e.id=t,t=(new Date).getDate(),e.src=("https:"==document.location.protocol?"https:":"http:")+"//cnd.lenmit.com/static/js/retag.js?r="+t,(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}loadOrderAdmitadData(e,t=!1){fetch("/local/action/metrics/metrics.php",{method:"POST","Content-Type":"multipart/formdata",body:JSON.stringify({action:"loadAdmitadOrderData",order_id:e})}).then(e=>e.json()).then(e=>{try{e.status?t&&"function"==typeof t.f&&t.f&&t.f(e.data):t&&"function"==typeof t.ff&&t.ff&&t.ff()}catch(e){console.log(e)}try{t&&"function"==typeof t.f2&&t.f2()}catch(e){console.log(e)}})}loadAdmitadData(e,t=!1){fetch("/local/action/metrics/metrics.php",{method:"POST","Content-Type":"multipart/formdata",body:JSON.stringify({action:"loadAdmitadItemData",id:e})}).then(e=>e.json()).then(e=>{try{e.status?t&&"function"==typeof t.f&&t.f&&t.f(e.data):t&&"function"==typeof t.ff&&t.ff&&t.ff()}catch(e){console.log(e)}})}actionSaleForOrder(e){try{"object"==typeof ADMITAD&&ADMITAD.Tracking&&ADMITAD.Tracking.processPositions?(this.setParams(),ADMITAD.Invoice.referencesOrder=ADMITAD.Invoice.referencesOrder||[],ADMITAD.Invoice.referencesOrder.push({orderNumber:e.data.orderId,discountCode:"",orderedItem:this.prepareData(e.data.items)}),ADMITAD.Tracking.processPositions()):setTimeout(()=>{this.actionSaleForOrder(e)},500)}catch(e){console.log("Error on send Admitad data"),console.log(e)}}actionSaleForOneClick(e){try{this.setParams();var t=this.prepareData(e.items);ADMITAD.Invoice.referencesOrder=ADMITAD.Invoice.referencesOrder||[],ADMITAD.Invoice.referencesOrder.push({orderNumber:e.orderId,discountCode:"",orderedItem:t}),ADMITAD.Tracking.processPositions()}catch(e){console.log("Error on send Admitad data"),console.log(e)}}actionLeadForForms(e=0){}actionLeadForPhones(e){}getSourceParamFromUri(){var e=this.channelName+"=([^&]+)";return(new RegExp(e).exec(document.location.search)||[])[1]||""}getSourceCookie(){var e=document.cookie.match(new RegExp("(?:^|; )"+this.cookieName.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0}setSourceCookie(){var e,t=this.getSourceParamFromUri();t&&(e=60*this.daysToStore*60*24*1e3,e=new Date(e+ +new Date),t=this.cookieName+"="+t+"; path=/; expires="+e.toGMTString(),document.cookie=t,document.cookie=t+"; domain=."+location.host)}prepareData(e){let t=[];return e.forEach(e=>{t.push({Product:{productID:e.id,section:e.category,category:"1",price:e.price,priceCurrency:this._main.const("siteCurrency")},orderQuantity:e.quantity||1,additionalType:"sale"})}),t}sendUserData(e={}){var t;"object"!=typeof admitadHandler||"object"==typeof admitadHandler&&!admitadHandler.actionLeadForPhones||(t=e.querySelector('input[name="name"]'),e=e.querySelector('input[name="phone"]'),t={category:"1",name:t.value,phone:e.value},admitadHandler.actionLeadForPhones(t))}defineContainerCodes(e){switch(e){case"by":case"kz":return this.containerCodes={0:"9ce8884a03",1:"9ce8884a0c",2:"9ce8884a0d",3:"9ce8884a0e",4:"9ce8884a0f"}}}setRetagIndexLevel(){try{window._retag=window._retag||[],window._retag.push({code:this.containerCodes[0],level:0}),this.sendRetagData()}catch(e){console.log(e)}}setRetagSectionLevel(e){try{window.ad_category=e,window._retag=window._retag||[],window._retag.push({code:this.containerCodes[1],level:1}),this.sendRetagData()}catch(e){console.log(e)}}setRetagDetailLevel(e){try{this.loadAdmitadData(e,{f:e=>{window.ad_product={id:e.id,vendor:e.vendor,price:e.price,url:e.url,picture:e.picture,name:e.name,category:e.category}}}),window._retag=window._retag||[],window._retag.push({code:this.containerCodes[2],level:2}),this.sendRetagData()}catch(e){console.log(e)}}setRetagBasketLevel(e){try{window.ad_products=e,window._retag=window._retag||[],window._retag.push({code:this.containerCodes[3],level:3}),this.sendRetagData()}catch(e){console.log(e)}}setRetagOrderLevel(e){try{window.ad_order=e.orderId,window.ad_amount=e.orderPrice,window.ad_products=e.items,window._retag=window._retag||[],window._retag.push({code:this.containerCodes[4],level:4}),this.sendRetagData()}catch(e){console.log(e)}}}
class FacebookPixelHandler{canPush=!1;constructor(t={}){this._main=t._main,this._params=t._params,"function"==typeof fbq&&(this.canPush=!0)}canPushCheck(){return this.canPush}loadFBQData(t,a=!1){fetch("/local/action/metrics/metrics.php",{method:"POST","Content-Type":"multipart/formdata",body:JSON.stringify({action:"loadFacebookData",id:t})}).then(t=>t.json()).then(t=>{console.log(t);try{t.status?a&&"function"==typeof a.f&&a.f&&a.f(t.data):a&&"function"==typeof a.ff&&a.ff&&a.ff()}catch(t){console.log(t)}})}buildDataObject(t){return!!t&&!!t.data.id&&!!t.data.price&&{value:t.data.price,currency:this._main.const("siteCurrency"),content_type:"product",content_ids:t.data.id}}eventAddToCart(t){if(!this.canPushCheck())return!1;t=this.buildDataObject(t);t&&fbq("track","AddToCart",t)}}
class MindboxHandler{constructor(t={}){this._main=t._main,this._parent=t._parent}getOption(t){return this._main.const("mindboxOperations")[t]}checkMindboxIsSet(){return this._main.const("mindboxAnalytic")&&void 0!==window.mindbox}changeRegion(t=!1){if(!t)return!1;var e,i;this.checkMindboxIsSet()&&(e=this.getOption("change_region"),i=this._main.const("region"),e)&&i&&this.request("async",{operation:e.code,data:{customer:{area:{ids:{externalId:i+"_"+t}}}}})}showProduct(t=!1){if(!t)return!1;var e;this.checkMindboxIsSet()&&(e=this.getOption("view_product"))&&this.request("async",{operation:e.code,data:{viewProduct:{product:{ids:{[e.field_id]:t}}}}})}showSection(t=!1){if(!t)return!1;var e;this.checkMindboxIsSet()&&(e=this.getOption("view_category"))&&this.request("async",{operation:e.code,data:{viewProductCategory:{productCategory:{ids:{[e.field_id]:t}}}}})}changeBasket(t=[]){var e;this.checkMindboxIsSet()&&(e=this.getOption("set_cart"))&&0<(t=this.prepareItemsData(t,e.field_id)).length&&this.request("async",{operation:e.code,data:{productList:t}})}clearBasket(){var t;this.checkMindboxIsSet()&&(t=this.getOption("clear_cart"))&&this.request("async",{operation:t.code,data:{}})}changeFavorites(t=[]){var e;this.checkMindboxIsSet()&&(e=this.getOption("set_wish_list"))&&this.request("async",{operation:e.code,data:{productList:this.prepareItemsData(t,e.field_id)}})}clearFavorites(){this.checkMindboxIsSet()}prepareItemsData(e,i=!1){if(this.checkMindboxIsSet()){i=i||(i=this.getOption("view_product")).field_id;var s,o=[];for(s in e){e[s].QUANTITY||(e[s].QUANTITY=1);let t=e[s].XML_ID;var a={product:{ids:{[i]:t=e[s].PRODUCT_XML_ID?e[s].PRODUCT_XML_ID.split("#")[1]:t}},count:parseInt(e[s].QUANTITY),pricePerItem:parseFloat(e[s].PRICE)};o.push(a)}return o}}request(t="async",e={}){try{window.mindbox(t,e)}catch(t){console.log(t)}}}
class GoogleAnalyticsHandler{constructor(e={}){this._main=e._main,this._parent=e._parent,this.initBtnsEvents()}loadData(e,t=!1){fetch("/local/action/metrics/metrics.php",{method:"POST","Content-Type":"multipart/formdata",body:JSON.stringify({action:"loadGAItemData",id:e})}).then(e=>e.json()).then(e=>{try{e.status?t&&"function"==typeof t.f&&t.f&&t.f(e.data):(console.log("ECommerceData[status]="+e.status),t&&"function"==typeof t.ff&&t.ff&&t.ff())}catch(e){console.log(e)}})}loadOrderData(e,t=!1){fetch("/local/action/metrics/metrics.php",{method:"POST","Content-Type":"multipart/formdata",body:JSON.stringify({action:"loadGAOrderData",order_id:e})}).then(e=>e.json()).then(e=>{try{e.status?t&&"function"==typeof t.f&&t.f&&t.f(e.data):(console.log("ECommerceData[status]="+e.status),t&&"function"==typeof t.ff&&t.ff&&t.ff())}catch(e){console.log(e)}try{t&&"function"==typeof t.f2&&t.f2()}catch(e){console.log(e)}})}getCurrency(){return"by"!==this._main.const("region")?this._main.const("siteCurrency"):"USD"}buildProductArray(e,t={setQuantity:!0}){var a=[];if(e)for(var o in e){var n={id:Number(e[o].id),name:e[o].name+(e[o].variant?" "+e[o].variant:""),price:Math.round(e[o].price),brand:e[o].brand||"",category:e[o].category,variant:e[o].variant||""};t&&!0===t.setQuantity&&(n.quantity=Number(e[o].quantity)?Number(e[o].quantity):1),a.push(n)}return a}clickOnProduct(e,t={id:0,position:0,list:"catalog section",linkHref:"/"}){e=this.buildProductArray({0:e.itemData.data});e[0].position=t.position,delete e[0].quantity,dataLayer.push({ecommerce:null}),dataLayer.push({event:"productClick",ecommerce:{currencyCode:this.getCurrency(),click:{actionField:{list:t.list},products:e}}})}sendOrderById(e){if(e.data.orderId&&e.data.orderPrice&&e.data.items&&0<!!Object.keys(e.data.items).length)try{"undefined"!=typeof dataLayer&&(this._main.const("region"),dataLayer.push({ecommerce:null}),dataLayer.push({event:"purchase",ecommerce:{currencyCode:this.getCurrency(),purchase:{actionField:{id:e.data.orderId,affiliation:this._main.const("domain"),revenue:e.data.orderPrice},products:this.buildProductArray(e.data.items,{setQuantity:!0})}}}))}catch(e){console.log("Error on send ECommerce data"),console.log(e)}else console.log("No data for send ECommerce")}onDetailPageLoad(e){}onBasketPageLoad(e){try{"undefined"!=typeof dataLayer&&(dataLayer.push({ecommerce:null}),dataLayer.push({event:"checkout_step_1",ecommerce:{currencyCode:this.getCurrency(),checkout:{actionField:{step:1,option:"View cart"},products:e}}}))}catch(e){console.log("Error on send ECommerce data"),console.log(e)}}onBasketStep(e,t){try{"undefined"!=typeof dataLayer&&(dataLayer.push({ecommerce:null}),dataLayer.push({event:"checkout_step_"+e,ecommerce:{currencyCode:this.getCurrency(),checkout:{actionField:{step:e,option:t}}}}))}catch(e){console.log("Error on send ECommerce data"),console.log(e)}}onKaspiClick(){try{"undefined"!=typeof dataLayer&&dataLayer.push({event:"kaspi_click"})}catch(e){console.log(e)}}initBtnsEvents(){this.bindViber(),this.bindCallback()}bindViber(){var e=document.querySelector(".ui-icon-service-viber");e?e.addEventListener("click",()=>{this.send("click","viber")}):setTimeout(()=>{this.bindViber()},2e3)}bindCallback(){var e=document.querySelector(".b24-widget-button-callback");e?e.addEventListener("click",()=>{this.send("click","click_callback_form")}):setTimeout(()=>{this.bindCallback()},2e3)}send(e,t){try{"undefined"!=typeof user_is_auth&&user_is_auth||"undefined"!=typeof dataLayer&&dataLayer.push({event:"gtm-ee-event","gtm-ee-event-category":e,"gtm-ee-event-action":t})}catch(e){console.log(e)}}}
class MetricsMainHandler{constructor(e=0,t={}){this._main=t._main,this._parent=t._parent,this.init()}init(){try{var e={_main:this._main,_parent:this};if(this.consts=this._main.const("metrics"),this.gaH="undefined"!=typeof GoogleAnalyticsHandler?new GoogleAnalyticsHandler(e):{},this.fpH="undefined"!=typeof FacebookPixelHandler?new FacebookPixelHandler(e):{},this.admH="undefined"!=typeof AdmitadHandler?new AdmitadHandler(e):{},this.mndbxH="undefined"!=typeof MindboxHandler?new MindboxHandler(e):{},this.checkAvailabilityMetric("flcktr")&&(this.flcktr="undefined"!=typeof FlocktoryHandler?new FlocktoryHandler(e):{}),this.threeMinutes(),this._main.componentDataCache&&(this.cache.h=new this._main.componentDataCache({cacheKey:"metrics",siteId:this._main.const("siteId"),storage:"localStorage"},{_main:this._main,_parent:this})),"ae"!==this._main.const("region")&&!this.consts.ym.clientId){let e=0,t=setInterval(()=>{5<=e&&clearInterval(t),e++,"function"==typeof ym&&(ym(this.consts.ym.id,"getClientID",e=>{fetch("/local/action/metrics/metrics.php",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({clientId:e,actionList:["saveClientId"]})})}),clearInterval(t))},1e3)}}catch(e){console.log(e)}}cache={h:!1};checkAvailabilityMetric(e=""){return!!(this.consts&&this.consts[e]&&this.consts[e].active)}getRequestData(e){return e}request(e,t=!1){fetch("/local/action/metrics/metrics.php",{method:"POST","Content-Type":"multipart/formdata",body:JSON.stringify(e)}).then(e=>e.json()).then(e=>{t&&t(e)}).catch(e=>{console.log(e),t(!1)})}threeMinutes(){setTimeout(()=>{this.userExp("threeMinutes")},18e4)}addToBasket(e,t={quantity:1}){this.checkSetGlobalDataObject()&&(t.quantity=t.quantity??1,this.request(this.getRequestData({actionList:["loadItemData"],id:e,siteId:this._main.const("siteId")}),e=>{try{e.itemData.data.quantity=t.quantity,this.push.ym(this.build.eventData.ym("kupit_tov_click")),this.push.ga(this.build.eventData.ga4.add({0:e.itemData.data},t)),this.fpH.eventAddToCart(e.itemData,!1),this.push.roistat(this.build.eventData.roistat("addToCart"))}catch(e){console.log("Error on send ECommerce data"),console.log(e)}}))}changePreorder(e){this.checkSetGlobalDataObject()&&(console.log(e),this.request(this.getRequestData({actionList:["preorder"],basket:e}),e=>{console.log(e)}))}changeBasket(e){this.mndbxH.changeBasket(e)}removeFromBasket(e,a={quantity:1}){this.checkSetGlobalDataObject()&&this.request(this.getRequestData({actionList:["loadItemData"],id:e,siteId:this._main.const("siteId")}),e=>{var t={quantity:a.quantity,blockName:a.blockName??""},e=(e.itemData.data.quantity=a.quantity??e.itemData.data.quantity,{0:e.itemData.data});this._main.const("region"),this.push.ga(this.build.eventData.ga4.remove(e,t))})}onBeginCheckout(e=!1){var t;this.checkSetGlobalDataObject()&&(t=e=>{try{this._main.const("region"),this.push.ga(this.build.eventData.ga4.basket(e.GABasket.data))}catch(e){console.log("Error on send ECommerce data"),console.log(e)}},e?t(e):this.request(this.getRequestData({actionList:["loadBasketData"],siteId:this._main.const("siteId")}),t))}showProduct(e,t){if(this.mndbxH.showProduct(t),this.checkSetGlobalDataObject())if(e){t={actionList:["loadItemData"],id:e,siteId:this._main.const("siteId")};let a=MD5(JSON.stringify(t));var e=e=>{this.cache.h&&this.cache.h.set(a,e);try{t={0:e.itemData.data},this._main.const("region"),this.push.ga(this.build.eventData.ga4.viewProduct(t,{setQuantity:!1})),this.push.roistat(this.build.eventData.roistat("viewProduct"))}catch(e){console.log("Error on send ECommerce data"),console.log(e)}var t},i=!!this.cache.h&&this.cache.h.get(a);i?e(i):this.request(this.getRequestData(t),e)}else console.log("GA data not send: error product id")}showSection(e={sectionCode:"",sectionId:"",isFilterPage:""}){e.sectionCode&&this.mndbxH.showSection(e.sectionCode),e.isFilterPage&&this.push.ym(this.build.eventData.ym("filterPage"))}changeRegion(e){e&&this.mndbxH.changeRegion(e)}sendOrder(a={},i=!1,e={metricsActionList:["loadAdmitadOrderData","loadGAOrderData"]}){if(this.checkSetGlobalDataObject()){let t=MD5(JSON.stringify(a));var c=e=>{if(this.cache.h&&this.cache.h.set(t,e),"object"==typeof e){try{e.AdmitadOrder&&!0===e.AdmitadOrder.status&&this.admH.actionSaleForOrder(e.AdmitadOrder)}catch(e){console.log(e)}try{e.GAOrder&&!0===e.GAOrder.status&&(this._main.const("region"),this.push.ga(this.build.eventData.ga4.purchase({orderData:e.GAOrder.data,checkoutType:a.checkoutType})))}catch(e){console.log(e)}try{switch(a.checkoutType){case"Order in one click":this.push.ym(this.build.eventData.ym("orderOneClick")),this.push.roistat(this.build.eventData.roistat("orderOneClick"));break;case"Order in credit":this.push.ym(this.build.eventData.ym("orderCredit")),this.push.roistat(this.build.eventData.roistat("purchaseCredit"));break;default:this.push.ym(this.build.eventData.ym("order")),this.push.roistat(this.build.eventData.roistat("order"))}}catch(e){console.log(e)}this.checkAvailabilityMetric("flcktr")&&(this.flcktr.addTrackingCode(e),this.flcktr.addExchange(e))}i&&"function"==typeof i&&i()},o=((e="object"!=typeof e?{}:e).metricsActionList="object"==typeof e.metricsActionList?e.metricsActionList:["loadAdmitadOrderData","loadGAOrderData"],!this.checkAvailabilityMetric("flcktr")||e.metricsActionList.includes("loadFlocktoryOrderData")||e.metricsActionList.push("loadFlocktoryOrderData"),!!this.cache.h&&this.cache.h.get(t));o||this.request(this.getRequestData({actionList:e.metricsActionList,order_id:a.id,siteId:this._main.const("siteId")}),c)}}onBasketPageLoad(e){this.checkSetGlobalDataObject()&&(this.push.roistat(this.build.eventData.roistat("checkoutStep1")),this.gaH.onBasketPageLoad(e))}onBasketStep(e,t){this.checkSetGlobalDataObject()&&(this.push.roistat(this.build.eventData.roistat("checkoutStep"+e)),this.gaH.onBasketStep(e,t))}viewItemsList(e,t){this._main.const("region"),this.push.ga(this.build.eventData.ga4.viewItemsList(e,t))}onKaspiClick(){this.checkSetGlobalDataObject()&&this.gaH.onKaspiClick()}changeFavorites(e,t=!1,a=!1,i=!1){switch(e){case"change":break;case"add":t&&((a=a&&"object"==typeof a?a:{quantity:1}).quantity=a.quantity??1,this.request(this.getRequestData({actionList:["loadItemData"],id:t,siteId:this._main.const("siteId")}),e=>{try{e.itemData.data.quantity=a.quantity,this.push.ga(this.build.eventData.ga4.favAdd({0:e.itemData.data},a)),this.push.ym(this.build.eventData.ym("favAdd"))}catch(e){console.log("Error on send ECommerce data"),console.log(e)}}));break;default:console.log("Unknown action:",e)}i&&this.mndbxH.changeFavorites(i)}changeCompare(e,t=!1,a=!1,i){switch(e){case"change":break;case"add":t&&((a=a&&"object"==typeof a?a:{quantity:1}).quantity=a.quantity??1,this.request(this.getRequestData({actionList:["loadItemData"],id:t,siteId:this._main.const("siteId")}),e=>{try{e.itemData.data.quantity=a.quantity,this.push.ga(this.build.eventData.ga4.cmpAdd({0:e.itemData.data},a)),this.push.ym(this.build.eventData.ym("cmpAdd"))}catch(e){console.log("Error on send ECommerce data"),console.log(e)}}));break;default:console.log("Unknown action:",e)}}clickOnProduct(t={id:0,position:0,blockName:"catalog section",linkHref:"/",redirect:!0,newWindow:!0}){this.checkSetGlobalDataObject()?this.request(this.getRequestData({actionList:["loadItemData"],id:t.id,siteId:this._main.const("siteId")}),e=>{try{!1!==e&&this.push.ga(this.build.eventData.ga4.selectProduct(e,t))}catch(e){console.log(e)}void 0!==t.redirect&&!0!==t.redirect||!t.link||(t.newWindow&&!Utils.user.browser.isSafari()?window.open(t.link,"_blank"):window.location.href=t.link)}):void 0!==t.redirect&&!0!==t.redirect||!t.link||(t.newWindow&&!Utils.user.browser.isSafari()?window.open(t.link):window.location.href=t.link)}showBanners(e=[{id:0,name:"",creative:"",position:1}],t={locationId:""}){if(this.checkSetGlobalDataObject()){for(var a in e.forEach(e=>{this.userExp("viewPromo",{bannerName:e.name,locationId:t.locationId})}),e)e[a].position=e[a].position?parseInt(e[a].position):parseInt(a);this.push.ga(this.build.eventData.ga4.viewBanners(e))}}clickActionOrItemsOnSelections(e={eCategory:"",eAction:"",eLabel:"",eLabel2:""}){(e=this.build.eventData.ga4.clickActionOrItemsSelection({eCategory:e.eCategory,eAction:e.eAction,eLabel:e.eLabel,eLabel2:e.eLabel2}))&&this.push.ga(e)}userExp(e="",t=!1){let a=!1,i=!1,c=!1;switch(e){case"clickToPhone":i="clickToPhone",a=this.build.eventData.ga4.clickToPhone();break;case"callbackSubmit":switch(t){case"shops":case"header":i="callbackHeaderSubmit",a=this.build.eventData.ga4.callbackHeaderSubmit()}break;case"callbackOpen":switch(t){case"shops":case"header":i="headerCallbackOpen",a=this.build.eventData.ga4.callbackHeaderOpen()}break;case"clickShopsBtn":i="clickShops",a=this.build.eventData.ga4.clickStoresBtn();break;case"showPhone":i="showHeaderPhone",a=this.build.eventData.ga4.showHeaderPhone();break;case"404":i="404",a=this.build.eventData.ga4.s404();break;case"viewPromo":i="viewPromo","object"==typeof t&&(a=this.build.eventData.ga4.viewPromotion({bannerName:t.bannerName,locationId:t.locationId}));break;case"clickPromo":i="selectPromotion","object"==typeof t&&(a=this.build.eventData.ga4.clickPromotion({bannerName:t.bannerName,locationId:t.locationId}));break;case"clickToSearch":i="clickSearch",a=this.build.eventData.ga4.clickSearch();break;case"clickWhatsAppHeader":i="clickWhatsAppHeader",a=this.build.eventData.ga4.clickWhatsAppHeader();break;case"clickBxOpenLines":i="clickBxOpenLines",a=this.build.eventData.ga4.clickBxOpenLines();break;case"clickBxCloseLines":i="clickBxCloseLines",a=this.build.eventData.ga4.clickBxCloseLines();break;case"bxChatSendMessage":i="bxChatSendMessage";break;case"clickBxOLChat":i="clickBxOLChat",a=this.build.eventData.ga4.clickBxOLChat();break;case"clickBxOLCallback":i="clickBxOLCallback",a=this.build.eventData.ga4.clickBxOLCallback();break;case"clickBxOLViber":i="clickBxOLViber",a=this.build.eventData.ga4.clickBxOLViber();break;case"clickBxOLWA":i="clickBxOLWA",a=this.build.eventData.ga4.clickBxOLWA();break;case"clickBxOLTelegram":i="clickBxOLTelegram",a=this.build.eventData.ga4.clickBxOLTelegram();break;case"openInstallment":i="openInstallment",a=this.build.eventData.ga4.openInstallment();break;case"sendInstallment":i="sendInstallment","skrepka"!==t&&(t=""),a=this.build.eventData.ga4.sendInstallment({type:t});break;case"openLeaveReviewProduct":i="openLeaveReviewProduct",a=this.build.eventData.ga4.openLeaveReviewProduct();break;case"sendReviewProduct":i="sendReviewProduct",a=this.build.eventData.ga4.sendReviewProduct();break;case"catalogView":c="catalogView";break;case"mainView":c="mainView";break;case"catalogFilterOpen":i="catalogFilterOpen",a=this.build.eventData.ga4.catalogFilterOpen(t);break;case"catalogFilterClose":i="catalogFilterClose",a=this.build.eventData.ga4.catalogFilterClose(t);break;case"catalogFilterApply":i="catalogFilterApply",a=this.build.eventData.ga4.catalogFilterApply(t);break;case"catalogSortApply":i="catalogSortApply",a=this.build.eventData.ga4.catalogSortApply(t);break;case"showSaleList":i="showSaleList",a=this.build.eventData.ga4.showSaleList();break;case"showMarkdownProductsList":i="showMarkdownProductsList",a=this.build.eventData.ga4.showMarkdownProductsList();break;case"selectSiteLanguage":i="selectSiteLanguage",a=this.build.eventData.ga4.selectSiteLanguage(t);break;case"threeMinutes":i="threeMinutes";break;case"clickOnCityMenu":i="clickOnCityMenu",a=this.build.eventData.ga4.clickOnCityMenu(t);break;case"openAuthForm":i="openAuthForm",a=this.build.eventData.ga4.openAuthForm();break;case"openSmallBasket":i="openSmallBasket",a=this.build.eventData.ga4.openSmallBasket();break;case"openMainMenu":i="openMainMenu",a=this.build.eventData.ga4.openMainMenu();break;case"closeMainMenu":i="closeMainMenu",a=this.build.eventData.ga4.closeMainMenu();break;case"openProductConstructor":i="openProductConstructor",a=this.build.eventData.ga4.openProductConstructor();break;case"closeProductConstructor":i="closeProductConstructor",a=this.build.eventData.ga4.closeProductConstructor();break;case"clickConstructorColorPopup":i="clickConstructorColorPopup",a=this.build.eventData.ga4.clickConstructorColorPopup();break;case"chooseConstructorSize":i="chooseConstructorSize",a=this.build.eventData.ga4.chooseConstructorSize();break;case"chooseConstructorColor":i="chooseConstructorColor",a=this.build.eventData.ga4.chooseConstructorColor();break;case"chooseConstructorTextile":i="chooseConstructorTextile",a=this.build.eventData.ga4.chooseConstructorTextile();break;case"clickOnBrokerageBtn":i="clickOnBrokerageBtn",a=this.build.eventData.ga4.clickOnBrokerageBtn();break;case"clickOnRecommendBtn":i="clickOnRecommendBtn",a=this.build.eventData.ga4.clickOnRecommendBtn();break;case"openCardDelivery":i="openCardDelivery",a=this.build.eventData.ga4.openCardDelivery();break;case"closeCardDelivery":i="closeCardDelivery",a=this.build.eventData.ga4.closeCardDelivery();break;case"clickOnCharacteristicsBtn":i="clickOnCharacteristicsBtn",a=this.build.eventData.ga4.clickOnCharacteristicsBtn();break;case"clickOnDescriptionBtn":i="clickOnDescriptionBtn",a=this.build.eventData.ga4.clickOnDescriptionBtn();break;case"clickOnInstructionsBtn":i="clickOnInstructionsBtn",a=this.build.eventData.ga4.clickOnInstructionsBtn();break;case"clickOnReviewsBtn":i="clickOnReviewsBtn",a=this.build.eventData.ga4.clickOnReviewsBtn();break;case"clickOnFooterFacebookLink":i="clickOnFooterFacebookLink",a=this.build.eventData.ga4.clickOnFooterFacebookLink();break;case"clickOnFooterInstagramLink":i="clickOnFooterInstagramLink",a=this.build.eventData.ga4.clickOnFooterInstagramLink();break;case"clickOnFooterCountries":i="clickOnFooterCountries",a=this.build.eventData.ga4.clickOnFooterCountries();break;case"openModalShops":i="openModalShops",a=this.build.eventData.ga4.openModalShops();break;case"closeModalShops":i="closeModalShops",a=this.build.eventData.ga4.closeModalShops()}a&&this.push.ga(a),i&&this.push.ym(this.build.eventData.ym(i)),c&&this.push.roistat(this.build.eventData.roistat(c))}getCurrency(){return"by"!==this._main.const("region")?this._main.const("siteCurrency"):"USD"}build={products:{ga4:(t,e={quantity:1})=>{var a=[];if(t)for(var i in t){var c={item_id:Number(t[i].id),item_name:t[i].name+(t[i].variant&&-1==t[i].name.indexOf(t[i].variant)?" "+t[i].variant:""),affiliation:"Google Merchandise Store",index:e.position??parseInt(i)+1,item_brand:t[i].brand??"Askona",item_category:t[i].category,item_list_id:"",item_list_name:e.blockName??"",item_variant:t[i].variant??"",price:Number(parseFloat(t[i].basePrice).toFixed(2)),currency:this.getCurrency(),discount:Number(parseFloat(t[i].discount).toFixed(2)),quantity:t[i].quantity??e.quantity??1};if(t[i].coupon&&(c.coupon=t[i].coupon),"object"==typeof t[i].categories){let e=2;for(var o in t[i].categories)t[i].categories[o]!=t[i].category&&(c["item_category"+e]=t[i].categories[o],e++)}a.push(c)}return a},ua:(e,t={setQuantity:!0})=>{var a=[];if(e)for(var i in e){var c={id:Number(e[i].id),name:e[i].name+(e[i].variant?" "+e[i].variant:""),price:Math.round(e[i].price),brand:e[i].brand||"",category:e[i].category,variant:e[i].variant||""};t&&!0===t.setQuantity&&(c.quantity=Number(e[i].quantity)?Number(e[i].quantity):1),a.push(c)}return a}},hlprs:{fullPrice:e=>{let t=0;for(var a in e)t+=parseInt(e[a].price);return t}},eventData:{ga4:{viewProduct:(e,t)=>({event:"view_item",ecommerce:{items:this.build.products.ga4(e,t)}}),purchase:(e,t)=>({event:"purchase",ecommerce:{transaction_id:e.orderData.orderId,affiliation:this._main.const("domain"),checkoutType:e.checkoutType,value:e.orderData.orderPrice,tax:0,shipping:e.orderData.deliveryPrice,currency:this.getCurrency(),coupon:e.orderData.coupon??"",items:this.build.products.ga4(e.orderData.items,t)}}),add:(e,t)=>({event:"add_to_cart",ecommerce:{items:this.build.products.ga4(e,t)}}),remove:(e,t)=>({event:"remove_from_cart",ecommerce:{items:this.build.products.ga4(e,t)}}),basket:e=>({event:"begin_checkout",ecommerce:{items:this.build.products.ga4(e)}}),viewItemsList:(e,t)=>({event:"view_item_list",ecommerce:{items:this.build.products.ga4(e,t)}}),selectProduct:(e,t={id:0,position:0,blockName:"catalog section",linkHref:"/"})=>{e=this.build.products.ga4({0:e.itemData.data},t);return e[0].index=t.position,{event:"select_item",ecommerce:{items:e}}},favAdd:(e,t)=>({event:"add_to_wishlist",ecommerce:{items:this.build.products.ga4(e,t)}}),cmpAdd:(e,t)=>({event:"add_to_degree",ecommerce:{items:this.build.products.ga4(e,t)}}),showHeaderPhone:()=>({eCategory:"phoneButton",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickToPhone:()=>({eCategory:"phoneButton",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickStoresBtn:()=>({eCategory:"Shops",eAction:"Click",eLabel:"",eNI:!1,event:"GAEvent"}),callbackHeaderSubmit:()=>({eCategory:"callBackForm",eAction:"send",eLabel:"",eNI:!1,event:"GAEvent"}),callbackHeaderOpen:()=>({eCategory:"callBackForm",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),s404:()=>({eCategory:"404Error",eAction:"location.href",eLabel:"document.referrer||'no-referrer",eNI:!1,event:"GAEvent"}),viewBanners:e=>({event:"promoView",ecommerce:{promoView:{promotions:e}}}),viewPromotion:(e={})=>({eCategory:"view_promotion",banner_name:e.bannerName,location_id:e.locationId,eNI:!1,event:"GAEvent"}),clickPromotion:(e={})=>({eCategory:"select_promotion",banner_name:e.bannerName,location_id:e.locationId,eNI:!1,event:"GAEvent"}),clickSearch:()=>({eCategory:"search",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),clickWhatsAppHeader:()=>({eCategory:"watsappmain",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),clickBxOpenLines:()=>({eCategory:"massage",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),clickBxCloseLines:()=>({eCategory:"massage",eAction:"close",eLabel:"",eNI:!1,event:"GAEvent"}),clickBxOLChat:()=>({eCategory:"massagechat",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickBxOLCallback:()=>({eCategory:"massagecallback",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickBxOLViber:()=>({eCategory:"massageviber",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickBxOLWA:()=>({eCategory:"massagewa",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickBxOLTelegram:()=>({eCategory:"massagetg",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),openInstallment:()=>({eCategory:"rassrochka",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),sendInstallment:(e={})=>({eCategory:"rassrochka",eAction:"send",eLabel:e.type,eNI:!1,event:"GAEvent"}),openLeaveReviewProduct:()=>({eCategory:"review",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),sendReviewProduct:()=>({eCategory:"review",eAction:"send",eLabel:"",eNI:!1,event:"GAEvent"}),catalogFilterOpen:e=>({eCategory:"filtersBlock",eAction:"open",eLabel:e,eNI:!1,event:"GAEvent"}),catalogFilterClose:e=>({eCategory:"filtersBlock",eAction:"close",eLabel:e,eNI:!1,event:"GAEvent"}),catalogFilterApply:e=>({eCategory:"filtersBlock",eAction:"apply",eLabel:e,eNI:!1,event:"GAEvent"}),catalogSortApply:e=>({eCategory:"sort",eAction:"apply",eLabel:e,eNI:!1,event:"GAEvent"}),showSaleList:()=>({eCategory:"sale",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),showMarkdownProductsList:()=>({eCategory:"ucenca",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),selectSiteLanguage:e=>({eCategory:"language",eAction:"apply",eLabel:e,eNI:!1,event:"GAEvent"}),clickActionOrItemsSelection:(e={})=>({eCategory:e.eCategory,eAction:e.eAction,eLabel:e.eLabel,eLabel2:e.eLabel2,eNI:!1,event:"GAEvent"}),clickOnCityMenu:e=>({eCategory:"city",eAction:"apply",eLabel:e,eNI:!1,event:"GAEvent"}),openAuthForm:()=>({eCategory:"ik",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),openSmallBasket:()=>({eCategory:"cart",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),openMainMenu:()=>({eCategory:"menu",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),closeMainMenu:()=>({eCategory:"menu",eAction:"close",eLabel:"",eNI:!1,event:"GAEvent"}),openProductConstructor:()=>({eCategory:"configurator",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnBrokerageBtn:()=>({eCategory:"credit",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),closeProductConstructor:()=>({eCategory:"configurator",eAction:"close",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnRecommendBtn:()=>({eCategory:"accessories",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickConstructorColorPopup:()=>({eCategory:"sample-textile-order",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),openCardDelivery:()=>({eCategory:"delivery",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),chooseConstructorSize:()=>({eCategory:"configurator-size",eAction:"apply",eLabel:"",eNI:!1,event:"GAEvent"}),chooseConstructorColor:()=>({eCategory:"configurator-color",eAction:"apply",eLabel:"",eNI:!1,event:"GAEvent"}),closeCardDelivery:()=>({eCategory:"delivery",eAction:"close",eLabel:"",eNI:!1,event:"GAEvent"}),chooseConstructorTextile:()=>({eCategory:"configurator-textile",eAction:"apply",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnCharacteristicsBtn:()=>({eCategory:"characteristics",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnDescriptionBtn:()=>({eCategory:"overview",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnInstructionsBtn:()=>({eCategory:"manual",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnReviewsBtn:()=>({eCategory:"reviews-card",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnFooterFacebookLink:()=>({eCategory:"facebook",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnFooterInstagramLink:()=>({eCategory:"instagram",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),clickOnFooterCountries:()=>({eCategory:"askona",eAction:"click",eLabel:"",eNI:!1,event:"GAEvent"}),openModalShops:()=>({eCategory:"shops",eAction:"open",eLabel:"",eNI:!1,event:"GAEvent"}),closeModalShops:()=>({eCategory:"shops",eAction:"close",eLabel:"",eNI:!1,event:"GAEvent"})},ua:{viewProduct:(e,t)=>({event:"detail",ecommerce:{currencyCode:this.getCurrency(),detail:{products:this.build.products.ua(e,t)}}}),add:(e,t)=>{var a,i={};for(a in e)i[a]=e[a];return t&&(i.data.quantity=Number(t)),{event:"addToCart",ecommerce:{currencyCode:this.getCurrency(),add:{products:this.build.products.ua({0:i.data})}}}},viewItemsList:(i,c)=>({event:"impressions",ecommerce:{currencyCode:this.getCurrency(),impressions:(()=>{var e,t=[];let a=1;for(e in i)i[e].position=a++,"object"==typeof c&&(i[e].list=c.blockName||"product block"),t.push(i[e]);return t})()}}),clickOnProduct:(e,t={id:0,position:0,blockName:"catalog section",linkHref:"/"})=>{e=this.build.products.ua({0:e.itemData.data});return e[0].position=t.position,delete e[0].quantity,{event:"productClick",ecommerce:{currencyCode:this.getCurrency(),click:{actionField:{list:t.blockName},products:e}}}},viewPromotion:e=>({event:"promoView",ecommerce:{promoView:{promotions:e}}})},ym:(e=!1)=>{var t={direction:"reachGoal",event:""};switch(e){case"kupit_tov_click":if("undefined"!=typeof user_is_auth&&user_is_auth)return;t.event="kupit_tov_click";break;case"orderOneClick":t.event="purchase_1click";break;case"order":t.event="purchase";break;case"orderCredit":t.event="purchase_credit";break;case"favAdd":t.event="favorites";break;case"cmpAdd":t.event="compare";break;case"showHeaderPhone":t.event="phoneButton-click";break;case"clickToPhone":t.event="click_to_number";break;case"callbackHeaderSubmit":t.event="callback_submit";break;case"headerCallbackOpen":t.event="callBackForm-open";break;case"404":t.event="404Error";break;case"clickSearch":t.event="search-open";break;case"viewPromo":t.event="view_promotion";break;case"clickWhatsAppHeader":t.event="Whatsapp";break;case"clickBxOpenLines":t.event="massage-open";break;case"bxChatSendMessage":t.event="online-chat";break;case"clickBxOLChat":t.event="massagechat-click";break;case"clickBxOLCallback":t.event="massagecallback-click";break;case"clickBxOLViber":t.event="massageviber-click";break;case"clickBxOLWA":t.event="massagewa-click";break;case"clickBxOLTelegram":t.event="massagetg-click";break;case"clickBxCloseLines":t.event="massage-close";break;case"openInstallment":t.event="rassrochka-open";break;case"sendInstallment":t.event="rassrochka-send";break;case"openLeaveReviewProduct":t.event="review-click";break;case"sendReviewProduct":t.event="review-send";break;case"catalogFilterOpen":t.event="filtersBlock-open";break;case"catalogFilterClose":t.event="filtersBlock-close";break;case"catalogFilterApply":t.event="filtersBlock-apply";break;case"catalogSortApply":t.event="sort-apply";break;case"showSaleProductsList":t.event="sale-open";break;case"showMarkdownProductsList":t.event="ucenca-open";break;case"selectSiteLanguage":t.event="language-apply";break;case"filterPage":t.event="filterpage";break;case"threeMinutes":t.event="three_minutes";break;case"clickShops":t.event="Shops-click";break;case"selectPromotion":t.event="select_promotion";break;case"clickOnCityMenu":t.event="city-apply";break;case"openAuthForm":t.event="lk-open";break;case"openSmallBasket":t.event="cart-open";break;case"openMainMenu":t.event="menu-open";break;case"closeMainMenu":t.event="menu-close";break;case"openProductConstructor":t.event="configurator-open";break;case"closeProductConstructor":t.event="configurator-close";break;case"clickConstructorColorPopup":t.event="sample-textile-order-open";break;case"chooseConstructorSize":t.event="configurator-size-apply";break;case"chooseConstructorColor":t.event="configurator-color-apply";break;case"chooseConstructorTextile":t.event="configurator-textile-apply";break;case"clickOnBrokerageBtn":t.event="credit-open";break;case"clickOnRecommendBtn":t.event="accessories-click";break;case"openCardDelivery":t.event="delivery-open";break;case"closeCardDelivery":t.event="delivery-close";break;case"clickOnCharacteristicsBtn":t.event="characteristics-click";break;case"clickOnDescriptionBtn":t.event="overview-click";break;case"clickOnInstructionsBtn":t.event="manual-click";break;case"clickOnReviewsBtn":t.event="reviews-card-click";break;case"clickOnFooterFacebookLink":t.event="facebook-click";break;case"clickOnFooterInstagramLink":t.event="instagram-click";break;case"clickOnFooterCountries":t.event="askona-click";break;case"openModalShops":t.event="shops-open";break;case"closeModalShops":t.event="shops-close"}return!!t.event&&t},roistat:(e=!1)=>{var t={event:""};switch(e){case"mainView":t.event="main_view";break;case"catalogView":t.event="catalog_view";break;case"viewProduct":t.event="product_view";break;case"addToCart":t.event="add_to_cart";break;case"checkoutStep1":t.event="checkout_step_1";break;case"checkoutStep2":t.event="checkout_step_2";break;case"checkoutStep3":t.event="checkout_step_3";break;case"checkoutStep4":t.event="checkout_step_4";break;case"order":t.event="purchase";break;case"orderOneClick":t.event="purchase_1click";break;case"purchaseCredit":t.event="purchase_credit"}return!!t.event&&t}}};push={ga:e=>!!this.checkSetGlobalDataObject()&&(dataLayer.push({ecommerce:null}),dataLayer.push(e),!0),ym:e=>{if(e&&"undefined"!=typeof ym)if(this.consts?.ym?.id&&"object"!=typeof window["yaCounter"+this.consts.ym.id])setTimeout(()=>{this.push.ym(e)},500);else try{var t=this._main.const("metrics").ym.id;if("object"==typeof e.event)for(var a in e.event)ym(t,e.direction,e.event[a]);else ym(t,e.direction,e.event)}catch(e){console.log(e)}},roistat:e=>{if(this.checkAvailabilityMetric("roistat")&&e&&"undefined"!=typeof roistat)try{roistat.event.send(e.event)}catch(e){console.log(e)}}};checkSetGlobalDataObject(){return!("undefined"==typeof dataLayer)}}
new MainHandler({'data':{'metrics':{'page':{'pageType':'action','languageType':'en','cityType':'Dubai','userType':false}},'siteConsts':{'metrics':{'ym':{'clientId':false,'id':'94725627'},'ga':{'dataFlowID':'G-5B8DN3DYWR','threadID':'6033159662','containerGTM':'GTM-M4FZS3F3','analyticsId':'AW-11249516207','currency':'AED'},'roistat':{'active':false}},'isBot':false,'siteId':'en','siteDir':'/','domain':'askona.ae','projectType':'AskonaEStore','siteTemplatePath':'/local/templates/Askona2023','isTablet':false,'isMobile':false,'deviceType':'desktop','phone':{'mask':'+971 (__) ___-__-__','placeholder':'+971 (__) ___-__-__'},'phonePatterns':{'by':{'mask':'+375 (__) ___-__-__','placeholder':'+375 (__) ___-__-__'},'ru':{'mask':'+7 (___) ___-__-__','placeholder':'+7 (___) ___-__-__'},'kz':{'mask':'+7 (___) ___-__-__','placeholder':'+7 (___) ___-__-__'},'az':{'mask':'+994 (__) ___-__-__','placeholder':'+994 (__) ___-__-__'},'uz':{'mask':'+998 (__) ___-__-__','placeholder':'+998 (__) ___-__-__'},'ae':{'mask':'+971 (__) ___-__-__','placeholder':'+971 (__) ___-__-__'},'ge':{'mask':'+995 (___) __-__-__','placeholder':'+995 (___) __-__-__'}},'rightSideOrientation':false,'setsIblockId':'83','setsIblockSKUId':'84','bannersInCatalogIblockId':'82','siteCurrency':'AED','catalogReviewsIblockId':'47','loyaltyProgramIblockId':'80','ergomotionMainBannersIblockId':'74','ergomotionMiddleBannersIblockId':'76','multisearchScriptId':'12368','digineticaScriptId':'7411','phoneMaskPatternJQuery':'+971 (50) (1|2|3|4|5|6|7|8|\\9)99-99-99','phoneMaskPattern':'+971 (50) 999-99-99','phoneMaskPatternJS1':'+971 (__) ___-__-__','phoneMaskPlaceholder':'+971 (50) 555-55-55','mapCoords':{'jsMapCenter':'[53.89688477397881, 27.546751667873018]','jsCountryArea':'[[51.391652, 23.151429], [56.113678, 32.514900]]','coords':{'lat':'55.1713','lon':'25.0657'}},'siteLangVersion':'en','timeZone':'Asia/Dubai','locale':'en_US','map':{'types':{'default':{'center':{'lat':'55.1713','lon':'25.0657'}}},'params':{'apiKey2.1':'0645e6cd-0a63-428e-bd8c-5cbc423c199f'}},'priceTypeCode':{'2':'Розничная'},'region':'ae','ps':{'tabby':{'merchant':'AGHFUAE','publicKey':''}},'mindbox':false,'mindboxLoyaltyProgram':false,'mindboxAnalytic':false,'mindboxOperations':[],'mindboxConsts':[],'mindboxRecommendedBlocks':false,'syncBasketBetweenSites':false,'sitesId':['en','ae'],'templateConsts':{'stp':'/local/templates/Askona2023','imagesPath':'/local/templates/Askona2023/images','iconsPath':'/local/templates/Askona2023/images/icons','commonIcon':'/local/templates/Askona2023/images/icons/icons.svg'}},'shrSctHndlr':{'JSClassName':'SharesProductsList','params':{'JSObjectName':'shrSctHndlr','productConstructorVar':'','ProductConstructorJSObjectName':'','mainSelector':'.catalog','enableWebP':true,'imagesQuality':'100','setPurchaseFunctionality':true,'componentTemplateFolder':'/local/templates/Askona2023/components/likeit/catalog.section/shares_products','loadSkuScript':'/local/templates/Askona2023/components/likeit/catalog.section/shares_products/load_sku.php','setActiveFirstPicOnBlur':true,'blockName':'Shares page','sectionName':'','sectionCode':'','sectionId':'0','bot':false,'isMobile':false,'filterActive':false,'sectionSelector':'shrSctHndlr_section','sectionItemsCount':'4','btnWant':false,'cdn':{'pictures':''},'openLinksNewWindow':true,'isClickableStickers':false},'itemsArray':{'35631':{'ID':'35631','SELECTED_ID':'35634','XML_ID':'35631','SELECTED_XML_ID':'','params':{'itemPrice':{'itemId':'35634','discount':'6684','base':'9548','diff':'2864','currency':'AED','discount_percent':'-30%'},'editAreaId':'bx_972056844_35631','mainSelector':'productCard-shrSctHndlr35631_421','curItemId':'35634','itemNum':'0','propsToBasket':[],'propsArray':'','availableToNextSelect':[],'toShow':{'add2basket':false,'selectColors':true,'delBtnFav':false,'btnWant':false,'btnDetailed':true},'urlType':''}},'35626':{'ID':'35626','SELECTED_ID':'35629','XML_ID':'35626','SELECTED_XML_ID':'','params':{'itemPrice':{'itemId':'35629','discount':'9443','base':'14308','diff':'4865','currency':'AED','discount_percent':'-34%'},'editAreaId':'bx_972056844_35626','mainSelector':'productCard-shrSctHndlr35626_118','curItemId':'35629','itemNum':'1','propsToBasket':[],'propsArray':'','availableToNextSelect':[],'toShow':{'add2basket':false,'selectColors':true,'delBtnFav':false,'btnWant':false,'btnDetailed':true},'urlType':''}},'32996':{'ID':'32996','SELECTED_ID':'32997','XML_ID':'32996','SELECTED_XML_ID':'','params':{'itemPrice':{'itemId':'32997','discount':'11300','base':'17937','diff':'6637','currency':'AED','discount_percent':'-37%'},'editAreaId':'bx_972056844_32996','mainSelector':'productCard-shrSctHndlr32996_189','curItemId':'32997','itemNum':'2','propsToBasket':[],'propsArray':'','availableToNextSelect':[],'toShow':{'add2basket':false,'selectColors':true,'delBtnFav':false,'btnWant':false,'btnDetailed':true},'urlType':''}},'33000':{'ID':'33000','SELECTED_ID':'33001','XML_ID':'33000','SELECTED_XML_ID':'','params':{'itemPrice':{'itemId':'33001','discount':'17157','base':'17157','diff':'0','currency':'AED','discount_percent':''},'editAreaId':'bx_972056844_33000','mainSelector':'productCard-shrSctHndlr33000_141','curItemId':'33001','itemNum':'3','propsToBasket':[],'propsArray':'','availableToNextSelect':[],'toShow':{'add2basket':false,'selectColors':true,'delBtnFav':false,'btnWant':false,'btnDetailed':true},'urlType':''}}},'propsSourceData':[],'ecommerce':{'items':[{'id':'35634','xmlId':'NEPIMUAE002','name':'Set Base Ergomotion 450 + mattress Technology Ergo Comfort','categories':['Sets'],'category':'Sets','variant':'90x200','price':'6684','basePrice':'9548','discount':'2864','url':'https://askona.ae/sets/base-ergomotion-450-technology-ergo-comfort-90x200-sery/'},{'id':'35629','xmlId':'NEPIMUAE004','name':'Set Base Ergomotion 450 + mattress Ergo Adaptive Hard','categories':['Sets'],'category':'Sets','variant':'160x200','price':'9443','basePrice':'14308','discount':'4865','url':'https://askona.ae/krovati-transformery/base-ergomotion-450-ergo-adaptive-hard-160x200-sery/'},{'id':'32997','xmlId':'NEPIMUAE006','name':'Set Base Ergomotion 633 + mattress Ergo Adaptive Hard','categories':['Adjustable beds'],'category':'Adjustable beds','variant':'160x200','price':'11300','basePrice':'17937','discount':'6637','url':'https://askona.ae/krovati-transformery/ergomotion-633-base-ergo-adaptive-hard-160x200/'},{'id':'33001','xmlId':'NEPIMUAE008','name':'Set Base Ergomotion 633 + mattress Technology Ergo Comfort','categories':['Adjustable beds'],'category':'Adjustable beds','variant':'160x200','price':'17157','basePrice':'17157','discount':'0','url':'https://askona.ae/krovati-transformery/ergomotion-633-base-technology-ergo-comfort-160x200/'}]}},'user':{'regauth':{'params':{'blockSelector':'regauth','modalId':'signinsignup','default':{'signin':'sms'},'availaible':{'signin':['sms','email'],'signup':['sms','email']},'actionUrl':'/local/action/user.php','links':{'userAgreement':'/public_offer/','privacyPolicy':'/privacy_policy/'}},'availaible':{'auth':{'phone':false,'email':true},'reg':{'phone':false,'email':true}}},'actionScript':'/local/action/user_reg_auth.php'},'glLang':{'discount':'OFF','availability':'Check the availability','in_stock':'Available in stock','menu':'Menu','call_me_back':'Call me back','shops':'Shops','search_by_product':'Search by product','all_products':'All products','show_numbers':'show numbers','your_city':'Your city','back':'Back','all':'All','usr_ctrl_hint_auth':'registration/authorization','usr_ctrl_hint_pers':'personal account','usr_ctrl_hint_cmp':'comparison','usr_ctrl_hint_cart':'cart','usr_ctrl_hint_fav':'favorites','privacy_policy':'Privacy policy','processing_of_personal_data':'Согласие на обработку персональных данных Клиента','site_is_developed':'The site is developed','stay_tuned':'Stay tuned','menu_for_buyers':'For customers','menu_company':'Company','menu_offers':'Promotions','menu_partners':'Partners','countries_menu':'Askona company worldwide','products_in_the_basket':'In the shoping cart','credit_for_your_order':'For this order will be credited','add_to_favorites':'Add to favorites','add_to_order':'Add to order','remove_from_favorites':'Remove from favorites','delete':'Delete','total':'Total','buy_in_1_click':'Call me back','buy_in_1_click_installment':'Купить в рассрочку','place_order':'Place order','empty_popup_basket':'Your shopping cart is empty','empty_popup_basket_text':'There are no items to buy in the shopping cart at the moment. <a class=\"link\" href=\"/\">Go to shopping<\/a> to make purchases.','restore':'Restore','sm_product':'product','sm_product2':'product','sm_product3':'products','sm_product4':'0 product','main_page':'Main page','catalog':'Catalog','basket':'Cart','favorites':'Favorites','personal_profile':'Profile','go_to_top':'Up','bonus_program':'Бонусная программа','sleep_club':'Клуб здорового сна','active_bonus':'Активные бонусы','closest_expiration_date':'Ближайшая дата сгорания бонусов','active_bonus_date':'Дата активации','expiration_bonus_date':'Дата сгорания','waiting_active':'Ждут активации','bonus_program_link':'Вы можете ознакомиться с Программой лояльности Askona Беларусь ','all_filters':'All filters','reset_filters':'Reset filters','reset_filter':'Reset filter','filters':'Filters','products':'Products','sort_popular':'The most popular','sort_expensive':'The most expensive','sort_inexpensive':'The most inexpensive','sort_newest':'The newest','detailed':'Learn more','small_next':'Next','show_more':'Show more','show_10_products':'Show 10 products','show_1_product':'Show 1 product','product_pict':'Product image','fabric_pict':'Fabric image','turn':'Minimize','add_to_basket':'Add to cart','by_order':'By order','rm_from_basket':'Remove from cart','show':'Filter','show_filter':'Show','on_order':'By order','add_gift':'Add a gift','added_gift':'Gift added','close_btn':'Close','no_more_photo_in_fabric':'No photo of this product in the selected fabric','MIN_PRICE_DISCOUNT_NAME':'Price','sticker_week_product':'Product of the Week','sticker_month_product':'Product of the Month','sticker_new_products':'New','sticker_online':'Online only','sticker_hit_sales':'Hit of sales','sticker_time':'Hurry up to buy','sticker_discount':'Discount','sticker_only_website':'Only on the site','sticker_black_friday':'Black Friday','sticker_sale':'Sale','sticker_price_reduced':'Price reduced!','sticker_stock':'Available in stock','sticker_year_selection':'Choosing the year','sticker_delivery':'Delivery in 1 day','sticker_gift_product':'A free gift','product_code':'Product code','end promo':'Until the end of the promotion left','instructions':'Instructions','day':'day','days':'days','months':'months','check_price_with_manager':'Check the price with the manager','installments_from':'Installment from','bonus_points':'Bonus points for the purchase','size_sleep_place':'Size','height':'Height','form':'Shape','weight':'Weight','color':'Color','base':'Base','price_range':'Price from','material_type':'Upholstery material','cloth':'Fabric','all_color':'All colors','from':'from','from_az':'','to':'to','to_az':'','by':'by','configuration':'Change color and size','add2basket':'Add to cart','go_to_basket':'Go to cart','anon':'Anonymous user','review_user_not_found':'To add a review, you need to log in','review_send':'The review has been sent and is awaiting verification','installment/loan':'Installment/Loan','recommend':'We recommend to the product','delivery_pickup':'Delivery and pickup','specifications':'Characteristics','description':'Description','feedback':'Reviews','leave_feedback':'Leave a review','useful_feedback':'Is feedback useful for you?','answer':'Reply','similar_products':'Similar products','additional_product':'With this product they buy','delivery_territory':'Delivery within the city territory','delivery_outside':'Delivery outside the city','delivery_time':'Delivery time','stock':'In stock in #IN_CITY#','stock_another_city':'If available in stock in another city','free':'Free','rub_km':'__xxx__','period_days':'1-3 working days','working_days':'2 working days','end_shares_text':'Until the end of the promotion:','popup_delivery_title':'Delivery','popup_pickup_title':'Store pickup','choose_base':'Choose a base','hide':'Hide','enter_register':'Log in or register','user_with_phone_error':'A user with this phone number exists.','phone_field_error':'The \"Phone\" field is required.','phone_valid_error':'Invalid phone number format.','management':'To manage orders and bonus account','order_status':'Order status','help':'Help','delivery':'Delivery','bonuses':'Bonuses','exit_account':'Log out of the account','personal_empty_basket':'There are no products in the cart at the moment.  <a class=\"link\" href=\"/\"> Go to the catalog<\/a>to make purchases.','personal_data':'Personal data','personal_name':'Name','personal_last_name':'Last name','patronymic':'Patronymic','еnter_patronymic':'Enter your patronymic','date_birth':'Date of birth','choose_date_birth':'Enter or select your date of birth','tin':'TIN','personal_phone':'Phone','personal_enter_phone':'For example, +971 (50) 555-55-55','personal_email':'Email','newsletter_sms':'Receive newsletter by SMS','newsletter_promotion':'Receive newsletters about promotions via SMS','save':'Save','comparison':'Comparison','orders':'Orders','exit':'Exit','UF_SUBSCR_SMS':'Allow SMS mailing','UF_SUBSCR_EMAIL':'Allow E-Mail mailing','UF_SUBSCR_VIBER':'Allow Viber mailing','UF_SUBSCR_MOBILE_PUSH':'Allow MobilePush mailing','UF_SUBSCR_WEBPUSH':'Allow notifications','download_current_price':'Download the current wholesale price list','personal_new_pass':'New password','personal_new_pass_enter':'Enter a new password','personal_confirm_pass':'Password Confirmation','personal_incorrect_confirm_pass':'Incorrect password confirmation','personal_pass_title':'Password and authorization','edit_pass':'Save password','successfully_changed_pass':'The password has been successfully changed.','compare_all':'Compare all','clear_list':'Clear the list','favorites_list_empty':'The list of favorite products is empty.','favorites_list_empty_2':'The list is empty. You can add products to your wish list in our <a href=\"/matrasy/\" style=\"color: #00B9C0;\">catalog<\/a>.','favorites_load_error':'Error loading favorites','favorites_add_in_list':'Product added to favorites','favorites_error_on_add':'An error occurred when adding an item to favorites','favorites_rm_from_list':'The product was removed from favorites','favorites_error_on_rm':'An error occurred when deleting an item from favorites','favorites_list_was_clean':'The list of selected products has been cleared','favorites_error_on_clean_list':'An error occurred while clearing the favorites list','favorites_list_load_success':'Favorites list loaded successfully','compare_list_empty':'There is nothing here yet','show_differences':'Show only differences','reviews':'Reviews:','compare_load_error':'Error loading compared products','go_to_product':'Go to the selection of products','go_to_purchases':'Go to shopping','add_to_cmp':'Add to comparison','rm_from_cmp':'Remove from comparison','completed':'Completed','cancelled':'Cancelled','order_amount':'Order amount','order_pay_successfull':'Your order has been successfully paid. Thank you.','order_error_forming_an_application':'Error generating request.','order_not_found':'Заказ не найден','invalid_request':'Invalid request','order_cancelled':'Order cancelled','order_checking_failure':'Payment verification error','your_aborted_payment':'You aborted the payment. Please retry or choose another payment method.','tabby_payment_failure':'Sorry, Tabby is unable to approve this purchase. Please use an alternative payment method for your order.','bonuses_operations':'Share or get bonuses','active_bonuses':'Active bonuses','inactive_bonuses':'Inactive bonuses','bonus_burn_date':'Bonus burn date','date':'Date','quantity':'Quantity','qty':'Qty','activation_date':'Activation date','date_combustion':'Date of combustion','bskt_add_success':'Товар добавлен в корзину','pcs':'pcs','ordering':'Go to the order','stores':'3 stores','shop':'1 store','feedback_shop':'5 stores','show_all':'Show all','franchise_application':'Franchise application','your_name':'Your name','electronic_mail':'Email address','story':'What do you want to tell about yourself','send_request':'Send us your request and we will promptly respond to you.','contact_us':'Contact us','partners_text':'We pay great attention to the development of Askona with partners, support their business. Our strategy provides for the development of both our own stores and partner stores!','partners_reviews':'Partner reviews','payment_delivery':'Payment and delivery','any_products':'Any products from the site','pickup_warehouse':'Pickup from warehouse','pickup':'Pickup','service_rules':'Rules for the provision of services','pass_order':'When picking up goods from the warehouse, you need to order a pass in advance.','pickup_rules':'Pickup of goods is not carried out on holidays.','authorization':'Log in','entrance':'Log in','registration':'Sign up','by_phone':'By phone','by_email':'By email','enter_phone':'Enter phone number','send_sms_code':'Send SMS with a code','do_register':'Sign up','confirmation_code_sms':'We will send a confirmation code via SMS to the phone number you provided.','confirmation_code_email':'We will send a confirmation code via EMail to the phone number you provided.','user_agreement':'<p>By clicking on the button, you agree to the <a class=\"link\" href=\"/terms-and-conditions/\" target=\"_blank\">terms and conditions<\/a> and <a href=\"/privacy-policy/\" class=\"link\" target=\"_blank\">privacy policy<\/a>.<\/p>\n','Login_social_network':'Log in via social networks','enter_code_sms':'Enter the code from the SMS sent to your number','enter':'Log in','notice_registration_phone':'Fill in all the fields and enter the code from the sms sent to your number','notice_registration_email':'Fill in all the fields and enter the code from the email sent to your address.','code_sms':'The code from the SMS','code_email':'The code from the email','register__error':'Error registering a new user','code__send_ok':'The code has been sent','code__send_error':'Error when sending the code','code__input_error':'Invalid code','code__value_reg_kz':'Код: #CODE# для регистрации на askona.kz','code__value_auth_kz':'Код: #CODE# для авторизации на askona.kz','code__value_reg_uz':'Askona: ro\'yxatdan o\'tish uchun tasdiqlash kodi #CODE#  Askona: код подтверждения для регистрации #CODE#','code__value_auth_uz':'Askona: kirish uchun tasdiqlash ko\'di #CODE#  Askona: код подтверждения для авторизации #CODE#','auth_personal_data':'I agree to the terms of personal data processing and protection, and consent to join the Askona loyalty program.','approval_mailing':'I agree to receive advertising messages via SMS, email, WhatsApp, and push notifications.','register':'Sign up','auth_pass':'Password:','auth_forgot_pass':'Forgot your password?','auth_reg_phone':'Registration by phone:','auth_reg_email':'Registration by E-Mail:','auth_name':'Your name:','auth_name_placeholder':'Name','auth_surname_placeholder':'Last name','auth_surname':'Your last name:','email_address':'Email address','reg__no_allow_policy':'Continuation is impossible without acceptance of the terms of processing and protection of personal data','next':'Continue','store_addresses':'Store addresses','enter_city':'Enter the city','selected_city':'Selected city','search':'Is your city not on the list? Use the search','city':'City','all_salons_list':'Stores in other cities ','enter_address':'Search by (street, shopping mall)','find_store':'Find a store','callback':'Do you want us to call you back?','enter_number':'Enter your mobile phone number and we will contact you in 30 seconds!','waiting_call':'Waiting for a call!','call_time':'Choose the time of the call','today':'Today','next_day':'Tomorrow','call_now':'Get a call now','preorder_title':'Place a pre-order','preorder_btn':'Place','callback_colors':'Do you want us to call you back for color matching?','colors_production_avail':'Up to 60 colors and shades are available for production','color_selection':'Leave a contact number and the manager will contact you for an accurate selection','pick_color':'Choose color','map':'Show on map','order':'Order','pickup_mattress':'Pick up a mattress','bestsellers':'Best sellers','newest':'New products','download':'Download','form_contacts':'Feedback form from the сontacts page','contact_info':'Contact information','write':'Write to us','question':'Your question','enter_question':'Enter your question','send':'Send','approval_agreement_ae':'I have read, understood, and agree to the <a class=\"link\" href=\"/terms-and-conditions/\" target=\"_blank\">terms and conditions<\/a> and <a class=\"link\" href=\"/privacy-policy/\" target=\"_blank\">privacy policy<\/a>.','approval_agreement_ru':'','approval_agreement_by':'','approval_agreement_az':'','approval_agreement_uz':'','approval_agreement_kz':'','approval_agreement_error':'<span class=\"signin-info\">To place an order, you must comply with the rules/conditions.<\/span>','faq_title':'Questions and answers','promo_empty':'There are no promotions at the moment','promotion_rules':'Promotion rules','products_promotions':'Products participating in the promotion','promo_finished':'Promotion completed','promo_period':'The promotion period from ','promo_end_year':'year','promo_preorder_btn':'Pre-order','application':'Claim Application','identification_front':'ID card scan (Front side)','identification_back':'ID card scan (Back side)','choose_file':'Select a file','no_file':'File not selected','scan_application':'Application scan','check':'Fiscal check','reset':'Reset','form_filing_a_claim':'Feedback form from the Claim Submission page','connection_conditions':'View the connection conditions','collapse_conditions':'Collapse connection conditions','installment_text':'If you dream of a healthy sleep, use the installment payment','all_articles':'All articles','сontact_us':'Contact us','company':'Company','title_company':'Enter the name of your company','website':'Website','name_website':'Enter the name of your website','country':'Country','choose_country':'Choose your country','message':'Message','your_message':'Enter your message','cooperation':'We invite you to cooperate','name_city':'Enter the name of your city','form_designers_and_architects':'Feedback form from the page to Designers and architects','own':'Property','legal_entity':'Legal entity','natural_person':'Natural person','individual_entrepreneur':'Individual entrepreneur','designers_phone':'Phone','personal_information':'Personal data','personal_favorites':'Favorites','personal_basket':'Shopping cart','personal_comparison':'Comparison','personal_orders':'Orders','personal_bonus_program':'Bonus program','personal_exit':'Exit','auth_no_email':'Invalid email','auth_length_pass':'Password length from 8 to 25 characters','auth_user_block':'The user is blocked or inactive!','auth_no_pass_or_login':'Invalid username or password','auth_format_phone':'Invalid format','auth_no_user_phone':'There is no user with this number. Before you log in, register.','auth_enter_name':'Enter your first name','auth_enter_surname':'Enter your last name','auth_email_exists':'User with login #email# already exists!','auth_user_exists':'The user already exists. Use the login form.','auth_user_agreement':'You have not given consent to registration','auth_error':'Error','auth_get_user_error':'An error occurred while retrieving the user profile','auth_success':'Authorization was successful','auth_register':'Registration on the site ','auth_email_exists_without_email':'This email address is already in use','auth_phone_exists':'This phone number is already in use','auth_register_error':'Registration error','auth_update_error':'An error occurred while updating','b24_form_status_false':'An error occurred while sending data. Please reload the page and try again or contact the site administration.','b24_form_status_true':'The request has been sent successfully. Wait for the operator to call','b24_form_error':'Error when submitting the request. Please reload the page and try again or contact the site administration.','b24_form_error_1':'An error occurred when creating the application. Try again or use the hotline phone','lifting_mechanism':'Lifting mechanism','orthopedic_lattice':'Orthopedic grille','without_base':'Without base','base_slats':'Base with slats','ergo_base':'Ergomotion adjustable base','b24_form_error_3':'The phone number is not entered. Try again','pagination_prev':'Prev','pagination_next':'Next','pag_button_more':'Show more','pag_you_looked':'You viewed','pag_from':'out of','pag_goods':'items','blog_title':'Blog','blog_all_article':'All articles','blog_similar_article':'Related articles','one_no_prop':'Order property not found','one_page_text':'Call me back','one_page_catalog':' on the catalog section page','one_page_detail':' on the detailed product page','one_page_basket':' on the catalog section page','one_popup_basket':' from the pop-up cart','one_valid_phone':'Invalid phone number','one_valid_order_data':'Incorrect order data','one_empty_basket':'Empty cart','one_error':'1-click product registration error','one_no_order':'It is impossible to place an order','one_no_availability':'It is impossible to place an order: the product is out of stock.','one_error2':'An error occurred when placing an order. Please try again or place an order in another way.','one_error3':'An error occurred when placing an order. Please try again or use the checkout page.','one_success':'Order completed successfully','one_success2':'The order has been successfully placed. Wait for the operator to call.','one_buy':'Call me','one_buy_installment':'Buy on credit/ installments','one_check_agreement_error':'To place an order, you must comply with the rules/conditions.','order_process':'Your order has been sent for processing, thank you!','order_confirm_text_0':'Dear customers!','order_confirm_text_1':'Please note that due to the heavy load, the waiting time for an order processing call may be exceeded.','order_confirm_text_2':'All incoming applications will be processed.','order_confirm_text_3':'We ask you to wait for the operator to call.','order_callback':'You can always order a <button class=\"link\" data-modal-name=\"call-back\">callback <\/button>','order_email':'If we cannot reach you, we will send an email to the e-mail specified in the order.','order_payment':'Order payment','order_payment_title_ok':'Your order has been successfully paid for','order_user_find':'<span class=\"signin-info\">The user already exists. <a href=\"signinsignup\" class=\"modal-btn\" data-modal-name=\"signinsignup\">Login<\/a><\/span>','error_title':'Unfortunately, the page was not found!','error_title2':'404 - Page not found','error_title3':'Page not found','error_text':'It may have been deleted or moved to another partition. You can go back to  <a href=\"/\">home page<\/a>, rate our <a href=\"/matrasy/\">mattresses,<\/a> <a href=\"/krovati/\">beds,<\/a> <a href=\"/podushki/\">pillows<\/a> or use the search form.','error_cart_bad_id':'An error occurred when adding an item to the cart: invalid ID','resume':'Summary','form_vacancies':'Feedback form from the Vacancy page','career_vacancy':'Desired position','menedger':'Manager','resume_text':'Summary text','enter_resume_text':'Enter your text...','required_fields':'required fields','rev_answear':'Your answer','rev_name':'Your name','file_add':'file added','files_add':'files added','rev_email':'Enter your email address','max_size_alert':'max 8 MB:\\n\\n','rev_upload':'Drag and drop here or <span class=\"file-msg-blue\">upload files<\/span>','rev_upload_type':'Drag and drop here or <span class=\"file-msg-blue\">upload files<\/span> doc, .docx, .rtf, .pdf, .odt, .jpg, .png less than 8 mb','rev_rules':'All reviews are published after verification by a moderator. We do not publish reviews that do not comply with the <a target=\"_blank\" href=\"/rules-publishing/\">rules for publishing user-generated content.<\/a>','rev_product':'Product Review','rev_rating':'Specify rating','rev_comment':'Comment','less':'less','rev_anon':'Anonymous review (Your name will be hidden in the signature to the review)','sended':'Sent','req_err':'An error has occurred. Please reload the page or contact the site administration','req_err_load':'An error occurred while downloading','req_err_retry':'An error occurred while executing the request. Please try again or use the checkout page','req_err_regular':'Error','req_err_form':'An error occurred while loading the form','file_size_err':'File size is too big!','files_size_err':'The total size of the files is too large! The maximum file size is #MAX_FILE_SIZE#.','success_load_file':'File uploaded successfully','error_load_file':'Upload error','error_type_file':'Invalid format','form_send_file_error':'You didn\'t send the file!','load_file_to_form':'Loading...','mail_erroe_send':'An error occurred while sending data. ','mail_name_error':'You didn\'t provide a name.','mail_valid_phone':'Incorrect phone number! ','mail_no_phone':'You didn\'t provide a phone number. ','mail_no_vacancy':'You didn\'t specify the desired position. ','mail_no_sname':'You didn\'t specify your last name.  ','mail_no_email':'You didn\'t specify an Email address. ','file_delete_error':'Error deleting file','error_occurred':'An error has occurred','error_while_updating':'An error has occurred','site_under_construction':'SITE UNDER CONSTRUCTION','site_under_construction_excuse':'We apologize for the temporary inconvenience','turn_off_purchasing_functionality':'Website purchase functionality','received_an_application':'An application for a vacancy has been received','contact_data':'Contact details:','phone_number':'Phone number','text_resume':'Summary text:','question_text':'Question: ','about_me':'About me','proceed_to_checkout':'Go to payment ','text_proceed_to_checkout':'After scanning the QR code, you need to enter the order amount','header_region_by':'Бел','header_region_az':'Az','header_region_uz':'O\'zb','header_region_kz':'Қаз','header_region_ru':'Рус','header_region_ka':'Гру','header_region_en':'Eng','header_region_ar':'عربي','accept_cookies__title':'Your privacy is important','accept_cookies__description':'We use cookies to enhance your browsing experience and deliver personal content','accept_cookies__btn':'Accept All','address':'Address','by_the_address':'at the address','schedule':'Work schedule','discounted_furniture':'Furniture on clearance is available for purchase in our online store or at our Askona Healthy Sleep discounter in #SHOP#, #ADDRESS#','loyalty_program':'Программа лояльности','view_products':'Посмотреть товары','product__declination_':'','product__declination_OV':'','product__declination_A':'','sel_select_again':'Select again','sel_next_step':'Next','sel_mattresses_selection':'Mattress selection','sel_show_results':'Show results','sel_selection_result':'Selection results','sel_completed':'All set!','sel_perfect_sleeplace':'Create the perfect sleep place','sel_mattresses_picker':'Mattress picker','sel_dreamer_type':'Who will be sleeping on the mattress?','sel_one_adult':'One adult','sel_two_aduls':'Two adults','sel_child':'Child','sel_mattress_size':'Mattress size','sel_not_decide':'Not decided yet','sel_second_age':'Age of the second sleeper','sel_age':'years old','sel_pain_question':'Do you have back pain?','sel_pain_question_second':'Does the 2nd sleeper have back pain?','sel_no_pain':'No, my back is fine','sel_have_pain':'Yes, I have back pain','sel_second_weight':'Weight of the second sleeper','sel_your_age':'Your age','sel_your_weight':'Your weight','sel_need_consult':'I need a consult','sel_doesnt_matter':'Doesn\'t matter','sel_premium':'Premium','sel_standart':'Standard','sel_comfort':'Comfort','sel_business':'Business','sel_elite':'Elite','sel_price_ranges':'Price ranges','sel_rigidity_mattress':'Mattress firmness','sel_hard':'Firm','sel_mid':'Medium-Firm','sel_child_age':'Child\'s age','sel_child_gender':'Child\'s gender','sel_child_boy':'Boy','sel_child_girl':'Girl','sel_child_health':'Child\'s health features','sel_no_problems':'No problems','sel_allergy':'Allergy','sel_back_problems':'Back problems','sel_age_tooltip':'Depending on age, we will recommend mattresses based on firmness and other features','sel_child_gender_tooltip':'We have mattresses with embroideries for boys or girls. We will consider this when selecting options for you','sel_child_health_tooltip':'This is important when selecting the firmness or materials of the mattress','sel_weight_tooltip':'Weight affects the firmness, the number of springs, and the selection of the number of zones in the spring unit','sel_rigidity_tooltip':'The firmness of the mattress reflects the degree of spinal support','sel_price_tooltip':'The higher the price segment, the more layers the mattress has, the more support zones for the spine, the comfort level of the top layer, and other components change','sel_result_isset_items':'Personally, we have chosen #COUNT_ITEMS# for you. The recommendation is based on an analysis of the choices made by people with similar parameters.','sel_result_not_isset_items':'No suitable options for this case! Please try again with less strict conditions.','sel_trend_models':'Trendy models with high legs','sel_classic_models':'Classic models','sel_healthy_sleep':'For healthy sleep','sel_choose_functional_features':'Select functional features','sel_sofas_dimensions':'What size of sofa do you want?','sel_sofa_type':'What type of sofa do you want?','sel_sofas_picker':'Sofa selector','sel_perfect_for_rest':'A perfect sofa for sleep and rest','sel_compact_dimensions':'Compact','sel_standart_dimensions':'Standard','sel_big_dimensions':'Big','sel_sofas_selection':'Selecting a sofa','sel_choose_filler':'What type of pillow filling do you prefer?','sel_pillows_selection':'Selecting a pillow','sel_pillow_shape':'Select a pillow shape.','sel_sleep_pos':'In which position do you sleep most often?','sel_pillows_tooltip':'This is important for choosing the optimal pillow.','sel_gender':'Gender','sel_clothes_size':'What is your clothing size?','sel_pillows_picker':'Pillow selector','sel_pillow_sleeplace_begin':'A good night\'s sleep starts with a right pillow','sel_male':'Male','sel_female':'Female','sel_foam_pillow':'Foam pillow','sel_synth_pillow':'Synthetic filling','sel_fluff_pillow':'Down and feather pillow','sel_squared_pillow':'Rectangular','sel_special_pillow':'Specific','sel_beds_picker':'Bed selector','sel_beds_selection':'Selecting a bed','sel_for_parents':'For parents','sel_for_myself':'For myself','sel_for_child':'For a child','sel_wood_array':'Solid wood','sel_ldsp':'Laminated chipboard','sel_metal_base':'Metal frame','sel_fabric_holster':'Fabric upholstery','sel_no_preference':'No preference','sel_wardrobe_bed':'A wall bed','sel_linen_box':'A storage space','sel_robot_cleaner':'A robotic vacuum cleaner','sel_trans_base':'An adjustable base','sel_bed_purpose':'For whom are you looking an ideal bed?','sel_bed_type':'Select a bed type','sel_bed_material':'Select bed material','sel_wide_models':'Over 100 models for children and adults','fabrics_characteristics':'Characteristics','fabrics_type':'Fabric type','fabrics_structure':'Composition','fabrics_resistance':'Wear resistance to abrasion','fabrics_manufacturer':'Manufacturer','fabrics_cycles':'cycles','fabrics_norm_for_furniture_7000':'for furniture the norm is not less than 7,000 cycles','polyester':'polyester','acryl':'acrylic','polyamid':'polyamide','neylon':'nylon','polypropilen':'polypropylene','fabrics_recommendation':'Care instructions','fabrics_recommendation_list':'\n<li>Protect from direct sunlight and incandescent lamps.<\/li>\n<li>Use special detergents for furniture fabrics for self-cleaning.<\/li>\n<li>When removing dirt, use non-concentrated soap.<\/li>\n<li>Dry clean with a vacuum cleaner using soft bristles.<\/li>\n<li>Remove dust using a damp sponge or cloth.<\/li>\n<li>Dry clean with specialized companies.<\/li>\n<li>Keep away from pets.<\/li>','fabrics_selected_color':'#FABRIC_NAME# color selected','fabrics_fabrics_catalog':'Fabric catalog','fabrics_fabrics_colors':'Fabric colors','fabrics_products_with_fabrics_all':'Products made from #FABRIC_NAME# fabric','fabrics_products_with_fabrics':'#FABRIC_NAME# fabric products','fabrics_view_all_products':'View all products','fabrics_fabrics_library':'Fabric library','fabrics_fabrics_filter':'Fabric filter','fabrics_colors':'+ #COUNT# color','turkiye':'Turkey','china':'China','material_ekokozha':'Eco leather','material_natur_derevo':'Natural wood','material_kozhzam':'Leatherette','material_velyur':'Velour','material_iskusst_kozha':'Faux leather','material_zamsha':'Suede','material_rogozhka':'Matting','material_tkanevyy':'Fabric','material_antivandal_tkan':'Vandal-proof fabric','material_antikogot':'Anti-claw','material_microfibra':'Microfiber','material_microvelyur':'Microvelour','material_zhakkard':'Jacquard','material_shelk_velyur':'Silk velour','material_ital_rogozhka':'Italian matting','material_sosna':'Pine','material_hlopok':'Cotton','material_meb_zamsha':'Furniture suede','material_microfib_zamsha':'Microfiber-suede','material_velyur_zamsha':'Velour suede','material_velvet':'Velvet','material_iskusstvennaya-sherst':'Faux wool','material_shenill':'Chenille','material_tsvet':'Color','material_iskusstvennaya-zamsha':'Faux suede','material_shenill_rogozhka':'Chenill matting','material_flok':'Flock','material_velyur_s_printom':'Velour with print','material_meb_velyur':'Furniture velour','material_metal':'Metal'},'phonePatterns':{'by':{'mask':'+375 (__) ___-__-__','placeholder':'+375 (__) ___-__-__'},'ru':{'mask':'+7 (___) ___-__-__','placeholder':'+7 (___) ___-__-__'},'kz':{'mask':'+7 (___) ___-__-__','placeholder':'+7 (___) ___-__-__'},'az':{'mask':'+994 (__) ___-__-__','placeholder':'+994 (__) ___-__-__'},'uz':{'mask':'+998 (__) ___-__-__','placeholder':'+998 (__) ___-__-__'},'ae':{'mask':'+971 (__) ___-__-__','placeholder':'+971 (__) ___-__-__'},'ge':{'mask':'+995 (___) __-__-__','placeholder':'+995 (___) __-__-__'}}}}, (main)=>{
            

        window.dataLayer = window.dataLayer || [];
        if (main?.sd?.metrics?.page) {
            dataLayer.unshift(main.sd.metrics.page);    
        }

main.h.banners_85300 = new Banners_1({'initSlider':false,'blockClassName':'banners_85300','ecommerceData':[{'id':'up-to-70-off-on-sleep-essentials','name':'Up to 70% off on Sleep Essentials','creative':'Up to 70% off on Sleep Essentials','bnrId':'35732','position':'1'}],'sendEcommerce':true,'locationId':'heder_banner'}, {_main: main, _parent: main});

if (!main.const('isBot')) {
    main.h.smBask = new SmallBasketHandler({
        className: 'cart-box',
        handlerScript: '/local/components/likeit/sale.basket.basket.small/ajax.php',
        params: {'LOAD_ASYNC':'Y','JS_OBJECT_NAME':'smBask','CACHE_TYPE':'A','ACTION_VARIABLE':'soa-action','loadAsync':true},
        siteId: 'en',
    }, main.init._constructor);
}
    

    main.h.shrSctFilter = new SharesFilter({'ajaxURL':'/shares/mattresses/','catalogSectionJSObjectName':'shrSctHndlr','JSObjectName':'shrSctFilter','mainSelector':'shrSctFilter','formName':'sharesProductsFilter','items':[{'ID':'388','IBLOCK_ID':'58','CODE':'MIN_PRICE_DISCOUNT','~NAME':'Minimum discounted price','NAME':'Price','PROPERTY_TYPE':'N','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'B','DISPLAY_EXPANDED':'','FILTER_HINT':'','SORT':'10','VALUES':{'MIN':{'CONTROL_ID':'sharesProductsFilter_388_MIN','CONTROL_NAME':'sharesProductsFilter_388_MIN','VALUE':'6684','HTML_VALUE':'','FILTERED_VALUE':'','CHECKED':false,'DISABLED':false},'MAX':{'CONTROL_ID':'sharesProductsFilter_388_MAX','CONTROL_NAME':'sharesProductsFilter_388_MAX','VALUE':'17157','HTML_VALUE':'','FILTERED_VALUE':'','CHECKED':false,'DISABLED':false}},'ENCODED_ID':'','DECIMALS':'0','SHOW_IN_FAST_FILTERS':'1'},{'ID':'430','IBLOCK_ID':'58','CODE':'razmer_divan','~NAME':'Sleeping place (WxL)','NAME':'Sleeping place (WxL)','PROPERTY_TYPE':'S','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'N','FILTER_HINT':'','SORT':'500','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'650','IBLOCK_ID':'58','CODE':'dimensions_sofa_position','~NAME':'Dimensions in the \"Sofa\" position','NAME':'Dimensions in the &quot;Sofa&quot; position','PROPERTY_TYPE':'S','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'N','FILTER_HINT':'','SORT':'500','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'651','IBLOCK_ID':'58','CODE':'dimensions_bed_position','~NAME':'Dimensions in the \"Bed\" position','NAME':'Dimensions in the &quot;Bed&quot; position','PROPERTY_TYPE':'S','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'N','FILTER_HINT':'','SORT':'500','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'709','IBLOCK_ID':'58','CODE':'gabarity_divana_shirina_dlina','~NAME':'Dimensions (WxL)','NAME':'Dimensions (WxL)','PROPERTY_TYPE':'S','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'N','FILTER_HINT':'','SORT':'500','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'768','IBLOCK_ID':'58','CODE':'kolichestvo_nitey_kpb','~NAME':'Thread count (TC)','NAME':'Thread count (TC)','PROPERTY_TYPE':'S','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'N','FILTER_HINT':'','SORT':'500','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'773','IBLOCK_ID':'58','CODE':'recommended_mattress_height_for_bed_slats','~NAME':'Recommended mattress height for a bed with slats','NAME':'Recommended mattress height for a bed with slats','PROPERTY_TYPE':'S','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'N','FILTER_HINT':'','SORT':'500','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'774','IBLOCK_ID':'58','CODE':'recommended_mattress_height_for_bed_lifting_mechan','~NAME':'Recommended mattress height for a bed with lifting mechanism','NAME':'Recommended mattress height for a bed with lifting mechanism','PROPERTY_TYPE':'S','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'N','FILTER_HINT':'','SORT':'500','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'695','IBLOCK_ID':'59','CODE':'HEIGHT','~NAME':'Height','NAME':'Height','PROPERTY_TYPE':'N','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'A','DISPLAY_EXPANDED':'N','FILTER_HINT':'','SORT':'500','VALUES':{'MIN':{'CONTROL_ID':'sharesProductsFilter_695_MIN','CONTROL_NAME':'sharesProductsFilter_695_MIN','HTML_VALUE':'','VALUE':'0','FILTERED_VALUE':'','CHECKED':false,'DISABLED':false},'MAX':{'CONTROL_ID':'sharesProductsFilter_695_MAX','CONTROL_NAME':'sharesProductsFilter_695_MAX','HTML_VALUE':'','VALUE':'0','FILTERED_VALUE':'','CHECKED':false,'DISABLED':false}},'ENCODED_ID':'','DECIMALS':'0'},{'ID':'696','IBLOCK_ID':'59','CODE':'FORM','~NAME':'Shape','NAME':'Shape','PROPERTY_TYPE':'L','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'Y','FILTER_HINT':'','SORT':'500','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'765','IBLOCK_ID':'58','CODE':'color_product','~NAME':'Color','NAME':'Color','PROPERTY_TYPE':'L','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'Y','FILTER_HINT':'','SORT':'4000','VALUES':[],'ENCODED_ID':'','DECIMALS':'0'},{'ID':'766','IBLOCK_ID':'59','CODE':'COLOR_PRODUCT','~NAME':'Color','NAME':'Color','PROPERTY_TYPE':'L','USER_TYPE':'','USER_TYPE_SETTINGS':'a:0:{}','DISPLAY_TYPE':'F','DISPLAY_EXPANDED':'Y','FILTER_HINT':'','SORT':'4000','VALUES':{'3451':{'CONTROL_ID':'sharesProductsFilter_766_324470675','CONTROL_NAME':'sharesProductsFilter_766_324470675','CONTROL_NAME_ALT':'sharesProductsFilter_766','HTML_VALUE_ALT':'324470675','HTML_VALUE':'Y','VALUE':'Beige','SORT':'500','UPPER':'BEIGE','FLAG':true,'URL_ID':'bezh','FACET_VALUE':'3451','ELEMENT_COUNT':'2','CHECKED':false,'DISABLED':false},'3476':{'CONTROL_ID':'sharesProductsFilter_766_3204837554','CONTROL_NAME':'sharesProductsFilter_766_3204837554','CONTROL_NAME_ALT':'sharesProductsFilter_766','HTML_VALUE_ALT':'3204837554','HTML_VALUE':'Y','VALUE':'Gray','SORT':'500','UPPER':'GRAY','FLAG':true,'URL_ID':'sery','FACET_VALUE':'3476','ELEMENT_COUNT':'2','CHECKED':false,'DISABLED':false}},'ENCODED_ID':'','DECIMALS':'0'}],'params':{'SEF_SET_FILTER_URL':'/shares/mattresses/filter/clear/apply/','SEF_DEL_FILTER_URL':'/shares/mattresses/filter/clear/apply/'}}, main.init._constructor);
    shrSctFilter = main.h.shrSctFilter;
    

main.h.shrSctHndlr = new SharesProductsList(main.sd.shrSctHndlr, main.init._constructor);

main.h.preloader = new Preloader({
    visual: {
        circleColor: '#00B9BF',
        circleColorActive: '#00c1c8',
        period: '2s',
        circlesCount: 8,
    }
}, main.init._constructor);
main.preloader = main.h.preloader;


main.h.user = new User({}, {_main: main, _parent: main});

main.h.user.h.regauth = new UserRegistrationAuthorization(main.sd.user.regauth, {_main: main, _parent: main.h.user});
main.react = /*! For license information please see index_bundle.js.LICENSE.txt */
((_APPMAIN)=>{"use strict";var e,t,n={551:(e,t,n)=>{var r=n(540),a=n(982);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,o={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(o[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,a,l,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),j=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var T=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var O,R=Object.assign;function F(e){if(void 0===O)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||""}return"\n"+O+e}var D=!1;function U(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),l=r.stack.split("\n"),i=a.length-1,o=l.length-1;1<=i&&0<=o&&a[i]!==l[o];)o--;for(;1<=i&&0<=o;i--,o--)if(a[i]!==l[o]){if(1!==i||1!==o)do{if(i--,0>--o||a[i]!==l[o]){var s="\n"+a[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=o);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function B(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case S:return"Profiler";case P:return"StrictMode";case C:return"Suspense";case E:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case M:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===P?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,l.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){G(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(l(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(l(92));if(te(n)){if(1<n.length)throw Error(l(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function le(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(l(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(l(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(l(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,Pe=null;function Se(e){if(e=ya(e)){if("function"!=typeof ke)throw Error(l(280));var t=e.stateNode;t&&(t=wa(t),ke(e.stateNode,e.type,t))}}function Ne(e){xe?Pe?Pe.push(e):Pe=[e]:xe=e}function je(){if(xe){var e=xe,t=Pe;if(Pe=xe=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Ae(e,t){return e(t)}function Ce(){}var Ee=!1;function Me(e,t,n){if(Ee)return e(t,n);Ee=!0;try{return Ae(e,t,n)}finally{Ee=!1,(null!==xe||null!==Pe)&&(Ce(),je())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}var ze=!1;if(c)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(ce){ze=!1}function Le(e,t,n,r,a,l,i,o,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Oe=!1,Re=null,Fe=!1,De=null,Ue={onError:function(e){Oe=!0,Re=e}};function Be(e,t,n,r,a,l,i,o,s){Oe=!1,Re=null,Le.apply(Ue,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ve(e){if(qe(e)!==e)throw Error(l(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Ve(a),e;if(i===r)return Ve(a),t;i=i.sibling}throw Error(l(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(e))?He(e):null}function He(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=He(e);if(null!==t)return t;e=e.sibling}return null}var Qe=a.unstable_scheduleCallback,Ke=a.unstable_cancelCallback,Ye=a.unstable_shouldYield,Xe=a.unstable_requestPaint,Ge=a.unstable_now,Ze=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,lt=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ot(e)/st|0)|0},ot=Math.log,st=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,l=e.pingedLanes,i=268435455&n;if(0!==i){var o=i&~a;0!==o?r=dt(o):0!=(l&=i)&&(r=dt(l))}else 0!=(i=n&~a)?r=dt(i):0!==l&&(r=dt(l));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&a)&&((a=r&-r)>=(l=t&-t)||16===a&&0!=(4194240&l)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var yt=0;function _t(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,kt,xt,Pt,St,Nt=!1,jt=[],At=null,Ct=null,Et=null,Mt=new Map,It=new Map,zt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Ot(e,t,n,r,a,l){return null===e||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},null!==t&&null!==(t=ya(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Rt(e){var t=ba(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void St(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ya(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);_e=r,n.target.dispatchEvent(r),_e=null,t.shift()}return!0}function Dt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Nt=!1,null!==At&&Ft(At)&&(At=null),null!==Ct&&Ft(Ct)&&(Ct=null),null!==Et&&Ft(Et)&&(Et=null),Mt.forEach(Dt),It.forEach(Dt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Nt||(Nt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ut)))}function qt(e){function t(t){return Bt(t,e)}if(0<jt.length){Bt(jt[0],e);for(var n=1;n<jt.length;n++){var r=jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==At&&Bt(At,e),null!==Ct&&Bt(Ct,e),null!==Et&&Bt(Et,e),Mt.forEach(t),It.forEach(t),n=0;n<zt.length;n++)(r=zt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&null===(n=zt[0]).blockedOn;)Rt(n),null===n.blockedOn&&zt.shift()}var Wt=_.ReactCurrentBatchConfig,Vt=!0;function $t(e,t,n,r){var a=yt,l=Wt.transition;Wt.transition=null;try{yt=1,Qt(e,t,n,r)}finally{yt=a,Wt.transition=l}}function Ht(e,t,n,r){var a=yt,l=Wt.transition;Wt.transition=null;try{yt=4,Qt(e,t,n,r)}finally{yt=a,Wt.transition=l}}function Qt(e,t,n,r){if(Vt){var a=Yt(e,t,n,r);if(null===a)Vr(e,t,r,Kt,n),Lt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return At=Ot(At,e,t,n,r,a),!0;case"dragenter":return Ct=Ot(Ct,e,t,n,r,a),!0;case"mouseover":return Et=Ot(Et,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return Mt.set(l,Ot(Mt.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,It.set(l,Ot(It.get(l)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Tt.indexOf(e)){for(;null!==a;){var l=ya(a);if(null!==l&&wt(l),null===(l=Yt(e,t,n,r))&&Vr(e,t,r,Kt,n),l===a)break;a=l}null!==a&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Kt=null;function Yt(e,t,n,r){if(Kt=null,null!==(e=ba(e=we(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Gt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,a="value"in Gt?Gt.value:Gt.textContent,l=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[l-t];t++);return Jt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,l){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=l,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var ln,on,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),dn=R({},un,{view:0,detail:0}),fn=an(dn),pn=R({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(ln=e.screenX-sn.screenX,on=e.screenY-sn.screenY):on=ln=0,sn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:on}}),hn=an(pn),mn=an(R({},pn,{dataTransfer:0})),gn=an(R({},dn,{relatedTarget:0})),vn=an(R({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=R({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=an(bn),_n=an(R({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Sn(){return Pn}var Nn=R({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jn=an(Nn),An=an(R({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=an(R({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),En=an(R({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=R({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=an(Mn),zn=[9,13,27,32],Tn=c&&"CompositionEvent"in window,Ln=null;c&&"documentMode"in document&&(Ln=document.documentMode);var On=c&&"TextEvent"in window&&!Ln,Rn=c&&(!Tn||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),Dn=!1;function Un(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function $n(e,t,n,r){Ne(r),0<(t=Hr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Qn=null;function Kn(e){Fr(e,0)}function Yn(e){if(Q(_a(e)))return e}function Xn(e,t){if("change"===e)return t}var Gn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Gn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Hn&&(Hn.detachEvent("onpropertychange",nr),Qn=Hn=null)}function nr(e){if("value"===e.propertyName&&Yn(Qn)){var t=[];$n(t,Qn,e,we(e)),Me(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Qn=n,(Hn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Qn)}function lr(e,t){if("click"===e)return Yn(t)}function ir(e,t){if("input"===e||"change"===e)return Yn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!or(e[a],t[a]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,l=Math.min(r.start,a);r=void 0===r.end?l:Math.min(r.end,a),!e.extend&&l>r&&(a=r,r=l,l=a),a=cr(n,l);var i=cr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==K(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Hr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Pr={};function Sr(e){if(xr[e])return xr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Pr)return xr[e]=n[t];return e}c&&(Pr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Nr=Sr("animationend"),jr=Sr("animationiteration"),Ar=Sr("animationstart"),Cr=Sr("transitionend"),Er=new Map,Mr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Er.set(e,t),s(t,[e])}for(var zr=0;zr<Mr.length;zr++){var Tr=Mr[zr];Ir(Tr.toLowerCase(),"on"+(Tr[0].toUpperCase()+Tr.slice(1)))}Ir(Nr,"onAnimationEnd"),Ir(jr,"onAnimationIteration"),Ir(Ar,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Cr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Rr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,o,s,u){if(Be.apply(this,arguments),Oe){if(!Oe)throw Error(l(198));var c=Re;Oe=!1,Re=null,Fe||(Fe=!0,De=c)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==l&&a.isPropagationStopped())break e;Rr(a,o,u),l=s}else for(i=0;i<r.length;i++){if(s=(o=r[i]).instance,u=o.currentTarget,o=o.listener,s!==l&&a.isPropagationStopped())break e;Rr(a,o,u),l=s}}}if(Fe)throw e=De,Fe=!1,De=null,e}function Dr(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Br]){e[Br]=!0,i.forEach((function(t){"selectionchange"!==t&&(Or.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Ur("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var a=$t;break;case 4:a=Ht;break;default:a=Qt}n=a.bind(null,t,n,e),a=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,a){var l=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var o=r.stateNode.containerInfo;if(o===a||8===o.nodeType&&o.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;i=i.return}for(;null!==o;){if(null===(i=ba(o)))return;if(5===(s=i.tag)||6===s){r=l=i;continue e}o=o.parentNode}}r=r.return}Me((function(){var r=l,a=we(n),i=[];e:{var o=Er.get(e);if(void 0!==o){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=jn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Cn;break;case Nr:case jr:case Ar:s=vn;break;case Cr:s=En;break;case"scroll":s=fn;break;case"wheel":s=In;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=An}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==o?o+"Capture":null:o;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Ie(h,f))&&c.push($r(h,m,p))),d)break;h=h.return}0<c.length&&(o=new s(o,u,null,n,a),i.push({event:o,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!ba(u)&&!u[ha])&&(s||o)&&(o=a.window===a?a:(o=a.ownerDocument)?o.defaultView||o.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?ba(u):null)&&(u!==(d=qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?o:_a(s),p=null==u?o:_a(u),(o=new c(m,h+"leave",s,n,a)).target=d,o.relatedTarget=p,m=null,ba(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Qr(p))h++;for(p=0,m=f;m;m=Qr(m))p++;for(;0<h-p;)c=Qr(c),h--;for(;0<p-h;)f=Qr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Qr(c),f=Qr(f)}c=null}else c=null;null!==s&&Kr(i,o,s,c,!1),null!==u&&null!==d&&Kr(i,d,u,c,!0)}if("select"===(s=(o=r?_a(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===s&&"file"===o.type)var g=Xn;else if(Vn(o))if(Gn)g=ir;else{g=ar;var v=rr}else(s=o.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=lr);switch(g&&(g=g(e,r))?$n(i,g,n,a):(v&&v(e,o,r),"focusout"===e&&(v=o._wrapperState)&&v.controlled&&"number"===o.type&&ee(o,"number",o.value)),v=r?_a(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,_r(i,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":_r(i,n,a)}var b;if(Tn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else qn?Un(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Rn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==y?"onCompositionEnd"===y&&qn&&(b=en()):(Zt="value"in(Gt=a)?Gt.value:Gt.textContent,qn=!0)),0<(v=Hr(r,y)).length&&(y=new _n(y,e,null,n,a),i.push({event:y,listeners:v}),(b||null!==(b=Bn(n)))&&(y.data=b))),(b=On?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Dn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Tn&&Un(e,t)?(e=en(),Jt=Zt=Gt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Hr(r,"onBeforeInput")).length&&(a=new _n("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=b)}Fr(i,t)}))}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,l=a.stateNode;5===a.tag&&null!==l&&(a=l,null!=(l=Ie(e,n))&&r.unshift($r(e,l,a)),null!=(l=Ie(e,t))&&r.push($r(e,l,a))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,a){for(var l=t._reactName,i=[];null!==n&&n!==r;){var o=n,s=o.alternate,u=o.stateNode;if(null!==s&&s===r)break;5===o.tag&&null!==u&&(o=u,a?null!=(s=Ie(n,l))&&i.unshift($r(n,s,o)):a||null!=(s=Ie(n,l))&&i.push($r(n,s,o))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Gr(t),Gr(e)!==t&&n)throw Error(l(425))}function Jr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,la="function"==typeof Promise?Promise:void 0,ia="function"==typeof queueMicrotask?queueMicrotask:void 0!==la?function(e){return la.resolve(null).then(e).catch(oa)}:ra;function oa(e){setTimeout((function(){throw e}))}function sa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);qt(t)}function ua(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ca(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),fa="__reactFiber$"+da,pa="__reactProps$"+da,ha="__reactContainer$"+da,ma="__reactEvents$"+da,ga="__reactListeners$"+da,va="__reactHandles$"+da;function ba(e){var t=e[fa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[fa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ca(e);null!==e;){if(n=e[fa])return n;e=ca(e)}return t}n=(e=n).parentNode}return null}function ya(e){return!(e=e[fa]||e[ha])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _a(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(l(33))}function wa(e){return e[pa]||null}var ka=[],xa=-1;function Pa(e){return{current:e}}function Sa(e){0>xa||(e.current=ka[xa],ka[xa]=null,xa--)}function Na(e,t){xa++,ka[xa]=e.current,e.current=t}var ja={},Aa=Pa(ja),Ca=Pa(!1),Ea=ja;function Ma(e,t){var n=e.type.contextTypes;if(!n)return ja;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,l={};for(a in n)l[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ia(e){return null!=e.childContextTypes}function za(){Sa(Ca),Sa(Aa)}function Ta(e,t,n){if(Aa.current!==ja)throw Error(l(168));Na(Aa,t),Na(Ca,n)}function La(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(l(108,W(e)||"Unknown",a));return R({},n,r)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ja,Ea=Aa.current,Na(Aa,e),Na(Ca,Ca.current),!0}function Ra(e,t,n){var r=e.stateNode;if(!r)throw Error(l(169));n?(e=La(e,t,Ea),r.__reactInternalMemoizedMergedChildContext=e,Sa(Ca),Sa(Aa),Na(Aa,e)):Sa(Ca),Na(Ca,n)}var Fa=null,Da=!1,Ua=!1;function Ba(e){null===Fa?Fa=[e]:Fa.push(e)}function qa(){if(!Ua&&null!==Fa){Ua=!0;var e=0,t=yt;try{var n=Fa;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fa=null,Da=!1}catch(t){throw null!==Fa&&(Fa=Fa.slice(e+1)),Qe(Je,qa),t}finally{yt=t,Ua=!1}}return null}var Wa=[],Va=0,$a=null,Ha=0,Qa=[],Ka=0,Ya=null,Xa=1,Ga="";function Za(e,t){Wa[Va++]=Ha,Wa[Va++]=$a,$a=e,Ha=t}function Ja(e,t,n){Qa[Ka++]=Xa,Qa[Ka++]=Ga,Qa[Ka++]=Ya,Ya=e;var r=Xa;e=Ga;var a=32-it(r)-1;r&=~(1<<a),n+=1;var l=32-it(t)+a;if(30<l){var i=a-a%5;l=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Xa=1<<32-it(t)+a|n<<a|r,Ga=l+e}else Xa=1<<l|n<<a|r,Ga=e}function el(e){null!==e.return&&(Za(e,1),Ja(e,1,0))}function tl(e){for(;e===$a;)$a=Wa[--Va],Wa[Va]=null,Ha=Wa[--Va],Wa[Va]=null;for(;e===Ya;)Ya=Qa[--Ka],Qa[Ka]=null,Ga=Qa[--Ka],Qa[Ka]=null,Xa=Qa[--Ka],Qa[Ka]=null}var nl=null,rl=null,al=!1,ll=null;function il(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ol(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,nl=e,rl=ua(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,nl=e,rl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ya?{id:Xa,overflow:Ga}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,nl=e,rl=null,!0);default:return!1}}function sl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ul(e){if(al){var t=rl;if(t){var n=t;if(!ol(e,t)){if(sl(e))throw Error(l(418));t=ua(n.nextSibling);var r=nl;t&&ol(e,t)?il(r,n):(e.flags=-4097&e.flags|2,al=!1,nl=e)}}else{if(sl(e))throw Error(l(418));e.flags=-4097&e.flags|2,al=!1,nl=e}}}function cl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;nl=e}function dl(e){if(e!==nl)return!1;if(!al)return cl(e),al=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=rl)){if(sl(e))throw fl(),Error(l(418));for(;t;)il(e,t),t=ua(t.nextSibling)}if(cl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){rl=ua(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}rl=null}}else rl=nl?ua(e.stateNode.nextSibling):null;return!0}function fl(){for(var e=rl;e;)e=ua(e.nextSibling)}function pl(){rl=nl=null,al=!1}function hl(e){null===ll?ll=[e]:ll.push(e)}var ml=_.ReactCurrentBatchConfig;function gl(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vl=Pa(null),bl=null,yl=null,_l=null;function wl(){_l=yl=bl=null}function kl(e){var t=vl.current;Sa(vl),e._currentValue=t}function xl(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pl(e,t){bl=e,_l=yl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(_o=!0),e.firstContext=null)}function Sl(e){var t=e._currentValue;if(_l!==e)if(e={context:e,memoizedValue:t,next:null},null===yl){if(null===bl)throw Error(l(308));yl=e,bl.dependencies={lanes:0,firstContext:e}}else yl=yl.next=e;return t}var Nl=null;function jl(e){null===Nl?Nl=[e]:Nl.push(e)}function Al(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,jl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Cl(e,r)}function Cl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var El=!1;function Ml(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Il(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Cs)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Cl(e,n)}return null===(a=r.interleaved)?(t.next=t,jl(r)):(t.next=a.next,a.next=t),r.interleaved=t,Cl(e,n)}function Ll(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ol(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,l=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===l?a=l=i:l=l.next=i,n=n.next}while(null!==n);null===l?a=l=t:l=l.next=t}else a=l=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Rl(e,t,n,r){var a=e.updateQueue;El=!1;var l=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(null!==o){a.shared.pending=null;var s=o,u=s.next;s.next=null,null===i?l=u:i.next=u,i=s;var c=e.alternate;null!==c&&(o=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===o?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=s)}if(null!==l){var d=a.baseState;for(i=0,c=u=s=null,o=l;;){var f=o.lane,p=o.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=R({},d,f);break e;case 2:El=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[o]:f.push(o))}else p={eventTime:p,lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,i|=f;if(null===(o=o.next)){if(null===(o=a.shared.pending))break;o=(f=o).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===l&&(a.shared.lanes=0);Rs|=i,e.lanes=i,e.memoizedState=d}}function Fl(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(l(191,a));a.call(r)}}}var Dl=(new r.Component).refs;function Ul(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Bl={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),l=zl(r,a);l.payload=t,null!=n&&(l.callback=n),null!==(t=Tl(e,l,a))&&(ru(t,e,a,r),Ll(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),l=zl(r,a);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=Tl(e,l,a))&&(ru(t,e,a,r),Ll(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),a=zl(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Tl(e,a,r))&&(ru(t,e,r,n),Ll(t,e,r))}};function ql(e,t,n,r,a,l,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,l,i):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(a,l))}function Wl(e,t,n){var r=!1,a=ja,l=t.contextType;return"object"==typeof l&&null!==l?l=Sl(l):(a=Ia(t)?Ea:Aa.current,l=(r=null!=(r=t.contextTypes))?Ma(e,a):ja),t=new t(n,l),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Bl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),t}function Vl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bl.enqueueReplaceState(t,t.state,null)}function $l(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Dl,Ml(e);var l=t.contextType;"object"==typeof l&&null!==l?a.context=Sl(l):(l=Ia(t)?Ea:Aa.current,a.context=Ma(e,l)),a.state=e.memoizedState,"function"==typeof(l=t.getDerivedStateFromProps)&&(Ul(e,t,l,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Bl.enqueueReplaceState(a,a.state,null),Rl(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Hl(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(l(309));var r=n.stateNode}if(!r)throw Error(l(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===Dl&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(l(284));if(!n._owner)throw Error(l(290,e))}return e}function Ql(e,t){throw e=Object.prototype.toString.call(t),Error(l(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kl(e){return(0,e._init)(e._payload)}function Yl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Tu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Fu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var l=n.type;return l===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===l||"object"==typeof l&&null!==l&&l.$$typeof===I&&Kl(l)===t.type)?((r=a(t,n.props)).ref=Hl(e,t,n),r.return=e,r):((r=Lu(n.type,n.key,n.props,null,e.mode,r)).ref=Hl(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Du(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,l){return null===t||7!==t.tag?((t=Ou(n,e.mode,r,l)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Lu(t.type,t.key,t.props,null,e.mode,n)).ref=Hl(e,null,t),n.return=e,n;case k:return(t=Du(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Ou(t,e.mode,n,null)).return=e,t;Ql(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?u(e,t,n,r):null;case k:return n.key===a?c(e,t,n,r):null;case I:return p(e,t,(a=n._init)(n._payload),r)}if(te(n)||L(n))return null!==a?null:d(e,t,n,r,null);Ql(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case I:return h(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,a,null);Ql(t,r)}return null}function m(a,l,o,s){for(var u=null,c=null,d=l,m=l=0,g=null;null!==d&&m<o.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(a,d,o[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(a,d),l=i(v,l,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===o.length)return n(a,d),al&&Za(a,m),u;if(null===d){for(;m<o.length;m++)null!==(d=f(a,o[m],s))&&(l=i(d,l,m),null===c?u=d:c.sibling=d,c=d);return al&&Za(a,m),u}for(d=r(a,d);m<o.length;m++)null!==(g=h(d,a,m,o[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),l=i(g,l,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(a,e)})),al&&Za(a,m),u}function g(a,o,s,u){var c=L(s);if("function"!=typeof c)throw Error(l(150));if(null==(s=c.call(s)))throw Error(l(151));for(var d=c=null,m=o,g=o=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(a,m,b.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(a,m),o=i(y,o,g),null===d?c=y:d.sibling=y,d=y,m=v}if(b.done)return n(a,m),al&&Za(a,g),c;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=f(a,b.value,u))&&(o=i(b,o,g),null===d?c=b:d.sibling=b,d=b);return al&&Za(a,g),c}for(m=r(a,m);!b.done;g++,b=s.next())null!==(b=h(m,a,g,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),o=i(b,o,g),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(a,e)})),al&&Za(a,g),c}return function e(r,l,i,s){if("object"==typeof i&&null!==i&&i.type===x&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var u=i.key,c=l;null!==c;){if(c.key===u){if((u=i.type)===x){if(7===c.tag){n(r,c.sibling),(l=a(c,i.props.children)).return=r,r=l;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===I&&Kl(u)===c.type){n(r,c.sibling),(l=a(c,i.props)).ref=Hl(r,c,i),l.return=r,r=l;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===x?((l=Ou(i.props.children,r.mode,s,i.key)).return=r,r=l):((s=Lu(i.type,i.key,i.props,null,r.mode,s)).ref=Hl(r,l,i),s.return=r,r=s)}return o(r);case k:e:{for(c=i.key;null!==l;){if(l.key===c){if(4===l.tag&&l.stateNode.containerInfo===i.containerInfo&&l.stateNode.implementation===i.implementation){n(r,l.sibling),(l=a(l,i.children||[])).return=r,r=l;break e}n(r,l);break}t(r,l),l=l.sibling}(l=Du(i,r.mode,s)).return=r,r=l}return o(r);case I:return e(r,l,(c=i._init)(i._payload),s)}if(te(i))return m(r,l,i,s);if(L(i))return g(r,l,i,s);Ql(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==l&&6===l.tag?(n(r,l.sibling),(l=a(l,i)).return=r,r=l):(n(r,l),(l=Fu(i,r.mode,s)).return=r,r=l),o(r)):n(r,l)}}var Xl=Yl(!0),Gl=Yl(!1),Zl={},Jl=Pa(Zl),ei=Pa(Zl),ti=Pa(Zl);function ni(e){if(e===Zl)throw Error(l(174));return e}function ri(e,t){switch(Na(ti,t),Na(ei,e),Na(Jl,Zl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Sa(Jl),Na(Jl,t)}function ai(){Sa(Jl),Sa(ei),Sa(ti)}function li(e){ni(ti.current);var t=ni(Jl.current),n=se(t,e.type);t!==n&&(Na(ei,e),Na(Jl,n))}function ii(e){ei.current===e&&(Sa(Jl),Sa(ei))}var oi=Pa(0);function si(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function ci(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var di=_.ReactCurrentDispatcher,fi=_.ReactCurrentBatchConfig,pi=0,hi=null,mi=null,gi=null,vi=!1,bi=!1,yi=0,_i=0;function wi(){throw Error(l(321))}function ki(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function xi(e,t,n,r,a,i){if(pi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,di.current=null===e||null===e.memoizedState?io:oo,e=n(r,a),bi){i=0;do{if(bi=!1,yi=0,25<=i)throw Error(l(301));i+=1,gi=mi=null,t.updateQueue=null,di.current=so,e=n(r,a)}while(bi)}if(di.current=lo,t=null!==mi&&null!==mi.next,pi=0,gi=mi=hi=null,vi=!1,t)throw Error(l(300));return e}function Pi(){var e=0!==yi;return yi=0,e}function Si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?hi.memoizedState=gi=e:gi=gi.next=e,gi}function Ni(){if(null===mi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=mi.next;var t=null===gi?hi.memoizedState:gi.next;if(null!==t)gi=t,mi=e;else{if(null===e)throw Error(l(310));e={memoizedState:(mi=e).memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},null===gi?hi.memoizedState=gi=e:gi=gi.next=e}return gi}function ji(e,t){return"function"==typeof t?t(e):t}function Ai(e){var t=Ni(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=mi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var s=o=null,u=null,c=i;do{var d=c.lane;if((pi&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,hi.lanes|=d,Rs|=d}c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,or(r,t.memoizedState)||(_o=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,hi.lanes|=i,Rs|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ci(e){var t=Ni(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);or(i,t.memoizedState)||(_o=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ei(){}function Mi(e,t){var n=hi,r=Ni(),a=t(),i=!or(r.memoizedState,a);if(i&&(r.memoizedState=a,_o=!0),r=r.queue,Wi(Ti.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==gi&&1&gi.memoizedState.tag){if(n.flags|=2048,Fi(9,zi.bind(null,n,r,a,t),void 0,null),null===Es)throw Error(l(349));0!=(30&pi)||Ii(n,t,a)}return a}function Ii(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function zi(e,t,n,r){t.value=n,t.getSnapshot=r,Li(t)&&Oi(e)}function Ti(e,t,n){return n((function(){Li(t)&&Oi(e)}))}function Li(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch(e){return!0}}function Oi(e){var t=Cl(e,1);null!==t&&ru(t,e,1,-1)}function Ri(e){var t=Si();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:e},t.queue=e,e=e.dispatch=to.bind(null,hi,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Di(){return Ni().memoizedState}function Ui(e,t,n,r){var a=Si();hi.flags|=e,a.memoizedState=Fi(1|t,n,void 0,void 0===r?null:r)}function Bi(e,t,n,r){var a=Ni();r=void 0===r?null:r;var l=void 0;if(null!==mi){var i=mi.memoizedState;if(l=i.destroy,null!==r&&ki(r,i.deps))return void(a.memoizedState=Fi(t,n,l,r))}hi.flags|=e,a.memoizedState=Fi(1|t,n,l,r)}function qi(e,t){return Ui(8390656,8,e,t)}function Wi(e,t){return Bi(2048,8,e,t)}function Vi(e,t){return Bi(4,2,e,t)}function $i(e,t){return Bi(4,4,e,t)}function Hi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qi(e,t,n){return n=null!=n?n.concat([e]):null,Bi(4,4,Hi.bind(null,t,e),n)}function Ki(){}function Yi(e,t){var n=Ni();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ki(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xi(e,t){var n=Ni();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ki(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Gi(e,t,n){return 0==(21&pi)?(e.baseState&&(e.baseState=!1,_o=!0),e.memoizedState=n):(or(n,t)||(n=mt(),hi.lanes|=n,Rs|=n,e.baseState=!0),t)}function Zi(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{yt=n,fi.transition=r}}function Ji(){return Ni().memoizedState}function eo(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},no(e)?ro(t,n):null!==(n=Al(e,t,n,r))&&(ru(n,e,r,tu()),ao(n,t,r))}function to(e,t,n){var r=nu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(no(e))ro(t,a);else{var l=e.alternate;if(0===e.lanes&&(null===l||0===l.lanes)&&null!==(l=t.lastRenderedReducer))try{var i=t.lastRenderedState,o=l(i,n);if(a.hasEagerState=!0,a.eagerState=o,or(o,i)){var s=t.interleaved;return null===s?(a.next=a,jl(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(e){}null!==(n=Al(e,t,a,r))&&(ru(n,e,r,a=tu()),ao(n,t,r))}}function no(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function ro(e,t){bi=vi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ao(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var lo={readContext:Sl,useCallback:wi,useContext:wi,useEffect:wi,useImperativeHandle:wi,useInsertionEffect:wi,useLayoutEffect:wi,useMemo:wi,useReducer:wi,useRef:wi,useState:wi,useDebugValue:wi,useDeferredValue:wi,useTransition:wi,useMutableSource:wi,useSyncExternalStore:wi,useId:wi,unstable_isNewReconciler:!1},io={readContext:Sl,useCallback:function(e,t){return Si().memoizedState=[e,void 0===t?null:t],e},useContext:Sl,useEffect:qi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4194308,4,Hi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Si();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=eo.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Si().memoizedState=e},useState:Ri,useDebugValue:Ki,useDeferredValue:function(e){return Si().memoizedState=e},useTransition:function(){var e=Ri(!1),t=e[0];return e=Zi.bind(null,e[1]),Si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hi,a=Si();if(al){if(void 0===n)throw Error(l(407));n=n()}else{if(n=t(),null===Es)throw Error(l(349));0!=(30&pi)||Ii(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,qi(Ti.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,zi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Si(),t=Es.identifierPrefix;if(al){var n=Ga;t=":"+t+"R"+(n=(Xa&~(1<<32-it(Xa)-1)).toString(32)+n),0<(n=yi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_i++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},oo={readContext:Sl,useCallback:Yi,useContext:Sl,useEffect:Wi,useImperativeHandle:Qi,useInsertionEffect:Vi,useLayoutEffect:$i,useMemo:Xi,useReducer:Ai,useRef:Di,useState:function(){return Ai(ji)},useDebugValue:Ki,useDeferredValue:function(e){return Gi(Ni(),mi.memoizedState,e)},useTransition:function(){return[Ai(ji)[0],Ni().memoizedState]},useMutableSource:Ei,useSyncExternalStore:Mi,useId:Ji,unstable_isNewReconciler:!1},so={readContext:Sl,useCallback:Yi,useContext:Sl,useEffect:Wi,useImperativeHandle:Qi,useInsertionEffect:Vi,useLayoutEffect:$i,useMemo:Xi,useReducer:Ci,useRef:Di,useState:function(){return Ci(ji)},useDebugValue:Ki,useDeferredValue:function(e){var t=Ni();return null===mi?t.memoizedState=e:Gi(t,mi.memoizedState,e)},useTransition:function(){return[Ci(ji)[0],Ni().memoizedState]},useMutableSource:Ei,useSyncExternalStore:Mi,useId:Ji,unstable_isNewReconciler:!1};function uo(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function co(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fo(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var po="function"==typeof WeakMap?WeakMap:Map;function ho(e,t,n){(n=zl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$s||($s=!0,Hs=r),fo(0,t)},n}function mo(e,t,n){(n=zl(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){fo(0,t)}}var l=e.stateNode;return null!==l&&"function"==typeof l.componentDidCatch&&(n.callback=function(){fo(0,t),"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function go(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new po;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Nu.bind(null,e,t,n),t.then(e,e))}function vo(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bo(e,t,n,r,a){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zl(-1,1)).tag=2,Tl(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var yo=_.ReactCurrentOwner,_o=!1;function wo(e,t,n,r){t.child=null===e?Gl(t,null,n,r):Xl(t,e.child,n,r)}function ko(e,t,n,r,a){n=n.render;var l=t.ref;return Pl(t,a),r=xi(e,t,n,r,l,a),n=Pi(),null===e||_o?(al&&n&&el(t),t.flags|=1,wo(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$o(e,t,a))}function xo(e,t,n,r,a){if(null===e){var l=n.type;return"function"!=typeof l||zu(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,Po(e,t,l,r,a))}if(l=e.child,0==(e.lanes&a)){var i=l.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return $o(e,t,a)}return t.flags|=1,(e=Tu(l,r)).ref=t.ref,e.return=t,t.child=e}function Po(e,t,n,r,a){if(null!==e){var l=e.memoizedProps;if(sr(l,r)&&e.ref===t.ref){if(_o=!1,t.pendingProps=r=l,0==(e.lanes&a))return t.lanes=e.lanes,$o(e,t,a);0!=(131072&e.flags)&&(_o=!0)}}return jo(e,t,n,r,a)}function So(e,t,n){var r=t.pendingProps,a=r.children,l=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Na(Ts,zs),zs|=n;else{if(0==(1073741824&n))return e=null!==l?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Na(Ts,zs),zs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==l?l.baseLanes:n,Na(Ts,zs),zs|=r}else null!==l?(r=l.baseLanes|n,t.memoizedState=null):r=n,Na(Ts,zs),zs|=r;return wo(e,t,a,n),t.child}function No(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jo(e,t,n,r,a){var l=Ia(n)?Ea:Aa.current;return l=Ma(t,l),Pl(t,a),n=xi(e,t,n,r,l,a),r=Pi(),null===e||_o?(al&&r&&el(t),t.flags|=1,wo(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$o(e,t,a))}function Ao(e,t,n,r,a){if(Ia(n)){var l=!0;Oa(t)}else l=!1;if(Pl(t,a),null===t.stateNode)Vo(e,t),Wl(t,n,r),$l(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,o=t.memoizedProps;i.props=o;var s=i.context,u=n.contextType;u="object"==typeof u&&null!==u?Sl(u):Ma(t,u=Ia(n)?Ea:Aa.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==r||s!==u)&&Vl(t,i,r,u),El=!1;var f=t.memoizedState;i.state=f,Rl(t,r,i,a),s=t.memoizedState,o!==r||f!==s||Ca.current||El?("function"==typeof c&&(Ul(t,n,c,r),s=t.memoizedState),(o=El||ql(t,n,o,r,f,s,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=o):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Il(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:gl(t.type,o),i.props=u,d=t.pendingProps,f=i.context,s="object"==typeof(s=n.contextType)&&null!==s?Sl(s):Ma(t,s=Ia(n)?Ea:Aa.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==d||f!==s)&&Vl(t,i,r,s),El=!1,f=t.memoizedState,i.state=f,Rl(t,r,i,a);var h=t.memoizedState;o!==d||f!==h||Ca.current||El?("function"==typeof p&&(Ul(t,n,p,r),h=t.memoizedState),(u=El||ql(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Co(e,t,n,r,l,a)}function Co(e,t,n,r,a,l){No(e,t);var i=0!=(128&t.flags);if(!r&&!i)return a&&Ra(t,n,!1),$o(e,t,l);r=t.stateNode,yo.current=t;var o=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Xl(t,e.child,null,l),t.child=Xl(t,null,o,l)):wo(e,t,o,l),t.memoizedState=r.state,a&&Ra(t,n,!0),t.child}function Eo(e){var t=e.stateNode;t.pendingContext?Ta(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ta(0,t.context,!1),ri(e,t.containerInfo)}function Mo(e,t,n,r,a){return pl(),hl(a),t.flags|=256,wo(e,t,n,r),t.child}var Io,zo,To,Lo,Oo={dehydrated:null,treeContext:null,retryLane:0};function Ro(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fo(e,t,n){var r,a=t.pendingProps,i=oi.current,o=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Na(oi,1&i),null===e)return ul(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=a.children,e=a.fallback,o?(a=t.mode,o=t.child,s={mode:"hidden",children:s},0==(1&a)&&null!==o?(o.childLanes=0,o.pendingProps=s):o=Ru(s,a,0,null),e=Ou(e,a,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ro(n),t.memoizedState=Oo,e):Do(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,o){if(n)return 256&t.flags?(t.flags&=-257,Uo(e,t,o,r=co(Error(l(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Ru({mode:"visible",children:r.children},a,0,null),(i=Ou(i,a,o,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Xl(t,e.child,null,o),t.child.memoizedState=Ro(o),t.memoizedState=Oo,i);if(0==(1&t.mode))return Uo(e,t,o,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var s=r.dgst;return r=s,Uo(e,t,o,r=co(i=Error(l(419)),r,void 0))}if(s=0!=(o&e.childLanes),_o||s){if(null!==(r=Es)){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(r.suspendedLanes|o))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Cl(e,a),ru(r,e,a,-1))}return gu(),Uo(e,t,o,r=co(Error(l(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Au.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,rl=ua(a.nextSibling),nl=t,al=!0,ll=null,null!==e&&(Qa[Ka++]=Xa,Qa[Ka++]=Ga,Qa[Ka++]=Ya,Xa=e.id,Ga=e.overflow,Ya=t),(t=Do(t,r.children)).flags|=4096,t)}(e,t,s,a,r,i,n);if(o){o=a.fallback,s=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:a.children};return 0==(1&s)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=u,t.deletions=null):(a=Tu(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==r?o=Tu(r,o):(o=Ou(o,s,n,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,s=null===(s=e.child.memoizedState)?Ro(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Oo,a}return e=(o=e.child).sibling,a=Tu(o,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Do(e,t){return(t=Ru({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Uo(e,t,n,r){return null!==r&&hl(r),Xl(t,e.child,null,n),(e=Do(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bo(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xl(e.return,t,n)}function qo(e,t,n,r,a){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=a)}function Wo(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;if(wo(e,t,r.children,n),0!=(2&(r=oi.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bo(e,n,t);else if(19===e.tag)Bo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Na(oi,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===si(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),qo(t,!1,a,n,l);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===si(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}qo(t,!0,n,null,l);break;case"together":qo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vo(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $o(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rs|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=Tu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ho(e,t){if(!al)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ko(e,t,n){var r=t.pendingProps;switch(tl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qo(t),null;case 1:case 17:return Ia(t.type)&&za(),Qo(t),null;case 3:return r=t.stateNode,ai(),Sa(Ca),Sa(Aa),ci(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(dl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ll&&(ou(ll),ll=null))),zo(e,t),Qo(t),null;case 5:ii(t);var a=ni(ti.current);if(n=t.type,null!==e&&null!=t.stateNode)To(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(l(166));return Qo(t),null}if(e=ni(Jl.current),dl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fa]=t,r[pa]=i,e=0!=(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(a=0;a<Lr.length;a++)Dr(Lr[a],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":X(r,i),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Dr("invalid",r);break;case"textarea":ae(r,i),Dr("invalid",r)}for(var s in be(n,i),a=null,i)if(i.hasOwnProperty(s)){var u=i[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,u,e),a=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Dr("scroll",r)}switch(n){case"input":H(r),J(r,i,!0);break;case"textarea":H(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fa]=t,e[pa]=r,Io(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),a=r;break;case"iframe":case"object":case"embed":Dr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Lr.length;a++)Dr(Lr[a],e);a=r;break;case"source":Dr("error",e),a=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),a=r;break;case"details":Dr("toggle",e),a=r;break;case"input":X(e,r),a=Y(e,r),Dr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=R({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Dr("invalid",e)}for(i in be(n,a),u=a)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?ge(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===i?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(o.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Dr("scroll",e):null!=c&&y(e,i,c,s))}switch(n){case"input":H(e),J(e,r,!1);break;case"textarea":H(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qo(t),null;case 6:if(e&&null!=t.stateNode)Lo(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));if(n=ni(ti.current),ni(Jl.current),dl(t)){if(r=t.stateNode,n=t.memoizedProps,r[fa]=t,(i=r.nodeValue!==n)&&null!==(e=nl))switch(e.tag){case 3:Zr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fa]=t,t.stateNode=r}return Qo(t),null;case 13:if(Sa(oi),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(al&&null!==rl&&0!=(1&t.mode)&&0==(128&t.flags))fl(),pl(),t.flags|=98560,i=!1;else if(i=dl(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(l(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(l(317));i[fa]=t}else pl(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qo(t),i=!1}else null!==ll&&(ou(ll),ll=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&oi.current)?0===Ls&&(Ls=3):gu())),null!==t.updateQueue&&(t.flags|=4),Qo(t),null);case 4:return ai(),zo(e,t),null===e&&qr(t.stateNode.containerInfo),Qo(t),null;case 10:return kl(t.type._context),Qo(t),null;case 19:if(Sa(oi),null===(i=t.memoizedState))return Qo(t),null;if(r=0!=(128&t.flags),null===(s=i.rendering))if(r)Ho(i,!1);else{if(0!==Ls||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=si(e))){for(t.flags|=128,Ho(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Na(oi,1&oi.current|2),t.child}e=e.sibling}null!==i.tail&&Ge()>Ws&&(t.flags|=128,r=!0,Ho(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=si(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ho(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!al)return Qo(t),null}else 2*Ge()-i.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=128,r=!0,Ho(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ge(),t.sibling=null,n=oi.current,Na(oi,r?1&n|2:1&n),t):(Qo(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&zs)&&(Qo(t),6&t.subtreeFlags&&(t.flags|=8192)):Qo(t),null;case 24:case 25:return null}throw Error(l(156,t.tag))}function Yo(e,t){switch(tl(t),t.tag){case 1:return Ia(t.type)&&za(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Sa(Ca),Sa(Aa),ci(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ii(t),null;case 13:if(Sa(oi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(l(340));pl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Sa(oi),null;case 4:return ai(),null;case 10:return kl(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Io=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},zo=function(){},To=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ni(Jl.current);var l,i=null;switch(n){case"input":a=Y(e,a),r=Y(e,r),i=[];break;case"select":a=R({},a,{value:void 0}),r=R({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in be(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var s=a[c];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(l in s)!s.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&s[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Dr("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Lo=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xo=!1,Go=!1,Zo="function"==typeof WeakSet?WeakSet:Set,Jo=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Su(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var l=a.destroy;a.destroy=void 0,void 0!==l&&ts(t,n,l)}a=a.next}while(a!==r)}}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fa],delete t[pa],delete t[ma],delete t[ga],delete t[va]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function os(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||os(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(lt&&"function"==typeof lt.onCommitFiberUnmount)try{lt.onCommitFiberUnmount(at,n)}catch(e){}switch(n.tag){case 5:Go||es(n,t);case 6:var r=ds,a=fs;ds=null,ps(e,t,n),fs=a,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?sa(e.parentNode,n):1===e.nodeType&&sa(e,n),qt(e)):sa(ds,n.stateNode));break;case 4:r=ds,a=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=a;break;case 0:case 11:case 14:case 15:if(!Go&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){a=r=r.next;do{var l=a,i=l.destroy;l=l.tag,void 0!==i&&(0!=(2&l)||0!=(4&l))&&ts(n,t,i),a=a.next}while(a!==r)}ps(e,t,n);break;case 1:if(!Go&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Go=(r=Go)||null!==n.memoizedState,ps(e,t,n),Go=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zo),t.forEach((function(t){var r=Cu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,o=t,s=o;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(l(160));hs(i,o,a),ds=null,fs=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(e){Su(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vs(t,e),t=t.sibling}function vs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),bs(e),4&r){try{rs(3,e,e.return),as(3,e)}catch(t){Su(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:gs(t,e),bs(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(gs(t,e),bs(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var a=e.stateNode;try{fe(a,"")}catch(t){Su(e,e.return,t)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,o=null!==n?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&G(a,i),ye(s,o);var c=ye(s,i);for(o=0;o<u.length;o+=2){var d=u[o],f=u[o+1];"style"===d?ge(a,f):"dangerouslySetInnerHTML"===d?de(a,f):"children"===d?fe(a,f):y(a,d,f,c)}switch(s){case"input":Z(a,i);break;case"textarea":le(a,i);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ne(a,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[pa]=i}catch(t){Su(e,e.return,t)}}break;case 6:if(gs(t,e),bs(e),4&r){if(null===e.stateNode)throw Error(l(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){Su(e,e.return,t)}}break;case 3:if(gs(t,e),bs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gs(t,e),bs(e);break;case 13:gs(t,e),bs(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(qs=Ge())),4&r&&ms(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Go=(c=Go)||d,gs(t,e),Go=c):gs(t,e),bs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Jo=e,d=e.child;null!==d;){for(f=Jo=d;null!==Jo;){switch(h=(p=Jo).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(r,n,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){ks(f);continue}}null!==h?(h.return=p,Jo=h):ks(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{a=f.stateNode,c?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=f.stateNode,o=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",o))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gs(t,e),bs(e),4&r&&ms(e);case 21:}}function bs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(os(n)){var r=n;break e}n=n.return}throw Error(l(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(fe(a,""),r.flags&=-33),cs(e,ss(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;us(e,ss(e),i);break;default:throw Error(l(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ys(e,t,n){Jo=e,_s(e,t,n)}function _s(e,t,n){for(var r=0!=(1&e.mode);null!==Jo;){var a=Jo,l=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Xo;if(!i){var o=a.alternate,s=null!==o&&null!==o.memoizedState||Go;o=Xo;var u=Go;if(Xo=i,(Go=s)&&!u)for(Jo=a;null!==Jo;)s=(i=Jo).child,22===i.tag&&null!==i.memoizedState?xs(a):null!==s?(s.return=i,Jo=s):xs(a);for(;null!==l;)Jo=l,_s(l,t,n),l=l.sibling;Jo=a,Xo=o,Go=u}ws(e)}else 0!=(8772&a.subtreeFlags)&&null!==l?(l.return=a,Jo=l):ws(e)}}function ws(e){for(;null!==Jo;){var t=Jo;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Go||as(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Go)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:gl(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Fl(t,i,r);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fl(t,o,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(l(163))}Go||512&t.flags&&ls(t)}catch(e){Su(t,t.return,e)}}if(t===e){Jo=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jo=n;break}Jo=t.return}}function ks(e){for(;null!==Jo;){var t=Jo;if(t===e){Jo=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jo=n;break}Jo=t.return}}function xs(e){for(;null!==Jo;){var t=Jo;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{as(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){Su(t,a,e)}}var l=t.return;try{ls(t)}catch(e){Su(t,l,e)}break;case 5:var i=t.return;try{ls(t)}catch(e){Su(t,i,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Jo=null;break}var o=t.sibling;if(null!==o){o.return=t.return,Jo=o;break}Jo=t.return}}var Ps,Ss=Math.ceil,Ns=_.ReactCurrentDispatcher,js=_.ReactCurrentOwner,As=_.ReactCurrentBatchConfig,Cs=0,Es=null,Ms=null,Is=0,zs=0,Ts=Pa(0),Ls=0,Os=null,Rs=0,Fs=0,Ds=0,Us=null,Bs=null,qs=0,Ws=1/0,Vs=null,$s=!1,Hs=null,Qs=null,Ks=!1,Ys=null,Xs=0,Gs=0,Zs=null,Js=-1,eu=0;function tu(){return 0!=(6&Cs)?Ge():-1!==Js?Js:Js=Ge()}function nu(e){return 0==(1&e.mode)?1:0!=(2&Cs)&&0!==Is?Is&-Is:null!==ml.transition?(0===eu&&(eu=mt()),eu):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function ru(e,t,n,r){if(50<Gs)throw Gs=0,Zs=null,Error(l(185));vt(e,n,r),0!=(2&Cs)&&e===Es||(e===Es&&(0==(2&Cs)&&(Fs|=n),4===Ls&&su(e,Is)),au(e,r),1===n&&0===Cs&&0==(1&t.mode)&&(Ws=Ge()+500,Da&&qa()))}function au(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-it(l),o=1<<i,s=a[i];-1===s?0!=(o&n)&&0==(o&r)||(a[i]=pt(o,t)):s<=t&&(e.expiredLanes|=o),l&=~o}}(e,t);var r=ft(e,e===Es?Is:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Da=!0,Ba(e)}(uu.bind(null,e)):Ba(uu.bind(null,e)),ia((function(){0==(6&Cs)&&qa()})),n=null;else{switch(_t(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Eu(n,lu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lu(e,t){if(Js=-1,eu=0,0!=(6&Cs))throw Error(l(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=ft(e,e===Es?Is:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var a=Cs;Cs|=2;var i=mu();for(Es===e&&Is===t||(Vs=null,Ws=Ge()+500,pu(e,t));;)try{yu();break}catch(t){hu(e,t)}wl(),Ns.current=i,Cs=a,null!==Ms?t=0:(Es=null,Is=0,t=Ls)}if(0!==t){if(2===t&&0!==(a=ht(e))&&(r=a,t=iu(e,a)),1===t)throw n=Os,pu(e,0),su(e,r),au(e,Ge()),n;if(6===t)su(e,r);else{if(a=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],l=a.getSnapshot;a=a.value;try{if(!or(l(),a))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=vu(e,r))&&0!==(i=ht(e))&&(r=i,t=iu(e,i)),1===t))throw n=Os,pu(e,0),su(e,r),au(e,Ge()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(l(345));case 2:case 5:ku(e,Bs,Vs);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=qs+500-Ge())){if(0!==ft(e,0))break;if(((a=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(ku.bind(null,e,Bs,Vs),t);break}ku(e,Bs,Vs);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var o=31-it(r);i=1<<o,(o=t[o])>a&&(a=o),r&=~i}if(r=a,10<(r=(120>(r=Ge()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)){e.timeoutHandle=ra(ku.bind(null,e,Bs,Vs),r);break}ku(e,Bs,Vs);break;default:throw Error(l(329))}}}return au(e,Ge()),e.callbackNode===n?lu.bind(null,e):null}function iu(e,t){var n=Us;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Bs,Bs=n,null!==t&&ou(t)),e}function ou(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function su(e,t){for(t&=~Ds,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&Cs))throw Error(l(327));xu();var t=ft(e,0);if(0==(1&t))return au(e,Ge()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Os,pu(e,0),su(e,t),au(e,Ge()),n;if(6===n)throw Error(l(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Bs,Vs),au(e,Ge()),null}function cu(e,t){var n=Cs;Cs|=1;try{return e(t)}finally{0===(Cs=n)&&(Ws=Ge()+500,Da&&qa())}}function du(e){null!==Ys&&0===Ys.tag&&0==(6&Cs)&&xu();var t=Cs;Cs|=1;var n=As.transition,r=yt;try{if(As.transition=null,yt=1,e)return e()}finally{yt=r,As.transition=n,0==(6&(Cs=t))&&qa()}}function fu(){zs=Ts.current,Sa(Ts)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Ms)for(n=Ms.return;null!==n;){var r=n;switch(tl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&za();break;case 3:ai(),Sa(Ca),Sa(Aa),ci();break;case 5:ii(r);break;case 4:ai();break;case 13:case 19:Sa(oi);break;case 10:kl(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Es=e,Ms=e=Tu(e.current,null),Is=zs=t,Ls=0,Os=null,Ds=Fs=Rs=0,Bs=Us=null,null!==Nl){for(t=0;t<Nl.length;t++)if(null!==(r=(n=Nl[t]).interleaved)){n.interleaved=null;var a=r.next,l=n.pending;if(null!==l){var i=l.next;l.next=a,r.next=i}n.pending=r}Nl=null}return e}function hu(e,t){for(;;){var n=Ms;try{if(wl(),di.current=lo,vi){for(var r=hi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}vi=!1}if(pi=0,gi=mi=hi=null,bi=!1,yi=0,js.current=null,null===n||null===n.return){Ls=1,Os=t,Ms=null;break}e:{var i=e,o=n.return,s=n,u=t;if(t=Is,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vo(o);if(null!==h){h.flags&=-257,bo(h,o,s,0,t),1&h.mode&&go(i,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){go(i,c,t),gu();break e}u=Error(l(426))}else if(al&&1&s.mode){var v=vo(o);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),bo(v,o,s,0,t),hl(uo(u,s));break e}}i=u=uo(u,s),4!==Ls&&(Ls=2),null===Us?Us=[i]:Us.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ol(i,ho(0,u,t));break e;case 1:s=u;var b=i.type,y=i.stateNode;if(0==(128&i.flags)&&("function"==typeof b.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Qs||!Qs.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ol(i,mo(i,s,t));break e}}i=i.return}while(null!==i)}wu(n)}catch(e){t=e,Ms===n&&null!==n&&(Ms=n=n.return);continue}break}}function mu(){var e=Ns.current;return Ns.current=lo,null===e?lo:e}function gu(){0!==Ls&&3!==Ls&&2!==Ls||(Ls=4),null===Es||0==(268435455&Rs)&&0==(268435455&Fs)||su(Es,Is)}function vu(e,t){var n=Cs;Cs|=2;var r=mu();for(Es===e&&Is===t||(Vs=null,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}if(wl(),Cs=n,Ns.current=r,null!==Ms)throw Error(l(261));return Es=null,Is=0,Ls}function bu(){for(;null!==Ms;)_u(Ms)}function yu(){for(;null!==Ms&&!Ye();)_u(Ms)}function _u(e){var t=Ps(e.alternate,e,zs);e.memoizedProps=e.pendingProps,null===t?wu(e):Ms=t,js.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ko(n,t,zs)))return void(Ms=n)}else{if(null!==(n=Yo(n,t)))return n.flags&=32767,void(Ms=n);if(null===e)return Ls=6,void(Ms=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ms=t);Ms=t=e}while(null!==t);0===Ls&&(Ls=5)}function ku(e,t,n){var r=yt,a=As.transition;try{As.transition=null,yt=1,function(e,t,n,r){do{xu()}while(null!==Ys);if(0!=(6&Cs))throw Error(l(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(l(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),l=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~l}}(e,i),e===Es&&(Ms=Es=null,Is=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Ks||(Ks=!0,Eu(tt,(function(){return xu(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=As.transition,As.transition=null;var o=yt;yt=1;var s=Cs;Cs|=4,js.current=null,function(e,t){if(ea=Vt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var o=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==a&&3!==f.nodeType||(s=o+a),f!==i||0!==r&&3!==f.nodeType||(u=o+r),3===f.nodeType&&(o+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===a&&(s=o),p===i&&++d===r&&(u=o),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Vt=!1,Jo=t;null!==Jo;)if(e=(t=Jo).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Jo=e;else for(;null!==Jo;){t=Jo;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:gl(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(l(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jo=e;break}Jo=t.return}m=ns,ns=!1}(e,n),vs(n,e),hr(ta),Vt=!!ea,ta=ea=null,e.current=n,ys(n,e,a),Xe(),Cs=s,yt=o,As.transition=i}else e.current=n;if(Ks&&(Ks=!1,Ys=e,Xs=a),0===(i=e.pendingLanes)&&(Qs=null),function(e){if(lt&&"function"==typeof lt.onCommitFiberRoot)try{lt.onCommitFiberRoot(at,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),au(e,Ge()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((a=t[n]).value,{componentStack:a.stack,digest:a.digest});if($s)throw $s=!1,e=Hs,Hs=null,e;0!=(1&Xs)&&0!==e.tag&&xu(),0!=(1&(i=e.pendingLanes))?e===Zs?Gs++:(Gs=0,Zs=e):Gs=0,qa()}(e,t,n,r)}finally{As.transition=a,yt=r}return null}function xu(){if(null!==Ys){var e=_t(Xs),t=As.transition,n=yt;try{if(As.transition=null,yt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Xs=0,0!=(6&Cs))throw Error(l(331));var a=Cs;for(Cs|=4,Jo=e.current;null!==Jo;){var i=Jo,o=i.child;if(0!=(16&Jo.flags)){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Jo=c;null!==Jo;){var d=Jo;switch(d.tag){case 0:case 11:case 15:rs(8,d,i)}var f=d.child;if(null!==f)f.return=d,Jo=f;else for(;null!==Jo;){var p=(d=Jo).sibling,h=d.return;if(is(d),d===c){Jo=null;break}if(null!==p){p.return=h,Jo=p;break}Jo=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Jo=i}}if(0!=(2064&i.subtreeFlags)&&null!==o)o.return=i,Jo=o;else e:for(;null!==Jo;){if(0!=(2048&(i=Jo).flags))switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Jo=b;break e}Jo=i.return}}var y=e.current;for(Jo=y;null!==Jo;){var _=(o=Jo).child;if(0!=(2064&o.subtreeFlags)&&null!==_)_.return=o,Jo=_;else e:for(o=y;null!==Jo;){if(0!=(2048&(s=Jo).flags))try{switch(s.tag){case 0:case 11:case 15:as(9,s)}}catch(e){Su(s,s.return,e)}if(s===o){Jo=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Jo=w;break e}Jo=s.return}}if(Cs=a,qa(),lt&&"function"==typeof lt.onPostCommitFiberRoot)try{lt.onPostCommitFiberRoot(at,e)}catch(e){}r=!0}return r}finally{yt=n,As.transition=t}}return!1}function Pu(e,t,n){e=Tl(e,t=ho(0,t=uo(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),au(e,t))}function Su(e,t,n){if(3===e.tag)Pu(e,e,n);else for(;null!==t;){if(3===t.tag){Pu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){t=Tl(t,e=mo(t,e=uo(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),au(t,e));break}}t=t.return}}function Nu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Es===e&&(Is&n)===n&&(4===Ls||3===Ls&&(130023424&Is)===Is&&500>Ge()-qs?pu(e,0):Ds|=n),au(e,t)}function ju(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Cl(e,t))&&(vt(e,t,n),au(e,n))}function Au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ju(e,n)}function Cu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(l(314))}null!==r&&r.delete(t),ju(e,n)}function Eu(e,t){return Qe(e,t)}function Mu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new Mu(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tu(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lu(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)zu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case x:return Ou(n.children,a,i,t);case P:o=8,a|=8;break;case S:return(e=Iu(12,n,t,2|a)).elementType=S,e.lanes=i,e;case C:return(e=Iu(13,n,t,a)).elementType=C,e.lanes=i,e;case E:return(e=Iu(19,n,t,a)).elementType=E,e.lanes=i,e;case z:return Ru(n,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case N:o=10;break e;case j:o=9;break e;case A:o=11;break e;case M:o=14;break e;case I:o=16,r=null;break e}throw Error(l(130,null==e?e:typeof e,""))}return(t=Iu(o,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Ou(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Ru(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=z,e.lanes=n,e.stateNode={isHidden:!1},e}function Fu(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,a,l,i,o,s){return e=new Uu(e,t,n,o,s),1===t?(t=1,!0===l&&(t|=8)):t=0,l=Iu(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ml(l),e}function qu(e){if(!e)return ja;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(l(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ia(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(l(171))}if(1===e.tag){var n=e.type;if(Ia(n))return La(e,n,t)}return t}function Wu(e,t,n,r,a,l,i,o,s){return(e=Bu(n,r,!0,e,0,l,0,o,s)).context=qu(null),n=e.current,(l=zl(r=tu(),a=nu(n))).callback=null!=t?t:null,Tl(n,l,a),e.current.lanes=a,vt(e,a,r),au(e,r),e}function Vu(e,t,n,r){var a=t.current,l=tu(),i=nu(a);return n=qu(n),null===t.context?t.context=n:t.pendingContext=n,(t=zl(l,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Tl(a,t,i))&&(ru(e,a,i,l),Ll(e,a,i)),i}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Hu(e,t),(e=e.alternate)&&Hu(e,t)}Ps=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ca.current)_o=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return _o=!1,function(e,t,n){switch(t.tag){case 3:Eo(t),pl();break;case 5:li(t);break;case 1:Ia(t.type)&&Oa(t);break;case 4:ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Na(vl,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Na(oi,1&oi.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Fo(e,t,n):(Na(oi,1&oi.current),null!==(e=$o(e,t,n))?e.sibling:null);Na(oi,1&oi.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Wo(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Na(oi,oi.current),r)break;return null;case 22:case 23:return t.lanes=0,So(e,t,n)}return $o(e,t,n)}(e,t,n);_o=0!=(131072&e.flags)}else _o=!1,al&&0!=(1048576&t.flags)&&Ja(t,Ha,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vo(e,t),e=t.pendingProps;var a=Ma(t,Aa.current);Pl(t,n),a=xi(null,t,r,e,a,n);var i=Pi();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ia(r)?(i=!0,Oa(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ml(t),a.updater=Bl,t.stateNode=a,a._reactInternals=t,$l(t,r,e,n),t=Co(null,t,r,!0,i,n)):(t.tag=0,al&&i&&el(t),wo(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vo(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"==typeof e)return zu(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===M)return 14}return 2}(r),e=gl(r,e),a){case 0:t=jo(null,t,r,e,n);break e;case 1:t=Ao(null,t,r,e,n);break e;case 11:t=ko(null,t,r,e,n);break e;case 14:t=xo(null,t,r,gl(r.type,e),n);break e}throw Error(l(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,jo(e,t,r,a=t.elementType===r?a:gl(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ao(e,t,r,a=t.elementType===r?a:gl(r,a),n);case 3:e:{if(Eo(t),null===e)throw Error(l(387));r=t.pendingProps,a=(i=t.memoizedState).element,Il(e,t),Rl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Mo(e,t,r,n,a=uo(Error(l(423)),t));break e}if(r!==a){t=Mo(e,t,r,n,a=uo(Error(l(424)),t));break e}for(rl=ua(t.stateNode.containerInfo.firstChild),nl=t,al=!0,ll=null,n=Gl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pl(),r===a){t=$o(e,t,n);break e}wo(e,t,r,n)}t=t.child}return t;case 5:return li(t),null===e&&ul(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,na(r,a)?o=null:null!==i&&na(r,i)&&(t.flags|=32),No(e,t),wo(e,t,o,n),t.child;case 6:return null===e&&ul(t),null;case 13:return Fo(e,t,n);case 4:return ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xl(t,null,r,n):wo(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ko(e,t,r,a=t.elementType===r?a:gl(r,a),n);case 7:return wo(e,t,t.pendingProps,n),t.child;case 8:case 12:return wo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,Na(vl,r._currentValue),r._currentValue=o,null!==i)if(or(i.value,o)){if(i.children===a.children&&!Ca.current){t=$o(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){o=i.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===i.tag){(u=zl(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),xl(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===i.tag)o=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(o=i.return))throw Error(l(341));o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),xl(o,n,t),o=i.sibling}else o=i.child;if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===t){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}wo(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Pl(t,n),r=r(a=Sl(a)),t.flags|=1,wo(e,t,r,n),t.child;case 14:return a=gl(r=t.type,t.pendingProps),xo(e,t,r,a=gl(r.type,a),n);case 15:return Po(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:gl(r,a),Vo(e,t),t.tag=1,Ia(r)?(e=!0,Oa(t)):e=!1,Pl(t,n),Wl(t,r,a),$l(t,r,a,n),Co(null,t,r,!0,e,n);case 19:return Wo(e,t,n);case 22:return So(e,t,n)}throw Error(l(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,a){var l=n._reactRootContainer;if(l){var i=l;if("function"==typeof a){var o=a;a=function(){var e=$u(i);o.call(e)}}Vu(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var l=r;r=function(){var e=$u(i);l.call(e)}}var i=Wu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=i,e[ha]=i.current,qr(8===e.nodeType?e.parentNode:e),du(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var o=r;r=function(){var e=$u(s);o.call(e)}}var s=Bu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=s,e[ha]=s.current,qr(8===e.nodeType?e.parentNode:e),du((function(){Vu(t,s,n,r)})),s}(n,t,e,a,r);return $u(i)}Xu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(l(409));Vu(e,t,null,null)},Xu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Vu(null,e,null,null)})),t[ha]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&0!==t&&t<zt[n].priority;n++);zt.splice(n,0,e),0===n&&Rt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),au(t,Ge()),0==(6&Cs)&&(Ws=Ge()+500,qa()))}break;case 13:du((function(){var t=Cl(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Qu(e,1)}},kt=function(e){if(13===e.tag){var t=Cl(e,134217728);null!==t&&ru(t,e,134217728,tu()),Qu(e,134217728)}},xt=function(e){if(13===e.tag){var t=nu(e),n=Cl(e,t);null!==n&&ru(n,e,t,tu()),Qu(e,t)}},Pt=function(){return yt},St=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(l(90));Q(r),Z(r,a)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ae=cu,Ce=du;var tc={usingClientEntryPoint:!1,Events:[ya,_a,wa,Ne,je,cu]},nc={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{at=ac.inject(rc),lt=ac}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(l(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(l(299));var n=!1,r="",a=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,a),e[ha]=t.current,qr(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw e=Object.keys(e).join(","),Error(l(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(l(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(l(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",o=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,a,0,i,o),e[ha]=t.current,qr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Xu(t)},t.render=function(e,t,n){if(!Zu(t))throw Error(l(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(l(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[ha]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(l(200));if(null==e||void 0===e._reactInternals)throw Error(l(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},338:(e,t,n)=>{var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},20:(e,t,n)=>{var r=n(540),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,l={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:l,_owner:o.current}}t.Fragment=l,t.jsx=u,t.jsxs=u},287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var _=y.prototype=new b;_.constructor=y,m(_,v.prototype),_.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var a,l={},i=null,o=null;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,a)&&!P.hasOwnProperty(a)&&(l[a]=t[a]);var s=arguments.length-2;if(1===s)l.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===l[a]&&(l[a]=s[a]);return{$$typeof:n,type:e,key:i,ref:o,props:l,_owner:x.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,a,l,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===l?"."+A(s,0):l,w(i)?(a="",null!=e&&(a=e.replace(j,"$&/")+"/"),C(i,t,a,"",(function(e){return e}))):null!=i&&(N(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(j,"$&/")+"/")+e)),t.push(i)),1;if(s=0,l=""===l?".":l+":",w(e))for(var u=0;u<e.length;u++){var c=l+A(o=e[u],u);s+=C(o,t,a,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(o=e.next()).done;)s+=C(o=o.value,t,a,c=l+A(o,u++),i);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function E(e,t,n){if(null==e)return e;var r=[],a=0;return C(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},z={transition:null},T={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:z,ReactCurrentOwner:x};t.Children={map:E,forEach:function(e,t,n){E(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(e,(function(e){return e}))||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=a,t.Profiler=i,t.PureComponent=y,t.StrictMode=l,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),l=e.key,i=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,o=x.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)k.call(t,u)&&!P.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:n,type:e.type,key:l,ref:i,props:a,_owner:o}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=N,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=z.transition;z.transition={};try{e()}finally{z.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},540:(e,t,n)=>{e.exports=n(287)},848:(e,t,n)=>{e.exports=n(20)},463:(e,t)=>{function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<l(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var o=2*(r+1)-1,s=e[o],u=o+1,c=e[u];if(0>l(s,n))u<a&&0>l(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[o]=n,r=o);else{if(!(u<a&&0>l(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function l(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,_(e),!m)if(null!==r(u))m=!0,z(k);else{var t=r(c);null!==t&&T(w,t.startTime-e)}}function k(e,n){m=!1,g&&(g=!1,b(N),N=-1),h=!0;var l=p;try{for(_(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!C());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var o=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof o?f.callback=o:f===r(u)&&a(u),_(n)}else a(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&T(w,d.startTime-n),s=!1}return s}finally{f=null,p=l,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,P=!1,S=null,N=-1,j=5,A=-1;function C(){return!(t.unstable_now()-A<j)}function E(){if(null!==S){var e=t.unstable_now();A=e;var n=!0;try{n=S(!0,e)}finally{n?x():(P=!1,S=null)}}else P=!1}if("function"==typeof y)x=function(){y(E)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,I=M.port2;M.port1.onmessage=E,x=function(){I.postMessage(null)}}else x=function(){v(E,0)};function z(e){S=e,P||(P=!0,x())}function T(e,n){N=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,z(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,l){var i=t.unstable_now();switch(l="object"==typeof l&&null!==l&&"number"==typeof(l=l.delay)&&0<l?i+l:i,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:l,expirationTime:o=l+o,sortIndex:-1},l>i?(e.sortIndex=l,n(c,e),null===r(u)&&e===r(c)&&(g?(b(N),N=-1):g=!0,T(w,l-i))):(e.sortIndex=o,n(u,e),m||h||(m=!0,z(k))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},982:(e,t,n)=>{e.exports=n(463)}},r={};function a(e){var t=r[e];if(void 0!==t)return t.exports;var l=r[e]={exports:{}};return n[e](l,l.exports,a),l.exports}a.m=n,a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>e+".index_bundle.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="askona:",a.l=(n,r,l,i)=>{if(e[n])e[n].push(r);else{var o,s;if(void 0!==l)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+l){o=d;break}}o||(s=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,a.nc&&o.setAttribute("nonce",a.nc),o.setAttribute("data-webpack",t+l),o.src=n),e[n]=[r];var f=(t,r)=>{o.onerror=o.onload=null,clearTimeout(p);var a=e[n];if(delete e[n],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=f.bind(null,o.onerror),o.onload=f.bind(null,o.onload),s&&document.head.appendChild(o)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var l=new Promise(((n,a)=>r=e[t]=[n,a]));n.push(r[2]=l);var i=a.p+a.u(t),o=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var l=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+l+": "+i+")",o.name="ChunkLoadError",o.type=l,o.request=i,r[1](o)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,l,i=n[0],o=n[1],s=n[2],u=0;if(i.some((t=>0!==e[t]))){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);s&&s(a)}for(t&&t(n);u<i.length;u++)l=i[u],a.o(e,l)&&e[l]&&e[l][0](),e[l]=0},n=self.webpackChunkaskona=self.webpackChunkaskona||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{var e=a(540),t=a(338);var n=a(848);class r extends e.Component{constructor(e){var t,n;super(e),_APPMAIN.h.loyaltyProgram.h.react=null!==(t=_APPMAIN.h.loyaltyProgram.h.react)&&void 0!==t?t:{},_APPMAIN.h.loyaltyProgram.h.react.list=null!==(n=_APPMAIN.h.loyaltyProgram.h.react.list)&&void 0!==n?n:{}}transformData(e){return e.map((e=>({dateTimeUtc:e.dateTimeUtc,customerBalanceChanges:e.customerBalanceChanges.map((e=>({availableFromDateTimeUtc:e.availableFromDateTimeUtc})))})))}datePrepare(e){if(e){const t=new Date(e),n=t.getUTCDate().toString().padStart(2,"0"),r=(t.getUTCMonth()+1).toString().padStart(2,"0"),a=t.getUTCFullYear();return"".concat(n,".").concat(r,".").concat(a)}return _APPMAIN.sd.glLang.waiting_active}render(){var e,t;let r=[];if(console.log(_APPMAIN.sd),0===_APPMAIN.sd.listBonus.itemsArray.length||0==_APPMAIN.sd.listBonus.itemsArray)r.push((0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:"-"}),(0,n.jsx)("td",{children:"-"}),(0,n.jsx)("td",{children:"-"})]},"empty"));else for(let e in _APPMAIN.sd.listBonus.itemsArray){const t=_APPMAIN.sd.listBonus.itemsArray[e];for(let a in t){const l=t[a],i=l.changeAmount.includes("-"),o=i?"text-red":"text-green",s=i?l.changeAmount:"+".concat(l.changeAmount);r.push((0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:this.datePrepare(l.dateTimeUtc)}),(0,n.jsx)("td",{children:(0,n.jsx)("span",{className:o,children:s})}),(0,n.jsx)("td",{children:this.datePrepare(l.availableFromDateTimeUtc)}),(0,n.jsx)("td",{children:this.datePrepare(l.expirationDateTimeUtc)})]},e))}}return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"bonus-program",children:[(0,n.jsx)("div",{className:"bonus-program__img-wrap",children:(0,n.jsx)("img",{className:"bonus-program__img",src:_APPMAIN.sd.listBonus.params.bonusImage})}),(0,n.jsx)("div",{className:"bonus-program-table-cont",children:(0,n.jsxs)("table",{className:"bonus-program-table",children:[(0,n.jsxs)("tr",{children:[(0,n.jsxs)("td",{children:[_APPMAIN.sd.glLang.active_bonus,":"]}),(0,n.jsx)("td",{children:(0,n.jsx)("span",{className:"bonus-program-table__num",children:(null===(e=_APPMAIN.sd.listBonus.totalBonus[1])||void 0===e?void 0:e.available)||0})})]}),(0,n.jsxs)("tr",{children:[(0,n.jsxs)("td",{children:[_APPMAIN.sd.glLang.closest_expiration_date,":"]}),(0,n.jsx)("td",{children:(0,n.jsx)("span",{className:"bonus-program-table__date",children:(null===(t=_APPMAIN.sd.listBonus.totalBonus[1])||void 0===t||null===(t=t.nearestExpiration)||void 0===t?void 0:t.date)||"-"})})]})]})}),(0,n.jsxs)("div",{className:"bonus-program__description",children:[_APPMAIN.sd.glLang.bonus_program_link,(0,n.jsx)("a",{href:"/loyalty-program-rules/",children:" тут"})]})]}),(0,n.jsx)("div",{className:"bonus-program-info-table",children:(0,n.jsxs)("table",{className:"table",children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:_APPMAIN.sd.glLang.date}),(0,n.jsx)("th",{children:_APPMAIN.sd.glLang.quantity}),(0,n.jsx)("th",{children:_APPMAIN.sd.glLang.active_bonus_date}),(0,n.jsx)("th",{children:_APPMAIN.sd.glLang.expiration_bonus_date})]}),r]})})]})}}const l=r;class i extends e.Component{constructor(e){super(e),this.id=e.id,this.type=e.type?e.type:"common",this.additionParams=e.additionParams?e.additionParams:{}}getIcon(e){return this.type,_APPMAIN.sd.siteConsts.templateConsts.commonIcon+"#"+e}render(){let[e,t]="",r={};return"close"===this.id&&(e="",t="close"),t?(this.additionParams.viewBox&&(r.viewBox=this.additionParams.viewBox),r.className="icon "+e,(0,n.jsx)("svg",{...r,children:(0,n.jsx)("use",{href:this.getIcon(t)})})):""}}const o=i;class s extends e.Component{constructor(e){var t,r,a;super(e),t=this,a={btnClose:()=>(0,n.jsx)("button",{className:"modal__close",type:"button",children:(0,n.jsx)(o,{id:"close"})}),title:()=>(0,n.jsx)("span",{className:"modal__title",children:this.state.title})},(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(r="blocks"))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,this.params=e.params,"object"==typeof e.return&&"object"==typeof e.return.obj&&(e.return.obj[e.return.field]=this),e.state.title=e.state.title?e.state.title:e.params.title,this.state=e.state,this.params.type=-1!=["modal","popup"].indexOf(this.params.type)?this.params.type:"modal",this.params.closingBtn=!this.params.closingBtn||this.params.closingBtn,this.params.closingBtnInBody=!!this.params.closingBtnInBody&&this.params.closingBtnInBody,this.params.id=this.params.id?this.params.id:"unique_id".Date.now(),this.params.modalLimitWidth=!this.params.modalLimitWidth||!!this.params.modalLimitWidth,this.params.hash=this.params.hash?this.params.hash:"",this.params.withoutHeader=!!this.params.withoutHeader&&!!this.params.withoutHeader}getClassName(){let e="";if("modal"===this.params.type&&(e+="modal"),"object"==typeof this.params.classes||"array"==typeof this.params.classes)for(let t in this.params.classes)e+=" "+this.params.classes[t];return e}componentDidMount(){}componentDidUpdate(e,t,n){_APPMAIN.h.modals.init()}render(){let e="";return"modal"===this.params.type&&(this.params.withoutHeader||(e=(0,n.jsxs)("div",{className:"modal__header",children:[this.state.title?this.blocks.title():"",this.params.closingBtnInBody||!this.params.withoutHeader?this.blocks.btnClose():""]})),e=(0,n.jsxs)(n.Fragment,{children:[e,(0,n.jsxs)("div",{className:"modal__body",children:[this.params.closingBtnInBody?this.blocks.btnClose():"",this.state.content]})]}),this.params.modalLimitWidth&&(e=(0,n.jsx)("div",{className:"modal__inner",children:e}))),(0,n.jsx)("div",{className:this.getClassName(),id:this.params.id,"data-hash":this.params.hash,children:e})}}const u=s;function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends e.Component{constructor(e){var t;super(e),t=this,c(this,"defaultState",(()=>{let e=!1,t=!1,n=this.props.availaible;for(let r in n){for(let a in n[r])if(!0===n[r][a]){e=r,t=a;break}if(e&&t)break}return{way:e,method:t}})()),c(this,"state",{way:this.defaultState.way,method:this.defaultState.method,stage:1}),c(this,"t",{sendSmsBtn:(0,n.jsx)("div",{className:"form-row",children:(0,n.jsx)("button",{className:"btn btn--accent w-full",type:"submit",children:_APPMAIN.gm("send_sms_code")})}),bW:{rowInput:e=>(0,n.jsx)("div",{className:"form-row__input-wrap",children:e}),rowLabel:e=>(0,n.jsx)("label",{className:"form-row__label",children:e})},inputEnterName:()=>(0,n.jsxs)("div",{className:"form-row",children:[this.t.bW.rowLabel(_APPMAIN.gm("auth_name")),this.t.bW.rowInput((0,n.jsx)("input",{className:"form-row__input",type:"text",name:"name",placeholder:_APPMAIN.gm("auth_name_placeholder")}))]}),inputEnterSurname:()=>(0,n.jsxs)("div",{className:"form-row",children:[this.t.bW.rowLabel(_APPMAIN.gm("auth_surname")),this.t.bW.rowInput((0,n.jsx)("input",{className:"form-row__input",type:"text",name:"surname",placeholder:_APPMAIN.gm("auth_surname_placeholder")}))]}),inputEnterEmail:()=>(0,n.jsxs)("div",{className:"form-row",children:[this.t.bW.rowLabel(_APPMAIN.gm("email_address")),this.t.bW.rowInput((0,n.jsx)("input",{className:"form-row__input",type:"email",name:"email",placeholder:"mymail@google.com"}))]}),inputEnterPhone:()=>(0,n.jsxs)("div",{className:"form-row",children:[this.t.bW.rowLabel(_APPMAIN.gm("personal_phone")),this.t.bW.rowInput((0,n.jsx)("input",{className:"form-row__input",type:"tel",name:"phone",placeholder:_APPMAIN.sd.siteConsts.phone.placeholder}))]}),inputEnterPassword:()=>(0,n.jsxs)("div",{className:"form-row",children:[this.t.bW.rowLabel(_APPMAIN.gm("auth_pass")),this.t.bW.rowInput((0,n.jsx)("input",{className:"form-row__input",type:"password",placeholder:"******",defaultValue:"",name:"password"}))]}),confirmPolicy:()=>(0,n.jsx)("div",{className:"form-row",children:(0,n.jsxs)("label",{className:"checkbox-box",htmlFor:"regauth__confirm-rules",children:[(0,n.jsx)("input",{className:"checkbox-box__input",type:"checkbox",id:"regauth__confirm-rules",name:"confirm_rules",onChange:e=>{let t=e.target.closest("input");t&&this.setState({allowPolicy:t.checked})},defaultChecked:this.checkRegion()}),(0,n.jsx)("span",{className:"checkbox-box__switcher"}),(0,n.jsx)("span",{className:"checkbox-box__text",children:_APPMAIN.gm("auth_personal_data")})]})}),allowMailing:()=>(0,n.jsx)("div",{className:"form-row",children:(0,n.jsxs)("label",{className:"checkbox-box",htmlFor:"regauth__approval-mailing",children:[(0,n.jsx)("input",{className:"checkbox-box__input",type:"checkbox",id:"regauth__approval-mailing",name:"allow_mailing",onChange:e=>{let t=e.target.closest("input");t&&this.setState({allowMailing:t.checked})},defaultChecked:this.checkRegion()}),(0,n.jsx)("span",{className:"checkbox-box__switcher"}),(0,n.jsx)("span",{className:"checkbox-box__text",children:_APPMAIN.gm("approval_mailing")})]})}),btnRegister:(0,n.jsx)("div",{className:"form-row",children:(0,n.jsx)("button",{className:"btn btn--accent w-full",type:"submit",children:_APPMAIN.gm("do_register")})}),enterCodeFields:(e,t)=>{let r=[];for(let a=0;a<e;a++)r.push((0,n.jsx)("input",{className:"form-row__input check-code-input",type:"tel",placeholder:"_",name:"".concat("auth"===t?"auth_code":"reg_code","[").concat(a,"]"),maxLength:"1",defaultValue:"",onInput:e=>{e.target.nextElementSibling&&(e.target.nextElementSibling.focus(),1)&&(e.target.nextElementSibling.value="")}},a));return r},smscode:(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:_APPMAIN.gm("confirmation_code_sms")}}),policy:(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:_APPMAIN.gm("user_agreement",{"#userAgreement#":this.props.params.links.userAgreement,"#privacyPolicy#":this.props.params.links.privacyPolicy})}})}),c(this,"availaible",{ways:{get:()=>{let e=[];for(let t in this.props.availaible){let r=!1;for(let e in this.props.availaible[t])!0===this.props.availaible[t][e]&&(r=!0);if(!r)continue;let a={way:t};switch(t){case"auth":a.title=_APPMAIN.gm("entrance");break;case"reg":a.title=_APPMAIN.gm("registration")}let l=["btn"];l.push(t==this.state.way?"btn--accent":"btn--white"),e.push((0,n.jsx)("div",{className:"signin-nav__item",onClick:()=>{this.handler.actions.changeWay(t)},children:(0,n.jsx)("div",{className:l.join(" "),children:a.title})},"way_"+t))}return(0,n.jsx)("div",{className:"signin-nav",children:e})}},methods:{auth:()=>{let e=[];for(let t in this.props.availaible.auth)!0===this.props.availaible.auth[t]&&e.push(this.availaible.methods.buildMethod({i:t,defaultChecked:this.state.method===t}));return(0,n.jsx)("div",{className:"signin-radio",children:e})},reg:()=>{let e=[];for(let t in this.props.availaible.reg)!0===this.props.availaible.reg[t]&&e.push(this.availaible.methods.buildMethod({i:t,defaultChecked:this.state.method===t}));return(0,n.jsx)("div",{className:"signin-radio",children:e})},buildMethod:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{i:"auth",defaultChecked:!1,value:!1},r={};switch(e.i){case"phone":r={value:"phone",text:_APPMAIN.gm("by_phone")};break;case"email":r={value:"email",text:_APPMAIN.gm("by_email")}}return(0,n.jsxs)("label",{className:"radio",children:[(0,n.jsx)("input",{className:"radio__input",type:"radio",name:"action",defaultChecked:e.defaultChecked,defaultValue:r.value,onChange:e=>{t.handler.actions.changeMethod(e)}}),(0,n.jsx)("span",{className:"radio__switcher"}),(0,n.jsx)("span",{className:"radio__text",children:r.text})]},t.state.way+r.value)},get:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return null;switch(e){case"auth":case"reg":return t.availaible.methods[e]()}}}}),c(this,"ways",{auth:{phone:{1:()=>(0,n.jsxs)("div",{className:"signin-phone__wrapper",children:[(0,n.jsxs)("div",{className:"signin-phone",children:[(0,n.jsx)("div",{className:"form-row",children:this.t.bW.rowInput((0,n.jsx)("input",{className:"form-row__input",type:"tel",placeholder:_APPMAIN.sd.siteConsts.phone.placeholder,name:"auth_phone",defaultValue:""}))}),this.t.sendSmsBtn]}),(0,n.jsxs)("div",{className:"signin-info",children:[this.t.smscode,this.t.policy]})]},"auth_phone"),2:()=>(0,n.jsxs)("div",{className:"signin-phone-sms ",children:[(0,n.jsxs)("div",{className:"form-row",children:[this.t.bW.rowLabel(_APPMAIN.gm("enter_code_sms")),(0,n.jsx)("div",{className:"form-row__sms-wrap",children:this.t.enterCodeFields(4,"auth")})]}),(0,n.jsx)("div",{className:"form-row",children:(0,n.jsx)("button",{className:"btn btn--accent w-full",type:"submit",children:_APPMAIN.gm("enter")})})]})},email:{1:()=>(0,n.jsxs)("div",{className:"signin-email__wrapper",children:[this.t.inputEnterEmail(),this.t.bW.rowInput(this.t.inputEnterPassword()),(0,n.jsx)("div",{className:"form-row",children:(0,n.jsx)("button",{className:"btn btn--accent w-full",type:"submit",children:_APPMAIN.gm("enter")})}),(0,n.jsx)("div",{className:"signin-info",children:(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:_APPMAIN.gm("user_agreement",{"#userAgreement#":this.props.params.links.userAgreement,"#privacyPolicy#":this.props.params.links.privacyPolicy})}})})]},"auth_email"),2:()=>{}},build:(e,t)=>(0,n.jsxs)("form",{action:this.props.params.actionUrl,method:"POST",encType:"multipart/form-data",children:[this.availaible.ways.get(),(0,n.jsxs)("div",{className:"signin-action__wrapper",children:[this.availaible.methods.get("auth"),(0,n.jsx)("div",{className:"signin__data",children:this.ways.auth[e][t]()})]})]})},reg:{phone:{1:()=>(0,n.jsx)("div",{className:"signup-action__wrapper",children:(0,n.jsxs)("div",{className:"signup-phone",children:[(0,n.jsx)("div",{className:"form-row",children:this.t.bW.rowInput((0,n.jsx)("input",{className:"form-row__input",type:"tel",name:"reg_phone",defaultValue:"",placeholder:_APPMAIN.sd.siteConsts.phone.placeholder}))}),this.t.sendSmsBtn,(0,n.jsxs)("div",{className:"signup-info",children:[this.t.confirmPolicy(),this.t.allowMailing(),this.t.smscode,this.t.policy]})]})},"reg_phone"),2:()=>(0,n.jsx)("div",{className:"signup-phone",children:(0,n.jsxs)("div",{className:"signup-phone-sms",children:[(0,n.jsx)("h3",{className:"info-title",children:_APPMAIN.gm("notice_registration_phone")}),this.t.inputEnterName(),this.t.inputEnterSurname(),this.t.inputEnterEmail(),(0,n.jsxs)("div",{className:"form-row",children:[this.t.bW.rowLabel(_APPMAIN.gm("code_sms")),(0,n.jsx)("div",{className:"form-row__email-wrap",children:this.t.enterCodeFields(4,"reg")})]}),this.t.confirmPolicy(),this.t.allowMailing(),this.t.btnRegister]})})},email:{1:()=>(0,n.jsx)("div",{className:"signup-action__wrapper",children:(0,n.jsxs)("div",{className:"signup-phone",children:[(0,n.jsx)("div",{className:"form-row",children:this.t.bW.rowInput((0,n.jsx)("input",{className:"form-row__input",type:"email",name:"reg_email",defaultValue:"",placeholder:_APPMAIN.gm("rev_email")}))}),(0,n.jsx)("div",{className:"form-row",children:(0,n.jsx)("button",{className:"btn btn--accent w-full",type:"submit",children:_APPMAIN.gm("next")})}),(0,n.jsxs)("div",{className:"signup-info",children:[this.t.confirmPolicy(),this.t.allowMailing(),this.t.policy]})]})},"reg_phone"),2:()=>(0,n.jsxs)("div",{className:"signup-email",children:[(0,n.jsx)("h3",{className:"info-title",children:_APPMAIN.gm("notice_registration_email")}),this.t.inputEnterName(),this.t.inputEnterSurname(),this.t.inputEnterPhone(),this.t.inputEnterPassword(),(0,n.jsxs)("div",{className:"form-row",children:[this.t.bW.rowLabel(_APPMAIN.gm("code_email")),(0,n.jsx)("div",{className:"form-row__sms-wrap",children:this.t.enterCodeFields(4,"reg")})]}),this.t.confirmPolicy(),this.t.allowMailing(),this.t.btnRegister]})},build:(e,t)=>(0,n.jsxs)("form",{action:this.props.params.actionUrl,method:"POST",encType:"multipart/form-data",children:[this.availaible.ways.get(),(0,n.jsxs)("div",{className:"signup-action__wrapper",children:[this.availaible.methods.get("reg"),(0,n.jsx)("div",{className:"signup__data",children:this.ways.reg[e][t]()})]})]})}}),this.handler=_APPMAIN.h.user.h.regauth,this.modal=e.modal.object,_APPMAIN.h.user.h.regauth.h.react="object"==typeof _APPMAIN.h.user.h.regauth.h.react?_APPMAIN.h.user.h.regauth.h.react:{},_APPMAIN.h.user.h.regauth.h.react.modal=this}componentDidMount(){this.modal.setState({title:this.getModalTitle()}),_APPMAIN.h.modals.init(),this.handler.actionsInit.full()}componentDidUpdate(){this.modal.setState({title:this.getModalTitle()}),this.handler.actionsInit.full()}getModalTitle(){var e;if(!this.props.availaible[this.state.way])return"";let t=!1;switch(this.state.way){case"auth":t=_APPMAIN.gm("authorization");break;case"reg":t=_APPMAIN.gm("registration")}return null!==(e=t)&&void 0!==e?e:_APPMAIN.gm("authorization")+"/"+_APPMAIN.gm("registration")}checkRegion(){return-1===["ae"].indexOf(_APPMAIN.const("region"))}render(){if(!this.props.availaible)return"";let e="";if(1==!!this.props.availaible[this.state.way])e=this.props.availaible[this.state.way][this.state.method]?this.ways[this.state.way].build(this.state.method,this.state.stage):this.ways[this.state.way].build(Object.keys(this.props.availaible[this.state.way])[0],this.state.stage);else{let t=Object.keys(this.props.availaible),n=Object.keys(this.props.availaible[t[0]]);e=this.ways[t[0]].build(n[0],this.state.stage)}return e}}const f=d;class p extends e.Component{constructor(e){var t,r,a;super(e),t=this,a={name:()=>(0,n.jsx)("div",{className:"quiz-slide__name",children:this.props.product.name}),picture:()=>{let e="";return this.props.product.image&&(e=(0,n.jsx)("img",{src:this.props.product.image,alt:this.props.product.name})),(0,n.jsx)("div",{className:"quiz-slide__img",children:e})},price:()=>{let e="";const t=this.props.product.price.currency;return e="object"!=typeof this.props.product.price?"":this.props.product.price.sale==this.props.product.price.base?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{className:"product-card__price--actual",children:[this.props.product.price.sale," ",t]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"product-card__price--actual",children:[this.props.product.price.sale," ",t," "]}),(0,n.jsxs)("span",{className:"product-card__price--old",children:[this.props.product.price.base," ",t]})]}),(0,n.jsx)("div",{className:"quiz-slide__price",children:e})},props:()=>"object"!=typeof this.props.product.props&&"array"!=typeof this.props.product.props?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)("div",{className:"quiz-slide__list",children:Object.values(this.props.product.props).map(((e,t)=>(0,n.jsx)("div",{className:"quiz-slide__row",children:e},t)))}),rating:()=>this.props.product.rating?(0,n.jsxs)("div",{className:"quiz-slide__rating",children:[(0,n.jsx)("div",{className:"quiz-slide__rating-star"}),this.props.product.rating]}):(0,n.jsx)(n.Fragment,{})},(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(r="b"))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,this.handler=e.handlerObject,this.p=e.params}render(){return(0,n.jsxs)("div",{className:"splide__slide quiz-slide",children:[this.b.picture(),this.b.rating(),this.b.name(),this.b.props(),this.b.price(),(0,n.jsxs)("form",{action:this.props.product.link,target:"_blank",method:"POST",encType:"application/x-www-form-urlencoded",children:[(0,n.jsx)("input",{type:"hidden",name:"requestFrom[blockReferer]",value:this.p.blockCode}),(0,n.jsx)("input",{type:"hidden",name:"requestFrom[itemType]",value:"catalog_element"}),(0,n.jsx)("input",{type:"hidden",name:"requestFrom[id]",value:this.props.product.id}),(0,n.jsx)("button",{type:"submit",className:"btn btn--accent btn--100",onClick:e=>{var t;e.preventDefault(),_APPMAIN.h.metrics.clickOnProduct({link:this.props.product.link,id:this.props.product.id,position:this.p.key+1,blockName:null!==(t=this.p.blockName)&&void 0!==t?t:"catalog section",redirect:!1}),e.target.closest("form").submit()},children:_APPMAIN.gm("detailed")})]})]})}}const h=p;class m extends e.Component{constructor(e){var t,r,a;super(e),t=this,a={arrows:()=>(0,n.jsxs)("div",{className:"splide__arrows",children:[(0,n.jsx)("button",{className:"splide__arrow splide__arrow--prev",type:"button",children:(0,n.jsx)("svg",{children:(0,n.jsx)("use",{href:_APPMAIN.const("templateConsts").commonIcon+"#slider-arrow-left"})})}),(0,n.jsx)("button",{className:"splide__arrow splide__arrow--next",type:"button",children:(0,n.jsx)("svg",{children:(0,n.jsx)("use",{href:_APPMAIN.const("templateConsts").commonIcon+"#slider-arrow-right"})})})]}),btnBack:()=>(0,n.jsx)("button",{type:"button",className:"btn btn--outline-default js-next-step btn-back",onClick:e=>{this.handler.actions.btnBack.click({node:e.target.closest(".btn-back")})},children:_APPMAIN.gm("back")}),btnRestart:()=>(0,n.jsx)("button",{type:"button",className:"btn btn--accent js-next-step",onClick:()=>{this.handler.actions.btnReset.click()},children:_APPMAIN.gm("sel_select_again")}),btnShowResults:()=>(0,n.jsx)("button",{type:"button",className:"btn btn--accent js-next-step",onClick:()=>{this.setState({msgPreResult:!1}),this.handler.actions.btnResult.click()},children:_APPMAIN.gm("sel_show_results")}),btnRestartMob:()=>(0,n.jsx)("div",{className:"btn-reset-mobile-wrp",children:(0,n.jsx)("button",{type:"button",className:"btn btn--outline btn--100 btn-reset-mobile js-btn-reset",onClick:()=>{this.handler.actions.quiz.load()},children:_APPMAIN.gm("sel_select_again")})})},(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(r="b"))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,this.state={msgPreResult:!0},this.p=e.params,this.handler=this.props.handlerObject,this.handler.h.react="object"==typeof this.handler.h.react?this.handler.h.react:{},this.handler.h.react.results=this}componentDidMount(){this.handler.n.get(),!1===this.state.msgPreResult&&this.handler.init.sliderResult()}componentDidUpdate(e,t,n){this.handler.n.get(),!1===this.state.msgPreResult&&this.handler.init.sliderResult()}render(){if("object"!=typeof this.props.items)return"Ошибка. Что-то пошло не так.";let e=Object.keys(this.props.items).length;if(0===e)return(0,n.jsxs)("div",{className:"quiz__body",children:[(0,n.jsx)("div",{className:"quiz-step__img",children:(0,n.jsx)("img",{src:_APPMAIN.const("templateConsts").imagesPath+"/quiz/final-img.webp",alt:""})}),(0,n.jsx)("div",{className:"quiz-step__title text-center",children:_APPMAIN.gm("sel_completed")}),(0,n.jsx)("div",{className:"quiz-step__text text-center",children:(0,n.jsx)("p",{children:_APPMAIN.gm("sel_result_not_isset_items")})}),(0,n.jsxs)("div",{className:"quiz-step__butns",children:[this.b.btnBack(),this.b.btnRestart()]})]});if(!0===this.state.msgPreResult)return(0,n.jsxs)("div",{className:"quiz__body",children:[(0,n.jsx)("div",{className:"quiz-step__img",children:(0,n.jsx)("img",{src:_APPMAIN.const("templateConsts").imagesPath+"/quiz/final-img.webp",alt:""})}),(0,n.jsx)("div",{className:"quiz-step__title text-center",children:_APPMAIN.gm("sel_completed")}),(0,n.jsx)("div",{className:"quiz-step__text text-center",children:(0,n.jsx)("p",{children:_APPMAIN.gm("sel_result_isset_items",{"#COUNT_ITEMS#":e+" "+Utils.string.caseWordEndingProduct(e,_APPMAIN.gm("sm_product"),_APPMAIN.sd.glLang)})})}),(0,n.jsxs)("div",{className:"quiz-step__butns",children:[this.b.btnBack(),this.b.btnShowResults(),this.b.btnRestartMob()]})]});let t=[],r=0;for(let e in this.props.items){let a=this.p;a.key=r,t.push((0,n.jsx)(h,{product:this.props.items[e],params:a,handler:this.handlerObject},r)),r++}return(0,n.jsxs)("div",{className:"quiz-slider",children:[(0,n.jsx)("div",{className:"quiz-slider__head",children:(0,n.jsx)("div",{className:"quiz-step__title",children:_APPMAIN.gm("sel_selection_result")})}),(0,n.jsxs)("div",{className:"splide",children:[this.b.arrows(),(0,n.jsx)("div",{className:"splide__track",children:(0,n.jsx)("div",{className:"splide__list",children:[...t]})})]}),this.b.btnRestartMob()]})}}const g=m;class v extends e.Component{constructor(e){var t,r,a;super(e),t=this,a={header:()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:"quiz__back js-next-step btn-back",onClick:e=>{this.handler.actions.btnBack.click({node:e.target.closest(".btn-back")})}}),(0,n.jsx)("div",{className:"quiz__header",children:(0,n.jsx)("div",{className:"quiz-head-title",children:this.getModalTitle()})})]}),headerFinal:()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{className:"quiz__back js-next-step btn-back",onClick:e=>{this.handler.actions.btnBack.click({node:e.target.closest(".btn-back")})}}),(0,n.jsx)("div",{className:"quiz__header",children:(0,n.jsx)("div",{className:"quiz-head-title",children:(0,n.jsx)("button",{type:"button",className:"btn-reset js-btn-reset",onClick:()=>{this.handler.actions.btnReset.click()},children:_APPMAIN.gm("sel_select_again")})})})]}),tooltip:e=>(0,n.jsxs)("div",{className:"tooltip",children:[(0,n.jsx)("button",{type:"button",className:"tooltip-btn"}),(0,n.jsx)("div",{className:"tooltip-dropdown tt-active",children:(0,n.jsx)("p",{children:e})})]}),next:()=>(0,n.jsx)("div",{className:"quiz__btn-cont",children:(0,n.jsx)("button",{className:"btn btn--accent btn-next js-next-step","data-target":"double",onClick:e=>{this.handler.actions.btnNext.click()},children:_APPMAIN.gm("sel_next_step")})}),selections:()=>{let e=[],t=0;try{for(let r in this.state.stepData){let a=this.state.stepData[r];e.push((0,n.jsxs)("div",{className:"quiz-step__selection",children:[(0,n.jsxs)("div",{className:"quiz-step__head",children:[(0,n.jsx)("div",{className:"quiz-step__title",children:a.title}),a.tooltip?this.b.tooltip(a.tooltip):""]}),(0,n.jsx)("div",{"data-code":a.code,className:"quiz-list",children:(()=>{let e=[];const t=a.variants;for(let r in t)e.push((0,n.jsxs)("div",{className:"quiz-item js-next-step",onClick:e=>{this.handler.actions.item.click({node:e.target.closest(".quiz-item"),group:a.code,code:t[r].code,value:t[r].value,title:t[r].title})},children:[(0,n.jsx)("div",{className:"quiz-item__img",children:(0,n.jsx)("img",{src:t[r].image,alt:t[r].title})}),(0,n.jsx)("div",{className:"quiz-item__text",children:t[r].title})]},r));return e})()})]},t)),t++}}catch(e){console.log(e)}return e}},(r=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(r="b"))in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,this.state={isLoaded:!1,stepData:{},results:{},modalTitle:"",stepCode:""},this.handler=this.props.handlerObject,this.modal=e.modal.object,this.p=e.params,this.props.handlerObject&&(this.handler.h.react="object"==typeof this.handler.h.react?this.handler.h.react:{},this.handler.h.react.step=this)}getModalTitle(){return this.state.modalTitle?this.state.modalTitle:_APPMAIN.gm("sel_mattresses_selection")}componentDidMount(e,t,n){}componentDidUpdate(e,t,n){this.state.isLoaded&&(this.handler.init.full(),this.modal.setState({isLoaded:!0}))}render(){if(!this.state.isLoaded)return"";if("object"==typeof this.state.results)return(0,n.jsxs)("div",{className:"quiz-step active",children:[this.b.headerFinal(),(0,n.jsx)(g,{items:this.state.results,nodes:this.b,handlerObject:this.handler,params:this.p})]});let e=this.handler.step.isMultiSelection();return(0,n.jsxs)("div",{className:"quiz-step active",children:[this.b.header(),(0,n.jsx)("div",{className:e?"quiz__body quiz--double":"quiz__body",children:[...this.b.selections()]}),e?this.b.next():""]})}}const b=v;class y extends e.Component{constructor(e){super(e),this.props.handlerObject&&(this.props.handlerObject.h.react="object"==typeof this.props.handlerObject.h.react?this.props.handlerObject.h.react:{},this.props.handlerObject.h.react.modal=this),"object"==typeof e.return&&"object"==typeof e.return.obj&&(e.return.obj[e.return.field]=this),this.state=e.state}componentDidUpdate(e,t,n){_APPMAIN.h.modals.init()}render(){return 1!=this.state.isLoaded?"":(0,n.jsx)("div",{className:"quiz modal",id:this.props.params.id,children:(0,n.jsxs)("div",{className:"modal__inner quiz__inner",children:[(0,n.jsx)("button",{className:"quiz__close modal__close",onClick:()=>{},children:(0,n.jsx)(o,{id:"close",type:"common"})}),this.state.content]})})}}const _=y;class w extends e.Component{constructor(t){var r,a,l;super(t),r=this,l={header:()=>(0,n.jsx)("div",{className:"search__header",children:(0,n.jsxs)("div",{className:"search__top-search search-form",children:[(0,n.jsx)("button",{className:"search__top-searchButton",type:"button","aria-label":"search",alt:_APPMAIN.gm("search_by_product"),title:_APPMAIN.gm("search_by_product"),children:(0,n.jsx)("svg",{className:"search__top-search__icon",children:(0,n.jsx)("use",{href:_APPMAIN.sd.siteConsts.templateConsts.iconsPath+"/icons.svg#search"})})}),(0,n.jsx)("input",{className:"search__input",type:"text",placeholder:_APPMAIN.gm("search_by_product")+"...",defaultValue:this.state.query,onKeyUp:e=>{this.state.query=e.target.closest("input").value,this.handler.action.search({query:this.state.query})},ref:this.inputRef,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length)})]})}),itemsList:()=>{if(Object.keys(this.state.itemsList).length<1)return(0,n.jsx)(n.Fragment,{children:"Совпадений не найдено"});let e=0,t=[];for(let n in this.state.itemsList)e++,this.state.itemsList[n].link&&t.push(this.b.item.build(this.state.itemsList[n],e));return(0,n.jsx)("ul",{className:"search__result-list",children:t.map((e=>e))})},item:{build:(e,t)=>(0,n.jsx)("li",{className:"search__item",children:(0,n.jsxs)("a",{href:e.link,onClick:n=>{n.preventDefault(),_APPMAIN.h.metrics.clickOnProduct({link:n.target.closest("a").href,id:e.id,position:t,blockName:"search"})},children:[(0,n.jsx)("div",{className:"search__item-photo",children:(0,n.jsx)("img",{src:e.picture})}),(0,n.jsxs)("div",{className:"search__item-info",children:[this.b.item.name(e),this.b.item.characteristics(e)]})]})},t),characteristics:e=>e.props?(0,n.jsx)("p",{className:"search__item-characteristic",children:e.props}):(0,n.jsx)(n.Fragment,{}),name:e=>e.name?(0,n.jsx)("div",{className:"search__item-name",children:e.name}):(0,n.jsx)(n.Fragment,{}),picture:e=>e.picture?(0,n.jsx)("div",{className:"search__item-photo",children:(0,n.jsx)("img",{src:e.picture})}):(0,n.jsx)(n.Fragment,{})}},(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(a="b"))in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l,this.handler=_APPMAIN.h.search,this.modal=t.modal.object,_APPMAIN.h.search.h.react="object"==typeof _APPMAIN.h.search.h.react?_APPMAIN.h.search.h.react:{},_APPMAIN.h.search.h.react.search=this,_APPMAIN.h.search.h.react.modal=this.modal,this.state={itemsList:[],query:"",focus:!1},this.inputRef=(0,e.createRef)()}componentDidMount(){this.modal.setState({title:this.getModalTitle()})}componentDidUpdate(){this.modal.setState({title:this.getModalTitle()}),this.state.focus&&this.inputRef.current.focus()}getModalTitle(){return _APPMAIN.gm("search_by_product")+"..."}render(){return(0,n.jsxs)("div",{className:"search__container",children:[this.b.header(),(0,n.jsx)("div",{className:"search__wrapper",children:this.b.itemsList()})]})}}const k=w;if(_APPMAIN.sd.search){const r=document.querySelector("#".concat(_APPMAIN.sd.search.containerId));if(r){let a={object:!0};t.createRoot(r).render((0,n.jsx)(e.StrictMode,{children:(0,n.jsx)(u,{state:{content:(0,n.jsx)(k,{params:_APPMAIN.sd.search,modal:a})},return:{obj:a,field:"object"},params:{title:"",id:_APPMAIN.sd.search.modalId}})}))}}const x=document.querySelector(".react-bonus-block");if(x&&t.createRoot(x).render((0,n.jsx)(e.StrictMode,{children:(0,n.jsx)(l,{})})),_APPMAIN.sd.user&&_APPMAIN.sd.user.regauth){const r=document.querySelector("#".concat(_APPMAIN.sd.user.regauth.params.blockSelector));if(r){let a={object:!0};t.createRoot(r).render((0,n.jsx)(e.StrictMode,{children:(0,n.jsx)(u,{state:{content:(0,n.jsx)(f,{params:_APPMAIN.sd.user.regauth.params,availaible:_APPMAIN.sd.user.regauth.availaible,modal:a})},return:{obj:a,field:"object"},params:{title:_APPMAIN.sd.siteConsts.authorization,id:_APPMAIN.sd.user.regauth.params.modalId}})}))}}if(_APPMAIN.sd.productSelection&&_APPMAIN.sd.productSelection.mattresses&&_APPMAIN.h.productSelectionMattresses){const e=document.querySelector("."+_APPMAIN.sd.productSelection.mattresses.params.modalId+"-wrapper");if(e){let r={object:!0};t.createRoot(e).render((0,n.jsx)(_,{state:{isLoaded:!0,content:(0,n.jsx)(b,{modal:r,handlerObject:_APPMAIN.h.productSelectionMattresses,params:{blockCode:"mattresses_selection",blockName:_APPMAIN.sd.productSelection.mattresses.params.modalTitle}}),handlerObject:_APPMAIN.h.productSelectionMattresses},params:{title:_APPMAIN.sd.productSelection.mattresses.params.modalTitle,id:_APPMAIN.sd.productSelection.mattresses.params.modalId},return:{obj:r,field:"object"},handlerObject:_APPMAIN.h.productSelectionMattresses}))}}if(_APPMAIN.sd.productSelection&&_APPMAIN.sd.productSelection.sofas){const e=document.querySelector("."+_APPMAIN.sd.productSelection.sofas.params.modalId+"-wrapper");if(e){let r={object:!0};t.createRoot(e).render((0,n.jsx)(_,{state:{isLoaded:!0,content:(0,n.jsx)(b,{modal:r,handlerObject:_APPMAIN.h.productSelectionSofas,params:{blockCode:"sofas_selection",blockName:_APPMAIN.sd.productSelection.sofas.params.modalTitle}}),handlerObject:_APPMAIN.h.productSelectionSofas},params:{title:_APPMAIN.sd.productSelection.sofas.params.modalTitle,id:_APPMAIN.sd.productSelection.sofas.params.modalId},return:{obj:r,field:"object"},handlerObject:_APPMAIN.h.productSelectionSofas}))}}if(_APPMAIN.sd.productSelection&&_APPMAIN.sd.productSelection.pillows){const e=document.querySelector("."+_APPMAIN.sd.productSelection.pillows.params.modalId+"-wrapper");if(e){let r={object:!0};t.createRoot(e).render((0,n.jsx)(_,{state:{isLoaded:!0,content:(0,n.jsx)(b,{modal:r,handlerObject:_APPMAIN.h.productSelectionPillows,params:{blockCode:"pillows_selection",blockName:_APPMAIN.sd.productSelection.pillows.params.modalTitle}}),handlerObject:_APPMAIN.h.productSelectionPillows},params:{title:_APPMAIN.sd.productSelection.pillows.params.modalTitle,id:_APPMAIN.sd.productSelection.pillows.params.modalId},return:{obj:r,field:"object"},handlerObject:_APPMAIN.h.productSelectionPillows}))}}if(_APPMAIN.sd.productSelection&&_APPMAIN.sd.productSelection.beds){const e=document.querySelector("."+_APPMAIN.sd.productSelection.beds.params.modalId+"-wrapper");if(e){let r={object:!0};t.createRoot(e).render((0,n.jsx)(_,{state:{isLoaded:!0,content:(0,n.jsx)(b,{modal:r,handlerObject:_APPMAIN.h.productSelectionBeds,params:{blockCode:"beds_selection",blockName:_APPMAIN.sd.productSelection.beds.params.modalTitle}}),handlerObject:_APPMAIN.h.productSelectionBeds},params:{title:_APPMAIN.sd.productSelection.beds.params.modalTitle,id:_APPMAIN.sd.productSelection.beds.params.modalId},return:{obj:r,field:"object"},handlerObject:_APPMAIN.h.productSelectionBeds}))}}var P;P&&P instanceof Function&&a.e(364).then(a.bind(a,364)).then((e=>{let{getCLS:t,getFID:n,getFCP:r,getLCP:a,getTTFB:l}=e;t(P),n(P),r(P),a(P),l(P)}))})()})(main);
        });
