function ttgallery(e,t={}){function o(e,t){return new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)}function n(e){return rect=e.getBoundingClientRect(),win=e.ownerDocument.defaultView,{top:rect.top+win.pageYOffset,left:rect.left+win.pageXOffset}}document.querySelectorAll(e).forEach((function(e){let r,i,l,c,s,a,u,d,m,f,h,p,_,y,v,g,S,b,q,E,w,L,A,k,x=e,C=0,T=50,P=0,j=0,H=100,z=0,M=0,R=0,W=0,I=0,U=[],F=0,O=0,B=0,D=document.body.clientWidth;const N="disabled",Y="active",$="opacity",X="transition",V="ease-out",Q=".ttgallery_cont",Z="animated",J="data-to",G="style",K=".tt_one",ee="translate3d",te="tt_loaded",oe="data-count",ne=".tt_next",re=".tt_prev",ie="tt_dinamic",le="vis_active";function ce(e,o){return"true"===t[e]&&(t[e]=1),"false"===t[e]&&(t[e]=0),null!=t[e]?t[e]:o}let se,ae,ue,de,me,fe,he,pe,_e,ye,ve,ge,Se,be,qe,Ee,we,Le,Ae,ke;function xe(){se=ce("slide_to_scroll",1),ae=ce("slide_to_view",1),ue=ce("loop",0),de=ce("margin",0),me=ce("vertical",0),fe=ce("vertical_height",0),he=ce("dinamic",0),pe=ce("true_dinamic",0),_e=ce("force",0),ye=ce("dots",1),ve=ce("arrows",1),ge=ce("fade",0),Se=ce("group_dots",1),be=ce("lazy",1),qe=ce("lazy_attr","data-lazy"),Ee=ce("speed",300),we=ce("autoplay",0),Le=ce("delay",5e3),Ae=ce("stop_on_hover",1),ke=ce("arrows_by_one",0),Le<Ee&&(Le=Ee)}function Ce(){if(t.responsive){let e=0;q=Object.keys(t.responsive).map((e=>({value:e}))),q.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));let o=window.innerWidth;for(let t=q.length-1;t>-1;t--)q[t].value>=o&&(e=q[t].value);return e}return 0}function Te(){return!!(ue&&j>ae)}function Pe(e,o,n){return e&&null!=t.responsive[e][o]?t.responsive[e][o]:null!=t[o]?t[o]:n}function je(e,t=!1){ae=Pe(e,"slide_to_view",1),se=Pe(e,"slide_to_scroll",1),se>ae&&(se=ae),ue=Pe(e,"loop",0),de=Pe(e,"margin",0),me=Pe(e,"vertical",0),fe=Pe(e,"vertical_height",0),he=Pe(e,"dinamic",0),pe=Pe(e,"true_dinamic",0),_e=Pe(e,"force",0),ye=Pe(e,"dots",1),ve=Pe(e,"arrows",1),ge=Pe(e,"fade",0),Se=Pe(e,"group_dots",1),t&&(Me(P%j),Te()?function(e=P%j){let t="";for(let e=0;e<3*j;e++)t+=m.querySelectorAll("["+oe+'="'+e%j+'"]')[0].outerHTML;m.innerHTML=t,h=m.querySelectorAll(K),d.removeAttribute(G),Ue(),_=j+e,z=-j,M=j,P=e,F=-j*H-e*H-de*_,Fe(),I=1,Xe(e)}():function(e=P%j,t=I){e<0&&(e+=j);if(W=0,t){let t="";for(let e=0;e<j;e++)t+=m.querySelectorAll("["+oe+'="'+e%j+'"]')[0].outerHTML;m.innerHTML=t,h=m.querySelectorAll(K),j<=ae&&(e=0)}Ue(),P=e,ue||(P<0&&(P=0),j>ae?P>j-ae&&(P=j-ae):P=0);let o=P%j;y.querySelectorAll("."+Y).forEach((function(e){e.classList.remove(Y)})),y.querySelectorAll('[data-id="'+o+'"]').forEach((function(e){e.classList.add(Y)})),F=-P*H-de*P,Fe(),I=0,Xe(e)}()),g.style.display=!ye||j<ae+1?"none":"flex",function(){!ve||j<=se||j<=ae?(S.style.display="none",b.style.display="none"):(S.removeAttribute(G),b.removeAttribute(G));He()}(),t&&Ne()}function He(){0!=P||ue?S.classList.remove(N):S.classList.add(N),P!=j-ae||ue?b.classList.remove(N):b.classList.add(N)}function ze(e){let t=v.querySelectorAll('[data-to="'+e+'"]')[0];v.querySelectorAll("[data-to]").forEach((function(e){e.removeAttribute(J)})),v.querySelectorAll("."+Y).forEach((function(e){e.classList.remove(Y)})),t.classList.add(Y);let o=t,n=t;for(let e=1;e<=se;e++)o=o.previousSibling,void 0!==o&&o.setAttribute(J,-e),n=n.nextSibling,void 0!==n&&n.setAttribute(J,e);v.style.transition="all "+Ee+"ms "+V,v.style.transform=ee+"("+-e*t.offsetWidth*k+"px,0,0)",setTimeout((()=>{v.style.transition="all 0ms "+V,v.style.transform=ee+"(0px,0,0)",function(){v.classList.add("tt_instant"),v.querySelectorAll("span").forEach((function(e){e.removeAttribute("data-to")}));for(let e=-2*se;e<=2*se;e++)e<-se||e>se||v.querySelector('[data-i="'+e+'"]').setAttribute("data-to",e);v.querySelector(".active").classList.remove(Y),v.querySelector('[data-i="0"]').classList.add(Y),setTimeout((function(){v.classList.remove("tt_instant")}),50)}()}),Ee)}function Me(e=0){let t=ue?j:j-(ae-1);e>t-1&&(e=t-1,P=t-1,_=t-1);let o="";for(let n=0;n<t;n++)o+='<span class="'+(n!=e?"":Y)+" "+(n%se==0||!Se||he||n+1==t&&!ue?"":"gal_disabled")+'" data-id="'+n+'"></span>';y.innerHTML=o,E=y.innerHTML,Te()&&he&&pe?(!function(){y.style.display="none",v.classList.add(ie);let e="";for(let t=-2*se;t<=2*se;t++){let o;o=t<-se||t>se?"":'data-to="'+t+'"',e+='<span class="'+(0==t?Y:"")+'" '+o+' data-i="'+t+'"></span>'}v.innerHTML=e}(),v.style.display="flex",y.style.display="none"):(v.style.display="none",y.style.display="flex"),j<=ae&&(y.style.display="none",v.style.display="none")}function Re(){A=setInterval((()=>{O&&Ae||Oe(1)}),Le)}function We(){clearInterval(A),Re()}function Ie(e="",t=0){d=x,j=0,z=0,M=0,d.style.height=d.offsetHeight+"px",e&&(d.innerHTML=e);for(let e=0;e<x.children.length;e++)if("DIV"==x.children[e].tagName){let t=x.children[e];t.classList.add("tt_one"),t.setAttribute(oe,j),j++}p=d.innerHTML,d.classList.add("tt_inited"),d.innerHTML='<div class="ttgallery_cont"><div class="ttgallery">'+p+'</div></div><div class="galpager_cont"><div class="galpager"></div><div class="galpager_dinamic"></div></div><span class="tt_prev"></span><span class="tt_next"></span></div>',e||d.removeAttribute(G),m=d.querySelector(".ttgallery"),f=d.querySelector(Q),h=d.querySelectorAll(K),y=d.querySelector(".galpager"),v=d.querySelector(".galpager_dinamic"),g=d.querySelector(".galpager_cont"),S=d.querySelector(re),b=d.querySelector(ne),m.setAttribute("data-total",j),je(Ce()),Te()&&(m.innerHTML=m.innerHTML+m.innerHTML+m.innerHTML,h=m.querySelectorAll(K)),m.querySelectorAll(K+"["+oe+'="'+t+'"]').forEach((function(e){e.classList.add(Y)})),Ue(),Te()?(_=j+t,z+=-j,M+=j,F=-j*H-t*H-de*_,Fe(),I=1):(F=-t*H-de*P,Fe()),P=t,Je(),we&&Re(),Me(t),Xe(t),e&&d.removeAttribute(G);const o=new Event("ttready");d.dispatchEvent(o)}function Ue(){if(me){let e=fe||f.offsetHeight;f.style.height=e+"px",m.style.flexDirection="column",H=(e-de*(ae-1))/ae,h.forEach((function(e){e.style.width="100%",e.style.height=H+"px",1==k?e.style.marginRight="0px":e.style.marginLeft="0px",e.style.marginBottom=de+"px"}))}else m.style.flexDirection="row",f.style.height="auto",H=(f.offsetWidth-de*(ae-1))/ae,h.forEach((function(e){e.style.width=H+"px",e.style.height="auto",1==k?e.style.marginRight=de+"px":e.style.marginLeft=de+"px",e.style.marginBottom="0px"}))}function Fe(e=k){m.style.transform=me?ee+"(0,"+F+"px,0":ee+"("+F*e+"px,0,0"}function Oe(e){U.push(e),Be(),we&&We()}function Be(){U.length&&!R&&(j>ae&&(B++,U[0]*U[0]?$e(U[0]):(0===U[0].indexOf("p")&&Qe(U[0].slice(1)),0===U[0].indexOf("f")&&$e(parseInt(U[0].slice(1)),0),0===U[0].indexOf("c")&&(R++,Ze(1)))),U.shift())}function De(){return P%j>-1?P%j:j+P%j}function Ne(e=null,t=null){if(be){if(null!=t)for(let o=t;o<e;e>t?o++:o--)m.querySelectorAll("["+oe+'="'+(o<=j?o:o-j)+'"] img['+qe+"]:not(."+te+")").forEach((function(e){e.setAttribute("src",e.getAttribute(qe)),e.classList.add(te)}));null==e&&(e=De());for(let t=e;t<e+ae;t++)m.querySelectorAll("["+oe+'="'+(t<j?t:t-j)+'"] img['+qe+"]:not(."+te+")").forEach((function(e){e.setAttribute("src",e.getAttribute(qe)),e.classList.add(te)}))}}function Ye(e,t){h.forEach((function(e){e.classList.remove(Y)})),m.querySelectorAll("["+oe+'="'+t+'"]').forEach((function(e){e.classList.add(Y)})),Ne(t,e);let o=new CustomEvent("beforeAnim",{detail:{old_slide:e,new_slide:t}});x.dispatchEvent(o)}function $e(e,t=1){R++,m.classList.add(Z);let o=De();P+=t?e*se:e,_+=t?e*se:e,ue||(P<0&&(P=0),P>j-ae&&(P=j-ae)),Ye(o,De()),Ze(),Te()&he&&t&&pe&&ze(e*se)}function Xe(e){e<0&&(e+=j);let t=y.querySelector('[data-id="'+e+'"]');y.querySelectorAll("."+Y).forEach((function(e){e.classList.remove(Y)})),y.querySelectorAll("."+le).forEach((function(e){e.classList.remove(le)})),he&&!ue||he&&ue&&!pe?(y.classList.add(ie),y.querySelectorAll("[data-to]").forEach((function(e){e.removeAttribute(J)})),y.querySelectorAll("."+Y).forEach((function(e){e.classList.remove(Y)})),null!==t.previousSibling&&(t.previousSibling.setAttribute(J,-1),null!==t.previousSibling.previousSibling&&t.previousSibling.previousSibling.setAttribute(J,-2)),null!==t.nextSibling&&(t.nextSibling.setAttribute(J,1),null!==t.nextSibling.nextSibling&&t.nextSibling.nextSibling.setAttribute(J,2)),y.style.transform=ee+"("+32*(j-e-(j+1)/2)*k+"px,0,0"):(y.classList.remove(ie),he||y.removeAttribute(G)),t&&t.classList.add(Y),t&&o(t,"gal_disabled")&&y.querySelectorAll('[data-id="'+(e-e%se)+'"]').forEach((function(e){t.classList.add(le)}))}function Ve(){R||(m.classList.remove(Z),m.style.transition="all 0s "+V,Te()&&function(){let e=0;P-se<=z?(e=1,_+=j,z-=j,M-=j):M<=P+se&&(e=1,_-=j,M+=j,z+=j),e&&(F=-_*H-de*_,m.style.transition="all 0ms "+V,Fe(),Ue(),Ne()),setTimeout((()=>{Be()}),10)}(),setTimeout((()=>{Be()}),10)),function(e){h.forEach((function(e){e.classList.remove(Y)})),m.querySelectorAll("["+oe+'="'+e+'"]').forEach((function(e){e.classList.add(Y)})),He();let t=new CustomEvent("afterAnim",{detail:{new_slide:e}});x.dispatchEvent(t)}(De())}function Qe(e,t=Ee){let o=De(),n=parseInt(y.querySelector("."+Y).getAttribute("data-id"));_+=e-n,P+=e-n,Xe(e),F=Te()?-_*H-de*_:-P*H-de*P,Ye(o,De()),ge?(h.css(X,$+" "+t/2+"ms linear"),h.css($,0),setTimeout((()=>{h.css($,1),Fe(),Ve()}),t/2)):(m.style.transition="all "+t+"ms "+V,Fe(),setTimeout((()=>{m.style.transition=X,Ve()}),t))}function Ze(e=0){F=ue?-_*H-de*_:-P*H-de*P,W=1,Xe(P%j<0?j+P%j:P%j),ge?(h.style.transition=$+" "+(_e?Ee/(2*U.length):Ee/2)+"ms "+V,e||(h.style.opacity="0"),setTimeout((()=>{h.style.opacity="1",Fe(),R--,Ve()}),_e?Ee/(2*U.length):Ee/2)):(m.style.transition="all "+(_e?Ee/U.length:Ee)+"ms "+V,Fe(),setTimeout((()=>{R--,Ve()}),_e?Ee/U.length:Ee))}function Je(){let e=window.scrollTop,t=x.offsetTop,o=window.offsetHeight,n=x.offsetHeight;t>e+o||t<e-n||Ne()}function Ge(e){if(3==e.which)return!1;j>ae&&(C=1),R||(B=0);let t=void 0!==e.touches?e.touches:null;a=null!==t?t[0].pageX:e.clientX,u=null!==t?t[0].pageY:e.clientY;let o=n(m),l=n(f);c=Math.round(o.left-l.left),s=Math.round(o.top-l.top),r=a,i=u,w=0,L=0}function Ke(){if(C)if(C=0,me){if(Math.abs(i-u))return l=i-u>0?-1:1,Math.abs(i-u)>(_e?T/(1+U.length):T)&&j>se?Oe(l):Oe("c"),!1;m.classList.remove(Z)}else{if(Math.abs(r-a))return l=r-a>0?-1:1,Math.abs(r-a)>(_e?T/(1+U.length):T)&&j>se?Oe(l*k):Oe("c"),!1;m.classList.remove(Z)}}function et(e){let t=void 0!==e.touches?e.touches:null;if(C&&(r=null!==t?t[0].pageX:e.clientX,i=null!==t?t[0].pageY:e.clientY,L>50&&L>w?L++:w>50&&w>L?w++:Math.abs(a-r)>Math.abs(u-i)?L++:w++,o(m,"."+Z)||m.classList.add(Z),R||B||ge||(me?(e.preventDefault(),F=s-u+i,Fe()):L>w&&(F=c-a+r,Fe(1))),L>w&&!me))return e.preventDefault(),!1}function tt(){x.querySelectorAll(ne).forEach((function(e){e.addEventListener("click",(()=>{let e=me?1:1*k;Oe(ke?"f"+e:e)}))})),x.querySelectorAll(re).forEach((function(e){e.addEventListener("click",(()=>{let e=me?-1:-1*k;Oe(ke?"f"+e:e)}))})),x.querySelectorAll(Q).forEach((function(e){e.addEventListener("mousedown",(e=>{Ge(e)})),e.addEventListener("touchstart",(e=>{Ge(e)}))})),x.querySelectorAll(Q).forEach((function(e){e.addEventListener("mouseup",(()=>{Ke()})),e.addEventListener("touchend",(()=>{Ke()})),e.addEventListener("touchcancel",(()=>{Ke()})),e.addEventListener("mouseleave",(()=>{Ke()}))})),x.querySelectorAll(Q).forEach((function(e){e.addEventListener("mousemove",(e=>{et(e)})),e.addEventListener("touchmove",(e=>{et(e)}))})),x.querySelectorAll(".galpager>span").forEach((function(e){e.addEventListener("click",(function(t){U=[],Oe("p"+e.getAttribute("data-id"))}))})),x.querySelectorAll(".galpager_dinamic>span").forEach((function(e){e.addEventListener("click",(function(t){null!==e.getAttribute(J)&&(U=[],R||(Oe("f"+e.getAttribute(J)),ze(parseInt(e.getAttribute("data-i")))))}))}))}xe(),k="rtl"==document.body.getAttribute("dir")||"rtl"==document.documentElement.getAttribute("dir")?-1:1,Ie(),setTimeout(Je,100),window.addEventListener("resize",(()=>{let e=document.body.clientWidth;D!=e&&(je(Ce(),1),D=e)})),tt(),window.addEventListener("scroll",(()=>{"none"!==x.style.display&&Je()}),{passive:!0}),x.addEventListener("mouseenter",(e=>{O=1})),x.addEventListener("mouseleave",(e=>{O=0})),x.tt_addslide=function(e,t=""){e&&function(e,t=0){let o=document.createElement("DIV");o.innerHTML=e;let n,r=o.children.length;t?(p=e+p,n=P%j+r):(p+=e,n=P%j),ue&&j<=ae&&(n=0),Ie(p,n),tt()}(e,t)},x.tt_removeslide=function(e){!function(e){let t=document.createElement("DIV");t.innerHTML=p,t.children[e].remove(),p=t.innerHTML;let o=De(),n=o>=e&&o>0?o-1:o;ue&&j<=ae&&(n=0),Ie(p,n),tt()}(e)},x.tt_slideto=function(e,t){j>ae&&Qe(e,t)},x.tt_next=function(e=0){let t=me?1:1*k;Oe(e?"f"+t:t),He()},x.tt_prev=function(e=0){let t=me?-1:-1*k;Oe(e?"f"+t:t),He()},x.tt_options=function(e){t=e,xe(),clearInterval(A),we&&We(),je(Ce(),1)},x.tt_destroy=function(){x.querySelectorAll(".galpager>span").forEach((function(e){e.removeEventListener("click",(function(t){U=[],Oe("p"+e.getAttribute("data-id"))}))})),x.querySelectorAll(Q).forEach((function(e){e.removeEventListener("mouseup",(()=>{Ke()})),e.removeEventListener("touchend",(()=>{Ke()})),e.removeEventListener("touchcancel",(()=>{Ke()})),e.removeEventListener("mouseleave",(()=>{Ke()})),e.removeEventListener("mousedown",(e=>{Ge(e)})),e.removeEventListener("touchstart",(e=>{Ge(e)})),e.removeEventListener("mousemove",(e=>{et(e)})),e.removeEventListener("touchmove",(e=>{et(e)}))})),x.querySelector(ne).removeEventListener("click",(()=>{let e=me?1:1*k;Oe(ke?"f"+e:e)})),x.querySelector(re).removeEventListener("click",(()=>{let e=me?-1:-1*k;Oe(ke?"f"+e:e)})),x.tt_addslide=null,x.tt_removeslide=null,x.tt_slideto=null,x.tt_next=null,x.tt_prev=null,x.tt_options=null,x.innerHTML=p,x.classList.remove("tt_inited"),x.querySelectorAll(K).forEach((function(e){e.removeAttribute(oe),e.classList.remove("tt_one")}))},x.querySelectorAll("a").forEach((function(e){e.addEventListener("dragstart",(()=>!1))}))}))}function ttlightbox(e,t){function o(e){e.replaceWith(""),document.body.classList.remove("bd_over_hidden")}let n,r,i,l,c,s,a,u;function d(d,m){let f=m,h="tt_lightbox",p="."+h,_=d.getAttribute(t);document.body.append(document.createRange().createContextualFragment('<div class="'+h+'"><div class="'+h+'_flex"><span class="'+h+'_prev"></span><span class="'+h+'_next"></span><div class="'+h+'_img"><img class="ttprefadein" src="'+_+'" alt=""/></div></div><span class="'+h+'_back"></span><div class="'+h+'_preview"><div class="'+h+'_preview_flex"></div></div><span class="'+h+'_close"></span></div>'));let y=document.querySelector(p+"_close"),v=document.querySelector(p+"_back"),g=document.querySelector(p),S=document.querySelector(p+"_img"),b=document.querySelector(p+"_img img"),q=document.querySelector(p+"_prev"),E=document.querySelector(p+"_next"),w=document.querySelector(p+"_flex"),L=document.querySelector(p+"_preview"),A=document.querySelector(p+"_preview_flex");document.body.classList.add("bd_over_hidden"),y.addEventListener("click",(function(e){o(g)})),v.addEventListener("click",(function(e){o(g)}));let k=function(e,o){if(S.querySelectorAll("iframe").forEach((function(e,t){e.replaceWith("")})),e.hasAttribute("data-video")){let t=document.createRange().createContextualFragment('<iframe src="'+e.getAttribute("data-video")+'" title="Player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>');S.append(t),b.style.display="none"}else{b.classList.add("ttfadeout_"+o);let n=e.getAttribute(t),r=document.createRange().createContextualFragment('<img class="'+h+"_new "+h+"_prepare_"+o+'" src="'+n+'" alt=""/>');S.append(r),setTimeout((function(){b.replaceWith(""),b=document.querySelector(p+"_new"),b.classList.add("ttfadein_"+o),b.classList.remove(h+"_prepare_"+o),b.classList.remove(h+"_new"),setTimeout((function(){b.classList.remove("ttfadein_"+o)}),500),L.querySelectorAll(".tt_preview_img.active").forEach((function(e,t){e.classList.remove("active")})),L.querySelector('.tt_preview_img[data-index="'+f+'"]').classList.add("active")}),100)}};function x(){let t=document.querySelectorAll(e);f++,f+1>t.length&&(f=0),k(t[f],"next")}function C(){let t=document.querySelectorAll(e);f--,f<0&&(f=t.length-1),k(t[f],"prev")}function T(e){if(3==e.which)return!1;i=1;let t=void 0!==e.touches?e.touches:null;l=null!==t?t[0].pageX:e.clientX,c=null!==t?t[0].pageY:e.clientY;tt_offset(gallery),tt_offset(gallery_cont);n=l,r=c,s=0,a=0}function P(){if(i&&(i=0,Math.abs(n-l)))return u=n-l>0?-1:1,Math.abs(n-l)>50&&(u>0?x():C()),!1}function j(e){let t=void 0!==e.touches?e.touches:null;if(i&&(n=null!==t?t[0].pageX:e.clientX,r=null!==t?t[0].pageY:e.clientY,a>50&&a>s?a++:s>50&&s>a?s++:Math.abs(l-n)>Math.abs(c-r)?a++:s++,a>s))return e.preventDefault(),!1}q.addEventListener("click",(function(e){C()})),E.addEventListener("click",(function(e){x()})),b.addEventListener("load",(function(e){b.classList.add("ttfadein")}));let H="";document.querySelectorAll(e).forEach((function(e,o){if(e.hasAttribute("data-video"))H+='<div class="tt_preview_img tt_prev_video" data-index="'+o+'" data-video="'+e.getAttribute("data-video")+'"><div class="sqr"><img src="'+e.getAttribute(t)+'" alt=""/></div></div>';else{let n="";_===e.getAttribute(t)&&(n="active"),H+='<div class="tt_preview_img '+n+'" data-index="'+o+'"><div class="sqr"><img src="'+e.getAttribute(t)+'" alt=""/></div></div>'}}));let z=document.createRange().createContextualFragment(H);A.append(z),L.querySelectorAll(".tt_preview_img").forEach((function(t,o){t.addEventListener("click",(function(o){f=parseInt(t.getAttribute("data-index")),k(document.querySelectorAll(e)[f],"prev")}))})),w.addEventListener("mousedown",(e=>{T(e)})),w.addEventListener("touchstart",(e=>{T(e)})),w.addEventListener("mouseup",(()=>{P()})),w.addEventListener("touchend",(()=>{P()})),w.addEventListener("touchcancel",(()=>{P()})),w.addEventListener("mouseleave",(()=>{P()})),w.addEventListener("mousemove",(e=>{j(e)})),w.addEventListener("touchmove",(e=>{j(e)}))}document.querySelectorAll(e).forEach((function(e,t){e.hasAttribute("data-ttlightbox")||(e.addEventListener("click",(function(o){o.preventDefault(),d(e,t)})),e.addEventListener("tt_lightbox_open",(function(o){o.preventDefault(),d(e,t)})),e.setAttribute("data-ttlightbox","true"))}))}function ttmodal(e,t,o){function n(e){e.replaceWith("")}document.querySelectorAll(e).forEach((function(e){e.addEventListener("click",(function(){let r,i=e.getAttribute(t);r="youtube"===o?"https://www.youtube.com/embed/"+i:i;let l=document.createRange().createContextualFragment('<div class="tt_modal"><div class="tt_modal_flex"><iframe src="'+r+'" title="Player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe><span class="tt_modal_close"></span></div><span class="tt_modal_back"></span></div>');document.body.append(l);let c=document.querySelector(".tt_modal_close"),s=document.querySelector(".tt_modal_back"),a=document.querySelector(".tt_modal");c.addEventListener("click",(function(e){n(a)})),s.addEventListener("click",(function(e){n(a)}))}))}))}function ttselect(e){if(!document.querySelector(e))return!1;document.querySelectorAll(e).forEach((function(e){let t=e.parentNode,o="",n="",r="",i=e.getAttribute("id"),l=e.getAttribute("name"),c=e.getAttribute("class"),s=e.value,a="";e.hasAttribute("data-search")&&(a='<div class="tts_search"><input type="text" name="'+l+'_select_search"></div>'),e.querySelectorAll("option").forEach((function(e){let t=e.value,o=e.innerHTML;e.selected?(n+='<div class="optsel active" data-id="'+t+'">'+o+"</div>",r=e.textContent):n+='<div class="optsel" data-id="'+t+'">'+o+"</div>"})),o+='<div style="'+(e.getAttribute("style")?e.getAttribute("style"):"")+'" class="tts_select tts_down '+c+'" id="'+i+'"><div class="tts_text">'+r+'</div><div class="tts_button "></div>'+a+'<div class="tts_options">'+n+'</div><input type="hidden" name="'+l+'" value="'+s+'">';let u=document.createRange().createContextualFragment(o);e.replaceWith(u);let d=t.querySelector(".tts_select"),m=t.querySelector(".tts_text"),f=(t.querySelector(".tts_button"),t.querySelector(".tts_search")),h=t.querySelector(".tts_options"),p=h.querySelectorAll(".optsel"),_=d.classList;function y(){_.remove("uptts_buttonH","uptts_button"),_.add("tts_down"),h.style.display="none",a&&(f.style.display="none")}a&&f.querySelector("input").addEventListener("keyup",(function(e){let t=this.value.toLowerCase();f.nextElementSibling.querySelectorAll("[data-id]").forEach((function(e){e.innerHTML.toLowerCase().indexOf(t)>-1||""==t?e.style.display="block":e.style.display="none"}))})),m.addEventListener("click",(function(){_.contains("tts_down")?(_.remove("tts_down"),_.add("tts_downH"),document.body.querySelectorAll(".tts_focus").forEach((function(e){e.classList.remove("tts_focus")})),_.add("tts_focus"),y(),_.remove("tts_downH","tts_down"),_.add("uptts_button"),h.style.display="block",a&&(f.style.display="block",d.querySelector('input[type="text"]').focus())):_.contains("uptts_button")&&(_.remove("uptts_button"),_.add("uptts_buttonH"),document.body.querySelectorAll(".tts_focus").forEach((function(e){e.classList.remove("tts_focus")})),y())})),p.forEach((function(e){e.addEventListener("click",(function(){m.innerHTML=this.innerHTML;let e=h.nextElementSibling;e.value=this.getAttribute("data-id"),e.dispatchEvent(new Event("change",{bubbles:!0})),_.remove("uptts_button","tts_focus"),_.add("uptts_buttonH"),y()}))})),document.body.addEventListener("click",(function(e){e.target.closest(".tts_select")||y()}))}))}function ttlazy(e,t="src"){if(!document.querySelector("img["+e+"]")&&!document.querySelector("picture source["+e+"]"))return!1;function o(){document.querySelectorAll("["+e+"]").forEach((function(o){(function(e){let t=e.getBoundingClientRect(),o=Math.max(document.documentElement.clientHeight,window.innerHeight),n=t.bottom+t.left+t.right+t.top+t.width+t.x+t.y;return!(t.bottom<0||t.top-o>=0)&&n})(o)&&(o.setAttribute(t,o.getAttribute(e)),o.removeAttribute(e))}))}o(),document.body.addEventListener("ttlazy",(()=>{o()}),{passive:!0}),document.body.addEventListener("sku_ready",(()=>{o()}),{passive:!0}),window.addEventListener("scroll",(()=>{o()}),{passive:!0}),window.addEventListener("resize",(()=>{o()}),{passive:!0})}function ttdropdown(e){let t=jQuery;if(!t(e).length)return!1;t(e).each((function(){let o=t(e+"-toggle",this),n=t(e+"-menu",this),r=t(this);o.length&&n.length&&(t("a",n).on("click",(function(){"select"==n.attr("data-role")&&(o.html(t(this).html()),n.toggleClass("show"),r.toggleClass("show"))})),o.on("click",(function(){n.toggleClass("show"),r.toggleClass("show")})),t("body").on("click",(function(o){t(o.target).closest(e).length||(n.removeClass("show"),r.removeClass("show"))})))}))}!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/assets/js/",o(o.s=3)}([function(e,t){e.exports=jQuery},,,function(e,t,o){e.exports=o(4)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(5).a.init()},function(e,t,o){"use strict";(function(e){const o=function(){var t,o=e("body");return{$cart_info:"",init:function(){(t=this).$cart_info=e('[data-cart="quantity"]'),t.$pluralize_text=e('[data-cart="pluralize_items"]'),o.on("cart:update cart:change",(function(e){t.render(e.cart)})),o.on("cart:add",(function(e){t.render(e.cart)})),e(document).on("click","header .cart",(function(){e("html").addClass("cart-pull-page")}))},render:function(e){t.updateTotalItems(e)},updateTotalItems:function(e){e.quantity?t.$cart_info.show().parent().addClass("active"):t.$cart_info.hide().parent().removeClass("active"),t.$cart_info.text(e.quantity),t.$pluralize_text.text(e.pluralize_text)}}}();t.a=o}).call(t,o(0))}]),document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".md-animate");if(!e.length)return;let t=[];const o=()=>{const e=t.shift();if(!e)return;const n=e.querySelector("img");if(n){if(!n.complete)return void n.addEventListener("load",(()=>{e.classList.add("md-animate-in"),setTimeout((()=>requestAnimationFrame(o)),600)}));e.classList.add("md-animate-in")}else e.classList.add("md-animate-in");t.length&&setTimeout((()=>requestAnimationFrame(o)),600)},n=new IntersectionObserver((e=>{for(const o of e){if(!o.isIntersecting||o.target.classList.contains("md-animate-queue"))continue;o.target.classList.add("md-animate-queue");const e=o.target.querySelector("img");if(e&&!e.complete){t[t.length]=o.target;continue}const n=o.target.querySelector("video");if(n){n.play(),t[t.length]=o.target;continue}if(o.target.querySelector("iframe")){t[t.length]=o.target;continue}o.target.closest(".md-animate-group")?t[t.length]=o.target:o.target.classList.add("md-animate-in")}t.length&&requestAnimationFrame(o)}),{threshold:.6});for(let t=0;t<e.length;t++)n.observe(e[t])})),function(e,t,o){var n="JSSocials",r=function(e,o){return t.isFunction(e)?e.apply(o,t.makeArray(arguments).slice(2)):e},i=/(\.(jpeg|png|gif|bmp|svg)$|^data:image\/(jpeg|png|gif|bmp|svg\+xml);base64)/i,l=/(&?[a-zA-Z0-9]+=)?\{([a-zA-Z0-9]+)\}/g,c={G:1e9,M:1e6,K:1e3},s={};function a(e,o){var r=t(e);r.data(n,this),this._$element=r,this.shares=[],this._init(o),this._render()}a.prototype={url:"",text:"",shareIn:"blank",showLabel:function(e){return!1===this.showCount?e>this.smallScreenWidth:e>=this.largeScreenWidth},showCount:function(e){return!(e<=this.smallScreenWidth)||"inside"},smallScreenWidth:640,largeScreenWidth:1024,resizeTimeout:200,elementClass:"jssocials",sharesClass:"jssocials-shares",shareClass:"jssocials-share",shareButtonClass:"jssocials-share-button",shareLinkClass:"jssocials-share-link",shareLogoClass:"jssocials-share-logo",shareLabelClass:"jssocials-share-label",shareLinkCountClass:"jssocials-share-link-count",shareCountBoxClass:"jssocials-share-count-box",shareCountClass:"jssocials-share-count",shareZeroCountClass:"jssocials-share-no-count",_init:function(e){this._initDefaults(),t.extend(this,e),this._initShares(),this._attachWindowResizeCallback()},_initDefaults:function(){this.url=e.location.href,this.text=t.trim(t("meta[name=description]").attr("content")||t("title").text())},_initShares:function(){this.shares=t.map(this.shares,t.proxy((function(e){"string"==typeof e&&(e={share:e});var o=e.share&&s[e.share];if(!o&&!e.renderer)throw Error("Share '"+e.share+"' is not found");return t.extend({url:this.url,text:this.text},o,e)}),this))},_attachWindowResizeCallback:function(){t(e).on("resize",t.proxy(this._windowResizeHandler,this))},_detachWindowResizeCallback:function(){t(e).off("resize",this._windowResizeHandler)},_windowResizeHandler:function(){(t.isFunction(this.showLabel)||t.isFunction(this.showCount))&&(e.clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(t.proxy(this.refresh,this),this.resizeTimeout))},_render:function(){this._clear(),this._defineOptionsByScreen(),this._$element.addClass(this.elementClass),this._$shares=t("<div>").addClass(this.sharesClass).appendTo(this._$element),this._renderShares()},_defineOptionsByScreen:function(){this._screenWidth=t(e).width(),this._showLabel=r(this.showLabel,this,this._screenWidth),this._showCount=r(this.showCount,this,this._screenWidth)},_renderShares:function(){t.each(this.shares,t.proxy((function(e,t){this._renderShare(t)}),this))},_renderShare:function(e){(t.isFunction(e.renderer)?t(e.renderer()):this._createShare(e)).addClass(this.shareClass).addClass(e.share?"jssocials-share-"+e.share:"").addClass(e.css).appendTo(this._$shares)},_createShare:function(e){var o=t("<div>"),n=this._createShareLink(e).appendTo(o);if(this._showCount){var r="inside"===this._showCount,i=r?n:t("<div>").addClass(this.shareCountBoxClass).appendTo(o);i.addClass(r?this.shareLinkCountClass:this.shareCountBoxClass),this._renderShareCount(e,i)}return o},_createShareLink:function(e){var o=this._getShareStrategy(e).call(e,{shareUrl:this._getShareUrl(e)});return o.addClass(this.shareLinkClass).append(this._createShareLogo(e)),this._showLabel&&o.append(this._createShareLabel(e)),t.each(this.on||{},(function(n,r){t.isFunction(r)&&o.on(n,t.proxy(r,e))})),o},_getShareStrategy:function(e){var t=u[e.shareIn||this.shareIn];if(!t)throw Error("Share strategy '"+this.shareIn+"' not found");return t},_getShareUrl:function(e){var t=r(e.shareUrl,e);return this._formatShareUrl(t,e)},_createShareLogo:function(e){var o=e.logo,n=i.test(o)?t("<img>").attr("src",e.logo):t("<i>").addClass(o);return n.addClass(this.shareLogoClass),n},_createShareLabel:function(e){return t("<span>").addClass(this.shareLabelClass).text(e.label)},_renderShareCount:function(e,o){var n=t("<span>").addClass(this.shareCountClass);o.addClass(this.shareZeroCountClass).append(n),this._loadCount(e).done(t.proxy((function(e){e&&(o.removeClass(this.shareZeroCountClass),n.text(e))}),this))},_loadCount:function(e){var o=t.Deferred();if(!this._getCountUrl(e))return o.resolve(0).promise();t.proxy((function(t){o.resolve(this._getCountValue(t,e))}),this);return o.resolve(0),o.promise()},_getCountUrl:function(e){var t=r(e.countUrl,e);return this._formatShareUrl(t,e)},_getCountValue:function(e,o){var n=(t.isFunction(o.getCount)?o.getCount(e):e)||0;return"string"==typeof n?n:this._formatNumber(n)},_formatNumber:function(e){return t.each(c,(function(t,o){if(e>=o)return e=parseFloat((e/o).toFixed(2))+t,!1})),e},_formatShareUrl:function(t,o){return t.replace(l,(function(t,n,r){var i=o[r]||"";return i?(n||"")+e.encodeURIComponent(i):""}))},_clear:function(){e.clearTimeout(this._resizeTimer),this._$element.empty()},_passOptionToShares:function(e,o){var n=this.shares;t.each(["url","text"],(function(r,i){i===e&&t.each(n,(function(t,n){n[e]=o}))}))},_normalizeShare:function(e){return t.isNumeric(e)?this.shares[e]:"string"==typeof e?t.grep(this.shares,(function(t){return t.share===e}))[0]:e},refresh:function(){this._render()},destroy:function(){this._clear(),this._detachWindowResizeCallback(),this._$element.removeClass(this.elementClass).removeData(n)},option:function(e,t){if(1===arguments.length)return this[e];this[e]=t,this._passOptionToShares(e,t),this.refresh()},shareOption:function(e,t,o){if(e=this._normalizeShare(e),2===arguments.length)return e[t];e[t]=o,this.refresh()}},t.fn.jsSocials=function(e){var o=t.makeArray(arguments).slice(1),r=this;return this.each((function(){var i,l=t(this),c=l.data(n);if(c)if("string"==typeof e){if(undefined!==(i=c[e].apply(c,o))&&i!==c)return r=i,!1}else c._detachWindowResizeCallback(),c._init(e),c._render();else new a(l,e)})),r};var u={popup:function(o){return t("<a>").attr("href","#").on("click",(function(){return e.open(o.shareUrl,null,"width=600, height=400, location=0, menubar=0, resizeable=0, scrollbars=0, status=0, titlebar=0, toolbar=0"),!1}))},blank:function(e){return t("<a>").attr({target:"_blank",href:e.shareUrl})},self:function(e){return t("<a>").attr({target:"_self",href:e.shareUrl})}};e.jsSocials={Socials:a,shares:s,shareStrategies:u,setDefaults:function(e){var o;t.isPlainObject(e)?o=a.prototype:(o=s[e],e=arguments[1]||{}),t.extend(o,e)}}}(window,jQuery),function(e,t,o,n){media=t(".single_split").attr("data-mediaimg"),t.extend(o.shares,{email:{label:"E-mail",logo:"fa fa-at",shareUrl:"mailto:{to}?subject={text}&body={url}",countUrl:"",shareIn:"self"},twitter:{label:"Tweet",logo:"fa fa-twitter",shareUrl:"https://twitter.com/share?url={url}&text={text}&via={via}&hashtags={hashtags}",countUrl:""},facebook:{label:"Like",logo:"fa fa-facebook",shareUrl:"https://facebook.com/sharer/sharer.php?u={url}",countUrl:"https://graph.facebook.com/?id={url}",getCount:function(e){return e.share&&e.share.share_count||0}},vkontakte:{label:"Like",logo:"fa fa-vk",shareUrl:"https://vk.com/share.php?url={url}&title={title}&description={text}",countUrl:"https://vk.com/share.php?act=count&index=1&url={url}",getCount:function(e){return parseInt(e.slice(15,-2).split(", ")[1])}},linkedin:{label:"Share",logo:"fa fa-linkedin",shareUrl:"https://www.linkedin.com/shareArticle?mini=true&url={url}",countUrl:"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?",getCount:function(e){return e.count}},pinterest:{label:"Pin it",logo:"fa fa-pinterest",shareUrl:"https://pinterest.com/pin/create/bookmarklet/?media="+media+"&url={url}&description={text}",countUrl:"https://api.pinterest.com/v1/urls/count.json?&url={url}&callback=?",getCount:function(e){return e.count}},stumbleupon:{label:"Share",logo:"fa fa-stumbleupon",shareUrl:"http://www.stumbleupon.com/submit?url={url}&title={title}",countUrl:"https://cors-anywhere.herokuapp.com/https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}",getCount:function(e){return e.result.views}},telegram:{label:"Telegram",logo:"fa fa-paper-plane",shareUrl:"tg://msg?text={url} {text}",countUrl:"",shareIn:"self"},whatsapp:{label:"WhatsApp",logo:"fa fa-whatsapp",shareUrl:"whatsapp://send?text={url} {text}",countUrl:"",shareIn:"self"},line:{label:"LINE",logo:"fa fa-comment",shareUrl:"http://line.me/R/msg/text/?{text} {url}",countUrl:""},viber:{label:"Viber",logo:"fa fa-volume-control-phone",shareUrl:"viber://forward?text={url} {text}",countUrl:"",shareIn:"self"},pocket:{label:"Pocket",logo:"fa fa-get-pocket",shareUrl:"https://getpocket.com/save?url={url}&title={title}",countUrl:""},messenger:{label:"Share",logo:"fa fa-commenting",shareUrl:"fb-messenger://share?link={url}",countUrl:"",shareIn:"self"}}),t(".share-btn").jsSocials({shareIn:"popup",showCount:!0,showLabel:!1,shares:[{share:"facebook",logo:"icon-facebook"},{share:"twitter",logo:"icon-the-x"},{share:"pinterest",logo:"icon-pinterest"}]})}(window,jQuery,window.jsSocials),window.getCookie=function(e){let t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));if(t)return t[2]},document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector("#form_singleProduct");if(e){function t(t=!0){let o=".js-item-sku",n='[name="sku-meta-set[]"]',r=!1,i=[];return e.querySelectorAll(n).forEach((function(e){if(0===e.value.length&&!1!==t){e.closest(o).classList.add("is-empty");let t=e.closest(".js-item-sku").querySelector(".sku-warning").innerText;ttmessage(t,1),r=!0}else e.closest(o).classList.remove("is-empty"),i.push(e.value)})),!r&&{foo:i}}function o(){let e,o=t(!1);if(!o)return!1;let n=o.foo;if(e=n.join(";"),void 0===skuAttr[e])return;let i={foo:n,item:skuAttr[e],skuAttrName:e};!function(e){let t=e.item,o={price:t.price,_price:t._price,_price_nc:t._price_nc,salePrice:t.salePrice,_salePrice:t._salePrice,_salePrice_nc:t._salePrice_nc,stock:t.quantity,savePercent:t.discount,_save:t._price-t._salePrice,_save_nc:t._price_nc-t._salePrice_nc,save:t.save};o._save<0&&(o._save=0),r.setStage(o),r.setPrice()}(i);let l=new CustomEvent("changeSku",{detail:i});document.body.dispatchEvent(l)}const r=function(){document.body;let t,o=null,n=null,r={price:'[data-singleProduct="price"]',salePrice:'[data-singleProduct="savePrice"]',_salePrice:'[data-singleProduct="_savePrice"]',stock:'[data-singleProduct="stock"]',save:'[data-singleProduct="save"]',savePercent:'[data-singleProduct="savePercent"]',totalPrice:'[data-singleProduct="totalPrice"]'},l={price:'[data-singleProductBox="price"]',salePrice:'[data-singleProductBox="salePrice"]',savePercent:'[data-singleProductBox="savePercent"]',stock:'[data-singleProductBox="stock"]',save:'[data-singleProductBox="savePercent"]',totalPrice:'[data-singleProductBox="totalPrice"]'},c={isTotalPrice:!0,price:e.querySelector('[name="price"]').value,save:e.querySelector('[name="save"]').value,salePrice:e.querySelector('[name="salePrice"]').value,savePercent:e.querySelector('[name="savePercent"]').value,stock:e.querySelector('[name="stock"]').value,_price:e.querySelector('[name="_price"]').value,_price_nc:e.querySelector('[name="_price_nc"]').value,_salePrice:e.querySelector('[name="_salePrice"]').value,_quantity:e.querySelector('[data-singleProductInput="quantity"]').value,_salePrice_nc:e.querySelector('[name="_salePrice_nc"]').value,_save:e.querySelector('[name="_save"]').value,_save_nc:e.querySelector('[name="_save_nc"]').value,currency:e.querySelector('[name="currency"]').value,currency_shipping:e.querySelector('[name="currency_shipping"]').value};function s(){return c.currency=e.querySelector('[name="currency"]').value,c.currency}function a(){return c.currency_shipping=e.querySelector('[name="currency_shipping"]').value,c.currency_shipping}function u(e,t){document.querySelectorAll(e).forEach((function(e){e.innerHTML=t}))}function d(){let e=document.querySelector('[data-singleproduct="single-shipping"] option[selected]');e&&(document.querySelector('[data-singleproduct="shipping-info"]').innerHTML=e.getAttribute("data-info"))}return{init:function(){t=this,document.body.querySelectorAll('[data-singleProductInput="quantity"]').forEach((function(e){e.addEventListener("keyup mouseup click",(()=>{clearTimeout(o);o=setTimeout((function(){let o=parseInt(e.value);o=o>0?o:1,document.querySelectorAll('[data-singleProductInput="quantity"]').forEach((function(e){e.value=o})),t.setStage("_quantity",o),t.setPrice()}),400)}))})),document.body.querySelectorAll('[data-singleproduct="single-shipping"]').forEach((function(e){e.addEventListener("change",(()=>{d()}))})),d(),t.setPrice(),i.init()},setStage:function(e,t,o){if("object"==typeof e){for(let t in e)c[t]=e[t];o=t}else c[e]=t;!0===o&&(clearTimeout(n),n=setTimeout((function(){u(r.salePrice,c.salePrice),u(r._salePrice,c._salePrice),u(r.totalPrice,c.totalPrice),u(r.price,c.price),u(r.save,c.save),u(r.savePercent,c.savePercent+"%"),u(r.stock,c.stock),document.querySelectorAll(r.salePrice).forEach((function(e){e.style.display="block"})),parseFloat(c._price)>0&&c._price!==c._salePrice?document.querySelectorAll(l.price).forEach((function(e){e.style.display="block"})):document.querySelectorAll(l.price).forEach((function(e){e.style.display="none"})),parseFloat(c._price)-parseFloat(c._salePrice)>0?document.querySelectorAll(l.savePercent).forEach((function(e){e.style.display="block"})):document.querySelectorAll(l.savePercent).forEach((function(e){e.style.display="none"})),document.querySelectorAll(l.stock).forEach((function(e){e.classList.remove("outofstock"),e.innerHTML="In Stock",e.style.display="block"})),c.stock>0?(document.querySelectorAll(l.totalPrice).forEach((function(e){e.style.display="block"})),document.querySelectorAll(".add_btn").forEach((function(e){e.removeAttribute("style")}))):(document.querySelectorAll(l.totalPrice).forEach((function(e){e.style.display="none"})),document.querySelectorAll(l.stock).forEach((function(e){e.classList.add("outofstock"),e.innerHTML="Out of Stock"})),document.querySelectorAll(".add_btn").forEach((function(e){e.style.display="none"}))),function(){let e=document.querySelector('input[data-singleproduct="single-shipping"]'),t=document.querySelector('select[data-singleproduct="single-shipping"]');if(t)t.querySelectorAll("option").forEach((function(e){let t=e.getAttribute("data-cost_nc"),o=window.formatPrice.convertPriceOut(t,a(),!1),n=e.getAttribute("data-template");n=n.replace(/{{\s*price\s*}}/,o),e.innerHTML=n}));else if(e){let t=e.getAttribute("data-cost_nc");if(t>0){let o=document.querySelector('[data-singleproduct="single-shipping_value"]'),n=window.formatPrice.convertPriceOut(t,a(),!1),r=e.getAttribute("data-template");r=r.replace(/{{\s*price\s*}}/,n),o.innerHTML=r}}}()}),100))},setPrice:function(){c._quantity=c._quantity||0;let e=1;c.isTotalPrice&&(e=c._quantity);let o=window.formatPrice.convertPrice(c._price_nc,s()),n=window.formatPrice.outPrice(o*e),r=window.formatPrice.convertPrice(c._salePrice_nc,s()),i=window.formatPrice.outPrice(r*e),l=o-r,a=window.formatPrice.outPrice(l*e,s()),u=o>0&&r>0?Math.round((o-r)/o*100):"";o>0&&0==r&&(u=100);let d=window.formatPrice.outPrice(r*c._quantity);t.setStage("_price",o),t.setStage("_salePrice",r),t.setStage("price",n),t.setStage("salePrice",i),t.setStage("save",a),t.setStage("totalPrice",d),t.setStage("savePercent",u,!0)},isTotalPrice(e){t.setStage("isTotalPrice",!!e)}}}(),i=function(){let e,n,r,i;function l(e){let t,n=e.split(";");if(e){for(t in n){c(document.querySelector('input[value="'+n[t]+'"]').closest(".js-sku-set"))}s(document.body.classList.contains("js-show-pre-selected-variation")),o()}}function c(e){let t=e.getAttribute("data-set"),o=e.getAttribute("data-meta"),n=document.querySelector("#check-"+t+"-"+o).value;document.querySelector("#js-set-"+t).value=n}function s(e=!0){!function(e=!0){let o=t(!1);if(!o)return!1;let r=o.foo;document.querySelectorAll(".js-sku-set").forEach((function(e){e.classList.add("disabled"),e.classList.remove("active")}));for(let t in n){let o=t.split(";"),n=0,i=r.length;for(let e in r){r[e]==o[e]&&n++;let t=document.querySelector('input[value="'+r[e]+'"]').closest(".js-sku-set");t&&t.classList.add("active")}n>=i-1&&o.forEach((function(e){let t=document.querySelector('input[value="'+e+'"]').closest(".js-sku-set");t&&t.classList.remove("disabled")})),e&&document.querySelectorAll(".js-sku-set.active").forEach((function(e){a(e)}))}}(e),function(){let e=document.querySelectorAll('[name="sku-meta-set[]"][value=""]').length,o=document.querySelectorAll('[name="sku-meta-set[]"]').length;if(e&&o>1){document.querySelectorAll(".js-item-sku").forEach((function(e,o){e.querySelectorAll(".js-sku-set").forEach((function(e){e.classList.remove("disabled")})),e.querySelector('[name="sku-meta-set[]"]').value||e.querySelectorAll('[name="sku-meta"]').forEach((function(e){let r=e.value,i=t(!1).foo;if(i.join("")){i[o]=r;let t=i.join(";");void 0===n[t]&&e.closest(".js-sku-set").classList.add("disabled")}}))}));let e=document.querySelectorAll(".js-item-sku").length,o=document.querySelectorAll('[name="sku-meta-set[]"][value=""]').length;1!==o&&o<=e-1&&document.querySelectorAll('.js-item-sku [name="sku-meta-set[]"]').forEach((function(e){e.value||e.closest(".js-item-sku").querySelectorAll('[name="sku-meta"]').forEach((function(e){e.classList.remove("disabled"),e.classList.add("test")}))}))}document.querySelectorAll(".js-sku-set.disabled.active").forEach((function(e){e.classList.remove("active"),e.closest(".js-item-sku").querySelectorAll('[name="sku-meta-set[]"]').forEach((function(e){e.value=""}))}))}(),function(){let e=t(!1);e||document.querySelectorAll(".js-sku-set").forEach((function(e){e.classList.remove("disabled","active")}));let o=e.foo;for(let e in o)if(!o[e])return;void 0===n[o.join(";")]&&document.querySelectorAll(".js-sku-set").forEach((function(e){e.classList.remove("disabled","active")}))}()}function a(e){let t=e.parentElement.parentElement.previousSibling,o=t.querySelector("span");o&&o.replaceWith("");let n=document.createElement("span");n.innerHTML=e.getAttribute("data-title"),n.style.margin="0 0 0 5px",t.append(n)}return{init:function(){if(e)return;e=this,n=window.skuAttr,r=window.sku,i=document.querySelector('[name="currency"]').value,document.querySelectorAll(".js-sku-set").forEach((function(e){e.addEventListener("click",(()=>{!function(e){e.classList.contains("disabled")&&(document.querySelector('.js-item-sku [name="sku-meta-set[]"]').value="");let t=e.getAttribute("data-set"),o=e.getAttribute("data-meta"),n=document.querySelector("#check-"+t+"-"+o).value;document.querySelector("#js-set-"+t).value=n}(e),s(),o()}))}));let t=document.querySelector('form [name="variation_default"]');void 0!==n&&t.length&&"lowest_price"!==t.value?l(t.value):function(){if(void 0===n||null==n)return null;let e,t="";for(let o in n)(!e||e>parseFloat(n[o]._salePrice)&&n[o].quantity>0)&&(e=n[o]._salePrice,t=o);document.querySelector(".force_url_sku")||l(t)}(),document.body.classList.contains("js-show-pre-selected-variation")||(document.querySelector('[name="sku-meta-set[]"]').value="",document.querySelectorAll(".js-sku-set").forEach((function(e){e.classList.remove("active","disabled")}))),document.querySelectorAll(".js-empty-sku-view").forEach((function(e){e.classList.remove("js-empty-sku-view")})),function(){if(void 0===n)return null;document.querySelectorAll(".js-item-sku").forEach((function(e){if(1===e.querySelectorAll(".js-item-set").length){let t=new Event("doclick");e.querySelector(".js-item-set").dispatchEvent(t)}}))}(),document.querySelectorAll(".js-product-sku").forEach((function(e){e.style.display="block"}));document.querySelectorAll(".sku-row .value").forEach((function(e){if(e.offsetHeight>96){let t=e.closest(".sku-row");t.classList.add("line-sku"),t.querySelectorAll(".js-all-sku").forEach((function(e){e.style.display="block"}))}})),document.querySelectorAll(".js-all-sku").forEach((function(e){e.addEventListener("click",(()=>{e.closest(".sku-row").classList.toggle("line-sku")}))})),document.querySelector(".js-sku-set")&&s(document.body.classList.contains("js-show-pre-selected-variation"));const c=new Event("sku_ready");document.body.dispatchEvent(c),window.scrollY=window.scrollY+1,window.scrollY=window.scrollY-1}}}();document.body.addEventListener("infoCurrency:done",(()=>{window.formatPrice.hasOwnProperty("canCleanJs")&&r.init()})),jQuery&&jQuery("body").on("infoCurrency:done",(function(){window.formatPrice.hasOwnProperty("canCleanJs")||r.init()})),window.do_add_to_cart=function(){if(!document.querySelector(".outofstock")){let e=1,o=0;if(document.querySelectorAll(".js-item-sku").forEach((function(t){o=1,t.querySelector(".active")||(e=0)})),e||!o){let e={item:'[data-singleProductInput="quantity"]',post_id:'form#form_singleProduct [name="post_id"]',shipping:'[name="shipping"]'},o=t();if(!1===o)return!1;window.adsCart.add({post_id:document.querySelector(e.post_id).value,quantity:document.querySelector(e.item).value,shipping:document.querySelector(e.shipping).value,variation:o.foo})}else document.querySelectorAll(".js-item-sku").forEach((function(e){e.querySelector(".active")||ttmessage(e.querySelector(".sku-warning").innerText,1)})),document.body.classList.add("no_cart_message"),setTimeout((function(){document.body.classList.remove("no_cart_message")}),5e3)}},document.querySelectorAll(".js-addToCart").forEach((function(e){e.addEventListener("mouseup",(function(e){e.preventDefault(),do_add_to_cart()}))}));let l={el:".js-select_quantity",add:".js-quantity_add",remove:".js-quantity_remove",input:"input"};document.body;function n(e,t){let n=t.closest(l.el).querySelector(l.input),i=n.value;i=(i=parseInt(i)+e)>0?i:1,n.value=i;const c=new Event("mouseup");n.dispatchEvent(c),r.setStage("_quantity",i),r.setPrice(),o()}document.querySelectorAll(l.add).forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),n(1,e)}))})),document.querySelectorAll(l.remove).forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault(),n(-1,e)}))}))}})),document.addEventListener("DOMContentLoaded",(function(){ttmodal("a.youtube","rel","youtube"),ttmodal("div.youtube","rel","youtube"),ttmodal(".modal-video","data-modalsrc")})),document.addEventListener("DOMContentLoaded",(function(){ttselect("select[data-ttselect]")})),jQuery((e=>{e(document).ready((()=>ttdropdown(".ttdropdown")))})),document.addEventListener("DOMContentLoaded",(function(){function e(e,t,o){let n=new XMLHttpRequest;const r=new URLSearchParams;r.append("action",e);for(let e in t)r.append(e,t[e]);n.open("POST","/wp-admin/admin-ajax.php?action="+e,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&200==n.status&&o(n.response)},n.send(r)}function t(e,t){let o=document.createElement("script"),n=document.getElementsByTagName("script")[0];o.async=1,o.onload=o.onreadystatechange=function(e,n){(n||!o.readyState||/loaded|complete/.test(o.readyState))&&(o.onload=o.onreadystatechange=null,o=void 0,!n&&t&&setTimeout(t,0))},o.src=e,n.parentNode.insertBefore(o,n)}let o=0,n=document.querySelector(".single_showroom img.makezoom"),r=1;function l(e){let t=e.getBoundingClientRect(),o=Math.max(document.documentElement.clientHeight,window.innerHeight),n=t.bottom+t.left+t.right+t.top+t.width+t.x+t.y;return!(t.bottom<0||t.top-o>=0)&&n}if(document.body.classList.contains("is_frame_live")){document.querySelector("html").style.margin="0!important",document.body.classList.remove("admin-bar"),document.querySelectorAll("#wpadminbar").forEach((function(e){e.replaceWith("")}));let ye=document.createRange().createContextualFragment("<style>html{margin:0!important;}</style>");document.body.append(ye)}function c(e){e&&("none"===e.computedStyleMap().get("display").value?e.style.display="block":e.style.display="none")}if(document.querySelector(".home_init_video")||document.querySelector(".home_init_video_desc")){function s(e){let t=e.getBoundingClientRect(),o=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||t.top-o>=0)&&t.top+t.height+t.bottom+t.x+t.y+t.width>0}function a(){document.querySelectorAll(".home_init_video").forEach((function(e){if(s(e)){let t=document.createRange().createContextualFragment('<video class="home_autoplay" autoplay="autoplay" width="100%" height="100%" loop="loop" muted playsinline><source src="'+e.getAttribute("data-source")+'" type="video/mp4"></video>');e.replaceWith(t)}})),document.body.clientWidth>767?document.querySelectorAll(".home_init_video_desc").forEach((function(e){if(s(e)){let t=document.createRange().createContextualFragment('<video class="home_autoplay" data-descvideo autoplay="autoplay" width="100%" height="100%" loop="loop" muted playsinline><source src="'+e.getAttribute("data-source")+'" type="video/mp4"></video>');e.replaceWith(t)}})):document.querySelectorAll(".home_init_video_mob").forEach((function(e){if(s(e)){let t=document.createRange().createContextualFragment('<video class="home_autoplay" data-mobvideo autoplay="autoplay" width="100%" height="100%" loop="loop" muted playsinline><source src="'+e.getAttribute("data-source")+'" type="video/mp4"></video>');e.replaceWith(t)}}))}document.addEventListener("scroll",a,{passive:!0}),document.addEventListener("resize",a,{passive:!0}),a()}ttgallery(".welcome .list",{slide_to_view:1,slide_to_scroll:1,loop:0,speed:300,arrows:0,force:1,lazy_attr:"data-lazy"}),ttgallery(".stories",{slide_to_view:4,loop:1,speed:300,arrows:0,dots:1,margin:20,responsive:{1280:{slide_to_view:3,slide_to_scroll:1},768:{slide_to_view:2,slide_to_scroll:1},480:{slide_to_view:1,slide_to_scroll:1}}}),ttgallery(".blog_stories",{slide_to_view:5,loop:1,speed:300,arrows:1,dots:0,margin:30,responsive:{1280:{slide_to_view:3,slide_to_scroll:1},768:{slide_to_view:2,slide_to_scroll:1},480:{slide_to_view:1,slide_to_scroll:1}}}),ttgallery(".cr_gallery",{slide_to_view:1,loop:1,speed:300,arrows:1,dots:1,margin:20,responsive:{767:{arrows:0}}}),ttgallery(".secondary_banner_gallery",{slide_to_view:2,loop:0,speed:300,arrows:0,dots:1,margin:20,responsive:{768:{slide_to_view:1,slide_to_scroll:1}}}),ttgallery(".home_blog",{slide_to_view:4,loop:0,speed:300,arrows:0,dots:1,margin:20,responsive:{1e3:{slide_to_view:2,slide_to_scroll:1},768:{slide_to_view:2,slide_to_scroll:1,loop:1}}}),ttgallery(".why_text_items",{slide_to_view:3,loop:0,speed:300,arrows:0,dots:0,margin:20,responsive:{768:{slide_to_view:1,slide_to_scroll:1,dots:1}}}),ttgallery(".why_text_ico_items",{slide_to_view:4,loop:0,speed:300,arrows:0,dots:0,margin:20,responsive:{768:{slide_to_view:1,slide_to_scroll:1,dots:1}}});let u=0;function d(){document.body.clientWidth>767&&!u&&(document.querySelectorAll("[data-src-desctop]").forEach((function(e){e.setAttribute("src",e.getAttribute("data-src-desctop"))})),u=1)}d(),window.addEventListener("resize",(()=>{d()}),{passive:!0}),document.querySelectorAll(".in-conditions-contact").forEach((function(e){e.addEventListener("change",(()=>{e.checked?e.closest("form").querySelector(".conditions-help").style.display="none":e.closest("form").querySelector(".conditions-help").style.display="block"}))})),document.querySelectorAll("form.contact_us_form").forEach((function(e){e.addEventListener("submit",(()=>{if((t=e).querySelector(".conditions-contact")&&!t.querySelector(".in-conditions-contact").checked&&(t.querySelector(".conditions-help").style.display="block",1))return!1;var t}))}));let m=document.querySelector(".single_slide_cont"),f=document.querySelector(".header_cont"),h=document.querySelector(".img_scroller"),p=document.querySelector(".single_splitR_sticky"),_=1,y=document.querySelector(".single_split");y&&y.classList.add("main_split_left");let v=document.querySelector(".upbutton"),g=0;function S(){document.body.classList.contains("header1")&&document.querySelectorAll(".mainmenu").forEach((function(e){e.style.marginTop=window.pageYOffset>g?-40:0})),window.innerHeight<window.pageYOffset?v.style.display="block":v.style.display="none",m&&(m.offsetHeight+f.offsetHeight+20-document.querySelector(".main_block_end").getBoundingClientRect().top>0?m.classList.add("single_slide_cont_abs"):(m.classList.remove("single_slide_cont_abs"),m.removeAttribute("style"))),h&&(_=h.offsetHeight>p.offsetHeight?1:2,1!==_&&(1===_&&(y.classList.add("main_split_left"),y.classList.remove("main_split_right"),h.classList.remove("img_scroller_abs"),h.classList.remove("img_scroller_fixed")),2===_&&(y.classList.remove("main_split_left"),y.classList.add("main_split_right"),p.classList.remove("single_splitR_abs"),p.classList.remove("single_splitR_fixed"))),1===_&&(window.innerHeight-f.offsetHeight-20-document.querySelector(".main_block_end").getBoundingClientRect().top>0?(p.classList.add("single_splitR_abs"),p.classList.remove("single_splitR_fixed")):(window.pageYOffset+window.innerHeight-120>p.offsetHeight+f.offsetHeight+20?p.classList.add("single_splitR_fixed"):p.classList.remove("single_splitR_fixed"),p.classList.remove("single_splitR_abs"),p.removeAttribute("style"))),2===_&&(window.innerHeight-f.offsetHeight-20-document.querySelector(".main_block_end").getBoundingClientRect().top>0?(h.classList.add("img_scroller_abs"),h.classList.remove("img_scroller_fixed")):(window.pageYOffset+window.innerHeight-120>h.offsetHeight+f.offsetHeight+20?h.classList.add("img_scroller_fixed"):h.classList.remove("img_scroller_fixed"),h.classList.remove("img_scroller_abs"),h.removeAttribute("style")))),g=window.pageYOffset}let b="",q=document.querySelector(".mainmenu >ul"),E=document.querySelector("#sidebar-wrapper"),w=document.querySelector(".sidebar-close"),L=document.querySelector(".get_all_cats_cont");if(document.querySelectorAll(".adap_menu_footer .currency_chooser .ttdropdown-toggle").forEach((function(e){e.addEventListener("mouseup",(function(){document.querySelector(".adap_menu_footer").classList.toggle("active"),document.querySelector(".mainmenu_adap_cont").classList.toggle("over_hidden")}))})),document.querySelectorAll(".mainmenu_adap > ul > li a").forEach((function(e){e.addEventListener("click",(function(t){return e.parentElement.classList.contains("adap_active")||"SPAN"!==e.nextElementSibling.tagName||(t.preventDefault(),document.querySelectorAll(".last_active").forEach((function(e){e.classList.remove("last_active")})),e.parentElement.classList.add("adap_active"),e.parentElement.classList.add("last_active"),document.querySelector(".back_menu_level").style.display="block",document.querySelector(".mainmenu_adap_cont").classList.add("adap_menu_hidden")),!1}))})),document.querySelectorAll(".upbutton").forEach((function(e){e.addEventListener("click",(()=>{window.scrollTo({top:0,behavior:"smooth"})})),window.addEventListener("scroll",(()=>{S()}),{passive:!0})})),document.querySelectorAll("#tracking-form").forEach((function(e){e.addEventListener("submit",(function(e){return e.preventDefault(),!1}))})),document.querySelector(".why_us_slider")){let ve=0;function A(){if(!ve){let e=document.querySelector(".why_us_slider");l(e)&&(ve=1,ttgallery(".why_us_slider",{slide_to_view:1,slide_to_scroll:1,loop:1,speed:500,lazy:1,autoplay:"1"===e.getAttribute("data-rotation"),delay:e.getAttribute("data-time"),force:1,dots:1,arrows:1}))}}window.addEventListener("resize",(()=>{A()})),window.addEventListener("scroll",A,{passive:!0})}if(document.querySelector(".real_people_cont")){let ge=0;function k(){let e=document.querySelector(".rp_ones");l(e)&&(document.body.clientWidth<992?ge||(ge=1,ttgallery(".rp_ones",{slide_to_view:2,slide_to_scroll:1,margin:20,loop:1,speed:500,lazy:1,force:1,dots:1,arrows:1,responsive:{768:{slide_to_view:2,slide_to_scroll:1},480:{slide_to_view:1,slide_to_scroll:1,arrows:0}}})):ge&&(e.tt_destroy(),ge=0))}window.addEventListener("resize",(()=>{k()})),window.addEventListener("scroll",k,{passive:!0})}function x(e){ttlazy("data-srchead"),e.classList.contains("active")?(document.body.classList.remove("fixed_burger_active"),document.querySelectorAll(".shade").forEach((function(e){e.classList.remove("active")})),oe()):(document.body.classList.add("fixed_burger_active"),document.querySelectorAll(".shade").forEach((function(e){e.classList.add("active")}))),document.body.dispatchEvent(new Event("ttlazy"))}document.querySelectorAll(".content table").forEach((function(e){e.innerHTML='<div style="max-width:100%;overflow:auto;">'+e.innerHTML+"</div>"})),document.querySelectorAll(".headermenu>ul>li").forEach((function(e){let t=0;e.querySelectorAll("li>a").forEach((function(e){t++})),t<10&&e.classList.add("third_product"),t<20&&e.classList.add("second_product"),e.classList.add("first_product")})),document.querySelectorAll(".headermenu>ul>li.too_many>ul").forEach((function(e){let t=document.createRange().createContextualFragment('<ul class="too_many_mason">'+e.innerHTML+"</ul>");e.replaceWith(t)})),document.querySelectorAll(".headermenu>ul>li.too_many .too_many_mason>li").forEach((function(e){e.classList.add("too_many_one")}));let C=0;function T(e){C||(C=1,ttlazy("data-srchead"),document.body.clientWidth>767&&(e.classList.remove("fade-in"),e.classList.remove("active"),document.querySelector(".header").classList.remove("get_shade_menu"),document.querySelectorAll(".shade").forEach((function(e){e.classList.remove("active")}))),setTimeout((function(){C=0}),100))}document.querySelector(".benscont_swiper")&&ttgallery(".benscont_swiper",{slide_to_view:3,slide_to_scroll:3,loop:0,speed:300,margin:50,arrows_by_one:1,force:1,responsive:{768:{slide_to_view:1,slide_to_scroll:1,arrows:0}}}),ttgallery(".about_products_slider",{slide_to_view:1,slide_to_scroll:1,loop:0,speed:300,arrows_by_one:1,force:1,responsive:{1290:{arrows:0}}}),document.querySelectorAll(".shade,.sidebar-close").forEach((function(e){e.addEventListener("click",(function(){document.querySelectorAll(".headermenu").forEach((function(e){e.classList.remove("active")})),document.querySelectorAll(".shade").forEach((function(e){e.classList.remove("active")})),document.body.classList.remove("fixed_burger_active"),document.querySelectorAll(".get_shade_menu").forEach((function(e){e.classList.remove("get_shade_menu")})),document.querySelector(".get_all_cats_cont")&&T(document.querySelector(".get_all_cats_cont")),document.querySelectorAll("#sidebar .active").forEach((function(e){e.classList.remove("active")})),document.querySelectorAll("#sidebar .current_active").forEach((function(e){e.classList.remove("current_active")})),document.querySelectorAll("#sidebar ul[style]").forEach((function(e){e.removeAttribute("style")})),document.body.classList.remove("over_hidden")}))})),document.querySelectorAll(".adap_tab_head").forEach((function(e){e.addEventListener("click",(function(){e.classList.contains("active")?(e.classList.remove("active"),document.querySelectorAll("."+e.getAttribute("data-id")).forEach((function(e){e.classList.remove("show")}))):(e.classList.add("active"),document.querySelectorAll("."+e.getAttribute("data-id")).forEach((function(e){e.classList.add("show")})),document.querySelectorAll("."+e.getAttribute("data-id")+" img[data-src]").forEach((function(e){e.setAttribute("src",e.getAttribute("data-src")),e.removeAttribute("data-src")}))),S()}))}));let P=0;document.querySelectorAll(".Review_formcont h5 span").forEach((function(o){o.addEventListener("click",(function(o){P||(e("load_countries",{},(function(e){e&&(document.querySelector(".country_list_select").innerHTML=e,ttselect("select[data-ttselect]"),P=1)})),addreview_script&&t(addreview_script[0],(function(){t(addreview_script[1],(function(){t(addreview_script[2],(function(){t(addreview_script[3],(function(){}))}))}))}))),c(document.querySelector(".wrap_review_list"))}))}));let j=0;document.querySelectorAll(".load_currency").forEach((function(t){t.addEventListener("click",(function(t){j||e("get_currency_select",{page:document.location.href},(function(e){e&&(document.querySelectorAll(".load_currency_target").forEach((function(t){t.innerHTML=e})),j=1)}))}))})),document.querySelectorAll(".team_more").forEach((function(e){e.addEventListener("click",(function(t){document.querySelectorAll(".team_hidden").forEach((function(e){e.classList.remove("team_hidden")})),e.style.display="none",document.body.dispatchEvent(new Event("ttlazy"))}))})),document.querySelectorAll(".stars_set span").forEach((function(e,t){e.addEventListener("click",(function(o){e.parentElement.querySelectorAll("span").forEach((function(e,o){e.classList.remove("star_full"),o<=t&&e.classList.add("star_full")})),e.parentElement.nextElementSibling.value=t+1}))}));let H=0;ttlightbox(".revpics a","href");let z=document.querySelector(".rev_pics_acc");document.querySelectorAll(".revpics").forEach((function(e,t){let o="";e.querySelectorAll("a").forEach((function(e,t){H<8?(o+='<span data-href="'+e.getAttribute("href")+'">'+e.innerHTML+"</span>",H++):o+='<span data-href="'+e.getAttribute("href")+'"></span>'}));let n=document.createRange().createContextualFragment(o);document.querySelector(".review_photos").append(n)}));let M=document.querySelectorAll(".review_photos img"),R=document.querySelector(".see_photos");if(document.querySelector(".review_photos span")&&ttlightbox(".review_photos span","data-href"),M.length>0&&M.length<8&&(document.querySelector(".see_photos").style.display="none"),!M.length&&z&&(z.style.display="none"),R&&R.addEventListener("click",(function(e){document.querySelector(".review_photos span").dispatchEvent(new Event("click"))})),M.length>0&&M.length<3&&document.querySelector(".review_photos").classList.add("get_rev_center"),ttgallery(".recents_slider",{slide_to_view:4,slide_to_scroll:4,loop:0,speed:300,margin:20,arrows_by_one:1,force:1,responsive:{1280:{slide_to_view:3,slide_to_scroll:3,arrows:0},768:{slide_to_view:2,slide_to_scroll:2,arrows:0},480:{slide_to_view:document.querySelector(".mob_2_per_row")?2:1,slide_to_scroll:document.querySelector(".mob_2_per_row")?2:1,margin:10,arrows:0}}}),document.querySelectorAll(".gst_btns span").forEach((function(e,t){e.addEventListener("click",(function(t){e.parentElement.classList.contains("marked")||(e.innerHTML=e.getAttribute("data-text"),e.classList.add("gst_mark"),e.parentElement.classList.add("marked"))}))})),document.querySelector(".single_split")){let Se=0;if(document.querySelector(".item_slider")){function W(){document.body.clientWidth>767?(Se||(Se=1,document.querySelector(".single_slide_cont_hor")?ttgallery(".item_slider",{slide_to_view:3,slide_to_scroll:3,arrows_by_one:1,vertical:0,margin:10,loop:document.querySelectorAll(".single_slide .item").length>5,speed:300,vertical_height:540,lazy:document.body.classList.contains("js-items-lazy-load"),lazy_attr:"data-lazy",arrows:1,dots:0,responsive:{1289:{slide_to_view:3,slide_to_scroll:3,margin:10},991:{slide_to_view:4,slide_to_scroll:4,margin:20}}}):ttgallery(".item_slider",{slide_to_view:4,slide_to_scroll:5,vertical:1,vertical_height:700,margin:20,loop:1,speed:300,lazy:document.body.classList.contains("js-items-lazy-load"),lazy_attr:"data-lazy",arrows:1,arrows_by_one:1,dots:0,responsive:{1660:{slide_to_view:3,margin:20,vertical_height:520},1289:{slide_to_view:5,margin:20,vertical_height:380},991:{slide_to_view:5,margin:20,vertical_height:380}}})),r&&(document.querySelectorAll(".single_slide .itembgr").forEach((function(e){e.addEventListener("click",(function(t){document.querySelectorAll(".itembgr.active").forEach((function(e){e.classList.remove("active")}));let n=e;n.classList.add("active"),U(n),o=n.parentElement.getAttribute("data-count"),document.querySelectorAll('.single_slide [data-count="'+o+'"] .itembgr').forEach((function(e){e.classList.add("active")}))}))})),r=0)):Se&&(document.querySelector(".item_slider").tt_destroy(),Se=0)}W(),window.addEventListener("resize",(()=>{r=1,Se?(W(),U(document.querySelector('.item_slider .item[data-count="'+o+'"] .itembgr'),!1)):(W(),U(document.querySelector('.item_slider .item[data-count="0"] .itembgr'),!1))})),document.querySelectorAll(".single_slide .item").length<2&&document.querySelectorAll(".slider-next,.slider-prev").forEach((function(e){e.style.display="none"}));let qe=1;function I(){qe=1}document.querySelectorAll(".slider-next").forEach((function(e){e.addEventListener("click",(()=>{if(qe){let e,t;e=document.querySelector(".itembgr.active")?parseInt(document.querySelector(".itembgr.active").parentElement.getAttribute("data-count")):0,document.querySelectorAll(".item_slider .itembgr.active").forEach((function(e){e.classList.remove("active")})),t=document.querySelectorAll('.item_slider [data-count="'+(e+1)+'"]').length?e+1:0,new_itembgr=document.querySelectorAll('.item_slider [data-count="'+t+'"] .itembgr')||document.querySelectorAll('.item_slider [data-count="0"] .itembgr'),qe=0,document.querySelector(".item_slider").tt_next(1),setTimeout(I,300),new_itembgr.forEach((function(e){e.classList.add("active")})),new_itembgr&&U(new_itembgr[0]),o=new_itembgr[0].parentElement.getAttribute("data-count")}}))})),document.querySelectorAll(".slider-prev").forEach((function(e){e.addEventListener("click",(()=>{if(qe){let e;e=document.querySelector(".itembgr.active")?parseInt(document.querySelector(".itembgr.active").parentElement.getAttribute("data-count")):0,document.querySelectorAll(".item_slider .itembgr.active").forEach((function(e){e.classList.remove("active")}));let t,n=document.querySelector(".item_slider .ttgallery").getAttribute("data-total")-1;if(document.querySelector('.item_slider [data-count="'+(e-1)+'"]'))t=e-1;else if(t=n,!document.querySelector('.item_slider [data-count="'+n+'"]'))for(i=t;!document.querySelector('.item_slider [data-count="'+i+'"]');i--)t=i-1;new_itembgr=document.querySelectorAll('.item_slider [data-count="'+t+'"] .itembgr')||document.querySelectorAll('.item_slider [data-count="'+n+'"] .itembgr'),qe=0,document.querySelector(".item_slider").tt_prev(1),setTimeout(I,300),new_itembgr.forEach((function(e){e.classList.add("active")})),new_itembgr&&U(new_itembgr[0]),o=new_itembgr[0].parentElement.getAttribute("data-count")}}))})),document.querySelectorAll(".meta-item-img img").forEach((function(e){e.addEventListener("click",(()=>{let t=document.querySelector(".item_adap_slider_cont");if(document.body.clientWidth<768&&!e.classList.contains("added"))if(document.querySelector(".itembgr_video_adap")){let o=document.querySelector(".item_adap_slider_cont .ttgallery").getAttribute("data-total");"first"==t.getAttribute("data-video")?(t.tt_removeslide(o-1),t.tt_addslide('<div class="item"><div class="itembgr"><img src="'+e.getAttribute("data-img")+'" class="img-responsive" alt="" /></div></div>'),t.tt_slideto(o-1,0)):(t.tt_removeslide(0),t.tt_addslide('<div class="item"><div class="itembgr"><img src="'+e.getAttribute("data-img")+'" class="img-responsive" alt="" /></div></div>',"1"),t.tt_slideto(0,0))}else t.tt_removeslide(0),t.tt_addslide('<div class="item"><div class="itembgr"><img src="'+e.getAttribute("data-img")+'" class="img-responsive" alt="" /></div></div>',"1"),t.tt_slideto(0,0);if(document.querySelector(".single_showroom")){let t=document.querySelector(".single_showroom video");t&&(t.style.display="none"),n.style.display="block",document.querySelector(".play_video_showroom").style.display="none",n.setAttribute("src",e.getAttribute("data-img")),n.setAttribute("data-zoom-image",e.getAttribute("data-img")),t&&t.pause()}}))}))}else{let Ee=0;document.querySelectorAll(".meta-item-img img").forEach((function(e){e.addEventListener("click",(()=>{let t=document.querySelector(".item_adap_slider_cont");if(document.body.clientWidth<768&&!e.classList.contains("added"))if(document.querySelector(".itembgr_video_adap")){let o=document.querySelector(".item_adap_slider_cont .ttgallery").getAttribute("data-total");"first"==t.getAttribute("data-video")?(t.tt_removeslide(o-1),t.tt_addslide('<div class="item"><div class="itembgr"><img src="'+e.getAttribute("data-img")+'" class="img-responsive" alt="" /></div></div>'),t.tt_slideto(o-1,0)):(t.tt_removeslide(0),t.tt_addslide('<div class="item"><div class="itembgr"><img src="'+e.getAttribute("data-img")+'" class="img-responsive" alt="" /></div></div>',"1"),t.tt_slideto(0,0))}else t.tt_removeslide(0),t.tt_addslide('<div class="item"><div class="itembgr"><img src="'+e.getAttribute("data-img")+'" class="img-responsive" alt="" /></div></div>',"1"),t.tt_slideto(0,0);let o=e.getAttribute("data-img");document.querySelector("div.is_big")&&!Ee?(document.querySelectorAll("div.is_big").forEach((function(e){let t=document.createRange().createContextualFragment('<span class="is_big"><img class="imgheightfix" alt="" src="'+o+'"></span>');e.before(t)})),Ee=1):document.querySelectorAll("span.is_big:first img").forEach((function(e){e.setAttribute("src",o)})),document.body.clientWidth>767&&window.scrollTo({top:0,behavior:"smooth"})}))}))}ttgallery(".item_adap_slider_cont",{slide_to_view:1,slide_to_scroll:1,loop:0,speed:300,arrows:0,force:1,lazy:document.body.classList.contains("js-items-lazy-load"),lazy_attr:"data-lazy",dinamic:document.querySelectorAll(".item_adap_slider .item").length>8});let be=new Event("checkvimeo");document.dispatchEvent(be),document.querySelectorAll(".item_adap_slider_cont").forEach((function(e){e.addEventListener("beforeAnim",(function(e){let t=e.detail.new_slide,o=document.querySelectorAll('.item_adap_slider_cont [data-count="'+t+'"] .itembgr_video_adap video');o.length&&(o[0].classList.contains("lazy_poster_active")||""==o[0].getAttribute("data-lazy-poster")||o.forEach((function(e){e.setAttribute("poster",e.getAttribute("data-lazy-poster")),e.classList.add("lazy_poster_active")})));let n=new Event("checkvimeo");document.dispatchEvent(n)}))}))}function U(e,t=!1){let o=document.querySelector(".vimeo_one");if(e&&e.classList.contains("itembgr_video")){n.style.display="none";let r=document.querySelector(".single_showroom video");if(e.hasAttribute("data-vimeoid")){if(o)o.style.display="block";else{let t=document.createRange().createContextualFragment('<div class="vimeo_one videocont_init_slider" data-video="'+e.getAttribute("data-vimeoid")+'"></div>');n.parentNode.insertBefore(t,n.nextElementSibling);let o=new Event("checkvimeo");document.dispatchEvent(o)}r&&(r.style.display="none"),document.querySelector(".play_video_showroom")&&(document.querySelector(".play_video_showroom").style.display="none")}else{if(r){if(r.getAttribute("src")!==e.getAttribute("data-video")){if(!t){r.replaceWith("");let t=document.createRange().createContextualFragment('<video disablePictureInPicture width="100%" height="100%" poster="'+e.getAttribute("data-poster")+'" controlslist="nofullscreen nodownload noplaybackrate" id="item-video" src="'+e.getAttribute("data-video")+'"></video>');n.parentNode.insertBefore(t,n.nextElementSibling),document.querySelector(".play_video_showroom").style.display="flex",r=document.querySelector(".single_showroom video"),r.pause()}}else t||(document.querySelector(".play_video_showroom").style.display="flex",r=document.querySelector(".single_showroom video"),r.pause());t||(r.style.display="block")}else if(!t){let t=document.createRange().createContextualFragment('<video disablePictureInPicture width="100%" height="100%" poster="'+e.getAttribute("data-poster")+'" controlslist="nofullscreen nodownload noplaybackrate" id="item-video" src="'+e.getAttribute("data-video")+'"></video>');n.parentNode.insertBefore(t,n.nextElementSibling),document.querySelector(".play_video_showroom").style.display="flex"}o&&(o.style.display="none")}}else document.querySelector(".single_showroom video")&&document.querySelector(".single_showroom video").replaceWith(""),n.removeAttribute("src"),e&&(n.setAttribute("src",e.getAttribute("data-img")),n.style.display="block"),document.querySelector(".tiled_gallery_adap")||(e&&n.setAttribute("data-zoom-image",e.getAttribute("data-zoom-image")),document.querySelector(".ttzoom")&&document.querySelectorAll(".ttzoom").forEach((function(e){e.style.display="block"}))),document.querySelector(".play_video_showroom video")&&(document.querySelector(".play_video_showroom video").style.display="none"),document.querySelector(".play_video_showroom")&&(document.querySelector(".play_video_showroom").style.display="none"),o&&(o.style.display="none")}document.querySelectorAll(".dropdown_currency").forEach((function(e){e.addEventListener("click",(()=>{e.querySelectorAll("[data-src]").forEach((function(e){e.setAttribute("src",e.getAttribute("data-src"))}))}))})),document.querySelectorAll(".play_video_showroom").forEach((function(e){e.addEventListener("click",(()=>{let t=e.parentElement.querySelector("video");t.play(),t.setAttribute("controls","true"),e.style.display="none"}))})),document.querySelectorAll(".pause_video_showroom").forEach((function(e){e.addEventListener("click",(()=>{e.parentElement.querySelector("video").pause(),document.querySelectorAll(".play_video_showroom").forEach((function(e){e.style.display="flex"}))}))})),document.querySelectorAll(".itembgr_video_adap_play").forEach((function(e){e.addEventListener("click",(()=>{let t=document.querySelector(".itembgr_video_adap video");t.play(),t.setAttribute("controls","true"),e.style.display="none"}))})),n?(document.querySelectorAll(".item.active .itembgr").forEach((function(e){e.classList.add("active")})),U(document.querySelector(".item.active .itembgr")),ttlightbox(".lightbox_src .itemset","data-img"),n.addEventListener("click",(()=>{document.querySelector('.lightbox_src .itemset[data-img="'+n.getAttribute("src")+'"]').dispatchEvent(new Event("tt_lightbox_open"))}))):document.querySelectorAll(".play_video_showroom").forEach((function(e){e.style.display="flex"})),document.querySelectorAll(".toreview").forEach((function(e){e.parentElement.addEventListener("click",(()=>{const e=document.querySelector(".item-revs");null!==e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}))})),document.querySelectorAll(".search_submit").forEach((function(e){e.addEventListener("click",(()=>{if(e.parentElement.classList.contains("active")||document.querySelector(".js-autocomplete-search").value){if(document.querySelector(".js-autocomplete-search").value){document.querySelector(".search_form form").submit()}}else e.parentElement.classList.add("active"),e.parentElement.querySelector("input").focus()}))})),document.querySelectorAll(".search_cross").forEach((function(e){e.addEventListener("click",(()=>{e.previousElementSibling.getAttribute("value").length?e.previousElementSibling.setAttribute("value",""):(e.parentElement.classList.remove("active"),document.querySelectorAll(".search_form").forEach((function(e){e.classList.remove("activated")})))}))})),document.querySelectorAll('[name="select_sort"]').forEach((function(e){e.addEventListener("change",(()=>{let t="";return e.value&&(t=e.value),document.querySelectorAll('[name="product_type"]').forEach((function(e){e.value&&(t+=e.value)})),t&&(window.location=t),!1}))}));let F=1,O=0;function B(){document.querySelectorAll(".comment .text").forEach((function(e){e.offsetHeight>48&&(e.classList.add("folded"),e.addEventListener("click",(function(t){e.classList.remove("folded")})))}))}document.body.classList.contains("pagination_enable")&&(F=0),document.querySelectorAll(".load_more").forEach((function(t){t.addEventListener("click",(function(t){O=1,e("loadproducts",{query:true_posts,page:current_page},(function(e){e?(document.querySelector(".js-list_product").innerHTML=document.querySelector(".js-list_product").innerHTML+e,current_page++,document.location.hash="page-"+current_page,current_page===parseInt(max_pages)&&(document.querySelector(".load_more").style.display="none",F=0),document.body.dispatchEvent(new Event("ttlazy")),document.body.dispatchEvent(new Event("updateListPrice:init")),document.querySelectorAll(".js-list_product :not(.ani_loaded_cont)>img").forEach((function(e){ae(e)}))):document.querySelector(".load_more").style.display="none",O=0}))}))})),document.querySelectorAll(".load_more_post").forEach((function(t){t.addEventListener("click",(function(t){O=1,e("loadposts",{query:true_posts,page:current_page},(function(e){e?(document.querySelector(".js-list_product").innerHTML=document.querySelector(".js-list_product").innerHTML+e,current_page++,document.location.hash="page-"+current_page,current_page===parseInt(max_pages)&&(document.querySelector(".load_more_post").style.display="none",F=0),document.body.dispatchEvent(new Event("ttlazy")),document.body.dispatchEvent(new Event("updateListPrice:init"))):document.querySelector(".load_more_post").style.display="none",O=0}))}))})),B();let D=2,N=0,Y=10,$=document.querySelector(".loadmore_review");function X(e,t){let o=e.getAttribute(t),n=/img.sellvia.com/i.test(o),r=/webp/i.test(o);n&&r&&(/jpeg-/i.test(o)&&e.setAttribute(t,e.getAttribute(t).replace(".webp",".jpeg")),/jpg-/i.test(o)&&e.setAttribute(t,e.getAttribute(t).replace(".webp",".jpg")),/png-/i.test(o)&&e.setAttribute(t,e.getAttribute(t).replace(".webp",".png")))}$&&(N=$.getAttribute("data-max"),$.addEventListener("click",(function(t){Y>0?(Y--,e("loadcomments",{post_id:document.querySelector(".single_split").getAttribute("data-id"),perpage:document.querySelector(".revs").getAttribute("data-perpage"),page:D},(function(e){if(e){let t=document.createRange().createContextualFragment(e);t.querySelectorAll("table").forEach((function(e){e.replaceWith("")})),document.querySelector(".revs").append(t),D++,D>N&&(document.querySelector(".loadmore_review").style.display="none"),ttlightbox(".revpics a","href"),document.body.dispatchEvent(new Event("ttlazy")),B()}else document.querySelector(".load_reviews").style.display="none"}))):window.scrollTo({top:0,behavior:"smooth"})}))),document.querySelectorAll(".adapmore span").forEach((function(e){e.addEventListener("click",(()=>{document.querySelector(".homearticle").querySelectorAll("*").forEach((function(e){e.style.display="block"})),e.parentElement.style.display="none"}))})),ttlazy("data-src"),ttlazy("data-srcset","srcset"),window.devicePixelRatio<1&&setTimeout((function(){window.scrollTo({top:window.scrollY+2,behavior:"instant"})}),100);let V=navigator.userAgent,Q=/safari/i.test(V),Z=/mobile/i.test(V),J=/chrome/i.test(V),G=/edg/i.test(V);!Q||Z||G||J||(document.querySelectorAll("[data-newwebp]").forEach((function(e){X(e,"data-newwebp")})),document.querySelectorAll("img[src]").forEach((function(e){X(e,"src")})),document.querySelectorAll("[data-srchead]").forEach((function(e){X(e,"data-srchead")})),document.querySelectorAll("[data-lazy]").forEach((function(e){X(e,"data-lazy")})),document.querySelectorAll("[data-img]").forEach((function(e){X(e,"data-img")})),document.querySelectorAll("[data-src]").forEach((function(e){X(e,"data-src")})));document.querySelectorAll(".js-autocomplete-search").forEach((function(e){e.addEventListener("focus",(()=>{})),e.addEventListener("blur",(()=>{document.querySelectorAll(".get_shade").forEach((function(e){e.classList.remove("get_shade")}))}))})),document.querySelectorAll(".get_shade_menu").forEach((function(e){e.addEventListener("click",(()=>{e.closest(".header_cont").length||(e.classList.remove("get_shade_menu"),document.querySelectorAll(".headermenu").forEach((function(e){e.classList.remove("active")})),document.querySelectorAll(".category_menu").forEach((function(e){e.classList.remove("active")})),document.body.classList.remove("fixed_burger_active"),document.querySelectorAll(".get_all_cats").forEach((function(e){e.classList.remove("active")})))}))})),document.querySelectorAll(".back_to_menu").forEach((function(e){e.addEventListener("click",(()=>{document.querySelectorAll(".category_menu").forEach((function(e){e.classList.remove("active")}))}))})),document.querySelectorAll(".chart_modal").forEach((function(e){e.addEventListener("click",(()=>{e.closest("table").length||(e.style.display="none")}))})),document.querySelectorAll(".chart_close").forEach((function(e){e.addEventListener("click",(()=>{document.querySelector(".chart_modal").style.display="none"}))})),document.querySelectorAll(".size_chart_btn").forEach((function(e){e.addEventListener("click",(()=>(document.querySelector(".chart_modal").style.display="none",!1)))})),document.querySelector("#cart-sidebar")&&document.querySelector("#cart-sidebar").classList.contains("no-cart-side")&&document.querySelector(".js-direct-checkout")&&!document.querySelector("#cart-sidebar").classList.contains("enable-cart-page")&&document.querySelectorAll("#addToCart").forEach((function(e){e.addEventListener("click",(()=>{setTimeout((function(){adsCart.cart().items.length&&(document.location.href="/cart")}),1e3)}))}));document.querySelectorAll(".custom_sidebar_btn_reload").forEach((function(e){e.addEventListener("click",(()=>{location.reload()}))}));document.querySelectorAll(".view_cart").forEach((function(e){e.addEventListener("click",(()=>{document.querySelector("html").classList.add("cart-pull-page")}))})),document.querySelectorAll("div.fp_one .footer_subs_btn").forEach((function(e){e.addEventListener("click",(()=>{document.querySelectorAll("."+e.getAttribute("data-open")).forEach((function(t){e.parentElement.classList.toggle("active")}))}))})),document.querySelectorAll(".footer_menu h5").forEach((function(e){e.addEventListener("click",(()=>{e.classList.toggle("active")}))}));document.querySelectorAll('.content a[href*="aliexpress"]').forEach((function(e){e.replaceWith("")})),document.querySelectorAll(".darktheme .ppd_bg_lite").forEach((function(e){e.classList.remove("ppd_bg_lite"),e.classList.add("ppd_bg_dark")})),document.querySelectorAll(".darktheme .ppd_bg_white").forEach((function(e){e.classList.remove("ppd_bg_white"),e.classList.add("ppd_bg_dark")}));let K,ee=document.querySelector(".logo span"),te=document.querySelector(".logo a");function oe(){if(document.body.clientWidth>767)for(let e=32;e>9&&(ee.style.fontSize=e+"px",!(ee.offsetWidth<te.offsetWidth&&te.offsetWidth<230));e--);else for(let e=24;e>9&&(ee.style.fontSize=e+"px",!(ee.offsetWidth<te.offsetWidth&&te.offsetWidth<230));e--);}function ne(){document.querySelectorAll(".scroll_x_cont").forEach((function(e){e.querySelector(".scroll_x").offsetWidth>e.querySelector(".blog_line_one").offsetWidth?(e.querySelector(".scroll_x_prev").style.display="none",e.querySelector(".scroll_x_prev").style.display="none"):(e.querySelector(".scroll_x_prev").style.display="flex",e.querySelector(".scroll_x_prev").style.display="flex")}))}function re(e){let t=e.getAttribute("data-hovervideo");t&&(e.querySelectorAll(".thumb-wrap").forEach((function(e){if(!e.classList.contains("hovervideo")){let o=document.createRange().createContextualFragment('<video autoplay width="100%" height="100%" loop="loop" muted playsinline><source src="'+t+'" type="video/mp4;"></video><svg class="spinner" width="66px" height="66px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"><circle class="circle" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg>');e.append(o),e.classList.add("hovervideo")}})),e.querySelectorAll("video").forEach((function(t){t.play(),K=e,e.classList.add("do_spin"),t.addEventListener("playing",(function(){e.classList.remove("do_spin")}))})))}ee&&(oe(),ee.style.opacity=1,window.addEventListener("resize",(()=>{oe()})),window.onload=function(){oe()}),ne(),document.addEventListener("resize",ne,{passive:!0}),document.querySelectorAll(".scroll_x_prev").forEach((function(e){e.addEventListener("click",(t=>{let o,n,r,i=e.parentElement.querySelector(".scroll_x"),l=(i.scrollX,e.getBoundingClientRect().left),c=[],s=1e4,a=[],u=0,d=i.querySelectorAll(".item");d.length;d.forEach((function(e,t){let i=e.getBoundingClientRect(),d=i.left-l+30;d<0&&(o=d,n=u),d>0&&d<s&&(s=d,r=u),c.push(d),a.push(i.width),u++})),i.scrollTo({left:i.scrollLeft-a[0],behavior:"smooth"})}))})),document.querySelectorAll(".scroll_x_next").forEach((function(e){e.addEventListener("click",(t=>{let o,n,r,i=e.parentElement.querySelector(".scroll_x"),l=(i.scrollX,e.getBoundingClientRect().left),c=[],s=1e4,a=[],u=0;i.querySelectorAll(".item").forEach((function(e){let t=e.getBoundingClientRect(),i=t.left-l;i<0&&(o=i,n=u),i>0&&i<s&&(s=i,r=u),c.push(i),a.push(t.width),u++})),i.scrollTo({left:i.scrollLeft+a[0],behavior:"smooth"})}))})),document.querySelectorAll(".scroll_x").forEach((function(e){e.addEventListener("mouseenter",(function(e){unscroll=1})),e.addEventListener("mouseleave",(function(e){unscroll=0}))}));let ie=document.querySelectorAll(".product-item[data-hovervideo]");ie.forEach((function(e){e.addEventListener("mouseenter",(function(t){document.body.clientWidth>1280&&re(e)})),e.addEventListener("mouseleave",(function(t){document.body.clientWidth>1280&&function(e){e.querySelectorAll("video").forEach((function(e){e.pause()}))}(e)}))}));let le,ce=0,se=0;function ae(e){e.addEventListener("load",(()=>{e.classList.add("ani_loaded"),e.parentElement.classList.add("ani_loaded_cont"),setTimeout((function(){e.classList.add("ani_unset")}),3e3)}))}if(ie.length&&document.addEventListener("scroll",(function(){ce++,1===ce&&(clearInterval(le),le=setInterval((function(){ie.forEach((function(e){e.getAttribute("data-hovervideo")&&(e.classList.contains("v_mark")&&!e.classList.contains("v_stopped")&&e.classList.add("v_stopped"),se||l(e)&&(e.classList.contains("v_mark")||(se=1,e.classList.add("v_mark"),re(e))))})),se=0,setTimeout((function(){ce=0}),2e3)}),1e4))}),{passive:!0}),document.querySelectorAll("img").forEach((function(e){ae(e)})),document.querySelector(".single_bgr")){let we=1,Le=0,Ae=0;window.addEventListener("scroll",(function(){l(document.querySelector(".recs_slider_cont"))&&we&&!Le&&(Le=1,e("loadrecposts",{id:document.querySelector(".single_bgr").getAttribute("data-postid"),page:Ae},(function(e){if(e){Ae++;let t=document.createRange().createContextualFragment(e);document.querySelector(".recs_slider").append(t),document.querySelector(".recs_slider_cont").classList.add("active"),document.body.dispatchEvent(new Event("ttlazy")),document.body.dispatchEvent(new Event("updateListPrice:init")),document.querySelectorAll(".recs_slider img").forEach((function(e){ae(e)}))}else we=0;Le=0,we=0})))}),{passive:!0})}document.location.hash&&setTimeout((function(){let e=document.querySelector('[data-mark="'+document.location.hash.substring(1)+'"]');if(e){let t,o=e.getBoundingClientRect();t=window.scrollY+o.top-200,window.scrollTo({top:t,behavior:"smooth"})}}),1500),document.querySelectorAll(".search_activator").forEach((function(e){e.addEventListener("click",(()=>{setTimeout((function(){document.querySelectorAll(".search_form").forEach((function(e){e.classList.add("activated")}))}),100)}))})),document.querySelectorAll(".padder").forEach((function(e){e.addEventListener("click",(()=>{document.querySelectorAll(".search_form").forEach((function(e){e.classList.remove("activated")}))}))})),document.body.addEventListener("infoCurrency:done",(()=>{setTimeout((function(){}),300)}));let ue=document.querySelector(".trend_footer_cont");if(ue&&document.querySelector(".xmastheme")){!function e(){ue.classList.remove("santa_left","santa_right","bboy"),setTimeout((function(){ue.classList.add("santa_right"),ue.classList.remove("bboy")}),5e3),setTimeout((function(){ue.classList.add("bboy"),ue.classList.remove("santa_right")}),1e4),setTimeout((function(){ue.classList.add("santa_left"),ue.classList.remove("bboy")}),26e3),setTimeout((function(){ue.classList.remove("santa_left")}),31e3),setTimeout((function(){e()}),45e3)}()}let de=0,me=0;function fe(t,o){me=1,e("get_menu",{},(function(e){e&&(document.querySelectorAll(".load_menu_target").forEach((function(t){t.innerHTML=e})),de=1),function(){if(q&&(b=q.innerHTML,w&&E)){let e=document.createRange().createContextualFragment('<ul class="shop_adap_menu show_all_li">'+L.outerHTML+"</ul>");w.after(e)}document.querySelectorAll("#sidebar ul ul").forEach((function(e,t){let o=document.createElement("i");o.classList.add("ul_arrow"),e.before(o),e.parentNode.classList.add("ul_with")})),document.querySelectorAll("#sidebar .ul_with > ul").forEach((function(e,t){e.style.display="none"})),document.querySelectorAll(".ul_arrow").forEach((function(e){e.addEventListener("click",(()=>{let t=e.parentNode,o=document.querySelector(".sidebar-wrapper");t.parentNode.classList.contains("shop_adap_menu")&&t.classList.contains("active")?o.classList.remove("over_hidden"):o.classList.add("over_hidden"),document.querySelectorAll(".current_active").forEach((function(e){e.classList.remove("current_active")})),t.classList.contains("active")?(t.classList.remove("active"),t.parentNode.parentNode.classList.add("current_active")):t.classList.add("active","current_active"),c(e.nextElementSibling)}))})),document.querySelector(".mainmenu_adap").innerHTML=document.querySelector(".mainmenu").innerHTML,document.querySelector(".mainmenu_adap").querySelectorAll("div").forEach((function(e){e.replaceWith("")})),document.querySelectorAll(".mainmenu_adap li > ul").forEach((function(e){let t=document.createElement("li"),o=e.previousElementSibling;o&&"A"===o.tagName&&(t.innerHTML='<a href="'+o.getAttribute("href")+'">'+document.querySelector(".mainmenu_adap_cont").getAttribute("data-all")+" "+o.innerHTML+"</a>",e.parentNode.insertBefore(t,e.parentElement.firstChild));let n=document.createRange().createContextualFragment('<span class="arrowright"></span>');e.before(n),e.parentElement.classList.add("with_children")}))}(),1==o&&he(t),2==o&&x(t),me=0}))}function he(e){var t;e.parentElement.classList.contains("current_active")?document.location.href="/product":e.parentElement.classList.contains("active")?T(e.parentElement):(t=e.parentElement,C||(C=1,ttlazy("data-srchead"),document.body.clientWidth>767&&(t.classList.add("fade-in"),t.classList.add("active"),document.body.dispatchEvent(new Event("ttlazy")),document.querySelector(".too_many_mason")&&new Masonry(".too_many_mason",{itemSelector:".too_many_one",resize:!0}),document.querySelectorAll(".shade").forEach((function(e){e.classList.add("active")}))),setTimeout((function(){C=0}),100)))}document.querySelectorAll(".fixed_burger").forEach((function(e){e.addEventListener("click",(function(){de?x(e):me||fe(e,2)}))})),document.querySelectorAll(".get_all_cats").forEach((function(e){e.addEventListener("click",(function(t){de?he(e):me||fe(e,1)}))}));let pe=document.querySelector(".home .catalog_one .product-item:nth-child(2)");if(pe&&document.querySelector(".valdaytheme")){function _e(e){e&&e.classList.add("hidden_cupid")}setTimeout((function(){_e(pe)}),3e4),setTimeout((function(){_e(document.querySelector(".home .catalog_one .product-item:nth-child(4)"))}),15e3),setTimeout((function(){_e(document.querySelector(".home .catalog_one .product-item:nth-child(6)"))}),26e3)}}));
