(function () {window.MindboxEndpointSettings = {"viewProductOperationSystemName":null,"viewCategoryOperationSystemName":null,"setCartOperationSystemName":null,"features":{"isNewWebPushDeliveryTrackingEnabled":false,"isNewWebPushClickTrackingEnabled":false,"isNewServiceWorkerRegistrationEnabled":false}};window.MindboxActualEndpointId = "Admitad.Giftmio";})();(function () {(function(){window.PopMechanic=window.PopMechanic||{customs:{}};window.PopMechanic.client=5824;window.PopMechanic.initializedByMindbox=!!1;!function(){"use strict";var t="https://personalization-web.mindbox.cloud/js",n=function(){var t=window.PopMechanic.tabVisibility;"visible"===document.visibilityState?t.lastVisibilityStart=Date.now():t.lastVisibilityStart&&(t.duration+=Date.now()-t.lastVisibilityStart)},i=document,e=function(){var t=window.PopMechanic.tabVisibility;t.duration=0,t.lastVisibilityStart="visible"===document.visibilityState?Date.now():null},o=function(){if("hidden"===document.visibilityState)return window.PopMechanic.tabVisibility.duration;var t=Date.now()-window.PopMechanic.tabVisibility.lastVisibilityStart;return window.PopMechanic.tabVisibility.duration+t},r=window.navigator.userAgent.toLowerCase();function a(t){return-1!==r.indexOf(t)}var s=a("windows"),c=!s&&a("android"),d=c&&a("mobile"),l=!s&&a("iphone"),u=a("ipod"),h=s&&a("phone"),p=a("blackberry")||a("bb10")||a("rim"),f=p&&!a("tablet"),m=(a("(mobile;")||a("(tablet;"))&&a("; rv:"),v=m&&a("mobile"),w=a("meego"),g=d||l||u||h||f||v||w,b=a("ipad")||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),_=c&&!a("mobile"),I=p&&a("tablet"),y=s&&a("touch")&&!h,P=m&&a("tablet"),U=!g&&(b||_||I||y||P),E=!U&&!g;function D(){return g?"mobile":U?"tablet":E?"desktop":"unknown"}var M=function(t){if(!window.PopMechanic.sampleSent){window.PopMechanic.sampleSent=!0;var n=o(),i=navigator&&navigator.connection&&navigator.connection.downlink,e=D();(new Image).src="https://personalization-speedtest.mindbox.cloud/check-reco?result=failure"+(t?"&reason="+t:"")+"&t="+n+"&dl="+("number"==typeof i?i:"unknown")+"&dt="+e+"&c="+window.PopMechanic.client+"&url="+encodeURIComponent(location.pathname)+"&_="+ +Date.now()}},x=function(t,n,i,e,o){void 0===n&&(n=void 0),void 0===i&&(i=500),void 0===e&&(e=2e3),void 0===o&&(o=15);var r=null;return new Promise((function(a){var s=function(i,c){if(void 0!==window[t]&&(void 0===n||window[t]===n))return r=window[t],void a(r);c>=o?a(null):setTimeout((function(){var t=2*i;s(t>e?e:t,c+1)}),i)};s(i,0)}))},W=function(t,n){void 0===t&&(t=[]),void 0===n&&(n=2e3);var i=new Promise((function(t){setTimeout(t,n)}));return Promise.race([Promise.all(t),i])},S=x("mindboxInitialized",!0),T=x("mindboxBatchedModulesInitialized",!0),A=function(){var t=x("mindbox",void 0,150,1e3,3);return W([t,S,T],1300)},C="https://personalization-web.mindbox.cloud",V=C+"/web/forms/",R=function(t){var n=t.method;void 0===n&&(n="GET");var i=t.url,e=t.options;return new Promise((function(t,o){var r=e&&e.withCredentials||!1,a=e&&e.retryLimit||3,s=function(){var e=new XMLHttpRequest;e.responseType="json",e.withCredentials=r,e.open(n,i),e.send(),e.onload=function(){200===e.status&&t(e.response),o(e)},e.onerror=function(){if((0===e.status||e.status>=500)&&a>0)return a--,void s();o(e)}};s()}))},H=function(t){var n=function(t){return t.split(".").length>2?t.replace(/(^www\.)/gi,""):t}(t),i=n.split("."),e=[];e.push(n);for(var o=0;o=400&&M("init-error"),Promise.resolve({deviceUUID:i,config:null})})).then((function(t){return j=t}))}))};!function(){if(!window.PopMechanicMutex){window.PopMechanicMutex=!0;var r=+Date.now(),a=function(t,n){void 0===n&&(n=i);var e=n.getElementById("popmechanic-script");if(!e)for(var o=t.replace(/^https?:\/\//,""),r=n.getElementsByTagName("script"),a=0;a-1&&s.src.indexOf("?c=")>-1&&(e=s)}return e?e.src.split("?c=")[1].split("&")[0]:null}(t);if(a||window.PopMechanic){var s,c=-1!==(s=document.location.toString()).indexOf("pm-test-form=")?s.split("pm-test-form=")[1].split("&")[0]:"";window.PopMechanic=function(t){var n=t.formHash,i=t.clientId,r=t.loadedTs,a=t.initialPopMechanic||{loaded:!1,onLoad:!1,customs:{}};a.client||(a.client=i),a.formHash=n,a.isTesting=!!n,a.dummyIsRequired=location.href.indexOf("pm-dummy")>-1,void 0===a.debugMode&&(a.debugMode="1"===sessionStorage["popmechanic-debug"]),a.loadedTimestamp=r,a.slaRequired=!1,a.sampleSent=!1;var s=function(){a.slaRequired&&(a.sampleSent&&a.loaded||M("timeout"))},c=function(){return setTimeout(s,parseInt("30000",10))};return a.watchdog=c(),a.restartWatchdog=function(){a.slaRequired=!1,a.sampleSent=!1,clearTimeout(a.watchdog),a.watchdog=c()},a.globalUtils={getIntegrationPromise:x,waitPromisesOrDelay:W,getMindboxIsReadyPromise:A,reportFailure:M,getSettings:q,getTabVisibilityDuration:o,resetTabVisibilityDuration:e,getDeviceType:D},a}({formHash:c,clientId:a,loadedTs:r,initialPopMechanic:window.PopMechanic}),window.PopMechanic.initStartedAt=Date.now(),window.PopMechanic.tabVisibility={duration:0,lastVisibilityStart:null},n(),document.addEventListener("visibilitychange",n),q().then((function(n){var i=n.config;i&&i.forms.length&&function(t){var n=t.version,i=t.host,e=document.createElement("script");e.async="async",e.defer="defer",e.charset="utf-8",e.src=i+"/service/v2/forms.js?v="+n;var o=document.createElement("link");o.rel="stylesheet",o.href=i+"/service/styles.css?v="+n,document.head.appendChild(o),document.getElementsByTagName("head")[0].appendChild(e)}({version:"4.39.5",host:t})}))}else console.error("Incorrect setup of Personalization tracker")}}()}(); ;}())})();