(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{117:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return U})),n.d(t,"c",(function(){return C}));var o,a=n(0),r=n.n(a),i=n(4),s=n(20),c=n.n(s);
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let l;r.a.util.warn;const u=e=>l=e,d=Symbol();function p(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(s=o=o||{}).direct="direct",s.patchObject="patch object",s.patchFunction="patch function",r="undefined"!=typeof window;const h="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&r,f=()=>{};function m(e,t,n,o=f){e.push(t);var r=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&Object(a.getCurrentScope)()&&Object(a.onScopeDispose)(r),r}function g(e,...t){e.slice().forEach(e=>{e(...t)})}const v=e=>e();function b(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){var n,o;t.hasOwnProperty(r)&&(n=t[r],p(o=e[r])&&p(n)&&e.hasOwnProperty(r)&&!Object(a.isRef)(n)&&!Object(a.isReactive)(n)?e[r]=b(o,n):e[r]=n)}return e}Symbol();const y=new WeakMap,w=Object.assign;function S(e,t,n={},r,i,s){let c;const l=w({actions:{}},n),d={deep:!0};let p,S,O,j=[],x=[];var _=r.state.value[e],k=(s||_||Object(a.set)(r.state.value,e,{}),Object(a.ref)({}));let C;function P(t){let n;p=S=!1,n="function"==typeof t?(t(r.state.value[e]),{type:o.patchFunction,storeId:e,events:O}):(b(r.state.value[e],t),{type:o.patchObject,payload:t,storeId:e,events:O});const i=C=Symbol();Object(a.nextTick)().then(()=>{C===i&&(p=!0)}),S=!0,g(j,n,r.state.value[e])}var E=s?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{w(e,t)})}:f;function A(t,n){return function(){u(r);var o=Array.from(arguments);const a=[],i=[];let s;g(x,{args:o,name:t,store:D,after:function(e){a.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,o)}catch(o){throw g(i,o),o}return s instanceof Promise?s.then(e=>(g(a,e),e)).catch(e=>(g(i,e),Promise.reject(e))):(g(a,s),s)}}var $;k=Object(a.markRaw)({actions:{},getters:{},state:[],hotState:k}),E={_p:r,$id:e,$onAction:m.bind(null,x),$patch:P,$reset:E,$subscribe(t,n={}){var i=m(j,t,n.detached,()=>s());const s=c.run(()=>Object(a.watch)(()=>r.state.value[e],a=>{("sync"===n.flush?S:p)&&t({storeId:e,type:o.direct,events:O},a)},w({},d,n)));return i},$dispose:function(){c.stop(),j=[],x=[],r._s.delete(e)},_r:!1};const D=Object(a.reactive)(h?w({_hmrPayload:k,_customProperties:Object(a.markRaw)(new Set)},E):E),T=(r._s.set(e,D),(r._a&&r._a.runWithContext||v)(()=>r._e.run(()=>(c=Object(a.effectScope)()).run(t))));for(const t in T){var M,R=T[t];Object(a.isRef)(R)&&($=R,!Object(a.isRef)($)||!$.effect)||Object(a.isReactive)(R)?s||(_&&($=R,!y.has($))&&(Object(a.isRef)(R)?R.value=_[t]:b(R,_[t])),Object(a.set)(r.state.value[e],t,R)):"function"==typeof R&&(M=A(t,R),Object(a.set)(T,t,M),l.actions[t]=R)}if(Object.keys(T).forEach(e=>{Object(a.set)(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>r.state.value[e],set:e=>{P(t=>{w(t,e)})}}),h){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,w({value:D[t]},e))})}return D._r=!0,r._p.forEach(e=>{var t;h?(t=c.run(()=>e({store:D,app:r._a,pinia:r,options:l})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),w(D,t)):w(D,c.run(()=>e({store:D,app:r._a,pinia:r,options:l})))}),_&&s&&n.hydrate&&n.hydrate(D.$state,_),p=!0,S=!0,D}function O(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){var s=!!Object(a.getCurrentInstance)();return s=((e=e||(s?Object(a.inject)(d,null):null))&&u(e),(e=l)._s.has(o)||(i?S(o,t,r,e):function(e,t,n){const{state:o,actions:r,getters:i}=t,s=n.state.value[e];S(e,(function(){s||Object(a.set)(n.state.value,e,o?o():{});var t=Object(a.toRefs)(n.state.value[e]);return w(t,r,Object.keys(i||{}).reduce((t,o)=>(t[o]=Object(a.markRaw)(Object(a.computed)(()=>{u(n);var t=n._s.get(e);if(t._r)return i[o].call(t,t)})),t),{}))}),t,n,0,!0)}(o,r,e)),e._s.get(o))}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),s.$id=o,s}class j extends i.MixedEnvironment{mapItem(e){return{title:e.titulo,url:e.link,image:"[object Object]"===Object.prototype.toString.call(e.imagem)?{...Object.keys(e.imagem||{}).filter(e=>["src","width","height"].includes(e)).reduce((t,n)=>{var o;return t[n]="src"===n?this.replaceImageSrc(null==(o=e.imagem)?void 0:o[n]):null==(o=e.imagem)?void 0:o[n],t},{}),srcSet:[{media:"(min-width: 320px)",sources:["image/webp","image/jpeg"].map(t=>{var n;return{type:t,src:this.replaceImageSrc(null==(n=e.imagem)?void 0:n.src)+("image/webp"===t?".webp":"")}})}]}:null}}replaceImageSrc(e){return e?e.replace(/https?:\/\/imguol.com/,"https://conteudo.imguol.com.br"):""}}class x extends j{getRelated({id:e}){return new Promise(t=>{let n=0;const o=setInterval(()=>{if(!window.cX)return 3<n?(clearInterval(o),t([])):void(n+=1);clearInterval(o),window.cX.CCE.run({widgetId:e},void 0,e=>{e=null==(e=e.response.items)?void 0:e.map(({title:e,url:t,dominantimage:n})=>this.mapItem({titulo:e,link:t,imagem:{src:n}})),t(e)})},1e3)})}}class _ extends j{getRelated(e){return Promise.resolve(["chamada1","chamada2","chamada3"].filter(t=>e[t]&&e[t].titulo&&e[t].link).map(t=>this.mapItem(e[t])))}}class k extends j{async getRelated(e){return e=(await(await fetch("https://recommendations.chartbeat.net/publishing/recommendations/v2/related?"+this.getParams(e))).json()).data,Array.isArray(e)?e.map(e=>this.mapItem({titulo:e.title,link:this.parsePath(e.path)})):[]}getParams(e){return Object.entries(e).map(([e,t])=>e+"="+t).join("&")}parsePath(e){return e.replace(/^uol\.com\.br/,"www.uol.com.br").replace(/^(?!https:\/\/)(\w+\.)?uol\.com\.br/,"https://$1uol.com.br")}}const C=O("page",()=>{const e=Object(a.ref)({collection:[],others:[]});var t=Object(a.ref)({}),n=Object(a.ref)(""),o=Object(a.ref)(""),r=Object(a.ref)(""),s=Object(a.ref)(""),c=Object(a.ref)({name:"",slug:""}),l=Object(a.ref)({name:"",slug:""}),u=Object(a.ref)({name:"",slug:""}),d=Object(a.ref)({name:"",slug:""}),p=Object(a.ref)(!1),h=Object(a.ref)(!1),f=Object(a.ref)(),m=Object(a.ref)();const g=Object(a.ref)("news");var v=Object(a.ref)(),b=Object(a.ref)(""),y=Object(a.ref)(),w=Object(a.ref)(!1),S=Object(a.ref)(!0),O=Object(a.ref)({days:0,months:0,message:""}),j=Object(a.ref)(!0),C=Object(a.ref)(),P=Object(a.ref)(),E=Object(a.ref)({}),A=Object(a.ref)([]),$=Object(a.ref)({}),D=Object(a.ref)([]),T=Object(a.ref)({}),M=Object(a.ref)({});const R=Object(a.ref)([]);var I=Object(a.ref)(),L=Object(a.ref)(),U=Object(a.ref)(),V=Object(a.ref)([]),N=Object(a.ref)();const F=Object(a.computed)(()=>Object.values(e.value).flat());var z=Object(a.computed)(()=>{switch(g.value){case"column":return"news-colunista";case"poll":return"pesquisa-enquete";case"news":return"news-noticia";case"live":return"live-ao-vivo";default:return g.value}}),H=Object(a.computed)(()=>q(82929));function q(e){return F.value.includes(e)}return Object(i.useDisposable)({id:n,link:o,title:r,description:s,station:c,channel:l,portal:u,hat:d,showAuthors:h,hideData:p,credits:f,contentType:m,mediaType:g,place:v,created:b,updated:y,showUpdated:w,age:O,adultContent:j,recommendation:C,alerts:E,authors:A,collection:T,column:M,comments:N,featuredEmbed:P,erratas:V,featuredImage:I,kicker:$,related:R,seo:U,shareImage:L,shareNetworks:D,tags:e,tagsList:F,tagsMap:t,template:z,showAds:S,getRelatedLinks:async function(e="editorial",t={}){var n=Object(i.useGeneralStore)(),o=Object(i.useRequestStore)();n={piano:n.injectService(x),editorial:n.injectService(_),chartbeat:n.injectService(k)};return["piano","chartbeat"].includes(e)?i.isServerRendering?[]:n[e].getRelated({...t,path:o.$helpers.getLink()}):R.value},hasEveryTag:function(...e){return e.flat().every(e=>F.value.includes(e))},hasSomeTag:function(...e){return e.flat().some(e=>F.value.includes(e))},hasTag:q,isPrime:H},["authorTags","authorText"])}),P=O("news",()=>({contentChunks:Object(a.ref)(),charsCount:Object(a.ref)(0),chunksCount:Object(a.ref)(0),groupsCount:Object(a.ref)(0)}));var E,A,$,D,T,M,R,I,L;E={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},A=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,$={},D=function(e){return(e=+e)+(68<e?1900:2e3)},R=function(e){return(e=$[e])&&(e.indexOf?e:e.s.concat(e.f))},I=function(e,t){var n,o=$.meridiem;if(o){for(var a=1;a<=24;a+=1)if(-1<e.indexOf(o(a,0,t))){n=12<a;break}}else n=e===(t?"pm":"PM");return n},L={A:[s=/\d*[^-_:/,()\s\d]+/,function(e){this.afternoon=I(e,!1)}],a:[s,function(e){this.afternoon=I(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[r=/\d\d/,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[M=/\d\d?/,(T=function(e){return function(t){this[e]=+t}})("seconds")],ss:[M,T("seconds")],m:[M,T("minutes")],mm:[M,T("minutes")],H:[M,T("hours")],h:[M,T("hours")],HH:[M,T("hours")],hh:[M,T("hours")],D:[M,T("day")],DD:[r,T("day")],Do:[s,function(e){var t=$.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],M:[M,T("month")],MM:[r,T("month")],MMM:[s,function(e){var t=R("months");if((t=(R("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1)<1)throw new Error;this.month=t%12||t}],MMMM:[s,function(e){if((e=R("months").indexOf(e)+1)<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,T("year")],YY:[r,function(e){this.year=D(e)}],YYYY:[/\d{4}/,T("year")],Z:M=[/[+-]\d\d:?(\d\d)?|Z/,function(e){var t;(this.zone||(this.zone={})).offset=e&&"Z"!==e&&0!==(t=60*(e=e.match(/([+-]|\d\d)/g))[1]+(+e[2]||0))?"+"===e[0]?-t:t:0}],ZZ:M},c.a.extend(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(D=e.parseTwoDigitYear);var o=(e=t.prototype).parse;e.parse=function(e){var t=e.date,a=e.utc,r=e.args,i=(this.$u=a,r[1]);if("string"==typeof i){var s=!0===r[2],c=!0===r[3],l=s||c,u=r[2];c&&(u=r[2]),$=this.$locale(),!s&&u&&($=n.Ls[u]),this.$d=function(e,t,n){try{var o,a,r,i,s,c,l,u,d,p,h,f,m,g,v,b,y;return-1<["x","X"].indexOf(t)?new Date(("X"===t?1e3:1)*e):(a=(o=function(e){var t,n;t=e,n=$&&$.formats;for(var o=(e=t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,t,o){var a=o&&o.toUpperCase();return t||n[o]||E[o]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(A),a=o.length,r=0;r<a;r+=1){var i=o[r],s=(c=L[i])&&c[0],c=c&&c[1];o[r]=c?{regex:s,parser:c}:i.replace(/^\[|\]$/g,"")}return function(e){for(var t,n,r,i={},s=0,c=0;s<a;s+=1){var l,u,d=o[s];"string"==typeof d?c+=d.length:(u=d.regex,d=d.parser,l=e.slice(c),u=u.exec(l)[0],d.call(i,u),e=e.replace(u,""))}return void 0!==(r=(t=i).afternoon)&&(n=t.hours,r?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon),i}}(t)(e)).year,r=o.month,i=o.day,s=o.hours,c=o.minutes,l=o.seconds,u=o.milliseconds,d=o.zone,p=new Date,h=i||(a||r?1:p.getDate()),f=a||p.getFullYear(),m=0,a&&!r||(m=0<r?r-1:p.getMonth()),g=s||0,v=c||0,b=l||0,y=u||0,d?new Date(Date.UTC(f,m,h,g,v,b,y+60*d.offset*1e3)):n?new Date(Date.UTC(f,m,h,g,v,b,y)):new Date(f,m,h,g,v,b,y))}catch(e){return new Date("")}}(t,i,a),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),l&&t!=this.format(i)&&(this.$d=new Date("")),$={}}else if(i instanceof Array)for(var d=i.length,p=1;p<=d;p+=1){r[1]=i[p-1];var h=n.apply(this,r);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}p===d&&(this.$d=new Date(""))}else o.call(this,e)}})));const U=O("live",()=>{const e=C(),t=new Map,n=new Map,o=Object(a.ref)([]),r=Object(a.ref)(null);var s=Object(a.ref)("rtlive.uol.com");const l=Object(a.ref)(),u=Object(a.ref)("");var d=Object(a.ref)(""),p=Object(a.ref)("");const h=Object(a.ref)();var f=Object(a.ref)("");const m=Object(a.ref)(10),g=Object(a.ref)(!1),v=Object(a.ref)([]);var b=Object(a.computed)(()=>o.value.find(e=>e.id===u.value));let y=[];function w(e,t){var n=c()();e=c()(e,"DD/MM/YYYY HH:mm");return t||n.isAfter(e)?"":"Ao vivo"}function S(e,t){return e.id===u.value?-2:t.date>e.date?1:t.date<e.date?-1:0}function O(e){if(!e||e.disabled)l.value=void 0;else{var t=(null==e?void 0:e.url)||"";if(!e||null!=e&&e.youtubeId)l.value=e;else{let o=/\d{8}/;t&&t.includes("view/")&&(o=/\/(\d+)/g);var n=null==(n=t.match(o))?void 0:n[0];l.value={...e,mediaId:(null==n?void 0:n.replace("/",""))||t}}}}return{socketHost:s,timeline:o,next:r,video:l,fixedPost:u,fixedCard:b,coverageStartDate:d,coverageEndDate:p,summary:h,channel:f,tagsLive:v,perPage:m,hasNewCards:g,hasSomeTag:function(e){var t;return null==(t=v.value)?void 0:t.flat().some(t=>e.includes(Number(t)))},getCards:async function(e,t,n,o){o=o||m.value;const a=U().$tools,r=(new Date).getTime();var i;e=(await async function(e,t){var n=`commons.uol.com.br/monaco/feed/${t}/minuto-a-minuto-colecao.json`,o=U().$tools;let a=[];try{a=(await o.json.open(n)||[]).filter(t=>(null==(t=null==(t=t.config)?void 0:t.channel)?void 0:t.id)===e)}catch(n){n.message=`There was a problem getting minute by minute data from station ${t} - `+n.message,o.log.error(n)}return a}(e,t)).map(({url:e})=>e.replace(/https?:\/\//,""));let s=[];try{s=(await Promise.allSettled(e.map(e=>a.json.open(e)))).filter(e=>null==(e=e.value)?void 0:e.active).map(e=>null==(e=e.value)?void 0:e.timeline).flat().filter(e=>e.date<=r).sort(S)}catch(e){e.message="There was a problem to getting cards in data.json "+e.message,a.log.error(e)}return[t,i,e=5]=[s,n,o],e=(n=i?t.findIndex(e=>e.id===i):0)+e,{cards:t.slice(n,e),next:(null==(n=null==t?void 0:t[e])?void 0:n.id)||null}},parseDate:function(e){return e?c()(e,"DD/MM/YYYY HH:mm").toISOString():""},getStatus:w,setVideo:O,setConfig:function({data:t}){var n;if(t){null!=(n=t.general)&&n.title&&(e.title=t.general.title),e.kicker.badge=w((null==(n=t.general)?void 0:n.endDate)||t.endDate,(null==(n=t.general)?void 0:n.endCoverage)||t.endCoverage),u.value=(null==(n=null==t?void 0:t.general)?void 0:n.fixedPost)||(null==t?void 0:t.fixedPost)||"";const o=t.summary||t["summary-live"];o&&(n=(n=Object.keys(o)).some(e=>/^topico-/.test(e))?n.sort().reduce((e,t)=>("title"===t?e.title=o[t]:(e.items=e.items||[],e.items.push(o[t].description)),e),{}):null,h.value=n),t.video&&O(t.video)}},updateCards:function(e=[],a={}){var i=e,s=e;for(const e of s.deleted||[])t.delete(e);a.restartTimeline&&t.clear();let c=(null==i?void 0:i.cards)||(null==s?void 0:s.timeline)||e||[];Object.hasOwnProperty.call(e,"active")&&(!1===(s=e).active?n.set(s.id,!0):s.active&&n.has(s.id)&&n.delete(s.id)),a.onlyUpdate||(c=c.concat(y),y=[]);for(const e of c){const n=t.get(e.id);n?Object.entries(e).forEach(([e,t])=>{n[e]=t}):a.onlyUpdate?y.push(e):t.set(e.id,e)}g.value=!!y.length,(null!=i&&i.next||null===(null==i?void 0:i.next))&&(r.value=i.next);const l=new RegExp(`_(${[...n.keys()].join("|")})_`);o.value=[...t.values()].filter(e=>0===n.size||!l.test(e.id)).sort(S)},initMap:function(){i.isServerRendering||o.value.forEach(e=>{t.set(e.id,e)})}}})}).call(this,n(45))},2672:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return O})),n.d(t,"useUserStore",(function(){return S}));t=n(4);var o,a=n(36),r=n.n(a),i=(a=n(2715),a=n.n(a),n(2716)),s=(i=n.n(i),n(0));
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let c;n.n(s).a.util.warn;const l=e=>c=e,u=Symbol();function d(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(n=o=o||{}).direct="direct",n.patchObject="patch object",n.patchFunction="patch function",n="undefined"!=typeof window;const p="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&n,h=()=>{};function f(e,t,n,o=h){e.push(t);var a=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&Object(s.getCurrentScope)()&&Object(s.onScopeDispose)(a),a}function m(e,...t){e.slice().forEach(e=>{e(...t)})}const g=e=>e();function v(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const a in t){var n,o;t.hasOwnProperty(a)&&(n=t[a],d(o=e[a])&&d(n)&&e.hasOwnProperty(a)&&!Object(s.isRef)(n)&&!Object(s.isReactive)(n)?e[a]=v(o,n):e[a]=n)}return e}Symbol();const b=new WeakMap,y=Object.assign;function w(e,t,n={},a,r,i){let c;const u=y({actions:{}},n),d={deep:!0};let w,S,O,j=[],x=[];var _=a.state.value[e],k=(i||_||Object(s.set)(a.state.value,e,{}),Object(s.ref)({}));let C;function P(t){let n;w=S=!1,n="function"==typeof t?(t(a.state.value[e]),{type:o.patchFunction,storeId:e,events:O}):(v(a.state.value[e],t),{type:o.patchObject,payload:t,storeId:e,events:O});const r=C=Symbol();Object(s.nextTick)().then(()=>{C===r&&(w=!0)}),S=!0,m(j,n,a.state.value[e])}var E=i?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{y(e,t)})}:h;function A(t,n){return function(){l(a);var o=Array.from(arguments);const r=[],i=[];let s;m(x,{args:o,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,o)}catch(o){throw m(i,o),o}return s instanceof Promise?s.then(e=>(m(r,e),e)).catch(e=>(m(i,e),Promise.reject(e))):(m(r,s),s)}}var $;k=Object(s.markRaw)({actions:{},getters:{},state:[],hotState:k}),E={_p:a,$id:e,$onAction:f.bind(null,x),$patch:P,$reset:E,$subscribe(t,n={}){var r=f(j,t,n.detached,()=>i());const i=c.run(()=>Object(s.watch)(()=>a.state.value[e],a=>{("sync"===n.flush?S:w)&&t({storeId:e,type:o.direct,events:O},a)},y({},d,n)));return r},$dispose:function(){c.stop(),j=[],x=[],a._s.delete(e)},_r:!1};const D=Object(s.reactive)(p?y({_hmrPayload:k,_customProperties:Object(s.markRaw)(new Set)},E):E),T=(a._s.set(e,D),(a._a&&a._a.runWithContext||g)(()=>a._e.run(()=>(c=Object(s.effectScope)()).run(t))));for(const t in T){var M,R=T[t];Object(s.isRef)(R)&&($=R,!Object(s.isRef)($)||!$.effect)||Object(s.isReactive)(R)?i||(_&&($=R,!b.has($))&&(Object(s.isRef)(R)?R.value=_[t]:v(R,_[t])),Object(s.set)(a.state.value[e],t,R)):"function"==typeof R&&(M=A(t,R),Object(s.set)(T,t,M),u.actions[t]=R)}if(Object.keys(T).forEach(e=>{Object(s.set)(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>a.state.value[e],set:e=>{P(t=>{y(t,e)})}}),p){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,y({value:D[t]},e))})}return D._r=!0,a._p.forEach(e=>{var t;p?(t=c.run(()=>e({store:D,app:a._a,pinia:a,options:u})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),y(D,t)):y(D,c.run(()=>e({store:D,app:a._a,pinia:a,options:u})))}),_&&i&&n.hydrate&&n.hydrate(D.$state,_),w=!0,S=!0,D}const S=function(e,t,n){let o,a;function r(e,n){var r=!!Object(s.getCurrentInstance)();return r=((e=e||(r?Object(s.inject)(u,null):null))&&l(e),(e=c)._s.has(o)||w(o,t,a,e),e._s.get(o))}return o=e,a=void 0,r.$id=o,r}("user",()=>{var e=Object(s.ref)({});const t={id:Object(s.ref)(),name:Object(s.ref)(),email:Object(s.ref)(),avatar:Object(s.ref)(),isLogged:Object(s.ref)(!1),isSubscriber:Object(s.ref)(!1),login:Object(s.ref)(),commentsToken:Object(s.ref)()};var n=Object(s.ref)({items:[],counters:{total:0,notify:{count:0},email:{count:0,url:null,domain:null}}}),o=Object(s.ref)({});return{...t,menu:e,notifications:n,preferences:o,setUserData:function(e){Object.entries(e).forEach(([e,n])=>{Object.hasOwnProperty.call(t,e)&&(t[e].value=n)})},resetUserData:function(){Object.keys(t).forEach(e=>{t[e].value="boolean"!=typeof t[e].value&&void 0})}}});n=Object.defineProperty,Object.getOwnPropertyDescriptor;r.a.use(a.a),r.a.use(i.a);class O extends t.MixedEnvironment{constructor(){super(...arguments),this.defaultNotificationState={items:[],counters:{}}}async init(){try{await r.a.init()}catch(e){console.error(e)}var e=r.a.getUser(),t=(this.userStore.setUserData(e),[this.getMenu()]);e.isLogged&&t.push(this.getNotification(!0)),await Promise.allSettled(t)}login(){return r.a.login()}async logout(){try{await r.a.logout(),this.userStore.resetUserData(),await this.getMenu()}catch(e){console.error(e)}}getUserData(){return this.userStore.$state}async getMenu(){let e=[];try{var t=await r.a.$menu.getMenu();Array.isArray(t)&&(e=t)}catch(e){console.error(e)}this.userStore.menu=e}async getNotification(e=!1){var t=this.userStore.notifications||this.defaultNotificationState;try{var n=await r.a.$notify.fetch();Array.isArray(n)&&n.length&&(t.items=t.items.concat(n))}catch(e){console.error(e)}if(e)try{t.counters=await r.a.$notify.getCounters()}catch(e){console.error(e)}this.userStore.notifications=t}async markNotificationAsRead(e){var t=this.userStore.notifications||this.defaultNotificationState;try{await r.a.$notify.markAsRead(e),t.items=t.items.map(t=>(t.id===e&&(t.read=!0),t))}catch(t){console.error(t)}try{t.counters=await r.a.$notify.getCounters()}catch(t){console.error(t)}this.userStore.notifications=t}async deleteNotification(e){var t=this.userStore.notifications||this.defaultNotificationState;try{await r.a.$notify.delete(e),t.items=t.items.filter(t=>t.id!==e)}catch(t){console.error(t)}this.userStore.notifications=t}}for(var j,x=[Object(t.Inject)(S)],_=O.prototype,k="userStore",C=void 0,P=x.length-1;0<=P;P--)(j=x[P])&&(C=j(_,k,C)||C);C&&n(_,k,C)},2673:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));
/*!
 * Jupiter - Jupiter ads service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class o extends n(4).MixedEnvironment{constructor(){super(...arguments),this.identifiers=new Map}buildID(e){var t=(this.identifiers.get(e)||0)+1;return this.identifiers.set(e,t),e.replace(/-^/,"")+"-"+t}resetID(e){this.identifiers.set(e,0)}getAdsHandler(){var e=this.getConfig().ads;return null!=e&&e.mode&&"default"!==e.mode?"pushAds":"uolads"}push(e,t={returnScript:!1}){const n=this.getAdsHandler();if(t.returnScript&&"string"==typeof e)return`(function(w,h){w[h] = w[h] || []; w[h].push(${"pushAds"===n?`'${e}'`:`{ id: '${e}' }`})})(window,'${n}')`;Array.isArray(window[n])?(Array.isArray(e)?e:[e]).forEach(e=>window[n].push("pushAds"===n?e:{id:e})):console.error(`window.${n} is not defined as array`)}async showSponsorSeal(e,t){const n=await this.tools.json.open("commons.uol.com.br/monaco/export/api.uol.com.br/selo-patrocinio/selo-patrocinio.json");var o=(a=e=>n["tag-scripts"].conteudo[e].split(",").filter(e=>e))("seloTags"),a=a("seloURL");return o.some(t=>e.includes(Number(t)))||a.includes(t)}}},2715:function(e,t){var n,o,a,r=Object.create,i=Object.defineProperty,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertySymbols,p=Object.prototype.propertyIsEnumerable,h=e=>i(e,"__esModule",{value:!0}),f=(e,t,n)=>new Promise((o,a)=>{var r=e=>{try{s(n.next(e))}catch(e){a(e)}},i=e=>{try{s(n.throw(e))}catch(e){a(e)}},s=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,i);s((n=n.apply(e,t)).next())}),m=(n=e=>{var t,n=Object.defineProperty,o=Object.assign,a=(n(e,"__esModule",{value:!0}),e),r={CookieService:()=>s,ValhallaPlugin:()=>i};for(t in r)n(a,t,{get:r[t],enumerable:!0});var i=class{},s=class{static getCookie(e){return(e=document.cookie.match(new RegExp(`(^| )${e}=([^;]*)`)))?e[2]:void 0}static getAllCookies(){const e={};return document.cookie.split(";").forEach(t=>{var[t,n]=t.split("=").map(e=>e.trim());e[t]=n}),e}static setCookie(e,t,n){let o=encodeURIComponent(e)+"="+encodeURIComponent(t);n&&(n.expires&&(n.expires instanceof Date?o+="; expires="+n.expires.toUTCString():((e=new Date).setTime(e.getTime()+24*n.expires*60*60*1e3),o+="; expires="+e.toUTCString())),n.path&&(o+="; path="+n.path),n.domain&&(o+="; domain="+n.domain),n.secure)&&(o+="; secure"),document.cookie=o}static removeCookie(e,t){this.setCookie(e,"",o({expires:-1},t))}}},()=>(o||n((o={exports:{}}).exports),o.exports)),g=(h(t),t),v={default:()=>y};for(a in v)i(g,a,{get:v[a],enumerable:!0});t=(e=>{var t=h(i(null!=e?r(s(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),n=e,o=void 0;if(n&&"object"==typeof n||"function"==typeof n)for(let e of l(n))c.call(t,e)||"default"===e||i(t,e,{get:()=>n[e],enumerable:!(o=u(n,e))||o.enumerable});return t})(m());
/*!
 * Valhalla - Menu Plugin
 * 2023 monaco
 */var b=class extends t.ValhallaPlugin{constructor(){super(...arguments),this.prefix="$menu",this.menuData=null,this.menuDataWithMetrics=null}getMenu(){return f(this,null,(function*(){var e=yield this.getLoggedInMenu(this.userData.isSubscriber),t=yield this.getLoggedOffMenu();return this.userData.isLogged?e:t}))}getMenuData(){return f(this,null,(function*(){var e;return this.menuData||(e=yield(yield fetch(b.baseUrl,{method:"GET",cache:"no-store"})).json(),this.menuData=e)}))}getLoggedInMenu(e){return f(this,null,(function*(){return(yield this.getMenuData()).loggedin.filter(t=>null==(t=t.show)?void 0:t.includes(e?"assinante":"visitante")).map(e=>{var{}=e;return((e,t)=>{var n={};for(o in e)c.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&d)for(var o of d(e))t.indexOf(o)<0&&p.call(e,o)&&(n[o]=e[o]);return n})(e,["show"])}).map(e=>({label:e.label,link:e.link,fixed:e.fixed,metric:{label:e["metric-label"],clickType:e["metric-clickType"]}}))}))}getLoggedOffMenu(){return f(this,null,(function*(){var e=yield this.getMenuData();return e.config.loggedoff.menu?e.loggedoff.map(e=>({label:e.label,link:e.link,fixed:e.fixed,metric:{label:e["metric-label"],clickType:e["metric-clickType"]}})):[]}))}},y=((m=b).baseUrl="https://conteudo.jsuol.com.br/c/monaco/conteudo/valhalla/menu.json",m)},2716:function(e,t){var n,o,a,r=Object.create,i=Object.defineProperty,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertyDescriptor,d=e=>i(e,"__esModule",{value:!0}),p=(e,t,n)=>new Promise((o,a)=>{var r=e=>{try{s(n.next(e))}catch(e){a(e)}},i=e=>{try{s(n.throw(e))}catch(e){a(e)}},s=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,i);s((n=n.apply(e,t)).next())}),h=(n=e=>{var t,n=Object.defineProperty,o=Object.assign,a=(n(e,"__esModule",{value:!0}),e),r={CookieService:()=>s,ValhallaPlugin:()=>i};for(t in r)n(a,t,{get:r[t],enumerable:!0});var i=class{},s=class{static getCookie(e){return(e=document.cookie.match(new RegExp(`(^| )${e}=([^;]*)`)))?e[2]:void 0}static getAllCookies(){const e={};return document.cookie.split(";").forEach(t=>{var[t,n]=t.split("=").map(e=>e.trim());e[t]=n}),e}static setCookie(e,t,n){let o=encodeURIComponent(e)+"="+encodeURIComponent(t);n&&(n.expires&&(n.expires instanceof Date?o+="; expires="+n.expires.toUTCString():((e=new Date).setTime(e.getTime()+24*n.expires*60*60*1e3),o+="; expires="+e.toUTCString())),n.path&&(o+="; path="+n.path),n.domain&&(o+="; domain="+n.domain),n.secure)&&(o+="; secure"),document.cookie=o}static removeCookie(e,t){this.setCookie(e,"",o({expires:-1},t))}}},()=>(o||n((o={exports:{}}).exports),o.exports)),f=(d(t),t),m={default:()=>b};for(a in m)i(f,a,{get:m[a],enumerable:!0});t=(e=>{var t=d(i(null!=e?r(s(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),n=e,o=void 0;if(n&&"object"==typeof n||"function"==typeof n)for(let e of l(n))c.call(t,e)||"default"===e||i(t,e,{get:()=>n[e],enumerable:!(o=u(n,e))||o.enumerable});return t})(h());
/*!
 * Valhalla - Notify Plugin
 * 2023 monaco
 */var g={total:0,notify:{count:0},email:{count:0,url:"",domain:""}},v=class extends t.ValhallaPlugin{constructor(){super(...arguments),this.prefix="$notify",this.counters=g,this.countersLoaded=!1,this.notificationsStore=[],this.token="",this.startRangeIndex=0,this.requestOptions={method:"GET",credentials:"include"}}getCounters(){return p(this,null,(function*(){return this.countersLoaded||(this.counters=yield this.loadCounters(),this.countersLoaded=!0),this.counters}))}loadCounters(){return p(this,null,(function*(){var e,t,n=v.baseUrl+"/counter?_=",o=(n=yield fetch(n,this.requestOptions),g);if(200===n.status)return e=+(t=yield n.json()).result.total,o.notify.count=e,(t=(null==(t=null==(t=t.result)?void 0:t.emailCount)?void 0:t[0])||{count:0}).count=+t.count,o.email=t,o.total=0<+t.count?1+e:e,o;throw Error("Get notify counters error: "+n.status)}))}fetch(e=5){return p(this,null,(function*(){let t=this.notificationsStore.length;if(0===t){var n=(new Date).getTime().toString(),o=(n=v.baseUrl+`s?first_page=false&_=${n}&ignoresystems=7,8,9,99`,n=yield fetch(n,this.requestOptions),yield n.json());if(200!=n.status)throw Error("Fetch notify error: "+n.status);n=o.result,this.token=n.token,n.docs.forEach(e=>{e={classification:e.classification,content:e.content,created:e.created,from:e.from,id:e.id,read:e.read,url:e.url,origin:v.notifyMapOrigin.get(e.from)||"nao-identificado"},this.notificationsStore.push(e)}),t=this.notificationsStore.length}return o=Math.min(this.startRangeIndex+e,t),n=this.notificationsStore.slice(this.startRangeIndex,o),this.startRangeIndex=o,n}))}dirty(){return p(this,null,(function*(){0<this.counters.notify.count&&(yield this.clearCounter())}))}delete(e){return p(this,null,(function*(){var t=this.getNotifyItemFromArray(e),n=(new Date).getTime().toString();t=`${v.baseUrl}/delete?id=${e}&classification=${t.classification}&token=${this.token}&_=`+n;if(200!=(n=(yield fetch(t,this.requestOptions)).status))throw new Error("Delete notification error, status: "+n);this.deleteNotifyItemFromArray(e),this.dirty()}))}clearCounter(){return p(this,null,(function*(){var e=(new Date).getTime().toString();e=`${v.baseUrl}/counter/clear?token=${this.token}&_=`+e;if(200!=(e=(yield fetch(e,this.requestOptions)).status))throw new Error("Delete notification, status: "+e);this.counters.notify.count=0,this.counters.total=0}))}markAsRead(e){return p(this,null,(function*(){if(!e)throw new Error("Id cannot be an empty: "+e);var t=(new Date).getTime().toString(),n=this.getNotifyItemFromArray(e);t=`${v.baseUrl}/mark-as-read?id=${e}&classification=${n.classification}&token=${this.token}&_=`+t;if(200!=(t=(yield fetch(t,this.requestOptions)).status))throw new Error("Error on read notification, status: "+t);n.read=!0,this.dirty()}))}getNotifyItemFromArray(e){var t=this.notificationsStore.find(t=>t.id===e);if(void 0===t)throw new Error("getNotifyItemFromArray- Não foi encontrado nenhuma notificação com esse id");return t}deleteNotifyItemFromArray(e){for(let t=this.notificationsStore.length-1;0<=t;t--)if(this.notificationsStore[t].id===e)return this.notificationsStore.splice(t,1),this.startRangeIndex--,e;throw"Não foi encontrado nenhuma notificação com esse id"}},b=((h=v).notifyMapOrigin=new Map([[10,"conteudo-uol"],[2,"forum-comentario"],[3,"perfil"],[4,"tv-uol"],[5,"e-mail"],[6,"padrao"],[7,"anuncio"],[8,"afiliados"],[9,"ver-depois"],[99,"testepublicidade"]]),h.baseUrl="https://notify.uol.com.br/notification",h)},3066:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=n(4),a=n(43),r=n(20);const i=n(82);var s=n(2673),c=n(72);const l=n(0),u=(n=e=>e&&e.__esModule?e:{default:e})(r);r=n(i),s=n(s),n=n(l)
/*!
 * Main exports
 */;var d={$and:!0,$or:!0,$nor:!0};function p(e){this.query=e,this.stack=m(e)}
/*!
 * Version number
 */
/*!
 * ## parsePath(path)
 *
 * Helper function used to parse string object
 * paths. Use in conjunction with `getPathValue`.
 *
 *      var parsed = parsePath('myobject.property.subprop');
 *
 * ### Paths:
 *
 * * Can be as near infinitely deep and nested
 * * Arrays are also valid using the formal `myobject.document[3].property`.
 *
 * @param {String} path
 * @returns {Object} parsed
 */function h(e){return e.replace(/\[/g,".[").match(/(\\\.|[^.]+?)+/g).map((function(e){var t=/\[(\d+)\]$/.exec(e);return t?{i:parseFloat(t[1])}:{p:e}}))}function f(e,t){for(var n,o=t,a=0,r=e.length;a<r;a++){var i=e[a];o?(void 0!==i.p?o=o[i.p]:void 0!==i.i&&(o=o[i.i]),a==r-1&&(n=o)):n=void 0}return n}
/*!
 * ## parseQuery(query)
 *
 * Given the query input, create a reusable definition
 * for how to test data again the query.
 *
 * @param {Object} query
 * @returns {Array} stack to be used with `Filtr.prototype.test`
 */function m(e){var t,n=[];for(t in e){var o={},a=e[t];"$"==t[0]?o.test=g(e):(o.test=g("string"==typeof a||"number"==typeof a||"boolean"==typeof a?{$eq:a}:a),o.path=h(t)),n.push(o)}return n}
/*!
 * ## parseFilter (query)
 *
 * Given that the root object passed is a comparator definition,
 * return a consumable test definition.
 *
 * @param {Object} query
 * @returns {Array} stack for use as input with `testFilter`
 */function g(e){var t,n=[];for(t in e){var o=p.comparators[t],a=e[t],r=!1;if(d[t])for(var i=[],s=(r=!0,0);s<a.length;s++){var c,l=a[s];"string"==typeof l||"number"==typeof l||"boolean"==typeof l?r=!1:c=m(l),i.push(c)}n.push({fn:o,params:r?i:a,traverse:r})}return n}
/*!
 * ## testFilter(value, stack)
 *
 * Given a well-formed stack from `parseFilter`, test
 * a given value again the stack.
 *
 * As the value is passed to a comparator, if that comparator
 * can interpret the value, false will be return. IE $gt: 'hello'
 *
 * @param {Object} value for consumption by comparator test
 * @param {Array} stack from `parseFilter`
 * @returns {Boolean} result
 * @api private
 */function v(e,t){for(var n=!0,o=0,a=t.length;o<a;o++){var r=t[o];!function(e,t){for(var n=!0,o=0;o<t.length;o++){var a=t[o],r=a.params;if(a.traverse){for(var i=[],s=0;s<r.length;s++)i.push(v(e,r[s]));r=i}1==a.fn.length?a.fn(r)||(n=!1):a.fn(e,r)||(n=!1)}return n}(r.path?f(r.path,e):e,r.test)&&(n=!1)}return n}p.version="0.3.0",p.comparators={$gt:function(e,t){return t<e},$gte:function(e,t){return t<=e},$lt:function(e,t){return e<t},$lte:function(e,t){return e<=t},$all:function(e,t){for(var n=0;n<t.length;n++)if(!~e.indexOf(t[n]))return!1;return!0},$exists:function(e,t){return!!e==t},$mod:function(e,t){return e%t[0]==t[1]},$eq:function(e,t){return e==t},$ne:function(e,t){return e!=t},$in:function(e,t){return Array.isArray(e)?e.some(e=>t.includes(e)):!!~t.indexOf(e)},$nin:function(e,t){if(void 0!==e)return Array.isArray(e)?e.every(e=>!t.includes(e)):!~t.indexOf(e)},$size:function(e,t){return!(!e.length||!t)&&e.length==t},$or:function(e){for(var t=!1,n=0;n<e.length;n++)e[n]&&(t=!0);return t},$nor:function(e){for(var t=!0,n=0;n<e.length;n++)e[n]&&(t=!1);return t},$and:function(e){for(var t=!0,n=0;n<e.length;n++)e[n]||(t=!1);return t},$regex:function(e,t){return(t="string"==typeof t?(e=>{t="/",t=(e=e).lastIndexOf(t);var[e,t]=[e.slice(0,t),e.slice(t+1)];return new RegExp(e.replace(/^\//,""),t||"g")})(t):t instanceof RegExp?t:void 0)?t.test(e):void 0}},p.getPathValue=function(e,t){return f(h(e),t)},p.setPathValue=function(e,t,n){for(var o=h(e),a=t,r=n,i=0,s=o.length;i<s;i++){var c=o[i];void 0!==r?i==s-1?void 0!==c.p?r[c.p]=a:void 0!==c.i&&(r[c.i]=a):void 0!==c.p&&r[c.p]?r=r[c.p]:void 0!==c.i&&r[c.i]?r=r[c.i]:(o[i+1],void 0!==c.p?(r[c.p]={},r=r[c.p]):void 0!==c.i&&(r[c.i]=[],r=r[c.i])):i==s-1?r=a:void 0!==c.p?r={}:void 0!==c.i&&(r=[])}},p.prototype.test=function(e,t){for(var n=
/*!
 * helper function for setting defaults
 */
function(e,t){if(e&&t)for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e}(t||{},{type:"set",spec:"subset"}),o="single"!=n.type&&[],a=0,r=(e="single"==n.type?[e]:e).length;a<r;a++){var i=e[a],s=v(i,this.stack);if("single"==n.type)o=s;else switch(n.spec){case"boolean":o.push(s);break;case"index":s&&o.push(a);break;default:s&&o.push(i)}}return o};const b=["header-contextual","header-suffix","header-bottom","header-top","fixed-mobile","vertical-1-left","vertical-2-left","vertical-3-left","vertical-4-left","vertical-5-left","vertical-6-left","vertical-7-left","vertical-8-left","vertical-9-left","vertical-10-left","vertical-11-left","vertical-12-left","vertical-13-left","vertical-14-left","vertical-1-right","vertical-2-right","vertical-3-right","vertical-4-right","vertical-5-right","vertical-6-right","vertical-7-right","vertical-8-right","vertical-9-right","vertical-10-right","vertical-11-right","vertical-12-right","vertical-13-right","vertical-14-right","modal-1","modal-2","modal-3","modal-4","modal-5","modal-6","modal-7","modal-8","modal-9","modal-10","modal-11","modal-12","modal-13","modal-14","text-1","text-2","text-3","text-4","text-5","text-6","text-7","text-8","text-9","text-10","text-11","text-12","text-13","text-14","horizontal-1","horizontal-2","horizontal-3","horizontal-4","horizontal-5","horizontal-6","horizontal-7","horizontal-8","horizontal-9","horizontal-10","horizontal-11","horizontal-12","horizontal-13","horizontal-14","horizontal-15","horizontal-16","horizontal-17","horizontal-18","horizontal-19","horizontal-20","text-group-top-1","text-group-top-2","text-group-top-3","text-group-top-4","text-group-top-5","text-group-top-6","text-group-top-7","text-group-top-8","text-group-top-9","text-group-top-10","text-group-top-11","text-group-top-12","text-group-top-13","text-group-top-14","text-group-bottom-1","text-group-bottom-2","text-group-bottom-3","text-group-bottom-4","text-group-bottom-5","text-group-bottom-6","text-group-bottom-7","text-group-bottom-8","text-group-bottom-9","text-group-bottom-10","text-group-bottom-11","text-group-bottom-12","text-group-bottom-13","text-group-bottom-14","content-top","content-footer-1","content-footer-2","content-footer-3","content-footer-4","content-footer-5","content-footer-6","scripts-before","scripts-after"];var y;
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let w;n.default.util.warn;const S=e=>w=e,O=Symbol();function j(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(n=y=y||{}).direct="direct",n.patchObject="patch object",n.patchFunction="patch function",n="undefined"!=typeof window;const x="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&n,_=()=>{};function k(e,t,n,o=_){e.push(t);var a=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&l.getCurrentScope()&&l.onScopeDispose(a),a}function C(e,...t){e.slice().forEach(e=>{e(...t)})}const P=e=>e();function E(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const a in t){var n,o;t.hasOwnProperty(a)&&(n=t[a],j(o=e[a])&&j(n)&&e.hasOwnProperty(a)&&!l.isRef(n)&&!l.isReactive(n)?e[a]=E(o,n):e[a]=n)}return e}Symbol();const A=new WeakMap,$=Object.assign;function D(e,t,n={},o,a,r){let i;const s=$({actions:{}},n),c={deep:!0};let u,d,p,h=[],f=[];var m=o.state.value[e],g=(r||m||l.set(o.state.value,e,{}),l.ref({}));let v;function b(t){let n;u=d=!1,n="function"==typeof t?(t(o.state.value[e]),{type:y.patchFunction,storeId:e,events:p}):(E(o.state.value[e],t),{type:y.patchObject,payload:t,storeId:e,events:p});const a=v=Symbol();l.nextTick().then(()=>{v===a&&(u=!0)}),d=!0,C(h,n,o.state.value[e])}var w=r?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{$(e,t)})}:_;function O(t,n){return function(){S(o);var a=Array.from(arguments);const r=[],i=[];let s;C(f,{args:a,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,a)}catch(a){throw C(i,a),a}return s instanceof Promise?s.then(e=>(C(r,e),e)).catch(e=>(C(i,e),Promise.reject(e))):(C(r,s),s)}}var j;g=l.markRaw({actions:{},getters:{},state:[],hotState:g}),w={_p:o,$id:e,$onAction:k.bind(null,f),$patch:b,$reset:w,$subscribe(t,n={}){var a=k(h,t,n.detached,()=>r());const r=i.run(()=>l.watch(()=>o.state.value[e],o=>{("sync"===n.flush?d:u)&&t({storeId:e,type:y.direct,events:p},o)},$({},c,n)));return a},$dispose:function(){i.stop(),h=[],f=[],o._s.delete(e)},_r:!1};const D=l.reactive(x?$({_hmrPayload:g,_customProperties:l.markRaw(new Set)},w):w),T=(o._s.set(e,D),(o._a&&o._a.runWithContext||P)(()=>o._e.run(()=>(i=l.effectScope()).run(t))));for(const t in T){var M,R=T[t];l.isRef(R)&&(j=R,!l.isRef(j)||!j.effect)||l.isReactive(R)?r||(m&&(j=R,!A.has(j))&&(l.isRef(R)?R.value=m[t]:E(R,m[t])),l.set(o.state.value[e],t,R)):"function"==typeof R&&(M=O(t,R),l.set(T,t,M),s.actions[t]=R)}if(Object.keys(T).forEach(e=>{l.set(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>o.state.value[e],set:e=>{b(t=>{$(t,e)})}}),x){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,$({value:D[t]},e))})}return D._r=!0,o._p.forEach(e=>{var t;x?(t=i.run(()=>e({store:D,app:o._a,pinia:o,options:s})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),$(D,t)):$(D,i.run(()=>e({store:D,app:o._a,pinia:o,options:s})))}),m&&r&&n.hydrate&&n.hydrate(D.$state,m),u=!0,d=!0,D}n=function(e,t,n){let o,a;function r(e,n){var r=!!l.getCurrentInstance();return r=((e=e||(r?l.inject(O,null):null))&&S(e),(e=w)._s.has(o)||D(o,t,a,e),e._s.get(o))}return o=e,a=void 0,r.$id=o,r}("campaign",()=>{var e=l.ref([]);const t=l.ref({});var n=l.ref([]);const o=e=>({...e.data||{},ab:e.ab,withClientSideQuery:e.withClientSideQuery,fixed:e.fixed,stick:e.stick,_id:e._id,skeletonRepeat:3});return{ids:e,slots:t,tests:n,setCampaigns:e=>{t.value=Object.entries(e).reduce((e,[t,n])=>(e[t]={id:t,classes:[{stick:n.some(({stick:e})=>e),fixed:n.some(({fixed:e})=>e)},"campaign-container"],items:n.map(o)},e),{})}}});var T=Object.defineProperty,M=Object.getOwnPropertyDescriptor,R=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?M(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&T(t,n,r),r};"undefined"==typeof window||window.__vueland_campaign_pageHitsMap||(window.__vueland_campaign_pageHitsMap={});class I extends o.MixedEnvironment{constructor(){super(...arguments),this.abTestCookiePrefix="__vueland_campaign_ab_",this.storagePrefix="__vueland_campaign_schema",this.slots={},this.availableSlots=["header-bottom","header-top","header-contextual","header-suffix"],this.defaultCampaignStorageData={hits:0,pageHits:0},this.campaignDataBasePath="commons.uol.com.br/sistemas/jupiter-campaign"}async init(e,t=[]){var n;this.availableSlots=[...this.availableSlots,...t];const o=await this.getCampaignData();t=null==(t=Object.values(o))?void 0:t.flat().map(({_id:e,ab:t,query:n})=>({ab:null==t?void 0:t.testName,_id:e,withHitCount:null==n?void 0:n.hits,withPageHitCount:null==n?void 0:n.pageHits})),this.store.tests=null==(n=null==(n=t||[])?void 0:n.filter(({ab:e})=>e))?void 0:n.map(({ab:e})=>e),this.store.ids=t.filter(({_id:e})=>e).map(({_id:e,withHitCount:t,withPageHitCount:n})=>({_id:e,withHitCount:t,withPageHitCount:n})),Object.keys(o).map(async t=>{const n=t;this.filter(o[n],e).forEach(e=>{var t=e.ifnot||{},o=this.availableSlots.includes(n),a=o?n:this.availableSlots.includes(t.slot)?t.slot:void 0;a&&(!o&&t.priority&&(e.priority=t.priority),this.push(a,e))})}),await this.addSponsorSealCampaign()}registerSlot(e){(Array.isArray(e)?e:[e]).forEach(e=>{this.availableSlots.includes(e)||this.availableSlots.push(e)})}async mount(){var e=this.getConfig().campaigns;await this.init(this.pageStore.tagsList,e?e.filter(e=>b.includes(e)):b)}async checkIfHaveActiveSkin(){var e,t;try{var n=await this.tools.json.open(this.campaignDataBasePath.replace(/\/$/,"")+"/skins/index.json");for(const e of n.content)if(e.tag&&this.pageStore.tagsList.includes(e.tag)||e.path&&new RegExp(e.path).test(this.pageStore.link))return void(this.campaignDataBasePath+="/skins/"+e.skin);for(const a of["channel","central"]){var o=n[a];for(const n of Object.keys(o))if((null==(t=null==(e=this.pageStore)?void 0:e.collection)?void 0:t.header[a])===n)return void(this.campaignDataBasePath+="/skins/"+o[n])}}catch(e){this.tools.log.error(e)}}async getCampaignData(){const e=[];let t={};await this.checkIfHaveActiveSkin(),b.forEach(t=>e.push(this.tools.json.open(this.campaignDataBasePath.replace(/\/$/,"")+`/${t}.json`)));try{var n=await Promise.allSettled(e).then(e=>e.filter(e=>"fulfilled"===e.status).map(e=>e.value));t=n.reduce((e,{id:t,items:n})=>(e[t]=n,e),{})}catch(t){this.tools.log.error(t)}return t}parseQuery(e,t,n,o={}){var a;try{return 0<(null==(a=new p(t).test(n,o))?void 0:a.length)}catch(t){t.message=`There was an error filtering the ${e} property of the campaign query. `+t.message,this.tools.log.error(t)}return!1}filter(e,t){var n,o=this.getConfig();const a=[{name:"station",data:[{name:null==(n=null==o?void 0:o.central)?void 0:n.slug}]},{name:"channel",data:[{name:null==(n=null==o?void 0:o.channel)?void 0:n.slug}]},{name:"device",data:[{type:this.getRequest().isDesktop()?"desktop":"mobile"}]},{name:"domain",data:[{name:this.getRequest().getDomain()}]},{name:"path",data:[{name:this.getRequest().getUri()}]},{name:"tags",data:[{id:Array.isArray(t)?t:[]}]}];return e.filter(({query:e,schedule:t})=>{var n,o,{start:t,end:r}=t||{},i=[],s=e;for({name:n,data:o}of a)s[n]&&Object.keys(s[n]).length&&i.push(this.parseQuery(n,s[n],o));for(const t of Object.keys(e))t.startsWith("$")&&i.push(this.parseQuery(t,{[t]:e[t]},a.map(e=>e.data.map(t=>({[e.name]:t}))).flat()));return t&&i.push(0<=u.default().diff(t,"seconds")),r&&i.push(u.default().diff(r,"seconds")<=0),i.every(e=>e)})}clientSideFilter(e){var t="undefined"==typeof window;const n=t?{}:this.userPreferencesService.getAllAttributes(),o=!t&&this.localStorageService.getData(this.storagePrefix)||{},a=(e,t)=>n=>{var o=n.query||{};return!o[e]||!Object.keys(o[e]).length||"undefined"!=typeof window&&(n.withClientSideQuery=!0,this.parseQuery(e,o[e],t))};return e.filter(e=>{var t=null==(t=null==o?void 0:o[e._id])?void 0:t.hits;return a("hits",void 0!==t?[t]:[])(e)}).filter(e=>{var t=null==(t=null==o?void 0:o[e._id])?void 0:t.pageHits;return a("pageHits",void 0!==t?[t]:[])(e)}).filter(e=>{var t=[];for(const r of[...i.arrayProperties,...i.singleProperties]){var o=n[r]?[{values:n[r]}]:[];t.push(a(r,o)(e))}return t.every(e=>e)})}push(e,t){this.slots[e]=this.slots[e]||[],this.slots[e].push(t),this.slots[e]=this.slots[e].sort((e,t)=>e.priority>t.priority?1:-1),this.store.setCampaigns(this.slots)}getSlot(e){var t=this.store.slots;return this.clientSideFilter((null==t?void 0:t[e])||[])}getCampaignFromSlot(e){var t=(null==(t=this.getSlot(e))?void 0:t.map(e=>({...e.data||{},ab:e.ab,withClientSideQuery:e.withClientSideQuery,fixed:e.fixed,stick:e.stick,_id:e._id})))||[],n=[];return t.some(({stick:e})=>e)&&n.push("stick"),t.some(({fixed:e})=>e)&&n.push("fixed"),{id:e,classes:n,items:t}}getCampaign(e){var t=this.getConfig().campaigns;if(!Array.isArray(t))return{};let n=t.filter(e=>b.includes(e));return(n=e?n.filter(t=>Array.isArray(e)?e.includes(t):t===e):n).reduce((e,t)=>(e[t]=this.getCampaignFromSlot(t),e),{})}clientSideInit(){var e=this.store.tests,t=this.store.ids;const n=null==(a=Object.values(this.store.slots))?void 0:a.flat(),o=(this.tools.ab.setCookiePrefix(this.abTestCookiePrefix).clear(Array.isArray(e)?e:[]),this.localStorageService.getData(this.storagePrefix)||{});var a=t.reduce((e,t)=>(e[t._id]=(null==o?void 0:o[t._id])||this.defaultCampaignStorageData,t.withHitCount?e[t._id].hits=e[t._id].hits||0:delete e[t._id].hits,t.withPageHitCount?!window.__vueland_campaign_pageHitsMap[t._id]&&n.find(({_id:e})=>e===t._id)&&(window.__vueland_campaign_pageHitsMap[t._id]=!0,e[t._id].pageHits=(e[t._id].pageHits||0)+1):delete e[t._id].pageHits,e),{});this.localStorageService.setData(this.storagePrefix,a),"undefined"!=typeof window&&(window.$VuelandCampaignPush=(e,t,n)=>{var o=this.store.slots;b.includes(e)?(o[e]=Array.isArray(o[e])?o[e]:[],o[e].push({_id:"__vueland_campaign_render_"+(new Date).getTime(),priority:n.priority||.1,stick:!!n.stick,query:{},ifnot:{},data:{component:t.component,props:t.props}}),o[e]=o[e].sort((e,t)=>e.priority>t.priority?1:-1),this.store.setCampaigns(o)):console.error(`Slot "${e}" does not exist`)})}hit(e,t){var n=this.store.ids.find(({_id:t})=>t===e),o="hits"===t?null==n?void 0:n.withHitCount:null==n?void 0:n.withPageHitCount;n&&o&&((n=this.localStorageService.getDataKey(this.storagePrefix,e)||this.defaultCampaignStorageData)[o="hits"===t?"hits":"pageHits"]=(n[o]||0)+1,this.localStorageService.setDataProp(this.storagePrefix,e,n))}getAbTestCandidate(e){return this.tools.ab.setCookiePrefix(this.abTestCookiePrefix).mount({...e,slots:Object.keys(e.plan),sample:e=>{console.log("sampĺe: test is ",e)},pick:e=>{console.log("pick: test is ",e)}})}async addSponsorSealCampaign(){await this.adsService.showSponsorSeal(this.pageStore.tagsList,this.getRequest().getLink())&&this.push("header-bottom",{_id:"ads-seal",priority:1,query:{},data:{component:"JupiterAds",props:{id:"banner-120x35-area",height:56,increment:!1}}})}}R([o.Inject(a.LocalStorageService)],I.prototype,"localStorageService",2),R([o.Inject(r.default)],I.prototype,"userPreferencesService",2),R([o.Inject(n)],I.prototype,"store",2),R([o.Inject(c.usePageStore)],I.prototype,"pageStore",2),R([o.Inject(s.default)],I.prototype,"adsService",2),t.default=I,t.slotsPrefix=b,t.useCampaignStore=n},3067:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});
/*!
 * Jupiter - Jupiter app service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class o extends n(4).MixedEnvironment{inApp(){var e=null==(e=null==(e=this.getConfig())?void 0:e.app)?void 0:e.paramName;return void 0!==this.getRequest().getParams(e)}inHomologApp(){var e=null==(e=null==(e=this.getConfig())?void 0:e.app)?void 0:e.homologParamName;return this.isParamEnabled(this.getRequest().getParams(e))}get capabilities(){const e={comments:!1,initMetrics:this.isParamEnabled(this.getRequest().getParams("app_init_metrics"))||!1};return(this.getRequest().getParams("app_capabilities")||"").split(/[;,]/).forEach(t=>{t=t.replace(/[-_](\w)/g,(e,t)=>t.toUpperCase()),e[t]=!0}),e}isParamEnabled(e){return![void 0,null,!1,"false"].includes(e)}}t.default=o},3068:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return M})),n.d(t,"slotsPrefix",(function(){return g})),n.d(t,"useCampaignStore",(function(){return $}));t=n(4);
/*!
 * Main exports
 */var o=n(43),a=n(20),r=n.n(a),i=n(82),s=(a=n(2673),n(72)),c=n(0),l=(n=n.n(c),{$and:!0,$or:!0,$nor:!0});function u(e){this.query=e,this.stack=h(e)}
/*!
 * Version number
 */
/*!
 * ## parsePath(path)
 *
 * Helper function used to parse string object
 * paths. Use in conjunction with `getPathValue`.
 *
 *      var parsed = parsePath('myobject.property.subprop');
 *
 * ### Paths:
 *
 * * Can be as near infinitely deep and nested
 * * Arrays are also valid using the formal `myobject.document[3].property`.
 *
 * @param {String} path
 * @returns {Object} parsed
 */function d(e){return e.replace(/\[/g,".[").match(/(\\\.|[^.]+?)+/g).map((function(e){var t=/\[(\d+)\]$/.exec(e);return t?{i:parseFloat(t[1])}:{p:e}}))}function p(e,t){for(var n,o=t,a=0,r=e.length;a<r;a++){var i=e[a];o?(void 0!==i.p?o=o[i.p]:void 0!==i.i&&(o=o[i.i]),a==r-1&&(n=o)):n=void 0}return n}
/*!
 * ## parseQuery(query)
 *
 * Given the query input, create a reusable definition
 * for how to test data again the query.
 *
 * @param {Object} query
 * @returns {Array} stack to be used with `Filtr.prototype.test`
 */function h(e){var t,n=[];for(t in e){var o={},a=e[t];"$"==t[0]?o.test=f(e):(o.test=f("string"==typeof a||"number"==typeof a||"boolean"==typeof a?{$eq:a}:a),o.path=d(t)),n.push(o)}return n}
/*!
 * ## parseFilter (query)
 *
 * Given that the root object passed is a comparator definition,
 * return a consumable test definition.
 *
 * @param {Object} query
 * @returns {Array} stack for use as input with `testFilter`
 */function f(e){var t,n=[];for(t in e){var o=u.comparators[t],a=e[t],r=!1;if(l[t])for(var i=[],s=(r=!0,0);s<a.length;s++){var c,d=a[s];"string"==typeof d||"number"==typeof d||"boolean"==typeof d?r=!1:c=h(d),i.push(c)}n.push({fn:o,params:r?i:a,traverse:r})}return n}
/*!
 * ## testFilter(value, stack)
 *
 * Given a well-formed stack from `parseFilter`, test
 * a given value again the stack.
 *
 * As the value is passed to a comparator, if that comparator
 * can interpret the value, false will be return. IE $gt: 'hello'
 *
 * @param {Object} value for consumption by comparator test
 * @param {Array} stack from `parseFilter`
 * @returns {Boolean} result
 * @api private
 */function m(e,t){for(var n=!0,o=0,a=t.length;o<a;o++){var r=t[o];!function(e,t){for(var n=!0,o=0;o<t.length;o++){var a=t[o],r=a.params;if(a.traverse){for(var i=[],s=0;s<r.length;s++)i.push(m(e,r[s]));r=i}1==a.fn.length?a.fn(r)||(n=!1):a.fn(e,r)||(n=!1)}return n}(r.path?p(r.path,e):e,r.test)&&(n=!1)}return n}u.version="0.3.0",u.comparators={$gt:function(e,t){return t<e},$gte:function(e,t){return t<=e},$lt:function(e,t){return e<t},$lte:function(e,t){return e<=t},$all:function(e,t){for(var n=0;n<t.length;n++)if(!~e.indexOf(t[n]))return!1;return!0},$exists:function(e,t){return!!e==t},$mod:function(e,t){return e%t[0]==t[1]},$eq:function(e,t){return e==t},$ne:function(e,t){return e!=t},$in:function(e,t){return Array.isArray(e)?e.some(e=>t.includes(e)):!!~t.indexOf(e)},$nin:function(e,t){if(void 0!==e)return Array.isArray(e)?e.every(e=>!t.includes(e)):!~t.indexOf(e)},$size:function(e,t){return!(!e.length||!t)&&e.length==t},$or:function(e){for(var t=!1,n=0;n<e.length;n++)e[n]&&(t=!0);return t},$nor:function(e){for(var t=!0,n=0;n<e.length;n++)e[n]&&(t=!1);return t},$and:function(e){for(var t=!0,n=0;n<e.length;n++)e[n]||(t=!1);return t},$regex:function(e,t){return(t="string"==typeof t?(e=>{t="/",t=(e=e).lastIndexOf(t);var[e,t]=[e.slice(0,t),e.slice(t+1)];return new RegExp(e.replace(/^\//,""),t||"g")})(t):t instanceof RegExp?t:void 0)?t.test(e):void 0}},u.getPathValue=function(e,t){return p(d(e),t)},u.setPathValue=function(e,t,n){for(var o=d(e),a=t,r=n,i=0,s=o.length;i<s;i++){var c=o[i];void 0!==r?i==s-1?void 0!==c.p?r[c.p]=a:void 0!==c.i&&(r[c.i]=a):void 0!==c.p&&r[c.p]?r=r[c.p]:void 0!==c.i&&r[c.i]?r=r[c.i]:(o[i+1],void 0!==c.p?(r[c.p]={},r=r[c.p]):void 0!==c.i&&(r[c.i]=[],r=r[c.i])):i==s-1?r=a:void 0!==c.p?r={}:void 0!==c.i&&(r=[])}},u.prototype.test=function(e,t){for(var n=
/*!
 * helper function for setting defaults
 */
function(e,t){if(e&&t)for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e}(t||{},{type:"set",spec:"subset"}),o="single"!=n.type&&[],a=0,r=(e="single"==n.type?[e]:e).length;a<r;a++){var i=e[a],s=m(i,this.stack);if("single"==n.type)o=s;else switch(n.spec){case"boolean":o.push(s);break;case"index":s&&o.push(a);break;default:s&&o.push(i)}}return o};const g=["header-contextual","header-suffix","header-bottom","header-top","fixed-mobile","vertical-1-left","vertical-2-left","vertical-3-left","vertical-4-left","vertical-5-left","vertical-6-left","vertical-7-left","vertical-8-left","vertical-9-left","vertical-10-left","vertical-11-left","vertical-12-left","vertical-13-left","vertical-14-left","vertical-1-right","vertical-2-right","vertical-3-right","vertical-4-right","vertical-5-right","vertical-6-right","vertical-7-right","vertical-8-right","vertical-9-right","vertical-10-right","vertical-11-right","vertical-12-right","vertical-13-right","vertical-14-right","modal-1","modal-2","modal-3","modal-4","modal-5","modal-6","modal-7","modal-8","modal-9","modal-10","modal-11","modal-12","modal-13","modal-14","text-1","text-2","text-3","text-4","text-5","text-6","text-7","text-8","text-9","text-10","text-11","text-12","text-13","text-14","horizontal-1","horizontal-2","horizontal-3","horizontal-4","horizontal-5","horizontal-6","horizontal-7","horizontal-8","horizontal-9","horizontal-10","horizontal-11","horizontal-12","horizontal-13","horizontal-14","horizontal-15","horizontal-16","horizontal-17","horizontal-18","horizontal-19","horizontal-20","text-group-top-1","text-group-top-2","text-group-top-3","text-group-top-4","text-group-top-5","text-group-top-6","text-group-top-7","text-group-top-8","text-group-top-9","text-group-top-10","text-group-top-11","text-group-top-12","text-group-top-13","text-group-top-14","text-group-bottom-1","text-group-bottom-2","text-group-bottom-3","text-group-bottom-4","text-group-bottom-5","text-group-bottom-6","text-group-bottom-7","text-group-bottom-8","text-group-bottom-9","text-group-bottom-10","text-group-bottom-11","text-group-bottom-12","text-group-bottom-13","text-group-bottom-14","content-top","content-footer-1","content-footer-2","content-footer-3","content-footer-4","content-footer-5","content-footer-6","scripts-before","scripts-after"];var v;
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let b;n.a.util.warn;const y=e=>b=e,w=Symbol();function S(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(n=v=v||{}).direct="direct",n.patchObject="patch object",n.patchFunction="patch function",n="undefined"!=typeof window;const O="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&n,j=()=>{};function x(e,t,n,o=j){e.push(t);var a=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&Object(c.getCurrentScope)()&&Object(c.onScopeDispose)(a),a}function _(e,...t){e.slice().forEach(e=>{e(...t)})}const k=e=>e();function C(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const a in t){var n,o;t.hasOwnProperty(a)&&(n=t[a],S(o=e[a])&&S(n)&&e.hasOwnProperty(a)&&!Object(c.isRef)(n)&&!Object(c.isReactive)(n)?e[a]=C(o,n):e[a]=n)}return e}Symbol();const P=new WeakMap,E=Object.assign;function A(e,t,n={},o,a,r){let i;const s=E({actions:{}},n),l={deep:!0};let u,d,p,h=[],f=[];var m=o.state.value[e],g=(r||m||Object(c.set)(o.state.value,e,{}),Object(c.ref)({}));let b;function w(t){let n;u=d=!1,n="function"==typeof t?(t(o.state.value[e]),{type:v.patchFunction,storeId:e,events:p}):(C(o.state.value[e],t),{type:v.patchObject,payload:t,storeId:e,events:p});const a=b=Symbol();Object(c.nextTick)().then(()=>{b===a&&(u=!0)}),d=!0,_(h,n,o.state.value[e])}var S=r?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{E(e,t)})}:j;function A(t,n){return function(){y(o);var a=Array.from(arguments);const r=[],i=[];let s;_(f,{args:a,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,a)}catch(a){throw _(i,a),a}return s instanceof Promise?s.then(e=>(_(r,e),e)).catch(e=>(_(i,e),Promise.reject(e))):(_(r,s),s)}}var $;g=Object(c.markRaw)({actions:{},getters:{},state:[],hotState:g}),S={_p:o,$id:e,$onAction:x.bind(null,f),$patch:w,$reset:S,$subscribe(t,n={}){var a=x(h,t,n.detached,()=>r());const r=i.run(()=>Object(c.watch)(()=>o.state.value[e],o=>{("sync"===n.flush?d:u)&&t({storeId:e,type:v.direct,events:p},o)},E({},l,n)));return a},$dispose:function(){i.stop(),h=[],f=[],o._s.delete(e)},_r:!1};const D=Object(c.reactive)(O?E({_hmrPayload:g,_customProperties:Object(c.markRaw)(new Set)},S):S),T=(o._s.set(e,D),(o._a&&o._a.runWithContext||k)(()=>o._e.run(()=>(i=Object(c.effectScope)()).run(t))));for(const t in T){var M,R=T[t];Object(c.isRef)(R)&&($=R,!Object(c.isRef)($)||!$.effect)||Object(c.isReactive)(R)?r||(m&&($=R,!P.has($))&&(Object(c.isRef)(R)?R.value=m[t]:C(R,m[t])),Object(c.set)(o.state.value[e],t,R)):"function"==typeof R&&(M=A(t,R),Object(c.set)(T,t,M),s.actions[t]=R)}if(Object.keys(T).forEach(e=>{Object(c.set)(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>o.state.value[e],set:e=>{w(t=>{E(t,e)})}}),O){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,E({value:D[t]},e))})}return D._r=!0,o._p.forEach(e=>{var t;O?(t=i.run(()=>e({store:D,app:o._a,pinia:o,options:s})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),E(D,t)):E(D,i.run(()=>e({store:D,app:o._a,pinia:o,options:s})))}),m&&r&&n.hydrate&&n.hydrate(D.$state,m),u=!0,d=!0,D}const $=function(e,t,n){let o,a;function r(e,n){var r=!!Object(c.getCurrentInstance)();return r=((e=e||(r?Object(c.inject)(w,null):null))&&y(e),(e=b)._s.has(o)||A(o,t,a,e),e._s.get(o))}return o=e,a=void 0,r.$id=o,r}("campaign",()=>{var e=Object(c.ref)([]);const t=Object(c.ref)({});var n=Object(c.ref)([]);const o=e=>({...e.data||{},ab:e.ab,withClientSideQuery:e.withClientSideQuery,fixed:e.fixed,stick:e.stick,_id:e._id,skeletonRepeat:3});return{ids:e,slots:t,tests:n,setCampaigns:e=>{t.value=Object.entries(e).reduce((e,[t,n])=>(e[t]={id:t,classes:[{stick:n.some(({stick:e})=>e),fixed:n.some(({fixed:e})=>e)},"campaign-container"],items:n.map(o)},e),{})}}});var D=Object.defineProperty,T=Object.getOwnPropertyDescriptor;n=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?T(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&D(t,n,r),r};"undefined"==typeof window||window.__vueland_campaign_pageHitsMap||(window.__vueland_campaign_pageHitsMap={});class M extends t.MixedEnvironment{constructor(){super(...arguments),this.abTestCookiePrefix="__vueland_campaign_ab_",this.storagePrefix="__vueland_campaign_schema",this.slots={},this.availableSlots=["header-bottom","header-top","header-contextual","header-suffix"],this.defaultCampaignStorageData={hits:0,pageHits:0},this.campaignDataBasePath="commons.uol.com.br/sistemas/jupiter-campaign"}async init(e,t=[]){var n;this.availableSlots=[...this.availableSlots,...t];const o=await this.getCampaignData();t=null==(t=Object.values(o))?void 0:t.flat().map(({_id:e,ab:t,query:n})=>({ab:null==t?void 0:t.testName,_id:e,withHitCount:null==n?void 0:n.hits,withPageHitCount:null==n?void 0:n.pageHits})),this.store.tests=null==(n=null==(n=t||[])?void 0:n.filter(({ab:e})=>e))?void 0:n.map(({ab:e})=>e),this.store.ids=t.filter(({_id:e})=>e).map(({_id:e,withHitCount:t,withPageHitCount:n})=>({_id:e,withHitCount:t,withPageHitCount:n})),Object.keys(o).map(async t=>{const n=t;this.filter(o[n],e).forEach(e=>{var t=e.ifnot||{},o=this.availableSlots.includes(n),a=o?n:this.availableSlots.includes(t.slot)?t.slot:void 0;a&&(!o&&t.priority&&(e.priority=t.priority),this.push(a,e))})}),await this.addSponsorSealCampaign()}registerSlot(e){(Array.isArray(e)?e:[e]).forEach(e=>{this.availableSlots.includes(e)||this.availableSlots.push(e)})}async mount(){var e=this.getConfig().campaigns;await this.init(this.pageStore.tagsList,e?e.filter(e=>g.includes(e)):g)}async checkIfHaveActiveSkin(){var e,t;try{var n=await this.tools.json.open(this.campaignDataBasePath.replace(/\/$/,"")+"/skins/index.json");for(const e of n.content)if(e.tag&&this.pageStore.tagsList.includes(e.tag)||e.path&&new RegExp(e.path).test(this.pageStore.link))return void(this.campaignDataBasePath+="/skins/"+e.skin);for(const a of["channel","central"]){var o=n[a];for(const n of Object.keys(o))if((null==(t=null==(e=this.pageStore)?void 0:e.collection)?void 0:t.header[a])===n)return void(this.campaignDataBasePath+="/skins/"+o[n])}}catch(e){this.tools.log.error(e)}}async getCampaignData(){const e=[];let t={};await this.checkIfHaveActiveSkin(),g.forEach(t=>e.push(this.tools.json.open(this.campaignDataBasePath.replace(/\/$/,"")+`/${t}.json`)));try{var n=await Promise.allSettled(e).then(e=>e.filter(e=>"fulfilled"===e.status).map(e=>e.value));t=n.reduce((e,{id:t,items:n})=>(e[t]=n,e),{})}catch(t){this.tools.log.error(t)}return t}parseQuery(e,t,n,o={}){var a;try{return 0<(null==(a=new u(t).test(n,o))?void 0:a.length)}catch(t){t.message=`There was an error filtering the ${e} property of the campaign query. `+t.message,this.tools.log.error(t)}return!1}filter(e,t){var n,o=this.getConfig();const a=[{name:"station",data:[{name:null==(n=null==o?void 0:o.central)?void 0:n.slug}]},{name:"channel",data:[{name:null==(n=null==o?void 0:o.channel)?void 0:n.slug}]},{name:"device",data:[{type:this.getRequest().isDesktop()?"desktop":"mobile"}]},{name:"domain",data:[{name:this.getRequest().getDomain()}]},{name:"path",data:[{name:this.getRequest().getUri()}]},{name:"tags",data:[{id:Array.isArray(t)?t:[]}]}];return e.filter(({query:e,schedule:t})=>{var n,o,{start:t,end:i}=t||{},s=[],c=e;for({name:n,data:o}of a)c[n]&&Object.keys(c[n]).length&&s.push(this.parseQuery(n,c[n],o));for(const t of Object.keys(e))t.startsWith("$")&&s.push(this.parseQuery(t,{[t]:e[t]},a.map(e=>e.data.map(t=>({[e.name]:t}))).flat()));return t&&s.push(0<=r()().diff(t,"seconds")),i&&s.push(r()().diff(i,"seconds")<=0),s.every(e=>e)})}clientSideFilter(e){var t="undefined"==typeof window;const n=t?{}:this.userPreferencesService.getAllAttributes(),o=!t&&this.localStorageService.getData(this.storagePrefix)||{},a=(e,t)=>n=>{var o=n.query||{};return!o[e]||!Object.keys(o[e]).length||"undefined"!=typeof window&&(n.withClientSideQuery=!0,this.parseQuery(e,o[e],t))};return e.filter(e=>{var t=null==(t=null==o?void 0:o[e._id])?void 0:t.hits;return a("hits",void 0!==t?[t]:[])(e)}).filter(e=>{var t=null==(t=null==o?void 0:o[e._id])?void 0:t.pageHits;return a("pageHits",void 0!==t?[t]:[])(e)}).filter(e=>{var t=[];for(const r of[...i.arrayProperties,...i.singleProperties]){var o=n[r]?[{values:n[r]}]:[];t.push(a(r,o)(e))}return t.every(e=>e)})}push(e,t){this.slots[e]=this.slots[e]||[],this.slots[e].push(t),this.slots[e]=this.slots[e].sort((e,t)=>e.priority>t.priority?1:-1),this.store.setCampaigns(this.slots)}getSlot(e){var t=this.store.slots;return this.clientSideFilter((null==t?void 0:t[e])||[])}getCampaignFromSlot(e){var t=(null==(t=this.getSlot(e))?void 0:t.map(e=>({...e.data||{},ab:e.ab,withClientSideQuery:e.withClientSideQuery,fixed:e.fixed,stick:e.stick,_id:e._id})))||[],n=[];return t.some(({stick:e})=>e)&&n.push("stick"),t.some(({fixed:e})=>e)&&n.push("fixed"),{id:e,classes:n,items:t}}getCampaign(e){var t=this.getConfig().campaigns;if(!Array.isArray(t))return{};let n=t.filter(e=>g.includes(e));return(n=e?n.filter(t=>Array.isArray(e)?e.includes(t):t===e):n).reduce((e,t)=>(e[t]=this.getCampaignFromSlot(t),e),{})}clientSideInit(){var e=this.store.tests,t=this.store.ids;const n=null==(a=Object.values(this.store.slots))?void 0:a.flat(),o=(this.tools.ab.setCookiePrefix(this.abTestCookiePrefix).clear(Array.isArray(e)?e:[]),this.localStorageService.getData(this.storagePrefix)||{});var a=t.reduce((e,t)=>(e[t._id]=(null==o?void 0:o[t._id])||this.defaultCampaignStorageData,t.withHitCount?e[t._id].hits=e[t._id].hits||0:delete e[t._id].hits,t.withPageHitCount?!window.__vueland_campaign_pageHitsMap[t._id]&&n.find(({_id:e})=>e===t._id)&&(window.__vueland_campaign_pageHitsMap[t._id]=!0,e[t._id].pageHits=(e[t._id].pageHits||0)+1):delete e[t._id].pageHits,e),{});this.localStorageService.setData(this.storagePrefix,a),"undefined"!=typeof window&&(window.$VuelandCampaignPush=(e,t,n)=>{var o=this.store.slots;g.includes(e)?(o[e]=Array.isArray(o[e])?o[e]:[],o[e].push({_id:"__vueland_campaign_render_"+(new Date).getTime(),priority:n.priority||.1,stick:!!n.stick,query:{},ifnot:{},data:{component:t.component,props:t.props}}),o[e]=o[e].sort((e,t)=>e.priority>t.priority?1:-1),this.store.setCampaigns(o)):console.error(`Slot "${e}" does not exist`)})}hit(e,t){var n=this.store.ids.find(({_id:t})=>t===e),o="hits"===t?null==n?void 0:n.withHitCount:null==n?void 0:n.withPageHitCount;n&&o&&((n=this.localStorageService.getDataKey(this.storagePrefix,e)||this.defaultCampaignStorageData)[o="hits"===t?"hits":"pageHits"]=(n[o]||0)+1,this.localStorageService.setDataProp(this.storagePrefix,e,n))}getAbTestCandidate(e){return this.tools.ab.setCookiePrefix(this.abTestCookiePrefix).mount({...e,slots:Object.keys(e.plan),sample:e=>{console.log("sampĺe: test is ",e)},pick:e=>{console.log("pick: test is ",e)}})}async addSponsorSealCampaign(){await this.adsService.showSponsorSeal(this.pageStore.tagsList,this.getRequest().getLink())&&this.push("header-bottom",{_id:"ads-seal",priority:1,query:{},data:{component:"JupiterAds",props:{id:"banner-120x35-area",height:56,increment:!1}}})}}n([Object(t.Inject)(o.LocalStorageService)],M.prototype,"localStorageService",2),n([Object(t.Inject)(i.default)],M.prototype,"userPreferencesService",2),n([Object(t.Inject)($)],M.prototype,"store",2),n([Object(t.Inject)(s.usePageStore)],M.prototype,"pageStore",2),n([Object(t.Inject)(a.default)],M.prototype,"adsService",2)},3069:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));
/*!
 * Jupiter - Jupiter app service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class o extends n(4).MixedEnvironment{inApp(){var e=null==(e=null==(e=this.getConfig())?void 0:e.app)?void 0:e.paramName;return void 0!==this.getRequest().getParams(e)}inHomologApp(){var e=null==(e=null==(e=this.getConfig())?void 0:e.app)?void 0:e.homologParamName;return this.isParamEnabled(this.getRequest().getParams(e))}get capabilities(){const e={comments:!1,initMetrics:this.isParamEnabled(this.getRequest().getParams("app_init_metrics"))||!1};return(this.getRequest().getParams("app_capabilities")||"").split(/[;,]/).forEach(t=>{t=t.replace(/[-_](\w)/g,(e,t)=>t.toUpperCase()),e[t]=!0}),e}isParamEnabled(e){return![void 0,null,!1,"false"].includes(e)}}},3070:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=n(4),a=n(36),r=n(2715),i=n(2716);const s=n(0),c=(n=e=>e&&e.__esModule?e:{default:e})(a);var l;a=n(r),r=n(i);
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let u;n(s).default.util.warn;const d=e=>u=e,p=Symbol();function h(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(i=l=l||{}).direct="direct",i.patchObject="patch object",i.patchFunction="patch function",n="undefined"!=typeof window;const f="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&n,m=()=>{};function g(e,t,n,o=m){e.push(t);var a=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&s.getCurrentScope()&&s.onScopeDispose(a),a}function v(e,...t){e.slice().forEach(e=>{e(...t)})}const b=e=>e();function y(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const a in t){var n,o;t.hasOwnProperty(a)&&(n=t[a],h(o=e[a])&&h(n)&&e.hasOwnProperty(a)&&!s.isRef(n)&&!s.isReactive(n)?e[a]=y(o,n):e[a]=n)}return e}Symbol();const w=new WeakMap,S=Object.assign;function O(e,t,n={},o,a,r){let i;const c=S({actions:{}},n),u={deep:!0};let p,h,O,j=[],x=[];var _=o.state.value[e],k=(r||_||s.set(o.state.value,e,{}),s.ref({}));let C;function P(t){let n;p=h=!1,n="function"==typeof t?(t(o.state.value[e]),{type:l.patchFunction,storeId:e,events:O}):(y(o.state.value[e],t),{type:l.patchObject,payload:t,storeId:e,events:O});const a=C=Symbol();s.nextTick().then(()=>{C===a&&(p=!0)}),h=!0,v(j,n,o.state.value[e])}var E=r?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{S(e,t)})}:m;function A(t,n){return function(){d(o);var a=Array.from(arguments);const r=[],i=[];let s;v(x,{args:a,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,a)}catch(a){throw v(i,a),a}return s instanceof Promise?s.then(e=>(v(r,e),e)).catch(e=>(v(i,e),Promise.reject(e))):(v(r,s),s)}}var $;k=s.markRaw({actions:{},getters:{},state:[],hotState:k}),E={_p:o,$id:e,$onAction:g.bind(null,x),$patch:P,$reset:E,$subscribe(t,n={}){var a=g(j,t,n.detached,()=>r());const r=i.run(()=>s.watch(()=>o.state.value[e],o=>{("sync"===n.flush?h:p)&&t({storeId:e,type:l.direct,events:O},o)},S({},u,n)));return a},$dispose:function(){i.stop(),j=[],x=[],o._s.delete(e)},_r:!1};const D=s.reactive(f?S({_hmrPayload:k,_customProperties:s.markRaw(new Set)},E):E),T=(o._s.set(e,D),(o._a&&o._a.runWithContext||b)(()=>o._e.run(()=>(i=s.effectScope()).run(t))));for(const t in T){var M,R=T[t];s.isRef(R)&&($=R,!s.isRef($)||!$.effect)||s.isReactive(R)?r||(_&&($=R,!w.has($))&&(s.isRef(R)?R.value=_[t]:y(R,_[t])),s.set(o.state.value[e],t,R)):"function"==typeof R&&(M=A(t,R),s.set(T,t,M),c.actions[t]=R)}if(Object.keys(T).forEach(e=>{s.set(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>o.state.value[e],set:e=>{P(t=>{S(t,e)})}}),f){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,S({value:D[t]},e))})}return D._r=!0,o._p.forEach(e=>{var t;f?(t=i.run(()=>e({store:D,app:o._a,pinia:o,options:c})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),S(D,t)):S(D,i.run(()=>e({store:D,app:o._a,pinia:o,options:c})))}),_&&r&&n.hydrate&&n.hydrate(D.$state,_),p=!0,h=!0,D}i=function(e,t,n){let o,a;function r(e,n){var r=!!s.getCurrentInstance();return r=((e=e||(r?s.inject(p,null):null))&&d(e),(e=u)._s.has(o)||O(o,t,a,e),e._s.get(o))}return o=e,a=void 0,r.$id=o,r}("user",()=>{var e=s.ref({});const t={id:s.ref(),name:s.ref(),email:s.ref(),avatar:s.ref(),isLogged:s.ref(!1),isSubscriber:s.ref(!1),login:s.ref(),commentsToken:s.ref()};var n=s.ref({items:[],counters:{total:0,notify:{count:0},email:{count:0,url:null,domain:null}}}),o=s.ref({});return{...t,menu:e,notifications:n,preferences:o,setUserData:function(e){Object.entries(e).forEach(([e,n])=>{Object.hasOwnProperty.call(t,e)&&(t[e].value=n)})},resetUserData:function(){Object.keys(t).forEach(e=>{t[e].value="boolean"!=typeof t[e].value&&void 0})}}}),n=Object.defineProperty,Object.getOwnPropertyDescriptor;c.default.use(a.default),c.default.use(r.default);class j extends o.MixedEnvironment{constructor(){super(...arguments),this.defaultNotificationState={items:[],counters:{}}}async init(){try{await c.default.init()}catch(e){console.error(e)}var e=c.default.getUser(),t=(this.userStore.setUserData(e),[this.getMenu()]);e.isLogged&&t.push(this.getNotification(!0)),await Promise.allSettled(t)}login(){return c.default.login()}async logout(){try{await c.default.logout(),this.userStore.resetUserData(),await this.getMenu()}catch(e){console.error(e)}}getUserData(){return this.userStore.$state}async getMenu(){let e=[];try{var t=await c.default.$menu.getMenu();Array.isArray(t)&&(e=t)}catch(e){console.error(e)}this.userStore.menu=e}async getNotification(e=!1){var t=this.userStore.notifications||this.defaultNotificationState;try{var n=await c.default.$notify.fetch();Array.isArray(n)&&n.length&&(t.items=t.items.concat(n))}catch(e){console.error(e)}if(e)try{t.counters=await c.default.$notify.getCounters()}catch(e){console.error(e)}this.userStore.notifications=t}async markNotificationAsRead(e){var t=this.userStore.notifications||this.defaultNotificationState;try{await c.default.$notify.markAsRead(e),t.items=t.items.map(t=>(t.id===e&&(t.read=!0),t))}catch(t){console.error(t)}try{t.counters=await c.default.$notify.getCounters()}catch(t){console.error(t)}this.userStore.notifications=t}async deleteNotification(e){var t=this.userStore.notifications||this.defaultNotificationState;try{await c.default.$notify.delete(e),t.items=t.items.filter(t=>t.id!==e)}catch(t){console.error(t)}this.userStore.notifications=t}}for(var x,_=[o.Inject(i)],k=j.prototype,C="userStore",P=void 0,E=_.length-1;0<=E;E--)(x=_[E])&&(P=x(k,C,P)||P);P&&n(k,C,P),t.default=j,t.useUserStore=i},3072:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=n(4),a=n(43),r=n(2672),i=n(15);n=n(35);const s=new o.EventEmitter;var c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?l(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&c(t,n,r),r};class d{constructor(){this.horoscopes=[]}}const p="__vueland_user_preferences";class h extends o.FrontEnvironment{constructor(){super(...arguments),this.defaultValues=new d}getAttribute(e){let t=this.defaultValues[e];try{t=this.localStorageService.getDataKey(p,e)}catch(e){this.localStorageService.setData(p,t)}return t}setAttribute(e,t){s.emit("set",{key:e,value:t}),this.localStorageService.setDataProp(p,e,t)}async set(e){this.setAttribute(this.name,e)}}u([o.Inject(a.LocalStorageService)],h.prototype,"localStorageService",2),u([o.Inject(a.CookieService)],h.prototype,"cookieService",2);const f={"atletico-mg":{id:4,name:"Atlético-MG",slug:"atletico-mg",acronym:"CAM",icon:i.teamAtleticoMg},"atletico-go":{id:1094,name:"Atlético-GO",slug:"atletico-go",acronym:"ACG",icon:i.teamAtleticoGo},"america-mg":{id:26,name:"América-MG",slug:"america-mg",acronym:"AMG",icon:i.teamAmericaMg},athletico:{id:3,name:"Athletico",slug:"athletico",acronym:"CAP",icon:i.teamAtleticoPr},bahia:{id:30,name:"Bahia",slug:"bahia",acronym:"BAH",icon:i.teamBahia},botafogo:{id:5,name:"Botafogo",slug:"botafogo",acronym:"BOT",icon:i.teamBotafogo},"red-bull-bragantino":{id:984,name:"Red Bull Bragantino",slug:"red-bull-bragantino",acronym:"BRG",icon:i.teamBragantino},ceara:{id:33,name:"Ceará",slug:"ceara",acronym:"CEA",icon:i.teamCeara},chapecoense:{id:695,name:"Chapecoense",slug:"chapecoense",acronym:"CHA",icon:i.teamChapecoense},corinthians:{id:6,name:"Corinthians",slug:"corinthians",acronym:"COR",icon:i.teamCorinthians},coritiba:{id:7,name:"Coritiba",slug:"coritiba",acronym:"CTB",icon:i.teamCoritiba},cruzeiro:{id:9,name:"Cruzeiro",slug:"cruzeiro",acronym:"CRU",icon:i.teamCruzeiro},cuiaba:{id:185,name:"Cuiabá",slug:"cuiaba",acronym:"CUI",icon:i.teamCuiaba},flamengo:{id:1,name:"Flamengo",slug:"flamengo",acronym:"FLA",icon:i.teamFlamengo},fluminense:{id:11,name:"Fluminense",slug:"fluminense",acronym:"FLU",icon:i.teamFluminense},fortaleza:{id:35,name:"Fortaleza",slug:"fortaleza",acronym:"FOR",icon:i.teamFortaleza},goias:{id:12,name:"Goiás",slug:"goias",acronym:"GOI",icon:i.teamGoias},gremio:{id:13,name:"Grêmio",slug:"gremio",acronym:"GRE",icon:i.teamGremio},internacional:{id:15,name:"Internacional",slug:"internacional",acronym:"INT",icon:i.teamInternacional},palmeiras:{id:17,name:"Palmeiras",slug:"palmeiras",acronym:"PAL",icon:i.teamPalmeiras},santos:{id:22,name:"Santos",slug:"santos",acronym:"SAN",icon:i.teamSantos},"sao-paulo":{id:24,name:"São Paulo",slug:"sao-paulo",acronym:"SPA",icon:i.teamSaoPaulo},sport:{id:76,name:"Sport",slug:"sport",acronym:"SPT",icon:i.teamSport},vasco:{id:25,name:"Vasco",slug:"vasco",acronym:"VAS",icon:i.teamVasco},vitoria:{id:21,name:"Vitória",slug:"vitoria",acronym:"VIT",icon:i.teamVitoria},juventude:{id:16,name:"Juventude",slug:"juventude",acronym:"JUV",icon:i.teamJuventude},criciuma:{id:8,name:"Criciúma",slug:"criciuma",acronym:"CRI",icon:i.teamCriciuma}},m={aries:{name:"Áries",slug:"aries",icon:n.signAries},touro:{name:"Touro",slug:"touro",icon:n.signTouro},gemeos:{name:"Gêmeos",slug:"gemeos",icon:n.signGemeos},cancer:{name:"Câncer",slug:"cancer",icon:n.signCancer},leao:{name:"Leão",slug:"leao",icon:n.signLeao},virgem:{name:"Virgem",slug:"virgem",icon:n.signVirgem},libra:{name:"Libra",slug:"libra",icon:n.signLibra},escorpiao:{name:"Escorpião",slug:"escorpiao",icon:n.signEscorpiao},sagitario:{name:"Sagitário",slug:"sagitario",icon:n.signSagitario},capricornio:{name:"Capricórnio",slug:"capricornio",icon:n.signCapricornio},aquario:{name:"Aquário",slug:"aquario",icon:n.signAquario},peixes:{name:"Peixes",slug:"peixes",icon:n.signPeixes}};var g=Object.defineProperty,v=Object.getOwnPropertyDescriptor;u=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?v(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&g(t,n,r),r};class b extends o.MixedEnvironment{constructor(){super(...arguments),this.defaultValues=new d}getAllAttributes(){let e=this.localStorageService.getData(p);return e||(e=this.defaultValues,this.localStorageService.setData(p,e)),e}async init(){(await Promise.allSettled([this.team.fetch(),this.sign.fetch()])).filter(e=>"rejected"===e.status).forEach(e=>console.error("Could not initialize one of the user preferences",e)),this.userStore.preferences=this.getAllAttributes(),s.on("set",({key:e,value:t})=>this.userStore.preferences={...this.getAllAttributes(),[e]:t})}}u([o.Inject(r.useUserStore)],b.prototype,"userStore",2),u([o.Inject(a.LocalStorageService)],b.prototype,"localStorageService",2),u([o.Inject(a.CookieService)],b.prototype,"cookieService",2),u([o.Inject(class extends h{constructor(){super(...arguments),this.name="favoriteTeam"}async fetch(){var e;const t=this.getAttribute(this.name),n=this.cookieService.getCookie("meuTime");var o=Object.values(f).find(({slug:e})=>e==t),a=Object.values(f).find(({id:e})=>e==n);if(n&&a)(null==o?void 0:o.slug)!==(null==a?void 0:a.slug)&&this.setAttribute(this.name,a.slug);else try{var r=(null==(e=(await(await fetch("https://udr.uol.com.br/?scopes=user-preferences",{credentials:"include"})).json()).data["user-preferences"])?void 0:e.preferencias["bloco-customizado-esporte"])||!1;r?this.set(r):this.setAttribute(this.name,"")}catch(e){console.log("error: ",e),this.setAttribute(this.name,"")}}async set(e){var t;this.setAttribute(this.name,e),null!=(t=f[e])&&t.id&&((t=new Date).setFullYear(t.getFullYear()+1),this.cookieService.setCookie("meuTime",null==(e=null==(e=f[e])?void 0:e.id)?void 0:e.toString(),{domain:".uol.com.br",path:"/",expires:t}))}getTeams(){return Object.freeze(f)}})],b.prototype,"team",2),u([o.Inject(class extends h{constructor(){super(...arguments),this.name="horoscopes"}async fetch(){var e,t=this.cookieService.getCookie("meuSigno"),n=this.getAttribute(this.name)[0];if(t)t!==n&&this.setAttribute(this.name,[t]);else try{var o=(null==(e=(await(await fetch("https://udr.uol.com.br/?scopes=user-preferences",{credentials:"include"})).json()).data["user-preferences"])?void 0:e.preferencias["bloco-customizado-mulher"])||!1;o?this.set([o]):this.setAttribute(this.name,[])}catch(e){console.log("error: ",e),this.setAttribute(this.name,[])}}async set(e){var t;this.setAttribute(this.name,e),null!=(t=m[null==e?void 0:e[0]])&&t.slug&&((t=new Date).setFullYear(t.getFullYear()+1),this.cookieService.setCookie("meuSigno",null==(e=null==(e=m[e[0]])?void 0:e.slug)?void 0:e.toString(),{domain:".uol.com.br",path:"/",expires:t}))}getSigns(){return Object.freeze(m)}})],b.prototype,"sign",2),t.BaseUserPreferenceFragment=h,t.STORAGE_KEY=p,t.UserPreferenceData=d,t.arrayProperties=["newsletter","productIds","notificationThemes","mostViewedTags","mostAccessedArticleTypes","horoscopes","mostAccessedLotteries","stockActionsOfInterest"],t.default=b,t.singleProperties=["frequencyClassification","favoriteTeam","preferredCurrency"]},3073:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});
/*!
 * Jupiter - Jupiter ads service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class o extends n(4).MixedEnvironment{constructor(){super(...arguments),this.identifiers=new Map}buildID(e){var t=(this.identifiers.get(e)||0)+1;return this.identifiers.set(e,t),e.replace(/-^/,"")+"-"+t}resetID(e){this.identifiers.set(e,0)}getAdsHandler(){var e=this.getConfig().ads;return null!=e&&e.mode&&"default"!==e.mode?"pushAds":"uolads"}push(e,t={returnScript:!1}){const n=this.getAdsHandler();if(t.returnScript&&"string"==typeof e)return`(function(w,h){w[h] = w[h] || []; w[h].push(${"pushAds"===n?`'${e}'`:`{ id: '${e}' }`})})(window,'${n}')`;Array.isArray(window[n])?(Array.isArray(e)?e:[e]).forEach(e=>window[n].push("pushAds"===n?e:{id:e})):console.error(`window.${n} is not defined as array`)}async showSponsorSeal(e,t){const n=await this.tools.json.open("commons.uol.com.br/monaco/export/api.uol.com.br/selo-patrocinio/selo-patrocinio.json");var o=(a=e=>n["tag-scripts"].conteudo[e].split(",").filter(e=>e))("seloTags"),a=a("seloURL");return o.some(t=>e.includes(Number(t)))||a.includes(t)}}t.default=o},3075:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=n(4),a=n(75);const r=n(71),i=n(0);var s;a=(n=e=>e&&e.__esModule?e:{default:e})(a);
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let c;n(i).default.util.warn;const l=e=>c=e,u=Symbol();function d(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(n=s=s||{}).direct="direct",n.patchObject="patch object",n.patchFunction="patch function",n="undefined"!=typeof window;const p="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&n,h=()=>{};function f(e,t,n,o=h){e.push(t);var a=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&i.getCurrentScope()&&i.onScopeDispose(a),a}function m(e,...t){e.slice().forEach(e=>{e(...t)})}const g=e=>e();function v(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const a in t){var n,o;t.hasOwnProperty(a)&&(n=t[a],d(o=e[a])&&d(n)&&e.hasOwnProperty(a)&&!i.isRef(n)&&!i.isReactive(n)?e[a]=v(o,n):e[a]=n)}return e}Symbol();const b=new WeakMap,y=Object.assign;function w(e,t,n={},o,a,r){let c;const u=y({actions:{}},n),d={deep:!0};let w,S,O,j=[],x=[];var _=o.state.value[e],k=(r||_||i.set(o.state.value,e,{}),i.ref({}));let C;function P(t){let n;w=S=!1,n="function"==typeof t?(t(o.state.value[e]),{type:s.patchFunction,storeId:e,events:O}):(v(o.state.value[e],t),{type:s.patchObject,payload:t,storeId:e,events:O});const a=C=Symbol();i.nextTick().then(()=>{C===a&&(w=!0)}),S=!0,m(j,n,o.state.value[e])}var E=r?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{y(e,t)})}:h;function A(t,n){return function(){l(o);var a=Array.from(arguments);const r=[],i=[];let s;m(x,{args:a,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,a)}catch(a){throw m(i,a),a}return s instanceof Promise?s.then(e=>(m(r,e),e)).catch(e=>(m(i,e),Promise.reject(e))):(m(r,s),s)}}var $;k=i.markRaw({actions:{},getters:{},state:[],hotState:k}),E={_p:o,$id:e,$onAction:f.bind(null,x),$patch:P,$reset:E,$subscribe(t,n={}){var a=f(j,t,n.detached,()=>r());const r=c.run(()=>i.watch(()=>o.state.value[e],o=>{("sync"===n.flush?S:w)&&t({storeId:e,type:s.direct,events:O},o)},y({},d,n)));return a},$dispose:function(){c.stop(),j=[],x=[],o._s.delete(e)},_r:!1};const D=i.reactive(p?y({_hmrPayload:k,_customProperties:i.markRaw(new Set)},E):E),T=(o._s.set(e,D),(o._a&&o._a.runWithContext||g)(()=>o._e.run(()=>(c=i.effectScope()).run(t))));for(const t in T){var M,R=T[t];i.isRef(R)&&($=R,!i.isRef($)||!$.effect)||i.isReactive(R)?r||(_&&($=R,!b.has($))&&(i.isRef(R)?R.value=_[t]:v(R,_[t])),i.set(o.state.value[e],t,R)):"function"==typeof R&&(M=A(t,R),i.set(T,t,M),u.actions[t]=R)}if(Object.keys(T).forEach(e=>{i.set(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>o.state.value[e],set:e=>{P(t=>{y(t,e)})}}),p){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,y({value:D[t]},e))})}return D._r=!0,o._p.forEach(e=>{var t;p?(t=c.run(()=>e({store:D,app:o._a,pinia:o,options:u})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),y(D,t)):y(D,c.run(()=>e({store:D,app:o._a,pinia:o,options:u})))}),_&&r&&n.hydrate&&n.hydrate(D.$state,_),w=!0,S=!0,D}n=function(e,t,n){let o,a;function r(e,n){var r=!!i.getCurrentInstance();return r=((e=e||(r?i.inject(u,null):null))&&l(e),(e=c)._s.has(o)||w(o,t,a,e),e._s.get(o))}return o=e,a=void 0,r.$id=o,r}("menu",()=>({menu:i.ref([]),contextual:i.ref([])}));var S=Object.defineProperty,O=Object.getOwnPropertyDescriptor,j=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?O(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&S(t,n,r),r};class x extends o.MixedEnvironment{constructor(){super(...arguments),this.icons={team:r.iconShieldCrossLine,sign:r.iconMoonClearLine,crown:r.iconVipCrownLine,email:r.iconMailLine},this.basePath="commons.uol.com.br/monaco/conteudo/geral"}async dispatch(){var e=[];e.push((async()=>{try{var e=await this.getContextualMenuData();e.unshift({icon:this.icons.sign,label:"Seu signo",id:"sign"}),e.unshift({icon:this.icons.team,label:"Seu time",id:"team"}),this.store.contextual=e}catch(e){this.tools.log.error(e)}})()),e.push((async()=>{try{var e=await this.getMainMenuData("minimized");this.store.menu=e}catch(e){this.tools.log.error(e)}})()),await Promise.all(e)}getMainMenu(){return this.store.menu}async getMenuSubItems(e,t){const n=this.filter(t);try{const t=await this.getFile(e);var o,a,r=[],i=(t.vitrines||[]).filter(e=>e.id).map(e=>{var o;return{title:(null==(o=null==(o=t[e.id])?void 0:o.topo)?void 0:o.titulo)||(null==(o=(Array.isArray(t.submenu)?t.submenu:[]).find(t=>t.id===e.id))?void 0:o.titulo),link:null==(o=null==(o=t[e.id])?void 0:o.topo)?void 0:o.link,items:this.mapMenuItems((t[e.id+"-items"]||[]).filter(n)).concat(this.mapMenuItems((Array.isArray(t["segundo-nivel"])?t["segundo-nivel"]:[]).filter(t=>t.id===e.id))),group:!0===e.agrupar}}).filter(e=>e.title);let s=[];for([o,a]of Object.entries(i))s.push(a),a.group?Number(o)+1===i.length&&r.push(s):(r.push(s),s=[]);return{key:e,items:[[...this.mapMenuItems(t.submenu.filter(n)||[],!0)]].concat(r)}}catch(t){this.tools.log.error(t)}return null}mapMenuItems(e,t=!1){return e.map(e=>{var n={slug:this.stringService.toSlug(e.titulo),link:e.link,logo:e.selectImage||e.logo};return t?n.title=e.titulo:n.label=e.titulo,e.items&&(n.items=e.items),n})}filter(e){const t={expanded:"menu-expandido",minimized:"menu-minimizado"};return n=>(n.exibir||"").split(/[;,]/).map(e=>e.trim()).includes(t[e])}async getFile(e){try{return await this.tools.json.open(e.replace(/https?:\/\//,""))}catch(t){return t.message=`There was a problem getting the menu data file: ${e} - `+t.message,this.tools.log.error(t),Promise.reject(t)}}getContextualMenu(){return this.store.contextual}async getMenuTeams(){var e=[];const t=["Flamengo","Corinthians"];try{var n=await this.getFile("commons.uol.com.br/monaco/conteudo/geral/header/esporte.json");for(const o of Object.keys(n).filter(e=>/vitrine-\d+-items/.test(e)))if(Array.isArray(n[o])&&n[o].some(e=>t.includes(e.titulo))){for(const t of n[o])e.push({label:t.titulo,slug:this.stringService.toSlug(t.titulo),link:t.link});break}return Promise.resolve(e)}catch(n){return this.tools.log.error(n),Promise.resolve(e)}}async getMainMenuData(e){let t=[];var n=this.filter(e);try{var o=(await this.getFile(this.basePath+"/menu/ordenacao.json")).menu;const a=new Map((await Promise.allSettled(o.filter(n).filter(e=>e["commons-path"]).map(t=>this.getMenuSubItems(t["commons-path"],e)))).filter(({status:e})=>"fulfilled"===e).map(e=>{var t;return[null==(t=e.value)?void 0:t.key,e.value.items]}));t=this.mapMenuItems(o.filter(n).map(e=>(e.items=a.get(e["commons-path"])||[],e)))}catch(t){this.tools.log.error(t)}return t}async getContextualMenuData(){var e;let t=[];var n=this.tools.extend(!0,{station:{items:null},channel:{items:null}},null==(e=this.config.menu)?void 0:e.contextual);for(const e of["channel","station","portal"])if(n[e]&&Array.isArray(n[e].items)&&n[e].items.length){t=n[e].items;break}try{var o=await this.getFile("commons.uol.com.br/monaco/conteudo/jupiter/menu-contextual/data.json");const e=(null==o?void 0:o["menu-contextual-jupiter"])||{};t=Object.keys((null==o?void 0:o["menu-contextual-jupiter"])||{}).filter(e=>/item-\d+/.test(e)).map(t=>{var n;return{label:null==(n=null==e?void 0:e[t])?void 0:n.title,link:null==(n=null==e?void 0:e[t])?void 0:n.link}}).filter(({label:e,link:t})=>e&&t).splice(0,2)}catch(e){this.tools.log.error(e)}return t}}j([o.Inject(a.default)],x.prototype,"stringService",2),j([o.Inject(n)],x.prototype,"store",2),t.default=x},3076:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return j}));t=n(4);var o,a=n(75),r=n(71),i=n(0);
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let s;n.n(i).a.util.warn;const c=e=>s=e,l=Symbol();function u(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(n=o=o||{}).direct="direct",n.patchObject="patch object",n.patchFunction="patch function",n="undefined"!=typeof window;const d="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&n,p=()=>{};function h(e,t,n,o=p){e.push(t);var a=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&Object(i.getCurrentScope)()&&Object(i.onScopeDispose)(a),a}function f(e,...t){e.slice().forEach(e=>{e(...t)})}const m=e=>e();function g(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const a in t){var n,o;t.hasOwnProperty(a)&&(n=t[a],u(o=e[a])&&u(n)&&e.hasOwnProperty(a)&&!Object(i.isRef)(n)&&!Object(i.isReactive)(n)?e[a]=g(o,n):e[a]=n)}return e}Symbol();const v=new WeakMap,b=Object.assign;function y(e,t,n={},a,r,s){let l;const u=b({actions:{}},n),y={deep:!0};let w,S,O,j=[],x=[];var _=a.state.value[e],k=(s||_||Object(i.set)(a.state.value,e,{}),Object(i.ref)({}));let C;function P(t){let n;w=S=!1,n="function"==typeof t?(t(a.state.value[e]),{type:o.patchFunction,storeId:e,events:O}):(g(a.state.value[e],t),{type:o.patchObject,payload:t,storeId:e,events:O});const r=C=Symbol();Object(i.nextTick)().then(()=>{C===r&&(w=!0)}),S=!0,f(j,n,a.state.value[e])}var E=s?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{b(e,t)})}:p;function A(t,n){return function(){c(a);var o=Array.from(arguments);const r=[],i=[];let s;f(x,{args:o,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,o)}catch(o){throw f(i,o),o}return s instanceof Promise?s.then(e=>(f(r,e),e)).catch(e=>(f(i,e),Promise.reject(e))):(f(r,s),s)}}var $;k=Object(i.markRaw)({actions:{},getters:{},state:[],hotState:k}),E={_p:a,$id:e,$onAction:h.bind(null,x),$patch:P,$reset:E,$subscribe(t,n={}){var r=h(j,t,n.detached,()=>s());const s=l.run(()=>Object(i.watch)(()=>a.state.value[e],a=>{("sync"===n.flush?S:w)&&t({storeId:e,type:o.direct,events:O},a)},b({},y,n)));return r},$dispose:function(){l.stop(),j=[],x=[],a._s.delete(e)},_r:!1};const D=Object(i.reactive)(d?b({_hmrPayload:k,_customProperties:Object(i.markRaw)(new Set)},E):E),T=(a._s.set(e,D),(a._a&&a._a.runWithContext||m)(()=>a._e.run(()=>(l=Object(i.effectScope)()).run(t))));for(const t in T){var M,R=T[t];Object(i.isRef)(R)&&($=R,!Object(i.isRef)($)||!$.effect)||Object(i.isReactive)(R)?s||(_&&($=R,!v.has($))&&(Object(i.isRef)(R)?R.value=_[t]:g(R,_[t])),Object(i.set)(a.state.value[e],t,R)):"function"==typeof R&&(M=A(t,R),Object(i.set)(T,t,M),u.actions[t]=R)}if(Object.keys(T).forEach(e=>{Object(i.set)(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>a.state.value[e],set:e=>{P(t=>{b(t,e)})}}),d){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,b({value:D[t]},e))})}return D._r=!0,a._p.forEach(e=>{var t;d?(t=l.run(()=>e({store:D,app:a._a,pinia:a,options:u})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),b(D,t)):b(D,l.run(()=>e({store:D,app:a._a,pinia:a,options:u})))}),_&&s&&n.hydrate&&n.hydrate(D.$state,_),w=!0,S=!0,D}n=function(e,t,n){let o,a;function r(e,n){var r=!!Object(i.getCurrentInstance)();return r=((e=e||(r?Object(i.inject)(l,null):null))&&c(e),(e=s)._s.has(o)||y(o,t,a,e),e._s.get(o))}return o=e,a=void 0,r.$id=o,r}("menu",()=>({menu:Object(i.ref)([]),contextual:Object(i.ref)([])}));var w=Object.defineProperty,S=Object.getOwnPropertyDescriptor,O=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?S(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&w(t,n,r),r};class j extends t.MixedEnvironment{constructor(){super(...arguments),this.icons={team:r.iconShieldCrossLine,sign:r.iconMoonClearLine,crown:r.iconVipCrownLine,email:r.iconMailLine},this.basePath="commons.uol.com.br/monaco/conteudo/geral"}async dispatch(){var e=[];e.push((async()=>{try{var e=await this.getContextualMenuData();e.unshift({icon:this.icons.sign,label:"Seu signo",id:"sign"}),e.unshift({icon:this.icons.team,label:"Seu time",id:"team"}),this.store.contextual=e}catch(e){this.tools.log.error(e)}})()),e.push((async()=>{try{var e=await this.getMainMenuData("minimized");this.store.menu=e}catch(e){this.tools.log.error(e)}})()),await Promise.all(e)}getMainMenu(){return this.store.menu}async getMenuSubItems(e,t){const n=this.filter(t);try{const t=await this.getFile(e);var o,a,r=[],i=(t.vitrines||[]).filter(e=>e.id).map(e=>{var o;return{title:(null==(o=null==(o=t[e.id])?void 0:o.topo)?void 0:o.titulo)||(null==(o=(Array.isArray(t.submenu)?t.submenu:[]).find(t=>t.id===e.id))?void 0:o.titulo),link:null==(o=null==(o=t[e.id])?void 0:o.topo)?void 0:o.link,items:this.mapMenuItems((t[e.id+"-items"]||[]).filter(n)).concat(this.mapMenuItems((Array.isArray(t["segundo-nivel"])?t["segundo-nivel"]:[]).filter(t=>t.id===e.id))),group:!0===e.agrupar}}).filter(e=>e.title);let s=[];for([o,a]of Object.entries(i))s.push(a),a.group?Number(o)+1===i.length&&r.push(s):(r.push(s),s=[]);return{key:e,items:[[...this.mapMenuItems(t.submenu.filter(n)||[],!0)]].concat(r)}}catch(t){this.tools.log.error(t)}return null}mapMenuItems(e,t=!1){return e.map(e=>{var n={slug:this.stringService.toSlug(e.titulo),link:e.link,logo:e.selectImage||e.logo};return t?n.title=e.titulo:n.label=e.titulo,e.items&&(n.items=e.items),n})}filter(e){const t={expanded:"menu-expandido",minimized:"menu-minimizado"};return n=>(n.exibir||"").split(/[;,]/).map(e=>e.trim()).includes(t[e])}async getFile(e){try{return await this.tools.json.open(e.replace(/https?:\/\//,""))}catch(t){return t.message=`There was a problem getting the menu data file: ${e} - `+t.message,this.tools.log.error(t),Promise.reject(t)}}getContextualMenu(){return this.store.contextual}async getMenuTeams(){var e=[];const t=["Flamengo","Corinthians"];try{var n=await this.getFile("commons.uol.com.br/monaco/conteudo/geral/header/esporte.json");for(const o of Object.keys(n).filter(e=>/vitrine-\d+-items/.test(e)))if(Array.isArray(n[o])&&n[o].some(e=>t.includes(e.titulo))){for(const t of n[o])e.push({label:t.titulo,slug:this.stringService.toSlug(t.titulo),link:t.link});break}return Promise.resolve(e)}catch(n){return this.tools.log.error(n),Promise.resolve(e)}}async getMainMenuData(e){let t=[];var n=this.filter(e);try{var o=(await this.getFile(this.basePath+"/menu/ordenacao.json")).menu;const a=new Map((await Promise.allSettled(o.filter(n).filter(e=>e["commons-path"]).map(t=>this.getMenuSubItems(t["commons-path"],e)))).filter(({status:e})=>"fulfilled"===e).map(e=>{var t;return[null==(t=e.value)?void 0:t.key,e.value.items]}));t=this.mapMenuItems(o.filter(n).map(e=>(e.items=a.get(e["commons-path"])||[],e)))}catch(t){this.tools.log.error(t)}return t}async getContextualMenuData(){var e;let t=[];var n=this.tools.extend(!0,{station:{items:null},channel:{items:null}},null==(e=this.config.menu)?void 0:e.contextual);for(const e of["channel","station","portal"])if(n[e]&&Array.isArray(n[e].items)&&n[e].items.length){t=n[e].items;break}try{var o=await this.getFile("commons.uol.com.br/monaco/conteudo/jupiter/menu-contextual/data.json");const e=(null==o?void 0:o["menu-contextual-jupiter"])||{};t=Object.keys((null==o?void 0:o["menu-contextual-jupiter"])||{}).filter(e=>/item-\d+/.test(e)).map(t=>{var n;return{label:null==(n=null==e?void 0:e[t])?void 0:n.title,link:null==(n=null==e?void 0:e[t])?void 0:n.link}}).filter(({label:e,link:t})=>e&&t).splice(0,2)}catch(e){this.tools.log.error(e)}return t}}O([Object(t.Inject)(a.default)],j.prototype,"stringService",2),O([Object(t.Inject)(n)],j.prototype,"store",2)},3077:function(e,t,n){"use strict";n.r(t),n.d(t,"AuthorRepository",(function(){return o})),n.d(t,"BabelRespository",(function(){return a})),n.d(t,"BaseRepository",(function(){return r})),n.d(t,"BlogRepository",(function(){return i})),n.d(t,"EconomyResponse",(function(){return s})),n.d(t,"MostReadRepository",(function(){return c})),n.d(t,"NewsBaseRepository",(function(){return l})),n.d(t,"NewsGenericRepository",(function(){return u})),t=n(4);class o extends t.BackEnvironment{}class a extends t.BackEnvironment{}class r extends t.BackEnvironment{}class i extends t.BackEnvironment{}class s extends t.BackEnvironment{}class c extends t.BackEnvironment{}class l extends t.BackEnvironment{}class u extends t.BackEnvironment{}},3084:function(e,t,n){"use strict";n.r(t),n.d(t,"MetatagsService",(function(){return o}));class o extends n(4).BackEnvironment{}},3085:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));
/*!
 * Jupiter - Jupiter body service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class o extends n(4).MixedEnvironmentTool{setAttribute(e,t){this.isClient()?window.document.body.setAttribute(e,t||""):this.tools.body.attributes.add(e,t)}removeAttribute(e){this.isClient()?window.document.body.removeAttribute(e):this.tools.body.attributes.remove(e)}addClass(e){this.isClient()?Array.isArray(e)?e.forEach(e=>window.document.body.classList.add(e)):window.document.body.classList.add(e):this.tools.body.attributes.addClass(e)}removeClass(e){this.isClient()?Array.isArray(e)?e.forEach(e=>window.document.body.classList.remove(e)):window.document.body.classList.remove(e):this.tools.body.attributes.removeClass(e)}isClient(){return"undefined"!=typeof window}}},3086:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));class o extends n(4).BackEnvironment{}},3090:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});
/*!
 * Jupiter - Jupiter body service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class o extends n(4).MixedEnvironmentTool{setAttribute(e,t){this.isClient()?window.document.body.setAttribute(e,t||""):this.tools.body.attributes.add(e,t)}removeAttribute(e){this.isClient()?window.document.body.removeAttribute(e):this.tools.body.attributes.remove(e)}addClass(e){this.isClient()?Array.isArray(e)?e.forEach(e=>window.document.body.classList.add(e)):window.document.body.classList.add(e):this.tools.body.attributes.addClass(e)}removeClass(e){this.isClient()?Array.isArray(e)?e.forEach(e=>window.document.body.classList.remove(e)):window.document.body.classList.remove(e):this.tools.body.attributes.removeClass(e)}isClient(){return"undefined"!=typeof window}}t.default=o},3091:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));class o extends n(4).BackEnvironment{}},3093:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=n(4);const a=n(2719);
/*!
 * Jupiter - Jupiter browser service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */let r,i=0,s=0;class c extends o.FrontEnvironment{onScroll(){return r=r||a.fromEvent(window,"scroll").pipe(a.debounceTime(0),a.map(()=>{var e=window.pageYOffset||document.documentElement.scrollTop,t=e-i,n=(i=e<=0?0:e,window.pageXOffset||document.documentElement.scrollLeft),o=n-s;return s=n<=0?0:n,{y:{pos:e,direction:0<=t?"down":"up"},x:{pos:n,direction:0<=o?"right":"left"}}}),a.distinctUntilChanged())}}t.default=c},3094:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=n(55);var a=n(4);n=n(43);const r={user:{impressionQuantity:0,newsQuantity:0},storageVar:"uol-user",persist:async()=>{var e=await r.get();r.updateViewsQuantity(e.newsQuantity,e.month),r.set(e)},init:async()=>{await r.whenAvailable("stcrpc"),await r.persist()},impression:()=>{if(!r.printGone)return r.user.impressionQuantity++,r.set(r.user),r.printGone=!0,r.user},updateViewsQuantity:(e,t)=>{r.user.month=(new Date).getMonth()+1,r.user.newsQuantity=!e||r.checkNewMonth(t)?1:e+1},checkNewMonth:e=>!e||e!==(new Date).getMonth()+1,get:()=>{const e=r.storageVar;return new Promise(t=>{window.stcrpc("pref",[e],e=>{if(e){var n,o=["impressionQuantity","newsQuantity","month"];for(n in e)r.user[o[n]]=parseInt(e[n])}t(r.user)})})},set:({impressionQuantity:e,newsQuantity:t,month:n})=>{var o=r.storageVar;try{window.stcrpc("pref",[o,null]),window.stcrpc("push",[o,e,t,n],()=>{})}catch(e){console.error("stcrpc error ",e)}Object.assign(window.universal_variable.aud,{impressionQuantity:e,newsQuantity:t})},whenAvailable:e=>new Promise(t=>{const n=()=>{window.setTimeout(()=>{window[e]&&window.stcReady?t(!0):n()},400)};n()})},i={unaccent(e){for(var t,n="",o=0,a=e.length;o<a;n+=-1<(t="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž".indexOf(e.charAt(o)))?"AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz".charAt(t):e.charAt(o),o++);return n},toSlugPublicador(e){return this.unaccent(e).toLowerCase().replace(/[^a-z0-9 /&.+(-]+/g,"").replace(/\s+/g,"-").replace(/[&.+(]/g,"")}},s=()=>fetch("https://conta.uol.com.br/logout",{method:"DELETE",credentials:"include"}),c=()=>new Promise(e=>{var t,n=window.document.createElement("script"),[o]=(n.type="text/javascript",n.async=!0,n.src="//cdn.tinypass.com/api/tinypass.min.js",window.document.getElementsByTagName("script"));null!=(t=null==o?void 0:o.parentNode)&&t.insertBefore(n,o),n.onload=()=>e(!0)}),l=e=>{tp.push(e)},u=(e,t)=>{l(["setCustomVariable",e,t])},d=e=>{fetch("https://n.comentarios.uol.com.br/ws/v5/user/login?event_code="+(e||"")).then(e=>e.json()).then(({code:e,error:t})=>{200!=e&&console.error(t)})},p={countClick(e){var t,n={category:(n=e.data?JSON.parse(e.data.replaceAll("'",'"')):e).label||"",pTemplate:n.component||"",label:n.reference||"",source:n.source||"",position:n.position||"",experienceId:n.experienceid||n.experienceId};(n=p.setComponent(n,"click")).action=e.url&&!["#","javascript:void(0)"].includes(e.url)?e.url:"clique",o.metricOnClick(n),e.url&&(t=()=>window.location.href=e.url,E()&&n.label.includes("assinante")&&s(),t())},countPrint(e){var t,n=p.setComponent(e);t=e.containerSelector||".tp-modal",document.querySelector(t).setAttribute("data-audience-print",JSON.stringify(n))},countEvent(e){const t=p.setComponent(e);t.label=t.label.replace(/\-(2|8)0$/,""),t.sendAlways||(t.sampling=20,t.impression=1),e.containerSelector?o.observe(document.querySelector(e.containerSelector),()=>o.metricOnView(t)):window.setTimeout((function(){o.metricOnView(t)}),750)},setPrint(e){p.countEvent(e)},setComponent(e,t){var n,o=window.universal_variable.aud||{},a=window[e.experienceId]||{};t="click"!==t;const i={category:"paywall",label:"componente-visualizado",pTemplate:e.templateId};a.metricConcat&&t&&(n=o.newsletter,s=a.strToConcat,a.paywallType=s+"-"+n),a.sendAlways&&(i.sendAlways=!0),t&&(i.nonInteraction=!0,i.action="impressao"),["category","label","pTemplate","source","paywallType","action","label","abTest13","position"].forEach(t=>{e[t]&&(i[t]=e[t])});var s=Object.assign({},i,o,a);return s.porteiraConteudo2&&t&&r.impression(),s},setError(e,t){var{statusText:n,responseText:o,statusCode:a}=e,o={status:e.status,statusText:o||n||a||"Erro indefinido no request",compName:"piano"};window.ReportError&&window.ReportError({message:"Erro no autenticador de conta",stack:"Url service: "+e.responseURL||!1}),console.error("Heimdall error:",o)},experienceExecute({result:e}){for(const t of e.events)"setResponseVariable"===t.eventType&&p.responseVariable(t)},responseVariable({eventExecutionContext:e,eventParams:t}){e=e.experienceId;var n=t.responseVariables||{};if(window.universal_variable&&window.universal_variable.aud){var o=/(\[[^\]]+\])/g;for(const e in n){var a=n[e];o.test(a)&&(n[e]=a.replace(o,(function(e){var t=e.replace(/[\[\]]/g,"");return window.universal_variable.aud[t]?i.toSlugPublicador(window.universal_variable.aud[t]):e})))}}window[e]=n},whenAvailable:(e,t)=>{window.setTimeout((function(){window[e.experienceId]?t(e):p.whenAvailable(e,t)}),100)}},h=e=>{var t;e.params.trackingid&&(document.cookie=`p_trk_id=${e.params.trackingid};path=/;domain=.uol.com.br;`),p[e.eventName](e.params),e.params.finishDate&&!e.params.lead&&(t={finishDate:e.params.finishDate,eventCode:e.params.code,btnClicked:e.params.btnType},localStorage.setItem("gateEventData",JSON.stringify(t))),e.params.lead&&e.params.code&&(A(e.params.finishDate,e.params.code),d(e.params.code),$({offerId:"OFTLA210UN51",templateId:"OTMTF53QVHQZ",templateVariantId:"OTVUPJHJ0R765",displayMode:"inline",containerSelector:e.params.containerSelector||".porteira_piano_event"}),p.countPrint({templateId:e.params.templateId,paywallType:"investimentos-evento",containerSelector:e.params.containerSelector||".porteira_piano_event",action:"login-success"}))},f=e=>{p.experienceExecute(e),tp.setExcludedGAEvents({experienceExecute:!0,meterActive:!0,meterExpired:!0,showTemplate:!0,setResponseVariable:!0,beforeBrowserEvent:!0,startCheckout:!0,showOffer:!0,checkoutCustomEvent:!0,termSelected:!0,promoApplied:!0,promoInvalid:!0,submitPayment:!0,checkoutStateChange:!0,receiptDisplayed:!0,checkoutSuccess:!0,checkoutRestarted:!0,checkoutError:!0,checkoutClose:!0,loginRequired:!0,loginDisplayed:!0,registrationDisplayed:!0,loginSuccess:!0,registrationSuccess:!0,logout:!0})},m=e=>{},g=e=>{e&&"checkoutCompleted"==e.state&&window.location.reload()},v=()=>{},b=()=>{},y=()=>{},w=()=>{},S=()=>{},O=()=>!1,j=()=>{},x=()=>{},_=()=>{},k=e=>{p.whenAvailable(e,p.setPrint)},C=e=>{window.location.reload()},P="1137479910722123061",E=()=>document.cookie.includes("SESS"),A=(e,t)=>{var[e,n,o]=e.split("/");t="_pc_event_code="+t+";expires="+new Date(Date.UTC(o,n-1,e,23,59,59)).toUTCString()+";path=/;domain=.uol.com.br;";document.cookie=t},$=e=>{tp.offer.show(e)};var D=Object.defineProperty,T=Object.getOwnPropertyDescriptor,M=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?T(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&D(t,n,r),r};class R extends a.FrontEnvironment{constructor(){super(...arguments),this.leads=[],this.gaPropertyDictionary={economia:"economia",noticias:"noticias",tab:"noticias",educacao:"noticias",eleicoes:"noticias",splash:"entretenimento",entretenimento:"entretenimento",tvefamosos:"entretenimento",carnaval:"entretenimento"}}init(){var e;(e=>{window.tp=window.tp||[];var t="addHandler",n=window.location.search.match(/pianoSandbox/);return[["setAid",n?"IXZ8EaO9su":"ivPmBDGgpu"],["setSandbox",!!n],["setCxenseSiteId",P],["setEndpoint","https://buy.tinypass.com/api/v3"],["setUseTinypassAccounts",!1],["setUsePianoIdUserProvider",!1],["setUsePianoIdLiteUserProvider",!0],[t,"experienceExecute",f],[t,"experienceExecutionFailed",m],[t,"checkoutComplete",v],[t,"checkoutClose",g],[t,"checkoutCustomEvent",b],[t,"checkoutCancel",y],[t,"checkoutError",w],[t,"checkoutSubmitPayment",S],[t,"loginRequired",O],[t,"loginSuccess",j],[t,"meterExpired",x],[t,"meterActive",_],[t,"showTemplate",k],[t,"customEvent",h],[t,"externalCheckoutComplete",C]].forEach(e=>l(e)),window.cX=window.cX||{},window.cX.callQueue=window.cX.callQueue||[],window.cX.callQueue.push(["invoke",async()=>{window.cX.setSiteId(P);try{var e=(await fetch("https://udr.uol.com.br",{credentials:"include"}).then(e=>e.json())).uolid;e&&window.cX.addExternalId({id:e,type:"tfh"})}catch(e){}window.cX.sendPageViewEvent()}]),l(["init",e]),{loadTinypass:c}})(this.default.bind(this)).loadTinypass().then(()=>{console.log("piano :: load :: constructor :: window.tp",window.tp)}),this.central=(null==(e=null==(e=this.getConfig())?void 0:e.central)?void 0:e.slug)||"","Urban Taste"===(null==(e=null==(e=this.getConfig())?void 0:e.central)?void 0:e.title)&&(this.central="urbantaste")}setRegisterLead(e){this.leads.push(e)}async executeRegisterLeads(){for(const e of this.leads)try{await e()}catch(e){console.error("Erro ao executar callback do Register Lead",e)}}removeDeprecatedCookies(){["CSASF","CAUBR01","UOL_ID"].forEach(e=>{document.cookie.includes(e)&&this.cookieService.removeCookie(e,{domain:".uol.com.br"})})}setGAValues(){if("object"==typeof(null==(o=window.universal_variable)?void 0:o.aud)){var e,t,n=window.universal_variable.aud,{author:o,publicationDate:a="",channel:r}=n,i=["tags","abTest3","firstView"];for(const o in n)i.includes(o)||"string"!=(t=typeof(e=n[o]))&&"boolean"!=t||u(o,e);var s=/(\d{2})\/(\d{2})\/(\d{4}) (\d{2}:\d{2}:\d{2})/;s.test(a)&&l(["setContentCreated",a.replace(s,"$3-$2-$1T$4-03:00")]),r&&l(["setContentSection",r]),o&&l(["setContentAuthor",o])}}async default(){var e=(window.document.cookie.split(";").map(e=>e.split("=")).find(([e=""])=>"_ga"===e.trim())[1]||"").replace(/^([^.]+\.){2}/,""),t=new URLSearchParams(document.location.search),n=t.has("uol_app"),o=window.newsletterModule||!1,a=window.bounce_active||!1,r=this.gaPropertyDictionary[this.central]||"estacoes";u("gaProperty",r),a&&u("bounce_active",!0),n&&(u("webview",!0),t.has("iap"))&&u("iap",!0),o&&u("newsletter-module",o),r=n?"app":"web";l(["setZone",r]),window.tp.enableGACrossDomainLinking(e),window.tp.setGAClientId(e),this.setGAValues();const i=null==(o=null==(a=window.universal_variable)?void 0:a.page)?void 0:o.tagsMap;(e=(null==(r=null==(n=window.universal_variable)?void 0:n.page)?void 0:r.tags)||[]).length&&(a=e.map(e=>i[e]+` [${e}]`),l(["setTags",a]),e.includes(81891))&&u("paywall",!0),document.querySelector(".porteira_piano_event")&&this.setGateEvent(),E()&&((o=window.location.search).includes("register")&&this.executeRegisterLeads(),o.includes("event_code"))&&d(t.get("event_code"));try{if(!E())throw"Cookie SESS inexistente";var c=(await new Promise((e,t)=>{fetch("https://contentpw.uol.com.br/rest/heimdall/access",{credentials:"include"}).then(n=>{200==n.status?e(n.json()):t(n)}).catch(t)})).data;u("logged",!0),Array.isArray(c)&&(c.some(e=>"7-32"===e)?u("uol-subscriber",!0):(l(["setExternalJWT",""]),u("socialLogin",!0)))}catch(e){l(["setExternalJWT",""]),u("logged",!1),this.removeDeprecatedCookies();const{status:t,url:o}=e;t<=400||500<=t?(n=window.performance.getEntriesByType("resource").find(e=>e.name==o),p.setError(e,n)):401===t&&s()}tp.experience.init()}async setGateEvent(){var e={offerId:"OFTLA210UN51",templateId:"OTMTF53QVHQZ",displayMode:"inline",containerSelector:".porteira_piano_event"},t={action:"impressao",label:"componente-visualizado"},n=E();document.cookie.includes("_pc_event_code")?(e.templateVariantId="OTV41J0VR3L11",t.action="confirmado-cookie"):n&&((n=this.localStorageService.getData("gateEventData"))?(n=JSON.parse(n),window.localStorage.removeItem("gateEventData"),e.templateVariantId="register"===n.btnClicked?"OTV6K9II7P44A":"OTVUPJHJ0R765",t.action="register"===n.btnClicked?"register-success":"login-success",A(n.finishDate,n.eventCode),d(n.eventCode)):e.templateVariantId="OTV8GTFJCPDVL"),$(e),p.countPrint({templateId:e.templateId,containerSelector:e.containerSelector,paywallType:"investimentos-evento",action:t.action,label:t.label})}}M([a.Inject(n.CookieService)],R.prototype,"cookieService",2),M([a.Inject(n.LocalStorageService)],R.prototype,"localStorageService",2),t.default=R},3095:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=n(4),a=n(0);var r=n(23);const i=n(72);var s;
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let c;(e=>e&&e.__esModule?e:{default:e})(a).default.util.warn;const l=e=>c=e,u=Symbol();function d(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(n=s=s||{}).direct="direct",n.patchObject="patch object",n.patchFunction="patch function",n="undefined"!=typeof window;const p="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&n,h=()=>{};function f(e,t,n,o=h){e.push(t);var r=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&a.getCurrentScope()&&a.onScopeDispose(r),r}function m(e,...t){e.slice().forEach(e=>{e(...t)})}const g=e=>e();function v(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){var n,o;t.hasOwnProperty(r)&&(n=t[r],d(o=e[r])&&d(n)&&e.hasOwnProperty(r)&&!a.isRef(n)&&!a.isReactive(n)?e[r]=v(o,n):e[r]=n)}return e}Symbol();const b=new WeakMap,y=Object.assign;function w(e,t,n={},o,r,i){let c;const u=y({actions:{}},n),d={deep:!0};let w,S,O,j=[],x=[];var _=o.state.value[e],k=(i||_||a.set(o.state.value,e,{}),a.ref({}));let C;function P(t){let n;w=S=!1,n="function"==typeof t?(t(o.state.value[e]),{type:s.patchFunction,storeId:e,events:O}):(v(o.state.value[e],t),{type:s.patchObject,payload:t,storeId:e,events:O});const r=C=Symbol();a.nextTick().then(()=>{C===r&&(w=!0)}),S=!0,m(j,n,o.state.value[e])}var E=i?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{y(e,t)})}:h;function A(t,n){return function(){l(o);var a=Array.from(arguments);const r=[],i=[];let s;m(x,{args:a,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,a)}catch(a){throw m(i,a),a}return s instanceof Promise?s.then(e=>(m(r,e),e)).catch(e=>(m(i,e),Promise.reject(e))):(m(r,s),s)}}var $;k=a.markRaw({actions:{},getters:{},state:[],hotState:k}),E={_p:o,$id:e,$onAction:f.bind(null,x),$patch:P,$reset:E,$subscribe(t,n={}){var r=f(j,t,n.detached,()=>i());const i=c.run(()=>a.watch(()=>o.state.value[e],o=>{("sync"===n.flush?S:w)&&t({storeId:e,type:s.direct,events:O},o)},y({},d,n)));return r},$dispose:function(){c.stop(),j=[],x=[],o._s.delete(e)},_r:!1};const D=a.reactive(p?y({_hmrPayload:k,_customProperties:a.markRaw(new Set)},E):E),T=(o._s.set(e,D),(o._a&&o._a.runWithContext||g)(()=>o._e.run(()=>(c=a.effectScope()).run(t))));for(const t in T){var M,R=T[t];a.isRef(R)&&($=R,!a.isRef($)||!$.effect)||a.isReactive(R)?i||(_&&($=R,!b.has($))&&(a.isRef(R)?R.value=_[t]:v(R,_[t])),a.set(o.state.value[e],t,R)):"function"==typeof R&&(M=A(t,R),a.set(T,t,M),u.actions[t]=R)}if(Object.keys(T).forEach(e=>{a.set(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>o.state.value[e],set:e=>{P(t=>{y(t,e)})}}),p){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,y({value:D[t]},e))})}return D._r=!0,o._p.forEach(e=>{var t;p?(t=c.run(()=>e({store:D,app:o._a,pinia:o,options:u})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),y(D,t)):y(D,c.run(()=>e({store:D,app:o._a,pinia:o,options:u})))}),_&&i&&n.hydrate&&n.hydrate(D.$state,_),w=!0,S=!0,D}const S={default:{splash:r.logoSplash,universa:r.logoUniversa,"viva-bem":r.logoVivabem,ecoa:r.logoEcoa,nossa:r.logoNossa,tilt:r.logoTilt,tab:r.logoTab,"guia-de-compras":r.logoGuiaDeCompras,"canal-uol":r.logoCanaluol},prime:{splash:r.logoSplashInverted,universa:r.logoUniversaInverted,"viva-bem":r.logoVivabemInverted,ecoa:r.logoEcoaInverted,nossa:r.logoNossaInverted,tilt:r.logoTiltInverted,tab:r.logoTabInverted,"guia-de-compras":r.logoGuiaDeComprasInverted,"canal-uol":r.logoCanaluolInverted}},O=function(e,t,n){let o,r;function i(e,n){var i=!!a.getCurrentInstance();return i=((e=e||(i?a.inject(u,null):null))&&l(e),(e=c)._s.has(o)||w(o,t,r,e),e._s.get(o))}return o=e,r=void 0,i.$id=o,i}("footer",()=>{const e=o.useConfigStore().state,t={sign:a.ref({}),phone:a.ref({number:{}}),app:a.ref({}),credits:a.ref({}),socialMedia:a.ref([]),columns:a.ref([]),brands:a.ref([])},n=e=>{for(var[n,o]of Object.entries(e))n=n.replace(/-(\w)/g,(e,t)=>t.toUpperCase()),t[n]&&(t[n].value=o)};return{...t,setData:n,dispatch:async function(){var t=function(){var t;const n=e.footer||{};return{...n,socialMedia:Array.isArray(n.socialMedia)?null==(t=n.socialMedia)?void 0:t.filter((e,t)=>n.socialMedia.findIndex(t=>t.mediaName===e.mediaName)===t):[]}}(),o=await async function(){var{data:e,config:t}=await async function(){var e=O().$tools;try{return await(null==e?void 0:e.json.open("commons.uol.com.br/monaco/export/vueland.uol.com.br/vueland/modules/footer.json"))}catch(t){throw t.message="There was a problem getting footer data. "+t.message,null!=e&&e.log.error(t),t}}()||{};return{columns:function(e){e=Array.isArray(e)?e:[];var t,n=[],o=({title:e,link:t})=>({label:e,link:t});for(const r of e){var a={title:o(r),items:[]};for(const e of null==(t=r.items)?void 0:t.values())e.length&&a.items.push(e.map(o));n.push(a)}return n}(null==e?void 0:e.footerCollection),brands:Array.isArray(null==t?void 0:t.brands)?null==t?void 0:t.brands:[]}}();const a=i.usePageStore().isPrime?S.prime:S.default;n({...t,...o,brands:null==(o=null==(t=null==o?void 0:o.brands)?void 0:t.filter(({slug:e})=>Object.hasOwnProperty.call(a,e)))?void 0:o.map(({slug:e,url:t})=>({name:e,link:t,image:a[e]}))})}}});t.default=O,t.footerLogos=S,t.useFooterStore=O},3096:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o=n(75),a=n(4),r=e=>e&&e.__esModule?e:{default:e};const i=r(n(20)),s=e=>`\nPromise.all([\n  caches.delete('${e}[SHELL]'),\n  caches.delete('${e}[ASSETS][FONT]'),\n  caches.delete('${e}[ASSETS][CSS]'),\n  caches.delete('${e}[ASSETS][SVG]'),\n  caches.delete('${e}[ASSETS][JS]'),\n  caches.delete('${e}[SERVICES]')\n]).catch(err => {});\n`;n=Object.defineProperty,Object.getOwnPropertyDescriptor;class c extends a.MixedEnvironment{constructor(){super(...arguments),this.cachePrefix="[VUELAND:v1]"}init(e){var t,n,o,a,r,s,c,l,u;this.getState("page",{prop:"pwa"})||(({loadedConfig:t,central:{title:n},portal:{title:o},pwa:a={}}=this.getConfig()||{}),({fromHome:r,uri:u,domain:s}=this.tools.request),c=r?(u.split("/")[1]||"").split("?")[0]:"",u="/"+(r?u.split("/")[1]:""),u=(a.manifest||{}).scope||u,l=(a||{}).clean,u={pathname:u,domain:s,link:"https://"+s+(a.start_url_pathname||u),config:t.replace(/\.json/,""),debug:void 0!==this.tools.request.getParams("pwaDebug"),clean:l,title:((a||{}).manifest||{}).title,centralSlug:this.stringService.toSlug(((a||{}).manifest||{})["icon-slug"]||n),portal:o,backgroundColor:"#ffffff",themeColor:"#d6001e",cachePrefix:this.cachePrefix,name:r?c:s.split(".")[0],shell:!!a.shell,revision:i.default().format("YYYYMMDDHH")+""+15*((i.default().minute()+7.5)/15|0)%60,forceCleanCache:null==e?void 0:e.forceCleanCache},this.setState("page","pwa",u)),null!=e&&e.loadMetatags&&this.addMetatags()}get data(){return this.getState("page",{prop:"pwa"})}register(){if("serviceWorker"in navigator){const e=this.data;window.addEventListener("load",(function(){e.clean&&navigator.serviceWorker.getRegistrations().then((function(t){for(const n of t)/https?:\/\/www\.uol\.com\.br\/?$/.test(n.scope)||n.scope!=="https://"+e.domain+e.pathname||(n.unregister(),console.log("[VUELAND-SW] Registration canceled successfully"))})),navigator.serviceWorker.register(e.pathname+"?loadComponent=JupiterPwaSw&api=true&configPath="+e.config+(e.debug?"&pwaDebug=true":""),{scope:e.pathname}).then((function(){console.log("[VUELAND-SW] Successfully registered")})).catch((function(e){console.error("[VUELAND-SW] Registration failed: ",e)}))}))}}getSwTemplate(){return(e=this.data).forceCleanCache?"// This snippet is inserted only in development mode \n"+s(e.cachePrefix):`/**\n * SW - VUELAND\n */\nimportScripts('https://storage.googleapis.com/workbox-cdn/releases/6.1.2/workbox-sw.js');\n\nworkbox.setConfig({debug:${e.debug?"true":"false"}});\nworkbox.loadModule('workbox-cacheable-response');\n\nself.addEventListener('install', (event) => {\n  self.skipWaiting();\n});\n\nconst cachePrefix = '${e.cachePrefix}';\nconst offlineLatestUrl = '${e.pathname}/?loadComponent=JupiterPwaSummaryWrapper&configPath=pwa/offline/${e.name}';\n\nself.AreaStorage = self.AreaStorage || [];\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][FONT]\`,\n    strategy: 'CacheFirst',\n    cacheExpiration: {\n      maxEntries: 30,\n      maxAgeSeconds: 2592000\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [{\n      url: /https:\\/\\/stc.uol.com\\/c\\/webfont\\/projeto-grafico\\/uollogo\\/.*$/\n    }, {\n      url: /https:\\/\\/stc.uol.com\\/c\\/webfont\\/projeto-grafico\\/uol-font\\/.*$/\n    }, {\n      url: /https:\\/\\/stc.uol.com\\/c\\/webfont\\/projeto-grafico\\/uol-icones-e-setas\\/.*$/\n    }, {\n      url: /https:\\/\\/stc.uol.com\\/c\\/webfont\\/projeto-grafico\\/v2\\/.*$/\n    }]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][CSS]\`,\n    strategy: 'StaleWhileRevalidate',\n    plugins: {\n      expiration: {\n        maxEntries: 100,\n        maxAgeSeconds: 518400,\n        purgeOnQuotaError: true\n      }\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [\n      {url: new RegExp('^https?:\\/\\/c.jsuol.com.br\\/assets\\/(.*)loadComponent\\=Media&contentType\\=css&scope\\=assets')}\n    ]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][JS]\`,\n    strategy: 'StaleWhileRevalidate',\n    plugins: {\n      expiration: {\n        maxEntries: 80,\n        maxAgeSeconds: 518400,\n        purgeOnQuotaError: true\n      }\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [\n      {url: new RegExp('^https?:\\/\\/c.jsuol.com.br\\/assets\\/(.*)loadComponent\\=Media&contentType\\=js&scope\\=assets')},\n    ]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][SVG]\`,\n    strategy: 'CacheFirst',\n    plugins: {\n      expiration: {\n        maxEntries: 10,\n        maxAgeSeconds: 518400,\n        purgeOnQuotaError: true\n      }\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [{url: new RegExp('^https?:\\/\\/c.jsuol.com.br\\/assets\\/(.*)&loadSvgs\\=')}]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[SERVICES]\`,\n    strategy: 'StaleWhileRevalidate',\n    plugins: {\n      expiration: {\n        maxEntries: 10,\n        maxAgeSeconds: 604800,\n        purgeOnQuotaError: true\n      }\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [{url: new RegExp('^https?:\\/\\/c.jsuol.com.br\\/assets\\/(.*)loadComponent\\=JupiterTeamShowcase')}]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][IMAGES]\`,\n    strategy: 'CacheFirst',\n    cacheExpiration: {\n      maxEntries: 30,\n      maxAgeSeconds: 2592000\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [{\n      url: new RegExp('^https?://(conteudo\\.)?imguol\\.com(\\.br)?\\/c\\/geral\\/3d\\/2021\\/05\\/25\\/placeholder-image')\n    }]\n  }\n});\n\n${e.shell?`\nworkbox.precaching.precacheAndRoute([\n  {\n    url: offlineLatestUrl,\n    revision: "${e.revision}"\n  }\n], {offlinePage: offlineLatestUrl});\n\nconst cacheHandler = new workbox.strategies.NetworkFirst({\n  cacheName: \`\${cachePrefix}[SHELL]\`,\n  plugins: [\n    new workbox.expiration.ExpirationPlugin({\n      maxEntries: 50,\n      maxAgeSeconds: 1\n    })\n  ]\n});\n\nworkbox.routing.registerRoute(getHomePathStrategy(), args => {\n  return cacheHandler.handle(args).then(response => {\n    if(!response) {\n      return caches.match(offlineLatestUrl);\n    }\n    return response;\n  });\n});\n`:""}\n\n/**\n * Estratégia padrão para o cache.\n * https://developers.google.com/web/tools/workbox/reference-docs/v4/workbox.strategies\n *\n * Valores permitidos:\n * - CacheFirst\n * - CacheOnly\n * - NetworkFirst\n * - NetworkOnly\n * - StaleWhileRevalidate\n */\nconst DEFAULT_STRATEGY = 'StaleWhileRevalidate';\n\n/**\n* Recebe um objeto de configuração de cache e retorna a classe Plugin do workbox,\n* configurada conforme a \`cfg\` recebida.\n*\n* @param {Object} cfg\n* @returns workbox.Plugin\n*/\nconst getPluginClass = (cfg = {}) => {\n  const plugins = [];\n  for(const plugin of Object.keys(cfg)) {\n    switch(plugin) {\n      case 'expiration':\n      plugins.push(new workbox.expiration.ExpirationPlugin(Object.assign({}, cfg[plugin])));\n      break;\n    }\n  }\n  return plugins;\n};\n\nfor(const area of self.AreaStorage) {\n  const {\n    cache = undefined,\n    config = undefined,\n  } = area;\n\n  if(config === undefined) {\n    console.error(\`sw: object 'config' not defined\`);\n    continue;\n  }\n\n  if(cache === undefined) {\n    console.error(\`sw: object 'cache' not defined\`);\n    continue;\n  }\n\n  // valida se a estratégia é válida\n  if(workbox.strategies[config.strategy] === undefined) {\n    console.error(\`sw: strategy \${config.strategy} is not a valida value\`);\n    continue;\n  }\n\n  if(cache.precache instanceof Array === true && /([OFFLINE])$/.test(config.cacheName) === true) {\n    workbox.precaching.precacheAndRoute(cache.precache, {\n      offlinePage: offlineLatestUrl\n    });\n  }\n\n  const plugins = getPluginClass(config.plugins);\n\n  // https://stackoverflow.com/questions/39109789/what-limitations-apply-to-opaque-responses\n  plugins.push(new workbox.cacheableResponse.CacheableResponsePlugin({\n    statuses: [200],\n  }));\n\n  for(const asset of cache.assets) {\n    workbox.routing.registerRoute(\n      asset.url,\n      new workbox.strategies[config.strategy || DEFAULT_STRATEGY]({\n        cacheName: config.cacheName,\n        plugins\n      })\n    );\n  }\n}\n\n/**\n* Define a RegExp para match da url de home que será cacheada\n*\n* @returns RegExp\n*/\nfunction getHomePathStrategy() {\n  const {host, pathname, href} = location;\n  if(host === 'www.uol.com.br') {\n    return new RegExp(\`^https?://www.uol.com.br/\${pathname.replace(/^\\//,'')}/?$\`)\n  }\n  const match = href.match(/^https?:\\/\\/([^www].*).uol.com.br/);\n  return new RegExp(\`^https?:\\/\\/\${match[1]}.uol.com.br\\/?$\`);\n}\n\n// remove cache antigo\n`+s(e.cachePrefix);var e}getManifest(){return JSON.stringify({"//":"It is the same for all projects, this is not your project's sender ID",gcm_sender_id:"103953800507",name:this.data.title,short_name:this.data.title,icons:[{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-36.png`,sizes:"36x36",type:"image/png",density:.75,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-48.png`,sizes:"48x48",type:"image/png",density:1,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-72.png`,sizes:"72x72",type:"image/png",density:1.5,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-96.png`,sizes:"96x96",type:"image/png",density:2,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-144.png`,sizes:"144x144",type:"image/png",density:3,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-192.png`,sizes:"192x192",type:"image/png",density:4,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-512.png`,sizes:"512x512",type:"image/png",purpose:"any maskable"}],start_url:this.data.link+"?utm_source=pwa&utm_medium=pwa&utm_campaign="+this.data.centralSlug,scope:this.data.pathname,display:"standalone",background_color:this.data.backgroundColor,theme_color:this.data.themeColor})}addMetatags(){this.tools.appendResource().before([{tag:"link",attrs:[{key:"rel",value:"manifest"},{key:"href",value:this.data.link+"?loadComponent=JupiterPwaManifest&api=true&configPath="+this.data.config}],priority:1},{tag:"meta",attrs:[{key:"name",value:"theme-color"},{key:"content",value:"#ffffff"}],priority:1},{tag:"link",attrs:[{key:"rel",value:"icon"},{key:"href",value:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-192.png`},{key:"sizes",value:"192x192"}],priority:1},{tag:"link",attrs:[{key:"rel",value:"apple-touch-icon"},{key:"href",value:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-192.png`}],priority:1},{tag:"link",attrs:[{key:"name",value:"msapplication-square310x310logo"},{key:"content",value:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-512.png`}],priority:1}])}}for(var l,u=[a.Inject(r(o).default)],d=c.prototype,p="stringService",h=void 0,f=u.length-1;0<=f;f--)(l=u[f])&&(h=l(d,p,h)||h);h&&n(d,p,h),t.default=c},3098:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u}));t=n(4);
/*!
 * Jupiter - Jupiter browser service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */var o=n(2713),a=n(2714),r=n(32),i=n(94);let s,c=0,l=0;class u extends t.FrontEnvironment{onScroll(){return s=s||Object(o.a)(window,"scroll").pipe(Object(a.a)(0),Object(r.a)(()=>{var e=window.pageYOffset||document.documentElement.scrollTop,t=e-c,n=(c=e<=0?0:e,window.pageXOffset||document.documentElement.scrollLeft),o=n-l;return l=n<=0?0:n,{y:{pos:e,direction:0<=t?"down":"up"},x:{pos:n,direction:0<=o?"right":"left"}}}),Object(i.a)())}}},3099:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return M}));var o=n(55);t=n(4),n=n(43);const a={user:{impressionQuantity:0,newsQuantity:0},storageVar:"uol-user",persist:async()=>{var e=await a.get();a.updateViewsQuantity(e.newsQuantity,e.month),a.set(e)},init:async()=>{await a.whenAvailable("stcrpc"),await a.persist()},impression:()=>{if(!a.printGone)return a.user.impressionQuantity++,a.set(a.user),a.printGone=!0,a.user},updateViewsQuantity:(e,t)=>{a.user.month=(new Date).getMonth()+1,a.user.newsQuantity=!e||a.checkNewMonth(t)?1:e+1},checkNewMonth:e=>!e||e!==(new Date).getMonth()+1,get:()=>{const e=a.storageVar;return new Promise(t=>{window.stcrpc("pref",[e],e=>{if(e){var n,o=["impressionQuantity","newsQuantity","month"];for(n in e)a.user[o[n]]=parseInt(e[n])}t(a.user)})})},set:({impressionQuantity:e,newsQuantity:t,month:n})=>{var o=a.storageVar;try{window.stcrpc("pref",[o,null]),window.stcrpc("push",[o,e,t,n],()=>{})}catch(e){console.error("stcrpc error ",e)}Object.assign(window.universal_variable.aud,{impressionQuantity:e,newsQuantity:t})},whenAvailable:e=>new Promise(t=>{const n=()=>{window.setTimeout(()=>{window[e]&&window.stcReady?t(!0):n()},400)};n()})},r={unaccent(e){for(var t,n="",o=0,a=e.length;o<a;n+=-1<(t="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž".indexOf(e.charAt(o)))?"AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz".charAt(t):e.charAt(o),o++);return n},toSlugPublicador(e){return this.unaccent(e).toLowerCase().replace(/[^a-z0-9 /&.+(-]+/g,"").replace(/\s+/g,"-").replace(/[&.+(]/g,"")}},i=()=>fetch("https://conta.uol.com.br/logout",{method:"DELETE",credentials:"include"}),s=()=>new Promise(e=>{var t,n=window.document.createElement("script"),[o]=(n.type="text/javascript",n.async=!0,n.src="//cdn.tinypass.com/api/tinypass.min.js",window.document.getElementsByTagName("script"));null!=(t=null==o?void 0:o.parentNode)&&t.insertBefore(n,o),n.onload=()=>e(!0)}),c=e=>{tp.push(e)},l=(e,t)=>{c(["setCustomVariable",e,t])},u=e=>{fetch("https://n.comentarios.uol.com.br/ws/v5/user/login?event_code="+(e||"")).then(e=>e.json()).then(({code:e,error:t})=>{200!=e&&console.error(t)})},d={countClick(e){var t,n={category:(n=e.data?JSON.parse(e.data.replaceAll("'",'"')):e).label||"",pTemplate:n.component||"",label:n.reference||"",source:n.source||"",position:n.position||"",experienceId:n.experienceid||n.experienceId};(n=d.setComponent(n,"click")).action=e.url&&!["#","javascript:void(0)"].includes(e.url)?e.url:"clique",Object(o.metricOnClick)(n),e.url&&(t=()=>window.location.href=e.url,P()&&n.label.includes("assinante")&&i(),t())},countPrint(e){var t,n=d.setComponent(e);t=e.containerSelector||".tp-modal",document.querySelector(t).setAttribute("data-audience-print",JSON.stringify(n))},countEvent(e){const t=d.setComponent(e);t.label=t.label.replace(/\-(2|8)0$/,""),t.sendAlways||(t.sampling=20,t.impression=1),e.containerSelector?Object(o.observe)(document.querySelector(e.containerSelector),()=>Object(o.metricOnView)(t)):window.setTimeout((function(){Object(o.metricOnView)(t)}),750)},setPrint(e){d.countEvent(e)},setComponent(e,t){var n,o=window.universal_variable.aud||{},r=window[e.experienceId]||{};t="click"!==t;const i={category:"paywall",label:"componente-visualizado",pTemplate:e.templateId};r.metricConcat&&t&&(n=o.newsletter,s=r.strToConcat,r.paywallType=s+"-"+n),r.sendAlways&&(i.sendAlways=!0),t&&(i.nonInteraction=!0,i.action="impressao"),["category","label","pTemplate","source","paywallType","action","label","abTest13","position"].forEach(t=>{e[t]&&(i[t]=e[t])});var s=Object.assign({},i,o,r);return s.porteiraConteudo2&&t&&a.impression(),s},setError(e,t){var{statusText:n,responseText:o,statusCode:a}=e,o={status:e.status,statusText:o||n||a||"Erro indefinido no request",compName:"piano"};window.ReportError&&window.ReportError({message:"Erro no autenticador de conta",stack:"Url service: "+e.responseURL||!1}),console.error("Heimdall error:",o)},experienceExecute({result:e}){for(const t of e.events)"setResponseVariable"===t.eventType&&d.responseVariable(t)},responseVariable({eventExecutionContext:e,eventParams:t}){e=e.experienceId;var n=t.responseVariables||{};if(window.universal_variable&&window.universal_variable.aud){var o=/(\[[^\]]+\])/g;for(const e in n){var a=n[e];o.test(a)&&(n[e]=a.replace(o,(function(e){var t=e.replace(/[\[\]]/g,"");return window.universal_variable.aud[t]?r.toSlugPublicador(window.universal_variable.aud[t]):e})))}}window[e]=n},whenAvailable:(e,t)=>{window.setTimeout((function(){window[e.experienceId]?t(e):d.whenAvailable(e,t)}),100)}},p=e=>{var t;e.params.trackingid&&(document.cookie=`p_trk_id=${e.params.trackingid};path=/;domain=.uol.com.br;`),d[e.eventName](e.params),e.params.finishDate&&!e.params.lead&&(t={finishDate:e.params.finishDate,eventCode:e.params.code,btnClicked:e.params.btnType},localStorage.setItem("gateEventData",JSON.stringify(t))),e.params.lead&&e.params.code&&(E(e.params.finishDate,e.params.code),u(e.params.code),A({offerId:"OFTLA210UN51",templateId:"OTMTF53QVHQZ",templateVariantId:"OTVUPJHJ0R765",displayMode:"inline",containerSelector:e.params.containerSelector||".porteira_piano_event"}),d.countPrint({templateId:e.params.templateId,paywallType:"investimentos-evento",containerSelector:e.params.containerSelector||".porteira_piano_event",action:"login-success"}))},h=e=>{d.experienceExecute(e),tp.setExcludedGAEvents({experienceExecute:!0,meterActive:!0,meterExpired:!0,showTemplate:!0,setResponseVariable:!0,beforeBrowserEvent:!0,startCheckout:!0,showOffer:!0,checkoutCustomEvent:!0,termSelected:!0,promoApplied:!0,promoInvalid:!0,submitPayment:!0,checkoutStateChange:!0,receiptDisplayed:!0,checkoutSuccess:!0,checkoutRestarted:!0,checkoutError:!0,checkoutClose:!0,loginRequired:!0,loginDisplayed:!0,registrationDisplayed:!0,loginSuccess:!0,registrationSuccess:!0,logout:!0})},f=e=>{},m=e=>{e&&"checkoutCompleted"==e.state&&window.location.reload()},g=()=>{},v=()=>{},b=()=>{},y=()=>{},w=()=>{},S=()=>!1,O=()=>{},j=()=>{},x=()=>{},_=e=>{d.whenAvailable(e,d.setPrint)},k=e=>{window.location.reload()},C="1137479910722123061",P=()=>document.cookie.includes("SESS"),E=(e,t)=>{var[e,n,o]=e.split("/");t="_pc_event_code="+t+";expires="+new Date(Date.UTC(o,n-1,e,23,59,59)).toUTCString()+";path=/;domain=.uol.com.br;";document.cookie=t},A=e=>{tp.offer.show(e)};var $=Object.defineProperty,D=Object.getOwnPropertyDescriptor,T=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?D(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&$(t,n,r),r};class M extends t.FrontEnvironment{constructor(){super(...arguments),this.leads=[],this.gaPropertyDictionary={economia:"economia",noticias:"noticias",tab:"noticias",educacao:"noticias",eleicoes:"noticias",splash:"entretenimento",entretenimento:"entretenimento",tvefamosos:"entretenimento",carnaval:"entretenimento"}}init(){var e;(e=>{window.tp=window.tp||[];var t="addHandler",n=window.location.search.match(/pianoSandbox/);return[["setAid",n?"IXZ8EaO9su":"ivPmBDGgpu"],["setSandbox",!!n],["setCxenseSiteId",C],["setEndpoint","https://buy.tinypass.com/api/v3"],["setUseTinypassAccounts",!1],["setUsePianoIdUserProvider",!1],["setUsePianoIdLiteUserProvider",!0],[t,"experienceExecute",h],[t,"experienceExecutionFailed",f],[t,"checkoutComplete",g],[t,"checkoutClose",m],[t,"checkoutCustomEvent",v],[t,"checkoutCancel",b],[t,"checkoutError",y],[t,"checkoutSubmitPayment",w],[t,"loginRequired",S],[t,"loginSuccess",O],[t,"meterExpired",j],[t,"meterActive",x],[t,"showTemplate",_],[t,"customEvent",p],[t,"externalCheckoutComplete",k]].forEach(e=>c(e)),window.cX=window.cX||{},window.cX.callQueue=window.cX.callQueue||[],window.cX.callQueue.push(["invoke",async()=>{window.cX.setSiteId(C);try{var e=(await fetch("https://udr.uol.com.br",{credentials:"include"}).then(e=>e.json())).uolid;e&&window.cX.addExternalId({id:e,type:"tfh"})}catch(e){}window.cX.sendPageViewEvent()}]),c(["init",e]),{loadTinypass:s}})(this.default.bind(this)).loadTinypass().then(()=>{console.log("piano :: load :: constructor :: window.tp",window.tp)}),this.central=(null==(e=null==(e=this.getConfig())?void 0:e.central)?void 0:e.slug)||"","Urban Taste"===(null==(e=null==(e=this.getConfig())?void 0:e.central)?void 0:e.title)&&(this.central="urbantaste")}setRegisterLead(e){this.leads.push(e)}async executeRegisterLeads(){for(const e of this.leads)try{await e()}catch(e){console.error("Erro ao executar callback do Register Lead",e)}}removeDeprecatedCookies(){["CSASF","CAUBR01","UOL_ID"].forEach(e=>{document.cookie.includes(e)&&this.cookieService.removeCookie(e,{domain:".uol.com.br"})})}setGAValues(){if("object"==typeof(null==(o=window.universal_variable)?void 0:o.aud)){var e,t,n=window.universal_variable.aud,{author:o,publicationDate:a="",channel:r}=n,i=["tags","abTest3","firstView"];for(const o in n)i.includes(o)||"string"!=(t=typeof(e=n[o]))&&"boolean"!=t||l(o,e);var s=/(\d{2})\/(\d{2})\/(\d{4}) (\d{2}:\d{2}:\d{2})/;s.test(a)&&c(["setContentCreated",a.replace(s,"$3-$2-$1T$4-03:00")]),r&&c(["setContentSection",r]),o&&c(["setContentAuthor",o])}}async default(){var e=(window.document.cookie.split(";").map(e=>e.split("=")).find(([e=""])=>"_ga"===e.trim())[1]||"").replace(/^([^.]+\.){2}/,""),t=new URLSearchParams(document.location.search),n=t.has("uol_app"),o=window.newsletterModule||!1,a=window.bounce_active||!1,r=this.gaPropertyDictionary[this.central]||"estacoes";l("gaProperty",r),a&&l("bounce_active",!0),n&&(l("webview",!0),t.has("iap"))&&l("iap",!0),o&&l("newsletter-module",o),r=n?"app":"web";c(["setZone",r]),window.tp.enableGACrossDomainLinking(e),window.tp.setGAClientId(e),this.setGAValues();const s=null==(o=null==(a=window.universal_variable)?void 0:a.page)?void 0:o.tagsMap;(e=(null==(r=null==(n=window.universal_variable)?void 0:n.page)?void 0:r.tags)||[]).length&&(a=e.map(e=>s[e]+` [${e}]`),c(["setTags",a]),e.includes(81891))&&l("paywall",!0),document.querySelector(".porteira_piano_event")&&this.setGateEvent(),P()&&((o=window.location.search).includes("register")&&this.executeRegisterLeads(),o.includes("event_code"))&&u(t.get("event_code"));try{if(!P())throw"Cookie SESS inexistente";var p=(await new Promise((e,t)=>{fetch("https://contentpw.uol.com.br/rest/heimdall/access",{credentials:"include"}).then(n=>{200==n.status?e(n.json()):t(n)}).catch(t)})).data;l("logged",!0),Array.isArray(p)&&(p.some(e=>"7-32"===e)?l("uol-subscriber",!0):(c(["setExternalJWT",""]),l("socialLogin",!0)))}catch(e){c(["setExternalJWT",""]),l("logged",!1),this.removeDeprecatedCookies();const{status:t,url:o}=e;t<=400||500<=t?(n=window.performance.getEntriesByType("resource").find(e=>e.name==o),d.setError(e,n)):401===t&&i()}tp.experience.init()}async setGateEvent(){var e={offerId:"OFTLA210UN51",templateId:"OTMTF53QVHQZ",displayMode:"inline",containerSelector:".porteira_piano_event"},t={action:"impressao",label:"componente-visualizado"},n=P();document.cookie.includes("_pc_event_code")?(e.templateVariantId="OTV41J0VR3L11",t.action="confirmado-cookie"):n&&((n=this.localStorageService.getData("gateEventData"))?(n=JSON.parse(n),window.localStorage.removeItem("gateEventData"),e.templateVariantId="register"===n.btnClicked?"OTV6K9II7P44A":"OTVUPJHJ0R765",t.action="register"===n.btnClicked?"register-success":"login-success",E(n.finishDate,n.eventCode),u(n.eventCode)):e.templateVariantId="OTV8GTFJCPDVL"),A(e),d.countPrint({templateId:e.templateId,containerSelector:e.containerSelector,paywallType:"investimentos-evento",action:t.action,label:t.label})}}T([Object(t.Inject)(n.CookieService)],M.prototype,"cookieService",2),T([Object(t.Inject)(n.LocalStorageService)],M.prototype,"localStorageService",2)},3100:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return O})),n.d(t,"footerLogos",(function(){return S})),n.d(t,"useFooterStore",(function(){return O}));var o,a=n(4),r=n(0),i=(t=n.n(r),n(23)),s=n(72);
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let c;t.a.util.warn;const l=e=>c=e,u=Symbol();function d(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(n=o=o||{}).direct="direct",n.patchObject="patch object",n.patchFunction="patch function",t="undefined"!=typeof window;const p="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&t,h=()=>{};function f(e,t,n,o=h){e.push(t);var a=()=>{var n=e.indexOf(t);-1<n&&(e.splice(n,1),o())};return!n&&Object(r.getCurrentScope)()&&Object(r.onScopeDispose)(a),a}function m(e,...t){e.slice().forEach(e=>{e(...t)})}const g=e=>e();function v(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const a in t){var n,o;t.hasOwnProperty(a)&&(n=t[a],d(o=e[a])&&d(n)&&e.hasOwnProperty(a)&&!Object(r.isRef)(n)&&!Object(r.isReactive)(n)?e[a]=v(o,n):e[a]=n)}return e}Symbol();const b=new WeakMap,y=Object.assign;function w(e,t,n={},a,i,s){let c;const u=y({actions:{}},n),d={deep:!0};let w,S,O,j=[],x=[];var _=a.state.value[e],k=(s||_||Object(r.set)(a.state.value,e,{}),Object(r.ref)({}));let C;function P(t){let n;w=S=!1,n="function"==typeof t?(t(a.state.value[e]),{type:o.patchFunction,storeId:e,events:O}):(v(a.state.value[e],t),{type:o.patchObject,payload:t,storeId:e,events:O});const i=C=Symbol();Object(r.nextTick)().then(()=>{C===i&&(w=!0)}),S=!0,m(j,n,a.state.value[e])}var E=s?function(){var e=n.state;const t=e?e():{};this.$patch(e=>{y(e,t)})}:h;function A(t,n){return function(){l(a);var o=Array.from(arguments);const r=[],i=[];let s;m(x,{args:o,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:D,o)}catch(o){throw m(i,o),o}return s instanceof Promise?s.then(e=>(m(r,e),e)).catch(e=>(m(i,e),Promise.reject(e))):(m(r,s),s)}}var $;k=Object(r.markRaw)({actions:{},getters:{},state:[],hotState:k}),E={_p:a,$id:e,$onAction:f.bind(null,x),$patch:P,$reset:E,$subscribe(t,n={}){var i=f(j,t,n.detached,()=>s());const s=c.run(()=>Object(r.watch)(()=>a.state.value[e],a=>{("sync"===n.flush?S:w)&&t({storeId:e,type:o.direct,events:O},a)},y({},d,n)));return i},$dispose:function(){c.stop(),j=[],x=[],a._s.delete(e)},_r:!1};const D=Object(r.reactive)(p?y({_hmrPayload:k,_customProperties:Object(r.markRaw)(new Set)},E):E),T=(a._s.set(e,D),(a._a&&a._a.runWithContext||g)(()=>a._e.run(()=>(c=Object(r.effectScope)()).run(t))));for(const t in T){var M,R=T[t];Object(r.isRef)(R)&&($=R,!Object(r.isRef)($)||!$.effect)||Object(r.isReactive)(R)?s||(_&&($=R,!b.has($))&&(Object(r.isRef)(R)?R.value=_[t]:v(R,_[t])),Object(r.set)(a.state.value[e],t,R)):"function"==typeof R&&(M=A(t,R),Object(r.set)(T,t,M),u.actions[t]=R)}if(Object.keys(T).forEach(e=>{Object(r.set)(D,e,T[e])}),Object.defineProperty(D,"$state",{get:()=>a.state.value[e],set:e=>{P(t=>{y(t,e)})}}),p){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,y({value:D[t]},e))})}return D._r=!0,a._p.forEach(e=>{var t;p?(t=c.run(()=>e({store:D,app:a._a,pinia:a,options:u})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),y(D,t)):y(D,c.run(()=>e({store:D,app:a._a,pinia:a,options:u})))}),_&&s&&n.hydrate&&n.hydrate(D.$state,_),w=!0,S=!0,D}const S={default:{splash:i.logoSplash,universa:i.logoUniversa,"viva-bem":i.logoVivabem,ecoa:i.logoEcoa,nossa:i.logoNossa,tilt:i.logoTilt,tab:i.logoTab,"guia-de-compras":i.logoGuiaDeCompras,"canal-uol":i.logoCanaluol},prime:{splash:i.logoSplashInverted,universa:i.logoUniversaInverted,"viva-bem":i.logoVivabemInverted,ecoa:i.logoEcoaInverted,nossa:i.logoNossaInverted,tilt:i.logoTiltInverted,tab:i.logoTabInverted,"guia-de-compras":i.logoGuiaDeComprasInverted,"canal-uol":i.logoCanaluolInverted}},O=function(e,t,n){let o,a;function i(e,n){var i=!!Object(r.getCurrentInstance)();return i=((e=e||(i?Object(r.inject)(u,null):null))&&l(e),(e=c)._s.has(o)||w(o,t,a,e),e._s.get(o))}return o=e,a=void 0,i.$id=o,i}("footer",()=>{const e=Object(a.useConfigStore)().state,t={sign:Object(r.ref)({}),phone:Object(r.ref)({number:{}}),app:Object(r.ref)({}),credits:Object(r.ref)({}),socialMedia:Object(r.ref)([]),columns:Object(r.ref)([]),brands:Object(r.ref)([])},n=e=>{for(var[n,o]of Object.entries(e))n=n.replace(/-(\w)/g,(e,t)=>t.toUpperCase()),t[n]&&(t[n].value=o)};return{...t,setData:n,dispatch:async function(){var t=function(){var t;const n=e.footer||{};return{...n,socialMedia:Array.isArray(n.socialMedia)?null==(t=n.socialMedia)?void 0:t.filter((e,t)=>n.socialMedia.findIndex(t=>t.mediaName===e.mediaName)===t):[]}}(),o=await async function(){var{data:e,config:t}=await async function(){var e=O().$tools;try{return await(null==e?void 0:e.json.open("commons.uol.com.br/monaco/export/vueland.uol.com.br/vueland/modules/footer.json"))}catch(t){throw t.message="There was a problem getting footer data. "+t.message,null!=e&&e.log.error(t),t}}()||{};return{columns:function(e){e=Array.isArray(e)?e:[];var t,n=[],o=({title:e,link:t})=>({label:e,link:t});for(const r of e){var a={title:o(r),items:[]};for(const e of null==(t=r.items)?void 0:t.values())e.length&&a.items.push(e.map(o));n.push(a)}return n}(null==e?void 0:e.footerCollection),brands:Array.isArray(null==t?void 0:t.brands)?null==t?void 0:t.brands:[]}}();const a=Object(s.usePageStore)().isPrime?S.prime:S.default;n({...t,...o,brands:null==(o=null==(t=null==o?void 0:o.brands)?void 0:t.filter(({slug:e})=>Object.hasOwnProperty.call(a,e)))?void 0:o.map(({slug:e,url:t})=>({name:e,link:t,image:a[e]}))})}}})},3101:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));t=n(75);var o=n(4),a=n(20),r=n.n(a);const i=e=>`\nPromise.all([\n  caches.delete('${e}[SHELL]'),\n  caches.delete('${e}[ASSETS][FONT]'),\n  caches.delete('${e}[ASSETS][CSS]'),\n  caches.delete('${e}[ASSETS][SVG]'),\n  caches.delete('${e}[ASSETS][JS]'),\n  caches.delete('${e}[SERVICES]')\n]).catch(err => {});\n`;n=Object.defineProperty,a=Object.getOwnPropertyDescriptor;class s extends o.MixedEnvironment{constructor(){super(...arguments),this.cachePrefix="[VUELAND:v1]"}init(e){var t,n,o,a,i,s,c,l,u;this.getState("page",{prop:"pwa"})||(({loadedConfig:t,central:{title:n},portal:{title:o},pwa:a={}}=this.getConfig()||{}),({fromHome:i,uri:u,domain:s}=this.tools.request),c=i?(u.split("/")[1]||"").split("?")[0]:"",u="/"+(i?u.split("/")[1]:""),u=(a.manifest||{}).scope||u,l=(a||{}).clean,u={pathname:u,domain:s,link:"https://"+s+(a.start_url_pathname||u),config:t.replace(/\.json/,""),debug:void 0!==this.tools.request.getParams("pwaDebug"),clean:l,title:((a||{}).manifest||{}).title,centralSlug:this.stringService.toSlug(((a||{}).manifest||{})["icon-slug"]||n),portal:o,backgroundColor:"#ffffff",themeColor:"#d6001e",cachePrefix:this.cachePrefix,name:i?c:s.split(".")[0],shell:!!a.shell,revision:r()().format("YYYYMMDDHH")+""+15*((r()().minute()+7.5)/15|0)%60,forceCleanCache:null==e?void 0:e.forceCleanCache},this.setState("page","pwa",u)),null!=e&&e.loadMetatags&&this.addMetatags()}get data(){return this.getState("page",{prop:"pwa"})}register(){if("serviceWorker"in navigator){const e=this.data;window.addEventListener("load",(function(){e.clean&&navigator.serviceWorker.getRegistrations().then((function(t){for(const n of t)/https?:\/\/www\.uol\.com\.br\/?$/.test(n.scope)||n.scope!=="https://"+e.domain+e.pathname||(n.unregister(),console.log("[VUELAND-SW] Registration canceled successfully"))})),navigator.serviceWorker.register(e.pathname+"?loadComponent=JupiterPwaSw&api=true&configPath="+e.config+(e.debug?"&pwaDebug=true":""),{scope:e.pathname}).then((function(){console.log("[VUELAND-SW] Successfully registered")})).catch((function(e){console.error("[VUELAND-SW] Registration failed: ",e)}))}))}}getSwTemplate(){return(e=this.data).forceCleanCache?"// This snippet is inserted only in development mode \n"+i(e.cachePrefix):`/**\n * SW - VUELAND\n */\nimportScripts('https://storage.googleapis.com/workbox-cdn/releases/6.1.2/workbox-sw.js');\n\nworkbox.setConfig({debug:${e.debug?"true":"false"}});\nworkbox.loadModule('workbox-cacheable-response');\n\nself.addEventListener('install', (event) => {\n  self.skipWaiting();\n});\n\nconst cachePrefix = '${e.cachePrefix}';\nconst offlineLatestUrl = '${e.pathname}/?loadComponent=JupiterPwaSummaryWrapper&configPath=pwa/offline/${e.name}';\n\nself.AreaStorage = self.AreaStorage || [];\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][FONT]\`,\n    strategy: 'CacheFirst',\n    cacheExpiration: {\n      maxEntries: 30,\n      maxAgeSeconds: 2592000\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [{\n      url: /https:\\/\\/stc.uol.com\\/c\\/webfont\\/projeto-grafico\\/uollogo\\/.*$/\n    }, {\n      url: /https:\\/\\/stc.uol.com\\/c\\/webfont\\/projeto-grafico\\/uol-font\\/.*$/\n    }, {\n      url: /https:\\/\\/stc.uol.com\\/c\\/webfont\\/projeto-grafico\\/uol-icones-e-setas\\/.*$/\n    }, {\n      url: /https:\\/\\/stc.uol.com\\/c\\/webfont\\/projeto-grafico\\/v2\\/.*$/\n    }]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][CSS]\`,\n    strategy: 'StaleWhileRevalidate',\n    plugins: {\n      expiration: {\n        maxEntries: 100,\n        maxAgeSeconds: 518400,\n        purgeOnQuotaError: true\n      }\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [\n      {url: new RegExp('^https?:\\/\\/c.jsuol.com.br\\/assets\\/(.*)loadComponent\\=Media&contentType\\=css&scope\\=assets')}\n    ]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][JS]\`,\n    strategy: 'StaleWhileRevalidate',\n    plugins: {\n      expiration: {\n        maxEntries: 80,\n        maxAgeSeconds: 518400,\n        purgeOnQuotaError: true\n      }\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [\n      {url: new RegExp('^https?:\\/\\/c.jsuol.com.br\\/assets\\/(.*)loadComponent\\=Media&contentType\\=js&scope\\=assets')},\n    ]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][SVG]\`,\n    strategy: 'CacheFirst',\n    plugins: {\n      expiration: {\n        maxEntries: 10,\n        maxAgeSeconds: 518400,\n        purgeOnQuotaError: true\n      }\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [{url: new RegExp('^https?:\\/\\/c.jsuol.com.br\\/assets\\/(.*)&loadSvgs\\=')}]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[SERVICES]\`,\n    strategy: 'StaleWhileRevalidate',\n    plugins: {\n      expiration: {\n        maxEntries: 10,\n        maxAgeSeconds: 604800,\n        purgeOnQuotaError: true\n      }\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [{url: new RegExp('^https?:\\/\\/c.jsuol.com.br\\/assets\\/(.*)loadComponent\\=JupiterTeamShowcase')}]\n  }\n});\n\nself.AreaStorage.push({\n  config: {\n    cacheName: \`\${cachePrefix}[ASSETS][IMAGES]\`,\n    strategy: 'CacheFirst',\n    cacheExpiration: {\n      maxEntries: 30,\n      maxAgeSeconds: 2592000\n    }\n  },\n  cache: {\n    precache: [],\n    assets: [{\n      url: new RegExp('^https?://(conteudo\\.)?imguol\\.com(\\.br)?\\/c\\/geral\\/3d\\/2021\\/05\\/25\\/placeholder-image')\n    }]\n  }\n});\n\n${e.shell?`\nworkbox.precaching.precacheAndRoute([\n  {\n    url: offlineLatestUrl,\n    revision: "${e.revision}"\n  }\n], {offlinePage: offlineLatestUrl});\n\nconst cacheHandler = new workbox.strategies.NetworkFirst({\n  cacheName: \`\${cachePrefix}[SHELL]\`,\n  plugins: [\n    new workbox.expiration.ExpirationPlugin({\n      maxEntries: 50,\n      maxAgeSeconds: 1\n    })\n  ]\n});\n\nworkbox.routing.registerRoute(getHomePathStrategy(), args => {\n  return cacheHandler.handle(args).then(response => {\n    if(!response) {\n      return caches.match(offlineLatestUrl);\n    }\n    return response;\n  });\n});\n`:""}\n\n/**\n * Estratégia padrão para o cache.\n * https://developers.google.com/web/tools/workbox/reference-docs/v4/workbox.strategies\n *\n * Valores permitidos:\n * - CacheFirst\n * - CacheOnly\n * - NetworkFirst\n * - NetworkOnly\n * - StaleWhileRevalidate\n */\nconst DEFAULT_STRATEGY = 'StaleWhileRevalidate';\n\n/**\n* Recebe um objeto de configuração de cache e retorna a classe Plugin do workbox,\n* configurada conforme a \`cfg\` recebida.\n*\n* @param {Object} cfg\n* @returns workbox.Plugin\n*/\nconst getPluginClass = (cfg = {}) => {\n  const plugins = [];\n  for(const plugin of Object.keys(cfg)) {\n    switch(plugin) {\n      case 'expiration':\n      plugins.push(new workbox.expiration.ExpirationPlugin(Object.assign({}, cfg[plugin])));\n      break;\n    }\n  }\n  return plugins;\n};\n\nfor(const area of self.AreaStorage) {\n  const {\n    cache = undefined,\n    config = undefined,\n  } = area;\n\n  if(config === undefined) {\n    console.error(\`sw: object 'config' not defined\`);\n    continue;\n  }\n\n  if(cache === undefined) {\n    console.error(\`sw: object 'cache' not defined\`);\n    continue;\n  }\n\n  // valida se a estratégia é válida\n  if(workbox.strategies[config.strategy] === undefined) {\n    console.error(\`sw: strategy \${config.strategy} is not a valida value\`);\n    continue;\n  }\n\n  if(cache.precache instanceof Array === true && /([OFFLINE])$/.test(config.cacheName) === true) {\n    workbox.precaching.precacheAndRoute(cache.precache, {\n      offlinePage: offlineLatestUrl\n    });\n  }\n\n  const plugins = getPluginClass(config.plugins);\n\n  // https://stackoverflow.com/questions/39109789/what-limitations-apply-to-opaque-responses\n  plugins.push(new workbox.cacheableResponse.CacheableResponsePlugin({\n    statuses: [200],\n  }));\n\n  for(const asset of cache.assets) {\n    workbox.routing.registerRoute(\n      asset.url,\n      new workbox.strategies[config.strategy || DEFAULT_STRATEGY]({\n        cacheName: config.cacheName,\n        plugins\n      })\n    );\n  }\n}\n\n/**\n* Define a RegExp para match da url de home que será cacheada\n*\n* @returns RegExp\n*/\nfunction getHomePathStrategy() {\n  const {host, pathname, href} = location;\n  if(host === 'www.uol.com.br') {\n    return new RegExp(\`^https?://www.uol.com.br/\${pathname.replace(/^\\//,'')}/?$\`)\n  }\n  const match = href.match(/^https?:\\/\\/([^www].*).uol.com.br/);\n  return new RegExp(\`^https?:\\/\\/\${match[1]}.uol.com.br\\/?$\`);\n}\n\n// remove cache antigo\n`+i(e.cachePrefix);var e}getManifest(){return JSON.stringify({"//":"It is the same for all projects, this is not your project's sender ID",gcm_sender_id:"103953800507",name:this.data.title,short_name:this.data.title,icons:[{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-36.png`,sizes:"36x36",type:"image/png",density:.75,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-48.png`,sizes:"48x48",type:"image/png",density:1,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-72.png`,sizes:"72x72",type:"image/png",density:1.5,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-96.png`,sizes:"96x96",type:"image/png",density:2,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-144.png`,sizes:"144x144",type:"image/png",density:3,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-192.png`,sizes:"192x192",type:"image/png",density:4,purpose:"any maskable"},{src:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-512.png`,sizes:"512x512",type:"image/png",purpose:"any maskable"}],start_url:this.data.link+"?utm_source=pwa&utm_medium=pwa&utm_campaign="+this.data.centralSlug,scope:this.data.pathname,display:"standalone",background_color:this.data.backgroundColor,theme_color:this.data.themeColor})}addMetatags(){this.tools.appendResource().before([{tag:"link",attrs:[{key:"rel",value:"manifest"},{key:"href",value:this.data.link+"?loadComponent=JupiterPwaManifest&api=true&configPath="+this.data.config}],priority:1},{tag:"meta",attrs:[{key:"name",value:"theme-color"},{key:"content",value:"#ffffff"}],priority:1},{tag:"link",attrs:[{key:"rel",value:"icon"},{key:"href",value:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-192.png`},{key:"sizes",value:"192x192"}],priority:1},{tag:"link",attrs:[{key:"rel",value:"apple-touch-icon"},{key:"href",value:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-192.png`}],priority:1},{tag:"link",attrs:[{key:"name",value:"msapplication-square310x310logo"},{key:"content",value:`https://conteudo.imguol.com.br/pwa/icons/${this.data.centralSlug}/${this.data.centralSlug}-512.png`}],priority:1}])}}for(var c,l=[Object(o.Inject)(t.default)],u=s.prototype,d="stringService",p=void 0,h=l.length-1;0<=h;h--)(c=l[h])&&(p=c(u,d,p)||p);p&&n(u,d,p)},3102:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});
/*!
 * Jupiter - Jupiter string service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class o extends n(4).MixedEnvironment{constructor(){super(...arguments),this.alphabet=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],this.charMap={a:"A|Á|Ă|Ắ|Ặ|Ằ|Ẳ|Ẵ|Ǎ|Â|Ấ|Ậ|Ầ|Ẩ|Ẫ|Ä|Ǟ|Ȧ|Ǡ|Ạ|Ȁ|À|Ả|Ȃ|Ā|Ą|Å|Ǻ|Ḁ|Ⱥ|Ã|Ɐ|ᴀ|Α|Ά|А|á|ă|ắ|ặ|ằ|ẳ|ẵ|ǎ|â|ấ|ậ|ầ|ẩ|ẫ|ä|ǟ|ȧ|ǡ|ạ|ȁ|à|ả|ȃ|ā|ą|ᶏ|ẚ|å|ǻ|ḁ|ⱥ|ã|ɐ|ₐ|α|ά|а|ª",b:"B|Ḃ|Ḅ|Ɓ|Ḇ|Ƀ|Ƃ|ʙ|ᴃ|Β|Б|ḃ|ḅ|ɓ|ḇ|ᵬ|ᶀ|ƀ|ƃ|β|б",c:"C|Ć|Č|Ç|Ḉ|Ĉ|Ċ|Ƈ|Ȼ|Ꜿ|ᴄ|Ц|ć|č|ç|ḉ|ĉ|ɕ|ċ|ƈ|ȼ|ↄ|ꜿ|ц",d:"D|Ď|Ḑ|Ḓ|Ḋ|Ḍ|Ɗ|Ḏ|ǲ|ǅ|Đ|Ƌ|Ꝺ|ᴅ|Ð|Δ|Д|ď|ḑ|ḓ|ȡ|ḋ|ḍ|ɗ|ᶑ|ḏ|ᵭ|ᶁ|đ|ɖ|ƌ|ꝺ|ð|δ|д|∂",e:"E|É|Ĕ|Ě|Ȩ|Ḝ|Ê|Ế|Ệ|Ề|Ể|Ễ|Ḙ|Ë|Ė|Ẹ|Ȅ|È|Ẻ|Ȇ|Ē|Ḗ|Ḕ|Ɇ|Ẽ|Ḛ|Ɛ|Ǝ|ᴇ|ⱻ|Ε|Έ|Е|Э|Ę|é|ĕ|ě|ȩ|ḝ|ê|ế|ệ|ề|ể|ễ|ḙ|ë|ė|ẹ|ȅ|è|ẻ|ȇ|ē|ḗ|ḕ|ⱸ|ę|ᶒ|ɇ|ẽ|ḛ|ɛ|ᶓ|ɘ|ǝ|ₑ|ε|έ|е|э",f:"F|Ḟ|Ƒ|Ꝼ|ꜰ|Φ|Ф|ḟ|ƒ|ᵮ|ᶂ|ꝼ|φ|ф",g:"G|Ǵ|Ğ|Ǧ|Ģ|Ĝ|Ġ|Ɠ|Ḡ|Ǥ|Ᵹ|ɢ|ʛ|Γ|Г|Ґ|ǵ|ğ|ǧ|ģ|ĝ|ġ|ɠ|ḡ|ᶃ|ǥ|ᵹ|ɡ|ᵷ|γ|г|ґ",h:"H|Ḫ|Ȟ|Ḩ|Ĥ|Ⱨ|Ḧ|Ḣ|Ḥ|Ħ|ʜ|Η|Ή|Х|ḫ|ȟ|ḩ|ĥ|ⱨ|ḧ|ḣ|ḥ|ɦ|ẖ|ħ|ɥ|ʮ|ʯ|η|ή|х",i:"I|Í|Ĭ|Ǐ|Î|Ï|Ḯ|İ|Ị|Ȉ|Ì|Ỉ|Ȋ|Į|Ɨ|Ĩ|Ḭ|ɪ|Ι|Ί|Ϊ|И|І|Ī|ı|í|ĭ|ǐ|î|ï|ḯ|ị|ȉ|ì|ỉ|ȋ|ī|į|ᶖ|ɨ|ĩ|ḭ|ᴉ|ᵢ|ι|ί|ϊ|ΐ|и|і",j:"J|Ĵ|Ɉ|ᴊ|Й|ȷ|ɟ|ʄ|ǰ|ĵ|ʝ|ɉ|ⱼ|й",k:"K|Ḱ|Ǩ|Ⱪ|Ꝃ|Ḳ|Ƙ|Ḵ|Ꝁ|Ꝅ|ᴋ|Κ|К|Ķ|ḱ|ǩ|ķ|ⱪ|ꝃ|ḳ|ƙ|ḵ|ᶄ|ꝁ|ꝅ|ʞ|κ|к",l:"L|Ĺ|Ƚ|Ľ|Ļ|Ḽ|Ḷ|Ḹ|Ⱡ|Ꝉ|Ḻ|Ŀ|Ɫ|ǈ|Ł|Ꞁ|ʟ|ᴌ|Λ|Л|ĺ|ƚ|ɬ|ľ|ļ|ḽ|ȴ|ḷ|ḹ|ⱡ|ꝉ|ḻ|ŀ|ɫ|ᶅ|ɭ|ł|ꞁ|λ|л",m:"M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|ᴍ|Μ|М|ḿ|ṁ|ṃ|ɱ|ᵯ|ᶆ|ɯ|ɰ|μ|м",n:"N|Ń|Ň|Ņ|Ṋ|Ṅ|Ṇ|Ǹ|Ɲ|Ṉ|Ƞ|ǋ|Ñ|ɴ|ᴎ|Ν|Н|ń|ň|ņ|ṋ|ȵ|ṅ|ṇ|ǹ|ɲ|ṉ|ƞ|ᵰ|ᶇ|ɳ|ñ|ν|н",o:"O|Ó|Ŏ|Ǒ|Ô|Ố|Ộ|Ồ|Ổ|Ỗ|Ö|Ȫ|Ȯ|Ȱ|Ọ|Ő|Ȍ|Ò|Ỏ|Ơ|Ớ|Ợ|Ờ|Ở|Ỡ|Ȏ|Ꝋ|Ꝍ|Ō|Ṓ|Ṑ|Ɵ|Ǫ|Ǭ|Ø|Ǿ|Õ|Ṍ|Ṏ|Ȭ|Ɔ|ᴏ|ᴐ|Ο|Ό|О|ɵ|ó|ŏ|ǒ|ô|ố|ộ|ồ|ổ|ỗ|ö|ȫ|ȯ|ȱ|ọ|ő|ȍ|ò|ỏ|ơ|ớ|ợ|ờ|ở|ỡ|ȏ|ꝋ|ꝍ|ⱺ|ō|ṓ|ṑ|ǫ|ǭ|ø|ǿ|õ|ṍ|ṏ|ȭ|ɔ|ᶗ|ᴑ|ᴓ|ₒ|ο|ό|о|˚|º",p:"P|Ṕ|Ṗ|Ꝓ|Ƥ|Ꝕ|Ᵽ|Ꝑ|ᴘ|Π|П|ṕ|ṗ|ꝓ|ƥ|ᵱ|ᶈ|ꝕ|ᵽ|ꝑ|π|п",q:"Q|Ꝙ|Ꝗ|ꝙ|ʠ|ɋ|ꝗ",r:"R|Ꞃ|Ŕ|Ř|Ŗ|Ṙ|Ṛ|Ṝ|Ȑ|Ȓ|Ṟ|Ɍ|Ɽ|ʁ|ʀ|ᴙ|ᴚ|Ρ|Р|ꞃ|ŕ|ř|ŗ|ṙ|ṛ|ṝ|ȑ|ɾ|ᵳ|ȓ|ṟ|ɼ|ᵲ|ᶉ|ɍ|ɽ|ɿ|ɹ|ɻ|ɺ|ⱹ|ᵣ|ρ|р",s:"S|Ꞅ|Ś|Ṥ|Š|Ṧ|Ş|Ŝ|Ș|Ṡ|Ṣ|Ṩ|ꜱ|Σ|С|ꞅ|ſ|ẜ|ẛ|ẝ|ś|ṥ|š|ṧ|ş|ŝ|ș|ṡ|ṣ|ṩ|ʂ|ᵴ|ᶊ|ȿ|σ|ς|с",t:"T|Ꞇ|Ť|Ţ|Ṱ|Ț|Ⱦ|Ṫ|Ṭ|Ƭ|Ṯ|Ʈ|Ŧ|ᴛ|Τ|Т|ꞇ|ť|ţ|ṱ|ț|ȶ|ẗ|ⱦ|ṫ|ṭ|ƭ|ṯ|ᵵ|ƫ|ʈ|ŧ|ʇ|τ|т",u:"U|Ú|Ŭ|Ǔ|Û|Ṷ|Ü|Ǘ|Ǚ|Ǜ|Ǖ|Ṳ|Ụ|Ű|Ȕ|Ù|Ủ|Ư|Ứ|Ự|Ừ|Ử|Ữ|Ȗ|Ṻ|Ų|Ů|Ũ|Ṹ|Ṵ|ᴜ|У|Ъ|Ū|ᴝ|ú|ŭ|ǔ|û|ṷ|ü|ǘ|ǚ|ǜ|ǖ|ṳ|ụ|ű|ȕ|ù|ủ|ư|ứ|ự|ừ|ử|ữ|ȗ|ū|ṻ|ų|ᶙ|ů|ũ|ṹ|ṵ|ᵤ|у|ъ",v:"V|Ʌ|Ꝟ|Ṿ|Ʋ|Ṽ|ᴠ|В|ʌ|ⱴ|ꝟ|ṿ|ʋ|ᶌ|ⱱ|ṽ|ᵥ|в",x:"X|Ẍ|Ẋ|Χ|ẍ|ẋ|ᶍ|ₓ|χ",w:"W|Ẃ|Ŵ|Ẅ|Ẇ|Ẉ|Ẁ|Ⱳ|ᴡ|Ω|Ώ|ʍ|ẃ|ŵ|ẅ|ẇ|ẉ|ẁ|ⱳ|ẘ|ω|ώ",y:"Y|Ý|Ŷ|Ÿ|Ẏ|Ỵ|Ỳ|Ƴ|Ỷ|Ỿ|Ȳ|Ɏ|Ỹ|ʏ|Υ|Ύ|Ϋ|Ы|ʎ|ý|ŷ|ÿ|ẏ|ỵ|ỳ|ƴ|ỷ|ỿ|ȳ|ẙ|ɏ|ỹ|υ|ύ|ΰ|ϋ|ы",z:"Z|Ź|Ž|Ẑ|Ⱬ|Ż|Ẓ|Ȥ|Ẕ|Ƶ|ᴢ|Ζ|З|ź|ž|ẑ|ʑ|ⱬ|ż|ẓ|ȥ|ẕ|ᵶ|ᶎ|ʐ|ƶ|ɀ|ζ|з","(c)":"©","(r)":"®",tm:"™",sm:"℠","~":"˜","...":"…",'"':"“|”","":"#|‘|’|'"}}toSlug(e,t="-"){let n=e;for(const e in this.charMap)n=n.replace(new RegExp(this.charMap[e],"g"),e).trim();return n.replace(/\s+/g,t).replace(/-{2,}/g,t)}capFirstLetter(e){return e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}limitChar(e,t,n,o){let a=e;return(a=o?a.replace(/<\/?[a-z]?([^>]+)>?/g,""):a).substring(0,t||a.length).trim()+(a.length>t&&n?n:"")}removeSymbols(e){return e.replace(/["#$&'()*+,-./:;[\\\]_`{|}~]/g,"")}emailValidator(e){if(e){var[t,n]=e.split("@");if(t&&n&&t.length<=64&&n.length<=255&&n.split(".").some(e=>e.length<=63))return/^[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/.test(e)}return!1}parseUOLLink(e){var t=["carnaval","carros","ecoa","esporte","guia-de-compras","nossa","prime","splash","start","tilt","universa","vivabem"],n=new RegExp(`^https?://(${t.join("|")}).uol.com.br`),o=(t=new RegExp(`^https?://(www.)?uol.com.br/(${t.join("|")})`),new RegExp(`^https?://(${["economia","educacao","noticias","tab"].join("|")}).uol.com.br`));return e.replace(n,"https://www.uol.com.br/$1").replace(t,"https://www.uol.com.br/$2").replace(o,"https://$1.uol.com.br").replace(/^(.*?)(\.\w+|\/)?$/,(e,t,n)=>t+(n||"/"))}}t.default=o},36:function(e,t){var n,o,a,r=Object.create,i=Object.defineProperty,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertyDescriptor,d=e=>i(e,"__esModule",{value:!0}),p=(e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of l(t))c.call(e,o)||"default"===o||i(e,o,{get:()=>t[o],enumerable:!(n=u(t,o))||n.enumerable});return e},h=e=>p(d(i(null!=e?r(s(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),f=(e,t,n)=>new Promise((o,a)=>{var r=e=>{try{s(n.next(e))}catch(e){a(e)}},i=e=>{try{s(n.throw(e))}catch(e){a(e)}},s=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,i);s((n=n.apply(e,t)).next())}),m=(n=e=>{var t,n=Object.defineProperty,o=Object.assign,a=(n(e,"__esModule",{value:!0}),e),r={CookieService:()=>s,ValhallaPlugin:()=>i};for(t in r)n(a,t,{get:r[t],enumerable:!0});var i=class{},s=class{static getCookie(e){return(e=document.cookie.match(new RegExp(`(^| )${e}=([^;]*)`)))?e[2]:void 0}static getAllCookies(){const e={};return document.cookie.split(";").forEach(t=>{var[t,n]=t.split("=").map(e=>e.trim());e[t]=n}),e}static setCookie(e,t,n){let o=encodeURIComponent(e)+"="+encodeURIComponent(t);n&&(n.expires&&(n.expires instanceof Date?o+="; expires="+n.expires.toUTCString():((e=new Date).setTime(e.getTime()+24*n.expires*60*60*1e3),o+="; expires="+e.toUTCString())),n.path&&(o+="; path="+n.path),n.domain&&(o+="; domain="+n.domain),n.secure)&&(o+="; secure"),document.cookie=o}static removeCookie(e,t){this.setCookie(e,"",o({expires:new Date(0)},t))}}},()=>(o||n((o={exports:{}}).exports),o.exports)),g=(d(t),t),v={default:()=>y};for(a in v)i(g,a,{get:v[a],enumerable:!0});var b=h(m()),y=(p(t,h(m())),new class{constructor(){this.user={isLogged:!1,isSubscriber:!1},this.authUrl="https://contentpw.uol.com.br/rest/heimdall/person",this.contaUrl="https://conta.uol.com.br",this.commentsLoginURL="https://n.comentarios.uol.com.br/ws/v4/user/login?auto_import=true&theme_id=538",this.debugModeEnable=!1}init(){return f(this,null,(function*(){this.initConfig(),yield this.auth().then(e=>{Object.assign(this.user,e),this.setCookies()}).catch(e=>{throw this.removeCookies(),e.message="There was a problem starting valhalla. "+e.message,e}),yield this.retrieveUserCommentsToken().then(e=>{this.user.commentsToken=e}).catch(e=>{e.message="There was a problem starting valhalla. "+e.message,this.user.commentsToken="-1"})}))}initConfig(){this.isPageOnDebugMode()}login(){window.location.href=this.contaUrl+"/login?t=api-social&dest="+window.location.href}logout(){return f(this,null,(function*(){var e=yield fetch(this.contaUrl+"/logout",{method:"DELETE",credentials:"include"});if(204<e.status)throw Error("Logout error: [status]="+e.status);Object.assign(this.user,{isLogged:!1,isSubscriber:!1}),this.removeCookies()}))}getUser(){return this.user}auth(){return f(this,null,(function*(){var e=b.CookieService.getCookie("JS_SESS");if(!this.hasCookieSess(e))return this.getUser();e=yield fetch(this.authUrl,{credentials:"include"});var t=yield e.json();if(200!=(e=e.status))throw Error(`Authentication error: [status]=${e}, [message]=`+t.message);e=t.data.user,t=t.data.services;var n=((e.firstName||(null==(n=e.individual)?void 0:n.firstName)||"")+" "+(e.lastName||(null==(n=e.individual)?void 0:n.lastName)||"")).trim();return{isLogged:!0,isSubscriber:t.includes("7-32"),login:e.login,name:n,email:e.login}}))}retrieveUserCommentsToken(){return f(this,null,(function*(){var e=b.CookieService.getCookie("JS_SESS");if(!this.hasCookieSess(e))return"";var t=+(e=yield(yield fetch(this.commentsLoginURL,{credentials:"include"})).json()).code;if(200!=t)throw Error(`Comments login error: [status]=${t}, [message]=`+e.message);return null==(t=e.result)?void 0:t.token}))}setCookies(){b.CookieService.getCookie("widget-notificacao")||b.CookieService.setCookie("widget-notificacao","1",{path:"/",domain:".uol.com.br",secure:!1})}removeCookies(){b.CookieService.removeCookie("profile-user",{domain:".uol.com.br",path:"/"}),b.CookieService.removeCookie("widget-notificacao",{domain:".uol.com.br",path:"/"})}hasCookieSess(e){return!(e=null!=e&&"eos"!=e.toLowerCase())&&this.debugModeEnable&&console.info("Authentication error: cookie not defined"),e}isPageOnDebugMode(){this.debugModeEnable=null!=window.location&&window.location.search.includes("debug=true")}use(e){(e=new e).userData=this.user,this.hasOwnProperty(e.prefix)||Object.defineProperty(this,e.prefix,{value:e})}})},43:function(e,t,n){"use strict";n.r(t),n.d(t,"CookieService",(function(){return r})),n.d(t,"IndexDBService",(function(){return a})),n.d(t,"LocalStorageService",(function(){return o})),t=n(4);class o extends t.FrontEnvironmentTool{setData(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){console.error(`Error setting data to localStorage with key "${e}": `+t),console.error(t)}}setDataProp(e,t,n){try{var o=this.getData(e)||{};o[t]=n,this.setData(e,o)}catch(n){console.error(`Error setting data property "${t}" to localStorage with key "${e}": `+n),console.error(n)}}getData(e){try{var t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(t){return console.error(`Error getting data from localStorage with key "${e}": `+t),console.error(t),null}}getDataKey(e,t){try{var n=this.getData(e);return n&&void 0!==n[t]?n[t]:null}catch(n){return console.error(`Error getting data key "${t}" from localStorage with key "${e}": `+n),console.error(n),null}}}class a extends t.FrontEnvironmentTool{constructor(){super(...arguments),this.db=null}async getData(e){const t=await this.openDB();return new Promise((n,o)=>{const a=t.transaction("data","readonly").objectStore("data").get(e);a.onerror=e=>{o(e.target)},a.onsuccess=()=>{var e=a.result;n(e||null)}})}async editData(e){const t=await this.openDB();return new Promise((n,o)=>{var a=t.transaction("data","readwrite").objectStore("data").put(e);a.onerror=e=>{o(e.target)},a.onsuccess=()=>{n()}})}async addData(e){const t=await this.openDB();return new Promise((n,o)=>{var a=t.transaction("data","readwrite").objectStore("data").add(e);a.onerror=e=>{o(e.target)},a.onsuccess=()=>{n()}})}async removeData(e){const t=await this.openDB();return new Promise((n,o)=>{var a=t.transaction("data","readwrite").objectStore("data").delete(e);a.onerror=e=>{o(e.target)},a.onsuccess=()=>{n()}})}setDbName(e){this.dbName=e}async openDB(){return this.db||new Promise((e,t)=>{const n=window.indexedDB.open(this.dbName,1);n.onerror=e=>{t(e.target)},n.onsuccess=()=>{this.db=n.result,e(this.db)},n.onupgradeneeded=e=>{this.db=e.target.result,null!=(e=this.db)&&e.createObjectStore("data",{keyPath:"id"})}})}}class r extends t.FrontEnvironmentTool{getCookie(e){return(e=document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`)))?e[2]:void 0}getAllCookies(){const e={};return document.cookie.split(";").forEach(t=>{var[t,n]=t.split("=").map(e=>e.trim());e[t]=n}),e}setCookie(e,t,n){let o=encodeURIComponent(e)+"="+encodeURIComponent(t);n&&(n.expires&&(n.expires instanceof Date?o+="; expires="+n.expires.toUTCString():((e=new Date).setTime(e.getTime()+24*n.expires*60*60*1e3),o+="; expires="+e.toUTCString())),n.path&&(o+="; path="+n.path),n.domain&&(o+="; domain="+n.domain),n.secure)&&(o+="; secure"),document.cookie=o}removeCookie(e,t){this.setCookie(e,"",{expires:-1,...t})}}},72:function(e,t,n){"use strict";n.r(t),n.d(t,"LiveService",(function(){return i})),n.d(t,"NewsService",(function(){return r})),n.d(t,"Olympics2024Service",(function(){return s}));var o=n(4),a=n(117);n.d(t,"useLiveStore",(function(){return a.b})),n.d(t,"useNewsStore",(function(){return a.a})),n.d(t,"usePageStore",(function(){return a.c})),n(20);class r extends o.BackEnvironment{}class i extends o.BackEnvironment{}class s extends o.BackEnvironment{}},75:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));
/*!
 * Jupiter - Jupiter string service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class o extends n(4).MixedEnvironment{constructor(){super(...arguments),this.alphabet=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],this.charMap={a:"A|Á|Ă|Ắ|Ặ|Ằ|Ẳ|Ẵ|Ǎ|Â|Ấ|Ậ|Ầ|Ẩ|Ẫ|Ä|Ǟ|Ȧ|Ǡ|Ạ|Ȁ|À|Ả|Ȃ|Ā|Ą|Å|Ǻ|Ḁ|Ⱥ|Ã|Ɐ|ᴀ|Α|Ά|А|á|ă|ắ|ặ|ằ|ẳ|ẵ|ǎ|â|ấ|ậ|ầ|ẩ|ẫ|ä|ǟ|ȧ|ǡ|ạ|ȁ|à|ả|ȃ|ā|ą|ᶏ|ẚ|å|ǻ|ḁ|ⱥ|ã|ɐ|ₐ|α|ά|а|ª",b:"B|Ḃ|Ḅ|Ɓ|Ḇ|Ƀ|Ƃ|ʙ|ᴃ|Β|Б|ḃ|ḅ|ɓ|ḇ|ᵬ|ᶀ|ƀ|ƃ|β|б",c:"C|Ć|Č|Ç|Ḉ|Ĉ|Ċ|Ƈ|Ȼ|Ꜿ|ᴄ|Ц|ć|č|ç|ḉ|ĉ|ɕ|ċ|ƈ|ȼ|ↄ|ꜿ|ц",d:"D|Ď|Ḑ|Ḓ|Ḋ|Ḍ|Ɗ|Ḏ|ǲ|ǅ|Đ|Ƌ|Ꝺ|ᴅ|Ð|Δ|Д|ď|ḑ|ḓ|ȡ|ḋ|ḍ|ɗ|ᶑ|ḏ|ᵭ|ᶁ|đ|ɖ|ƌ|ꝺ|ð|δ|д|∂",e:"E|É|Ĕ|Ě|Ȩ|Ḝ|Ê|Ế|Ệ|Ề|Ể|Ễ|Ḙ|Ë|Ė|Ẹ|Ȅ|È|Ẻ|Ȇ|Ē|Ḗ|Ḕ|Ɇ|Ẽ|Ḛ|Ɛ|Ǝ|ᴇ|ⱻ|Ε|Έ|Е|Э|Ę|é|ĕ|ě|ȩ|ḝ|ê|ế|ệ|ề|ể|ễ|ḙ|ë|ė|ẹ|ȅ|è|ẻ|ȇ|ē|ḗ|ḕ|ⱸ|ę|ᶒ|ɇ|ẽ|ḛ|ɛ|ᶓ|ɘ|ǝ|ₑ|ε|έ|е|э",f:"F|Ḟ|Ƒ|Ꝼ|ꜰ|Φ|Ф|ḟ|ƒ|ᵮ|ᶂ|ꝼ|φ|ф",g:"G|Ǵ|Ğ|Ǧ|Ģ|Ĝ|Ġ|Ɠ|Ḡ|Ǥ|Ᵹ|ɢ|ʛ|Γ|Г|Ґ|ǵ|ğ|ǧ|ģ|ĝ|ġ|ɠ|ḡ|ᶃ|ǥ|ᵹ|ɡ|ᵷ|γ|г|ґ",h:"H|Ḫ|Ȟ|Ḩ|Ĥ|Ⱨ|Ḧ|Ḣ|Ḥ|Ħ|ʜ|Η|Ή|Х|ḫ|ȟ|ḩ|ĥ|ⱨ|ḧ|ḣ|ḥ|ɦ|ẖ|ħ|ɥ|ʮ|ʯ|η|ή|х",i:"I|Í|Ĭ|Ǐ|Î|Ï|Ḯ|İ|Ị|Ȉ|Ì|Ỉ|Ȋ|Į|Ɨ|Ĩ|Ḭ|ɪ|Ι|Ί|Ϊ|И|І|Ī|ı|í|ĭ|ǐ|î|ï|ḯ|ị|ȉ|ì|ỉ|ȋ|ī|į|ᶖ|ɨ|ĩ|ḭ|ᴉ|ᵢ|ι|ί|ϊ|ΐ|и|і",j:"J|Ĵ|Ɉ|ᴊ|Й|ȷ|ɟ|ʄ|ǰ|ĵ|ʝ|ɉ|ⱼ|й",k:"K|Ḱ|Ǩ|Ⱪ|Ꝃ|Ḳ|Ƙ|Ḵ|Ꝁ|Ꝅ|ᴋ|Κ|К|Ķ|ḱ|ǩ|ķ|ⱪ|ꝃ|ḳ|ƙ|ḵ|ᶄ|ꝁ|ꝅ|ʞ|κ|к",l:"L|Ĺ|Ƚ|Ľ|Ļ|Ḽ|Ḷ|Ḹ|Ⱡ|Ꝉ|Ḻ|Ŀ|Ɫ|ǈ|Ł|Ꞁ|ʟ|ᴌ|Λ|Л|ĺ|ƚ|ɬ|ľ|ļ|ḽ|ȴ|ḷ|ḹ|ⱡ|ꝉ|ḻ|ŀ|ɫ|ᶅ|ɭ|ł|ꞁ|λ|л",m:"M|Ḿ|Ṁ|Ṃ|Ɱ|Ɯ|ᴍ|Μ|М|ḿ|ṁ|ṃ|ɱ|ᵯ|ᶆ|ɯ|ɰ|μ|м",n:"N|Ń|Ň|Ņ|Ṋ|Ṅ|Ṇ|Ǹ|Ɲ|Ṉ|Ƞ|ǋ|Ñ|ɴ|ᴎ|Ν|Н|ń|ň|ņ|ṋ|ȵ|ṅ|ṇ|ǹ|ɲ|ṉ|ƞ|ᵰ|ᶇ|ɳ|ñ|ν|н",o:"O|Ó|Ŏ|Ǒ|Ô|Ố|Ộ|Ồ|Ổ|Ỗ|Ö|Ȫ|Ȯ|Ȱ|Ọ|Ő|Ȍ|Ò|Ỏ|Ơ|Ớ|Ợ|Ờ|Ở|Ỡ|Ȏ|Ꝋ|Ꝍ|Ō|Ṓ|Ṑ|Ɵ|Ǫ|Ǭ|Ø|Ǿ|Õ|Ṍ|Ṏ|Ȭ|Ɔ|ᴏ|ᴐ|Ο|Ό|О|ɵ|ó|ŏ|ǒ|ô|ố|ộ|ồ|ổ|ỗ|ö|ȫ|ȯ|ȱ|ọ|ő|ȍ|ò|ỏ|ơ|ớ|ợ|ờ|ở|ỡ|ȏ|ꝋ|ꝍ|ⱺ|ō|ṓ|ṑ|ǫ|ǭ|ø|ǿ|õ|ṍ|ṏ|ȭ|ɔ|ᶗ|ᴑ|ᴓ|ₒ|ο|ό|о|˚|º",p:"P|Ṕ|Ṗ|Ꝓ|Ƥ|Ꝕ|Ᵽ|Ꝑ|ᴘ|Π|П|ṕ|ṗ|ꝓ|ƥ|ᵱ|ᶈ|ꝕ|ᵽ|ꝑ|π|п",q:"Q|Ꝙ|Ꝗ|ꝙ|ʠ|ɋ|ꝗ",r:"R|Ꞃ|Ŕ|Ř|Ŗ|Ṙ|Ṛ|Ṝ|Ȑ|Ȓ|Ṟ|Ɍ|Ɽ|ʁ|ʀ|ᴙ|ᴚ|Ρ|Р|ꞃ|ŕ|ř|ŗ|ṙ|ṛ|ṝ|ȑ|ɾ|ᵳ|ȓ|ṟ|ɼ|ᵲ|ᶉ|ɍ|ɽ|ɿ|ɹ|ɻ|ɺ|ⱹ|ᵣ|ρ|р",s:"S|Ꞅ|Ś|Ṥ|Š|Ṧ|Ş|Ŝ|Ș|Ṡ|Ṣ|Ṩ|ꜱ|Σ|С|ꞅ|ſ|ẜ|ẛ|ẝ|ś|ṥ|š|ṧ|ş|ŝ|ș|ṡ|ṣ|ṩ|ʂ|ᵴ|ᶊ|ȿ|σ|ς|с",t:"T|Ꞇ|Ť|Ţ|Ṱ|Ț|Ⱦ|Ṫ|Ṭ|Ƭ|Ṯ|Ʈ|Ŧ|ᴛ|Τ|Т|ꞇ|ť|ţ|ṱ|ț|ȶ|ẗ|ⱦ|ṫ|ṭ|ƭ|ṯ|ᵵ|ƫ|ʈ|ŧ|ʇ|τ|т",u:"U|Ú|Ŭ|Ǔ|Û|Ṷ|Ü|Ǘ|Ǚ|Ǜ|Ǖ|Ṳ|Ụ|Ű|Ȕ|Ù|Ủ|Ư|Ứ|Ự|Ừ|Ử|Ữ|Ȗ|Ṻ|Ų|Ů|Ũ|Ṹ|Ṵ|ᴜ|У|Ъ|Ū|ᴝ|ú|ŭ|ǔ|û|ṷ|ü|ǘ|ǚ|ǜ|ǖ|ṳ|ụ|ű|ȕ|ù|ủ|ư|ứ|ự|ừ|ử|ữ|ȗ|ū|ṻ|ų|ᶙ|ů|ũ|ṹ|ṵ|ᵤ|у|ъ",v:"V|Ʌ|Ꝟ|Ṿ|Ʋ|Ṽ|ᴠ|В|ʌ|ⱴ|ꝟ|ṿ|ʋ|ᶌ|ⱱ|ṽ|ᵥ|в",x:"X|Ẍ|Ẋ|Χ|ẍ|ẋ|ᶍ|ₓ|χ",w:"W|Ẃ|Ŵ|Ẅ|Ẇ|Ẉ|Ẁ|Ⱳ|ᴡ|Ω|Ώ|ʍ|ẃ|ŵ|ẅ|ẇ|ẉ|ẁ|ⱳ|ẘ|ω|ώ",y:"Y|Ý|Ŷ|Ÿ|Ẏ|Ỵ|Ỳ|Ƴ|Ỷ|Ỿ|Ȳ|Ɏ|Ỹ|ʏ|Υ|Ύ|Ϋ|Ы|ʎ|ý|ŷ|ÿ|ẏ|ỵ|ỳ|ƴ|ỷ|ỿ|ȳ|ẙ|ɏ|ỹ|υ|ύ|ΰ|ϋ|ы",z:"Z|Ź|Ž|Ẑ|Ⱬ|Ż|Ẓ|Ȥ|Ẕ|Ƶ|ᴢ|Ζ|З|ź|ž|ẑ|ʑ|ⱬ|ż|ẓ|ȥ|ẕ|ᵶ|ᶎ|ʐ|ƶ|ɀ|ζ|з","(c)":"©","(r)":"®",tm:"™",sm:"℠","~":"˜","...":"…",'"':"“|”","":"#|‘|’|'"}}toSlug(e,t="-"){let n=e;for(const e in this.charMap)n=n.replace(new RegExp(this.charMap[e],"g"),e).trim();return n.replace(/\s+/g,t).replace(/-{2,}/g,t)}capFirstLetter(e){return e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}limitChar(e,t,n,o){let a=e;return(a=o?a.replace(/<\/?[a-z]?([^>]+)>?/g,""):a).substring(0,t||a.length).trim()+(a.length>t&&n?n:"")}removeSymbols(e){return e.replace(/["#$&'()*+,-./:;[\\\]_`{|}~]/g,"")}emailValidator(e){if(e){var[t,n]=e.split("@");if(t&&n&&t.length<=64&&n.length<=255&&n.split(".").some(e=>e.length<=63))return/^[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/.test(e)}return!1}parseUOLLink(e){var t=["carnaval","carros","ecoa","esporte","guia-de-compras","nossa","prime","splash","start","tilt","universa","vivabem"],n=new RegExp(`^https?://(${t.join("|")}).uol.com.br`),o=(t=new RegExp(`^https?://(www.)?uol.com.br/(${t.join("|")})`),new RegExp(`^https?://(${["economia","educacao","noticias","tab"].join("|")}).uol.com.br`));return e.replace(n,"https://www.uol.com.br/$1").replace(t,"https://www.uol.com.br/$2").replace(o,"https://$1.uol.com.br").replace(/^(.*?)(\.\w+|\/)?$/,(e,t,n)=>t+(n||"/"))}}},82:function(e,t,n){"use strict";n.r(t),n.d(t,"BaseUserPreferenceFragment",(function(){return f})),n.d(t,"STORAGE_KEY",(function(){return h})),n.d(t,"UserPreferenceData",(function(){return p})),n.d(t,"arrayProperties",(function(){return u})),n.d(t,"default",(function(){return y})),n.d(t,"singleProperties",(function(){return d}));t=n(4);var o=n(43),a=n(2672),r=n(15);n=n(35);const i=new t.EventEmitter;var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?c(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&s(t,n,r),r};const u=["newsletter","productIds","notificationThemes","mostViewedTags","mostAccessedArticleTypes","horoscopes","mostAccessedLotteries","stockActionsOfInterest"],d=["frequencyClassification","favoriteTeam","preferredCurrency"];class p{constructor(){this.horoscopes=[]}}const h="__vueland_user_preferences";class f extends t.FrontEnvironment{constructor(){super(...arguments),this.defaultValues=new p}getAttribute(e){let t=this.defaultValues[e];try{t=this.localStorageService.getDataKey(h,e)}catch(e){this.localStorageService.setData(h,t)}return t}setAttribute(e,t){i.emit("set",{key:e,value:t}),this.localStorageService.setDataProp(h,e,t)}async set(e){this.setAttribute(this.name,e)}}l([Object(t.Inject)(o.LocalStorageService)],f.prototype,"localStorageService",2),l([Object(t.Inject)(o.CookieService)],f.prototype,"cookieService",2);const m={"atletico-mg":{id:4,name:"Atlético-MG",slug:"atletico-mg",acronym:"CAM",icon:r.teamAtleticoMg},"atletico-go":{id:1094,name:"Atlético-GO",slug:"atletico-go",acronym:"ACG",icon:r.teamAtleticoGo},"america-mg":{id:26,name:"América-MG",slug:"america-mg",acronym:"AMG",icon:r.teamAmericaMg},athletico:{id:3,name:"Athletico",slug:"athletico",acronym:"CAP",icon:r.teamAtleticoPr},bahia:{id:30,name:"Bahia",slug:"bahia",acronym:"BAH",icon:r.teamBahia},botafogo:{id:5,name:"Botafogo",slug:"botafogo",acronym:"BOT",icon:r.teamBotafogo},"red-bull-bragantino":{id:984,name:"Red Bull Bragantino",slug:"red-bull-bragantino",acronym:"BRG",icon:r.teamBragantino},ceara:{id:33,name:"Ceará",slug:"ceara",acronym:"CEA",icon:r.teamCeara},chapecoense:{id:695,name:"Chapecoense",slug:"chapecoense",acronym:"CHA",icon:r.teamChapecoense},corinthians:{id:6,name:"Corinthians",slug:"corinthians",acronym:"COR",icon:r.teamCorinthians},coritiba:{id:7,name:"Coritiba",slug:"coritiba",acronym:"CTB",icon:r.teamCoritiba},cruzeiro:{id:9,name:"Cruzeiro",slug:"cruzeiro",acronym:"CRU",icon:r.teamCruzeiro},cuiaba:{id:185,name:"Cuiabá",slug:"cuiaba",acronym:"CUI",icon:r.teamCuiaba},flamengo:{id:1,name:"Flamengo",slug:"flamengo",acronym:"FLA",icon:r.teamFlamengo},fluminense:{id:11,name:"Fluminense",slug:"fluminense",acronym:"FLU",icon:r.teamFluminense},fortaleza:{id:35,name:"Fortaleza",slug:"fortaleza",acronym:"FOR",icon:r.teamFortaleza},goias:{id:12,name:"Goiás",slug:"goias",acronym:"GOI",icon:r.teamGoias},gremio:{id:13,name:"Grêmio",slug:"gremio",acronym:"GRE",icon:r.teamGremio},internacional:{id:15,name:"Internacional",slug:"internacional",acronym:"INT",icon:r.teamInternacional},palmeiras:{id:17,name:"Palmeiras",slug:"palmeiras",acronym:"PAL",icon:r.teamPalmeiras},santos:{id:22,name:"Santos",slug:"santos",acronym:"SAN",icon:r.teamSantos},"sao-paulo":{id:24,name:"São Paulo",slug:"sao-paulo",acronym:"SPA",icon:r.teamSaoPaulo},sport:{id:76,name:"Sport",slug:"sport",acronym:"SPT",icon:r.teamSport},vasco:{id:25,name:"Vasco",slug:"vasco",acronym:"VAS",icon:r.teamVasco},vitoria:{id:21,name:"Vitória",slug:"vitoria",acronym:"VIT",icon:r.teamVitoria},juventude:{id:16,name:"Juventude",slug:"juventude",acronym:"JUV",icon:r.teamJuventude},criciuma:{id:8,name:"Criciúma",slug:"criciuma",acronym:"CRI",icon:r.teamCriciuma}};const g={aries:{name:"Áries",slug:"aries",icon:n.signAries},touro:{name:"Touro",slug:"touro",icon:n.signTouro},gemeos:{name:"Gêmeos",slug:"gemeos",icon:n.signGemeos},cancer:{name:"Câncer",slug:"cancer",icon:n.signCancer},leao:{name:"Leão",slug:"leao",icon:n.signLeao},virgem:{name:"Virgem",slug:"virgem",icon:n.signVirgem},libra:{name:"Libra",slug:"libra",icon:n.signLibra},escorpiao:{name:"Escorpião",slug:"escorpiao",icon:n.signEscorpiao},sagitario:{name:"Sagitário",slug:"sagitario",icon:n.signSagitario},capricornio:{name:"Capricórnio",slug:"capricornio",icon:n.signCapricornio},aquario:{name:"Aquário",slug:"aquario",icon:n.signAquario},peixes:{name:"Peixes",slug:"peixes",icon:n.signPeixes}};var v=Object.defineProperty,b=Object.getOwnPropertyDescriptor;l=(e,t,n,o)=>{for(var a,r=1<o?void 0:o?b(t,n):t,i=e.length-1;0<=i;i--)(a=e[i])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&v(t,n,r),r};class y extends t.MixedEnvironment{constructor(){super(...arguments),this.defaultValues=new p}getAllAttributes(){let e=this.localStorageService.getData(h);return e||(e=this.defaultValues,this.localStorageService.setData(h,e)),e}async init(){(await Promise.allSettled([this.team.fetch(),this.sign.fetch()])).filter(e=>"rejected"===e.status).forEach(e=>console.error("Could not initialize one of the user preferences",e)),this.userStore.preferences=this.getAllAttributes(),i.on("set",({key:e,value:t})=>this.userStore.preferences={...this.getAllAttributes(),[e]:t})}}l([Object(t.Inject)(a.useUserStore)],y.prototype,"userStore",2),l([Object(t.Inject)(o.LocalStorageService)],y.prototype,"localStorageService",2),l([Object(t.Inject)(o.CookieService)],y.prototype,"cookieService",2),l([Object(t.Inject)(class extends f{constructor(){super(...arguments),this.name="favoriteTeam"}async fetch(){var e;const t=this.getAttribute(this.name),n=this.cookieService.getCookie("meuTime");var o=Object.values(m).find(({slug:e})=>e==t),a=Object.values(m).find(({id:e})=>e==n);if(n&&a)(null==o?void 0:o.slug)!==(null==a?void 0:a.slug)&&this.setAttribute(this.name,a.slug);else try{var r=(null==(e=(await(await fetch("https://udr.uol.com.br/?scopes=user-preferences",{credentials:"include"})).json()).data["user-preferences"])?void 0:e.preferencias["bloco-customizado-esporte"])||!1;r?this.set(r):this.setAttribute(this.name,"")}catch(e){console.log("error: ",e),this.setAttribute(this.name,"")}}async set(e){var t;this.setAttribute(this.name,e),null!=(t=m[e])&&t.id&&((t=new Date).setFullYear(t.getFullYear()+1),this.cookieService.setCookie("meuTime",null==(e=null==(e=m[e])?void 0:e.id)?void 0:e.toString(),{domain:".uol.com.br",path:"/",expires:t}))}getTeams(){return Object.freeze(m)}})],y.prototype,"team",2),l([Object(t.Inject)(class extends f{constructor(){super(...arguments),this.name="horoscopes"}async fetch(){var e,t=this.cookieService.getCookie("meuSigno"),n=this.getAttribute(this.name)[0];if(t)t!==n&&this.setAttribute(this.name,[t]);else try{var o=(null==(e=(await(await fetch("https://udr.uol.com.br/?scopes=user-preferences",{credentials:"include"})).json()).data["user-preferences"])?void 0:e.preferencias["bloco-customizado-mulher"])||!1;o?this.set([o]):this.setAttribute(this.name,[])}catch(e){console.log("error: ",e),this.setAttribute(this.name,[])}}async set(e){var t;this.setAttribute(this.name,e),null!=(t=g[null==e?void 0:e[0]])&&t.slug&&((t=new Date).setFullYear(t.getFullYear()+1),this.cookieService.setCookie("meuSigno",null==(e=null==(e=g[e[0]])?void 0:e.slug)?void 0:e.toString(),{domain:".uol.com.br",path:"/",expires:t}))}getSigns(){return Object.freeze(g)}})],y.prototype,"sign",2)}}]);