(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(2401)}])},793:()=>{},1895:function(t,e){var n,r,i;!function(a){"use strict";r=[],void 0===(i="function"==typeof(n=a)?n.apply(e,r):n)||(t.exports=i)}(function(){"use strict";function t(t){return!isNaN(parseFloat(t))&&isFinite(t)}function e(t,e,n,r,i,a){void 0!==t&&this.setFunctionName(t),void 0!==e&&this.setArgs(e),void 0!==n&&this.setFileName(n),void 0!==r&&this.setLineNumber(r),void 0!==i&&this.setColumnNumber(i),void 0!==a&&this.setSource(a)}return e.prototype={getFunctionName:function(){return this.functionName},setFunctionName:function(t){this.functionName=String(t)},getArgs:function(){return this.args},setArgs:function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw TypeError("Args must be an Array");this.args=t},getFileName:function(){return this.fileName},setFileName:function(t){this.fileName=String(t)},getLineNumber:function(){return this.lineNumber},setLineNumber:function(e){if(!t(e))throw TypeError("Line Number must be a Number");this.lineNumber=Number(e)},getColumnNumber:function(){return this.columnNumber},setColumnNumber:function(e){if(!t(e))throw TypeError("Column Number must be a Number");this.columnNumber=Number(e)},getSource:function(){return this.source},setSource:function(t){this.source=String(t)},toString:function(){return(this.getFunctionName()||"{anonymous}")+("("+(this.getArgs()||[]).join(","))+")"+(this.getFileName()?"@"+this.getFileName():"")+(t(this.getLineNumber())?":"+this.getLineNumber():"")+(t(this.getColumnNumber())?":"+this.getColumnNumber():"")}},e})},2401:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>eU});var r,i=n(7876),a=n(9099);function o(){let t=new Date().getFullYear();return(0,i.jsx)("footer",{className:"bg-[var(--black-light)] min-h-[2.43rem] flex items-center justify-center p-2 md:px-8",children:(0,i.jsx)("div",{className:"flex flex-1 items-center justify-between max-w-[850px] flex-col md:flex-row",children:(0,i.jsx)("div",{className:"w-full",children:(0,i.jsxs)("p",{className:"text-white text-center text-xs",children:["\xa91996 - ",t," UOL - Seu universo online.",(0,i.jsx)("br",{className:"block md:hidden"})," Todos os direitos reservados.",(0,i.jsx)("br",{className:"block md:hidden"}),(0,i.jsx)("span",{className:"hidden md:inline",children:" - "}),(0,i.jsx)("a",{href:"https://denuncia.uol.com.br/",target:"_blank",rel:"noreferrer",className:"underline",children:"Denunciar essa p\xe1gina"})]})})})})}function s(){return(0,i.jsx)("header",{className:"bg-white min-h-[2.9rem] border-b border-[#cccccc] flex items-center justify-center px-4 py-2 w-screen md:px-8",children:(0,i.jsxs)("div",{className:"flex flex-1 items-center justify-between",children:[(0,i.jsx)("a",{href:"https://uolhost.uol.com.br",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)("img",{src:"/logo-uol-host.svg",alt:"Uol",className:"w-[122px] h-6 mr-4 mt-1"})}),(0,i.jsxs)("h4",{className:"text-center text-black font-normal flex-1 text-[0.85rem] leading-none sm:leading-normal sm:px-4 sm:text-[1.125rem]",children:["Gostou dessa p\xe1gina?"," ",(0,i.jsxs)("a",{href:"http://meunegocio.uol.com.br/conecte",target:"_blank",rel:"noreferrer",className:"text-[#0070AB]",children:["Crie uma ",(0,i.jsx)("br",{className:"block md:hidden"})," gratuitamente"]})," ","e divulgue seu neg\xf3cio!"]}),(0,i.jsx)("a",{href:"http://meupainelhost.uol.com.br/conecte",target:"_blank",rel:"noreferrer",className:"text-[#0070AB] font-normal text-[1.125rem] no-underline hover:underline hidden lg:block",children:"J\xe1 sou cliente"})]})})}n(3039),n(793);var c=n(5417);function u(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}u.prototype=Error.prototype;var f=setTimeout;function d(t){return!!(t&&void 0!==t.length)}function l(){}function p(t){if(!(this instanceof p))throw TypeError("Promises must be constructed via new");if("function"!=typeof t)throw TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],b(t,this)}function h(t,e){for(;3===t._state;)t=t._value;0===t._state?t._deferreds.push(e):(t._handled=!0,p._immediateFn(function(){var n,r=1===t._state?e.onFulfilled:e.onRejected;if(null===r)return void(1===t._state?v:g)(e.promise,t._value);try{n=r(t._value)}catch(t){g(e.promise,t);return}v(e.promise,n)}))}function v(t,e){try{if(e===t)throw TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof p){t._state=3,t._value=e,m(t);return}if("function"==typeof n)return void b(function(){n.apply(e,arguments)},t)}t._state=1,t._value=e,m(t)}catch(e){g(t,e)}}function g(t,e){t._state=2,t._value=e,m(t)}function m(t){2===t._state&&0===t._deferreds.length&&p._immediateFn(function(){t._handled||p._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;etypeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var _={};x?_=window:"u">typeof self&&(_=self);for(var S=("Promise"in _)?_.Promise:p,w=[].slice,x="u">typeof window,T=x&&"u">typeof performance?performance:{},E=[],k=0;k<256;++k)E[k]=(k+256).toString(16).substr(1);var I=new Uint8Array(16);function O(t){return(function(t){for(var e=[],n=0;ntypeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues(I):"u">typeof msCrypto&&"function"==typeof msCrypto.getRandomValues?msCrypto.getRandomValues(I):I).substr(0,t)}function N(t,e,n){"function"==typeof t.setRequestHeader?t.setRequestHeader(e,n):t.headers&&"function"==typeof t.headers.append?t.headers.append(e,n):t[e]=n}function C(t,e){var n=!1;return"string"==typeof e?n=t===e:e&&"function"==typeof e.test?n=e.test(t):Array.isArray(e)&&e.forEach(function(e){n||(n=C(t,e))}),n}function L(t,e,n){if(n&&t){var r=H(t),i=typeof e;return void 0!=e&&"boolean"!==i&&"number"!==i&&(e=String(e)),n[r]=e,n}}function j(t){return t&&t.split("?")[0]}function R(t){return null!==t&&"object"==typeof t}function P(t,e,n){for(var r=0,i=e.length;r=0?t:z()}function B(t,e){return q(e)||q(t)?null:parseInt(e-t)}function $(t){S.resolve().then(t)}function V(){return"function"==typeof T.getEntriesByType}function J(t){return"u">typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.indexOf(t)>=0}function X(){return"interactionCount"in performance}function W(t){return t.redirectStart>0}var G={fetchInProgress:!1};function Z(t){return"__apm_symbol__"+t}function Q(t,e,n){for(var r,i=t;i&&!i.hasOwnProperty(e);)i=Object.getPrototypeOf(i);!i&&t[e]&&(i=t);var a=Z(e);if(i&&!(r=i[a])&&(r=i[a]=i[e],!(o=i&&Object.getOwnPropertyDescriptor(i,e))||!1!==o.writable&&("function"!=typeof o.get||void 0!==o.set))){var o,s,c,u=n(r,a,e);i[e]=function(){return u(this,arguments)},s=i[e],c=r,s[Z("OriginalDelegate")]=c}return r}var Y=Z("xhrIgnore"),K=Z("xhrSync"),tt=Z("xhrURL"),te=Z("xhrMethod"),tn="schedule",tr="invoke",ti="addEventListener",ta=["link","css","script","img","xmlhttprequest","fetch","beacon","iframe"],to="page-load",ts="custom",tc="user-interaction",tu="http-request",tf="temporary",td="Unknown",tl="page-exit",tp=[to,"route-change",tc,tu,ts,tf],th="transaction:end",tv="config:change",tg="queue:flush",tm="queue:add_transaction",ty="transaction:ignore",tb="xmlhttprequest",t_="fetch",tS="history",tw="eventtarget",tx="click",tT="error",tE=":after",tk="elastic_apm_config",tI="longtask",tO="largest-contentful-paint",tN="first-input",tC="layout-shift",tL="errors",tj="transactions",tR="ConfigService",tP="LoggingService",tA="TransactionService",tF="ApmServer",tq="PerformanceMonitoring",tM="ErrorLogging",tH=".truncated";function tU(t){return 0!==t&&(!(t>399)||!(t<600))}function tz(){return(tz=Object.assign?Object.assign.bind():function(t){for(var e=1;e-1&&n.observers[t].splice(r,1)}},e.sendOnly=function(t,e){var n=this.observers[t];n&&n.forEach(function(t){try{t.apply(void 0,e)}catch(t){console.log(t,t.stack)}})},e.send=function(t,e){this.sendOnly(t+":before",e),this.sendOnly(t,e),this.sendOnly(t+tE,e)},t}(),t$=new tB,tV=!1,tJ={bootstrapTime:null,lastHiddenStart:Number.MIN_SAFE_INTEGER},tX=!1,tW=[["#","hash"],["?","query"],["/","path"],["@","auth",1],[NaN,"host",void 0,1]],tG=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,tZ=function(){function t(t){var e,n=this.extractProtocol(t||""),r=n.protocol,i=n.address,a=n.slashes,o=!r&&!a,s=this.getLocation(),c=tW.slice();i=i.replace("\\","/"),a||(c[2]=[NaN,"path"]);for(var u=0;u1?["Object",n[n.length-1]].join("."):n[0]).replace(/.<$/gi,".")).replace(/^Anonymous function$/,"")).split(".")).length>1?n[n.length-1]:n[0]),t}).map(function(t){var e,n,r,i=t.fileName,a=t.lineNumber,o=t.columnNumber,s=t.functionName;if(!i&&!a||!o&&!a)return{};var c=(void 0===(e=i)&&(e=""),""===e&&(e=""),e),u=(n=c,r=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),n.indexOf(r)>-1&&(n=n.replace(r+"/","")),n);return c&&0===window.location.href.indexOf(c)&&(u="(inline script)"),{abs_path:i,filename:u,function:void 0===s?"":s,lineno:a,colno:o}})})(ee(),t).filter(function(t){var e=t.filename,n=t.lineno;return void 0!==e&&void 0!==n}),r="(inline script)",i=n[n.length-1];i&&i.filename&&(r=i.filename);var a=t.message,o=t.error,s=a,c="",u={};if(o&&"object"==typeof o){s=s||o.message,c=o.name;var f=function(t){var e=!1,n={};if(Object.keys(t).forEach(function(r){if(!(er.indexOf(r)>=0)){var i=t[r];if(null!=i&&"function"!=typeof i){if("object"==typeof i){if("function"!=typeof i.toISOString)return;i=i.toISOString()}n[r]=i,e=!0}}}),e)return n}(o);f&&(u.custom=f)}if(e&&e.labels){var d=Object.keys(e.labels);u.tags={},d.forEach(function(t){return L(t,e.labels[t],u.tags)})}!c&&s&&s.indexOf(":")>-1&&(c=s.split(":")[0]);var l=this._transactionService.getCurrentTransaction(),p=l?l.context:{},h=this._configService.get("context"),v=(h.tags,function(t,e){if(null==t)return{};var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(h,en)),g=F({},t0(),p,v,u),m={id:O(),culprit:r,exception:{message:s,stacktrace:n,type:c},context:g};return l&&(m=A(m,{trace_id:l.traceId,parent_id:l.id,transaction_id:l.id,transaction:{type:l.type,sampled:l.sampled}})),t7(t5,m)},e.logErrorEvent=function(t,e){if(void 0!==t){var n=this.createErrorDataModel(t,e);void 0!==n.exception.message&&this._apmServer.addError(n)}},e.registerListeners=function(){var t=this;window.addEventListener("error",function(e){return t.logErrorEvent(e)}),window.addEventListener("unhandledrejection",function(e){return t.logPromiseEvent(e)})},e.logPromiseEvent=function(t){var e,n=t.reason;if(null==n&&(n=""),"string"==typeof n.message){var r=n.name?n.name+": ":"";e={error:n,message:ei+r+n.message}}else e=this._parseRejectReason(n);this.logErrorEvent(e)},e.logError=function(t,e){var n={};return"string"==typeof t?n.message=t:n.error=t,this.logErrorEvent(n,e)},e._parseRejectReason=function(t){var e={message:ei};if(Array.isArray(t))e.message+="";else if("object"==typeof t)try{e.message+=JSON.stringify(t),e.error=t}catch(t){e.message+=""}else"function"==typeof t?e.message+="":e.message+=t;return e},t}(),eo=function(){function t(t,e){void 0===e&&(e={}),this.onFlush=t,this.items=[],this.queueLimit=e.queueLimit||-1,this.flushInterval=e.flushInterval||0,this.timeoutId=void 0}var e=t.prototype;return e._setTimer=function(){var t=this;this.timeoutId=setTimeout(function(){return t.flush()},this.flushInterval)},e._clear=function(){void 0!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.items=[]},e.flush=function(){this.onFlush(this.items),this._clear()},e.add=function(t){this.items.push(t),-1!==this.queueLimit&&this.items.length>=this.queueLimit?this.flush():void 0===this.timeoutId&&this._setTimer()},t}(),es=function(){function t(){}return t.stringify=function(t){return JSON.stringify(t)+"\n"},t}(),ec=["fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],eu=["fs","ls","le","cs","ce","qs","rs","re","dl","di","ds","de","dc","es","ee"];function ef(t){return{ts:t.transfer_size,ebs:t.encoded_body_size,dbs:t.decoded_body_size}}function ed(t){if(!t)return null;var e,n,r,i,a,o={},s=t.page,c=t.http,u=t.response,f=t.destination,d=t.user,l=t.custom,p=t.tags;if(s&&(o.p={rf:s.referer,url:s.url}),c&&(e={},n=c.method,r=c.status_code,i=c.url,a=c.response,e.url=i,n&&(e.mt=n),r&&(e.sc=r),a&&(e.r=ef(a)),o.h=e),u&&(o.r=ef(u)),f){var h=f.service;o.dt={se:{n:h.name,t:h.type,rc:h.resource},ad:f.address,po:f.port}}return d&&(o.u={id:d.id,un:d.username,em:d.email}),l&&(o.cu=l),p&&(o.g=p),o}function el(t,e,n){var r=n.timeout,i=void 0===r?HTTP_REQUEST_TIMEOUT:r,a=n.payload,o=n.headers,s=n.beforeSend,c=n.sendCredentials;return new S(function(n,r){var u=new window.XMLHttpRequest;if(u[Y]=!0,u.open(t,e,!0),u.timeout=i,u.withCredentials=c,o)for(var f in o)o.hasOwnProperty(f)&&u.setRequestHeader(f,o[f]);u.onreadystatechange=function(){if(4===u.readyState){var t=u.status,i=u.responseText;tU(t)?n(u):r({url:e,status:t,responseText:i})}},u.onerror=function(){r({url:e,status:u.status,responseText:u.responseText})};var d=!0;"function"==typeof s&&(d=s({url:e,method:t,headers:o,payload:a,xhr:u})),d?u.send(a):r({url:e,status:0,responseText:"Request rejected by user configuration."})})}var ep=function(){function t(t,e){this._configService=t,this._loggingService=e,this.queue=void 0,this.throttleEvents=M}var e=t.prototype;return e.init=function(){var t=this,e=this._configService.get("queueLimit"),n=this._configService.get("flushInterval"),r=this._configService.get("eventsLimit");this.queue=new eo(function(e){var n=t.sendEvents(e);n&&n.catch(function(e){t._loggingService.warn("Failed sending events!",t._constructError(e))})},{queueLimit:e,flushInterval:n}),this.throttleEvents=function(t,e,n){var r,i=this,a=n.limit,o=n.interval,s=0;return function(){return(s++,void 0===r&&(r=setTimeout(function(){s=0,r=void 0},o)),s>a&&"function"==typeof e)?e.apply(i,arguments):t.apply(i,arguments)}}(this.queue.add.bind(this.queue),function(){return t._loggingService.warn("Dropped events due to throttling!")},{limit:r,interval:6e4}),this._configService.observeEvent(tg,function(){t.queue.flush()})},e._postJson=function(t,e){var n,r,i=this,a={payload:e,headers:{"Content-Type":"application/x-ndjson"},beforeSend:this._configService.get("apmRequest")};return(void 0===n&&(n="gzip"),r="function"==typeof CompressionStream,new S(function(t){if(!r||function(){var t="_elastic_inspect_beacon_";if(null!=sessionStorage.getItem(t))return!0;if(!window.URL||!window.URLSearchParams)return!1;try{var e=new URL(window.location.href).searchParams.has(t);return e&&sessionStorage.setItem(t,!0),e}catch(t){}return!1}())return t(a);var e=a.payload,i=a.headers,o=a.beforeSend;return new Response(new Blob([e]).stream().pipeThrough(new CompressionStream(n))).blob().then(function(e){return i["Content-Encoding"]=n,t({payload:e,headers:i,beforeSend:o})})})).catch(function(t){return a}).then(function(e){return i._makeHttpRequest("POST",t,e)}).then(function(t){return t.responseText})},e._constructError=function(t){var e=t.url,n=t.status;return(t.responseText,void 0===n)?t:Error(e+" HTTP status: "+n)},e._makeHttpRequest=function(t,e,n){var r=void 0===n?{}:n,i=r.timeout,a=void 0===i?1e4:i,o=r.payload,s=r.headers,c=r.beforeSend,u=this._configService.get("sendCredentials");return!c&&function(t,e){if(!tD()||!("keepalive"in new Request("")))return!1;var n,r=(n=e)?n instanceof Blob?n.size:new Blob([n]).size:0;return"POST"===t&&r<6e4}(t,o)?(function(t,e,n){var r,i=n.keepalive,a=n.timeout,o=n.payload,s=n.headers,c=n.sendCredentials,u={};if("function"==typeof AbortController){var f=new AbortController;u.signal=f.signal,setTimeout(function(){return f.abort()},void 0===a?1e4:a)}return window.fetch(e,tz({body:o,headers:s,method:t,keepalive:void 0!==i&&i,credentials:c?"include":"omit"},u)).then(function(t){return(r=t).text()}).then(function(t){var n={url:e,status:r.status,responseText:t};if(!tU(r.status))throw n;return n})})(t,e,{keepalive:!0,timeout:a,payload:o,headers:s,sendCredentials:u}).catch(function(n){if(n instanceof TypeError)return el(t,e,{timeout:a,payload:o,headers:s,beforeSend:c,sendCredentials:u});throw n}):el(t,e,{timeout:a,payload:o,headers:s,beforeSend:c,sendCredentials:u})},e.fetchConfig=function(t,e){var n=this,r=this.getEndpoints().configEndpoint;if(!t)return S.reject("serviceName is required for fetching central config.");r+="?service.name="+t,e&&(r+="&service.environment="+e);var i=this._configService.getLocalConfig();i&&(r+="&ifnonematch="+i.etag);var a=this._configService.get("apmRequest");return this._makeHttpRequest("GET",r,{timeout:5e3,beforeSend:a}).then(function(t){var e=t.status,r=t.responseText;if(304===e)return i;var a=JSON.parse(r),o=t.getResponseHeader("etag");return o&&(a.etag=o.replace(/["]/g,""),n._configService.setLocalConfig(a,!0)),a}).catch(function(t){var e=n._constructError(t);return S.reject(e)})},e.createMetaData=function(){var t=this._configService;return t7(t1,{service:{name:t.get("serviceName"),version:t.get("serviceVersion"),agent:{name:"rum-js",version:t.version},language:{name:"javascript"},environment:t.get("environment")},labels:t.get("context.tags")})},e.addError=function(t){var e;this.throttleEvents(((e={})[tL]=t,e))},e.addTransaction=function(t){var e;this.throttleEvents(((e={})[tj]=t,e))},e.ndjsonErrors=function(t,e){var n=e?"e":"error";return t.map(function(t){var r,i,a,o,s;return es.stringify(((r={})[n]=e?(a=(i=t).exception,o={id:i.id,cl:i.culprit,ex:{mg:a.message,st:a.stacktrace.map(function(t){return{ap:t.abs_path,f:t.filename,fn:t.function,li:t.lineno,co:t.colno}}),t:i.type},c:ed(i.context)},(s=i.transaction)&&(o.tid=i.trace_id,o.pid=i.parent_id,o.xid=i.transaction_id,o.x={t:s.type,sm:s.sampled}),o):t,r))})},e.ndjsonMetricsets=function(t){return t.map(function(t){return es.stringify({metricset:t})}).join("")},e.ndjsonTransactions=function(t,e){var n=this,r=e?"x":"transaction";return t.map(function(t){var i,a="",o="";return!e&&(t.spans&&(a=t.spans.map(function(t){return es.stringify({span:t})}).join(""),delete t.spans),t.breakdown&&(o=n.ndjsonMetricsets(t.breakdown),delete t.breakdown)),es.stringify(((i={})[r]=e?function(t){var e=t.spans.map(function(e){var n={id:e.id,n:e.name,t:e.type,s:e.start,d:e.duration,c:ed(e.context),o:e.outcome,sr:e.sample_rate};return e.parent_id!==t.id&&(n.pid=e.parent_id),!0===e.sync&&(n.sy=!0),e.subtype&&(n.su=e.subtype),e.action&&(n.ac=e.action),n}),n={id:t.id,pid:t.parent_id,tid:t.trace_id,n:t.name,t:t.type,d:t.duration,c:ed(t.context),k:function(t){if(!t)return null;var e=function(t){if(!t)return null;var e={};return eu.forEach(function(n,r){var i=ec[r];e[n]=t[i]}),e}(t.navigationTiming);return{nt:e,a:function(t,e){var n={};if(t&&(n={fb:t.rs,di:t.di,dc:t.dc}),e){var r=e.firstContentfulPaint,i=e.largestContentfulPaint;r&&(n.fp=r),i&&(n.lp=i)}return 0===Object.keys(n).length?null:n}(e,t.agent)}}(t.marks),me:t.breakdown.map(function(t){var e=t.span,n=t.samples;return{y:{t:e.type},sa:{ysc:{v:n["span.self_time.count"].value},yss:{v:n["span.self_time.sum.us"].value}}}}),y:e,yc:{sd:e.length},sm:t.sampled,sr:t.sample_rate,o:t.outcome};if(t.experience){var r=t.experience;n.exp={cls:r.cls,fid:r.fid,tbt:r.tbt,lt:r.longtask}}if(t.session){var i=t.session;n.ses={id:i.id,seq:i.sequence}}return n}(t):t,i))+a+o})},e.sendEvents=function(t){if(0!==t.length){for(var e,n,r=[],i=[],a=0;a2,v=[],g=this.createMetaData(),m=h?"m":"metadata";v.push(es.stringify(((n={})[m]=h?(s=g.service,c=g.labels,u=s.agent,f=s.language,{se:{n:s.name,ve:s.version,a:{n:u.name,ve:u.version},la:{n:f.name},en:s.environment},l:c}):g,n)));var y=(v=v.concat(this.ndjsonErrors(p[tL],h),this.ndjsonTransactions(p[tj],h))).join(""),b=this.getEndpoints().intakeEndpoint;return this._postJson(b,y)}}},e.getEndpoints=function(){var t=this._configService.get("serverUrl"),e=this._configService.get("apiVersion");return{intakeEndpoint:t+(this._configService.get("serverUrlPrefix")||"/intake/v"+e+"/rum/events"),configEndpoint:t+"/config/v1/rum/agents"}},t}();function eh(){return(eh=Object.assign?Object.assign.bind():function(t){for(var e=1;e0?t.charAt(0).toUpperCase()+t.substring(1):t}).join("")]=a.value||a.nodeValue)}return e}(function(){if("u">typeof document){var t=document.currentScript;if(!t){if("u">typeof document)for(var e=document.getElementsByTagName("script"),n=0,r=e.length;n0)return i}return}return t}}());this.setConfig(t)},e.setVersion=function(t){this.version=t},e.addFilter=function(t){if("function"!=typeof t)throw Error("Argument to must be function");this.filters.push(t)},e.applyFilters=function(t){try{for(var e=0;e0&&(n=1e-4),t.transactionSampleRate=Math.round(1e4*n)/1e4),this.config=F(this.config,t),this.events.send(tv,[this.config])},e.validate=function(t){void 0===t&&(t={});var e=["serviceName","serverUrl"],n=Object.keys(this.config),r={missing:[],invalid:[],unknown:[]};Object.keys(t).forEach(function(i){-1===e.indexOf(i)||t[i]||r.missing.push(i),-1===n.indexOf(i)&&r.unknown.push(i)}),t.serviceName&&!/^[a-zA-Z0-9 _-]+$/.test(t.serviceName)&&r.invalid.push({key:"serviceName",value:t.serviceName,allowed:"a-z, A-Z, 0-9, _, -, "});var i=t.transactionSampleRate;return void 0!==i&&("number"!=typeof i||isNaN(i)||i<0||i>1)&&r.invalid.push({key:"transactionSampleRate",value:i,allowed:"Number between 0 and 1"}),r},e.getLocalConfig=function(){var t=sessionStorage;this.config.session&&(t=localStorage);var e=t.getItem(tk);if(e)return JSON.parse(e)},e.setLocalConfig=function(t,e){if(t){if(e){var n=this.getLocalConfig();t=eh({},n,t)}var r=sessionStorage;this.config.session&&(r=localStorage),r.setItem(tk,JSON.stringify(t))}},e.dispatchEvent=function(t,e){this.events.send(t,e)},e.observeEvent=function(t,e){return this.events.observe(t,e)},t}(),eg=function(){function t(t){void 0===t&&(t={}),this.levels=["trace","debug","info","warn","error"],this.level=t.level||"warn",this.prefix=t.prefix||"",this.resetLogMethods()}var e=t.prototype;return e.shouldLog=function(t){return this.levels.indexOf(t)>=this.levels.indexOf(this.level)},e.setLevel=function(t){t!==this.level&&(this.level=t,this.resetLogMethods())},e.resetLogMethods=function(){var t=this;this.levels.forEach(function(e){t[e]=t.shouldLog(e)?function(){var t=e;("trace"===e||"debug"===e)&&(t="info");var n=arguments;if(n[0]=this.prefix+n[0],console){var r=console[t]||console.log;"function"==typeof r&&r.apply(console,n)}}:M})},t}(),em=((r={})[tR]=function(){return new ev},r[tP]=function(){return new eg({prefix:"[Elastic APM] "})},r[tF]=function(t){var e=t.getService([tR,tP]);return new ep(e[0],e[1])},r),ey=function(){function t(){this.instances={},this.initialized=!1}var e=t.prototype;return e.init=function(){if(!this.initialized){this.initialized=!0;var t=this.getService(tR);t.init();var e=this.getService([tP,tF]),n=e[0],r=e[1];t.events.observe(tv,function(){var e=t.get("logLevel");n.setLevel(e)}),r.init()}},e.getService=function(t){var e=this;return"string"==typeof t?(this.instances[t]||"function"==typeof em[t]&&(this.instances[t]=em[t](this)),this.instances[t]):Array.isArray(t)?t.map(function(t){return e.getService(t)}):void 0},t}(),eb=function(){function t(t,e,n,r){this._apmServer=t,this._configService=e,this._logginService=n,this._transactionService=r}var e=t.prototype;return e.init=function(t){var e=this;void 0===t&&(t={}),this._configService.events.observe(th+tE,function(t){var n=e.createTransactionPayload(t);n&&(e._apmServer.addTransaction(n),e._configService.dispatchEvent(tm))}),t[tS]&&t$.observe(tS,this.getHistorySub()),t[tb]&&t$.observe(tb,this.getXHRSub()),t[t_]&&t$.observe(t_,this.getFetchSub())},e.getHistorySub=function(){var t=this._transactionService;return function(e,n){n.source===tS&&e===tr&&t.startTransaction(n.data.title,"route-change",{managed:!0,canReuse:!0})}},e.getXHRSub=function(){var t=this;return function(e,n){n.source!==tb||G.fetchInProgress||t.processAPICalls(e,n)}},e.getFetchSub=function(){var t=this;return function(e,n){n.source===t_&&t.processAPICalls(e,n)}},e.processAPICalls=function(t,e){var n=this._configService,r=this._transactionService;if(e.data&&e.data.url){var i=this._apmServer.getEndpoints();if(Object.keys(i).some(function(t){return -1!==e.data.url.indexOf(i[t])}))return}if(t===tn&&e.data){var a=e.data,o=new tZ(a.url),s=a.method+" "+(o.relative?o.path:j(o.href));r.getCurrentTransaction()||r.startTransaction(s,tu,{managed:!0});var c=r.startSpan(s,"external.http",{blocking:!0});if(!c)return;var u=n.get("distributedTracing"),f=n.get("distributedTracingOrigins"),d=new tZ(window.location.href),l=C(o.origin,d.origin)||C(o.origin,f),p=a.target;u&&l&&p&&(this.injectDtHeader(c,p),n.get("propagateTracestate")&&this.injectTSHeader(c,p)),a.sync&&(c.sync=a.sync),a.span=c}else if(t===tr){var h=e.data;if(h&&h.span){var v,g,m=h.span,y=h.response,b=h.target;v=y?y.status:b.status,m.outcome=g="abort"==h.status||h.aborted?"unknown":v>=400||0==v?"failure":"success";var _=r.getCurrentTransaction();_&&_.type===tu&&(_.outcome=g),r.endSpan(m,h)}}},e.injectDtHeader=function(t,e){var n=this._configService.get("distributedTracingHeaderName"),r=function(t){if(t&&t.traceId&&t.id&&t.parentId){var e=t.sampled?"01":"00",n=t.sampled?t.id:t.parentId;return"00-"+t.traceId+"-"+n+"-"+e}}(t);/^[\da-f]{2}-[\da-f]{32}-[\da-f]{16}-[\da-f]{2}$/.test(r)&&"00000000000000000000000000000000"!==r.slice(3,35)&&"0000000000000000"!==r.slice(36,52)&&r&&n&&N(e,n,r)},e.injectTSHeader=function(t,e){var n=function(t){var e=t.sampleRate;if("number"==typeof e&&!(String(e).length>256))return"es=s:"+e}(t);n&&N(e,"tracestate",n)},e.extractDtHeader=function(t){var e=this._configService.get("distributedTracingHeaderName");if(t){var n=t[e],r=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})$/.exec(n);if(r){var i=r[4];return{traceId:r[2],id:r[3],sampled:"00"!==i}}return}},e.filterTransaction=function(t){var e=t.duration();if(!e)return!1;if(t.isManaged()){if(e>6e4)return!1;var n=this._configService.get("reportTransactionsWithoutSpans");if(t.sampled&&0===t.spans.length&&!n)return!1}return!0},e.createTransactionDataModel=function(t){var e=t._start,n=t.spans.map(function(n){return t7(t4,{id:n.id,transaction_id:t.id,parent_id:n.parentId||t.id,trace_id:t.traceId,name:n.name,type:n.type,subtype:n.subtype,action:n.action,sync:n.sync,start:parseInt(n._start-e),duration:n.duration(),context:n.context,outcome:n.outcome,sample_rate:n.sampleRate})});return t7(t9,{id:t.id,parent_id:t.parentId,trace_id:t.traceId,session:t.session,name:t.name,type:t.type,duration:t.duration(),spans:n,context:t.context,marks:t.marks,breakdown:t.breakdownTimings,span_count:{started:n.length},sampled:t.sampled,sample_rate:t.sampleRate,experience:t.experience,outcome:t.outcome})},e.createTransactionPayload=function(t){var e=function(t){if(t.sampled){var e=t.spans.filter(function(e){return e.duration()>0&&e._start>=t._start&&e._end<=t._end});if(t.isManaged()){var n,r,i=t.duration();e.sort(function(t,e){return t._start-e._start}),n=[],r=1,e.forEach(function(t,a){if(0===n.length)n.push(t);else{var o=n[n.length-1],s=o.type===t.type&&o.subtype===t.subtype&&o.action===t.action&&o.name===t.name&&t.duration()/i<.05&&(t._start-o._end)/i<.05,c=e.length===a+1;s&&(r++,o._end=t._end),r>1&&(!s||c)&&(o.name=r+"x "+o.name,r=1),s||n.push(t)}}),t.spans=n}else t.spans=e}else t.resetFields();return t}(t);if(this.filterTransaction(e))return this.createTransactionDataModel(t);this._configService.dispatchEvent(ty)},t}(),e_=function(){function t(t,e,n){void 0===n&&(n={}),t||(t=td),e||(e=ts),this.name=t,this.type=e,this.options=n,this.id=n.id||O(16),this.traceId=n.traceId,this.sampled=n.sampled,this.sampleRate=n.sampleRate,this.timestamp=n.timestamp,this._start=D(n.startTime),this._end=void 0,this.ended=!1,this.outcome=void 0,this.onEnd=n.onEnd}var e=t.prototype;return e.ensureContext=function(){this.context||(this.context={})},e.addLabels=function(t){this.ensureContext();var e=this.context;e.tags||(e.tags={}),Object.keys(t).forEach(function(n){return L(n,t[n],e.tags)})},e.addContext=function(){for(var t=arguments.length,e=Array(t),n=0;ns?(c+=o-s,s=a):a>s&&(s=a);return s=i&&e>t&&t-i>=n&&e-i<=r&&e-t<3e5&&t-i<3e5&&e-i<3e5}var eL=[["redirectStart","redirectEnd","Redirect"],["domainLookupStart","domainLookupEnd","Domain lookup"],["connectStart","connectEnd","Making a connection to the server"],["requestStart","responseEnd","Requesting and receiving the document"],["domLoading","domInteractive","Parsing the document, executing sync. scripts"],["domContentLoadedEventStart","domContentLoadedEventEnd",'Fire "DOMContentLoaded" event'],["loadEventStart","loadEventEnd",'Fire "load" event']],ej=function(){function t(t,e){var n=this;this._config=e,this._logger=t,this.currentTransaction=void 0,this.respIntervalId=void 0,this.recorder=new eN(function(t){var e=n.getCurrentTransaction();if(e&&e.captureTimings){var r,i=e.type===to,a=function(t,e){var n=e.isHardNavigation,r=e.trStart,i=t.getEntriesByType(tI).filter(function(t){return t.startTime>=r}),a={spans:function(t,e){for(var n=[],r=0;r0){var d=c[0],l=d.name,p=d.containerType,h=d.containerName,v=d.containerId,g={attribution:l,type:p};h&&(g.name=h),v&&(g.id=v),f.addContext({custom:g})}f.end(u),n.push(f)}return n}(i,eO.longtask),marks:{}};if(!n)return a;var o=t.getEntriesByType(tO),s=o[o.length-1];if(s){var c=parseInt(s.startTime);eO.lcp=c,a.marks.largestContentfulPaint=c}var u=T.timing,f=u.fetchStart-u.navigationStart;W(u)&&(f=0);var d=t.getEntriesByName("first-contentful-paint")[0];if(d){var l=parseInt(f>=0?d.startTime-f:d.startTime);eO.fcp=l,a.marks.firstContentfulPaint=l}var p=function(t){var e=t[0];if(e){var n=e.startTime,r=e.processingStart,i=new ew("First Input Delay",tN,{startTime:n});return i.end(r),i}}(t.getEntriesByType(tN));return p&&(eO.fid=p.duration(),a.spans.push(p)),i.forEach(function(t){var e=t.name,n=t.startTime,r=t.duration;if(!(n0&&(eO.tbt.duration+=i)}}),t.getEntriesByType(tC).forEach(function(t){!t.hadRecentInput&&t.value&&((t.startTime-eO.cls.firstEntryTime>5e3||t.startTime-eO.cls.prevEntryTime>1e3)&&(eO.cls.firstEntryTime=t.startTime,eO.cls.currentSessionScore=0),eO.cls.prevEntryTime=t.startTime,eO.cls.currentSessionScore+=t.value,eO.cls.score=Math.max(eO.cls.score,eO.cls.currentSessionScore))}),a}(t,{isHardNavigation:i,trStart:i?0:e._start}),o=a.spans,s=a.marks;(r=e.spans).push.apply(r,o),e.addMarks({agent:s})}})}var e=t.prototype;return e.createCurrentTransaction=function(t,e,n){var r=new ek(t,e,n);return this.currentTransaction=r,r},e.getCurrentTransaction=function(){if(this.currentTransaction&&!this.currentTransaction.ended)return this.currentTransaction},e.createOptions=function(t){var e=this._config.config,n=A({transactionSampleRate:e.transactionSampleRate},t);return n.managed&&(n=A({pageLoadTraceId:e.pageLoadTraceId,pageLoadSampled:e.pageLoadSampled,pageLoadSpanId:e.pageLoadSpanId,pageLoadTransactionName:e.pageLoadTransactionName,pageLoadParentId:e.pageLoadParentId},n)),n},e.startManagedTransaction=function(t,e,n){var r=this.getCurrentTransaction(),i=!1;if(r)if(r.canReuse()&&n.canReuse){var a=r.type,o=tp.indexOf(r.type),s=tp.indexOf(e);o>=0&&s=t._start||e.shouldIgnoreTransaction(r)||i===tf)return void e._config.dispatchEvent(ty);if(i===to){var a=e._config.get("pageLoadTransactionName");if(r===td&&a&&(t.name=a),t.captureTimings){var o,s,c,u=eO.cls,f=eO.fid,d=eO.tbt,l=eO.longtask;d.duration>0&&t.spans.push((o=d.start,s=d.duration,(c=new ew("Total Blocking Time",tI,{startTime:o})).end(o+s),c)),t.experience={},J(tI)&&(t.experience.tbt=d.duration),J(tC)&&(t.experience.cls=u.score),f>0&&(t.experience.fid=f),l.count>0&&(t.experience.longtask={count:l.count,sum:l.duration,max:l.max})}e.setSession(t)}t.name===td&&(t.name=function(t,e){void 0===e&&(e=2);for(var n=new tZ(t),r=n.query,i=n.path.substring(1).split("/"),a=/\W|_/g,o=/[0-9]/g,s=/[a-z]/g,c=/[A-Z]/g,u=[],f=!1,d=0;de-1){l&&u.push("*");break}if((l.match(a)||[]).length>=2){u.push(":id"),f=!0;continue}var p=(l.match(o)||[]).length;if(p>3||l.length>3&&p/l.length>=.3){u.push(":id"),f=!0;continue}var h=(l.match(c)||[]).length,v=(l.match(s)||[]).length/l.length,g=h/l.length;if(l.length>5&&(g>.3&&g<.6||v>.3&&v<.6)){u.push(":id"),f=!0;continue}l&&u.push(l)}return"/"+(u.length>=2?u.join("/"):u.join(""))+(r?"?{query}":"")}(n)),function(t){if(!t.captureTimings){t.type===to&&(t._start=0);return}var e=t._end;if(t.type===to){if(t.marks&&t.marks.custom){var n,r=t.marks.custom;Object.keys(r).forEach(function(e){r[e]+=t._start})}t._start=0;var i=T.timing,a=W(i)?i.redirectStart:i.fetchStart;(function(t,e,n){for(var r=[],i=0;i=r&&i>=n&&a>=i){var o={};return ec.forEach(function(r){var i=t[r];i&&i>=n&&(W(t)?o[r]=parseInt(i-e):o[r]=parseInt(i-n))}),o}return null}(i))?null:{navigationTiming:n,agent:{timeToFirstByte:n.responseStart,domInteractive:n.domInteractive,domComplete:n.domComplete}})}if(V()){var o=t._start;(function(t,e,n,r){for(var i=[],a=0;ae))&&eC(u,f,n,r)&&i.push(function(t){var e=t.name,n=t.initiatorType,r=t.startTime,i=t.responseEnd,a="resource";n&&(a+="."+n);var o=new ew(j(e),a);return o._start=r,o.end(i,{url:e,entry:t}),o}(t[a]))}return i})(T.getEntriesByType("resource"),tJ.bootstrapTime,o,e).forEach(function(e){return t.spans.push(e)}),(function(t,e,n){for(var r=[],i=0;i0&&(a={response:tY(o[0])})}t.addContext(i,a,r)}(t,e._config.get("context")),e._config.events.send(th,[t])},function(t){})},e.setSession=function(t){var e=this._config.get("session");if(e){"boolean"==typeof e||e.timestamp&&Date.now()-e.timestamp>18e5?t.session={id:O(16),sequence:1}:t.session={id:e.id,sequence:e.sequence?e.sequence+1:1};var n={session:{id:t.session.id,sequence:t.session.sequence,timestamp:Date.now()}};this._config.setConfig(n),this._config.setLocalConfig(n,!0)}},e.adjustTransactionTime=function(t){var e=t.spans,n=function(t){for(var e=t[0],n=1;nr._start&&(e=r)}return e}(e);n&&n._startt._end&&(t._end=r);this.truncateSpans(e,t._end)},e.truncateSpans=function(t,e){for(var n=0;ne&&(r._end=e,r.type+=tH),r._start>e&&(r._start=e)}},e.shouldIgnoreTransaction=function(t){var e=this._config.get("ignoreTransactions");if(e&&e.length)for(var n=0;n0){var r=n[0];r.duration=Math.max(r.duration,t.duration)}else eR.longestInteractions.push({id:t.interactionId,duration:t.duration});eR.longestInteractions.sort(function(t,e){return e.duration-t.duration}),eR.longestInteractions.splice(10)}}(t))})}function eA(){return performance.interactionCount||eR.interactionCount}function eF(t,e){if(function(t){var e=function(){if(0===eR.longestInteractions.length)return eA()>0?0:void 0;var t=Math.min(eR.longestInteractions.length-1,Math.floor(eA()/50));return eR.longestInteractions[t].duration}();if(e>=0){var n=z(),r=t.startTransaction(tl,tl,{startTime:n}),i=performance.getEntriesByType("navigation");if(i.length>0){var a=i[0].name;r.addContext({page:{url:a}})}return r.addLabels({inp_value:e}),r.end(n+e+1),eR.minInteractionId=1/0,eR.maxInteractionId=0,eR.interactionCount=0,eR.longestInteractions=[],r}}(e))var n=t.observeEvent(tm,function(){eq(t,e),n()});else eq(t,e)}function eq(t,e){var n=e.getCurrentTransaction();if(n){var r=t.observeEvent(ty,function(){tJ.lastHiddenStart=z(),r(),i()}),i=t.observeEvent(tm,function(){t.dispatchEvent(tg),tJ.lastHiddenStart=z(),i(),r()});n.end()}else t.dispatchEvent(tg),tJ.lastHiddenStart=z()}var eM=function(){function t(t,e){this._disable=e,this.serviceFactory=t,this._initialized=!1}var e=t.prototype;return e.isEnabled=function(){return!this._disable},e.isActive=function(){var t=this.serviceFactory.getService(tR);return this.isEnabled()&&this._initialized&&t.get("active")},e.init=function(t){var e=this;if(this.isEnabled()&&!this._initialized){this._initialized=!0;var n=this.serviceFactory.getService([tR,tP,tA]),r=n[0],i=n[1],a=n[2];r.setVersion("5.17.4"),this.config(t);var o=r.get("logLevel");if(i.setLevel(o),r.get("active")){this.serviceFactory.init();var s,c,u,f,d,l,p=(s=r.get("instrument"),c=r.get("disableInstrumentations"),(u={})[tb]=!1,u[t_]=!1,u[tS]=!1,u[to]=!1,u[tT]=!1,u[tw]=!1,u[tx]=!1,f=u,s&&Object.keys(f).forEach(function(t){-1===c.indexOf(t)&&(f[t]=!0)}),f);if(this.serviceFactory.getService(tq).init(p),p[tT]&&this.serviceFactory.getService(tM).registerListeners(),r.get("session")){var h=r.getLocalConfig();h&&h.session&&r.setConfig({session:h.session})}var v=function(){return p[to]&&e._sendPageLoadMetrics()};r.get("centralConfig")?this.fetchCentralConfig().then(v):v(),"hidden"===document.visibilityState&&(tJ.lastHiddenStart=0),window.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&eF(r,a)},!0),window.addEventListener("pagehide",function(){return eF(r,a)},!0),p[tw]&&p[tx]&&window.addEventListener("click",function(t){var e,n,r,i,o,s,c,u,f;t.target instanceof Element&&(e=a,n=t.target,c=(s=((i={transactionName:null,context:null}).transactionName=function(t){var e=function(t){var e="data-transaction-name",n=t.getAttribute(e);if(t.closest){var r=t.closest("a[data-transaction-name], button[data-transaction-name]");return r?r.getAttribute(e):n}return n}(t);if(e)return e;var n=t.tagName.toLowerCase(),r=t.getAttribute("name");return r?n+'["'+r+'"]':n}(r=n),(o=r.getAttribute("class"))&&(i.context={custom:{classes:o}}),i)).transactionName,u=s.context,(f=e.startTransaction("Click - "+c,tc,{managed:!0,canReuse:!0,reuseThreshold:300}))&&u&&f.addContext(u))},!0),void 0===d&&(d=new eN(eP)),l=X(),d.start("event",{buffered:!0,durationThreshold:l?40:16}),l||d.start(tN)}else this._disable=!0,i.warn("RUM agent is inactive")}return this},e.fetchCentralConfig=function(){var t=this.serviceFactory.getService([tF,tP,tR]),e=t[0],n=t[1],r=t[2];return e.fetchConfig(r.get("serviceName"),r.get("environment")).then(function(t){var e=t.transaction_sample_rate;if(e){var i={transactionSampleRate:e=Number(e)},a=r.validate(i).invalid;if(0===a.length)r.setConfig(i);else{var o=a[0],s=o.key,c=o.value,u=o.allowed;n.warn('invalid value "'+c+'" for '+s+". Allowed: "+u+".")}}return t}).catch(function(t){n.warn("failed fetching config:",t)})},e._sendPageLoadMetrics=function(){var t=this.startTransaction(void 0,to,{managed:!0,canReuse:!0});if(t){t.addTask(to);var e=function(){setTimeout(function(){return t.removeTask(to)},1e3)};"complete"===document.readyState?e():window.addEventListener("load",e)}},e.observe=function(t,e){this.serviceFactory.getService(tR).events.observe(t,e)},e.config=function(t){var e=this.serviceFactory.getService([tR,tP]),n=e[0],r=e[1],i=n.validate(t),a=i.missing,o=i.invalid,s=i.unknown;if(s.length>0){var c="Unknown config options are specified for RUM agent: "+s.join(", ");r.warn(c)}if(0===a.length&&0===o.length)n.setConfig(t);else{var u="RUM agent isn't correctly configured. ";a.length>0&&(u+=a.join(", ")+" is missing",o.length>0&&(u+=", ")),o.forEach(function(t,e){var n=t.key,r=t.value,i=t.allowed;u+=n+' "'+r+'" contains invalid characters! (allowed: '+i+")"+(e!==o.length-1?", ":"")}),r.error(u),n.setConfig({active:!1})}},e.setUserContext=function(t){this.serviceFactory.getService(tR).setUserContext(t)},e.setCustomContext=function(t){this.serviceFactory.getService(tR).setCustomContext(t)},e.addLabels=function(t){this.serviceFactory.getService(tR).addLabels(t)},e.setInitialPageLoadName=function(t){this.serviceFactory.getService(tR).setConfig({pageLoadTransactionName:t})},e.startTransaction=function(t,e,n){if(this.isEnabled())return this.serviceFactory.getService(tA).startTransaction(t,e,n)},e.startSpan=function(t,e,n){if(this.isEnabled())return this.serviceFactory.getService(tA).startSpan(t,e,n)},e.getCurrentTransaction=function(){if(this.isEnabled())return this.serviceFactory.getService(tA).getCurrentTransaction()},e.captureError=function(t,e){if(this.isEnabled())return this.serviceFactory.getService(tM).logError(t,e)},e.addFilter=function(t){this.serviceFactory.getService(tR).addFilter(t)},t}(),eH=function(){if(x&&window.elasticApm)return window.elasticApm;var t=(x&&"function"==typeof Set&&"function"==typeof JSON.stringify&&T&&"function"==typeof T.now&&"withCredentials"in new window.XMLHttpRequest?(!function(){if(!tV&&(tV=!0,!function(t){var e=XMLHttpRequest.prototype;if(e&&e[ti])var n="readystatechange",r="load",i="error",a=Q(e,"open",function(){return function(t,e){return t[Y]||(t[te]=e[0],t[tt]=e[1],t[K]=!1===e[2]),a.apply(t,e)}}),o=Q(e,"send",function(){return function(e,a){if(e[Y])return o.apply(e,a);var c={source:tb,state:"",type:"macroTask",data:{target:e,method:e[te],sync:e[K],url:e[tt],status:""}};try{return function(e){if(e.state!==tn){e.state=tn,t(tn,e);var a=e.data.target;o(n),o(r),o("timeout"),o(i),o("abort")}function o(t){a[ti](t,function(t){var i=t.type;i===n?4===a.readyState&&0!==a.status&&s(e,"success"):s(e,i===r?"success":i)})}}(c),o.apply(e,a)}catch(t){throw s(c,i),t}}});function s(e,n){e.state!==tr&&(e.state=tr,e.data.status=n,t(tr,e))}}(function(t,e){t$.send(tb,[t,e])}),!function(t){if(tD()){var e=window.fetch;window.fetch=function(i,a){var o,s,c=this,u=arguments,f=i instanceof URL;if("string"==typeof i||f)o=new Request(i,a),s=f?o.url:i;else{if(!i)return e.apply(c,u);s=(o=new Request(i,a)).url}var d={source:t_,state:"",type:"macroTask",data:{target:o,method:o.method,url:s,aborted:!1}};return new S(function(i,a){var s,u;G.fetchInProgress=!0,(u=d).state=tn,t(tn,u);try{s=e.apply(c,[o])}catch(t){a(t),d.data.error=t,n(d),G.fetchInProgress=!1;return}s.then(function(t){var e=t.clone?t.clone():{};i(t),$(function(){d.data.response=t;var i,a,o,s,c=e.body;c?(i=c,a=d,o=i.getReader(),(s=function(){o.read().then(function(t){t.done?n(a):s()},function(t){r(a,t)})})()):n(d)})},function(t){a(t),$(function(){r(d,t)})}),G.fetchInProgress=!1})}}function n(e){e.state=tr,t(tr,e)}function r(t,e){var r;t.data.aborted=(r=e)&&"AbortError"===r.name,t.data.error=e,n(t)}}(function(t,e){t$.send(t_,[t,e])}),window.history)){var t=history.pushState;"function"==typeof t&&(history.pushState=function(e,n,r){var i,a;i=tr,a={source:tS,data:{state:e,title:n,url:r}},t$.send(tS,[i,a]),t.apply(this,arguments)})}}(),tJ.bootstrapTime=z(),tX=!0):x&&console.log("[Elastic APM] platform is not supported!"),tX),e=new eM((em[tA]=function(t){var e=t.getService([tP,tR]);return new ej(e[0],e[1])},em[tq]=function(t){var e=t.getService([tF,tR,tP,tA]);return new eb(e[0],e[1],e[2],e[3])},em[tM]=function(t){var e=t.getService([tF,tR,tA]);return new ea(e[0],e[1],e[2])},new ey),!t);return x&&(window.elasticApm=e),e}();eH.init.bind(eH)({serviceName:"viewer-webcard-prod",environment:"uolcs-host-conecte",serverUrl:"https://run.service.uol.com.br"});let eU=function({Component:t,pageProps:e}){let n=(0,a.useRouter)(),r=(0,c.m)(e?.data),u=n.pathname.endsWith("/newlayout");return(0,i.jsxs)("div",{children:[!u&&r&&(0,i.jsx)(s,{}),(0,i.jsx)(t,{...e}),!u&&(0,i.jsx)(o,{})]})}},3039:()=>{},3115:function(t,e,n){var r,i,a;!function(o){"use strict";i=[n(1895)],void 0===(a="function"==typeof(r=o)?r.apply(e,i):r)||(t.exports=a)}(function(t){"use strict";var e=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;function i(t,e,n){if("function"==typeof Array.prototype.map)return t.map(e,n);for(var r=Array(t.length),i=0;i-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),r=this.extractLocation(n.pop());return new t(n.join(" ")||void 0,void 0,function(t,e){if("function"==typeof Array.prototype.indexOf)return t.indexOf(e);for(var n=0;n"],r[0])>-1?void 0:r[0],r[1],r[2],e)},this)},parseFFOrSafari:function(e){return i(a(e.stack.split("\n"),function(t){return!t.match(r)},this),function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new t(e);var n=e.split("@"),r=this.extractLocation(n.pop());return new t(n.join("@")||void 0,void 0,r[0],r[1],r[2],e)},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),i=[],a=2,o=r.length;a/,"$2").replace(/\([^\)]*\)/g,"")||void 0;return a.match(/\(([^\)]*)\)/)&&(n=a.replace(/^[^\(]+\(([^\)]*)\)$/,"$1")),new t(o,void 0===n||"[arguments not available]"===n?void 0:n.split(","),i[0],i[1],i[2],e)},this)}}})},5417:(t,e,n)=>{"use strict";n.d(e,{m:()=>a,R:()=>i});let r=t=>{try{let e=JSON.parse(t);if(Array.isArray(e)&&e.every(t=>"string"==typeof t))return e}catch(t){console.warn("Erro ao fazer parse de labels:",t)}return[]},i=t=>!!t&&(!!r(t?.labels??"[]").includes("vendor:MODA_CENTER")||"PRO"===t.account_payment_type),a=t=>!(!t||r(t?.labels??"[]").includes("vendor:MODA_CENTER"))&&"FREE"===t.account_payment_type},9099:(t,e,n)=>{t.exports=n(9603)}},t=>{var e=e=>t(t.s=e);t.O(0,[593,792],()=>(e(92),e(9603))),_N_E=t.O()}]);