(()=>{"use strict";var e={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},t={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},n=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],r={CSS:{},springs:{}};function a(e,t,n){return Math.min(Math.max(e,t),n)}function o(e,t){return e.indexOf(t)>-1}function i(e,t){return e.apply(null,t)}var u={arr:function(e){return Array.isArray(e)},obj:function(e){return o(Object.prototype.toString.call(e),"Object")},pth:function(e){return u.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||u.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return u.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return u.hex(e)||u.rgb(e)||u.hsl(e)},key:function(n){return!e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&"targets"!==n&&"keyframes"!==n}};function c(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function s(e,t){var n=c(e),o=a(u.und(n[0])?1:n[0],.1,100),i=a(u.und(n[1])?100:n[1],.1,100),s=a(u.und(n[2])?10:n[2],.1,100),l=a(u.und(n[3])?0:n[3],.1,100),d=Math.sqrt(i/o),f=s/(2*Math.sqrt(i*o)),p=f<1?d*Math.sqrt(1-f*f):0,v=f<1?(f*d-l)/p:-l+d;function h(e){var n=t?t*e/1e3:e;return n=f<1?Math.exp(-n*f*d)*(1*Math.cos(p*n)+v*Math.sin(p*n)):(1+v*n)*Math.exp(-n*d),0===e||1===e?e:1-n}return t?h:function(){var t=r.springs[e];if(t)return t;for(var n=1/6,a=0,o=0;;)if(1===h(a+=n)){if(++o>=16)break}else o=0;var i=a*n*1e3;return r.springs[e]=i,i}}function l(e){return void 0===e&&(e=10),function(t){return Math.ceil(a(t,1e-6,1)*e)*(1/e)}}var d,f,p=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function a(e,a,o){return((t(a,o)*e+n(a,o))*e+r(a))*e}function o(e,a,o){return 3*t(a,o)*e*e+2*n(a,o)*e+r(a)}return function(t,n,r,i){if(0<=t&&t<=1&&0<=r&&r<=1){var u=new Float32Array(11);if(t!==n||r!==i)for(var c=0;c<11;++c)u[c]=a(c*e,t,r);return function(c){return t===n&&r===i||0===c||1===c?c:a(function(n){for(var i=0,c=1;10!==c&&u[c]<=n;++c)i+=e;--c;var s=i+(n-u[c])/(u[c+1]-u[c])*e,l=o(s,t,r);return l>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var u=o(t,n,r);if(0===u)return t;t-=(a(t,n,r)-e)/u}return t}(n,s,t,r):0===l?s:function(e,t,n,r,o){var i,u,c=0;do{(i=a(u=t+(n-t)/2,r,o)-e)>0?n=u:t=u}while(Math.abs(i)>1e-7&&++c<10);return u}(n,i,i+e,t,r)}(c),n,i)}}}}(),v=(d={linear:function(){return function(e){return e}}},f={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=a(e,1,10),r=a(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){f[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(f).forEach((function(e){var t=f[e];d["easeIn"+e]=t,d["easeOut"+e]=function(e,n){return function(r){return 1-t(e,n)(1-r)}},d["easeInOut"+e]=function(e,n){return function(r){return r<.5?t(e,n)(2*r)/2:1-t(e,n)(-2*r+2)/2}},d["easeOutIn"+e]=function(e,n){return function(r){return r<.5?(1-t(e,n)(1-2*r))/2:(t(e,n)(2*r-1)+1)/2}}})),d);function h(e,t){if(u.fnc(e))return e;var n=e.split("(")[0],r=v[n],a=c(e);switch(n){case"spring":return s(e,t);case"cubicBezier":return i(p,a);case"steps":return i(l,a);default:return i(r,a)}}function g(e){try{return document.querySelectorAll(e)}catch(e){return}}function m(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==i)t=n=r=u;else{var l=u<.5?u*(1+i):u+i-u*i,d=2*u-l;t=s(d,l,o+1/3),n=s(d,l,o),r=s(d,l,o-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+c+")"}(e):void 0;var t,n}(e);if(/\s/g.test(e))return e;var n=L(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function B(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function D(e){for(var t,n=e.points,r=0,a=0;a0&&(r+=B(t,o)),t=o}return r}function T(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*_(e,"r")}(e);case"rect":return function(e){return 2*_(e,"width")+2*_(e,"height")}(e);case"line":return function(e){return B({x:_(e,"x1"),y:_(e,"y1")},{x:_(e,"x2"),y:_(e,"y2")})}(e);case"polyline":return D(e);case"polygon":return function(e){var t=e.points;return D(e)+B(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function F(e,t){var n=t||{},r=n.el||function(e){for(var t=e.parentNode;u.svg(t)&&u.svg(t.parentNode);)t=t.parentNode;return t}(e),a=r.getBoundingClientRect(),o=_(r,"viewBox"),i=a.width,c=a.height,s=n.viewBox||(o?o.split(" "):[0,0,i,c]);return{el:r,viewBox:s,x:s[0]/1,y:s[1]/1,w:i,h:c,vW:s[2],vH:s[3]}}function N(e,t,n){function r(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var a=F(e.el,e.svg),o=r(),i=r(-1),u=r(1),c=n?1:a.w/a.vW,s=n?1:a.h/a.vH;switch(e.property){case"x":return(o.x-a.x)*c;case"y":return(o.y-a.y)*s;case"angle":return 180*Math.atan2(u.y-i.y,u.x-i.x)/Math.PI}}function $(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=P(u.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:u.str(e)||t?r.split(n):[]}}function j(e){return m(e?y(u.arr(e)?e.map(b):b(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function Y(e){var t=j(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:q(e)}}}))}function V(e,t){var n=x(t);if(/^spring/.test(n.easing)&&(n.duration=s(n.easing)),u.arr(e)){var r=e.length;2!==r||u.obj(e[0])?u.fnc(t.duration)||(n.duration=t.duration/r):e={value:e}}var a=u.arr(e)?e:[e];return a.map((function(e,n){var r=u.obj(e)&&!u.pth(e)?e:{value:e};return u.und(r.delay)&&(r.delay=n?0:t.delay),u.und(r.endDelay)&&(r.endDelay=n===a.length-1?t.endDelay:0),r})).map((function(e){return k(e,n)}))}var W={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,a){if(r.list.set(t,n),t===r.last||a){var o="";r.list.forEach((function(e,t){o+=t+"("+e+") "})),e.style.transform=o}}};function H(e,t){Y(e).forEach((function(e){for(var n in t){var r=E(t[n],e),a=e.target,o=L(r),i=I(a,n,o,e),u=A(P(r,o||L(i)),i),c=O(a,n);W[c](a,n,u,e.transforms,!0)}}))}function Z(e,t){return m(y(e.map((function(e){return t.map((function(t){return function(e,t){var n=O(e.target,t.name);if(n){var r=function(e,t){var n;return e.tweens.map((function(r){var a=function(e,t){var n={};for(var r in e){var a=E(e[r],t);u.arr(a)&&1===(a=a.map((function(e){return E(e,t)}))).length&&(a=a[0]),n[r]=a}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,t),o=a.value,i=u.arr(o)?o[1]:o,c=L(i),s=I(t.target,e.name,c,t),l=n?n.to.original:s,d=u.arr(o)?o[0]:l,f=L(d)||L(s),p=c||f;return u.und(i)&&(i=l),a.from=$(d,p),a.to=$(A(i,d),p),a.start=n?n.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=h(a.easing,a.duration),a.isPath=u.pth(o),a.isPathTargetInsideSVG=a.isPath&&u.svg(t.target),a.isColor=u.col(a.from.original),a.isColor&&(a.round=1),n=a,a}))}(t,e),a=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:a.end,delay:r[0].delay,endDelay:a.endDelay}}}(e,t)}))}))),(function(e){return!u.und(e)}))}function X(e,t){var n=e.length,r=function(e){return e.timelineOffset?e.timelineOffset:0},a={};return a.duration=n?Math.max.apply(Math,e.map((function(e){return r(e)+e.duration}))):t.duration,a.delay=n?Math.min.apply(Math,e.map((function(e){return r(e)+e.delay}))):t.delay,a.endDelay=n?a.duration-Math.max.apply(Math,e.map((function(e){return r(e)+e.duration-e.endDelay}))):t.endDelay,a}var z=0,G=[],Q=function(){var e;function t(n){for(var r=G.length,a=0;a0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){J.suspendWhenDocumentHidden&&(R()?e=cancelAnimationFrame(e):(G.forEach((function(e){return e._onDocumentVisibility()})),Q()))})),function(){e||R()&&J.suspendWhenDocumentHidden||!(G.length>0)||(e=requestAnimationFrame(t))}}();function R(){return!!document&&document.hidden}function J(n){void 0===n&&(n={});var r,o=0,i=0,c=0,s=0,l=null;function d(e){var t=window.Promise&&new Promise((function(e){return l=e}));return e.finished=t,t}var f=function(n){var r=M(e,n),a=M(t,n),o=function(e,t){var n=[],r=t.keyframes;for(var a in r&&(t=k(function(e){for(var t=m(y(e.map((function(e){return Object.keys(e)}))),(function(e){return u.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var a=t[r];n[a]=e.map((function(e){var t={};for(var n in e)u.key(n)?n==a&&(t.value=e[n]):t[n]=e[n];return t}))},a=0;a2||(w=Math.round(w*v)/v)),h.push(w)}var k=p.length;if(k){y=p[0];for(var L=0;L0&&(f.began=!0,w("begin")),!f.loopBegan&&f.currentTime>0&&(f.loopBegan=!0,w("loopBegin")),h<=n&&0!==f.currentTime&&b(0),(h>=u&&f.currentTime!==t||!t)&&b(t),h>n&&h=t&&(i=0,f.remaining&&!0!==f.remaining&&f.remaining--,f.remaining?(o=c,w("loopComplete"),f.loopBegan=!1,"alternate"===f.direction&&p()):(f.paused=!0,f.completed||(f.completed=!0,w("loopComplete"),w("complete"),!f.passThrough&&"Promise"in window&&(l(),d(f)))))}return d(f),f.reset=function(){var e=f.direction;f.passThrough=!1,f.currentTime=0,f.progress=0,f.paused=!0,f.began=!1,f.loopBegan=!1,f.changeBegan=!1,f.completed=!1,f.changeCompleted=!1,f.reversePlayback=!1,f.reversed="reverse"===e,f.remaining=f.loop,r=f.children;for(var t=s=r.length;t--;)f.children[t].reset();(f.reversed&&!0!==f.loop||"alternate"===e&&1===f.loop)&&f.remaining++,b(f.reversed?f.duration:0)},f._onDocumentVisibility=h,f.set=function(e,t){return H(e,t),f},f.tick=function(e){c=e,o||(o=c),x((c+(i-o))*J.speed)},f.seek=function(e){x(v(e))},f.pause=function(){f.paused=!0,h()},f.play=function(){f.paused&&(f.completed&&f.reset(),f.paused=!1,G.push(f),h(),Q())},f.reverse=function(){p(),f.completed=!f.reversed,h()},f.restart=function(){f.reset(),f.play()},f.remove=function(e){U(j(e),f)},f.reset(),f.autoplay&&f.play(),f}function K(e,t){for(var n=t.length;n--;)w(e,t[n].animatable.target)&&t.splice(n,1)}function U(e,t){var n=t.animations,r=t.children;K(e,n);for(var a=r.length;a--;){var o=r[a],i=o.animations;K(e,i),i.length||o.children.length||r.splice(a,1)}n.length||r.length||t.pause()}J.version="3.2.1",J.speed=1,J.suspendWhenDocumentHidden=!0,J.running=G,J.remove=function(e){for(var t=j(e),n=G.length;n--;)U(t,G[n])},J.get=I,J.set=H,J.convertPx=S,J.path=function(e,t){var n=u.str(e)?g(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:F(n),totalLength:T(n)*(r/100)}}},J.setDashoffset=function(e){var t=T(e);return e.setAttribute("stroke-dasharray",t),t},J.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?h(t.easing):null,a=t.grid,o=t.axis,i=t.from||0,c="first"===i,s="center"===i,l="last"===i,d=u.arr(e),f=d?parseFloat(e[0]):parseFloat(e),p=d?parseFloat(e[1]):0,v=L(d?e[1]:e)||0,g=t.start||0+(d?f:0),m=[],y=0;return function(e,t,u){if(c&&(i=0),s&&(i=(u-1)/2),l&&(i=u-1),!m.length){for(var h=0;h-1&&G.splice(o,1);for(var s=0;s0||navigator.msMaxTouchPoints>0,ne=window.innerWidth-document.documentElement.clientWidth;function re(e){}function ae(e,t,n){ee({targets:e,duration:250,opacity:[0,1],easing:"easeOutCubic",begin:function(){e.classList.add("visible")},complete:function(){document.addEventListener("keydown",(function(r){"Escape"===r.key&&(ue(t,n),oe(e))}))}})}function oe(e){window.document.body.classList.remove("scroll-lock"),e.classList.remove("visible")}function ie(e,t){window.document.body.classList.add("scroll-lock"),te||(e.style.transform=``,e.style.width=``,t&&(t.style.width=``))}function ue(e,t){window.document.body.classList.remove("scroll-lock"),te||(e.style.transform="none",e.style.width="100%",t&&(t.style.width="100%"))}window.addEventListener("load",(function(){re(document.getElementById("preloader"))})),document.addEventListener("DOMContentLoaded",(function(){const e=document.getElementById("preloader"),t=document.getElementById("navigation"),n=document.querySelector("header.header"),r=document.querySelector("main.wrapper"),a=t.querySelector(".header__toggle"),o=t.querySelector(".header__nav-overlay"),i=t.querySelector(".header__nav-overlay-bottom"),u=t.querySelectorAll(".header__nav-items .header__nav-item"),c=t.querySelectorAll(".header__nav-items .header__nav-link"),s=t.querySelector(".header__nav .header__nav-lang-wrapper"),l=t.querySelector(".header__nav .header__login-mobile-wrapper"),d=document.querySelectorAll('.footer .footer__nav-links .footer__nav-link:not([target="_blank"]), .footer .footer__bottom-nav-items .footer__bottom-nav-link:not([target="_blank"])'),f=ee({targets:o,duration:500,scaleY:[0,"100%"],easing:"easeOutCubic",autoplay:!1}),p=ee({targets:u,opacity:[0,1],duration:500,delay:ee.stagger(100,{start:100}),easing:"easeOutCubic",autoplay:!1,complete:function(){l.classList.add("visible"),s.classList.add("visible")}}),v=ee({targets:o,duration:250,scaleY:["100%",0],easing:"easeOutCubic",delay:100,complete:function(){t.classList.remove("open")}}),h=ee({targets:u,opacity:[1,0],duration:250,delay:ee.stagger(50,{direction:"reverse"}),easing:"easeOutCubic",begin:function(){l.classList.remove("visible"),s.classList.remove("visible")}}),g=ee({targets:o,scaleY:["100%",0],duration:500,easing:"easeOutCubic",autoplay:!1,begin:function(){o.style.height="50%",i.style.height="50%"},complete:function(){t.classList.remove("open"),o.style.height="100%",i.style.height=0}}),m=ee({targets:i,scaleY:["100%",0],duration:500,easing:"easeOutCubic",autoplay:!1});a&&u&&c&&(a.addEventListener("click",(function(e){t.classList.contains("open")?(ue(n,r),v.play(),h.play()):(ie(n,r),t.classList.add("open"),f.play(),p.play())})),c.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.style.display="flex",e.style.opacity=1,g.finished.then((function(){window.location.href!==t.target.href?window.location.href=t.target.href:(re(e),ue(n,r))})),h.play(),g.play(),m.play()}))}))),d&&d.length&&d.forEach((function(t){t.addEventListener("click",(function(t){e.style.display="flex",e.style.opacity=1}))}));const y=t.querySelectorAll(".header__nav-lang-link"),b=t.querySelector(".header__nav-lang"),w=ee({targets:b,opacity:[0,1],scaleY:[0,"100%"],duration:250,easing:"easeOutCubic",autoplay:!1});s.addEventListener("click",(function(){s.classList.add("open"),w.play()})),y.forEach((function(e,t){e.addEventListener("click",(function(e){e.preventDefault(),e.stopImmediatePropagation(),s.classList.remove("open")}))}));const x=document.getElementById("dropMailForm"),M=document.getElementById("lottieSubmit"),k=bodymovin.loadAnimation({container:M,path:"https://f.hubspotusercontent-eu1.net/hubfs/24899202/lotties/submit-button/data.json",renderer:"svg",loop:!1,autoplay:!1});if(x){const e=document.querySelectorAll(".btn-open-overlay"),a=x.querySelector(".header__overlay-input"),o=x.querySelector(".header__overlay-cancel"),i=x.querySelector(".header__overlay-submit");e&&a&&o&&i&&(e.forEach((function(e){const a=e.getAttribute("data-target");a&&e.addEventListener("click",(function(){t.classList.contains("open")&&(h.play(),g.play(),m.play()),x.setAttribute("data-open",a),ie(n,r),ae(x,n,r)}))})),a.addEventListener("input",(function(){var e;i.disabled=(e=a.value,!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase()))})),o.addEventListener("click",(function(){ue(n,r),oe(x)})),i.addEventListener("click",(function(e){e.preventDefault(),k.addEventListener("complete",(function(e){ue(n,r),oe(x);const t=x.getAttribute("data-open");t&&"signup"===t&&(window.location.href="https://unique.app/signup")})),k.play()})))}const L=document.querySelectorAll(".video .btn-video-play");let E,_,S;L&&L.length&&L.forEach((function(e){e.addEventListener("click",(function(){if(E=document.querySelector(`.video-overlay[data-video="${e.getAttribute("data-for")}"]`),E&&E.classList.contains("video-overlay")){function e(){_.pause(),ue(n,r),oe(E)}ie(n,r),ae(E,n,r),_=new Vimeo.Player(E.querySelector("iframe")),S=E.querySelector(".btn-close"),_.play(),S&&(S.addEventListener("click",(function(){e()})),document.addEventListener("keydown",(function(t){"Escape"===t.key&&e()})))}}))}))}))})();