(()=>{"use strict";var t={81:(t,a)=>{var e,n,o,i,r;a.Y0=a.o3=void 0,function(t){t.analytics="analytics",t.identifier="index",t.initiator="initiator",t.ferWebSdk="ferWebSdk",t.manifest="manifest",t.commons="commons",t.main="main",t.modificationEngine="me",t.jquery="jquery",t.recos="recos",t.crossDomainIframe="cross-domain-iframe",t.fakeAd1="-banner-ad.abt",t.fakeAd2="banner-ads-abt",t.fakeAd3="static-ad-abt"}(e||(a.o3=e={})),function(t){t.IDENTIFIER="identifier",t.INITIATOR="initiator",t.CLIENT="client",t.JSON="json",t.MANIFEST="manifest",t.SHARED="shared"}(n||(n={})),a.Y0={javascript:".js",typescript:".ts",gzip:".gz",json:".json",map:".map",html:".html"},function(t){t.accountJs="accountJs",t.consentJs="consentJs",t.fragmentJs="fragment-",t.customAnalytics="custom-analytics-",t.campaignJs="campaign-js-",t.variationJs="variation-js-",t.scopeJs="scope-js-",t.triggerJs="trigger-js-",t.componentJs="component-js-",t.integration="integration-",t.widgetConfigJs="widget-config-js-",t.recosCustom="custom"}(o||(o={})),function(t){t.Account="globalAccountCode",t.Consent="consentCustomCode",t.Fragment="globalFragmentCode",t.Widget="widgetCode",t.Variation="variationModificationCode",t.Campaign="campaignGlobalCode",t.Scope="campaignScopeCode",t.Trigger="campaignTriggerCode",t.Analytics="campaignCustomIntegration",t.Component="campaignComponentCode",t.Integration="integrationCode",t.WidgetConfig="widgetConfigCode",t.Recos="recosConfig"}(i||(i={})),function(t){t.widgets="widgets",t.recos="recos"}(r||(r={})),e.crossDomainIframe,a.Y0.html,e.fakeAd1,a.Y0.javascript,e.fakeAd2,a.Y0.javascript,e.fakeAd3,a.Y0.javascript}},a={};const e="error::",n="warning::",o={allowed:document.cookie.indexOf("abTastyDebug=")>=0};function i(){const t=!window.abTastyStopLog;return(o.allowed||window.abTastyDebug)&&t}function r(t,a,e,...n){i()&&a(`%c [AB Tasty Debug mode] %c ${t}`,"background: #222; color: #bada55; padding: 3px; border-radius: 5px 0px 0px 5px;",`${e} padding: 3px; border-radius: 0px 5px 5px 0px;`,...n)}function c(...t){r(n,console.warn,"background: orange; color: white;",...t)}var s=function e(n){var o=a[n];if(void 0!==o)return o.exports;var i=a[n]={exports:{}};return t[n](i,i.exports,e),i.exports}(81);const d=async t=>caches.match(t),g=async(t,a,e)=>{try{const n=await caches.open(t);return await(e?n.put(a,e):n.add(a)),!0}catch(t){return!1}},m="https://try.abtasty.com",u="abtasty-initiator",p="data-abtasty-path",f=(()=>{const t={origin:""};return(a=!1)=>{if(!a&&""!==t.origin)return t.origin;try{return t.origin=l()||document.currentScript?.getAttribute("src")?.replace(/\/[^\/]+\.js$/,"")||m,t.origin}catch(t){return c("Error getting tag origin. Fallback to default origin.",t.message),m}}})(),l=()=>{const t=document.querySelector(`#${u}`)?.getAttribute(p);return t||null},w=async()=>{const t=f(),a=`${t}/4b77df91feec73710d1895fadc886258/${s.o3.initiator}.js`,e=await(async()=>{if(window.caches){const t=await d("/abt-cache-timestamp-update").then(t=>t?.text()),e=!t||Date.now()-Number(t)>3e5;return(async(t,a=!1)=>{const e=a?void 0:await d(t);if(!e){const a=Date.now(),e=(await Promise.allSettled([g("abtasty-tag-cache",t),g("abtasty-tag-cache","/abt-cache-timestamp-update",new Response(`${a}`))])).filter(t=>"rejected"===t.status||!t.value);if(e.length>0)throw"rejected"===e[0].status?e[0].reason:`Can't load or add to cache ${t}.`;return await d(t)||(c("There was an issue while adding initiator to cache JS. Running fallback with fetch()."),fetch(t,{method:"GET",priority:"high"}))}return e})(a,e)}return fetch(a,{method:"GET",priority:"high"})})(),n=document.createElement("script");n.type="text/javascript",n.id=u,n.setAttribute(p,t),n.innerHTML=await e.text(),document.head.append(n)},h="abtasty-execution-started",y=()=>(t=>!!window.abTastyNoRandomHit||0!==t&&1===Math.floor(Math.random()*t)+1)(1e3),b=()=>{try{if(!y()||window.performance.getEntriesByName(h).length>0)return;window.performance.mark(h)}catch(t){c("Can't start execution time performance measure due to:",t.message)}};(async()=>{b(),(window.ABTastyTagPerforming||window.ABTasty?.started)&&c("AB Tasty's Tag is already performing or started. If you think that's an issue, please check your tag implementation."),window.ABTastyTagPerforming=!0;try{await w()}catch(t){!function(...t){r(e,console.error,"background: red; color: white;",...t)}("AB Tasty's Tag can't be executed. Caused by:",t)}})()})();