20 lines
104 KiB
JavaScript
Executable File
20 lines
104 KiB
JavaScript
Executable File
!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!w[e]||!_[e])return;for(var n in _[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(m[n]=t[n]);0==--v&&0===g&&k()}(e,n),t&&t(e,n)};var n,i=!0,o="56ec6ad412fa3f83e734",r={},a=[],s=[];function c(e){var t=I[e];if(!t)return S;var i=function(i){return t.hot.active?(I[i]?-1===I[i].parents.indexOf(e)&&I[i].parents.push(e):(a=[e],n=i),-1===t.children.indexOf(i)&&t.children.push(i)):(console.warn("[HMR] unexpected require("+i+") from disposed module "+e),a=[]),S(i)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return S[e]},set:function(t){S[e]=t}}};for(var r in S)Object.prototype.hasOwnProperty.call(S,r)&&"e"!==r&&"t"!==r&&Object.defineProperty(i,r,o(r));return i.e=function(e){return"ready"===d&&f("prepare"),g++,S.e(e).then(t,(function(e){throw t(),e}));function t(){g--,"prepare"===d&&(b[e]||M(e),0===g&&0===v&&k())}},i.t=function(e,t){return 1&t&&(e=i(e)),S.t(e,-2&t)},i}function u(t){var i={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)i._selfAccepted=!0;else if("function"==typeof e)i._selfAccepted=e;else if("object"==typeof e)for(var n=0;n<e.length;n++)i._acceptedDependencies[e[n]]=t||function(){};else i._acceptedDependencies[e]=t||function(){}},decline:function(e){if(void 0===e)i._selfDeclined=!0;else if("object"==typeof e)for(var t=0;t<e.length;t++)i._declinedDependencies[e[t]]=!0;else i._declinedDependencies[e]=!0},dispose:function(e){i._disposeHandlers.push(e)},addDisposeHandler:function(e){i._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=i._disposeHandlers.indexOf(e);t>=0&&i._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":(m={})[t]=e[t],f("ready");break;case"ready":q(t);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(t)}},check:z,apply:j,status:function(e){if(!e)return d;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},data:r[t]};return n=void 0,i}var l=[],d="idle";function f(e){d=e;for(var t=0;t<l.length;t++)l[t].call(null,e)}var p,m,h,y,v=0,g=0,b={},_={},w={};function x(e){return+e+""===e?+e:e}function z(e){if("idle"!==d)throw new Error("check() is only allowed in idle status");return i=e,f("check"),(t=1e4,t=t||1e4,new Promise((function(e,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var i=new XMLHttpRequest,r=S.p+""+o+".hot-update.json";i.open("GET",r,!0),i.timeout=t,i.send(null)}catch(e){return n(e)}i.onreadystatechange=function(){if(4===i.readyState)if(0===i.status)n(new Error("Manifest request to "+r+" timed out."));else if(404===i.status)e();else if(200!==i.status&&304!==i.status)n(new Error("Manifest request to "+r+" failed."));else{try{var t=JSON.parse(i.responseText)}catch(e){return void n(e)}e(t)}}}))).then((function(e){if(!e)return f(O()?"ready":"idle"),null;_={},b={},w=e.c,h=e.h,f("prepare");var t=new Promise((function(e,t){p={resolve:e,reject:t}}));m={};return M(1),"prepare"===d&&0===g&&0===v&&k(),t}));var t}function M(e){w[e]?(_[e]=!0,v++,function(e){var t=document.createElement("script");t.charset="utf-8",t.src=S.p+""+e+"."+o+".hot-update.js",document.head.appendChild(t)}(e)):b[e]=!0}function k(){f("ready");var e=p;if(p=null,e)if(i)Promise.resolve().then((function(){return j(i)})).then((function(t){e.resolve(t)}),(function(t){e.reject(t)}));else{var t=[];for(var n in m)Object.prototype.hasOwnProperty.call(m,n)&&t.push(x(n));e.resolve(t)}}function j(t){if("ready"!==d)throw new Error("apply() is only allowed in ready status");return function t(i){var s,c,u,l,d;function p(e){for(var t=[e],n={},i=t.map((function(e){return{chain:[e],id:e}}));i.length>0;){var o=i.pop(),r=o.id,a=o.chain;if((l=I[r])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:r};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:r};for(var s=0;s<l.parents.length;s++){var c=l.parents[s],u=I[c];if(u){if(u.hot._declinedDependencies[r])return{type:"declined",chain:a.concat([c]),moduleId:r,parentId:c};-1===t.indexOf(c)&&(u.hot._acceptedDependencies[r]?(n[c]||(n[c]=[]),v(n[c],[r])):(delete n[c],t.push(c),i.push({chain:a.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function v(e,t){for(var n=0;n<t.length;n++){var i=t[n];-1===e.indexOf(i)&&e.push(i)}}O();var g={},b=[],_={},z=function(){console.warn("[HMR] unexpected require("+k.moduleId+") to disposed module")};for(var M in m)if(Object.prototype.hasOwnProperty.call(m,M)){var k;d=x(M),k=m[M]?p(d):{type:"disposed",moduleId:M};var j=!1,q=!1,T=!1,N="";switch(k.chain&&(N="\nUpdate propagation: "+k.chain.join(" -> ")),k.type){case"self-declined":i.onDeclined&&i.onDeclined(k),i.ignoreDeclined||(j=new Error("Aborted because of self decline: "+k.moduleId+N));break;case"declined":i.onDeclined&&i.onDeclined(k),i.ignoreDeclined||(j=new Error("Aborted because of declined dependency: "+k.moduleId+" in "+k.parentId+N));break;case"unaccepted":i.onUnaccepted&&i.onUnaccepted(k),i.ignoreUnaccepted||(j=new Error("Aborted because "+d+" is not accepted"+N));break;case"accepted":i.onAccepted&&i.onAccepted(k),q=!0;break;case"disposed":i.onDisposed&&i.onDisposed(k),T=!0;break;default:throw new Error("Unexception type "+k.type)}if(j)return f("abort"),Promise.reject(j);if(q)for(d in _[d]=m[d],v(b,k.outdatedModules),k.outdatedDependencies)Object.prototype.hasOwnProperty.call(k.outdatedDependencies,d)&&(g[d]||(g[d]=[]),v(g[d],k.outdatedDependencies[d]));T&&(v(b,[k.moduleId]),_[d]=z)}var L,C=[];for(c=0;c<b.length;c++)d=b[c],I[d]&&I[d].hot._selfAccepted&&_[d]!==z&&!I[d].hot._selfInvalidated&&C.push({module:d,parents:I[d].parents.slice(),errorHandler:I[d].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(e){!1===w[e]&&function(e){delete installedChunks[e]}(e)}));var A,D,E=b.slice();for(;E.length>0;)if(d=E.pop(),l=I[d]){var P={},B=l.hot._disposeHandlers;for(u=0;u<B.length;u++)(s=B[u])(P);for(r[d]=P,l.hot.active=!1,delete I[d],delete g[d],u=0;u<l.children.length;u++){var R=I[l.children[u]];R&&((L=R.parents.indexOf(d))>=0&&R.parents.splice(L,1))}}for(d in g)if(Object.prototype.hasOwnProperty.call(g,d)&&(l=I[d]))for(D=g[d],u=0;u<D.length;u++)A=D[u],(L=l.children.indexOf(A))>=0&&l.children.splice(L,1);f("apply"),void 0!==h&&(o=h,h=void 0);for(d in m=void 0,_)Object.prototype.hasOwnProperty.call(_,d)&&(e[d]=_[d]);var U=null;for(d in g)if(Object.prototype.hasOwnProperty.call(g,d)&&(l=I[d])){D=g[d];var H=[];for(c=0;c<D.length;c++)if(A=D[c],s=l.hot._acceptedDependencies[A]){if(-1!==H.indexOf(s))continue;H.push(s)}for(c=0;c<H.length;c++){s=H[c];try{s(D)}catch(e){i.onErrored&&i.onErrored({type:"accept-errored",moduleId:d,dependencyId:D[c],error:e}),i.ignoreErrored||U||(U=e)}}}for(c=0;c<C.length;c++){var Y=C[c];d=Y.module,a=Y.parents,n=d;try{S(d)}catch(e){if("function"==typeof Y.errorHandler)try{Y.errorHandler(e)}catch(t){i.onErrored&&i.onErrored({type:"self-accept-error-handler-errored",moduleId:d,error:t,originalError:e}),i.ignoreErrored||U||(U=t),U||(U=e)}else i.onErrored&&i.onErrored({type:"self-accept-errored",moduleId:d,error:e}),i.ignoreErrored||U||(U=e)}}if(U)return f("fail"),Promise.reject(U);if(y)return t(i).then((function(e){return b.forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}));return f("idle"),new Promise((function(e){e(b)}))}(t=t||{})}function O(){if(y)return m||(m={}),y.forEach(q),y=void 0,!0}function q(t){Object.prototype.hasOwnProperty.call(m,t)||(m[t]=e[t])}var I={};function S(t){if(I[t])return I[t].exports;var n=I[t]={i:t,l:!1,exports:{},hot:u(t),parents:(s=a,a=[],s),children:[]};return e[t].call(n.exports,n,n.exports,c(t)),n.l=!0,n.exports}S.m=e,S.c=I,S.d=function(e,t,n){S.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},S.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},S.t=function(e,t){if(1&t&&(e=S(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(S.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)S.d(n,i,function(t){return e[t]}.bind(null,i));return n},S.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return S.d(t,"a",t),t},S.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},S.p="http://localhost:82/",S.h=function(){return o},c(36)(S.s=36)}([function(e,t,n){var i,o;
|
||
/*!
|
||
* JavaScript Cookie v2.2.1
|
||
* https://github.com/js-cookie/js-cookie
|
||
*
|
||
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
||
* Released under the MIT license
|
||
*/!function(r){if(void 0===(o="function"==typeof(i=r)?i.call(t,n,t,e):i)||(e.exports=o),!0,e.exports=r(),!!0){var a=window.Cookies,s=window.Cookies=r();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(i){function o(){}function r(t,n,r){if("undefined"!=typeof document){"number"==typeof(r=e({path:"/"},o.defaults,r)).expires&&(r.expires=new Date(1*new Date+864e5*r.expires)),r.expires=r.expires?r.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=i.write?i.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in r)r[c]&&(s+="; "+c,!0!==r[c]&&(s+="="+r[c].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var o={},r=document.cookie?document.cookie.split("; "):[],a=0;a<r.length;a++){var s=r[a].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(s[0]);if(c=(i.read||i)(c,u)||t(c),n)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=r,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){r(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t,n){"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],u=n[c]||0,l="".concat(c," ").concat(u);n[c]=u+1;var d=s(l),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:l,updater:y(f,t),references:1}),i.push(l)}return i}function u(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,d=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function f(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function p(e,t,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var m=null,h=0;function y(e,t){var n,i,o;if(t.singleton){var r=h++;n=m||(m=u(t)),i=f.bind(null,n,r,!1),o=f.bind(null,n,r,!0)}else n=u(t),i=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=c(e,t),u=0;u<n.length;u++){var l=s(n[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=r}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){var i,o,r;o=[t],void 0===(r="function"==typeof(i=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var i={get passive(){n=!0}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}function o(e){return c.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))}function r(e){var t=e||window.event;return!!o(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)}function a(){setTimeout((function(){void 0!==f&&(document.body.style.paddingRight=f,f=void 0),void 0!==d&&(document.body.style.overflow=d,d=void 0)}))}var s="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),c=[],u=!1,l=-1,d=void 0,f=void 0;e.disableBodyScroll=function(e,i){if(s){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!c.some((function(t){return t.targetElement===e}))){var a={targetElement:e,options:i||{}};c=[].concat(t(c),[a]),e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,i,a,s;1===t.targetTouches.length&&(i=e,s=(n=t).targetTouches[0].clientY-l,o(n.target)||(i&&0===i.scrollTop&&0<s||(a=i)&&a.scrollHeight-a.scrollTop<=a.clientHeight&&s<0?r(n):n.stopPropagation()))},u||(document.addEventListener("touchmove",r,n?{passive:!1}:void 0),u=!0)}}else{m=i,setTimeout((function(){if(void 0===f){var e=!!m&&!0===m.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(f=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===d&&(d=document.body.style.overflow,document.body.style.overflow="hidden")}));var p={targetElement:e,options:i||{}};c=[].concat(t(c),[p])}var m},e.clearAllBodyScrollLocks=function(){s?(c.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),u&&(document.removeEventListener("touchmove",r,n?{passive:!1}:void 0),u=!1),c=[],l=-1):(a(),c=[])},e.enableBodyScroll=function(e){if(s){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,c=c.filter((function(t){return t.targetElement!==e})),u&&0===c.length&&(document.removeEventListener("touchmove",r,n?{passive:!1}:void 0),u=!1)}else(c=c.filter((function(t){return t.targetElement!==e}))).length||a()}})?i.apply(t,o):i)||(e.exports=r)},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},,,function(e,t,n){"use strict";n.r(t);var i=n(2),o=n.n(i)()(!1);o.push([e.i,".marquiz__button{display:inline-block;font-weight:500;text-align:center;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:all .2s ease-out;color:var(--marquiz-button-text-color,#fff) !important;border:1px solid var(--marquiz-button-color,#d34085);background-color:var(--marquiz-button-color,#d34085);padding:18px 21px;font-size:22px;line-height:1;cursor:pointer;text-decoration:none !important;overflow:hidden;position:relative}.marquiz__button:hover,.marquiz__button:focus{color:var(--marquiz-button-text-color,#fff) !important;filter:brightness(105%);text-decoration:none !important}.marquiz__button_shadow{box-shadow:1.7px 5.8px 21px 0 var(--marquiz-button-alpha-color,var(--marquiz-button-color))}.marquiz__button_blicked:after{content:'';position:absolute;top:-50%;bottom:-50%;background:linear-gradient(90deg,rgba(255,255,255,0.1),rgba(255,255,255,0.6) 100%);width:45px;transform:skewX(-22deg);left:-65%;animation-name:blick;animation-duration:3s;animation-iteration-count:infinite}@keyframes blick{60%{left:100%}to{left:130%}}.marquiz__button_rounded{border-radius:50px}.marquiz__button_fixed{transition:none;height:48px;line-height:1.5;box-sizing:border-box;white-space:nowrap;display:-ms-inline-flexbox;display:inline-flex;padding:7px 20px 7px 7px;font-size:19px}.marquiz__button_fixed span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}@media (max-width:768px){.marquiz__button_fixed{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;transform:none !important;width:55px;height:55px;line-height:55px;border-radius:50px !important;bottom:20px;top:auto !important}.marquiz__button_fixed-left{left:15px !important;padding:0 !important}.marquiz__button_fixed-right{right:15px !important;left:auto !important;padding:0 !important}.marquiz__button_fixed .marquiz__text,.marquiz__button_fixed .script__buttonText{display:none}}.marquiz__button_fixed.marquiz__button_rounded{border-radius:0 0 10px 10px}.marquiz__button_fixed.marquiz__button_shadow{box-shadow:1.7px 5.8px 21px 0 var(--marquiz-button-alpha-color,var(--marquiz-button-color))}.marquiz__button_fixed-left{position:fixed;left:0;transform:rotate(-90deg) translate(-40.2%,0%);transform-origin:calc(0% - 1px) 0%;top:50%;z-index:99999;border-radius:4px}.marquiz__button_fixed-left.marquiz__button_rounded{border-radius:0 0 4px 4px}.marquiz__button_fixed-right{position:fixed;left:calc(100% - 48px);-ms-flex-direction:row-reverse;flex-direction:row-reverse;transform:rotate(-90deg) translate(-40.2%,0%);transform-origin:calc(0% - 1px) 0%;top:50%;padding:7px 20px 7px 7px;z-index:99999}.marquiz__button_fixed-right.marquiz__button_rounded{border-radius:4px 4px 0 0}.marquiz__button_fixed .icon-quiz{height:32px;width:32px;padding:7px 5px 7px 7px;border-radius:4px;background:var(--color-text,#fff);box-sizing:border-box;transform:rotate(90deg);margin-right:12px}.marquiz__button_fixed .icon-quiz path{fill:var(--color,var(--marquiz-button-color,#d34085))}@media (max-width:768px){.marquiz__button_fixed .icon-quiz{height:30px;width:30px;margin-right:0 !important;transform:rotate(0) !important}}.marquiz__button_red{background-color:#f86c6b;border-color:#f86c6b}.marquiz__button_yellow{background-color:#f8cb00;border-color:#f8cb00;color:#000}.marquiz__button_yellow:hover,.marquiz__button_yellow:focus{color:#000}.marquiz__button_blue{background-color:#20a8d8;border-color:#20a8d8}.marquiz__button_green{background-color:#4dbd74;border-color:#4dbd74}",""]),t.default=o},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n.n(i),r=n(4),a=n.n(r),s=n(26),c=o()(!1),u=a()(s.a);c.push([e.i,".marquiz__container_inline{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:100%;max-width:1024px;margin:0 auto;height:auto;background:rgba(255,255,255,0.2) url("+u+") no-repeat calc(50% + 40px) center;background-size:160px}.marquiz__container_inline .marquiz__button{display:none}@media (max-width:767px){.marquiz__container_inline{min-height:0;height:auto;background:none}}@media (max-width:767px){.marquiz__container_has_button .marquiz__button{display:inline-block}.marquiz__container_has_button .marquiz__inline-frame{display:none}}",""]),t.default=c},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n.n(i)()(!1);o.push([e.i,".marquiz-pops__bonus-count{width:14px;height:14px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50%;position:absolute;top:-5px;right:-5px;box-shadow:0 3px 6px 0 rgba(0,0,0,0.33);background-color:#ed0000;color:#fff;font-size:9px;overflow:hidden}.marquiz-pops__bonus-icon{margin-right:15px;position:relative}.marquiz-pops__bonus-icon path{fill:var(--marquiz-pop-svg-color,#fff)}.marquiz-pops{animation-name:marquiz__pop-fade-in_down;animation-duration:.5s;animation-timing-function:ease-in;opacity:0;animation-fill-mode:both;text-rendering:optimizelegibility;position:fixed;top:0;z-index:99990;width:100%;display:none;box-sizing:border-box;height:60px;background-color:var(--marquiz-pop-background-color,#d34085)}@keyframes marquiz__pop-fade-in_down{0%{transform:translate3d(0,-70px,0);opacity:0;pointer-events:none}100%{transform:translate3d(0,0,0);opacity:1;pointer-events:auto}}.marquiz__icon-quiz{width:30px;margin:0 auto}.marquiz__icon-quiz path{fill:var(--marquiz-pop-svg-color,#fff)}.marquiz-pops{text-indent:0 !important}@media (max-width:767px){.marquiz-pops_hide-on-mobile{display:none !important}}.marquiz-pops_position .marquiz-pops__bonus{display:none}.marquiz-pops_position_bottom{animation-name:marquiz__pop-fade-in_up;animation-duration:.5s;animation-timing-function:ease-in;opacity:0;animation-fill-mode:both;bottom:0;top:auto}@keyframes marquiz__pop-fade-in_up{0%{transform:translate3d(0,70px,0);opacity:0;pointer-events:none}100%{transform:translate3d(0,0,0);opacity:1;pointer-events:auto}}.marquiz-pops_position_bottom-left{animation-name:marquiz__pop-fade-in_up;animation-duration:.5s;animation-timing-function:ease-in;opacity:0;animation-fill-mode:both;bottom:0;top:auto}@keyframes marquiz__pop-fade-in_up{0%{transform:translate3d(0,70px,0);opacity:0;pointer-events:none}100%{transform:translate3d(0,0,0);opacity:1;pointer-events:auto}}.marquiz-pops_position_bottom-right{animation-name:marquiz__pop-fade-in_up;animation-duration:.5s;animation-timing-function:ease-in;opacity:0;animation-fill-mode:both;bottom:0;top:auto}@keyframes marquiz__pop-fade-in_up{0%{transform:translate3d(0,70px,0);opacity:0;pointer-events:none}100%{transform:translate3d(0,0,0);opacity:1;pointer-events:auto}}.marquiz-pops_blicked:after{content:'';will-change:left;position:absolute;transform:skewX(-22deg);width:45px;height:100%;opacity:0;left:0%;animation-delay:2s;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0.1),rgba(255,255,255,0.6) 100%);animation-name:marquiz__pop-blick;animation-duration:5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}@keyframes marquiz__pop-blick{0%{opacity:0}20%{opacity:1}27%{opacity:0}40%{opacity:0;left:100%}100%{opacity:0}}.marquiz-pops_shadowed{box-shadow:0 0 12px 0 var(--marquiz-pop-background-color,#d34085)}.marquiz-pops_pulse:before{box-shadow:0 0 0 var(--marquiz-pop-color-pulse);animation:marquiz__pop-pulse 6s infinite linear;will-change:box-shadow;pointer-events:none;border-radius:4px;content:'';position:absolute;width:100%;height:100%}@keyframes marquiz__pop-pulse{0%{box-shadow:0 0 0 0 var(--marquiz-pop-color-pulse)}30%{box-shadow:0 0 0 15px var(--marquiz-pop-color-pulse-alpha)}100%{box-shadow:0 0 0 0 var(--marquiz-pop-color-pulse-alpha)}}.marquiz-pops__body{display:-ms-inline-flexbox;display:inline-flex;width:calc(100% - 60px);min-width:calc(100% - 60px);box-sizing:border-box;text-decoration:none !important;color:var(--marquiz-pop-text-color,#fff) !important}.marquiz-pops__content{display:-ms-inline-flexbox;display:inline-flex;width:calc(100% - 60px);-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;padding-left:10px;-ms-flex-negative:1;flex-shrink:1}.marquiz-pops__content-text{text-decoration:none;font-size:14px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;line-height:16px;font-weight:bold}.marquiz-pops__content-title{overflow:hidden;font-weight:bold;white-space:nowrap;font-size:10px;line-height:12px;text-overflow:ellipsis;text-transform:uppercase;opacity:.7;padding-bottom:2px;letter-spacing:1px}.marquiz-pops__icon{display:-ms-flexbox;display:flex;width:44px;overflow:hidden;border-radius:4px;-ms-flex-negative:0;flex-shrink:0;margin:8px 0 8px 10px}.marquiz-pops__close-wrapper{width:60px;height:60px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;background-image:linear-gradient(to left,rgba(0,0,0,0.1),rgba(0,0,0,0));cursor:pointer}.marquiz-pops__close{width:60px;height:60px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;font-size:28px}.marquiz-pops__close svg{fill:var(--marquiz-pop-close-color,#fff);width:12px;height:12px}.marquiz-pops__bonus{display:none;background:rgba(0,0,0,0.1);border-radius:35px 0 0 35px;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1;box-sizing:border-box;-ms-flex-align:center;align-items:center;padding-left:20px;padding-right:10px;margin-left:30px;font-size:14px;font-weight:600}@media (min-width:800px){.marquiz-pops{height:70px}.marquiz-pops__content{width:100%;width:auto;overflow:hidden}.marquiz-pops__icon{width:54px}.marquiz-pops__bonus{display:-ms-flexbox;display:flex;-ms-flex-positive:2;flex-grow:2;box-sizing:border-box}.marquiz-pops__close-wrapper{width:70px;height:70px;background-color:rgba(0,0,0,0.2)}.marquiz-pops__close{background-image:none;width:70px;height:70px}.marquiz-pops__close svg{width:12px;height:12px}.marquiz-pops__body{width:calc(100% - 70px);min-width:calc(100% - 70px)}.marquiz-pops_position{max-width:450px;margin:15px;border-radius:4px;height:54px;width:auto}.marquiz-pops_position.marquiz-pops_rounded{border-radius:60px !important}.marquiz-pops_position.marquiz-pops_pulse:before{border-radius:60px !important}.marquiz-pops_position .marquiz-pops__body{width:auto;padding-right:22px}.marquiz-pops_position .marquiz-pops__content{padding-left:0}.marquiz-pops_position .marquiz-pops__close-wrapper{position:absolute;width:22px;height:22px;top:-3px;right:-3px;background:unset}.marquiz-pops_position .marquiz-pops__close{width:21px;height:21px;background:#f7f7f7;font-size:14px;font-weight:600;border-radius:50%;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.marquiz-pops_position .marquiz-pops__close svg{fill:#000;width:7px;height:7px}.marquiz-pops_position .marquiz-pops__icon{width:54px;border-radius:4px 0 0 4px;margin:0}.marquiz-pops_position .marquiz__icon-quiz{width:18px}.marquiz-pops_position_bottom-left{animation-name:marquiz__pop-fade-in_right;animation-duration:.5s;animation-timing-function:ease-in;opacity:0;animation-fill-mode:both;left:0}@keyframes marquiz__pop-fade-in_right{0%{transform:translate3d(-200px,0,0);opacity:0;pointer-events:none}100%{transform:translate3d(0,0,0);opacity:1;pointer-events:auto}}.marquiz-pops_position_bottom-right{animation-name:marquiz__pop-fade-in_left;animation-duration:.5s;animation-timing-function:ease-in;opacity:0;animation-fill-mode:both;right:0}@keyframes marquiz__pop-fade-in_left{0%{transform:translate3d(200px,0,0);opacity:0;pointer-events:none}100%{transform:translate3d(0,0,0);opacity:1;pointer-events:auto}}.marquiz-pops_position_top-left{animation-name:marquiz__pop-fade-in_right;animation-duration:.5s;animation-timing-function:ease-in;opacity:0;animation-fill-mode:both;left:0}@keyframes marquiz__pop-fade-in_right{0%{transform:translate3d(-200px,0,0);opacity:0;pointer-events:none}100%{transform:translate3d(0,0,0);opacity:1;pointer-events:auto}}.marquiz-pops_position_top-right{animation-name:marquiz__pop-fade-in_left;animation-duration:.5s;animation-timing-function:ease-in;opacity:0;animation-fill-mode:both;right:0}@keyframes marquiz__pop-fade-in_left{0%{transform:translate3d(200px,0,0);opacity:0;pointer-events:none}100%{transform:translate3d(0,0,0);opacity:1;pointer-events:auto}}}",""]),t.default=o},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n.n(i)()(!1);o.push([e.i,".marquiz-widget iframe{width:100%;height:100%}.marquiz-widget__container{display:none;-ms-flex-direction:column;flex-direction:column;position:fixed;bottom:16px;border-radius:10px;width:350px;height:var(--widget-height,50px);overflow:hidden;box-shadow:0 15px 10px -15px rgba(0,0,0,0.1),1px 2px 20px rgba(0,0,0,0.1);z-index:2147483647}.marquiz-widget__container_left{left:16px}.marquiz-widget__container_left.marquiz-widget__container_fade{animation:.3s ease-in forwards fade-in_right;opacity:0}.marquiz-widget__container_right{right:16px}.marquiz-widget__container_right.marquiz-widget__container_fade{animation:.3s ease-in forwards fade-in_left;opacity:0}.marquiz-widget__container_closing{animation:.3s ease-in forwards hide-down}.marquiz-widget__stick{display:none;width:30px;height:3px;position:absolute;top:7px;left:calc(50% - 15px)}.marquiz-widget_open .marquiz-widget__container{height:580px;max-height:85%}.marquiz-widget_open .marquiz-widget__container_mobile .marquiz-widget__stick{display:-ms-flexbox;display:flex}@media (max-width:767px){.marquiz-widget_hide-on-mobile{display:none}}@media (max-width:480px){.marquiz-widget__container{width:calc(100% - 24px);bottom:12px;right:12px}.marquiz-widget__container_fade.marquiz-widget__container_mobile{animation:.3s ease-in forwards fade-in_up}.marquiz-widget__container_closing{animation:0 ease-in forwards hide-down}.marquiz-widget_open{background-color:rgba(0,0,0,0.3);transition:.15s;position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647}.marquiz-widget_open .marquiz-widget__container{width:100%;bottom:0;right:0;left:0;border-radius:10px 10px 0 0}.marquiz-widget_open .marquiz-widget__container_open-fade{animation:.15s cubic-bezier(.71,.09,.74,.91) forwards fade-in_up}}@keyframes fade-in_up{from{transform:translateY(100px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fade-in_left{from{transform:translateX(300px);opacity:0}to{transform:translateX(0);opacity:1}}@keyframes fade-in_right{from{transform:translateX(-300px);opacity:0}to{transform:translateX(0);opacity:1}}@keyframes hide-down{from{transform:translateY(0);opacity:1}to{transform:translateY(200px);opacity:0}}",""]),t.default=o},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n.n(i),r=n(4),a=n.n(r),s=n(27),c=n(28),u=o()(!1),l=a()(s.a),d=a()(c.a);u.push([e.i,".marquiz__scroll-fix{overflow:hidden}.marquiz__bg{top:0;bottom:0;left:0;right:0;background:rgba(25,25,25,0.89);visibility:hidden;position:fixed;opacity:0;z-index:-10000;overflow-x:hidden;overflow-y:auto;overflow-scrolling:touch;-webkit-overflow-scrolling:touch;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.marquiz__modal{visibility:hidden;z-index:100010;position:relative;max-width:1200px;width:80%}#marquiz__close{position:absolute;right:-40px;top:-40px;height:45px;width:45px;cursor:pointer;background:url("+l+") no-repeat 100% 0;background-size:16px;background-position:center;border:none;z-index:100020;box-sizing:border-box;padding:0;opacity:.6}#marquiz__close:hover{opacity:1}@media (max-width:1023px){#marquiz__close{background:url("+d+") no-repeat;background-size:28px;background-position:center;height:28px;width:28px}}@media (max-width:1023px){.marquiz__modal{top:0;left:0;right:0;bottom:0;margin:0;position:absolute;width:100%}#marquiz__close{right:0;top:0}}.icon-quiz{vertical-align:baseline}.marquiz__container{width:100%;text-align:center}@media (max-width:767px){.marquiz__container_hide-on-mobile{display:none}}.marquiz__frame{display:none;height:100%;width:100%;background:#fff;transition:height .2s ease-in}.marquiz__frame::-webkit-scrollbar{width:0}@media (min-width:1200px) and (max-width:1439px){.marquiz__frame{height:590px}}@media (min-width:1024px) and (max-width:1199px){.marquiz__frame{height:560px}}@media (min-width:1200px) and (max-width:1439px){.marquiz__modal{width:75%}}@media (min-width:1440px){.marquiz__frame{height:650px}}.marquiz__bg_open{visibility:visible;z-index:2147483647;opacity:1}.marquiz__bg_open .marquiz__modal{visibility:visible}.marquiz__frame_open{display:block;width:100%}",""]),t.default=u},function(e,t,n){"use strict";var i=n(18),o=n(19),r=n(20);function a(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function s(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function c(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,i){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),i[e][t[1]]=n):i[e]=n};case"bracket":return function(e,n,i){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],n):i[e]=[n]:i[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=o({arrayFormat:"none"},t)),i=Object.create(null);return"string"!=typeof e?i:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),o=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:r(a),n(r(o),a,i)})),Object.keys(i).sort().reduce((function(e,t){var n=i[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):i}t.extract=s,t.parse=c,t.stringify=function(e,t){!1===(t=o({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,i){return null===n?[a(t,e),"[",i,"]"].join(""):[a(t,e),"[",a(i,e),"]=",a(n,e)].join("")};case"bracket":return function(t,n){return null===n?a(t,e):[a(t,e),"[]=",a(n,e)].join("")};default:return function(t,n){return null===n?a(t,e):[a(t,e),"=",a(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(i){var o=e[i];if(void 0===o)return"";if(null===o)return a(i,t);if(Array.isArray(o)){var r=[];return o.slice().forEach((function(e){void 0!==e&&r.push(n(i,e,r.length))})),r.join("&")}return a(i,t)+"="+a(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:c(s(e),t)}}},function(e,t,n){"use strict";(function(e){var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){this.name=e,this.version=t,this.os=n};t.BrowserInfo=i;var o=function(t){this.version=t,this.name="node",this.os=e.platform};t.NodeInfo=o;var r=function(){this.bot=!0,this.name="bot",this.version=null,this.os=null};t.BotInfo=r;var a=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],s=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/]];function c(e){var t=""!==e&&a.reduce((function(t,n){var i=n[0],o=n[1];if(t)return t;var r=o.exec(e);return!!r&&[i,r]}),!1);if(!t)return null;var o=t[0],s=t[1];if("searchbot"===o)return new r;var c=s[1]&&s[1].split(/[._]/).slice(0,3);return c?c.length<3&&(c=n(c,function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(3-c.length))):c=[],new i(o,c.join("."),u(e))}function u(e){for(var t=0,n=s.length;t<n;t++){var i=s[t],o=i[0];if(i[1].test(e))return o}return null}function l(){return void 0!==e&&e.version?new o(e.version.slice(1)):null}t.detect=function(e){return e?c(e):"undefined"!=typeof navigator?c(navigator.userAgent):l()},t.parseUserAgent=c,t.detectOS=u,t.getNodeVersion=l}).call(this,n(21))},function(e,t,n){!function(t){var n=-1,i={onVisible:function(e){var t=i.isSupported();if(!t||!i.hidden())return e(),t;var n=i.change((function(t,o){i.hidden()||(i.unbind(n),e())}));return n},change:function(e){if(!i.isSupported())return!1;var t=n+=1;return i._callbacks[t]=e,i._listen(),t},unbind:function(e){delete i._callbacks[e]},afterPrerendering:function(e){var t=i.isSupported();if(!t||"prerender"!=i.state())return e(),t;var n=i.change((function(t,o){"prerender"!=o&&(i.unbind(n),e())}));return n},hidden:function(){return!(!i._doc.hidden&&!i._doc.webkitHidden)},state:function(){return i._doc.visibilityState||i._doc.webkitVisibilityState||"visible"},isSupported:function(){return void 0!==i._doc.hidden||void 0!==i._doc.webkitHidden},_doc:document||{},_callbacks:{},_change:function(e){var t=i.state();for(var n in i._callbacks)i._callbacks[n].call(i._doc,e,t)},_listen:function(){if(!i._init){var e="visibilitychange";i._doc.webkitVisibilityState&&(e="webkit"+e);var t=function(){i._change.apply(i,arguments)};i._doc.addEventListener?i._doc.addEventListener(e,t):i._doc.attachEvent(e,t),i._init=!0}}};e.exports?e.exports=i:t.Visibility=i}(this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.Utm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t}return i(e,[{key:"get",value:function(){if(0===this.url.length)throw{name:"Error",message:"Please, insert a valid url"};return this.url.includes("?")?this.url.includes("?")?(this.url=this.url.replace("?","&"),this.get()):"?"===this.url.charAt(0)||this.url.indexOf("?")>0?(this.removeValueBeforeParameters(),this.get()):void 0:this.extractParamsFromQueryString()}},{key:"extractParamsFromQueryString",value:function(){var t=Object.create({});return this.url.split("&").forEach((function(e){if(e.includes("=")){var n=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e.split("=")));n[0].length>0&&n[1].length>0&&(t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||void 0))}})),e.removeOthersParametersThanUtm(t)}},{key:"removeValueBeforeParameters",value:function(){return this.url=this.url.substr(this.url.indexOf("?")).replace("?","&")}}],[{key:"removeOthersParametersThanUtm",value:function(t){return e.compareObjectAndRemovePropertyNotInFirstObject({utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:""},t)}},{key:"compareObjectAndRemovePropertyNotInFirstObject",value:function(e,t){for(var n in t)e.hasOwnProperty(n)||delete t[n];return t}}]),e}()},function(e,t,n){var i;"undefined"!=typeof self&&self,i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){var t=void 0===e?"undefined":i(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(7),r="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,a=o||r||Function("return this")();e.exports=a},function(e,t,n){"use strict";var i=n(1).Symbol;e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(4),s=(i=a)&&i.__esModule?i:{default:i},c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.elementList=[],this._init()}return r(e,[{key:"add",value:function(e,t){var n=function(e){if("string"==typeof e)return document.querySelector(e);if(e instanceof HTMLElement)return e;throw new TypeError("prefetch was expecting a querySelector string or a HTML Element")}(e);n._elementBounds=function(e,t){var n=t.distance||40;if(isNaN(n))throw new TypeError("options.distance was expecting a number, was given: "+o(t.distance));return{top:e.top-(t.offsetX||n),bottom:e.bottom+(t.offsetX||n),left:e.left-(t.offsetY||n),right:e.right+(t.offsetY||n)}}(n.getBoundingClientRect(),this.options),n._callback=t,this.elementList.push(n)}},{key:"remove",value:function(e){var t=this.elementList.indexOf(e);t>-1&&this.elementList.splice(t,1)}},{key:"_init",value:function(){var e=this,t=(0,s.default)((function(t){var n=[];e.elementList.forEach((function(i){!function(e,t){return e.clientX,e.clientY,e.clientX<=t.right&&e.clientX>=t.left&&e.clientY<=t.bottom&&e.clientY>=t.top}(t,i._elementBounds)?e.options.persistent||n.push(i):i._callback.call(i,t)})),e.elementList=n}),e.options.throttleTime||100);this.eventCallback=t,document.addEventListener("mousemove",t)}},{key:"destory",value:function(){this.elementList=null,document.removeEventListener("mousemove",this.eventCallback)}}]),e}();t.default=c},function(e,t,n){"use strict";var i=n(5),o=n(0);e.exports=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),i(e,t,{leading:r,maxWait:t,trailing:a})}},function(e,t,n){"use strict";var i=n(0),o=n(6),r=n(9),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,u,l,d,f,p,m=0,h=!1,y=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=c,i=u;return c=u=void 0,m=t,d=e.apply(i,n)}function b(e){return m=e,f=setTimeout(w,t),h?g(e):d}function _(e){var n=e-p;return void 0===p||n>=t||n<0||y&&e-m>=l}function w(){var e=o();if(_(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-p);return y?s(n,l-(e-m)):n}(e))}function x(e){return f=void 0,v&&c?g(e):(c=u=void 0,d)}function z(){var e=o(),n=_(e);if(c=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(y)return f=setTimeout(w,t),g(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=r(t)||0,i(n)&&(h=!!n.leading,l=(y="maxWait"in n)?a(r(n.maxWait)||0,t):l,v="trailing"in n?!!n.trailing:v),z.cancel=function(){void 0!==f&&clearTimeout(f),m=0,c=p=u=f=void 0},z.flush=function(){return void 0===f?d:x(o())},z}},function(e,t,n){"use strict";var i=n(1);e.exports=function(){return i.Date.now()}},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=i}).call(t,n(8))},function(e,t,n){"use strict";var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i=n(0),o=n(10),r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(11),r=n(14);e.exports=function(e){return"symbol"==(void 0===e?"undefined":i(e))||r(e)&&"[object Symbol]"==o(e)}},function(e,t,n){"use strict";var i=n(2),o=n(12),r=n(13),a=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):r(e)}},function(e,t,n){"use strict";var i=n(2),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var o=a.call(e);return i&&(t?e[s]=n:delete e[s]),o}},function(e,t,n){"use strict";var i=Object.prototype.toString;e.exports=function(e){return i.call(e)}},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return null!=e&&"object"==(void 0===e?"undefined":i(e))}}])},e.exports=i()},function(e,t,n){e.exports=n(22)},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,n){"use strict";
|
||
/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))o.call(n,l)&&(c[l]=n[l]);if(i){s=i(n);for(var d=0;d<s.length;d++)r.call(n,s[d])&&(c[s[d]]=n[s[d]])}}return c}},function(e,t,n){"use strict";var i=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function r(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],r(n),r(i))}function a(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(i),n=1;n<t.length;n++)t=(e=r(t,n).join("")).match(i);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"<22><>","%FF%FE":"<22><>"},n=o.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=a(n[0]);i!==n[0]&&(t[n[0]]=i)}n=o.exec(e)}t["%C2"]="<22>";for(var r=Object.keys(t),s=0;s<r.length;s++){var c=r[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var c,u=[],l=!1,d=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=s(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||l||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){!function(t){var i=-1,o=function(e){return e.every=function(t,n,o){e._time(),o||(o=n,n=null);var r=i+=1;return e._timers[r]={visible:t,hidden:n,callback:o},e._run(r,!1),e.isSupported()&&e._listen(),r},e.stop=function(t){return!!e._timers[t]&&(e._stop(t),delete e._timers[t],!0)},e._timers={},e._time=function(){e._timed||(e._timed=!0,e._wasHidden=e.hidden(),e.change((function(){e._stopRun(),e._wasHidden=e.hidden()})))},e._run=function(n,i){var o,r=e._timers[n];if(e.hidden()){if(null===r.hidden)return;o=r.hidden}else o=r.visible;var a=function(){r.last=new Date,r.callback.call(t)};if(i){var s=new Date-r.last;o>s?r.delay=setTimeout((function(){r.id=setInterval(a,o),a()}),o-s):(r.id=setInterval(a,o),a())}else r.id=setInterval(a,o)},e._stop=function(t){var n=e._timers[t];clearInterval(n.id),clearTimeout(n.delay),delete n.id,delete n.delay},e._stopRun=function(t){var n=e.hidden(),i=e._wasHidden;if(n&&!i||!n&&i)for(var o in e._timers)e._stop(o),e._run(o,!n)},e};e.exports?e.exports=o(n(14)):o(t.Visibility||n(14))}(window)},,,,function(e,t,n){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAwIDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPgogIDxjaXJjbGUgZmlsbD0iI0IxQjFCMSIgc3Ryb2tlPSJub25lIiBjeD0iNiIgY3k9IjUwIiByPSI2Ij4KICAgIDxhbmltYXRlCiAgICAgIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiCiAgICAgIGR1cj0iMXMiCiAgICAgIHZhbHVlcz0iMDsxOzAiCiAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIgogICAgICBiZWdpbj0iMC4xIi8+CiAgPC9jaXJjbGU+CiAgPGNpcmNsZSBmaWxsPSIjQjFCMUIxIiBzdHJva2U9Im5vbmUiIGN4PSIyNiIgY3k9IjUwIiByPSI2Ij4KICAgIDxhbmltYXRlCiAgICAgIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiCiAgICAgIGR1cj0iMXMiCiAgICAgIHZhbHVlcz0iMDsxOzAiCiAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIgogICAgICBiZWdpbj0iMC4yIi8+CiAgPC9jaXJjbGU+CiAgPGNpcmNsZSBmaWxsPSIjQjFCMUIxIiBzdHJva2U9Im5vbmUiIGN4PSI0NiIgY3k9IjUwIiByPSI2Ij4KICAgIDxhbmltYXRlCiAgICAgIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiCiAgICAgIGR1cj0iMXMiCiAgICAgIHZhbHVlcz0iMDsxOzAiCiAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIgogICAgICBiZWdpbj0iMC4zIi8+CiAgPC9jaXJjbGU+Cjwvc3ZnPgo="},function(e,t,n){"use strict";t.a="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCiAgdmlld0JveD0iMCAwIDIxMi45ODIgMjEyLjk4MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjEyLjk4MiAyMTIuOTgyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgZmlsbD0iI2ZmZiI+CjxnIGlkPSJDbG9zZSI+CiAgPHBhdGggc3R5bGU9ImZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkOyIgZD0iTTEzMS44MDQsMTA2LjQ5MWw3NS45MzYtNzUuOTM2YzYuOTktNi45OSw2Ljk5LTE4LjMyMywwLTI1LjMxMgogICAgYy02Ljk5LTYuOTktMTguMzIyLTYuOTktMjUuMzEyLDBsLTc1LjkzNyw3NS45MzdMMzAuNTU0LDUuMjQyYy02Ljk5LTYuOTktMTguMzIyLTYuOTktMjUuMzEyLDBjLTYuOTg5LDYuOTktNi45ODksMTguMzIzLDAsMjUuMzEyCiAgICBsNzUuOTM3LDc1LjkzNkw1LjI0MiwxODIuNDI3Yy02Ljk4OSw2Ljk5LTYuOTg5LDE4LjMyMywwLDI1LjMxMmM2Ljk5LDYuOTksMTguMzIyLDYuOTksMjUuMzEyLDBsNzUuOTM3LTc1LjkzN2w3NS45MzcsNzUuOTM3CiAgICBjNi45ODksNi45OSwxOC4zMjIsNi45OSwyNS4zMTIsMGM2Ljk5LTYuOTksNi45OS0xOC4zMjIsMC0yNS4zMTJMMTMxLjgwNCwxMDYuNDkxeiIvPgo8L2c+Cjwvc3ZnPgo="},function(e,t,n){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMzcgMzciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAuMjc3OCAxMC4yNzc4QzkuNDI2MzQgMTEuMTI5MiA5LjQyNjM0IDEyLjUwOTcgMTAuMjc3OCAxMy4zNjExTDE1LjQxNjcgMTguNUwxMC4yNzc4IDIzLjYzODlDOS40MjYzNCAyNC40OTAzIDkuNDI2MzQgMjUuODcwOCAxMC4yNzc4IDI2LjcyMjJDMTEuMTI5MiAyNy41NzM3IDEyLjUwOTcgMjcuNTczNyAxMy4zNjExIDI2LjcyMjJMMTguNSAyMS41ODMzTDIzLjYzODkgMjYuNzIyMkMyNC40OTAzIDI3LjU3MzcgMjUuODcwOCAyNy41NzM3IDI2LjcyMjIgMjYuNzIyMkMyNy41NzM3IDI1Ljg3MDggMjcuNTczNyAyNC40OTAzIDI2LjcyMjIgMjMuNjM4OUwyMS41ODMzIDE4LjVMMjYuNzIyMiAxMy4zNjExQzI3LjU3MzcgMTIuNTA5NyAyNy41NzM3IDExLjEyOTIgMjYuNzIyMiAxMC4yNzc4QzI1Ljg3MDggOS40MjYzNCAyNC40OTAzIDkuNDI2MzQgMjMuNjM4OSAxMC4yNzc4TDE4LjUgMTUuNDE2N0wxMy4zNjExIDEwLjI3NzhDMTIuNTA5NyA5LjQyNjM0IDExLjEyOTIgOS40MjYzNCAxMC4yNzc4IDEwLjI3NzhaIiBmaWxsPSIjMzMzMzMzIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOS4yNSAxNC4zODg5QzcuODMwOTQgMTIuOTY5OCA3LjgzMDkzIDEwLjY2OTEgOS4yNSA5LjI1QzEwLjY2OTEgNy44MzA5MyAxMi45Njk4IDcuODMwOTQgMTQuMzg4OSA5LjI1TDE4LjUgMTMuMzYxMUwyMi42MTExIDkuMjVDMjQuMDMwMiA3LjgzMDkzIDI2LjMzMDkgNy44MzA5MyAyNy43NSA5LjI1QzI5LjE2OTEgMTAuNjY5MSAyOS4xNjkxIDEyLjk2OTggMjcuNzUgMTQuMzg4OUwyMy42Mzg5IDE4LjVMMjcuNzUgMjIuNjExMUMyOS4xNjkxIDI0LjAzMDIgMjkuMTY5MSAyNi4zMzA5IDI3Ljc1IDI3Ljc1QzI2LjMzMDkgMjkuMTY5MSAyNC4wMzAyIDI5LjE2OTEgMjIuNjExMSAyNy43NUwxOC41IDIzLjYzODlMMTQuMzg4OSAyNy43NUMxMi45Njk4IDI5LjE2OTEgMTAuNjY5MSAyOS4xNjkxIDkuMjUgMjcuNzVDNy44MzA5MyAyNi4zMzA5IDcuODMwOTMgMjQuMDMwMiA5LjI1IDIyLjYxMTFMMTMuMzYxMSAxOC41TDkuMjUgMTQuMzg4OVpNMTAuMjc3OCAxMy4zNjExQzkuNDI2MzQgMTIuNTA5NyA5LjQyNjM0IDExLjEyOTIgMTAuMjc3OCAxMC4yNzc4QzExLjEyOTIgOS40MjYzNCAxMi41MDk3IDkuNDI2MzQgMTMuMzYxMSAxMC4yNzc4TDE4LjUgMTUuNDE2N0wyMy42Mzg5IDEwLjI3NzhDMjQuNDkwMyA5LjQyNjM0IDI1Ljg3MDggOS40MjYzNCAyNi43MjIyIDEwLjI3NzhDMjcuNTczNyAxMS4xMjkyIDI3LjU3MzcgMTIuNTA5NyAyNi43MjIyIDEzLjM2MTFMMjEuNTgzMyAxOC41TDI2LjcyMjIgMjMuNjM4OUMyNy41NzM3IDI0LjQ5MDMgMjcuNTczNyAyNS44NzA4IDI2LjcyMjIgMjYuNzIyMkMyNS44NzA4IDI3LjU3MzcgMjQuNDkwMyAyNy41NzM3IDIzLjYzODkgMjYuNzIyMkwxOC41IDIxLjU4MzNMMTMuMzYxMSAyNi43MjIyQzEyLjUwOTcgMjcuNTczNyAxMS4xMjkyIDI3LjU3MzcgMTAuMjc3OCAyNi43MjIyQzkuNDI2MzQgMjUuODcwOCA5LjQyNjM0IDI0LjQ5MDMgMTAuMjc3OCAyMy42Mzg5TDE1LjQxNjcgMTguNUwxMC4yNzc4IDEzLjM2MTFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"},,,function(e,t,n){"use strict";var i=n(1),o=n.n(i),r=n(7),a={insert:"head",singleton:!1},s=o()(r.default,a);if(!r.default.locals||e.hot.invalidate){var c=r.default.locals;e.hot.accept(7,function(t){r=n(7),function(e,t,n){if(!e&&t||e&&!t)return!1;var i;for(i in e)if((!n||"default"!==i)&&e[i]!==t[i])return!1;for(i in t)if(!(n&&"default"===i||e[i]))return!1;return!0}(c,r.default.locals,void 0)?(c=r.default.locals,s(r.default)):e.hot.invalidate()}.bind(this))}e.hot.dispose((function(){s()}));r.default.locals},function(e,t,n){"use strict";var i=n(1),o=n.n(i),r=n(8),a={insert:"head",singleton:!1},s=o()(r.default,a);if(!r.default.locals||e.hot.invalidate){var c=r.default.locals;e.hot.accept(8,function(t){r=n(8),function(e,t,n){if(!e&&t||e&&!t)return!1;var i;for(i in e)if((!n||"default"!==i)&&e[i]!==t[i])return!1;for(i in t)if(!(n&&"default"===i||e[i]))return!1;return!0}(c,r.default.locals,void 0)?(c=r.default.locals,s(r.default)):e.hot.invalidate()}.bind(this))}e.hot.dispose((function(){s()}));r.default.locals},function(e,t,n){"use strict";var i=n(1),o=n.n(i),r=n(9),a={insert:"head",singleton:!1},s=o()(r.default,a);if(!r.default.locals||e.hot.invalidate){var c=r.default.locals;e.hot.accept(9,function(t){r=n(9),function(e,t,n){if(!e&&t||e&&!t)return!1;var i;for(i in e)if((!n||"default"!==i)&&e[i]!==t[i])return!1;for(i in t)if(!(n&&"default"===i||e[i]))return!1;return!0}(c,r.default.locals,void 0)?(c=r.default.locals,s(r.default)):e.hot.invalidate()}.bind(this))}e.hot.dispose((function(){s()}));r.default.locals},function(e,t,n){"use strict";var i=n(1),o=n.n(i),r=n(10),a={insert:"head",singleton:!1},s=o()(r.default,a);if(!r.default.locals||e.hot.invalidate){var c=r.default.locals;e.hot.accept(10,function(t){r=n(10),function(e,t,n){if(!e&&t||e&&!t)return!1;var i;for(i in e)if((!n||"default"!==i)&&e[i]!==t[i])return!1;for(i in t)if(!(n&&"default"===i||e[i]))return!1;return!0}(c,r.default.locals,void 0)?(c=r.default.locals,s(r.default)):e.hot.invalidate()}.bind(this))}e.hot.dispose((function(){s()}));r.default.locals},function(e,t,n){"use strict";var i=n(1),o=n.n(i),r=n(11),a={insert:"head",singleton:!1},s=o()(r.default,a);if(!r.default.locals||e.hot.invalidate){var c=r.default.locals;e.hot.accept(11,function(t){r=n(11),function(e,t,n){if(!e&&t||e&&!t)return!1;var i;for(i in e)if((!n||"default"!==i)&&e[i]!==t[i])return!1;for(i in t)if(!(n&&"default"===i||e[i]))return!1;return!0}(c,r.default.locals,void 0)?(c=r.default.locals,s(r.default)):e.hot.invalidate()}.bind(this))}e.hot.dispose((function(){s()}));r.default.locals},function(e,t,n){"use strict";n.r(t);var i=n(0),o=n.n(i),r=n(17),a=n.n(r);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(e){return s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":s(e)};
|
||
/*!
|
||
* before-leaving-me.js
|
||
* ====================
|
||
* Do thing before the user leaves your web page.
|
||
*
|
||
* Developed with JavaScript and <3 by Ionică Bizău.
|
||
* */var u=function(){var e={},t=["roistat_visit","roistat_first_visit","lp_tracker","_comagic","_userid","_ym_uid","carrotquest_uid","sessionId","session_id","_fbp","_fbc","advcake_track_id","advcake_track_url","fb_login_id","clbvid"],n=["_ga"],i=o.a.get(),r=function(o){t.forEach((function(t){o&&o.indexOf(t)>=0&&(e[o]=i[o])})),n.indexOf(o)>=0&&(e[o]=i[o])};for(var a in i)r(a);try{!e.roistat_visit&&localStorage.getItem("roistat_visit")&&(e.roistat_visit=localStorage.getItem("roistat_visit"))}catch(e){}return e},l=n(3),d=n(16),f=n.n(d),p=n(13);function m(){var e=Object(p.detect)();return(null===e||e&&["ios","iOS"].indexOf(e.os)>=0)&&document.body.clientWidth<1023}function h(){if(m()){var e=Object(p.detect)(),t=Number(parseInt(e&&e.version));return t&&t>=13}}var y=n(12),v=n.n(y),g=n(15);function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var w=function(){function e(t){var n=t.id,i=t.host,o=t.isTest,r=t.contacts;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=n,this.host=i||window.Marquiz.host,this.isTest=o||window.Marquiz.isTest,this.contacts=r||window.Marquiz.contacts,this._params=window.Marquiz._params,this._query=window.Marquiz._query,this.element=null,this.frame=null}var t,n,i;return t=e,(n=[{key:"createUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};if(t.href=window.location.href,document.referrer&&(t.referrer=document.referrer),t.mode="modal",this.isTest&&(t.test=1),this.contacts){var n={};for(var i in this.contacts)try{n["field_".concat(btoa(i))]=btoa(this.contacts[i])}catch(e){}t=b(t,n)}t=b(t,this._query),t=b(t,e);try{t=b(t,v.a.parse(window.location.search))}catch(e){}var o=u();"{}"!==JSON.stringify(o)&&(t.cookies=JSON.stringify(o));var r=this._getGAClientId();return r&&(t._ga=r),t=b(t,this._getUrlParams()),"{}"!==JSON.stringify(this._params)&&(t.params=JSON.stringify(this._params)),"".concat(this._getHost(),"/").concat(this.id,"?").concat(v.a.stringify(t))}},{key:"addParam",value:function(e,t){this._params[e]=t,this.frame&&this.sendDataToFrame("addParam",this._params)}},{key:"sendDataToFrame",value:function(e,t){this.frame.contentWindow.postMessage({method:e,data:t},"*")}},{key:"_getUrlParams",value:function(){var e={},t=o.a.get("marquiz__url_params");t&&(e=JSON.parse(t));var n={};try{window.location.search&&(n=new g.Utm(window.location.search).get())}catch(e){}e=b(e,n);var i=["yclid","ymclid","gclid","fbclid","ad"],r=v.a.parse(window.location.search);for(var a in r)i.indexOf(a)>=0&&(e[a]=r[a]);return o.a.set("marquiz__url_params",JSON.stringify(e),{expires:7}),e}},{key:"_getGAClientId",value:function(){var e=o.a.get("_ga");if(!e)return null;var t=/GA([0-9]+).([0-9]+).([0-9]+).([0-9]+)/.exec(e);return"".concat(t[3],".").concat(t[4])}},{key:"_getHost",value:function(){try{if(Array.from(document.scripts).find((function(e){return/script.marquiz.io/i.test(e.src)})))return"//quiz.marquiz.io"}catch(e){console.error("marquiz__error",e)}return this.host}}])&&_(t.prototype,n),i&&_(t,i),e}();function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==x(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(r,e);var t,n,i,o=k(r);function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=o.call(this,e)).frame=null,r.modalsWrapperIsCreated||r._createModalsWrapper(),t}return t=r,i=[{key:"_createModalsWrapper",value:function(){var e=document.createElement("div");e.className="marquiz__modal";var t=document.createElement("div");t.className="marquiz__bg",t.onclick=function(){return r._closeModal()};var n=document.createElement("button");n.innerHTML=" ",n.id="marquiz__close",n.onclick=function(){return r._closeModal()},e.appendChild(n),document.body.appendChild(t),t.appendChild(e),r.modal=e,r.bg=t,r.modalsWrapperIsCreated=!0}},{key:"_closeModal",value:function(){Object(l.clearAllBodyScrollLocks)(),document.body.classList.remove("marquiz__scroll-fix"),r.bg.classList.remove("marquiz__bg_open"),r.modal.querySelectorAll("iframe").forEach((function(e){e.classList.remove("marquiz__frame_open"),e.contentWindow.postMessage({method:"closeModal"},"*")})),r._changeViewport(!0),r._removeHash(),r.activeModal=null,r._scrollY&&window.scrollTo({top:this._scrollY})}},{key:"_changeViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.viewport){var t=document.head.querySelector("meta[name=viewport]");t?(this.viewport=t,this.viewportContent=t.content):(this.viewport=document.createElement("meta"),this.viewport.name="viewport",document.head.appendChild(this.viewport))}e?this.viewport.setAttribute("content",this.viewportContent||""):this.viewport.setAttribute("content","width=device-width, initial-scale=1")}},{key:"_removeHash",value:function(){history.pushState("",document.title,window.location.pathname+window.location.search)}}],(n=[{key:"createModalContent",value:function(){if(!this.frame){var e=document.getElementById("marquiz__frame_".concat(this.id));if(e)this.frame=e;else{var t=document.createElement("iframe");t.id="marquiz__frame_".concat(this.id),t.className="marquiz__frame",t.src=this.createUrl(),t.scrolling="auto",t.frameBorder=0,t.allow="autoplay",this.frame=t,r.modal.appendChild(t)}}}},{key:"show",value:function(){if(!r.activeModal&&(r._scrollY=window.scrollY,this.frame||this.createModalContent(),this.frame)){if(Object(l.disableBodyScroll)(r.modal),m()){if(!h())return r._closeModal(),void window.open(this.frame.src);document.body.classList.add("marquiz__scroll-fix")}r.bg.height=window.height,r._changeViewport(),r.bg.classList.add("marquiz__bg_open"),r.activeModal=this,this.frame.classList.add("marquiz__frame_open"),this.sendDataToFrame("openModal")}}},{key:"setFrameHeight",value:function(e){if(this.frame){if(document.body.clientWidth<1023)return;window.innerHeight<e&&(e=window.innerHeight-70),e<650&&(e=650),this.frame.style.height="".concat(e,"px")}}}])&&z(t.prototype,n),i&&z(t,i),r}(w);q(I,"modalsWrapperIsCreated",!1),q(I,"modal",null),q(I,"bg",null),q(I,"_scrollY",null),q(I,"activeModal",null),q(I,"mouseNear",new f.a({distance:200}));var S=I,T=function(){return'<svg class="icon-quiz marquiz__icon-quiz" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 434.168 434.168" style="enable-background:new 0 0 434.168 434.168;" xml:space="preserve">\n <g>\n <path d="M332.318,230.196V34.967H40.93v364.235h134.038c9.616,0,17.483,7.867,17.483,17.483s-7.867,17.483-17.483,17.483H23.446c-9.616,0-17.483-7.867-17.483-17.483V17.483C5.963,7.867,13.831,0,23.446,0h326.354c9.616,0,17.483,7.867,17.483,17.483v212.713c0,9.616-7.867,17.483-17.483,17.483S332.318,239.812,332.318,230.196z M422.357,272.739c-7.285-6.411-18.357-5.828-24.768,1.457l-95.867,106.648l-48.079-46.331c-6.993-6.702-18.066-6.411-24.768,0.583s-6.411,18.066,0.583,24.768l61.191,58.86c3.205,3.205,7.576,4.954,12.238,4.954c0.291,0,0.291,0,0.583,0c4.662-0.291,9.324-2.331,12.238-5.828l107.814-120.052C430.224,290.222,429.641,279.15,422.357,272.739z M268.212,101.986H110.863c-9.616,0-17.483,7.867-17.483,17.483s7.867,17.483,17.483,17.483h157.349c9.616,0,17.483-7.867,17.483-17.483S277.828,101.986,268.212,101.986z M285.696,215.627c0-9.616-7.867-17.483-17.483-17.483H110.863c-9.616,0-17.483,7.867-17.483,17.483c0,9.616,7.867,17.483,17.483,17.483h157.349C277.828,233.11,285.696,225.243,285.696,215.627z M110.863,291.388c-9.616,0-17.483,7.867-17.483,17.483c0,9.616,7.867,17.483,17.483,17.483h46.622c9.616,0,17.483-7.867,17.483-17.483c0-9.616-7.867-17.483-17.483-17.483H110.863z"/>\n </g>\n </svg>'};n(31);function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return D(this,n)}}function D(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(r,e);var t,n,i,o=A(r);function r(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=o.call(this,e),!t.hasAttribute("data-marquiz-id")?n._renderV1(t):n._render(e,t),n._addEvents(e.autoload),n}return t=r,(n=[{key:"_render",value:function(e,t){var n=this._createLink(e);this.element=n,t&&(t.removeAttribute("data-marquiz-id"),t.classList.add("marquiz__container"),e.disableOnMobile&&t.classList.add("marquiz__container_hide-on-mobile"),t.append(n))}},{key:"_renderV1",value:function(e){this.element=e,this._setColors(e);var t=e.getAttribute("data-fixed-side");t&&this._addIcon(e,t)}},{key:"_addEvents",value:function(e){var t=this;this.element.onclick=function(e){e.preventDefault(),t.show()},S.mouseNear.add(this.element,(function(){!1!==e&&t.createModalContent()}))}},{key:"_setColors",value:function(e){["data-color","data-text-color","data-alpha-color"].forEach((function(t){try{var n=t.split("-").slice(1).join("-");e.style.setProperty("--marquiz-button-".concat(n),e.getAttribute(t))}catch(e){console.error(e)}}))}},{key:"_createLink",value:function(e){var t=e.id,n=e.buttonText,i=e.bgColor,o=e.textColor,r=e.rounded,a=e.shadow,s=e.blicked,c=e.fixed,u=document.createElement("a");return u.classList.add("marquiz__button"),s&&u.classList.add("marquiz__button_blicked"),r&&u.classList.add("marquiz__button_rounded"),a&&u.classList.add("marquiz__button_shadow"),c&&u.classList.add("marquiz__button_fixed","marquiz__button_fixed-".concat(c)),u.setAttribute("href","#popup:marquiz_".concat(t)),u.setAttribute("data-version","2"),u.setAttribute("style","--marquiz-button-color:".concat(i,"; --marquiz-button-text-color:").concat(o,"; --marquiz-button-alpha-color:").concat(a,";")),u.innerHTML=n,c&&this._addIcon(u,c),u}},{key:"_addIcon",value:function(e,t){var n=document.createElement("span");n.classList.add("marquiz__text");var i=e.firstChild.textContent;n.innerHTML=i;var o=document.createElement("span");o.innerHTML=T(),e.innerHTML="",e.appendChild(n);var r=e.firstChild;"right"===t&&(r=r.nextSubling),e.insertBefore(o,r)}}])&&L(t.prototype,n),i&&L(t,i),r}(S);n(32);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=W(e);if(t){var o=W(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(r,e);var t,n,i,o=H(r);function r(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=o.call(this,e,t)).button=n._createButton(e,t),n.render(e,t),n}return t=r,(n=[{key:"render",value:function(e,t){var n=t.classList.contains("marquiz__button");n||t.classList.add("marquiz__container","marquiz__container_inline");var i=n?t.parentNode:t,o=n?i.dataset:e,r=o.height,a=o.width,s=o.radius,c=o.indent,u=document.createElement("iframe");u.id="marquiz__inline-frame_".concat(e.id),u.className="marquiz__inline-frame",u.src=this.createUrl({mode:"inline"}),u.scrolling="auto",u.frameBorder="0",u.style.width=a?"".concat(a,"px"):"100%",u.style.height=r?"".concat(r,"px"):"600px",u.allow="autoplay",this.frame=u,(n?this._hasButtonOnMobile(i):!!e.buttonOnMobile)&&i.classList.add("marquiz__container_has_button"),c&&(i.style.marginTop="".concat(c,"px"),i.style.marginBottom="".concat(c,"px")),this._isMobile()||(i.style.width=a?"".concat(a,"px"):"100%",i.style.height=r?"".concat(r,"px"):"600px"),s&&(u.style.borderRadius="".concat(s,"px"),i.style.borderRadius="".concat(s,"px")),i.appendChild(u),i.style.height="auto",this.element=i,n||i.appendChild(this.button.element)}},{key:"_createButton",value:function(e,t){return new P(e,t)}},{key:"_hasButtonOnMobile",value:function(e){return!e.querySelector(".marquiz__button")||"false"!==e.querySelector(".marquiz__button").dataset.hideQuizOnMobile}},{key:"_isMobile",value:function(){return document.body.clientWidth<1023}}])&&R(t.prototype,n),i&&R(t,i),r}(S),F=function(){return'<svg width="22" height="20" viewBox="0 0 22 20" class="marquiz-gift-icon">\n <path d="M22 12v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8a1 1 0 0 1-1-1V8a2 2 0 0 1 2-2h3.17A3 3 0 0 1 9 2a3.034 3.034 0 0 1 2.43 1.24v-.01L12 4l.57-.77v.01A3.034 3.034 0 0 1 15 2a3 3 0 0 1 2.83 4H21a2 2 0 0 1 2 2v3a1 1 0 0 1-1 1M4 20h7v-8H4v8m16 0v-8h-7v8h7M9 4a1 1 0 1 0 1 1 1 1 0 0 0-1-1m6 0a1 1 0 1 0 1 1 1 1 0 0 0-1-1M3 8v2h8V8H3m10 0v2h8V8z" transform="translate(-1 -2)"/>\n</svg>\n'},Z=function(){return'<svg xmlns="http://www.w3.org/2000/svg" width="5.855" height="5.855" viewBox="0 0 5.855 5.855">\n <path id="cancel" d="M3.77,3.021a.129.129,0,0,1,0-.187L5.775.829a.289.289,0,0,0,.08-.187.289.289,0,0,0-.08-.187L5.4.08A.289.289,0,0,0,5.214,0a.243.243,0,0,0-.187.08L3.021,2.085a.129.129,0,0,1-.187,0L.829.08A.289.289,0,0,0,.642,0,.289.289,0,0,0,.455.08L.08.455A.289.289,0,0,0,0,.642.289.289,0,0,0,.08.829L2.085,2.834a.129.129,0,0,1,0,.187L.08,5.026a.258.258,0,0,0,0,.374l.374.374a.289.289,0,0,0,.187.08.289.289,0,0,0,.187-.08L2.834,3.77a.129.129,0,0,1,.187,0L5.026,5.775a.258.258,0,0,0,.374,0L5.775,5.4a.258.258,0,0,0,0-.374Z"/>\n</svg>'};n(33);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==Q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(r,e);var t,n,i,o=J(r);function r(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=o.call(this,e),t?n._renderV1(t):n._render(e,t),n._setIcon(),n._addClosePopButton(),n._setDelay(e.delay),n._addBonuses(e.bonusCount,e.bonusText),n._addMouseEvent(e.autoload),n}return t=r,(n=[{key:"_render",value:function(e){var t=e.rounded,n=e.shadow,i=e.pulse,o=e.blicked,r=e.position,a=e.svgColor,s=e.closeColor,c=e.bgColor,u=e.textColor,l=e.disableOnMobile,d=document.createElement("div");d.classList.add("marquiz-pops"),l&&d.classList.add("marquiz-pops_hide-on-mobile"),o&&d.classList.add("marquiz-pops_blicked"),t&&d.classList.add("marquiz-pops_rounded"),n&&d.classList.add("marquiz-pops_shadow"),i&&d.classList.add("marquiz-pops_pulse"),d.classList.add("marquiz-pops_".concat(r)),"position_top"!==r&&"position_bottom"!==r&&d.classList.add("marquiz-pops_position"),d.setAttribute("style","--marquiz-pop-text-color:".concat(u,"; --marquiz-pop-background-color:").concat(c,"; --marquiz-pop-svg-color:").concat(a,"; --marquiz-pop-close-color:").concat(s,"; --marquiz-pop-color-pulse:").concat(i,"; --marquiz-pop-color-pulse-alpha:").concat(n,";"));var f=this._createLink(e);d.append(f),this.element=f,document.body.append(d)}},{key:"_renderV1",value:function(e){this.element=e,this._setPopsColors(this.element)}},{key:"_createLink",value:function(e){var t=e.id,n=e.title,i=e.text,o=document.createElement("a");return o.classList.add("marquiz-pops__body"),o.setAttribute("href","#popup:marquiz_".concat(t)),o.innerHTML='<span class="marquiz-pops__icon"></span><span class="marquiz-pops__content"><span class="marquiz-pops__content-title">'.concat(n,'</span><span class="marquiz-pops__content-text">«').concat(i,"»</span></span>"),o}},{key:"_addClosePopButton",value:function(){var e=this,t=this.element.parentNode,n=document.createElement("span"),i=document.createElement("span");n.classList.add("marquiz-pops__close-wrapper"),i.classList.add("marquiz-pops__close"),i.innerHTML=Z(),n.appendChild(i),t.appendChild(n),this.element.onclick=function(t){t.preventDefault(),e.show()},n.addEventListener("click",(function(){t.style.display="none"}),!1)}},{key:"_setPopsColors",value:function(e){["data-marquiz-pop-text-color","data-marquiz-pop-background-color","data-marquiz-pop-svg-color","data-marquiz-pop-close-color","data-marquiz-pop-color-pulse","data-marquiz-pop-color-pulse-alpha"].forEach((function(t){try{var n=t.split("-").slice(1).join("-");e.parentNode.style.setProperty("--".concat(n),e.getAttribute(t))}catch(e){console.error(e)}}))}},{key:"_setDelay",value:function(e){var t,n=this;t=void 0!==e?e:this.element.dataset.marquizPopDelay?parseInt(this.element.dataset.marquizPopDelay):0,setTimeout((function(){n.element.parentNode.style.display="flex"}),1e3*t)}},{key:"_addBonuses",value:function(e,t){var n,i;if(n=void 0!==e?e:Number(this.element.getAttribute("data-marquiz-pop-bonuses")),t?((i=document.createElement("span")).classList.add("marquiz-pops__bonus"),i.innerHTML=t,this.element.appendChild(i)):i=this.element.getElementsByClassName("marquiz-pops__bonus")[0],i&&n>0){var o=document.createElement("span");o.classList.add("marquiz-pops__bonus-icon"),o.innerHTML=F();var r=document.createElement("span");r.classList.add("marquiz-pops__bonus-count"),r.innerHTML=n,o.appendChild(r),i.insertBefore(o,i.firstChild)}}},{key:"_setIcon",value:function(){this.element.getElementsByClassName("marquiz-pops__icon")[0].innerHTML=T()}},{key:"_addMouseEvent",value:function(e){var t=this;S.mouseNear.add(this.element,(function(){!1!==e&&t.createModalContent()}))}}])&&X(t.prototype,n),i&&X(t,i),r}(S);function te(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var ne=function(){function e(t,n,i){var o=i.direction,r=void 0===o?"bottom":o,a=i.tapAdditionalSizes,s=i.distance,c=void 0===s?"50%":s,u=i.minDistance,l=void 0===u?20:u,d=i.speed,f=void 0===d?"500":d,p=i.vibration,m=void 0===p||p,h=i.cbStart,y=void 0===h?function(){}:h,v=i.cbFinish,g=void 0===v?function(){}:v,b=i.cbMoving,_=void 0===b?function(){}:b,w=i.cbReadyToClose,x=void 0===w?function(){}:w,z=i.cbNotReadyToClose,M=void 0===z?function(){}:z,k=i.cbBack,j=void 0===k?function(){}:k,O=i.cbBeforeBack,q=void 0===O?function(){}:O,I=i.cbBeforeFinish,S=void 0===I?function(){}:I;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&n&&(this.target=t,this.direction=r,this.tapTarget=this._createTapElement(n,a),this.maxSpeed=f,this.distance=c,this.minDistance=l,this.vibration=m,this.cbStart=y,this.cbFinish=g,this.cbMoving=_,this.cbReadyToClose=x,this.cbNotReadyToClose=M,this.cbBack=j,this.cbBeforeBack=q,this.cbBeforeFinish=S,this._init())}var t,n,i;return t=e,(n=[{key:"back",value:function(e,t,n){var i=this;this.moving||(this.cbBeforeBack(e,300,t,n),this.target.style.transition="300ms ease-out",this.target.style.transform="translate3d(0, 0, 0)",setTimeout((function(){i.target.style.transition="",i.cbBack(e,300,t,n)}),300))}},{key:"close",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,i=arguments.length>2?arguments[2]:void 0;this.moving||(this.cbBeforeFinish(e,n,i),this.target.style.transition="".concat(n,"ms ease-out"),this.target.style.transform="translate3d(0, 110%, 0)",setTimeout((function(){t.target.style.transition="",t.target.style.transform="translate3d(0, 0, 0)",t.cbFinish(e,n,i)}),n))}},{key:"_createTapElement",value:function(e,t){"static"===window.getComputedStyle(e).position&&(e.style.position="relative");var n=document.createElement("span");n.classList.add("tap-target"),n.setAttribute("style","position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; overscroll-behavior: none;"),e.append(n);var i=t.top,o=void 0===i?0:i,r=t.bottom,a=void 0===r?0:r,s=t.right,c=void 0===s?0:s,u=t.left,l=void 0===u?0:u;return n.style.top="-".concat(o),n.style.height="calc(".concat(n.style.height," + ").concat(o,")"),n.style.bottom=a,n.style.height="calc(".concat(n.style.height," + ").concat(a,")"),n.style.right=c,n.style.width="calc(".concat(n.style.width," + ").concat(c,")"),n.style.left="-".concat(l),n.style.width="calc(".concat(n.style.width," + ").concat(l,")"),n}},{key:"_init",value:function(){this.moving=!1,this._isTouchDevice()||this.tapTarget.addEventListener("click",this.close.bind(this)),this.tapTarget.addEventListener("touchstart",this._start.bind(this)),this.tapTarget.addEventListener("touchmove",this._throttle(this._move,25).bind(this)),this.tapTarget.addEventListener("touchend",this._finish.bind(this))}},{key:"_start",value:function(e){this.moving=!0;var t=e.changedTouches[0];this.startPosY=t.pageY,this.startPosX=t.pageX,this.startTime=e.timeStamp,this.cbStart(e)}},{key:"_move",value:function(e){if(this.moving){var t=e.changedTouches[0],n=this._getDistanceForClosing(),i=this._getDistance(t),o=100*i/this.target.clientHeight;this._translate(t),this._borderPassingHandler(e,i,o,n),this.cbMoving(e,i,o)}}},{key:"_finish",value:function(e){this.moving=!1;var t=e.changedTouches[0],n=this._getDistance(t),i=this._getDistanceForClosing(),o=e.timeStamp-this.startTime;o<=this.maxSpeed&&n>=this.minDistance?this.close(e,o,n):n>i?this.close(e,300,n):this.back(e,o,n)}},{key:"_translate",value:function(e){switch(this.direction){case"bottom":e.pageY>=this.startPosY?this.target.style.transform="translate3d(0, ".concat(e.pageY-this.startPosY,"px, 0)"):this.target.style.transform="translate3d(0, 0, 0)";break;case"top":e.pageY<=this.startPosY?this.target.style.transform="translate3d(0, ".concat(e.pageY-this.startPosY,"px, 0)"):this.target.style.transform="translate3d(0, 0, 0)";break;case"right":e.pageX>=this.startPosX?this.target.style.transform="translate3d(".concat(e.pageX-this.startPosX,"px, 0, 0)"):this.target.style.transform="translate3d(0, 0, 0)";break;case"left":e.pageX<=this.startPosX?this.target.style.transform="translate3d(".concat(e.pageX-this.startPosX,"px, 0, 0)"):this.target.style.transform="translate3d(0, 0, 0)"}}},{key:"_borderPassingHandler",value:function(e,t,n,i){t>i?this.borderHasPassed||(this.cbReadyToClose(e,t,n),this.borderHasPassed=!0,this.vibration&&this._vibrate()):this.borderHasPassed&&(this.borderHasPassed=!1,this.cbNotReadyToClose(e,t,n))}},{key:"_getDistanceForClosing",value:function(){var e=this.target.clientHeight;return"%"===this.distance.slice(-1)?e*parseFloat(this.distance)/100:"px"===this.distance.slice(-2)?parseFloat(this.distance):e/2}},{key:"_getDistance",value:function(e){return"bottom"===this.direction||"top"===this.direction?e.pageY-this.startPosY:e.pageX-this.startPosX}},{key:"_vibrate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:35;if(!window.navigator||!window.navigator.vibrate)try{window.navigator.vibrate(e)}catch(e){console.log(e)}}},{key:"_isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"_throttle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=null;return function(){for(var i=this,o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];null===n&&(n=setTimeout((function(){e.apply(i,r),n=null}),t))}}}])&&te(t.prototype,n),i&&te(t,i),e}();n(34);function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(a,e);var t,n,i,r=ce(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=r.call(this,e)).loaded=!1,t.autoOpenDelay=e.autoOpen,t.appearDelayPassed=!1,t.finish=!1,t.disableIfClosed=e.disableIfClosed,t._setAppearDelay(e.delay),t._addMessageListeners(),t._render(e),t}return t=a,(n=[{key:"_render",value:function(e){var t=this,n=e.position,i=e.disableOnMobile,o=document.createElement("div");o.classList.add("marquiz-widget"),i&&o.classList.add("marquiz-widget_hide-on-mobile"),this.element=document.createElement("div"),this.element.classList.add("marquiz-widget__container"),this.element.classList.add("marquiz-widget__container_".concat(n)),this.element.classList.add("marquiz-widget__container_".concat(this._getWidgetType())),o.append(this.element);var r=document.createElement("div");r.classList.add("marquiz-widget__stick"),this.element.append(r);var a=new ne(this.element,r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({tapAdditionalSizes:{top:"30px",bottom:"30px",left:"400%",right:"400%"},distance:"50%",cbFinish:function(){t.element.parentNode.removeAttribute("style"),t._close(o)}},this._setBackgroundChanging())),s=document.createElement("iframe");s.id="marquiz-widget_".concat(this.id),s.className="marquiz-widget__iframe",s.src=this.createUrl({mode:"widget","widget-type":this._getWidgetType()}),s.scrolling="auto",s.frameBorder="0",s.allow="autoplay",this.frame=s,this.element.append(s);var c=document.createElement("span");c.classList.add("marquiz-widget__close"),this.element.append(c),o.addEventListener("click",(function(e){e.target.classList.contains("marquiz-widget_open")&&a.close()})),document.querySelector("body").append(o)}},{key:"_addMessageListeners",value:function(){var e=this;window.addEventListener("message",(function(t){var n=t.data;try{if((n=JSON.parse(n)).id===e.id)switch(n.action){case"loaded":e._loadingHandler();break;case"openWidget":e._open();break;case"closeWidget":e._close();break;case"setPreviewHeight":e._setHeight(n.height);break;case"finished":e.finish=!0}}catch(e){}}))}},{key:"_loadingHandler",value:function(){var e=this;this.loaded=!0,this._appear((function(){void 0!==e.autoOpenDelay&&e._setOpeningDelay(e.autoOpenDelay)}))}},{key:"_appear",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};this.appearDelayPassed&&this.loaded&&!o.a.get("marquiz__widget-closed")&&(this.element.style.display="flex",this.element.classList.add("marquiz-widget__container_fade"),this.element.onanimationend=function(){e.element.classList.remove("marquiz-widget__container_fade"),t()})}},{key:"_appearAfterClosing",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.element.style.display="none",setTimeout((function(){e._appear()}),t)}},{key:"_open",value:function(){var e=this;this.element.parentNode.classList.add("marquiz-widget_open"),this.element.classList.add("marquiz-widget__container_open-fade"),this.element.onanimationend=function(){e.element.classList.remove("marquiz-widget__container_open-fade")},"mobile"===this._getWidgetType()&&(Object(l.disableBodyScroll)(this.element.parentNode),m()&&(h()?document.body.classList.add("marquiz__scroll-fix"):(this._finish(),window.open(this.createUrl()))))}},{key:"_close",value:function(){var e=this;Object(l.clearAllBodyScrollLocks)(),document.body.classList.remove("marquiz__scroll-fix");var t=this.element.classList,n=this.element.parentNode.classList;this.disableIfClosed&&o.a.set("marquiz__widget-closed",!0,{expires:1}),"mobile"!==this._getWidgetType()?(t.add("marquiz-widget__container_closing"),this.element.onanimationend=function(){t.remove("marquiz-widget__container_closing"),n.remove("marquiz-widget_open"),e.finish?e._finish():e._appearAfterClosing(750)}):(this.sendDataToFrame("closeWidget"),n.remove("marquiz-widget_open"),this.finish?this._finish():this._appearAfterClosing(750))}},{key:"_finish",value:function(){Object(l.clearAllBodyScrollLocks)(),this.element.parentNode.style.display="none"}},{key:"_setAppearDelay",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;setTimeout((function(){e.appearDelayPassed=!0,e._appear((function(){void 0!==e.autoOpenDelay&&e._setOpeningDelay(e.autoOpenDelay)}))}),1e3*t)}},{key:"_setOpeningDelay",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;setTimeout((function(){e.sendDataToFrame("openWidget"),e._open()}),1e3*t)}},{key:"_setHeight",value:function(e){this.element.style.setProperty("--widget-height",e||"50px")}},{key:"_getWidgetType",value:function(){return window.innerWidth<=767?window.innerWidth<=480?"mobile":"tablet":"desktop"}},{key:"_setBackgroundChanging",value:function(){var e=this;return{cbMoving:function(t,n,i){var o=i/50;e.element.parentNode.style.backgroundColor="rgba(0, 0, 0, ".concat(.3-.3*o,")")},cbBeforeBack:function(t,n){e.element.parentNode.style.transition="".concat(n,"ms ease-out"),e.element.parentNode.style.backgroundColor="rgba(0, 0, 0, .3)",setTimeout((function(){e.element.parentNode.style.transition=""}),n)},cbBeforeFinish:function(t,n){e.element.parentNode.style.transition="".concat(n,"ms ease-out"),e.element.parentNode.style.backgroundColor="rgba(0, 0, 0, 0)",setTimeout((function(){e.element.parentNode.style.transition=""}),n)}}}}])&&ae(t.prototype,n),i&&ae(t,i),a}(w);n(35);function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function me(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var he=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quizzes=[],this.host="//quiz.marquiz.ru",this.isTest=!1,this.contacts=null,this._params={},this._query={},this._isVisible=!1}var t,n,i;return t=e,(n=[{key:"init",value:function(e){var t=arguments,n=this,i=e.host,o=e.id,r=e.autoload,a=e.autoOpen,s=void 0!==a&&a,c=e.openOnExit,u=e.autoOpenFreq,l=void 0===u?"once":u,d=e.test,f=void 0!==d&&d,p=e.contacts,m=void 0===p?{}:p,h=e.disableOnMobile,y=e.query,v=void 0===y?{}:y,g=e.region;if(this._isVisible){g&&(v.region=g),i&&(this.host=i),this.isTest=f,this.contacts=m,this._query=v,this.id=o,this.wasOpened=!1,this.loaded=!1;for(var b=document.querySelectorAll('a[href^="#popup:marquiz"],a[href^="http://#popup:marquiz"],a[href^="https://#popup:marquiz"]'),_=0;_<b.length;_++){var w=b[_];if("2"!==w.getAttribute("data-version")){var x=this._getIdFromLink(w.href),z=this._getTypeOfQuiz(w);switch(z){case"button":this._button({id:x,autoload:r},w);break;case"inline":this._inline({id:x},w);break;case"pop":this._pop({id:x,autoload:r},w)}}}this._checkLocation(),this._autoOpenQuiz({autoOpenFreq:l,autoOpen:s,openOnExit:c,disableOnMobile:h}),this._watchServices()}else this._addEventVisible((function(){n.init(t[0])}))}},{key:"showModal",value:function(e){if(e){e===this.id&&(this.wasOpened=!0);var t=null;this.quizzes[e]?this.quizzes[e].show():(t=new S({id:e}),this.quizzes.push(t),t.show())}}},{key:"addParam",value:function(e,t){for(var n in this._params[e]=t,this.quizzes)this.quizzes[n].addParam(e,t)}},{key:"handleQuizRequest",value:function(e){if(e.data)try{var t=JSON.parse(e.data);if("setHeight"===t.action){var n=this.quizzes.find((function(e){return e.id===t.id}));if(!n)return;n.setFrameHeight(t.height)}"loaded"===t.action&&t.id===this.id&&(this.loaded=!0)}catch(e){}}},{key:"add",value:function(e){var t=this;if(this._isVisible){var n=fe(e,2),i=n[0],o=n[1],r=document.querySelector("div[data-marquiz-id='".concat(o.id,"']"));switch(i){case"Button":r?this._button(o,r):console.error("marquiz__error","Target was not found");break;case"Inline":r?this._inline(o,r):console.error("marquiz__error","Target was not found");break;case"Pop":this._pop(o,r);break;case"Widget":this._widget(o)}}else this._addEventVisible((function(){t.add(e)}))}},{key:"_inline",value:function(e,t){this.quizzes.push(new V(e,t))}},{key:"_button",value:function(e,t){this.quizzes.push(new P(e,t))}},{key:"_pop",value:function(e,t){this.quizzes.push(new ee(e,t))}},{key:"_widget",value:function(e){this.quizzes.push(new de(e))}},{key:"_getIdFromLink",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#popup:marquiz_",n=e.indexOf(t);return n>=0?e.slice(n+t.length):null}},{key:"_getTypeOfQuiz",value:function(e){return e.getAttribute("data-marquiz-pop")?"pop":e.parentElement.classList.contains("marquiz__container_inline")?"inline":"button"}},{key:"_autoOpenQuiz",value:function(e){var t=this,n=e.autoOpenFreq,i=e.autoOpen,o=e.openOnExit,r=e.disableOnMobile&&document.body.clientWidth<768;this.id&&!r&&("always"!==n&&this._getOpenCount(this.id)>0||((!1!==i||o)&&setTimeout((function(){var e=new S({id:t.id});e.createModalContent(),t.quizzes.push(e)}),500),o&&this._beforeLeaveListener(),!1!==i&&setTimeout((function(){t.wasOpened||t._showModalWhenMounted(t.id,200)}),1e3*i)))}},{key:"_checkLocation",value:function(){var e=/#popup:marquiz_(\w+)/,t=location.hash&&location.hash.match(e)&&location.hash.match(e)[1];t&&this.showModal(t),location.hash&&location.hash.match(/#popup:marquiz$/)&&this.showModal(this.quizzes[0]&&this.quizzes[0].id)}},{key:"_beforeLeaveListener",value:function(){var e=this;!function(e){Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,i;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),r=o.length>>>0;if("function"!=typeof e)throw new TypeError("".concat(e," is not a function"));for(arguments.length>1&&(n=t),i=0;i<r;){var a;i in o&&(a=o[i],e.call(n,a,i,o)),i++}});var t=[],n=[];function i(e,t,n){e.attachEvent?(e["e".concat(t).concat(n)]=n,e[t+n]=function(){e["e".concat(t).concat(n)](window.event)},e.attachEvent("on".concat(t),e[t+n])):e.addEventListener(t,n,!1)}function o(e,t,n,i,o){o=o||[],this.func=e,this.min_speed=void 0===t?-170:t,this.min_y=void 0===n?200:n,this.ignore_timeout=void 0===i?1e3:i,this.ignore=!1,this.ignore_leave=o[0],this.ignore_move=o[1],this.ignore_blur=o[2]}function r(e){switch(void 0===e?"undefined":c(e)){case"string":this.message=e;break;case"function":this.func=e;break;default:throw new Error("The input should be a string or a function.")}}function a(e,t,n,i,o,r){this.x=e,this.y=t,this.speed_x=n,this.speed_y=i,this.delta_x=o,this.delta_y=r}r.prototype.run=function(e){return this.message||this.func.call(this,e)||""};var s=null,u=null,l=null;function d(e){return function(n){switch(e){case"mouseleave":if(n.relatedTarget||n.toElement)return;n.clientY<=0&&(l=0,u=n.clientX);break;case"mousemove":if(null===s)return s=Date.now(),u=n.screenX,void(l=n.screenY);var i=Date.now(),o=i-s,r=n.screenX-u,c=n.screenY-l,d=Math.round(r/o*100),f=Math.round(c/o*100);0===o&&(d=1/0,f=1/0),s=i,u=n.screenX,l=n.screenY}t.forEach((function(t){t.ignore||"mouseleave"===e&&t.ignore_leave||"blur"===e&&t.ignore_leave||"mousemove"===e&&(t.ignore_move||l>t.min_y||f>=0||t.min_speed<f)||(t.func.call(t,new a(u,l,d,f,r,c)),t.ignore=!0,t.setTimeout=setTimeout((function(){t.ignore=!1,s=null}),t.ignore_timeout))}))}}function f(e){return n.push(new r(e)),f}i(document,"mouseout",d("mouseleave")),i(e,"blur",d("blur")),i(document,"mousemove",d("mousemove")),e.onbeforeunload=function(e){for(var t=[],i="",o=0,r=null;o<n.length;++o)r=n[o],t.push(r.run(e).trim());if(0!==(i=t.filter(Boolean).join("\n")).trim().length)return i},f.prepare=function(e,n,i,r,a){return t.push(new o(e,n,a,i,r)),f},f._prepares=t,f._leaves=n,e.blm=f}(window),window.blm.prepare((function(){e.wasOpened||e._showModalWhenMounted(e.id,200)}),-170,500,[!0,!1,!0])}},{key:"_showModalWhenMounted",value:function(e,t){var n=this;if(this.loaded)return this.showModal(e),void this._setOpenCount(e);this._loadedCheckInterval||(this._loadedCheckInterval=setInterval((function(){n.loaded&&(n.showModal(e),n._setOpenCount(e),clearInterval(n._loadedCheckInterval))}),t))}},{key:"_setOpenCount",value:function(e){var t="marquiz__count-opened_".concat(e),n=this._getOpenCount(e);o.a.set(t,n+1,{expires:1})}},{key:"_getOpenCount",value:function(e){var t="marquiz__count-opened_".concat(e);return Number(o.a.get(t))||0}},{key:"_watchServices",value:function(){var e=this,t=function(){};void 0!==window.onRoistatModuleLoaded&&(t=window.onRoistatModuleLoaded),window.onRoistatModuleLoaded=function(){t(),window.roistatVisitCallback=function(){e._refreshCookies(),e._query.roistat_visit=o.a.get("roistat_visit")}},window.__cs&&window.__cs.push(["waitForTrackViewAndRun",function(){var t=Comagic.getCredentials()||{};e.addParam("comagic_id",t.comagic_id)}]),setTimeout((function(){return e._refreshCookies()}),8e3)}},{key:"_refreshCookies",value:function(){this.addParam("cookies",u())}},{key:"_addEventVisible",value:function(e){var t=this;a.a.onVisible((function(){t._isVisible=!0,e()}))}}])&&me(t.prototype,n),i&&me(t,i),e}();window.Marquiz=new he,window.__marquiz&&window.__marquiz.forEach((function(e){window.Marquiz.add(e)})),document.dispatchEvent(new Event("marquizLoaded")),window.addEventListener("message",window.Marquiz.handleQuizRequest.bind(window.Marquiz),!1)}]); |