(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{2875:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),(t=a(4)).BackEnvironment,t.BackEnvironment,t.BackEnvironment,t.BackEnvironment,t.BackEnvironment,t.BackEnvironment,t.BackEnvironment;class n extends t.BackEnvironment{}},2895:function(e,t,a){"use strict";a.r(t),a.d(t,"BaseService",(function(){return r})),a.d(t,"LiveService",(function(){return s})),a.d(t,"NewsService",(function(){return i})),a.d(t,"Olympics2024Service",(function(){return c}));var n=a(4),o=a(58);a.d(t,"PagesType",(function(){return o.a})),a.d(t,"useLiveStore",(function(){return o.c})),a.d(t,"useNewsStore",(function(){return o.b})),a.d(t,"useOlympicsStore",(function(){return o.d})),a.d(t,"usePageStore",(function(){return o.e})),a(2875),a(19);class r extends n.BackEnvironment{}class i extends n.BackEnvironment{}class s extends n.BackEnvironment{}class c extends n.BackEnvironment{}},2897:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return n}));
/*!
 * Jupiter - Jupiter ads service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class n extends a(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 a=this.getAdsHandler();if(t.returnScript&&"string"==typeof e)return`(function(w,h){w[h] = w[h] || []; w[h].push(${"pushAds"===a?`'${e}'`:`{ id: '${e}' }`})})(window,'${a}')`;Array.isArray(window[a])?(Array.isArray(e)?e:[e]).forEach(e=>window[a].push("pushAds"===a?e:{id:e})):console.error(`window.${a} is not defined as array`)}async showSponsorSeal(e,t){const a=await this.tools.json.open("commons.uol.com.br/monaco/export/api.uol.com.br/selo-patrocinio/selo-patrocinio.json");var n=(o=e=>a["tag-scripts"].conteudo[e].split(",").filter(e=>e))("seloTags"),o=o("seloURL");return n.some(t=>e.includes(Number(t)))||o.includes(t)}}},2898:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return O})),a.d(t,"useUserStore",(function(){return j}));t=a(4);var n,o=a(37),r=a.n(o),i=(o=a(2939),o=a.n(o),a(2940)),s=(i=a.n(i),a(0));
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let c;a.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}(a=n=n||{}).direct="direct",a.patchObject="patch object",a.patchFunction="patch function",a="undefined"!=typeof window;const p="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&a,m=()=>{};function h(e,t,a,n=m){e.push(t);var o=()=>{var a=e.indexOf(t);-1<a&&(e.splice(a,1),n())};return!a&&Object(s.getCurrentScope)()&&Object(s.onScopeDispose)(o),o}function f(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,a)=>e.set(a,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){var a,n;t.hasOwnProperty(o)&&(a=t[o],d(n=e[o])&&d(a)&&e.hasOwnProperty(o)&&!Object(s.isRef)(a)&&!Object(s.isReactive)(a)?e[o]=v(n,a):e[o]=a)}return e}Symbol();const b=new WeakMap,y=Object.assign;function w(e,t,a={},o,r,i){let c;const u=y({actions:{}},a),d={deep:!0};let w,j,O,S=[],_=[];var x=o.state.value[e],k=(i||x||Object(s.set)(o.state.value,e,{}),Object(s.ref)({}));let E;function C(t){let a;w=j=!1,a="function"==typeof t?(t(o.state.value[e]),{type:n.patchFunction,storeId:e,events:O}):(v(o.state.value[e],t),{type:n.patchObject,payload:t,storeId:e,events:O});const r=E=Symbol();Object(s.nextTick)().then(()=>{E===r&&(w=!0)}),j=!0,f(S,a,o.state.value[e])}var P=i?function(){var e=a.state;const t=e?e():{};this.$patch(e=>{y(e,t)})}:m;function A(t,a){return function(){l(o);var n=Array.from(arguments);const r=[],i=[];let s;f(_,{args:n,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=a.apply(this&&this.$id===e?this:D,n)}catch(n){throw f(i,n),n}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(s.markRaw)({actions:{},getters:{},state:[],hotState:k}),P={_p:o,$id:e,$onAction:h.bind(null,_),$patch:C,$reset:P,$subscribe(t,a={}){var r=h(S,t,a.detached,()=>i());const i=c.run(()=>Object(s.watch)(()=>o.state.value[e],o=>{("sync"===a.flush?j:w)&&t({storeId:e,type:n.direct,events:O},o)},y({},d,a)));return r},$dispose:function(){c.stop(),S=[],_=[],o._s.delete(e)},_r:!1};const D=Object(s.reactive)(p?y({_hmrPayload:k,_customProperties:Object(s.markRaw)(new Set)},P):P),M=(o._s.set(e,D),(o._a&&o._a.runWithContext||g)(()=>o._e.run(()=>(c=Object(s.effectScope)()).run(t))));for(const t in M){var T,R=M[t];Object(s.isRef)(R)&&($=R,!Object(s.isRef)($)||!$.effect)||Object(s.isReactive)(R)?i||(x&&($=R,!b.has($))&&(Object(s.isRef)(R)?R.value=x[t]:v(R,x[t])),Object(s.set)(o.state.value[e],t,R)):"function"==typeof R&&(T=A(t,R),Object(s.set)(M,t,T),u.actions[t]=R)}if(Object.keys(M).forEach(e=>{Object(s.set)(D,e,M[e])}),Object.defineProperty(D,"$state",{get:()=>o.state.value[e],set:e=>{C(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})))}),x&&i&&a.hydrate&&a.hydrate(D.$state,x),w=!0,j=!0,D}const j=function(e,t,a){let n,o;function r(e,a){var r=!!Object(s.getCurrentInstance)();return r=((e=e||(r?Object(s.inject)(u,null):null))&&l(e),(e=c)._s.has(n)||w(n,t,o,e),e._s.get(n))}return n=e,o=void 0,r.$id=n,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 a=Object(s.ref)({items:[],counters:{total:0,notify:{count:0},email:{count:0,url:null,domain:null}}}),n=Object(s.ref)({});return{...t,menu:e,notifications:a,preferences:n,setUserData:function(e){Object.entries(e).forEach(([e,a])=>{Object.hasOwnProperty.call(t,e)&&(t[e].value=a)})},resetUserData:function(){Object.keys(t).forEach(e=>{t[e].value="boolean"!=typeof t[e].value&&void 0})}}});a=Object.defineProperty,Object.getOwnPropertyDescriptor;r.a.use(o.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 a=await r.a.$notify.fetch();Array.isArray(a)&&a.length&&(t.items=t.items.concat(a))}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 S,_=[Object(t.Inject)(j)],x=O.prototype,k="userStore",E=void 0,C=_.length-1;0<=C;C--)(S=_[C])&&(E=S(x,k,E)||E);E&&a(x,k,E)},3013:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return n}));
/*!
 * Jupiter - Jupiter app service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class n extends a(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))}isEmbed(){return void 0!==this.getRequest().getParams("liveEmbed")}get capabilities(){const e={comments:!1,initMetrics:this.isParamEnabled(this.getRequest().getParams("app_init_metrics"))||!1,woutAdivs:!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)}}},3017:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return T})),a.d(t,"slotsPrefix",(function(){return g})),a.d(t,"useCampaignStore",(function(){return $}));t=a(4);
/*!
 * Main exports
 */var n=a(43),o=a(19),r=a.n(o),i=a(74),s=(o=a(2897),a(2895)),c=a(0),l=(a=a.n(c),{$and:!0,$or:!0,$nor:!0});function u(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 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 a,n=t,o=0,r=e.length;o<r;o++){var i=e[o];n?(void 0!==i.p?n=n[i.p]:void 0!==i.i&&(n=n[i.i]),o==r-1&&(a=n)):a=void 0}return a}
/*!
 * ## 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,a=[];for(t in e){var n={},o=e[t];"$"==t[0]?n.test=h(e):(n.test=h("string"==typeof o||"number"==typeof o||"boolean"==typeof o?{$eq:o}:o),n.path=d(t)),a.push(n)}return a}
/*!
 * ## 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 h(e){var t,a=[];for(t in e){var n=u.comparators[t],o=e[t],r=!1;if(l[t])for(var i=[],s=(r=!0,0);s<o.length;s++){var c,d=o[s];"string"==typeof d||"number"==typeof d||"boolean"==typeof d?r=!1:c=m(d),i.push(c)}a.push({fn:n,params:r?i:o,traverse:r})}return a}
/*!
 * ## 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 f(e,t){for(var a=!0,n=0,o=t.length;n<o;n++){var r=t[n];!function(e,t){for(var a=!0,n=0;n<t.length;n++){var o=t[n],r=o.params;if(o.traverse){for(var i=[],s=0;s<r.length;s++)i.push(f(e,r[s]));r=i}1==o.fn.length?o.fn(r)||(a=!1):o.fn(e,r)||(a=!1)}return a}(r.path?p(r.path,e):e,r.test)&&(a=!1)}return a}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 a=0;a<t.length;a++)if(!~e.indexOf(t[a]))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,a=0;a<e.length;a++)e[a]&&(t=!0);return t},$nor:function(e){for(var t=!0,a=0;a<e.length;a++)e[a]&&(t=!1);return t},$and:function(e){for(var t=!0,a=0;a<e.length;a++)e[a]||(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,a){for(var n=d(e),o=t,r=a,i=0,s=n.length;i<s;i++){var c=n[i];void 0!==r?i==s-1?void 0!==c.p?r[c.p]=o:void 0!==c.i&&(r[c.i]=o):void 0!==c.p&&r[c.p]?r=r[c.p]:void 0!==c.i&&r[c.i]?r=r[c.i]:(n[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=o:void 0!==c.p?r={}:void 0!==c.i&&(r=[])}},u.prototype.test=function(e,t){for(var a=
/*!
 * helper function for setting defaults
 */
function(e,t){if(e&&t)for(var a in t)void 0===e[a]&&(e[a]=t[a]);return e}(t||{},{type:"set",spec:"subset"}),n="single"!=a.type&&[],o=0,r=(e="single"==a.type?[e]:e).length;o<r;o++){var i=e[o],s=f(i,this.stack);if("single"==a.type)n=s;else switch(a.spec){case"boolean":n.push(s);break;case"index":s&&n.push(o);break;default:s&&n.push(i)}}return n};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;a.a.util.warn;const y=e=>b=e,w=Symbol();function j(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(a=v=v||{}).direct="direct",a.patchObject="patch object",a.patchFunction="patch function",a="undefined"!=typeof window;const O="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&a,S=()=>{};function _(e,t,a,n=S){e.push(t);var o=()=>{var a=e.indexOf(t);-1<a&&(e.splice(a,1),n())};return!a&&Object(c.getCurrentScope)()&&Object(c.onScopeDispose)(o),o}function x(e,...t){e.slice().forEach(e=>{e(...t)})}const k=e=>e();function E(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,a)=>e.set(a,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){var a,n;t.hasOwnProperty(o)&&(a=t[o],j(n=e[o])&&j(a)&&e.hasOwnProperty(o)&&!Object(c.isRef)(a)&&!Object(c.isReactive)(a)?e[o]=E(n,a):e[o]=a)}return e}Symbol();const C=new WeakMap,P=Object.assign;function A(e,t,a={},n,o,r){let i;const s=P({actions:{}},a),l={deep:!0};let u,d,p,m=[],h=[];var f=n.state.value[e],g=(r||f||Object(c.set)(n.state.value,e,{}),Object(c.ref)({}));let b;function w(t){let a;u=d=!1,a="function"==typeof t?(t(n.state.value[e]),{type:v.patchFunction,storeId:e,events:p}):(E(n.state.value[e],t),{type:v.patchObject,payload:t,storeId:e,events:p});const o=b=Symbol();Object(c.nextTick)().then(()=>{b===o&&(u=!0)}),d=!0,x(m,a,n.state.value[e])}var j=r?function(){var e=a.state;const t=e?e():{};this.$patch(e=>{P(e,t)})}:S;function A(t,a){return function(){y(n);var o=Array.from(arguments);const r=[],i=[];let s;x(h,{args:o,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=a.apply(this&&this.$id===e?this:D,o)}catch(o){throw x(i,o),o}return s instanceof Promise?s.then(e=>(x(r,e),e)).catch(e=>(x(i,e),Promise.reject(e))):(x(r,s),s)}}var $;g=Object(c.markRaw)({actions:{},getters:{},state:[],hotState:g}),j={_p:n,$id:e,$onAction:_.bind(null,h),$patch:w,$reset:j,$subscribe(t,a={}){var o=_(m,t,a.detached,()=>r());const r=i.run(()=>Object(c.watch)(()=>n.state.value[e],n=>{("sync"===a.flush?d:u)&&t({storeId:e,type:v.direct,events:p},n)},P({},l,a)));return o},$dispose:function(){i.stop(),m=[],h=[],n._s.delete(e)},_r:!1};const D=Object(c.reactive)(O?P({_hmrPayload:g,_customProperties:Object(c.markRaw)(new Set)},j):j),M=(n._s.set(e,D),(n._a&&n._a.runWithContext||k)(()=>n._e.run(()=>(i=Object(c.effectScope)()).run(t))));for(const t in M){var T,R=M[t];Object(c.isRef)(R)&&($=R,!Object(c.isRef)($)||!$.effect)||Object(c.isReactive)(R)?r||(f&&($=R,!C.has($))&&(Object(c.isRef)(R)?R.value=f[t]:E(R,f[t])),Object(c.set)(n.state.value[e],t,R)):"function"==typeof R&&(T=A(t,R),Object(c.set)(M,t,T),s.actions[t]=R)}if(Object.keys(M).forEach(e=>{Object(c.set)(D,e,M[e])}),Object.defineProperty(D,"$state",{get:()=>n.state.value[e],set:e=>{w(t=>{P(t,e)})}}),O){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,P({value:D[t]},e))})}return D._r=!0,n._p.forEach(e=>{var t;O?(t=i.run(()=>e({store:D,app:n._a,pinia:n,options:s})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),P(D,t)):P(D,i.run(()=>e({store:D,app:n._a,pinia:n,options:s})))}),f&&r&&a.hydrate&&a.hydrate(D.$state,f),u=!0,d=!0,D}const $=function(e,t,a){let n,o;function r(e,a){var r=!!Object(c.getCurrentInstance)();return r=((e=e||(r?Object(c.inject)(w,null):null))&&y(e),(e=b)._s.has(n)||A(n,t,o,e),e._s.get(n))}return n=e,o=void 0,r.$id=n,r}("campaign",()=>{var e=Object(c.ref)([]);const t=Object(c.ref)({});var a=Object(c.ref)([]);const n=e=>({...e.data||{},ab:e.ab,name:e.name,withClientSideQuery:e.withClientSideQuery,fixed:e.fixed,stick:e.stick,_id:e._id,skeletonRepeat:3});return{ids:e,slots:t,tests:a,setCampaigns:e=>{t.value=Object.entries(e).reduce((e,[t,a])=>(e[t]={id:t,classes:[{stick:a.some(({stick:e})=>e),fixed:a.some(({fixed:e})=>e)},"campaign-container"],items:a.map(n)},e),{})}}});var D=Object.defineProperty,M=Object.getOwnPropertyDescriptor;a=(e,t,a,n)=>{for(var o,r=1<n?void 0:n?M(t,a):t,i=e.length-1;0<=i;i--)(o=e[i])&&(r=(n?o(t,a,r):o(r))||r);return n&&r&&D(t,a,r),r};"undefined"==typeof window||window.__vueland_campaign_pageHitsMap||(window.__vueland_campaign_pageHitsMap={});class T extends t.MixedEnvironment{constructor(){super(...arguments),this.abTestCookiePrefix="__vueland_campaign_ab_",this.storagePrefix="__vueland_campaign_schema",this.slots={},this.avaliableComponents={},this.availableSlots=[],this.defaultCampaignStorageData={hits:0,pageHits:0},this.campaignDataBasePath="commons.uol.com.br/sistemas/jupiter-campaign"}async init(e,t=[]){var a;this.availableSlots=[...this.availableSlots,...t];const n=await this.getCampaignData();t=null==(t=Object.values(n))?void 0:t.flat().map(({_id:e,ab:t,query:a})=>({ab:null==t?void 0:t.testName,_id:e,withHitCount:null==a?void 0:a.hits,withPageHitCount:null==a?void 0:a.pageHits})),this.store.tests=null==(a=null==(a=t||[])?void 0:a.filter(({ab:e})=>e))?void 0:a.map(({ab:e})=>e),this.store.ids=t.filter(({_id:e})=>e).map(({_id:e,withHitCount:t,withPageHitCount:a})=>({_id:e,withHitCount:t,withPageHitCount:a})),Object.keys(n).map(async t=>{const a=t;this.filter(n[a],e).forEach(e=>{var t=e.ifnot||{},n=this.availableSlots.includes(a),o=n?a:this.availableSlots.includes(t.slot)?t.slot:void 0;o&&(!n&&t.priority&&(e.priority=t.priority),this.push(o,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,a=this.getRequest().getLink().split("?")[0];try{var n=await this.tools.json.open(this.campaignDataBasePath.replace(/\/$/,"")+"/skins/index.json",{omitLogs:!0,logLevel:"warn"});for(const e of n.content)if(e.tag&&this.pageStore.tagsList.includes(e.tag)||e.path&&new RegExp(e.path).test(a))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`,{omitLogs:!0,logLevel:"warn"})));try{var a=await Promise.allSettled(e).then(e=>e.filter(e=>"fulfilled"===e.status).map(e=>e.value));t=a.reduce((e,{id:t,items:a})=>(e[t]=a,e),{})}catch(t){this.tools.log.error(t)}return t}parseQuery(e,t,a,n={}){var o;try{return 0<(null==(o=new u(t).test(a,n))?void 0:o.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 a,n=this.getConfig();const o=[{name:"station",data:[{name:null==(a=null==n?void 0:n.central)?void 0:a.slug}]},{name:"channel",data:[{name:null==(a=null==n?void 0:n.channel)?void 0:a.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 a,n,{start:t,end:i}=t||{},s=[],c=e;for({name:a,data:n}of o)c[a]&&Object.keys(c[a]).length&&s.push(this.parseQuery(a,c[a],n));for(const t of Object.keys(e))t.startsWith("$")&&s.push(this.parseQuery(t,{[t]:e[t]},o.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 a=t?{}:this.userPreferencesService.getAllAttributes(),n=!t&&this.localStorageService.getData(this.storagePrefix)||{},o=(e,t)=>a=>{var n=a.query||{};return!n[e]||!Object.keys(n[e]).length||"undefined"!=typeof window&&(a.withClientSideQuery=!0,this.parseQuery(e,n[e],t))};return e.filter(e=>{var t=null==(t=null==n?void 0:n[e._id])?void 0:t.hits;return o("hits",void 0!==t?[t]:[])(e)}).filter(e=>{var t=null==(t=null==n?void 0:n[e._id])?void 0:t.pageHits;return o("pageHits",void 0!==t?[t]:[])(e)}).filter(e=>{var t=[];for(const r of[...i.a,...i.c]){var n=a[r]?[{values:a[r]}]:[];t.push(o(r,n)(e))}return t.every(e=>e)})}getComponent(e){return this.avaliableComponents[e]||e}enableComponent(...e){try{for(const t of e)this.avaliableComponents[t.options.name]=t}catch(e){this.tools.log.error(e)}}addCampaign(e,t){var a;"string"!=typeof t.data.component&&(a=t.data.component.options.name,this.enableComponent(t.data.component),t.data.component=a),this.push(e,t)}push(e,t){"undefined"==typeof window&&(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})))||[],a=[];return t.some(({stick:e})=>e)&&a.push("stick"),t.some(({fixed:e})=>e)&&a.push("fixed"),{id:e,classes:a,items:t}}getCampaign(e){var t=this.getConfig().campaigns;if(!Array.isArray(t))return{};let a=t.filter(e=>g.includes(e));return(a=e?a.filter(t=>Array.isArray(e)?e.includes(t):t===e):a).reduce((e,t)=>(e[t]=this.getCampaignFromSlot(t),e),{})}clientSideInit(){var e=this.store.tests,t=this.store.ids;const a=null==(o=Object.values(this.store.slots))?void 0:o.flat(),n=(this.tools.ab.setCookiePrefix(this.abTestCookiePrefix).clear(Array.isArray(e)?e:[]),this.localStorageService.getData(this.storagePrefix)||{});var o=t.reduce((e,t)=>(e[t._id]=(null==n?void 0:n[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]&&a.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,o),"undefined"!=typeof window&&(window.$VuelandCampaignPush=(e,t,a)=>{var n=this.store.slots;g.includes(e)?(n[e]=Array.isArray(n[e])?n[e]:[],n[e].push({_id:"__vueland_campaign_render_"+(new Date).getTime(),priority:a.priority||.1,stick:!!a.stick,query:{},ifnot:{},data:{component:t.component,props:t.props}}),n[e]=n[e].sort((e,t)=>e.priority>t.priority?1:-1),this.store.setCampaigns(n)):console.error(`Slot "${e}" does not exist`)})}hit(e,t){var a=this.store.ids.find(({_id:t})=>t===e),n="hits"===t?null==a?void 0:a.withHitCount:null==a?void 0:a.withPageHitCount;a&&n&&((a=this.localStorageService.getDataKey(this.storagePrefix,e)||this.defaultCampaignStorageData)[n="hits"===t?"hits":"pageHits"]=(a[n]||0)+1,this.localStorageService.setDataProp(this.storagePrefix,e,a))}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.availableSlots.includes("header-bottom")&&this.push("header-bottom",{_id:"ads-seal",priority:1,query:{},data:{component:"JupiterAds",props:{id:"banner-120x35-area",height:56,increment:!1,rowStyle:!1}}})}}a([Object(t.Inject)(n.b)],T.prototype,"localStorageService",2),a([Object(t.Inject)(i.b)],T.prototype,"userPreferencesService",2),a([Object(t.Inject)($)],T.prototype,"store",2),a([Object(t.Inject)(s.usePageStore)],T.prototype,"pageStore",2),a([Object(t.Inject)(o.default)],T.prototype,"adsService",2)},3019:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));
/*!
 * Jupiter - Jupiter body service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class n extends a(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}}},3020:function(e,t,a){"use strict";a.d(t,"a",(function(){return S}));t=a(4);var n,o=a(73),r=a(65),i=a(0);
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let s;a.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}(a=n=n||{}).direct="direct",a.patchObject="patch object",a.patchFunction="patch function",a="undefined"!=typeof window;const d="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&a,p=()=>{};function m(e,t,a,n=p){e.push(t);var o=()=>{var a=e.indexOf(t);-1<a&&(e.splice(a,1),n())};return!a&&Object(i.getCurrentScope)()&&Object(i.onScopeDispose)(o),o}function h(e,...t){e.slice().forEach(e=>{e(...t)})}const f=e=>e();function g(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,a)=>e.set(a,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){var a,n;t.hasOwnProperty(o)&&(a=t[o],u(n=e[o])&&u(a)&&e.hasOwnProperty(o)&&!Object(i.isRef)(a)&&!Object(i.isReactive)(a)?e[o]=g(n,a):e[o]=a)}return e}Symbol();const v=new WeakMap,b=Object.assign;function y(e,t,a={},o,r,s){let l;const u=b({actions:{}},a),y={deep:!0};let w,j,O,S=[],_=[];var x=o.state.value[e],k=(s||x||Object(i.set)(o.state.value,e,{}),Object(i.ref)({}));let E;function C(t){let a;w=j=!1,a="function"==typeof t?(t(o.state.value[e]),{type:n.patchFunction,storeId:e,events:O}):(g(o.state.value[e],t),{type:n.patchObject,payload:t,storeId:e,events:O});const r=E=Symbol();Object(i.nextTick)().then(()=>{E===r&&(w=!0)}),j=!0,h(S,a,o.state.value[e])}var P=s?function(){var e=a.state;const t=e?e():{};this.$patch(e=>{b(e,t)})}:p;function A(t,a){return function(){c(o);var n=Array.from(arguments);const r=[],i=[];let s;h(_,{args:n,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{s=a.apply(this&&this.$id===e?this:D,n)}catch(n){throw h(i,n),n}return s instanceof Promise?s.then(e=>(h(r,e),e)).catch(e=>(h(i,e),Promise.reject(e))):(h(r,s),s)}}var $;k=Object(i.markRaw)({actions:{},getters:{},state:[],hotState:k}),P={_p:o,$id:e,$onAction:m.bind(null,_),$patch:C,$reset:P,$subscribe(t,a={}){var r=m(S,t,a.detached,()=>s());const s=l.run(()=>Object(i.watch)(()=>o.state.value[e],o=>{("sync"===a.flush?j:w)&&t({storeId:e,type:n.direct,events:O},o)},b({},y,a)));return r},$dispose:function(){l.stop(),S=[],_=[],o._s.delete(e)},_r:!1};const D=Object(i.reactive)(d?b({_hmrPayload:k,_customProperties:Object(i.markRaw)(new Set)},P):P),M=(o._s.set(e,D),(o._a&&o._a.runWithContext||f)(()=>o._e.run(()=>(l=Object(i.effectScope)()).run(t))));for(const t in M){var T,R=M[t];Object(i.isRef)(R)&&($=R,!Object(i.isRef)($)||!$.effect)||Object(i.isReactive)(R)?s||(x&&($=R,!v.has($))&&(Object(i.isRef)(R)?R.value=x[t]:g(R,x[t])),Object(i.set)(o.state.value[e],t,R)):"function"==typeof R&&(T=A(t,R),Object(i.set)(M,t,T),u.actions[t]=R)}if(Object.keys(M).forEach(e=>{Object(i.set)(D,e,M[e])}),Object.defineProperty(D,"$state",{get:()=>o.state.value[e],set:e=>{C(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,o._p.forEach(e=>{var t;d?(t=l.run(()=>e({store:D,app:o._a,pinia:o,options:u})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),b(D,t)):b(D,l.run(()=>e({store:D,app:o._a,pinia:o,options:u})))}),x&&s&&a.hydrate&&a.hydrate(D.$state,x),w=!0,j=!0,D}a=function(e,t,a){let n,o;function r(e,a){var r=!!Object(i.getCurrentInstance)();return r=((e=e||(r?Object(i.inject)(l,null):null))&&c(e),(e=s)._s.has(n)||y(n,t,o,e),e._s.get(n))}return n=e,o=void 0,r.$id=n,r}("menu",()=>({menu:Object(i.ref)([]),contextual:Object(i.ref)([])}));var w=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=(e,t,a,n)=>{for(var o,r=1<n?void 0:n?j(t,a):t,i=e.length-1;0<=i;i--)(o=e[i])&&(r=(n?o(t,a,r):o(r))||r);return n&&r&&w(t,a,r),r};class S 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 a=this.filter(t);try{const t=await this.getFile(e);var n,o,r=[],i=(t.vitrines||[]).filter(e=>e.id).map(e=>{var n;return{title:(null==(n=null==(n=t[e.id])?void 0:n.topo)?void 0:n.titulo)||(null==(n=(Array.isArray(t.submenu)?t.submenu:[]).find(t=>t.id===e.id))?void 0:n.titulo),link:null==(n=null==(n=t[e.id])?void 0:n.topo)?void 0:n.link,items:this.mapMenuItems((t[e.id+"-items"]||[]).filter(a)).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([n,o]of Object.entries(i))s.push(o),o.group?Number(n)+1===i.length&&r.push(s):(r.push(s),s=[]);return{key:e,items:[[...this.mapMenuItems(t.submenu.filter(a)||[],!0)]].concat(r)}}catch(t){this.tools.log.error(t)}return null}mapMenuItems(e,t=!1){return e.map(e=>{var a={slug:this.stringService.toSlug(e.titulo),link:e.link,logo:e.selectImage||e.logo};return t?a.title=e.titulo:a.label=e.titulo,e.items&&(a.items=e.items),a})}filter(e){const t={expanded:"menu-expandido",minimized:"menu-minimizado"};return a=>(a.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 a=await this.getFile("commons.uol.com.br/monaco/conteudo/geral/header/esporte.json");for(const n of Object.keys(a).filter(e=>/vitrine-\d+-items/.test(e)))if(Array.isArray(a[n])&&a[n].some(e=>t.includes(e.titulo))){for(const t of a[n])e.push({label:t.titulo,slug:this.stringService.toSlug(t.titulo),link:t.link});break}return Promise.resolve(e)}catch(a){return this.tools.log.error(a),Promise.resolve(e)}}async getMainMenuData(e){let t=[];var a=this.filter(e);try{var n=(await this.getFile(this.basePath+"/menu/ordenacao.json")).menu;const o=new Map((await Promise.allSettled(n.filter(a).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(n.filter(a).map(e=>(e.items=o.get(e["commons-path"])||[],e)))}catch(t){this.tools.log.error(t)}return t}async getContextualMenuData(){var e;let t=[];var a=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(a[e]&&Array.isArray(a[e].items)&&a[e].items.length){t=a[e].items;break}try{var n=await this.getFile("commons.uol.com.br/monaco/conteudo/jupiter/menu-contextual/data.json");const e=(null==n?void 0:n["menu-contextual-jupiter"])||{};t=Object.keys((null==n?void 0:n["menu-contextual-jupiter"])||{}).filter(e=>/item-\d+/.test(e)).map(t=>{var a;return{label:null==(a=null==e?void 0:e[t])?void 0:a.title,link:null==(a=null==e?void 0:e[t])?void 0:a.link}}).filter(({label:e,link:t})=>e&&t).splice(0,2)}catch(e){this.tools.log.error(e)}return t}}O([Object(t.Inject)(o.a)],S.prototype,"stringService",2),O([Object(t.Inject)(a)],S.prototype,"store",2)},3029:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));class n extends a(4).BackEnvironment{}},3030:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));class n extends a(4).BackEnvironment{}},3033:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));t=a(4);
/*!
 * Jupiter - Jupiter browser service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */var n=a(2891),o=a(2892),r=a(27),i=a(72);let s,c=0,l=0;class u extends t.FrontEnvironment{onScroll(){return s=s||Object(n.a)(window,"scroll").pipe(Object(o.a)(0),Object(r.a)(()=>{var e=window.pageYOffset||document.documentElement.scrollTop,t=e-c,a=(c=e<=0?0:e,window.pageXOffset||document.documentElement.scrollLeft),n=a-l;return l=a<=0?0:a,{y:{pos:e,direction:0<=t?"down":"up"},x:{pos:a,direction:0<=n?"right":"left"}}}),Object(i.a)())}}},3034:function(e,t,a){"use strict";a.d(t,"a",(function(){return T}));var n=a(55);t=a(4),a=a(43);const o={user:{impressionQuantity:0,newsQuantity:0},storageVar:"uol-user",persist:async()=>{var e=await o.get();o.updateViewsQuantity(e.newsQuantity,e.month),o.set(e)},init:async()=>{await o.whenAvailable("stcrpc"),await o.persist()},impression:()=>{if(!o.printGone)return o.user.impressionQuantity++,o.set(o.user),o.printGone=!0,o.user},updateViewsQuantity:(e,t)=>{o.user.month=(new Date).getMonth()+1,o.user.newsQuantity=!e||o.checkNewMonth(t)?1:e+1},checkNewMonth:e=>!e||e!==(new Date).getMonth()+1,get:()=>{const e=o.storageVar;return new Promise(t=>{window.stcrpc("pref",[e],e=>{if(e){var a,n=["impressionQuantity","newsQuantity","month"];for(a in e)o.user[n[a]]=parseInt(e[a])}t(o.user)})})},set:({impressionQuantity:e,newsQuantity:t,month:a})=>{var n=o.storageVar;try{window.stcrpc("pref",[n,null]),window.stcrpc("push",[n,e,t,a],()=>{})}catch(e){console.error("stcrpc error ",e)}Object.assign(window.universal_variable.aud,{impressionQuantity:e,newsQuantity:t})},whenAvailable:e=>new Promise(t=>{const a=()=>{window.setTimeout(()=>{window[e]&&window.stcReady?t(!0):a()},400)};a()})},r={unaccent(e){for(var t,a="",n=0,o=e.length;n<o;a+=-1<(t="ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž".indexOf(e.charAt(n)))?"AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz".charAt(t):e.charAt(n),n++);return a},toSlugPublicador(e){return this.unaccent(e).toLowerCase().replace(/[^a-z0-9 /&.+(-]+/g,"").replace(/\s+/g,"-").replace(/[&.+(]/g,"")}},i=()=>new Promise(e=>{var t,a=window.document.createElement("script"),[n]=(a.type="text/javascript",a.async=!0,a.src="//cdn.tinypass.com/api/tinypass.min.js",window.document.getElementsByTagName("script"));null!=(t=null==n?void 0:n.parentNode)&&t.insertBefore(a,n),a.onload=()=>e(!0)}),s=e=>{tp.push(e)},c=(e,t)=>{s(["setCustomVariable",e,t])},l=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)})},u={countClick(e){var t={category:(t=e.data?JSON.parse(e.data.replaceAll("'",'"')):e).label||"",pTemplate:t.component||"",label:t.reference||"",source:t.source||"",position:t.position||"",experienceId:t.experienceid||t.experienceId};(t=u.setComponent(t,"click")).action=e.url&&!["#","javascript:void(0)"].includes(e.url)?e.url:"clique",Object(n.metricOnClick)(t),e.url&&(window.location.href=e.url)},countPrint(e){var t,a=u.setComponent(e);t=e.containerSelector||".tp-modal",document.querySelector(t).setAttribute("data-audience-print",JSON.stringify(a))},countEvent(e){const t=u.setComponent(e);t.label=t.label.replace(/\-(2|8)0$/,""),t.sendAlways||(t.sampling=20,t.impression=1),e.containerSelector?Object(n.observe)(document.querySelector(e.containerSelector),()=>Object(n.metricOnView)(t)):window.setTimeout((function(){Object(n.metricOnView)(t)}),750)},setPrint(e){u.countEvent(e)},setComponent(e,t){var a,n=window.universal_variable.aud||{},r=window[e.experienceId]||{};t="click"!==t;const i={category:"paywall",label:"componente-visualizado",pTemplate:e.templateId};r.metricConcat&&t&&(a=n.newsletter,s=r.strToConcat,r.paywallType=s+"-"+a),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,n,r);return s.porteiraConteudo2&&t&&o.impression(),s},setError(e,t){var{statusText:a,responseText:n,statusCode:o}=e,n={status:e.status,statusText:n||a||o||"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:",n)},experienceExecute({result:e}){for(const t of e.events)"setResponseVariable"===t.eventType&&u.responseVariable(t)},responseVariable({eventExecutionContext:e,eventParams:t}){e=e.experienceId;var a=t.responseVariables||{};if(window.universal_variable&&window.universal_variable.aud){var n=/(\[[^\]]+\])/g;for(const e in a){var o=a[e];n.test(o)&&(a[e]=o.replace(n,(function(e){var t=e.replace(/[\[\]]/g,"");return window.universal_variable.aud[t]?r.toSlugPublicador(window.universal_variable.aud[t]):e})))}}window[e]=a},whenAvailable:(e,t)=>{window.setTimeout((function(){window[e.experienceId]?t(e):u.whenAvailable(e,t)}),100)}},d=e=>{var t;e.params.trackingid&&(document.cookie=`p_trk_id=${e.params.trackingid};path=/;domain=.uol.com.br;`),u[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&&(C(e.params.finishDate,e.params.code),l(e.params.code),P({offerId:"OFTLA210UN51",templateId:"OTMTF53QVHQZ",templateVariantId:"OTVUPJHJ0R765",displayMode:"inline",containerSelector:e.params.containerSelector||".porteira_piano_event"}),u.countPrint({templateId:e.params.templateId,paywallType:"investimentos-evento",containerSelector:e.params.containerSelector||".porteira_piano_event",action:"login-success"}))},p=e=>{u.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=>{},h=e=>{e&&"checkoutCompleted"==e.state&&window.location.reload()},f=()=>{},g=()=>{},v=()=>{},b=()=>{},y=()=>{},w=()=>!1,j=()=>{},O=()=>{},S=()=>{},_=e=>{u.whenAvailable(e,u.setPrint)},x=e=>{window.location.reload()},k="1137479910722123061",E=()=>{var e,t=document.cookie.split(";").filter(e=>e.includes("JS_SESS="));let a=!1;return t.length&&([e,t]=t[0].split("="),a="eos"!=t.toLowerCase()),a},C=(e,t)=>{var[e,a,n]=e.split("/");t="_pc_event_code="+t+";expires="+new Date(Date.UTC(n,a-1,e,23,59,59)).toUTCString()+";path=/;domain=.uol.com.br;";document.cookie=t},P=e=>{tp.offer.show(e)};class A{constructor(){this.authenticated=!1}async init(){try{var e=await fetch("https://contentpw.uol.com.br/rest/heimdall/person",{credentials:"include"});if(200!==e.status)throw new Error("HTTP ERROR: "+e.status);this.res=await e.json(),this.authenticated="success"===this.res.status}catch(e){console.error("Failed to request ",e)}}get authenticate(){return this.authenticated}get user(){var e;return(null==(e=null==(e=this.res)?void 0:e.data)?void 0:e.user)||{}}get userType(){return this.authenticate?this.isPaidSubscribe?"paid":"free":"logged_out"}get userEmail(){var e;return(null==(e=null==(e=null==(e=this.res)?void 0:e.data)?void 0:e.user)?void 0:e.login)||""}get userName(){var e=null==(e=null==(e=null==(e=this.res)?void 0:e.data)?void 0:e.user)?void 0:e.firstName,t=null==(t=null==(t=null==(t=this.res)?void 0:t.data)?void 0:t.user)?void 0:t.lastName;return e&&t?e+" "+t:""}get isPaidSubscribe(){var e=null==(e=null==(e=this.res)?void 0:e.data)?void 0:e.services;return!(!e||!Array.isArray(e))&&this.res.data.services.some(e=>"7-32"===e)}get services(){var e;return(null==(e=null==(e=this.res)?void 0:e.data)?void 0:e.services)||[]}}var $=Object.defineProperty,D=Object.getOwnPropertyDescriptor,M=(e,t,a,n)=>{for(var o,r=1<n?void 0:n?D(t,a):t,i=e.length-1;0<=i;i--)(o=e[i])&&(r=(n?o(t,a,r):o(r))||r);return n&&r&&$(t,a,r),r};class T 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",a=window.location.search.match(/pianoSandbox/);return[["setAid",a?"IXZ8EaO9su":"ivPmBDGgpu"],["setSandbox",!!a],["setCxenseSiteId",k],["setEndpoint","https://buy.tinypass.com/api/v3"],["setUseTinypassAccounts",!1],["setUsePianoIdUserProvider",!1],["setUsePianoIdLiteUserProvider",!0],[t,"experienceExecute",p],[t,"experienceExecutionFailed",m],[t,"checkoutComplete",f],[t,"checkoutClose",h],[t,"checkoutCustomEvent",g],[t,"checkoutCancel",v],[t,"checkoutError",b],[t,"checkoutSubmitPayment",y],[t,"loginRequired",w],[t,"loginSuccess",j],[t,"meterExpired",O],[t,"meterActive",S],[t,"showTemplate",_],[t,"customEvent",d],[t,"externalCheckoutComplete",x]].forEach(e=>s(e)),window.cX=window.cX||{},window.cX.callQueue=window.cX.callQueue||[],window.cX.callQueue.push(["invoke",async()=>{window.cX.setSiteId(k);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()}]),s(["init",e]),{loadTinypass:i}})(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==(n=window.universal_variable)?void 0:n.aud)){var e,t,a=window.universal_variable.aud,{author:n,publicationDate:o="",channel:r}=a,i=["tags","abTest3","firstView"];for(const n in a)i.includes(n)||"string"!=(t=typeof(e=a[n]))&&"boolean"!=t||c(n,e);var l=/(\d{2})\/(\d{2})\/(\d{4}) (\d{2}:\d{2}:\d{2})/;l.test(o)&&s(["setContentCreated",o.replace(l,"$3-$2-$1T$4-03:00")]),r&&s(["setContentSection",r]),n&&s(["setContentAuthor",n])}}async default(){var e=(window.document.cookie.split(";").map(e=>e.split("=")).find(([e=""])=>"_ga"===e.trim())[1]||"").replace(/^([^.]+\.){2}/,""),t=this.gaPropertyDictionary[this.central]||"estacoes",a=new URLSearchParams(document.location.search),n=a.has("uol_app"),o=a.has("iap"),r=n?"app":"web",i="flash"===a.get("uol_app"),d=window.newsletterModule||!1,p=window.bounce_active||!1;c("gaProperty",t),p&&c("bounce_active",!0),(n&&!i||o&&i)&&c("webview",!0),n&&o&&c("iap",!0),d&&c("newsletter-module",d),s(["setZone",r]),window.tp.enableGACrossDomainLinking(e),window.tp.setGAClientId(e),this.setGAValues();const m=null==(p=null==(t=window.universal_variable)?void 0:t.page)?void 0:p.tagsMap;(o=(null==(n=null==(i=window.universal_variable)?void 0:i.page)?void 0:n.tags)||[]).length&&(d=o.map(e=>m[e]+` [${e}]`),s(["setTags",d]),o.includes(81891))&&c("paywall",!0),document.querySelector(".porteira_piano_event")&&this.setGateEvent(),E()&&((r=window.location.search).includes("register")&&this.executeRegisterLeads(),r.includes("event_code"))&&l(a.get("event_code"));try{if(!E())throw"Cookie SESS inexistente";var h=new A;await h.init(),c("logged",!0),c("emailUser",h.userEmail),c("nameUser",h.userName),h.isPaidSubscribe?c("uol-subscriber",!0):(s(["setExternalJWT",""]),c("socialLogin",!0))}catch(t){s(["setExternalJWT",""]),c("logged",!1),this.removeDeprecatedCookies();const{status:a,url:n}=t;a<=400||500<=a?(e=window.performance.getEntriesByType("resource").find(e=>e.name==n),u.setError(t,e)):401!==a&&410!==a||fetch("https://conta.uol.com.br/logout",{method:"DELETE",credentials:"include"})}tp.experience.init()}async setGateEvent(){var e={offerId:"OFTLA210UN51",templateId:"OTMTF53QVHQZ",displayMode:"inline",containerSelector:".porteira_piano_event"},t={action:"impressao",label:"componente-visualizado"},a=E();document.cookie.includes("_pc_event_code")?(e.templateVariantId="OTV41J0VR3L11",t.action="confirmado-cookie"):a&&((a=this.localStorageService.getData("gateEventData"))?(a=JSON.parse(a),window.localStorage.removeItem("gateEventData"),e.templateVariantId="register"===a.btnClicked?"OTV6K9II7P44A":"OTVUPJHJ0R765",t.action="register"===a.btnClicked?"register-success":"login-success",C(a.finishDate,a.eventCode),l(a.eventCode)):e.templateVariantId="OTV8GTFJCPDVL"),P(e),u.countPrint({templateId:e.templateId,containerSelector:e.containerSelector,paywallType:"investimentos-evento",action:t.action,label:t.label})}}M([Object(t.Inject)(a.a)],T.prototype,"cookieService",2),M([Object(t.Inject)(a.b)],T.prototype,"localStorageService",2)},3035:function(e,t,a){"use strict";a.d(t,"a",(function(){return w}));var n,o=a(4),r=a(0);t=a.n(r),a=a(16);
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let i;t.a.util.warn;const s=e=>i=e,c=Symbol();function l(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(t=n=n||{}).direct="direct",t.patchObject="patch object",t.patchFunction="patch function",t="undefined"!=typeof window;const u="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&t,d=()=>{};function p(e,t,a,n=d){e.push(t);var o=()=>{var a=e.indexOf(t);-1<a&&(e.splice(a,1),n())};return!a&&Object(r.getCurrentScope)()&&Object(r.onScopeDispose)(o),o}function m(e,...t){e.slice().forEach(e=>{e(...t)})}const h=e=>e();function f(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,a)=>e.set(a,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const o in t){var a,n;t.hasOwnProperty(o)&&(a=t[o],l(n=e[o])&&l(a)&&e.hasOwnProperty(o)&&!Object(r.isRef)(a)&&!Object(r.isReactive)(a)?e[o]=f(n,a):e[o]=a)}return e}Symbol();const g=new WeakMap,v=Object.assign;function b(e,t,a={},o,i,c){let l;const b=v({actions:{}},a),y={deep:!0};let w,j,O,S=[],_=[];var x=o.state.value[e],k=(c||x||Object(r.set)(o.state.value,e,{}),Object(r.ref)({}));let E;function C(t){let a;w=j=!1,a="function"==typeof t?(t(o.state.value[e]),{type:n.patchFunction,storeId:e,events:O}):(f(o.state.value[e],t),{type:n.patchObject,payload:t,storeId:e,events:O});const i=E=Symbol();Object(r.nextTick)().then(()=>{E===i&&(w=!0)}),j=!0,m(S,a,o.state.value[e])}var P=c?function(){var e=a.state;const t=e?e():{};this.$patch(e=>{v(e,t)})}:d;function A(t,a){return function(){s(o);var n=Array.from(arguments);const r=[],i=[];let c;m(_,{args:n,name:t,store:D,after:function(e){r.push(e)},onError:function(e){i.push(e)}});try{c=a.apply(this&&this.$id===e?this:D,n)}catch(n){throw m(i,n),n}return c instanceof Promise?c.then(e=>(m(r,e),e)).catch(e=>(m(i,e),Promise.reject(e))):(m(r,c),c)}}var $;k=Object(r.markRaw)({actions:{},getters:{},state:[],hotState:k}),P={_p:o,$id:e,$onAction:p.bind(null,_),$patch:C,$reset:P,$subscribe(t,a={}){var i=p(S,t,a.detached,()=>s());const s=l.run(()=>Object(r.watch)(()=>o.state.value[e],o=>{("sync"===a.flush?j:w)&&t({storeId:e,type:n.direct,events:O},o)},v({},y,a)));return i},$dispose:function(){l.stop(),S=[],_=[],o._s.delete(e)},_r:!1};const D=Object(r.reactive)(u?v({_hmrPayload:k,_customProperties:Object(r.markRaw)(new Set)},P):P),M=(o._s.set(e,D),(o._a&&o._a.runWithContext||h)(()=>o._e.run(()=>(l=Object(r.effectScope)()).run(t))));for(const t in M){var T,R=M[t];Object(r.isRef)(R)&&($=R,!Object(r.isRef)($)||!$.effect)||Object(r.isReactive)(R)?c||(x&&($=R,!g.has($))&&(Object(r.isRef)(R)?R.value=x[t]:f(R,x[t])),Object(r.set)(o.state.value[e],t,R)):"function"==typeof R&&(T=A(t,R),Object(r.set)(M,t,T),b.actions[t]=R)}if(Object.keys(M).forEach(e=>{Object(r.set)(D,e,M[e])}),Object.defineProperty(D,"$state",{get:()=>o.state.value[e],set:e=>{C(t=>{v(t,e)})}}),u){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,v({value:D[t]},e))})}return D._r=!0,o._p.forEach(e=>{var t;u?(t=l.run(()=>e({store:D,app:o._a,pinia:o,options:b})),Object.keys(t||{}).forEach(e=>D._customProperties.add(e)),v(D,t)):v(D,l.run(()=>e({store:D,app:o._a,pinia:o,options:b})))}),x&&c&&a.hydrate&&a.hydrate(D.$state,x),w=!0,j=!0,D}const y={default:{splash:a.eb,universa:a.Db,"viva-bem":a.Nb,ecoa:a.l,nossa:a.L,tilt:a.tb,tab:a.mb,"guia-de-compras":a.y,"canal-uol":a.h},prime:{splash:a.fb,universa:a.Eb,"viva-bem":a.Ob,ecoa:a.m,nossa:a.M,tilt:a.ub,tab:a.nb,"guia-de-compras":a.z,"canal-uol":a.i},toca:{splash:a.gb,universa:a.Fb,"viva-bem":a.Pb,ecoa:a.n,nossa:a.N,tilt:a.vb,tab:a.ob,"guia-de-compras":a.A,"canal-uol":a.j}},w=function(e,t,a){let n,o;function l(e,a){var l=!!Object(r.getCurrentInstance)();return l=((e=e||(l?Object(r.inject)(c,null):null))&&s(e),(e=i)._s.has(n)||b(n,t,o,e),e._s.get(n))}return n=e,o=void 0,l.$id=n,l}("footer",()=>{const e=Object(o.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)([]),socialMediaLabel:Object(r.ref)(""),headerActive:Object(r.ref)(!0),bodyActive:Object(r.ref)(!0),footerActive:Object(r.ref)(!0)},a=e=>{for(var[a,n]of Object.entries(e))a=a.replace(/-(\w)/g,(e,t)=>t.toUpperCase()),t[a]&&(t[a].value=n)};return{...t,setData:a,dispatch:async function(){var t=function(){var t;const a=e.footer||{};return{...a,socialMedia:Array.isArray(a.socialMedia)?null==(t=a.socialMedia)?void 0:t.filter((e,t)=>a.socialMedia.findIndex(t=>t.mediaName===e.mediaName)===t):[]}}(),n=await async function(){var{data:e,config:t}=await async function(){var e=w().$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,a=[],n=({title:e,link:t})=>({label:e,link:t});for(const r of e){var o={title:n(r),items:[]};for(const e of null==(t=r.items)?void 0:t.values())e.length&&o.items.push(e.map(n));a.push(o)}return a}(null==e?void 0:e.footerCollection),brands:Array.isArray(null==t?void 0:t.brands)?null==t?void 0:t.brands:[]}}();const o=y[e.color||""]||y.default;a({...t,...n,brands:null==(n=null==(t=null==n?void 0:n.brands)?void 0:t.filter(({slug:e})=>Object.hasOwnProperty.call(o,e)))?void 0:n.map(({slug:e,url:t})=>({name:e,link:t,image:o[e]}))})}}})},3036:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));t=a(73);var n=a(4),o=a(19),r=a.n(o);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`;a=Object.defineProperty,o=Object.getOwnPropertyDescriptor;class s extends n.MixedEnvironment{constructor(){super(...arguments),this.cachePrefix="[VUELAND:v1]"}init(e){var t,a,n,o,i,s,c,l,u;this.getState("page",{prop:"pwa"})||(({loadedConfig:t,central:{title:a},portal:{title:n},pwa:o={}}=this.getConfig()||{}),({fromHome:i,uri:u,domain:s}=this.tools.request),c=i?(u.split("/")[1]||"").split("?")[0]:"",u="/"+(i?u.split("/")[1]:""),u=(o.manifest||{}).scope||u,l=(o||{}).clean,u={pathname:u,domain:s,link:"https://"+s+(o.start_url_pathname||u),config:t.replace(/\.json/,""),debug:void 0!==this.tools.request.getParams("pwaDebug"),clean:l,title:((o||{}).manifest||{}).title,centralSlug:this.stringService.toSlug(((o||{}).manifest||{})["icon-slug"]||a),portal:n,backgroundColor:"#ffffff",themeColor:"#d6001e",cachePrefix:this.cachePrefix,name:i?c:s.split(".")[0],shell:!!o.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 a of t)/https?:\/\/www\.uol\.com\.br\/?$/.test(a.scope)||a.scope!=="https://"+e.domain+e.pathname||(a.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(n.Inject)(t.a)],u=s.prototype,d="stringService",p=void 0,m=l.length-1;0<=m;m--)(c=l[m])&&(p=c(u,d,p)||p);p&&a(u,d,p)},3038:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));class n extends a(4).BackEnvironment{}},43:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return n})),t=a(4);class n 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,a){try{var n=this.getData(e)||{};n[t]=a,this.setData(e,n)}catch(a){console.error(`Error setting data property "${t}" to localStorage with key "${e}": `+a),console.error(a)}}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 a=this.getData(e);return a&&void 0!==a[t]?a[t]:null}catch(a){return console.error(`Error getting data key "${t}" from localStorage with key "${e}": `+a),console.error(a),null}}}t.FrontEnvironmentTool;class o 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,a]=t.split("=").map(e=>e.trim());e[t]=a}),e}setCookie(e,t,a){let n=encodeURIComponent(e)+"="+encodeURIComponent(t);a&&(a.expires&&(a.expires instanceof Date?n+="; expires="+a.expires.toUTCString():((e=new Date).setTime(e.getTime()+24*a.expires*60*60*1e3),n+="; expires="+e.toUTCString())),a.path&&(n+="; path="+a.path),a.domain&&(n+="; domain="+a.domain),a.secure)&&(n+="; secure"),document.cookie=n}removeCookie(e,t){this.setCookie(e,"",{expires:-1,...t})}}},58:function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return B})),a.d(t,"b",(function(){return I})),a.d(t,"c",(function(){return q})),a.d(t,"d",(function(){return Q})),a.d(t,"e",(function(){return R}));var n,o=a(0),r=a.n(o),i=a(4),s=a(2875),c=a(19),l=a.n(c);
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let u;r.a.util.warn;const d=e=>u=e,p=Symbol();function m(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}(c=n=n||{}).direct="direct",c.patchObject="patch object",c.patchFunction="patch function",r="undefined"!=typeof window;const h="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&r,f=()=>{};function g(e,t,a,n=f){e.push(t);var r=()=>{var a=e.indexOf(t);-1<a&&(e.splice(a,1),n())};return!a&&Object(o.getCurrentScope)()&&Object(o.onScopeDispose)(r),r}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,a)=>e.set(a,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){var a,n;t.hasOwnProperty(r)&&(a=t[r],m(n=e[r])&&m(a)&&e.hasOwnProperty(r)&&!Object(o.isRef)(a)&&!Object(o.isReactive)(a)?e[r]=y(n,a):e[r]=a)}return e}Symbol();const w=new WeakMap,j=Object.assign;function O(e,t,a={},r,i,s){let c;const l=j({actions:{}},a),u={deep:!0};let p,m,O,S=[],_=[];var x=r.state.value[e],k=(s||x||Object(o.set)(r.state.value,e,{}),Object(o.ref)({}));let E;function C(t){let a;p=m=!1,a="function"==typeof t?(t(r.state.value[e]),{type:n.patchFunction,storeId:e,events:O}):(y(r.state.value[e],t),{type:n.patchObject,payload:t,storeId:e,events:O});const i=E=Symbol();Object(o.nextTick)().then(()=>{E===i&&(p=!0)}),m=!0,v(S,a,r.state.value[e])}var P=s?function(){var e=a.state;const t=e?e():{};this.$patch(e=>{j(e,t)})}:f;function A(t,a){return function(){d(r);var n=Array.from(arguments);const o=[],i=[];let s;v(_,{args:n,name:t,store:D,after:function(e){o.push(e)},onError:function(e){i.push(e)}});try{s=a.apply(this&&this.$id===e?this:D,n)}catch(n){throw v(i,n),n}return s instanceof Promise?s.then(e=>(v(o,e),e)).catch(e=>(v(i,e),Promise.reject(e))):(v(o,s),s)}}var $;k=Object(o.markRaw)({actions:{},getters:{},state:[],hotState:k}),P={_p:r,$id:e,$onAction:g.bind(null,_),$patch:C,$reset:P,$subscribe(t,a={}){var i=g(S,t,a.detached,()=>s());const s=c.run(()=>Object(o.watch)(()=>r.state.value[e],o=>{("sync"===a.flush?m:p)&&t({storeId:e,type:n.direct,events:O},o)},j({},u,a)));return i},$dispose:function(){c.stop(),S=[],_=[],r._s.delete(e)},_r:!1};const D=Object(o.reactive)(h?j({_hmrPayload:k,_customProperties:Object(o.markRaw)(new Set)},P):P),M=(r._s.set(e,D),(r._a&&r._a.runWithContext||b)(()=>r._e.run(()=>(c=Object(o.effectScope)()).run(t))));for(const t in M){var T,R=M[t];Object(o.isRef)(R)&&($=R,!Object(o.isRef)($)||!$.effect)||Object(o.isReactive)(R)?s||(x&&($=R,!w.has($))&&(Object(o.isRef)(R)?R.value=x[t]:y(R,x[t])),Object(o.set)(r.state.value[e],t,R)):"function"==typeof R&&(T=A(t,R),Object(o.set)(M,t,T),l.actions[t]=R)}if(Object.keys(M).forEach(e=>{Object(o.set)(D,e,M[e])}),Object.defineProperty(D,"$state",{get:()=>r.state.value[e],set:e=>{C(t=>{j(t,e)})}}),h){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(t=>{Object.defineProperty(D,t,j({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)),j(D,t)):j(D,c.run(()=>e({store:D,app:r._a,pinia:r,options:l})))}),x&&s&&a.hydrate&&a.hydrate(D.$state,x),p=!0,m=!0,D}function S(e,t,a){let n,r;const i="function"==typeof t;function s(e,a){var s=!!Object(o.getCurrentInstance)();return s=((e=e||(s?Object(o.inject)(p,null):null))&&d(e),(e=u)._s.has(n)||(i?O(n,t,r,e):function(e,t,a){const{state:n,actions:r,getters:i}=t,s=a.state.value[e];O(e,(function(){s||Object(o.set)(a.state.value,e,n?n():{});var t=Object(o.toRefs)(a.state.value[e]);return j(t,r,Object.keys(i||{}).reduce((t,n)=>(t[n]=Object(o.markRaw)(Object(o.computed)(()=>{d(a);var t=a._s.get(e);if(t._r)return i[n].call(t,t)})),t),{}))}),t,a,0,!0)}(n,r,e)),e._s.get(n))}return"string"==typeof e?(n=e,r=i?a:t):(r=e,n=e.id),s.$id=n,s}class _ 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,a)=>{var n;return t[a]="src"===a?this.replaceImageSrc(null==(n=e.imagem)?void 0:n[a]):null==(n=e.imagem)?void 0:n[a],t},{}),srcSet:[{media:"(min-width: 320px)",sources:["image/webp","image/jpeg"].map(t=>{var a;return{type:t,src:this.replaceImageSrc(null==(a=e.imagem)?void 0:a.src)+("image/webp"===t?".webp":"")}})}]}:null}}replaceImageSrc(e){return e?e.replace(/https?:\/\/imguol.com/,"https://conteudo.imguol.com.br"):""}}class x extends _{getRelated({id:e}){return new Promise(t=>{let a=0;const n=setInterval(()=>{if(!window.cX)return 3<a?(clearInterval(n),t([])):void(a+=1);clearInterval(n),window.cX.CCE.run({widgetId:e},void 0,e=>{e=null==(e=e.response.items)?void 0:e.map(({title:e,url:t,dominantimage:a})=>this.mapItem({titulo:e,link:t,imagem:{src:a}})),t(e)})},1e3)})}}class k extends _{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 E extends _{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")}}c=Object.defineProperty,r=Object.getOwnPropertyDescriptor;class C extends _{async getRelated(e,t){return null==(e=null==(e=null==(e=await this.newsRepository.find({size:4,...e||{},fields:["titulo","imagem","url-uol"]}))?void 0:e.docs)?void 0:e.filter(e=>e["url-uol"]!==t))?void 0:e.map(e=>this.mapItem({titulo:e.titulo,link:e["url-uol"],imagem:{src:e.imagem}}))}}for(var P,A=[Object(i.Inject)(s.a)],$=C.prototype,D="newsRepository",M=void 0,T=A.length-1;0<=T;T--)(P=A[T])&&(M=P($,D,M)||M);M&&c($,D,M);const R=S("page",()=>{const e=Object(o.ref)({collection:[],others:[]});var t=Object(o.ref)({}),a=Object(o.ref)(""),n=Object(o.ref)(""),r=Object(o.ref)(""),s=Object(o.ref)(""),c=Object(o.ref)({name:"",slug:""}),l=Object(o.ref)({name:"",slug:""}),u=Object(o.ref)({name:"",slug:""}),d=Object(o.ref)({name:"",slug:""}),p=Object(o.ref)(!1),m=Object(o.ref)(!1),h=Object(o.ref)(),f=Object(o.ref)();const g=Object(o.ref)("news");var v=Object(o.ref)(),b=Object(o.ref)(""),y=Object(o.ref)(),w=Object(o.ref)(!1),j=Object(o.ref)(!0),O=Object(o.ref)(""),S=Object(o.ref)(""),_=Object(o.ref)({days:0,months:0,message:""}),P=Object(o.ref)(!0),A=Object(o.ref)(),$=Object(o.ref)(),D=Object(o.ref)({}),M=Object(o.ref)([]),T=Object(o.ref)({}),R=Object(o.ref)([]),I=Object(o.ref)({}),L=Object(o.ref)({});const V=Object(o.ref)([]);var N=Object(o.ref)(),U=Object(o.ref)(),H=Object(o.ref)(),Y=Object(o.ref)([]),F=Object(o.ref)();const z=Object(o.computed)(()=>Object.values(e.value).flat());var q=Object(o.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}}),B=Object(o.computed)(()=>J(82929));function J(e){return z.value.includes(e)}return Object(i.useDisposable)({id:a,link:n,title:r,description:s,station:c,channel:l,portal:u,hat:d,showAuthors:m,hideData:p,credits:h,contentType:f,mediaType:g,place:v,created:b,updated:y,showUpdated:w,age:_,adultContent:P,recommendation:A,alerts:D,authors:M,collection:I,column:L,comments:F,featuredEmbed:$,erratas:Y,featuredImage:N,kicker:T,related:V,seo:H,shareImage:U,shareNetworks:R,tags:e,tagsList:z,tagsMap:t,template:q,showAds:j,gameId:O,getRelatedLinks:async function(e="editorial",t={}){var a=Object(i.useGeneralStore)(),n=Object(i.useRequestStore)();a={piano:a.injectService(x),editorial:a.injectService(k),chartbeat:a.injectService(E),montecarlo:a.injectService(C)};return["piano","chartbeat","montecarlo"].includes(e)?i.isServerRendering?"montecarlo"===e?(V.value=await a[e].getRelated({...t,path:n.$helpers.getLink()}),V.value):[]:"montecarlo"===e?V.value:await a[e].getRelated({...t,path:n.$helpers.getLink()}):V.value},hasEveryTag:function(...e){return e.flat().every(e=>z.value.includes(e))},hasSomeTag:function(...e){return e.flat().some(e=>z.value.includes(e))},hasTag:J,isPrime:B,summary:S},["authorTags","authorText"])}),I=S("news",()=>({contentChunks:Object(o.ref)(),charsCount:Object(o.ref)(0),chunksCount:Object(o.ref)(0),groupsCount:Object(o.ref)(0)}));var L,V,N,U,H,Y,F,z;L={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"},V=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,N={},U=function(e){return(e=+e)+(68<e?1900:2e3)},Y=function(e){return(e=N[e])&&(e.indexOf?e:e.s.concat(e.f))},F=function(e,t){var a,n=N.meridiem;if(n){for(var o=1;o<=24;o+=1)if(-1<e.indexOf(n(o,0,t))){a=12<o;break}}else a=e===(t?"pm":"PM");return a},z={A:[s=/\d*[^-_:/,()\s\d]+/,function(e){this.afternoon=F(e,!1)}],a:[s,function(e){this.afternoon=F(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:[c=/\d\d?/,(H=function(e){return function(t){this[e]=+t}})("seconds")],ss:[c,H("seconds")],m:[c,H("minutes")],mm:[c,H("minutes")],H:[c,H("hours")],h:[c,H("hours")],HH:[c,H("hours")],hh:[c,H("hours")],D:[c,H("day")],DD:[r,H("day")],Do:[s,function(e){var t=N.ordinal,a=e.match(/\d+/);if(this.day=a[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[c,H("month")],MM:[r,H("month")],MMM:[s,function(e){var t=Y("months");if((t=(Y("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=Y("months").indexOf(e)+1)<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,H("year")],YY:[r,function(e){this.year=U(e)}],YYYY:[/\d{4}/,H("year")],Z:c=[/[+-]\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:c},l.a.extend(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(e,t,a){a.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(U=e.parseTwoDigitYear);var n=(e=t.prototype).parse;e.parse=function(e){var t=e.date,o=e.utc,r=e.args,i=(this.$u=o,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]),N=this.$locale(),!s&&u&&(N=a.Ls[u]),this.$d=function(e,t,a){try{var n,o,r,i,s,c,l,u,d,p,m,h,f,g,v,b,y;return-1<["x","X"].indexOf(t)?new Date(("X"===t?1e3:1)*e):(o=(n=function(e){var t,a;t=e,a=N&&N.formats;for(var n=(e=t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,t,n){var o=n&&n.toUpperCase();return t||a[n]||L[n]||a[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,a){return t||a.slice(1)}))}))).match(V),o=n.length,r=0;r<o;r+=1){var i=n[r],s=(c=z[i])&&c[0],c=c&&c[1];n[r]=c?{regex:s,parser:c}:i.replace(/^\[|\]$/g,"")}return function(e){for(var t,a,r,i={},s=0,c=0;s<o;s+=1){var l,u,d=n[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)&&(a=t.hours,r?a<12&&(t.hours+=12):12===a&&(t.hours=0),delete t.afternoon),i}}(t)(e)).year,r=n.month,i=n.day,s=n.hours,c=n.minutes,l=n.seconds,u=n.milliseconds,d=n.zone,p=new Date,m=i||(o||r?1:p.getDate()),h=o||p.getFullYear(),f=0,o&&!r||(f=0<r?r-1:p.getMonth()),g=s||0,v=c||0,b=l||0,y=u||0,d?new Date(Date.UTC(h,f,m,g,v,b,y+60*d.offset*1e3)):a?new Date(Date.UTC(h,f,m,g,v,b,y)):new Date(h,f,m,g,v,b,y))}catch(e){return new Date("")}}(t,i,o),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),l&&t!=this.format(i)&&(this.$d=new Date("")),N={}}else if(i instanceof Array)for(var d=i.length,p=1;p<=d;p+=1){r[1]=i[p-1];var m=a.apply(this,r);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===d&&(this.$d=new Date(""))}else n.call(this,e)}})));const q=S("live",()=>{const e=R(),t=new Map,a=new Map,n=Object(o.ref)([]),r=Object(o.ref)(null);var s=Object(o.ref)("rtlive.uol.com");const c=Object(o.ref)(),u=Object(o.ref)("");var d=Object(o.ref)(""),p=Object(o.ref)("");const m=Object(o.ref)();var h=Object(o.ref)("");const f=Object(o.ref)(10),g=Object(o.ref)(!1),v=Object(o.ref)([]);var b=Object(o.computed)(()=>n.value.find(e=>e.id===u.value));let y=[];function w(e,t){var a=l()();e=l()(e,"DD/MM/YYYY HH:mm");return t||a.isAfter(e)?"":"Ao vivo"}function j(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)c.value=void 0;else{var t=(null==e?void 0:e.url)||"";if(!e||null!=e&&e.youtubeId)c.value=e;else{let n=/\d{8}/;t&&t.includes("view/")&&(n=/\/(\d+)/g);var a=null==(a=t.match(n))?void 0:a[0];c.value={...c.value,...e,mediaId:(null==a?void 0:a.replace("/",""))||t}}}}return{socketHost:s,timeline:n,next:r,video:c,fixedPost:u,fixedCard:b,coverageStartDate:d,coverageEndDate:p,summary:m,channel:h,tagsLive:v,perPage:f,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,a,n){n=n||f.value;const o=q().$tools,r=(new Date).getTime();var i;e=(await async function(e,t){var a=`commons.uol.com.br/monaco/feed/${t}/minuto-a-minuto-colecao.json`,n=q().$tools;let o=[];try{o=(await n.json.open(a)||[]).filter(t=>(null==(t=null==(t=t.config)?void 0:t.channel)?void 0:t.id)===e)}catch(a){a.message=`There was a problem getting minute by minute data from station ${t} - `+a.message,n.log.error(a)}return o}(e,t)).map(({url:e})=>e.replace(/https?:\/\//,""));let s=[];try{s=(await Promise.allSettled(e.map(e=>o.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(j)}catch(e){e.message="There was a problem to getting cards in data.json "+e.message,o.log.error(e)}return[t,i,e=5]=[s,a,n],e=(a=i?t.findIndex(e=>e.id===i):0)+e,{cards:t.slice(a,e),next:(null==(a=null==t?void 0:t[e])?void 0:a.id)||null}},parseDate:function(e){return e?l()(e,"DD/MM/YYYY HH:mm").toISOString():""},getStatus:w,setVideo:O,setConfig:function({data:t}){var a;if(t){null!=(a=t.general)&&a.title&&(e.title=t.general.title),e.kicker.badge=w((null==(a=t.general)?void 0:a.endDate)||t.endDate,(null==(a=t.general)?void 0:a.endCoverage)||t.endCoverage),u.value=(null==(a=null==t?void 0:t.general)?void 0:a.fixedPost)||(null==t?void 0:t.fixedPost)||"";const n=t.summary||t["summary-live"];n&&(a=(a=Object.keys(n)).some(e=>/^topico-/.test(e))?a.sort().reduce((e,t)=>("title"===t?e.title=n[t]:(e.items=e.items||[],e.items.push(n[t].description)),e),{}):null,m.value=a),t.video&&O(t.video)}},updateCards:function(e=[],o={}){var i=e,s=e;for(const e of s.deleted||[])t.delete(e);o.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?a.set(s.id,!0):s.active&&a.has(s.id)&&a.delete(s.id)),o.onlyUpdate||(c=c.concat(y),y=[]);for(const e of c){const a=t.get(e.id);a?Object.entries(e).forEach(([e,t])=>{a[e]=t}):o.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(`_(${[...a.keys()].join("|")})_`);n.value=[...t.values()].filter(e=>0===a.size||!l.test(e.id)).sort(j)},initMap:function(){i.isServerRendering||n.value.forEach(e=>{t.set(e.id,e)})}}});s=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(s=l.a),r={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}},s.default.locale(r,null,!0);var B=(e=>(e.MedalBoardPage="medal-board",e.ModalityPage="modality",e.ModalitiesListPage="modalities-list",e))(B||{});function J(e,t){const a=(new Date).getTime(),n=!!(c=t)&&([c,o]=c.replace("#","").split("-").map(Number),i=(r=new Date).getDate(),o<(r=r.getMonth()+1)||o===r&&c<i);var o,r,i;const s=!!(o=t)&&([o,r]=o.replace("#","").split("-").map(Number),i=(c=new Date).getDate(),(c=c.getMonth()+1)<r||r===c&&i<o);var c=e.live;c&&!c.label&&(c.label="Ao vivo Olimpíadas Paris 2024");var u,d;e=e.cards.map(e=>{var t=(new Date).setHours(Number(e.hour),Number(e.minutes),0,0),o=new Date(t);t=o.setMinutes(o.getMinutes()+Number(e.timer));return"string"==typeof(null==e?void 0:e.competitors)&&(e.competitors=null==(o=null==e?void 0:e.competitors)?void 0:o.split(";").filter(e=>""!==e)),{...e,time:(new Date).setHours(Number(e.hour),Number(e.minutes),0,0),timeDuration:t,type:"photo",timeOff:t<=a,readmore:e.url,imageCredit:e.credito,isEarlier:n,isFuture:s}}),t=null!=t&&t.match(/#\d{2}-\d{2}-\d{4}/)?null==t?void 0:t.replace(/#(\d{2})-(\d{2})-(\d{4})/,"$3-$2-$1"):G(new Date);return u=(t=(t=l()(t).format("dddd, DD, MMMM")).split(",").map(e=>e.trim()))[0],d=t[1],t=t[2],{cards:e,dateString:u.charAt(0).toUpperCase()+u.slice(1)+`, ${d} de `+t,live:c}}function G(e,t){var a=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0");e=e.getDate().toString().padStart(2,"0");return t?e+`-${n}-`+a:a+`-${n}-`+e}const Q=S("olympics",()=>{const e=Object(o.ref)([]);var t=Object(o.ref)("");const a=Object(o.ref)([]),n=Object(o.ref)();var r=Object(o.ref)("modality");const i=Object(o.ref)("");var s=Object(o.ref)([]),c=Object(o.ref)();const l=Object(o.ref)("");var u=Object(o.ref)(),d=Object(o.computed)(()=>i.value.includes("destaque")||i.value.match(/#\d{2}-\d{2}-\d{4}/)),p=Object(o.computed)(()=>e.value.filter(f).sort(h)),m=Object(o.computed)(()=>e.value.filter(g).sort(h));function h(e,t){return t.time>e.time?-1:t.time<e.time?1:0}function f(e){return!!e.isFuture||!e.isEarlier&&!g(e)&&!e.timeOff&&(new Date).getTime()<=e.timeDuration}function g(e){return"sim"===e.check}return{cards:e,cardsHighlights:n,dateString:t,findCheck:g,findTimeOff:f,getCards:async function(e,t){e=null!=e&&e.match(/#\d{2}-\d{2}-\d{4}/)?e.replace("#","resultados-"):"resultados-"+G(new Date,!0);var a=Q().$tools;t=`commons.uol.com.br/monaco/export/esporte.uol.com.br/olimpiadas/${t}/${e}.json`;let n=[],o={};try{var r=await a.json.open(t)||[];n=r["olympics-2024-schedule-itens"],o=r.ficha["ao-vivo"]}catch(e){e.message="There was a problem getting resulst in commons - "+e.message,a.log.error(e)}return{cards:[...n],live:o}},getDataJson:async function(){var e=Q().$tools;try{var t;return(await e.json.open("commons.uol.com.br/monaco/export/api.uol.com.br/olimpiadas-2024/menu-modalidades/config.json")||[])["conteudo-olimpiadas"].map(e=>({title:e.titulo.trim(),url:e.link,image:{src:e.imagem.src,title:e.titulo.trim()}}))}catch(t){t.message="There was a problem getting minute by minute data from station  - "+t.message,e.log.error(t)}},getDataJsonPill:async function(){var e=Q().$tools,t=`http://tagpage.sys.srv.intranet/?repository=card&size=100&fields=titulo,url-uol&platform=web&format=json&sort=created:desc&sourcepath=/br/com/uol/esporte/olimpiadas/${e.request.uri.split("/").filter(Boolean)[2]}/2024/card.xml`;let n=[];try{n=function(e){return e.map(e=>({label:function(e){var t;if(e=e.match(/\d{2}-\d{2}-\d{4}/))return[e,t]=e[0].split("-"),e+"/"+t;throw new Error("Formato de string inválido")}(e.titulo),selected:!1}))}((await e.json.request(t)).docs).sort((e,t)=>{var[e,a]=e.label.split("/").map(Number),[t,n]=t.label.split("/").map(Number);return a-n||e-t})}catch(t){t.message="There was a problem getting pill data from station  - "+t.message,e.log.error(t)}a.value=n},getMedalBoardData:async function(){var e=Q().$tools;try{return await e.json.open("commons.uol.com.br/monaco/export/esporte.uol.com.br/olimpiadas/quadro-de-medalhas/data.json")}catch(t){t.message="There was a problem getting minute by minute data from station  - "+t.message,e.log.error(t)}},getModalityDataByName:async function(e){var t=Q().$tools;try{return await t.json.open(`commons.uol.com.br/monaco/export/esporte.uol.com.br/olimpiadas/${e}/data.json`)}catch(e){e.message="There was a problem getting minute by minute data from station  - "+e.message,t.log.error(e)}},hash:i,initStore:async function(){var e=await async function(){var e=Q().$tools;try{return await e.json.open("commons.uol.com.br/monaco/export/api.uol.com.br/olimpiadas-2024/menu-modalidades/config.json")}catch(t){t.message="There was a problem getting minute by minute data from station  - "+t.message,e.log.error(t)}}();n.value=function(e){const t={Atletismo:"atletismo",Badminton:"badminton",Basquete:"basquete",Boxe:"boxe",Breaking:"breaking",Canoagem:"canoagem",Ciclismo:"ciclismo","Escalada esportiva":"escalada-esportiva",Esgrima:"esgrima",Futebol:"futebol","Ginástica":"ginastica",Golfe:"golfe",Handebol:"handebol",Hipismo:"hipismo","Hóquei sobre grama":"hoquei-sobre-grama","Judô":"judo","Levantamento de peso":"levantamento-de-peso","Luta greco-romana":"luta-greco-romana","Luta livre":"luta-livre","Maratonas aquáticas":"maratonas-aquaticas","Nado artístico":"nado-artistico","Natação":"natacao","Pentatlo moderno":"pentatlo-moderno","Polo aquático":"polo-aquatico",Remo:"remo","Rúgbi de 7":"rugbi-de-7","Saltos ornamentais":"saltos-ornamentais",Skate:"skate",Surfe:"surfe",Taekwondo:"taekwondo","Tênis":"tenis","Tênis de mesa":"tenis-de-mesa","Tiro esportivo":"tiro-esportivo","Tiro com arco":"tiro-com-arco",Triatlo:"triatlo",Vela:"vela","Vôlei":"volei","Vôlei de praia":"volei-de-praia"};return e.map(e=>({title:e.modalidades.trim()||"",text:e.descricao.trim()||"",link:`https://www.uol.com.br/esporte/olimpiadas/${t[e.modalidades.trim()]}/`,image:{src:e.imagem.src.trim()||"",alt:""}}))}(e["destaques-olimpiadas"]),e=e["olimpiadas-video"]["olimpiadas-video-embed"]["video-embed"];l.value=(null==(e=e)?void 0:e.replace(/^.*\/embed\//g,"").replace(/'.*/g,""))||""},otherDays:a,setHash:function(e){i.value=e},showCardHeader:d,sortCards:h,updateCards:J,versionPage:r,shareNetworks:s,shareImage:c,globalYoutubeEmbedID:l,filterSearch:p,filterSearchResume:m,live:u}})}).call(this,a(46))},73:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));
/*!
 * Jupiter - Jupiter string service
 * 2023 Fagner Janderson <fjsilva@uolinc.com>
 */
class n extends a(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 a=e;for(const e in this.charMap)a=a.replace(new RegExp(this.charMap[e],"g"),e).trim();return a.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,a,n){let o=e;return(o=n?o.replace(/<\/?[a-z]?([^>]+)>?/g,""):o).substring(0,t||o.length).trim()+(o.length>t&&a?a:"")}removeSymbols(e){return e.replace(/["#$&'()*+,-./:;[\\\]_`{|}~]/g,"")}emailValidator(e){if(e){var[t,a]=e.split("@");if(t&&a&&t.length<=64&&a.length<=255&&a.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}persistUOLParams(e){const t=new URL(e),a=this.getRequest().getParams()||{};var n,o=(null==(o=this.config)?void 0:o.persistParams)||{};return o&&Array.isArray(o.params)&&(({params:o,when:n}=o),!n||Object.entries(n).every(([e,t])=>t&&"object"==typeof t&&"$exists"in t?t.$exists?e in a:!(e in a):a[e]===t))?(o.forEach(e=>{e in a&&t.searchParams.set(e,a[e])}),t.toString()):e}parseUOLLink(e){var t=["carnaval","carros","ecoa","esporte","guia-de-compras","jogos","nossa","prime","splash","start","tilt","universa","vivabem"],a=new RegExp(`^https?://(${t.join("|")}).uol.com.br`),n=(t=new RegExp(`^https?://(www.)?uol.com.br/(${t.join("|")})`),new RegExp(`^https?://(${["economia","educacao","noticias","tab","bol"].join("|")}).uol.com.br`));return a.test(e)||t.test(e)||n.test(e)?this.persistUOLParams(e.replace(a,"https://www.uol.com.br/$1").replace(t,"https://www.uol.com.br/$2").replace(n,"https://$1.uol.com.br").replace(/^(.*?)(\.\w+|\/)?(\?|$)/g,(e,t,a,n)=>t+(a||"/")+n)):e}quoteToHtmlEntity(e){return e.replace(/'/g,"&#39;").replace(/"/g,"&#34;")}}},74:function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),a.d(t,"b",(function(){return y})),a.d(t,"c",(function(){return d}));t=a(4);var n=a(43),o=a(2898),r=a(17);a=a(36);const i=new t.EventEmitter;var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=(e,t,a,n)=>{for(var o,r=1<n?void 0:n?c(t,a):t,i=e.length-1;0<=i;i--)(o=e[i])&&(r=(n?o(t,a,r):o(r))||r);return n&&r&&s(t,a,r),r};const u=["newsletter","productIds","notificationThemes","mostViewedTags","mostAccessedArticleTypes","horoscopes","mostAccessedLotteries","stockActionsOfInterest"],d=["frequencyClassification","favoriteTeam","preferredCurrency"];class p{constructor(){this.horoscopes=[]}}const m="__vueland_user_preferences";class h extends t.FrontEnvironment{constructor(){super(...arguments),this.defaultValues=new p}getAttribute(e){let t=this.defaultValues[e];try{t=this.localStorageService.getDataKey(m,e)}catch(e){this.localStorageService.setData(m,t)}return t}setAttribute(e,t){i.emit("set",{key:e,value:t}),this.localStorageService.setDataProp(m,e,t)}async set(e){this.setAttribute(this.name,e)}}l([Object(t.Inject)(n.b)],h.prototype,"localStorageService",2),l([Object(t.Inject)(n.a)],h.prototype,"cookieService",2);const f={"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}},g={aries:{name:"Áries",slug:"aries",icon:a.signAries},touro:{name:"Touro",slug:"touro",icon:a.signTouro},gemeos:{name:"Gêmeos",slug:"gemeos",icon:a.signGemeos},cancer:{name:"Câncer",slug:"cancer",icon:a.signCancer},leao:{name:"Leão",slug:"leao",icon:a.signLeao},virgem:{name:"Virgem",slug:"virgem",icon:a.signVirgem},libra:{name:"Libra",slug:"libra",icon:a.signLibra},escorpiao:{name:"Escorpião",slug:"escorpiao",icon:a.signEscorpiao},sagitario:{name:"Sagitário",slug:"sagitario",icon:a.signSagitario},capricornio:{name:"Capricórnio",slug:"capricornio",icon:a.signCapricornio},aquario:{name:"Aquário",slug:"aquario",icon:a.signAquario},peixes:{name:"Peixes",slug:"peixes",icon:a.signPeixes}};var v=Object.defineProperty,b=Object.getOwnPropertyDescriptor;l=(e,t,a,n)=>{for(var o,r=1<n?void 0:n?b(t,a):t,i=e.length-1;0<=i;i--)(o=e[i])&&(r=(n?o(t,a,r):o(r))||r);return n&&r&&v(t,a,r),r};class y extends t.MixedEnvironment{constructor(){super(...arguments),this.defaultValues=new p}getAllAttributes(){let e=this.localStorageService.getData(m);return e||(e=this.defaultValues,this.localStorageService.setData(m,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)(o.useUserStore)],y.prototype,"userStore",2),l([Object(t.Inject)(n.b)],y.prototype,"localStorageService",2),l([Object(t.Inject)(n.a)],y.prototype,"cookieService",2),l([Object(t.Inject)(class extends h{constructor(){super(...arguments),this.name="favoriteTeam"}async fetch(){var e;const t=this.getAttribute(this.name),a=this.cookieService.getCookie("meuTime");var n=Object.values(f).find(({slug:e})=>e==t),o=Object.values(f).find(({id:e})=>e==a);if(a&&o)(null==n?void 0:n.slug)!==(null==o?void 0:o.slug)&&this.setAttribute(this.name,o.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)}})],y.prototype,"team",2),l([Object(t.Inject)(class extends h{constructor(){super(...arguments),this.name="horoscopes"}async fetch(){var e,t=this.cookieService.getCookie("meuSigno"),a=this.getAttribute(this.name)[0];if(t)t!==a&&this.setAttribute(this.name,[t]);else try{var n=(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;n?this.set([n]):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)}}]);