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 p,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:p,a:v,f:v.bind(p,4),d:function(e,t){return i=e,c=0,u=p,d.n=t,m}},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:F,featureKey:s,flag:l}).toString(),c="".concat(M,"?").concat(o),e.p=2,e.n=3,function(c,u,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 ee=e?e:ee})();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 ee="";function te(){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 ne(){return n(B)}function v(){return window.location.href}function re(){return window.document.referrer}function oe(){var e;return null!=(e=null!=(e=_slicedToArray(null!=(e=null==(e=n(X))?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 ae(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 ie="activity_flow_web_script",ce="https://stable.vtexobservability.com",p={WARN:.01,ERROR:.01,INFO:0,DEBUG:0},a={WARN:null,ERROR:null,INFO:null,DEBUG:null},ue=null,m=null;function se(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:if(null!==a[r])return e.a(2,a[r]);e.n=1;break;case 1:return e.n=2,q("telemetry_log_rate_by_severity",window.location.hostname);case 2:n=e.v,t=null;try{t=JSON.parse(n)[r]}catch(e){t=null}return((n="number"==typeof t?t:p[r])<0||1{var n=e;(n=Te[n])&&clearTimeout(n);var r=setTimeout(function(){"IN_VIEW"===s(e)&&t()},be);Te[e]=r})(t,function(){u(t,"VIEWED"),r.disconnect(),n.dispatchEvent(new Event("view"))}));break;case"IN_VIEW":o.isIntersecting||u(t,"NOT_VIEWED");break;case"VIEWED":r.disconnect()}})},{threshold:.5,rootMargin:"0px"})).observe(a)}function u(e,t){_e[e]=t}function s(e){return null!=(e=_e[e])?e:"NOT_VIEWED"}function h(e){return"".concat(e.adId,"-").concat(e.adRequestId)}function Se(e){e=(e=>{for(var t={},n=Object.keys(c),r=0,o=n;ra&&(clearInterval(n),t(null))},i)}))}},e)}))}var De=["lojasrede","drogariavenancio"];function Ce(){return d(this,void 0,void 0,_regenerator().m(function e(){var r,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n=t=void 0,t=l().accountName,n=(n=window.location.pathname).includes("/search")||n.includes("/pesquisa"),null!=t&&De.includes(t)&&n)return e.n=1,Re(function(){var e;return null==(e=document.querySelector("impulse-search"))?void 0:e.shadowRoot});e.n=2;break;case 1:o=e.v,e.n=4;break;case 2:return e.n=3,Re(function(){return document.body});case 3:o=e.v;case 4:return r=o,e.a(2,r)}var t,n},e)}))}var Me={eventType:"ads",route:"ads",init:function(){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:return t="data-".concat(c.adId),e.n=1,Ce();case 1:n=e.v,Le(t,ke,n);case 2:return e.a(2)}},e)}))}},b="data-af",_="".concat(b,"-element"),Fe="".concat(b,"-onimpression"),Pe="".concat(b,"-onclick"),T="".concat(b,"-onview");function E(e){for(var t={},n=[_,Fe,Pe,T],r=0,o=Array.from(e.attributes);rt.length&&g({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=E(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(",");Qe.get(e)!==n&&(Qe.set(e,n),i({eventType:"impression",element:e.tagName.toLowerCase(),impressionType:r,attributes:t,elementSource:e.getAttribute(_)}))})}function tt(){if(document.body){var e=v();if(Ze!==e)return Ze=e,ze&&ze.disconnect(),et("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&&et("rerender",null!=(e=e.parentElement)?e:document.body)}):"attributes"===a.type&&null!=(t=a.attributeName)&&t.startsWith(b)&&et("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}),ze=e}else"complete"===document.readyState&&g({context:"event.impression",message:"document.body is null even though readyState is complete; deferring handler to next tick"}),Ke(tt)}var nt={eventType:"impression",route:"impression",init:function(){Ye(tt)}};function rt(){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 ot(e){return null!=e&&"object"===_typeof(e)}var at=1e4,it={childList:!0,subtree:!0,attributes:!0},ct="",t=null,ut=!0,st=void 0;function lt(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=A("CLS",0),r=0,o=[],a=O("layout-shift",e);a&&(t=k(i,n,Pt,c.reportAllChanges),N(function(){e(a.takeRecords()),t(!0)}),I(function(){n=A("CLS",r=0),t=k(i,n,Pt,c.reportAllChanges),Nt(function(){return t()})}),setTimeout(t,0))}))}function St(a,i){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(i=i||{},j(function(){var e;qt();function t(t){Kt(function(){t.forEach(Jt);var e=Gt();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,o())})}var n=A("INP"),r=O("event",t,{durationThreshold:null!=(e=i.durationThreshold)?e:40}),o=k(a,n,Yt,i.reportAllChanges);r&&(r.observe({type:"first-input",buffered:!0}),N(function(){t(r.takeRecords()),o(!0)}),I(function(){Bt=Ht(),R.length=0,D.clear(),n=A("INP"),o=k(a,n,Yt,i.reportAllChanges)}))}))}function It(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))}},Nt=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},N=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},jt=function(e){var t=!1;return function(){t||(e(),t=!0)}},r=-1,Lt=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},e=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