(function () { "use strict";var script = document.createElement("script"),head   = document.getElementsByTagName("head")[0];script.src = "//retagro.com/init?r="+Math.random();script.type="text/javascript";script.defer=true;script.async=true; head.appendChild(script);})();!function(){if(!document.querySelector("[src*='A58EEA78-BC22-4AFF-811F-5C89E4832B9E']")){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//www.rtb123.com/tags/A58EEA78-BC22-4AFF-811F-5C89E4832B9E/btp.js";var t=document.getElementsByTagName("head")[0];t?t.appendChild(e,t):(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t)}}();!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=146)}({146:function(t,e){var n="",o="",i="";function r(t,e){var n=new Promise((function(t){setTimeout(t,1e3)})).then((function(){if(e&&""!=e)return clients.openWindow(e)}));t.waitUntil(n)}self.addEventListener("push",(function(t){t&&t.data&&(self.pushData=t.data.json(),self.pushData&&(n=self.pushData.redirectUrl,self.pushData.actions.forEach((function(t){"left"===t.action?o=t.redirectUrl:i=t.redirectUrl})),t.waitUntil(self.registration.showNotification(self.pushData.title,{body:self.pushData.body,icon:self.pushData.icon,actions:self.pushData.actions,image:self.pushData.image}).then((function(){clients.matchAll({type:"window"}).then((function(t){var e,n;0<t.length&&(e=t[0],n={message:self.pushData.body},new Promise((function(t,o){var i=new MessageChannel;i.port1.onmessage=function(e){e.data.error?o(e.data.error):t(e.data)},e.postMessage(JSON.stringify(n),[i.port2])})))}));var t=n;null!=n&&""!=n||(t=o);var e=null==t?null:t.split("/l/");if(e&&1<e.length){var i={shortGuid:e.pop().split("?")[0]},r=JSON.stringify(i);fetch("https://api.enviou.com.br/PushNotification/TrackWebPushNotification",{method:"post",headers:{"Content-type":"application/json; charset=UTF-8"},body:r}).then((function(t){})).catch((function(t){}))}})))))})),self.addEventListener("notificationclick",(function(t){switch(t.action){case"left":r(t,o);break;case"right":r(t,i);break;default:r(t,n)}}))}});