function _typeof(e){return(_typeof="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 _createForOfIteratorHelper(e,t){var n,r,o,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return o=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?void 0:e)&&e[n++],done:!e}}}}throw new TypeError(_typeof(e)+" is not iterable")}function _regenerator(){var m,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function r(e,t,n,r){var o,a,i,c,u,s,l,f,d,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(o=e,a=n,l=r||[],f=!1,d={p:s=0,n:0,v:m,a:v,f:v.bind(m,4),d:function(e,t){return i=e,c=0,u=m,d.n=t,p}},function(e,t,n){if(1t||a{function f(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r{try{var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}catch(e){return sessionStorage.removeItem(t),null}})(r)))return e.a(2,o);e.n=1;break;case 1:return o=new URLSearchParams({application:V,featureKey:s,flag:l}).toString(),c="".concat(M,"?").concat(o),e.p=2,e.n=3,function(u,r,e){var s=2{var e=null!=(e=null==(e=window.vtexafenv)?void 0:e.account)?e:null!=(e=null==(e=null==document?void 0:document.currentScript)?void 0:e.getAttribute("an"))?e:null==(e=null==document?void 0:document.currentScript)?void 0:e.getAttribute("data-an");return z=e?e:z})();return e?{accountName:t,accountEnvironment:e}:null!=(e=window.__RUNTIME__)&&e.account?{accountName:t,accountEnvironment:"store_framework"}:window.jsnomeLoja?{accountName:t,accountEnvironment:"portal"}:{accountName:t,accountEnvironment:window.__NEXT_DATA__||window.___gatsby?"fast_store":void 0}}var z="";function Q(){var e,t;return null!=(e=null==(e=window.vtex)?void 0:e.checkout)&&e.version?(t=(e=window.vtex.checkout.version).startsWith("v")?"checkout_".concat(e.slice(0,2)):"checkout",{version:e,type:t}):null!=(e=window.__FASTCHECKOUT__)&&e.version?{version:window.__FASTCHECKOUT__.version,type:"fastcheckout"}:void 0}function Z(){return a(W)}function l(){return window.location.href}function ee(){return window.document.referrer}function te(){var e;return null!=(e=null!=(e=_slicedToArray(null!=(e=null==(e=a(B))?void 0:e.split(":"))?e:[],1)[0])?e:null==(e=new RegExp(/[?&]workspace=([^&]+)(&|$)/).exec(window.location.search))?void 0:e[1])?e:null==(e=null==window?void 0:window.__RUNTIME__)?void 0:e.workspace}function ne(){var n={},e=document.querySelectorAll('head meta[property^="product:"]');if(0!==e.length)return e.forEach(function(e){var t=e.getAttribute("property"),e=e.getAttribute("content");t&&e&&(n[t]=e)}),n}function re(e){var t=(()=>{if("undefined"!=typeof window)return window.crypto||window.msCrypto;try{return require("crypto").webcrypto}catch(e){}})();return(null!=t&&t.getRandomValues?_toConsumableArray(t.getRandomValues(new Uint8Array(e))).map(function(e){return e.toString(16).padStart(2,"0")}):Array.from({length:2*e},function(){return(16*Math.random()|0).toString(16)})).join("")}var oe="activity_flow_web_script",ae="https://stable.vtexobservability.com",u=.01,v=null,ie=null;function ce(r){return d(this,void 0,void 0,_regenerator().m(function e(){var t,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:r?(n=u,e.n=3):e.n=1;break;case 1:return e.n=2,function(){return d(this,void 0,void 0,_regenerator().m(function e(){var t;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(null!==v)return e.a(2,v);e.n=1;break;case 1:return e.n=2,U("telemetry_log_rate",window.location.hostname);case 2:return t=e.v,v=t=(t="number"==typeof t?t:u)<0||1a&&(clearInterval(n),t(null))},i)}))}},e)}))}var e="https://af-origin.vtex.com/api/activity-flow",fe="Event",de=!1,ve=1e4,me={userSession:"".concat(e,"/user-session"),pageView:"".concat(e,"/page-views"),ads:"".concat(e,"/ads"),webVitals:"".concat(e,"/web-vitals"),click:"".concat(e,"/click"),impression:"".concat(e,"/impression"),dataLayer:"".concat(e,"/data-layer"),view:"".concat(e,"/view")};function pe(n,r){new Promise(function(e){var t=new XMLHttpRequest;t.timeout=ve,t.open("POST",n,!0),t.setRequestHeader("Content-Type","application/json"),t.send(r),t.onload=function(){if(200===t.status||202===t.status)return K(),e(r);m({context:"createRequest",message:"XHR failed with status ".concat(t.status)})},t.onerror=function(){m({context:"createRequest",message:"XHR network error sending to ".concat(n)})},t.ontimeout=function(){m({context:"createRequest",message:"XHR timed out after ".concat(ve,"ms sending to ").concat(n)})}})}function ye(e){var t={SessionId:(t=$()).sessionID,MacId:t.macID,IsNewUser:t.isNewUser,Url:t.url,Ref:t.ref,accountName:t.accountName,accountEnvironment:t.accountEnvironment,clientdate:(new Date).getTime(),isFirstEvent:t.isNewSessionID,workspace:t.workspace,ckInfo:t.ckInfo,checkout:t.checkout},n=t.IsNewUser,r=t.isFirstEvent,t=f(t,["IsNewUser","isFirstEvent"]);return"userSession"===e.eventType?{DataType:fe,clientdate:t.clientdate,eventType:e.eventType,MacId:t.MacId,IsNewUser:n,workspace:t.workspace,Url:t.Url,SessionId:t.SessionId,accountName:t.accountName,accountEnvironment:t.accountEnvironment}:(t=Object.assign(Object.assign(Object.assign({},e),{DataType:fe}),t),"pageView"===e.eventType?Object.assign(Object.assign({},t),{IsNewUser:n,isFirstEvent:r}):t)}function ge(e,t){var n,t=1{var n=e;(n=be[n])&&clearTimeout(n);var r=setTimeout(function(){"IN_VIEW"===w(e)&&t()},he);be[e]=r})(t,function(){h(t,"VIEWED"),r.disconnect(),n.dispatchEvent(new Event("view"))}));break;case"IN_VIEW":o.isIntersecting||h(t,"NOT_VIEWED");break;case"VIEWED":r.disconnect()}})},{threshold:.5,rootMargin:"0px"})).observe(a)}function h(e,t){we[e]=t}function w(e){return null!=(e=we[e])?e:"NOT_VIEWED"}function Te(e){return"".concat(e.adId,"-").concat(e.adRequestId)}function Ee(e){e=(e=>{for(var t={},n=Object.keys(c),r=0,o=n;rt.length&&p({context:"event.impression",message:"Found element with the data-af-impression attribute but without the data-af-element attribute"}),0!==t.length)&&t.forEach(function(e){var t=T(e),n=Object.entries(t).map(function(e){var e=_slicedToArray(e,2),t=e[0],e=e[1];return"".concat(t,"=").concat(e)}).join(",");Xe.get(e)!==n&&(Xe.set(e,n),g({eventType:"impression",element:e.tagName.toLowerCase(),impressionType:r,attributes:t,elementSource:e.getAttribute(_)}))})}function Ke(){if(document.body){var e=l();if(Je!==e)return Je=e,Be&&Be.disconnect(),Ge("first_render"),(e=new MutationObserver(function(e){var t,n,r,o=_createForOfIteratorHelper(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;"childList"===a.type?a.addedNodes.forEach(function(e){e instanceof HTMLElement&&Ge("rerender",null!=(e=e.parentElement)?e:document.body)}):"attributes"===a.type&&null!=(t=a.attributeName)&&t.startsWith(b)&&Ge("rerender",null!=(n=a.target.parentElement)?n:document.body)}}catch(e){o.e(e)}finally{o.f()}})).observe(document.body,{childList:!0,subtree:!0,attributes:!0}),Be=e}else"complete"===document.readyState&&p({context:"event.impression",message:"document.body is null even though readyState is complete; deferring handler to next tick"}),Ue(Ke)}function Ye(){We(Ke)}function $e(e){return null!=e&&"object"===_typeof(e)}var ze=1e4,Qe={childList:!0,subtree:!0,attributes:!0},Ze="",t=null,et=!0,tt=void 0;function nt(e){var t=!0;try{t=!function e(t,n){if(void 0===t&&void 0===n)return 1;if(!(void 0===t&&void 0!==n||void 0!==t&&void 0===n)){var r=Object.keys(t),o=Object.keys(n);if(r.length===o.length){for(var a=0,i=r;an.value&&(n.value=r,n.entries=o,t())}var t,n=x("CLS",0),r=0,o=[],a=k("layout-shift",e);a&&(t=A(i,n,Ot,c.reportAllChanges),O(function(){e(a.takeRecords()),t(!0)}),S(function(){n=x("CLS",r=0),t=A(i,n,Ot,c.reportAllChanges),_t(function(){return t()})}),setTimeout(t,0))}))}function yt(a,i){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(i=i||{},j(function(){var e;Dt();function t(t){Ft(function(){t.forEach(Pt);var e=Mt();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,o())})}var n=x("INP"),r=k("event",t,{durationThreshold:null!=(e=i.durationThreshold)?e:40}),o=A(a,n,Ht,i.reportAllChanges);r&&(r.observe({type:"first-input",buffered:!0}),O(function(){t(r.takeRecords()),o(!0)}),S(function(){Ct=Rt(),R.length=0,D.clear(),n=x("INP"),o=A(a,n,Ht,i.reportAllChanges)}))}))}function gt(i,c){c=c||{},j(function(){function e(e){(e=c.reportAllChanges?e:e.slice(-1)).forEach(function(e){e.startTimer[1]?"poor":e>r[0]?"needs-improvement":"good",t(n))}},_t=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},O=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},Tt=function(e){var t=!1;return function(){t||(e(),t=!0)}},n=-1,Et=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},N=function(e){"hidden"===document.visibilityState&&-1n.latency)&&(e?t.duration>e.latency?(e.entries=[t],e.latency=t.duration):t.duration===e.latency&&t.startTime===e.entries[0].startTime&&e.entries.push(t):(n={id:t.interactionId,latency:t.duration,entries:[t]},D.set(n.id,n),R.push(n)),R.sort(function(e,t){return t.latency-e.latency}),10