1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,906334,t=>{"use strict";t.s(["_",0,function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}])},203877,t=>{"use strict";function e(t,e){return e===r(t)}function r(t){var e=typeof t;return"object"!==e?e:t?t instanceof Error?"error":({}).toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function n(t){return e(t,"function")}function o(t){return null!=t&&("object"==typeof t||"function"==typeof t)}function i(t,e){return null!=t&&(Object.hasOwn?Object.hasOwn(t,e):Object.prototype.hasOwnProperty.call(t,e))}function s(t){return Number.isFinite(t)}function a(t){return e(t,"error")||e(t,"exception")}function l(){return"********"}var u={debug:0,info:1,warning:2,error:3,critical:4},c=!1,h=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],p={name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},d={strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/};function f(t,e){if((e=e||t.protocol)||!t.port||(80===t.port?e="http:":443===t.port&&(e="https:")),e=e||"https:",!t.hostname)return null;var r=e+"//"+t.hostname;return t.port&&(r=r+":"+t.port),t.path&&(r+=t.path),r}function m(t,e){var r,o;try{r=JSON.stringify(t)}catch(i){if(e&&n(e))try{r=e(t)}catch(t){o=t}else o=i}return{error:o,value:r}}function g(t){var e,r;try{e=JSON.parse(t)}catch(t){r=t}return{error:r,value:e}}function v(t,e,r,n,o,i,s,a){var l={url:e||"",line:r,column:n};l.func=a.guessFunctionName(l.url,l.line),l.context=a.gatherContext(l.url,l.line);var u="u">typeof document&&document&&document.location&&document.location.href,c="u">typeof window&&window&&window.navigator&&window.navigator.userAgent;return{mode:i,message:o?String(o):t||s,url:u,stack:[l],useragent:c}}function y(t){var n=[t];return function t(n,o){var i,s,a,l={};try{for(s in n){if((i=n[s])&&(e(i,"object")||e(i,"array"))){o.includes(i)?l[s]="Removed circular reference: "+r(i):((a=o.slice()).push(i),l[s]=t(i,a));continue}l[s]=i}}catch(t){l="Failed cloning custom data: "+t.message}return l}(t,n)}var b=["log","network","dom","navigation","error","manual"],_=["critical","error","warning","info","debug"];function w(t,e){for(let r of t)if(r===e)return!0;return!1}function k(t,e){for(let r of(t.attributes=t.attributes||[],e))void 0!==r.value&&t.attributes.push(r)}function x(t,e){if(t){var r=e.split("."),n=t;try{for(var o=0,i=r.length;o<i;++o)n=n[r[o]]}catch(t){n=void 0}return n}}function S(t,e,r){if(t){Object.setPrototypeOf(t,null);var n=e.split("."),o=n.length;if(!(o<1)){if(1===o){t[n[0]]=r;return}try{for(var i=t[n[0]]||{},s=i,a=1;a<o-1;++a)i[n[a]]=i[n[a]]||{},i=i[n[a]];i[n[o-1]]=r,t[n[0]]=s}catch(t){return}}}}function I(){return Date.now?Date.now():Number(new Date)}function E(t,e,r,n){var o,i,s=R(t,e,r);return o=s,i=n,o.hostWhiteList&&!o.hostSafeList&&(o.hostSafeList=o.hostWhiteList,o.hostWhiteList=void 0,i&&i.log("hostWhiteList is deprecated. Use hostSafeList.")),o.hostBlackList&&!o.hostBlockList&&(o.hostBlockList=o.hostBlackList,o.hostBlackList=void 0,i&&i.log("hostBlackList is deprecated. Use hostBlockList.")),s=o,!e||e.overwriteScrubFields||e.scrubFields&&(s.scrubFields=(t.scrubFields||[]).concat(e.scrubFields)),s}function R(){function t(t){if(!t||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e,r=i(t,"constructor"),n=t.constructor&&t.constructor.prototype&&i(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;for(e in t);return void 0===e||i(t,e)}var e,r,n,o,s,a=Object.create(null),l=null,u=arguments.length;for(e=0;e<u;e++)if(l=arguments[e],null!=l)for(s in l)r=a[s],a!==(n=l[s])&&(n&&t(n)?(o=r&&t(r)?r:{},a[s]=R(o,n)):void 0!==n&&(a[s]=n));return a}function T(t,r,n){if(!r?.sessionId||!n)return!1;let o=t?.tracing?.propagation,i=o?.enabledHeaders;if(!Array.isArray(i)||!i.includes("baggage"))return!1;let s=o?.enabledCorsUrls;return!!Array.isArray(s)&&0!==s.length&&s.some(t=>e(t,"string")?n===t:!!e(t,"regexp")&&t.test(n))}let C=function(t,r,n){var o,s,a,l,u=e(t,"object"),c=e(t,"array"),h=[];if(n=n||{obj:[],mapped:[]},u){if(l=n.obj.indexOf(t),u&&-1!==l)return n.mapped[l]||n.obj[l];n.obj.push(t),l=n.obj.length-1}if(u)for(o in t)i(t,o)&&h.push(o);else if(c)for(a=0;a<t.length;++a)h.push(a);var p=u?{}:[],d=!0;for(a=0;a<h.length;++a)s=t[o=h[a]],p[o]=r(o,s,n),d=d&&p[o]===t[o];
1return u&&!d&&(n.mapped[l]=p),d?t:p},A=function(t,r,n){if(r=r||[],n)for(let e of n)!function(t,e){var r=e.split("."),n=r.length-1;try{for(let[e,o]of r.entries())e<n?t=t[o]:t[o]=l()}catch(t){}}(t,e);var o=function(t){var e=[];for(let n of t){var r="^\\[?(%5[bB])?"+n+"\\[?(%5[bB])?\\]?(%5[dD])?$";e.push(RegExp(r,"i"))}return e}(r),i=function(t){var e=[];for(let n of t){var r="\\[?(%5[bB])?"+n+"\\[?(%5[bB])?\\]?(%5[dD])?";e.push(RegExp("("+r+"=)([^&\\n]+)","igm"))}return e}(r);function s(t,e){return e+l()}return C(t,function t(r,n,a){var u=function(t,e){for(let r of o)if(r.test(t)){e=l();break}return e}(r,n);if(u!==n)return u;if(e(n,"object")||e(n,"array"))return C(n,t,a);var c=u;if(e(c,"string"))for(let t of i)c=c.replace(t,s);return c})};function O(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}let L=class{configure(t){var e=this.options;this.options=R(e,t);var r=Math.max(0,Math.min(this.options.maxTelemetryEvents||100,100)),n=0;this.queue.length>r&&(n=this.queue.length-r),this.maxQueueSize=r,this.queue.splice(0,n)}copyEvents(){var t=Array.prototype.slice.call(this.queue,0);if(n(this.options.filterTelemetry))try{for(var e=t.length;e--;)this.options.filterTelemetry(t[e])&&t.splice(e,1)}catch(t){this.options.filterTelemetry=null}return(t=t.filter(t=>"connectivity"!==t.type)).map(t=>{let{otelAttributes:e,...r}=t;return r})}exportTelemetrySpan(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.telemetrySpan&&(this.telemetrySpan.end(t),this.telemetrySpan=this.tracing.startSpan("rollbar-telemetry",{}))}capture(t,e,r,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;var a,l,u={level:(a=t,(l=r)||({error:"error",manual:"info"})[a]||"info"),type:t,timestamp_ms:i||I(),body:e,source:"client"};o&&(u.uuid=o),s&&(u.otelAttributes=s);try{if(n(this.options.filterTelemetry)&&this.options.filterTelemetry(u))return!1}catch(t){this.options.filterTelemetry=null}return this.push(u),u}captureEvent(t,e,r,n){return this.capture(t,e,r,n)}captureError(t,e,r,n){let o=t.message||String(t);var i={message:o};t.stack&&(i.stack=t.stack);let s={message:o,level:e,type:"error",uuid:r};return this.telemetrySpan?.addEvent("rollbar-occurrence-event",s,O(n)),this.capture("error",i,e,r,n,s)}captureLog(t,e,r,n){let o=r?"rollbar-occurrence-event":"rollbar-log-event",i={message:t,level:e,...r?{type:"message",uuid:r}:{}};return this.telemetrySpan?.addEvent(o,i,O(n)),this.capture("log",{message:t},e,r,n,i)}captureNetwork(t,e,r,n){e=e||"xhr",t.subtype=t.subtype||e,n&&(t.request=n);let o=this.levelFromStatus(t.status_code),i=1e6*(t.end_time_ms||0),s={type:t.subtype,method:t.method,url:t.url,statusCode:t.status_code,"request.headers":JSON.stringify(t.request_headers||{}),"response.headers":JSON.stringify(t.response?.headers||{}),"response.timeUnixNano":i.toString()},a=t.request,l=t.response?.body;return a&&(s["request.body"]=JSON.stringify(a)),l&&(s["response.body"]=JSON.stringify(l)),this.telemetrySpan?.addEvent("rollbar-network-event",s,O(t.start_time_ms)),this.capture("network",t,o,r,t.start_time_ms,s)}levelFromStatus(t){return t>=200&&t<400?"info":0===t||t>=400?"error":"info"}captureDom(t,e,r,n,o){var i={subtype:t,element:e};return void 0!==r&&(i.value=r),void 0!==n&&(i.checked=n),this.capture("dom",i,"info",o)}captureInput(t){let{type:e,isSynthetic:r,element:n,value:o,timestamp:i}=t,s="rollbar-input-event",a={type:e,isSynthetic:r,element:n,value:o,endTimeUnixNano:O(i)},l=this._getRepeatedEvent(s,a);return l?this._updateRepeatedEvent(l,a,i):(this.telemetrySpan?.addEvent(s,a,O(i)),this.capture("dom",{type:s,subtype:e,element:n,value:o},"info",null,i,a))}captureClick(t){let{type:e,isSynthetic:r,element:n,timestamp:o}=t,i="rollbar-click-event",s={type:e,isSynthetic:r,element:n,endTimeUnixNano:O(o)},a=this._getRepeatedEvent(i,s);return a?this._updateRepeatedEvent(a,s,o):(this.telemetrySpan?.addEvent(i,s,O(o)),this.capture("dom",{type:i,subtype:e,element:n},"info",null,o,s))}_getRepeatedEvent(t,e){let r=this._lastEvent(this.queue);if(r&&r.body.type===t&&r.otelAttributes.target===e.target)return r}_updateRepeatedEvent(t,e,r){let n=Math.max(r-t.timestamp_ms,1);t.body.value=e.value,t.otelAttributes.value=e.value,t.otelAttributes.height=e.height,t.otelAttributes.width=e.width,t.otelAttributes.textZoomRatio=e.textZoomRatio,t.otelAttributes.endTimeUnixNano=O(r),t.otelAttributes.durationUnixNano=O(n),t.otelAttributes.count=(t.otelAttributes.count||1)+1,t.otelAttributes.rate=t.otelAttributes.count/(n/1e3)}_lastEvent(t){return t.length>0?t[t.length-1]:null}captureFocus(t){let{type:e,isSynthetic:r,element:n,timestamp:o}=t,i="rollbar-focus-event",s={type:e,isSynthetic:r,element:n};return this.telemetrySpan?.addEvent(i,s,O(o)),this.capture("dom",{type:i,subtype:e,element:n},"info",null,o,s)}captureResize(t){let{type:e,isSynthetic:r,width:n,height:o,textZoomRatio:i,timestamp:s}=t,a="rollbar-resize-event",l={type:e,isSynthetic:r,width:n,height:o,textZoomRatio:i},u=this._getRepeatedEvent(a,l);return u?this._updateRepeatedEvent(u,l,s):(this.telemetrySpan?.addEvent(a,l,O(s)),this.capture("dom",{type:a,subtype:e,width:n,height:o,textZoomRatio:i},"info",null,s,l))}captureDragDrop(t){let{type:e,isSynthetic:r,element:n,dropEffect:o,effectAllowed:i,kinds:s,mediaTypes:a,timestamp:l}=t,u="rollbar-dragdrop-event",c={type:u,subtype:e,isSynthetic:r},h={type:e,isSynthetic:r};return"dragstart"===e&&(c={...c,element:n,dropEffect:o,effectAllowed:i},h={...h,element:n,dropEffect:o,effectAllowed:i}),"drop"===e&&(c={...c,element:n,dropEffect:o,effectAllowed:i,kinds:s,mediaTypes:a},h={...h,element:n,dropEffect:o,effectAllowed:i,kinds:s,mediaTypes:a}),this.telemetrySpan?.addEvent(u,h,O(l)),this.capture("dom",c,"info",null,l,h)}captureNavigation(t,e,r,n){return this.telemetrySpan?.addEvent("rollbar-navigation-event",{"previous.url.full":t,"url.full":e},O(n)),this.capture("navigation",{from:t,to:e},"info",r,n)}captureDomContentLoaded(t){return this.capture("navigation",{subtype:"DOMContentLoaded"},"info",void 0,t&&t.getTime())}captureLoad(t){return this.capture("navigation",{subtype:"load"},"info",void 0,t&&t.getTime())}captureConnectivityChange(t){let{type:e,isSynthetic:r,timestamp:n}=t,o="rollbar-connectivity-event",i={type:e,isSynthetic:r};return this.telemetrySpan?.addEvent(o,i,O(n)),this.capture("connectivity",{type:o,subtype:e},"info",null,n,i)}
1_captureRollbarItem(t){if(this.options.includeItemsInTelemetry){if(t.err)return this.captureError(t.err,t.level,t.uuid,t.timestamp);if(t.message)return this.captureLog(t.message,t.level,t.uuid,t.timestamp);if(t.custom)return this.capture("log",t.custom,t.level,t.uuid,t.timestamp)}}push(t){this.queue.push(t),this.queue.length>this.maxQueueSize&&this.queue.shift()}constructor(t,e){this.queue=[],this.options=R(t);var r=this.options.maxTelemetryEvents||100;this.maxQueueSize=Math.max(0,Math.min(r,100)),this.tracing=e,this.telemetrySpan=this.tracing?.startSpan("rollbar-telemetry",{})}},P=new class t{getValue(t){return this._currentContext.get(t)}setValue(e,r){let n=new t(this._currentContext);return n._currentContext.set(e,r),n}deleteValue(e){let r=new t(self._currentContext);return r._currentContext.delete(e),r}constructor(t){this._currentContext=t?new Map(t):new Map}};class q{active(){return this.currentContext}enterContext(t){let e=this.currentContext;return this.currentContext=t||P,e}exitContext(t){return this.currentContext=t,this.currentContext}with(t,e,r){for(var n=arguments.length,o=Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];let s=this.enterContext(t);try{return e.call(r,...o)}finally{this.exitContext(s)}}constructor(){this.currentContext=P}}function N(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}let j=function(t){return 1e9*t[0]+t[1]},H=function(){var t,e;let r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r?(t=N(performance.timeOrigin),e=N(performance.now()),[t[0]+e[0]+Math.trunc((t[1]+e[1])/1e9),(t[1]+e[1])%1e9]):N(Date.now())};class M{export(t,e){U.push(...t)}toPayload(){let t=U.slice();if(U.length=0,!t||!t.length)return{resourceSpans:[]};let e=t[0]&&t[0].resource||{},r=new Map;for(let e of t){let t=e.instrumentationScope?`${e.instrumentationScope.name}:${e.instrumentationScope.version}`:"default:1.0.0";r.has(t)||r.set(t,{scope:e.instrumentationScope||{name:"default",version:"1.0.0",attributes:[]},spans:[]}),r.get(t).spans.push(this._transformSpan(e))}return{resourceSpans:[{resource:this._transformResource(e),scopeSpans:Array.from(r.values()).map(t=>({scope:this._transformInstrumentationScope(t.scope),spans:t.spans}))}]}}post(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.api.postSpans(t,e)}_transformSpan(t){let e=t=>Object.entries(t||{}).map(t=>{let[e,r]=t;return{key:e,value:this._transformAnyValue(r)}});return{traceId:t.spanContext.traceId,spanId:t.spanContext.spanId,parentSpanId:t.parentSpanId||"",name:t.name,kind:t.kind||1,startTimeUnixNano:j(t.startTime),endTimeUnixNano:j(t.endTime),attributes:e(t.attributes),events:(t.events||[]).map(t=>({timeUnixNano:j(t.time),name:t.name,attributes:e(t.attributes)}))}}_transformResource(t){return{attributes:Object.entries(t.attributes||{}).map(t=>{let[e,r]=t;return{key:e,value:this._transformAnyValue(r)}})}}_transformInstrumentationScope(t){return{name:t.name||"",version:t.version||"",attributes:(t.attributes||[]).map(t=>({key:t.key,value:this._transformAnyValue(t.value)}))}}_transformAnyValue(t){if(null==t)return{stringValue:""};let e=typeof t;if("string"===e)return{stringValue:t};if("number"===e)if(Number.isInteger(t))return{intValue:t.toString()};else return{doubleValue:t};if("boolean"===e)return{boolValue:t};if(Array.isArray(t))return{arrayValue:{values:t.map(t=>this._transformAnyValue(t))}};if("object"===e)return{kvlistValue:{values:Object.entries(t).map(t=>{let[e,r]=t;return{key:e,value:this._transformAnyValue(r)}})}};return{stringValue:String(t)}}constructor(t,e={}){this.api=t,this.options=e}}let U=[],D=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=new Uint8Array(t);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")};var F=t.i(906334);let J="RollbarSession";class B{init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.session||(this.getSession()||this.createSession(),this.initSessionAttributes(t)),this}getSession(){try{let t=this.window.sessionStorage.getItem(J);if(!t)return null;this.session=JSON.parse(t)}catch{return null}return this}createSession(){return this.session={id:D(),createdAt:Date.now()},this.setSession(this.session)}setSession(t){let e=JSON.stringify(t);try{this.window.sessionStorage.setItem(J,e)}catch{return null}return this}get attributes(){return this._attributes}setAttributes(t){return this._attributes={...this._attributes,...t},this}setUser(t){return this.setAttributes({"user.id":t?.id,"user.email":t?.email,"user.name":t?.name||t?.username}),this}initSessionAttributes(t){return this.setAttributes({"session.id":this.session.id,"browser.brands":navigator.userAgentData?.brands,"browser.language":navigator.language,"browser.mobile":navigator.userAgentData?.mobile,"browser.platform":navigator.userAgentData?.platform,"client.address":"$remote_ip","rollbar.notifier.framework":"browser-js","user_agent.original":navigator.userAgent,...t}),this}constructor(t,e){(0,F._)(this,"_attributes",void 0),this.options=e,this.tracing=t,this.window=t.window,this.session=null,this._attributes={}}}let W=()=>{},V={debug:0,info:1,warn:2,error:3,disable:4},$={error:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return W("error",e)},warn:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return W("warn",e)},info:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return W("info",e)},debug:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return W("debug",e)},log:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return W("info",e)},init:t=>{let{logLevel:e}=t;W=function(t,r){V[t]<V[e]||(r.unshift("Rollbar:"),console[t].apply(console,r))}}};class z{addTransform(t){this.transforms.unshift(t)}userTransform(t){this.options.transformSpan&&this.options.transformSpan({span:t})}applyTransforms(t){for(let e of this.transforms)try{e(t)}catch(t){$.error("Error running span transform callback",t)}}onStart(t,e){this.pendingSpans.set(t.span.spanContext.spanId,t)}onEnd(t){this.applyTransforms(t.span),this.exporter.export([t.export()]),this.pendingSpans.delete(t.span.spanContext.spanId)}constructor(t,e={}){this.exporter=t,this.options=e,this.pendingSpans=new Map,this.transforms=[this.userTransform.bind(this)]}}class X{initReadableSpan(t){this.span={name:t.name,kind:t.kind,spanContext:t.spanContext,parentSpanId:t.parentSpanId,startTime:t.startTime||H(t.usePerformance),endTime:[0,0],status:{code:0,message:""},attributes:{"session.id":t.session?.id},links:[],events:[],duration:0,ended:!1,resource:t.resource,instrumentationScope:t.scope,droppedAttributesCount:0,droppedEventsCount:0,droppedLinksCount:0}}spanContext(){return this.span.spanContext}get spanId(){return this.span.spanContext.spanId}get traceId(){return this.span.spanContext.traceId}setAttribute(t,e){return null==e||this.span.ended||0===t.length||(this.span.attributes[t]=e),this}setAttributes(t){for(let[e,r]of Object.entries(t))this.setAttribute(e,r);return this}addEvent(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this.span.ended||this.span.events.push({name:t,attributes:e,time:r||H(),droppedAttributesCount:0}),this}isRecording(){return!1===this.span.ended}end(t,e){t&&this.setAttributes(t),this.span.endTime=e||H(this.usePerformance),this.span.ended=!0,this.spanProcessor.onEnd(this)}export(){return this.span}constructor(t){return this.usePerformance=t.usePerformance,this.initReadableSpan(t),this.spanProcessor=t.spanProcessor,this.spanProcessor.onStart(this,t.context),t.attributes&&this.setAttributes(t.attributes),this}}class G{startSpan(t){let e,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.tracing.contextManager.active(),i=this.tracing.getSpan(o),s=i?.spanContext(),a=D(8),l=null;s?(e=s.traceId,l=s.traceState,r=s.spanId):e=D(16);let u={traceId:e,spanId:a,traceFlags:0,traceState:l};return new X({resource:{attributes:{...this.tracing.resource?.attributes||{},...n.resource?.attributes||{}}},scope:this.tracing.scope,session:this.tracing.session?.session,context:o,spanContext:u,name:t,kind:0,parentSpanId:r,spanProcessor:this.spanProcessor,startTime:n.startTime,usePerformance:n.usePerformance})}constructor(t,e){this.spanProcessor=e,this.tracing=t}}let Z=Symbol.for("Rollbar Context Key SPAN");function K(t,e){return[t,m(t,e)]}function Q(t,e){var r=t.length;return r>2*e?t.slice(0,e).concat(t.slice(r-e)):t}function Y(t,e,r){r=void 0===r?30:r;var n,o=t.data.body;if(o.trace_chain)for(let t of o.trace_chain)n=Q(n=t.frames,r),t.frames=n;else o.trace&&(n=Q(n=o.trace.frames,r),o.trace.frames=n);return[t,m(t,e)]}function tt(t,e){return e&&e.length>t?e.slice(0,t-3).concat("..."):e}function te(t,e,n){return[e=C(e,function e(n,o,i){switch(r(o)){case"string":return tt(t,o);case"object":case"array":return C(o,e,i);default:return o}}),m(e,n)]}function tr(t){return t.exception&&(delete t.exception.description,t.exception.message=tt(255,t.exception.message)),t.frames=Q(t.frames,1),t}function tn(t,e){var r=t.data.body;if(r.trace_chain){var n=r.trace_chain;for(let[t,e]of n.entries())n[t]=tr(e)}else r.trace&&(r.trace=tr(r.trace));return[t,m(t,e)]}function to(t){if(!e(t.context,"string")){var r=m(t.context);r.error?t.context="Error: could not serialize 'context'":t.context=r.value||"",t.context.length>255&&(t.context=t.context.substr(0,255))}return{data:t}}function ti(t,e,r){var n,o,i,s=e.hostname,a=e.protocol,l=e.port,u=e.path,c=e.search,h=t.timeout,p=(n=t,o="u">typeof window&&window||"u">typeof self&&self,i=n.defaultTransport||"xhr",void 0===o.fetch&&(i="xhr"),void 0===o.XMLHttpRequest&&(i="fetch"),i),d=t.proxy;if(t.endpoint){var f=r.parse(t.endpoint);s=f.hostname,a=f.protocol,l=f.port,u=f.pathname,c=f.search}return{timeout:h,hostname:s,protocol:a,port:l,path:u,search:c,proxy:d,transport:p}}function ts(t,e){var r=t.protocol||"https:",n=t.port||("http:"===r?80:"https:"===r?443:void 0),o=t.hostname,i=t.path,s=t.t
1imeout,a=t.transport;return t.search&&(i+=t.search),t.proxy&&(i=r+"//"+o+i,o=t.proxy.host||t.proxy.hostname,n=t.proxy.port,r=t.proxy.protocol||r),{timeout:s,protocol:r,hostname:o,path:i,port:n,method:e,transport:a}}let ta={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443},tl={hostname:"api.rollbar.com",path:"/api/1/session/",search:null,version:"1",protocol:"https:",port:443};function tu(t,e){return ti(t={...t,endpoint:t.tracing?.endpoint},tl,e)}let tc=class{_postPromise(t){let{accessToken:e,options:r,payload:n,headers:o}=t;return new Promise((t,i)=>{this.transport.post({accessToken:e,options:r,payload:n,headers:o,callback:(e,r)=>e?i(e):t(r)})})}postItem(t,e){let r=ts(this.transportOptions,"POST"),n=to(t);setTimeout(()=>{this.transport.post({accessToken:this.accessToken,options:r,payload:n,callback:e})},0)}async postSpans(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ts(this.OTLPTransportOptions,"POST");return this._postPromise({accessToken:this.accessToken,options:r,payload:t,headers:e})}buildJsonPayload(t,e){let r,n=to(t);return(r=this.truncation?this.truncation.truncate(n):m(n)).error?(e&&e(r.error),null):r.value}postJsonPayload(t,e){let r=ts(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,r,t,e)}configure(t){var e;let r=this.options;return this.options=R(r,t),this.transportOptions=(e=this.options,ti(e,ta,this.url)),this.OTLPTransportOptions=tu(this.options,this.url),void 0!==this.options.accessToken&&(this.accessToken=this.options.accessToken),this}constructor(t,e,r,n){this.options=t,this.transport=e,this.url=r,this.truncation=n,this.accessToken=t.accessToken,this.transportOptions=function(t,e){return ti(t,ta,e)}(t,r),this.OTLPTransportOptions=tu(t,r)}},th=/(^|@)\S+:\d+/,tp=/^\s*at .*(\S+:\d+|\(native\))/m,td=/^(eval@)?(\[native code\])?$/;function tf(t){if(!t.includes(":"))return[t,void 0,void 0];let e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]}function tm(t,e){return e&&null!=e.slice?Array.isArray(e.slice)?t.slice(e.slice[0],e.slice[1]):t.slice(0,e.slice):t}var tg=RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function tv(){return null}function ty(t){var e={};return e._stackFrame=t,e.url=t.fileName,e.line=t.lineNumber,e.func=t.functionName,e.column=t.columnNumber,e.args=t.args,e.context=tv(),e}function tb(t,e){var r,n,o;return{stack:function(){var r,n=[];e=e||0;try{r=t,n=(function(t,e){var r,n,o,i,s,a,l,u,c,h,p,d;if(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"]){return r=t,n=e,!r.stacktrace||r.message.includes("\n")&&r.message.split("\n").length>r.stacktrace.split("\n").length?function(t){let e=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),n=[];for(let t=2,o=r.length;t<o;t+=2){let o=e.exec(r[t]);o&&n.push({file:o[2],line:+o[1],raw:r[t]})}return tm(n,void 0)}(r):r.stack?(o=r,i=n,tm(o.stack.split("\n").filter(t=>!!t.match(th)&&!t.match(/^Error created at/)),i).map(t=>{let e,r=t.split("@"),n=tf(r.pop()),o=r.shift()||"",i=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return o.match(/\(([^)]*)\)/)&&(e=o.replace(/^[^(]+\(([^)]*)\)$/,"$1")),{function:i,args:void 0===e||"[arguments not available]"===e?void 0:e.split(","),file:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:t}})):function(t){let e=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),n=[];for(let t=0,o=r.length;t<o;t+=2){let o=e.exec(r[t]);o&&n.push({function:o[3]||void 0,file:o[2],line:o[1]?+o[1]:void 0,raw:r[t]})}return tm(n,void 0)}(r)}if(t.stack&&t.stack.match(tp)){return s=t,a=e,l=s.stack,u=a,tm(l.split("\n").filter(t=>!!t.match(tp)),u).map(t=>{t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let e=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=e.match(/ (\(.+\)$)/);e=r?e.replace(r[0],""):e;let n=tf(r?r[1]:e);return{function:r&&e||void 0,file:["eval","<anonymous>"].includes(n[0])?void 0:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:t}})}if(t.stack){return c=t,h=e,p=c.stack,d=h,tm(p.split("\n").filter(t=>!t.match(td)),d).map(t=>{if(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":"))return{function:t};
1{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,r=t.match(e),n=r&&r[1]?r[1]:void 0,o=tf(t.replace(e,""));return{function:n,file:o[0],line:o[1]?+o[1]:void 0,col:o[2]?+o[2]:void 0,raw:t}}})}if(e?.allowEmpty)return[];throw Error("Cannot parse given Error object")})(r,void 0).map(t=>({functionName:t.function,args:t.args,fileName:t.file,lineNumber:t.line,columnNumber:t.col,source:t.raw}))}catch(t){n=[]}for(var o=[],i=e;i<n.length;i++)o.push(new ty(n[i]));return o}(),message:t.message,name:(n=(r=t).name&&r.name.length&&r.name,o=r.constructor.name&&r.constructor.name.length&&r.constructor.name,n&&o?"Error"===n?o:n:n||o),rawStack:t.stack,rawException:t}}let t_={guessFunctionName:function(){return"?"},guessErrorClass:function(t){if(!t||!t.match)return["Unknown error. There was no error message to display.",""];var e=t.match(tg),r="(unknown)";return e&&(r=e[e.length-1],t=(t=t.replace((e[e.length-2]||"")+r+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[r,t]},gatherContext:tv,parse:function(t,e){var r=t;if(!r.nested&&!r.cause)return new tb(r,e);for(var n=[];r;)n.push(new tb(r,e)),r=r.nested||r.cause,e=0;return n[0].traceChain=n,n[0]},Stack:tb,Frame:ty};function tw(t,e){return!((u[t.level]||0)<(u[e.reportLevel]||0))}function tk(t,r,n,o){var i,s,a=!1;"blocklist"===n&&(a=!0);try{if(i=a?r.hostBlockList:r.hostSafeList,s=x(t,"body.trace_chain")||[x(t,"body.trace")],!i||0===i.length||0===s.length||!s[0])return!a;for(var l=s.length,u=0;u<l;u++)if(function(t,r,n){if(!t)return!n;var o,i=t.frames;if(!i||0===i.length)return!n;for(var s=r.length,a=i.length,l=0;l<a;l++){if(!e(o=i[l].filename,"string"))return!n;for(var u=0;u<s;u++)if(new RegExp(r[u]).test(o))return!0}return!1}(s[u],i,a))return!0}catch(t){a?r.hostBlockList=null:r.hostSafeList=null;var c=a?"hostBlockList":"hostSafeList";return o.error("Error while reading your configuration's "+c+" option. Removing custom "+c+".",t),!a}return!1}class tx{configure(t){this.queue?.configure(t);let e=this.options;return this.options=R(e,t),this}addTransform(t){return n(t)&&this.transforms.push(t),this}log(t,e){if(e=n(e)?e:()=>{},!this.options.enabled)return e(Error("Rollbar is not enabled"),null);this.queue.addPendingItem(t);let r=t.err;this._applyTransforms(t,(n,o)=>{if(n)return this.queue.removePendingItem(t),e(n,null);this.queue.addItem(o,e,r,t)})}_applyTransforms(t,e){let r=-1,n=this.transforms.length,o=this.transforms,i=this.options,s=(t,a)=>{t?e(t,null):++r===n?e(null,a):o[r](a,i,s)};s(null,t)}constructor(t,e){this.queue=t,this.options=e,this.transforms=[],this.diagnostic={}}}class tS{configure(t){this.api?.configure(t);let e=this.options;return this.options=R(e,t),this}addPredicate(t){return n(t)&&this.predicates.push(t),this}addPendingItem(t){this.pendingItems.push(t)}removePendingItem(t){let e=this.pendingItems.indexOf(t);-1!==e&&this.pendingItems.splice(e,1)}addItem(t,e,r,o){e&&n(e)||(e=function(){});let i=t.data,s=this._applyPredicates(i);if(s.stop){this.removePendingItem(o),e(s.err);return}if(this._maybeLog(i,r),this.removePendingItem(o),!this.options.transmit)return void e(Error("Transmit disabled"));this.replay&&i.body&&(t.replayId=this.replay.capture(null,i.uuid,{type:"occurrence",level:t.level}),t.replayId&&k(t.data,[{key:"replay_id",value:t.replayId}])),this.pendingRequests.push(i);try{this._makeApiRequest(i,(r,n,o)=>{this._dequeuePendingRequest(i),t.replayId&&this.replay.sendOrDiscardReplay(t.replayId,r,n,o),e(r,n)})}catch(r){this._dequeuePendingRequest(i),t.replayId&&this.replay?.discard(t.replayId),e(r)}}wait(t){!n(t)||(this.waitCallback=t,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval(()=>{this._maybeCallWait()},500)))}_applyPredicates(t){let e=null;for(let r=0,n=this.predicates.length;r<n;r++)if(!(e=this.predicates[r](t,this.options))||void 0!==e.err)return{stop:!0,err:e.err};return{stop:!1,err:null}}
1_makeApiRequest(t,e){let r=this.rateLimiter.shouldSend(t);r.shouldSend?this.api.postItem(t,(r,n,o)=>{r?this._maybeRetry(r,t,e):e(r,n,o)}):r.error?e(r.error):this.api.postItem(r.payload,e)}_maybeRetry(t,e,r){let n=!1;if(this.options.retryInterval){for(let e=0,r=tS.RETRIABLE_ERRORS.length;e<r;e++)if(t.code===tS.RETRIABLE_ERRORS[e]){n=!0;break}n&&s(this.options.maxRetries)&&(e.retries=e.retries?e.retries+1:1,e.retries>this.options.maxRetries&&(n=!1))}n?this._retryApiRequest(e,r):r(t)}_retryApiRequest(t,e){this.retryQueue.push({item:t,callback:e}),this.retryHandle||(this.retryHandle=setInterval(()=>{for(;this.retryQueue.length;){let t=this.retryQueue.shift();this._makeApiRequest(t.item,t.callback)}},this.options.retryInterval))}_dequeuePendingRequest(t){let e=this.pendingRequests.indexOf(t);-1!==e&&(this.pendingRequests.splice(e,1),this._maybeCallWait())}_maybeLog(t,e){if(this.logger&&this.options.verbose){let r=e||x(t,"body.trace.exception.message")||x(t,"body.trace_chain.0.exception.message");if(r)return void this.logger.error(r);(r=x(t,"body.message.body"))&&this.logger.log(r)}}_maybeCallWait(){return!!n(this.waitCallback)&&0===this.pendingItems.length&&0===this.pendingRequests.length&&(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),!0)}constructor(t,e,r,n,o){this.rateLimiter=t,this.api=e,this.logger=r,this.options=n,this.replay=o,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}}(0,F._)(tS,"RETRIABLE_ERRORS",["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"]);class tI{configureGlobal(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{startTime:e,maxItems:r,itemsPerMinute:n}=t;void 0!==e&&(tI.globalSettings.startTime=e),void 0!==r&&(tI.globalSettings.maxItems=r),void 0!==n&&(tI.globalSettings.itemsPerMinute=n)}shouldSend(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),r=e-this.startTime;(r<0||r>=6e4)&&(this.startTime=e,this.perMinCounter=0);let n=tI.globalSettings.maxItems,o=tI.globalSettings.itemsPerMinute;if(tE(t,n,this.counter))return tR(this.platform,this.platformOptions,`${n} max items reached`,!1);if(tE(t,o,this.perMinCounter))return tR(this.platform,this.platformOptions,`${o} items per minute reached`,!1);this.counter+=1,this.perMinCounter+=1;let i=!tE(t,n,this.counter),s=i&&!tE(t,o,this.perMinCounter);return tR(this.platform,this.platformOptions,null,s,n,o,i)}setPlatformOptions(t,e){this.platform=t,this.platformOptions=e}constructor(t={}){this.startTime=Date.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(t)}}function tE(t,e,r){return!t.ignoreRateLimit&&e>=1&&r>e}function tR(t,e,r,n,o,i,s){var a,l;let u,c=null,h=r?Error(r):null;return h||n||(a=t,u={body:{message:{body:s?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.",extra:{maxItems:o,itemsPerMinute:i}}},language:"javascript",environment:(l=e).environment||l.payload&&l.payload.environment,notifier:{version:l.notifier&&l.notifier.version||l.version}},"browser"===a?(u.platform="browser",u.framework="browser-js",u.notifier.name="rollbar-browser-js"):"server"===a?(u.framework=l.framework||"node-js",u.notifier.name=l.notifier.name):"react-native"===a&&(u.framework=l.framework||"react-native",u.notifier.name=l.notifier.name),c=u),{error:h,shouldSend:n,payload:c}}function tT(t,e,r,n,o,i,s){this.options=R(t),this.logger=r,tT.rateLimiter.configureGlobal(this.options),tT.rateLimiter.setPlatformOptions(s,this.options),this.api=e,this.queue=new tS(tT.rateLimiter,e,r,this.options,i),this.tracing=o;var a=this.options.tracer||null;tA(a)?(this.tracer=a,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new tx(this.queue,this.options),this.telemeter=n,tC(t),this.lastError=null,this.lastErrorHash="none"}
1function tC(t){t.stackTraceLimit&&(Error.stackTraceLimit=t.stackTraceLimit)}function tA(t){if(!t||!t.scope||"function"!=typeof t.scope)return!1;var e=t.scope();return!!e&&!!e.active&&"function"==typeof e.active}function tO(t,e,r){t._isUncaught&&(t.data._isUncaught=!0),t._originalArgs&&(t.data._originalArgs=t._originalArgs),r(null,t)}function tL(t,e,r){var n=e.payload||{};n.body&&delete n.body,t.data=R(t.data,n),r(null,t)}function tP(t,e,r){t.telemetryEvents&&S(t,"data.body.telemetry",t.telemetryEvents),r(null,t)}function tq(t,e,r){if(!t.message)return void r(null,t);var n="data.body.trace_chain.0",o=x(t,n);if(o||(o=x(t,n="data.body.trace")),o){if(!(o.exception&&o.exception.description)){S(t,n+".exception.description",t.message),r(null,t);return}var i=R(x(t,n+".extra")||{},{message:t.message});S(t,n+".extra",i)}r(null,t)}function tN(t,e,r){if(!e.sendConfig)return r(null,t);var n=x(t,"data.custom")||{};n._rollbarConfig=e,t.data.custom=n,r(null,t)}function tj(t,e){n(t[e])&&(t[e]=t[e].toString())}function tH(t,e,r){var n=e._configuredOptions;tj(n,"transform"),tj(n,"checkIgnore"),tj(n,"onSendCallback"),delete n.accessToken,t.data.notifier.configured_options=n,r(null,t)}function tM(t,e,r){var n=R(t.notifier.client.notifier.diagnostic,t.diagnostic);if(x(t,"err._isAnonymous")&&(n.is_anonymous=!0),t._isUncaught&&(n.is_uncaught=t._isUncaught),t.err)try{n.raw_error={message:t.err.message,name:t.err.name,constructor_name:t.err.constructor&&t.err.constructor.name,filename:t.err.fileName,line:t.err.lineNumber,column:t.err.columnNumber,stack:t.err.stack}}catch(t){n.raw_error={failed:String(t)}}t.data.notifier.diagnostic=R(t.data.notifier.diagnostic,n),r(null,t)}(0,F._)(tI,"globalSettings",{startTime:Date.now(),maxItems:void 0,itemsPerMinute:void 0}),tT.rateLimiter=new tI({maxItems:0,itemsPerMinute:60}),tT.prototype.global=function(t){return tT.rateLimiter.configureGlobal(t),this},tT.prototype.configure=function(t,e){var r=this.options,n={};e&&(n={payload:e}),this.options=R(r,t,n);var o=this.options.tracer||null;return tA(o)?(this.tracer=o,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),tC(t),this.global(this.options),tA(t.tracer)&&(this.tracer=t.tracer),this},tT.prototype.log=function(t){var e=this._defaultLogLevel();return this._log(e,t)},tT.prototype.debug=function(t){this._log("debug",t)},tT.prototype.info=function(t){this._log("info",t)},tT.prototype.warn=function(t){this._log("warning",t)},tT.prototype.warning=function(t){this._log("warning",t)},tT.prototype.error=function(t){this._log("error",t)},tT.prototype.critical=function(t){this._log("critical",t)},tT.prototype.wait=function(t){this.queue.wait(t)},tT.prototype.captureEvent=function(t,e,r){return this.telemeter&&this.telemeter.captureEvent(t,e,r)},tT.prototype.captureDomContentLoaded=function(t){return this.telemeter&&this.telemeter.captureDomContentLoaded(t)},tT.prototype.captureLoad=function(t){return this.telemeter&&this.telemeter.captureLoad(t)},tT.prototype.buildJsonPayload=function(t){return this.api.buildJsonPayload(t)},tT.prototype.sendJsonPayload=function(t){this.api.postJsonPayload(t)},tT.prototype._log=function(t,e){var r;if(e.callback&&(r=e.callback,delete e.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(e)){if(r){var n=Error("ignored identical item");n.item=e,r(n)}return}try{e.level=e.level||t,this._addItemAttributes(e),this._addTracingInfo(e);let n=this.telemeter;n&&(n._captureRollbarItem(e),e.telemetryEvents=n.copyEvents()||[]),this.notifier.log(e,r)}catch(t){r&&r(t),this.logger.error(t)}},tT.prototype._addItemAttributes=function(t){let e=this.tracing?.getSpan(),r=[{key:"session_id",value:function(t){let e=t.asyncLocalStorage;if(!e||"function"!=typeof e.getStore)return null;let r=e.getStore();return r?.sessionId||null}(this)||this.tracing?.sessionId},{key:"span_id",value:e?.spanId},{key:"trace_id",value:e?.traceId}];t._isUncaught&&r.push({key:"is_uncaught",value:"true"}),k(t.data,r),e?.addEvent("rollbar.occurrence",[{key:"rollbar.occurrence.uuid",value:t.uuid}])},tT.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},tT.prototype._sameAsLastError=function(t){if(!t._isUncaught)return!1;var e,r=((e=t).message||"")+"::"+((e.err||{}).stack||String(e.err));return this.lastErrorHash===r||(this.lastError=t.err,this.lastErrorHash=r,!1)},tT.prototype._addTracingInfo=function(t){if(this.tracer){var e=this.tracer.scope().active();if(function(t){if(!t||!t.context||"function"!=typeof t.context)return!1;var e=t.context();return!!e&&!!e.toSpanId&&!!e.toTraceId&&"function"==typeof e.toSpanId&&"function"==typeof e.toTraceId}(e)){e.setTag("rollbar.error_uuid",t.uuid),e.setTag("rollbar.has_error",!0),e.setTag("error",!0),e.setTag("rollbar.item_url",`https://rollbar.com/item/uuid/?uuid=${t.uuid}`),e.setTag("rollbar.occurrence_url",`https://rollbar.com/occurrence/uuid/?uuid=${t.uuid}`);var r=e.context().toSpanId(),n=e.context().toTraceId();t.custom?(t.custom.opentracing_span_id=r,t.custom.opentracing_trace_id=n):t.custom={opentracing_span_id:r,opentracing_trace_id:n}}}};function tU(t,e){return!x(e,"plugins.jquery.ignoreAjaxErrors")||!x(t,"body.message.extra.isAjax")}function tD(t,e,r){if(t.err&&"DOMException"===t_.Stack(t.err).name){var n=Error();n.name=t.err.name,n.message=t.err.message,n.stack=t.err.stack,n.nested=t.err,t.err=n}r(null,t)}function tF(t,e,r){if(t.data=t.data||{},t.err)try{t.stackInfo=t.err._savedStackTrace||t_.parse(t.err,t.skipFrames),e.addErrorContext&&function(t){var e=[],r=t.err;for(e.push(r);r.nested||r.cause;)r=r.nested||r.cause,e.push(r);var n=t.data.custom||{},o=!1;try{for(let t of e)i(t,"rollbarContext")&&(n=R(n,y(t.rollbarContext)),o=!0);o&&(t.data.custom=n)}catch(e){t.diagnostic.error_context="Failed: "+e.message}}(t)}catch(e){$.error("Error while parsing the error object.",e);try{t.message=t.err.message||t.err.description||t.message||String(t.err)}
1catch(e){t.message=String(t.err)||String(e)}delete t.err}r(null,t)}function tJ(t,e,r){t.message||t.stackInfo||t.custom||r(Error("No message, stack info, or custom data"),null),r(null,t)}function tB(t,e,r){var n=e.payload&&e.payload.environment||e.environment;t.data=R(t.data,{environment:n,level:t.level,endpoint:e.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:t.uuid,notifier:{name:"rollbar-browser-js",version:e.version},custom:t.custom}),r(null,t)}function tW(t,e,r){t.stackInfo?t.stackInfo.traceChain?function(t,e,r){for(var n=t.stackInfo.traceChain,o=[],i=n.length,s=0;s<i;s++){var a=tz(t,n[s],e);o.push(a)}S(t,"data.body",{trace_chain:o}),r(null,t)}(t,e,r):function(t,e,r){if(t$(t)){var n=tz(t,t.stackInfo,e);S(t,"data.body",{trace:n}),r(null,t)}else{var o=t.stackInfo,i=t_.guessErrorClass(o.message);t.message=tX(o,i[0],e)+": "+i[1],tV(t,e,r)}}(t,e,r):tV(t,e,r)}function tV(t,e,r){var n=t.message,o=t.custom;n||(n="Item sent with null or missing arguments.");var i={body:n};o&&(i.extra=R(o)),S(t,"data.body",{message:i}),r(null,t)}function t$(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=(e||t.stackInfo).stack;return r&&0===r.length&&t._unhandledStackInfo&&t._unhandledStackInfo.stack&&(r=t._unhandledStackInfo.stack),r}function tz(t,r,n){var o,i,s,a,l,u,f,m,g=t&&t.data.description,v=t&&t.custom,y=t$(t,r),b=t_.guessErrorClass(r.message),_={exception:{class:tX(r,b[0],n),message:b[1]}};if(g&&(_.exception.description=g),y){for(0===y.length&&(_.exception.stack=r.rawStack,_.exception.raw=String(r.rawException)),_.frames=[],f=0;f<y.length;++f)i={filename:(o=y[f]).url?function(t){var r=function(t){if(e(t,"string")){for(var r=d[c?"strict":"loose"].exec(t),n={},o=0,i=h.length;o<i;++o)n[h[o]]=r[o]||"";return n[p.name]={},n[h[12]].replace(p.parser,function(t,e,r){e&&(n[p.name][e]=r)}),n}}(t);return r?(""===r.anchor&&(r.source=r.source.replace("#","")),t=r.source.replace("?"+r.query,"")):"(unknown)"}(o.url):"(unknown)",lineno:o.line||null,method:o.func&&"?"!==o.func?o.func:"[anonymous]",colno:o.column},n.sendFrameUrl&&(i.url=o.url),i.method&&i.method.endsWith&&i.method.endsWith("_rollbar_wrapped")||(s=a=l=null,(u=o.context?o.context.length:0)&&(m=Math.floor(u/2),a=o.context.slice(0,m),s=o.context[m],l=o.context.slice(m)),s&&(i.code=s),(a||l)&&(i.context={},a&&a.length&&(i.context.pre=a),l&&l.length&&(i.context.post=l)),o.args&&(i.args=o.args),_.frames.push(i));_.frames.reverse(),v&&(_.extra=R(v))}return _}function tX(t,e,r){return t.name?t.name:r.guessErrorClass?e:"(unknown)"}let tG=function(t){var e,r;let{accessToken:n,url:o,method:i,payload:a,headers:l,callback:u,timeout:c}=t;s(c)&&(e=new AbortController,r=setTimeout(function(){e.abort()},c)),fetch(o,{method:i,headers:l={"Content-Type":"application/json","X-Rollbar-Access-Token":n,signal:e&&e.signal,...l},body:a}).then(function(t){r&&clearTimeout(r);let e=t.headers,n=o.endsWith("/api/1/item/")?{"Rollbar-Replay-Enabled":e.get("Rollbar-Replay-Enabled"),"Rollbar-Replay-RateLimit-Remaining":e.get("Rollbar-Replay-RateLimit-Remaining"),"Rollbar-Replay-RateLimit-Reset":e.get("Rollbar-Replay-RateLimit-Reset")}:{};u(null,t.json(),n)}).catch(function(t){$.error(t.message),u(t)})};function tZ(t,e){var r=Error(t);return r.code=e||"ENOTFOUND",r}let tK=function(t){let{accessToken:r,url:n,method:o,payload:i,headers:a,callback:l,requestFactory:u,timeout:c}=t;if(!(h=u?u():function(){var t,e,r=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=r.length;for(e=0;e<n;e++)try{t=r[e]();break}catch(t){}return t}()))return l(Error("No way to send a request"));try{try{var h,p=function(){try{if(p&&4===h.readyState){p=void 0;var t,r,o,i=g(h.responseText);if((t=h)&&t.status&&200===t.status){let t=n.endsWith("/api/1/item/")?{"Rollbar-Replay-Enabled":h.getResponseHeader("Rollbar-Replay-Enabled"),"Rollbar-Replay-RateLimit-Remaining":h.getResponseHeader("Rollbar-Replay-RateLimit-Remaining"),"Rollbar-Replay-RateLimit-Reset":h.getResponseHeader("Rollbar-Replay-RateLimit-Reset")}:{};l(i.error,i.value,t);return}if((r=h)&&e(r.status,"number")&&r.status>=400&&r.status<600){if(403===h.status){var s=i.value&&i.value.message;$.error(s)}l(Error(String(h.status)))}else l(tZ("XHR response had no status code (likely connection failure)"))}}catch(t){o=t&&t.stack?t:Error(t),l(o)}};if(h.open(o,n,!0),h.setRequestHeader)for(let[t,e]of(h.setRequestHeader("Content-Type","application/json"),h.setRequestHeader("X-Rollbar-Access-Token",r),Object.entries(a??{})))h.setRequestHeader(t,e);s(c)&&(h.timeout=c),h.onreadystatechange=p,h.send(i)}catch(t){if("u">typeof XDomainRequest){if(!window||!window.location)return l(Error("No window available during request, unknown environment"));"http:"===window.location.href.substring(0,5)&&"https"===n.substring(0,5)&&(n="http"+n.substring(5));var d=new XDomainRequest;d.onprogress=()=>{},d.ontimeout=function(){l(tZ("Request timed out","ETIMEDOUT"))},d.onerror=function(){l(Error("Error during request"))},d.onload=function(){var t=g(d.responseText);l(t.error,t.value)},d.open(o,n,!0),d.send(i)}else l(Error("Cannot find a method to transport a request"))}}catch(t){l(t)}};function tQ(t){this.truncation=t}function tY(t){var e,r,n={protocol:null,auth:null,host:null,path:null,hash:null,href:t,hostname:null,port:null,pathname:null,search:null,query:null};if(-1!==(e=t.indexOf("//"))?(n.protocol=t.substring(0,e),r=e+2):r=0,-1!==(e=t.indexOf("@",r))&&(n.auth=t.substring(r,e),r=e+1),-1===(e=t.indexOf("/",r))){if(-1===(e=t.indexOf("?",r)))return -1===(e=t.indexOf("#",r))?n.host=t.substring(r):(n.host=t.substring(r,e),n.hash=t.substring(e)),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),n;n.host=t.substring(r,e),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=e}else n.host=t.substring(r,e),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=e;if(-1===(e=t.indexOf("#",r))?n.path=t.substring(r):(n.path=t.substring(r,e),n.hash=t.substring(e)),n.path){var o=n.path.split("?");n.pathname=o[0],n.query=o[1],n.search=n.query?"?"+n.query:null}return n}tQ.prototype.get=function(t,e,r,o,i){o&&n(o)||(o=()=>{}),function(t,e,r){(r=r||{}).access_token=t;var n,o,i=[];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&i.push([n,r[n]].join("="));var s="?"+i.sort().join("&");(e=e||{}).path=e.path||"";var a=e.path.indexOf("?"),l=e.path.indexOf("#");-1!==a&&(-1===l||l>a)?(o=e.path,e.path=o.substring(0,a)+s+"&"+o.substring(a+1)):-1!==l?(o=e.path,e.path=o.substring(0,l)+s+o.substring(l)):e.path=e.path+s}(t,e,r);var s=f(e);
1this._makeZoneRequest({accessToken:t,url:s,method:"GET",callback:o,requestFactory:i,timeout:e.timeout,transport:e.transport})},tQ.prototype.post=function(t){let{accessToken:e,options:r,payload:o,headers:i,callback:s,requestFactory:a}=t;if(s&&n(s)||(s=()=>{}),!o)return s(Error("Cannot send empty request"));if((l=this.truncation&&o.body?this.truncation.truncate(o):m(o)).error)return s(l.error);var l,u=f(r);this._makeZoneRequest({accessToken:e,url:u,method:"POST",payload:l.value,headers:i,callback:s,requestFactory:a,timeout:r.timeout,transport:r.transport})},tQ.prototype.postJsonPayload=function(t,e,r,o,i){o&&n(o)||(o=()=>{});var s=f(e);this._makeZoneRequest({accessToken:t,url:s,method:"POST",payload:r,callback:o,requestFactory:i,timeout:e.timeout,transport:e.transport})},tQ.prototype._makeZoneRequest=function(){var t="u">typeof window&&window||"u">typeof self&&self,e=t&&t.Zone&&t.Zone.root,r=Array.prototype.slice.call(arguments);e?e.run(()=>{this._makeRequest.apply(void 0,r)}):this._makeRequest.apply(void 0,r)},tQ.prototype._makeRequest=function(t){let{payload:e,callback:r,transport:n}=t;if("u">typeof RollbarProxy){var o,i;return o=e,i=r,void new RollbarProxy().sendJsonPayload(o,function(t){},function(t){i(Error(t))})}"fetch"===n?tG(t):tK(t)},t.s(["parse",0,tY],815054);var t0=t.i(815054);let t1=null;class t2{static init(t,e){return t1?t1.global(t).configure(t):t1=new t2(t,e)}static setComponents(t){t2.prototype.components=t}global(t){return this.client.global(t),this}configure(t,e){t.logLevel&&$.init({logLevel:t.logLevel}),this.setSessionAttributesFromOptions(t);var r=this.options,n={};return e&&(n={payload:e}),this.options=E(r,t,n,$),this.options._configuredOptions=E(r._configuredOptions,t,n),this.tracing?.configure(this.options),this.replay?.configure(this.options.replay),this.client.configure(this.options,e),this.instrumenter?.configure(this.options),this.setupUnhandledCapture(),this}lastError(){return this.client.lastError}log(){var t=this._createItem(arguments),e=t.uuid;return this.client.log(t),{uuid:e}}debug(){var t=this._createItem(arguments),e=t.uuid;return this.client.debug(t),{uuid:e}}info(){var t=this._createItem(arguments),e=t.uuid;return this.client.info(t),{uuid:e}}warn(){var t=this._createItem(arguments),e=t.uuid;return this.client.warn(t),{uuid:e}}warning(){var t=this._createItem(arguments),e=t.uuid;return this.client.warning(t),{uuid:e}}error(){var t=this._createItem(arguments),e=t.uuid;return this.client.error(t),{uuid:e}}critical(){var t=this._createItem(arguments),e=t.uuid;return this.client.critical(t),{uuid:e}}buildJsonPayload(t){return this.client.buildJsonPayload(t)}sendJsonPayload(t){return this.client.sendJsonPayload(t)}triggerDirectReplay(t){return this.triggerReplay({type:"direct",...t})}triggerReplay(t){return this.replay?this.replay.triggerReplay(t):null}setupUnhandledCapture(){var t=t3();if(!this.unhandledExceptionsInitialized&&(this.options.captureUncaught||this.options.handleUncaughtExceptions)){var e,r=this;if(t){if("function"==typeof r._rollbarOldOnError)e=r._rollbarOldOnError;else if(t.onerror){for(e=t.onerror;e._rollbarOldOnError;)e=e._rollbarOldOnError;r._rollbarOldOnError=e}r.handleAnonymousErrors(),t.onerror=function(){var n,o,i,s,a,l=Array.prototype.slice.call(arguments,0);n=t,o=r,i=e,s=l,n._rollbarWrappedError&&(s[4]||(s[4]=n._rollbarWrappedError),s[5]||(s[5]=n._rollbarWrappedError._rollbarContext),n._rollbarWrappedError=null),a=o.handleUncaughtException.apply(o,s),i&&i.apply(n,s),"anonymous"===a&&(o.anonymousErrorsPending+=1)}}this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(t,this),this.unhandledExceptionsInitialized=!0}if(!this.unhandledRejectionsInitialized&&(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)){var n=this;if(t){"function"==typeof t._rollbarURH&&t._rollbarURH.belongsToShim&&t.removeEventListener("unhandledrejection",t._rollbarURH);var o=function(t){var e,r,o;try{e=t.reason}catch(t){e=void 0}try{r=t.promise}catch(t){r="[unhandledrejection] error getting `promise` from event"}try{o=t.detail,!e&&o&&(e=o.reason,r=o.promise)}catch(t){}e||(e="[unhandledrejection] error getting `reason` from event"),n&&n.handleUnhandledRejection&&n.handleUnhandledRejection(e,r)};o.belongsToShim=void 0,t._rollbarURH=o,t.addEventListener("unhandledrejection",o)}this.unhandledRejectionsInitialized=!0}}handleUncaughtException(t,e,r,n,o,i){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&null===o&&""===e)return"anonymous";var s,l=v(t,e,r,n,o,"onerror","uncaught exception",t_);a(o)?(s=this._createItem([t,o,i]))._unhandledStackInfo=l:a(e)?(s=this._createItem([t,e,i]))._unhandledStackInfo=l:(s=this._createItem([t,i])).stackInfo=l,s.level=this.options.uncaughtErrorLevel,s._isUncaught=!0,this.client.log(s)}}handleAnonymousErrors(){if(!this.options.inspectAnonymousErrors||!this.isChrome)return;let t=(t,e)=>{if(this.options.inspectAnonymousErrors&&this.anonymousErrorsPending){if(this.anonymousErrorsPending-=1,!t)return;t._isAnonymous=!0,this.handleUncaughtException(t.message,null,null,null,t)}return t.stack};try{Error.prepareStackTrace=t}catch(t){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",t)}}handleUnhandledRejection(t,e){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var r,n="unhandled rejection was null or undefined!";if(t)if(t.message)n=t.message;else{var o=m(t);o.value&&(n=o.value)}var i=t&&t._rollbarContext||e&&e._rollbarContext;a(t)?r=this._createItem([n,t,i]):(r=this._createItem([n,t,i])).stackInfo=v(n,"",0,0,null,"unhandledrejection","",t_),r.level=this.options.uncaughtErrorLevel,r._isUncaught=!0,r._originalArgs=r._originalArgs||[],r._originalArgs.push(e),this.client.log(r)}}wrap(t,r,o){try{var s;if(s=n(r)?r:function(){return r||{}},!n(t)||t._isWrap)return t;if(!t._rollbar_wrapped)for(var a in t._rollbar_wrapped=function(){o&&n(o)&&o.apply(this,arguments);try{return t.apply(this,arguments)}catch(n){var r=n;throw r&&window._rollbarWrappedError!==r&&(e(r,"string")&&(r=new String(r)),r._rollbarContext=s()||{},r._rollbarContext._wrappedSource=t.toString(),window._rollbarWrappedError=r),r}},t._rollbar_wrapped._isWrap=!0,t)i(t,a)&&"_rollbar_wrapped"!==a&&(t._rollbar_wrapped[a]=t[a]);return t._rollbar_wrapped}catch(e){return t}}captureEvent(){var t=function(t){for(var e,n,o,i,s=0,a=t.length;s<a;++s)switch(r(i=t[s])){case"string":!e&&w(b,i)?e=i:!o&&w(_,i)&&(o=i);break;case"object":n=i}return{type:e||"manual",metadata:n||{},level:o}}(arguments);return this.client.captureEvent(t.type,t.metadata,t.level)}setSessionUser(t){this.tracing?.session&&this.tracing.session.setUser(t)}setSessionAttributes(t){this.tracing?.session&&(t={...t},this.tracing.session.setAttributes(t))}setSessionAttributesFromOptions(t){let e=t.person||t.payload?.person;e&&this.setSessionUser(e);let r=t.client?.javascript?.code_version||t.codeVersion||t.code_version||t.payload?.client?.javascript?.code_version||t.payload?.code_version||t.payload?.codeVersion;this.setSessionAttributes({"rollbar.codeVersion":r,"rollbar.notifier.name":"rollbar-browser-js","rollbar.notifier.version":t.version})}captureDomContentLoaded(t,e){return e||(e=new Date),this.client.captureDomContentLoaded(e)}captureLoad(t,e){return e||(e=new Date),this.client.captureLoad(e)}loadFull(){$.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")}_createItem(t){return function(t,e,n){for(var o,i,s,a,l,u,c,h,p=[],d=[],f=0,m=t.length;f<m;++f){var g=r(h=t[f]);switch(d.push(g),g){case"undefined":break;case"string":a?p.push(h):a=h;break;
1case"function":c=function(t,e){return function(r,n){try{e(r,n)}catch(e){t.error(e)}}}(e,h);break;case"date":p.push(h);break;case"error":case"domexception":case"exception":l?p.push(h):l=h;break;case"object":case"array":if(h instanceof Error||"u">typeof DOMException&&h instanceof DOMException){l?p.push(h):l=h;break}u?p.push(h):u=h;break;default:if(h instanceof Error||"u">typeof DOMException&&h instanceof DOMException){l?p.push(h):l=h;break}p.push(h)}}u&&(u=y(u)),p.length>0&&(u||(u=y({})),u.extraArgs=y(p));var v={message:a,err:l,custom:u,timestamp:I(),callback:c,notifier:n,diagnostic:{},uuid:(s=I(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"===t?e:7&e|8).toString(16)}))};return v.data=v.data||{},o=v,(i=u)&&void 0!==i.level&&(o.level=i.level,delete i.level),i&&void 0!==i.skipFrames&&(o.skipFrames=i.skipFrames,delete i.skipFrames),v._originalArgs=t,v.diagnostic.original_arg_types=d,v}(t,$,this)}static callInstance(t,e){if(!t1){let t="Rollbar is not initialized";$.error(t);let r=function(t){for(var e=0,r=t.length;e<r;++e)if(n(t[e]))return t[e]}(e);r&&r(Error(t));return}return t1[t].apply(t1,e)}constructor(t,r){$.init({logLevel:t.logLevel||"error"}),this.options=E(t4,t,null,$),this.options._configuredOptions=t,this.components=this.components||{};const i=this.components.telemeter,s=this.components.instrumenter;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;const a=this.components.truncation,l=this.components.tracing,u=this.components.replay,c=new tQ(a),h=new tc(this.options,c,t0,a);if(l&&(this.tracing=new l(t3(),h,this.options),this.tracing.initSession()),i&&(this.telemeter=new i(this.options,this.tracing)),u&&"u">typeof window){const t=this.options.replay;this.replay=new u({tracing:this.tracing,telemeter:this.telemeter,options:t}),t.enabled&&t.autoStart&&this.replay.recorder.start()}this.client=r||new tT(this.options,h,$,this.telemeter,this.tracing,this.replay,"browser");var p=t3(),d="u">typeof document&&document;this.isChrome=p.chrome&&p.chrome.runtime,this.anonymousErrorsPending=0,function(t,r,i){var s;t.addTransform(tD).addTransform(tF).addTransform(tJ).addTransform(tB).addTransform(function(t,e,r){var n={};i&&i.location&&(n.url=i.location.href,n.query_string=i.location.search);var o="$remote_ip";e.captureIp?!0!==e.captureIp&&(o+="_anonymize"):o=null,o&&(n.user_ip=o),Object.keys(n).length>0&&S(t,"data.request",n),r(null,t)}).addTransform(function(t,e,r){if(!i)return r(null,t);var n=i.navigator||{},o=i.screen||{};S(t,"data.client",{runtime_ms:t.timestamp-i._rollbarStartTime,timestamp:Math.round(t.timestamp/1e3),javascript:{browser:n.userAgent,language:n.language,cookie_enabled:n.cookieEnabled,screen:{width:o.width,height:o.height}}}),r(null,t)}).addTransform(function(t,e,r){if(!i||!i.navigator)return r(null,t);for(var n,o=[],s=i.navigator.plugins||[],a=0,l=s.length;a<l;++a)n=s[a],o.push({name:n.name,description:n.description});S(t,"data.client.javascript.plugins",o),r(null,t)}).addTransform(tW).addTransform(tq).addTransform(tP).addTransform(tN).addTransform((s=r.scrub,function(t,e,r){if(s){var n=e.scrubFields||[],o=e.scrubPaths||[];t.data=s(t.data,n,o)}r(null,t)})).addTransform(tL).addTransform(function(t,r,i){var s,a=R(t),l=null;try{n(r.transform)&&(l=r.transform(a.data,t))}catch(e){r.transform=null,$.error("Error while calling custom transform() function. Removing custom transform().",e),i(null,t);return}o(s=l)&&e(s.then,"function")?l.then(function(t){t&&(a.data=t),i(null,a)},function(e){i(e,t)}):i(null,a)}).addTransform(tH).addTransform(tM).addTransform(tO)}(this.client.notifier,this,p),function(t){t.addPredicate(tw).addPredicate(tU).addPredicate(function(t,e){var r=!!t._isUncaught;delete t._isUncaught;var o=t._originalArgs;delete t._originalArgs;try{n(e.onSendCallback)&&e.onSendCallback(r,o,t)}catch(t){e.onSendCallback=null,$.error("Error while calling onSendCallback, removing",t)}try{if(n(e.checkIgnore)&&e.checkIgnore(r,o,t))return!1}catch(t){e.checkIgnore=null,$.error("Error while calling custom checkIgnore(), removing",t)}return!0}).addPredicate(function(t,e){return!tk(t,e,"blocklist",$)}).addPredicate(function(t,e){return tk(t,e,"safelist",$)}).addPredicate(function(t,e){var r,n,o,i,s,a;try{if(!(o=e.ignoredMessages)||0===o.length||(a=function(t){var e=t.body,r=[];if(e.trace_chain)for(let t of e.trace_chain)r.push(x(t,"exception.message"));return e.trace&&r.push(x(e,"trace.exception.message")),e.message&&r.push(x(e,"message.body")),r}(t),0===a.length))return!0;for(i=o.length,r=0;r<i;r++)for(s=RegExp(o[r],"gi"),n=0;n<a.length;n++)if(s.test(a[n]))return!1}catch(t){e.ignoredMessages=null,$.error("Error while reading your configuration's ignoredMessages option. Removing custom ignoredMessages.")}return!0})}(this.client.queue),this.setupUnhandledCapture(),s&&(this.instrumenter=new s(this.options,this.client.telemeter,this,p,d),this.instrumenter.instrument()),this.setSessionAttributesFromOptions(t),this.rollbar=this}}function t3(){return"u">typeof window&&window||"u">typeof self&&self}(0,F._)(t2,"global",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("global",e)}),(0,F._)(t2,"configure",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("configure",e)}),(0,F._)(t2,"lastError",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("lastError",e)}),(0,F._)(t2,"log",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("log",e)}),(0,F._)(t2,"debug",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("debug",e)}
1),(0,F._)(t2,"info",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("info",e)}),(0,F._)(t2,"warn",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("warn",e)}),(0,F._)(t2,"warning",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("warning",e)}),(0,F._)(t2,"error",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("error",e)}),(0,F._)(t2,"critical",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("critical",e)}),(0,F._)(t2,"buildJsonPayload",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("buildJsonPayload",e)}),(0,F._)(t2,"sendJsonPayload",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("sendJsonPayload",e)}),(0,F._)(t2,"wrap",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("wrap",e)}),(0,F._)(t2,"captureEvent",function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return t2.callInstance("captureEvent",e)});let t4={environment:"unknown",version:"3.1.0",scrubFields:["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","secret_key","secretKey","secretToken","cc-number","card number","cardnumber","cardnum","ccnum","ccnumber","cc num","creditcardnumber","credit card number","newcreditcardnumber","new credit card","creditcardno","credit card no","card#","card #","cc-csc","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"],logLevel:"debug",reportLevel:"debug",uncaughtErrorLevel:"error",endpoint:"api.rollbar.com/api/1/item/",verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1,replay:{enabled:!1,autoStart:!0,triggerDefaults:{samplingRatio:1,preDuration:300,postDuration:5},triggers:[{type:"occurrence",level:["error","critical"]}],debug:{logErrors:!0,logEmits:!1},inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,maskInputOptions:{password:!0,email:!1,tel:!1,text:!1,color:!1,date:!1,"datetime-local":!1,month:!1,number:!1,range:!1,search:!1,time:!1,url:!1,week:!1},maskAllInputs:!1,blockClass:"rb-block",maskTextClass:"rb-mask",ignoreClass:"rb-ignore",slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}},tracing:{enabled:!1,endpoint:"api.rollbar.com/api/1/session/"}};function t5(t){return"string"!=typeof t&&(t=String(t)),t.toLowerCase()}function t8(t){this.map={},t instanceof t8?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}t8.prototype.append=function(t,e){t=t5(t),"string"!=typeof(r=e)&&(r=String(r)),e=r;var r,n=this.map[t];this.map[t]=n?n+", "+e:e},t8.prototype.get=function(t){return t=t5(t),this.has(t)?this.map[t]:null},t8.prototype.has=function(t){return i(this.map,t5(t))},t8.prototype.forEach=function(t,e){for(var r in this.map)i(this.map,r)&&t.call(e,this.map[r],r,this)},t8.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),{next:function(){var e=t.shift();return{done:void 0===e,value:e}}}};let t6=function(t,e,r,n,o){var i=t[e];t[e]=r(i),n&&n[o].push([t,e,i])};function t9(t){return function(t){for(var e,r,n=[],o=0,i=t.length-1;i>=0;i--){if(e=function(t){if(!t||!t.tagName)return"";var e=[t.tagName];for(let r of(t.id&&e.push("#"+t.id),t.classes&&e.push("."+t.classes.join(".")),t.attributes))e.push("["+r.key+'="'+r.value+'"]');return e.join("")}(t[i]),r=o+3*n.length+e.length,i<t.length-1&&r>=83){n.unshift("...");break}n.unshift(e),o+=e.length}return n.join(" > ")}(function(t){for(var e,r=[],n=0;t&&n<5&&(e=t7(t))&&"html"!==e.tagName;n++)r.unshift(e),t=t.parentNode;return r}(t))}function t7(t){if(!t||!t.tagName)return null;var e,r={};
1for(let n of(r.tagName=t.tagName.toLowerCase(),t.id&&(r.id=t.id),(e=t.className)&&"string"==typeof e&&(r.classes=e.split(/\s+/)),r.attributes=[],["type","name","title","alt"])){let e=t.getAttribute(n);e&&r.attributes.push({key:n,value:e})}return r}let et={network:!0,networkResponseHeaders:!1,networkResponseBody:!1,networkRequestHeaders:!1,networkRequestBody:!1,networkErrorOnHttp5xx:!1,networkErrorOnHttp4xx:!1,networkErrorOnHttp0:!1,log:!0,dom:!0,navigation:!0,connectivity:!0,contentSecurityPolicy:!0,errorOnContentSecurityPolicy:!1};function ee(t,e){let r;for(;t[e].length;)(r=t[e].shift())[0][r[1]]=r[2]}function er(t){return"u">typeof URL&&t instanceof URL}let en=class{configureScrubbing(){let t=this.options;this.scrubTelemetryInputs=!!(t.scrubTelemetryInputs??t.replay?.maskAllInputs),this.telemetryScrubber=t.telemetryScrubber,this.defaultValueScrubber=function(t){let e=[];for(let r of t)e.push(RegExp(r,"i"));return function(t){let r=function(t){if(!t||!t.attributes)return null;for(let e of t.attributes)if("name"===e.key)return e.value;return null}(t);if(!r)return!1;for(let t of e)if(t.test(r))return!0;return!1}}(t.scrubFields),this.maskInputFn=t.replay?.maskInputFn,this.maskInputOptions=t.replay?.maskInputOptions||{},this.scrubClasses=[t.replay?.blockClass,t.replay?.ignoreClass,t.replay?.maskTextClass].filter(Boolean),this.scrubSelectors=[t.replay?.blockSelector,t.replay?.ignoreSelector,t.replay?.maskTextSelector].filter(Boolean)}configure(t){this.options=R(this.options,t);let r=t.autoInstrument,n=R(this.autoInstrument);!1===t.enabled||!1===r?this.autoInstrument={}:(e(r,"object")||(r=et),this.autoInstrument=R(et,r)),this.configureScrubbing(),this.instrument(n)}instrument(t){this.autoInstrument.network&&!(t&&t.network)?this.instrumentNetwork():!this.autoInstrument.network&&t&&t.network&&this.deinstrumentNetwork(),this.autoInstrument.log&&!(t&&t.log)?this.instrumentConsole():!this.autoInstrument.log&&t&&t.log&&this.deinstrumentConsole(),this.autoInstrument.dom&&!(t&&t.dom)?this.instrumentDom():!this.autoInstrument.dom&&t&&t.dom&&this.deinstrumentDom(),this.autoInstrument.navigation&&!(t&&t.navigation)?this.instrumentNavigation():!this.autoInstrument.navigation&&t&&t.navigation&&this.deinstrumentNavigation(),this.autoInstrument.connectivity&&!(t&&t.connectivity)?this.instrumentConnectivity():!this.autoInstrument.connectivity&&t&&t.connectivity&&this.deinstrumentConnectivity(),this.autoInstrument.contentSecurityPolicy&&!(t&&t.contentSecurityPolicy)?this.instrumentContentSecurityPolicy():!this.autoInstrument.contentSecurityPolicy&&t&&t.contentSecurityPolicy&&this.deinstrumentContentSecurityPolicy()}deinstrumentNetwork(){ee(this.replacements,"network")}instrumentNetwork(){let t=this;function r(e,r){e in r&&n(r[e])&&t6(r,e,function(e){return t.rollbar.wrap(e)})}if("XMLHttpRequest"in this._window){let o=this._window.XMLHttpRequest.prototype;t6(o,"open",function(t){return function(r,n){let o=er(n);return(e(n,"string")||o)&&(n=o?n.toString():n,this.__rollbar_xhr?(this.__rollbar_xhr.method=r,this.__rollbar_xhr.url=n,this.__rollbar_xhr.status_code=null,this.__rollbar_xhr.start_time_ms=I(),this.__rollbar_xhr.end_time_ms=null):this.__rollbar_xhr={method:r,url:n,status_code:null,start_time_ms:I(),end_time_ms:null}),t.apply(this,arguments)}},this.replacements,"network"),t6(o,"setRequestHeader",function(r){return function(n,o){return this.__rollbar_xhr||(this.__rollbar_xhr={}),e(n,"string")&&e(o,"string")&&(t.autoInstrument.networkRequestHeaders&&(this.__rollbar_xhr.request_headers||(this.__rollbar_xhr.request_headers={}),this.__rollbar_xhr.request_headers[n]=o),"content-type"===n.toLowerCase()&&(this.__rollbar_xhr.request_content_type=o)),r.apply(this,arguments)}},this.replacements,"network"),t6(o,"send",function(e){return function(o){let i=this,s=t.rollbar?.tracing;if(T(t.options,s,i.__rollbar_xhr?.url))try{i.setRequestHeader("baggage",`rollbar.session.id=${s.sessionId}`)}catch(t){}function a(){if(i.__rollbar_xhr&&(null===i.__rollbar_xhr.status_code&&(i.__rollbar_xhr.status_code=0,t.autoInstrument.networkRequestBody&&(i.__rollbar_xhr.request=o),i.__rollbar_event=t.captureNetwork(i.__rollbar_xhr,"xhr",void 0)),i.readyState<2&&(i.__rollbar_xhr.start_time_ms=I()),i.readyState>3)){let e=I();i.__rollbar_xhr.end_time_ms=e;let r=null;if(i.__rollbar_xhr.response_content_type=i.getResponseHeader("Content-Type"),t.autoInstrument.networkResponseHeaders){let e=t.autoInstrument.networkResponseHeaders;r={};try{let t;if(!0===e){let e=i.getAllResponseHeaders();if(e){let n,o;for(let i of e.trim().split(/[\r\n]+/))t=(n=i.split(": ")).shift(),o=n.join(": "),r[t]=o}}else for(let t of e)r[t]=i.getResponseHeader(t)}catch(t){}}let n=null;if(t.autoInstrument.networkResponseBody)try{n=i.responseText}catch(t){}let o=null;(n||r)&&(o={},n&&(t.isJsonContentType(i.__rollbar_xhr.response_content_type)?o.body=t.scrubJson(n):o.body=n),r&&(o.headers=r)),o&&(i.__rollbar_xhr.response=o);try{let r=i.status;r=1223===r?204:r,i.__rollbar_xhr.status_code=r,t.addOtelNetworkResponse(i.__rollbar_event,e,r),i.__rollbar_event.level=t.telemeter.levelFromStatus(r),t.errorOnHttpStatus(i.__rollbar_xhr)}catch(t){}}}return r("onload",i),r("onerror",i),r("onprogress",i),"onreadystatechange"in i&&n(i.onreadystatechange)?t6(i,"onreadystatechange",function(e){return t.rollbar.wrap(e,void 0,a)}):i.onreadystatechange=a,i.__rollbar_xhr&&t.trackHttpErrors()&&(i.__rollbar_xhr.stack=Error().stack),e.apply(this,arguments)}},this.replacements,"network")}"fetch"in this._window&&t6(this._window,"fetch",function(r){return function(n,i){let s,a=[...arguments],l=a[0],u="GET",c=er(l);e(l,"string")||c?s=c?l.toString():l:l&&(s=l.url,l.method&&(u=l.method)),a[1]&&a[1].method&&(u=a[1].method);let h=t.rollbar?.tracing;T(t.options,h,s)&&function(t,e){var r;let n=t[1],i=n?.headers,s=(r=t[0],"u">typeof Request&&r instanceof Request&&t[0].headers),a=i||s;if(a||(n||(t[1]=n={}),a=n.headers={}),a instanceof Headers)for(let t of Object.keys(e))a.append(t,e[t]);else if(o(a))for(let t of Object.keys(e))a[t]=e[t]}(a,{baggage:`rollbar.session.id=${h.sessionId}`});let p={method:u,url:s,status_code:null,start_time_ms:I(),end_time_ms:null};if(a[1]&&a[1].headers){var d;let e=(d=a[1].headers,"u"<typeof Headers?new t8(d):new Headers(d));p.request_content_type=e.get("Content-Type"),t.autoInstrument.networkRequestHeaders&&(p.request_headers=t.fetchHeaders(e,t.autoInstrument.networkRequestHeaders))}t.autoInstrument.networkRequestBody&&(a[1]&&a[1].body?p.request=a[1].body:a[0]&&
1!e(a[0],"string")&&a[0].body&&(p.request=a[0].body));let f=t.captureNetwork(p,"fetch",void 0);return t.trackHttpErrors()&&(p.stack=Error().stack),r.apply(this,a).then(function(e){let r=I();p.end_time_ms=r,p.status_code=e.status,t.addOtelNetworkResponse(f,r,e.status),p.response_content_type=e.headers.get("Content-Type");let n=null;t.autoInstrument.networkResponseHeaders&&(n=t.fetchHeaders(e.headers,t.autoInstrument.networkResponseHeaders));let o=null;return t.autoInstrument.networkResponseBody&&"function"==typeof e.text&&(o=e.clone().text()),(n||o)&&(p.response={},o&&("function"==typeof o.then?o.then(function(e){e&&t.isJsonContentType(p.response_content_type)?p.response.body=t.scrubJson(e):p.response.body=e}):p.response.body=o),n&&(p.response.headers=n)),t.errorOnHttpStatus(p),e})}},this.replacements,"network")}captureNetwork(t,e,r){return t.request&&this.isJsonContentType(t.request_content_type)&&(t.request=this.scrubJson(t.request)),this.telemeter.captureNetwork(t,e,r)}isJsonContentType(t){return!!(t&&e(t,"string")&&t.toLowerCase().includes("json"))}addOtelNetworkResponse(t,e,r){t.otelAttributes&&(t.otelAttributes["response.timeUnixNano"]=(1e6*e).toString(),t.otelAttributes.statusCode=r)}scrubJson(t){return JSON.stringify(A(JSON.parse(t),this.options.scrubFields))}fetchHeaders(t,e){let r={};try{if(!0===e){if("function"==typeof t.entries){let e=t.entries(),n=e.next();for(;!n.done;)r[n.value[0]]=n.value[1],n=e.next()}}else for(let n of e)r[n]=t.get(n)}catch(t){}return r}trackHttpErrors(){return this.autoInstrument.networkErrorOnHttp5xx||this.autoInstrument.networkErrorOnHttp4xx||this.autoInstrument.networkErrorOnHttp0}errorOnHttpStatus(t){let e=t.status_code;if(e>=500&&this.autoInstrument.networkErrorOnHttp5xx||e>=400&&this.autoInstrument.networkErrorOnHttp4xx||0===e&&this.autoInstrument.networkErrorOnHttp0){let r=Error("HTTP request failed with Status "+e);r.stack=t.stack,this.rollbar.error(r,{skipFrames:1})}}deinstrumentConsole(){let t;for(;this.replacements.log.length;)t=this.replacements.log.shift(),this._window.console[t[0]]=t[1]}instrumentConsole(){if(!this._window?.console?.log)return;let t=this,e=this._window.console;try{for(let n of["debug","info","warn","error","log"])!function(n){let o=e[n],i="warn"===n?"warning":n;e[n]=function(){let n=Array.prototype.slice.call(arguments),s=function(t){var e,n,o,i=[];for(e=0,n=t.length;e<n;++e){switch(r(o=t[e])){case"object":(o=(o=m(o)).error||o.value).length>500&&(o=o.substr(0,497)+"...");break;case"null":o="null";break;case"undefined":o="undefined";break;case"symbol":o=o.toString()}i.push(o)}return i.join(" ")}(n);t.telemeter.captureLog(s,i,null,I()),o&&Function.prototype.apply.call(o,e,n)},t.replacements.log.push([n,o])}(n)}catch(t){this.diagnostic.instrumentConsole={error:t.message}}}deinstrumentDom(){this.removeListeners("dom")}instrumentDom(){this.addListener("dom",this._window,["click","dblclick","contextmenu"],t=>this.handleEvent("click",t)),this.addListener("dom",this._window,["dragstart","dragend","dragenter","dragleave","drop"],t=>this.handleEvent("dragdrop",t)),this.addListener("dom",this._window,["blur","focus"],t=>this.handleEvent("focus",t)),this.addListener("dom",this._window,["submit","invalid"],t=>this.handleEvent("form",t)),this.addListener("dom",this._window,["input","change"],t=>this.handleEvent("input",t)),this.addListener("dom",this._window,["resize"],t=>this.handleEvent("resize",t)),this.addListener("dom",this._document,["DOMContentLoaded"],t=>this.handleEvent("contentLoaded",t))}handleEvent(t,e){try{return({click:this.handleClick,dragdrop:this.handleDrag,focus:this.handleFocus,form:this.handleForm,input:this.handleInput,resize:this.handleResize,contentLoaded:this.handleContentLoaded})[t].call(this,e)}catch(r){$.log(`${t} handler error`,e,r,r.stack)}}handleContentLoaded(t){this.rollbar.triggerReplay({type:"navigation",path:new URL(this._location.href).pathname})}handleClick(t){["input","select","textarea"].includes(t.target?.tagName.toLowerCase())||this.telemeter.captureClick({type:t.type,isSynthetic:!t.isTrusted,element:t9(t.target),timestamp:I()})}handleFocus(t){let e=t.type,r=t.target?.window?"window":t9(t.target);this.telemeter.captureFocus({type:e,isSynthetic:!t.isTrusted,element:r,timestamp:I()})}handleForm(t){}handleResize(t){let e=window.screen.width/window.innerWidth;this.telemeter.captureResize({type:t.type,isSynthetic:!t.isTrusted,width:window.innerWidth,height:window.innerHeight,textZoomRatio:e,timestamp:I()})}handleDrag(t){let e,r,n,o,i=t.type;if("drop"===i)for(let n of(e=[],r=[],[...t.dataTransfer.files,...t.dataTransfer.items]))n.kind&&n.type&&(e.push(n.kind),r.push(n.type));["drop","dragstart"].includes(i)&&(n=t.dataTransfer?.dropEffect,o=t.dataTransfer?.effectAllowed),this.telemeter.captureDragDrop({type:i,isSynthetic:!t.isTrusted,element:t9(t.target),dropEffect:n,effectAllowed:o,kinds:JSON.stringify(e),mediaTypes:JSON.stringify(r),timestamp:I()})}scrubInputValue(t,e,r,n){let o="******";if("password"===n||this.scrubTelemetryInputs)return o;{let t=t7(e);if(this.telemetryScrubber){if(this.telemetryScrubber(t))return o}else if(this.defaultValueScrubber(t))return o}if(function(t,e,r){try{for(let r of e)if("string"==typeof r){if(t.classList.contains(r))return!0}else for(let e of t.classList)if(r.test(e))return!0;for(let e of r)if(t.matches(e))return!0}catch(t){}return!1}(e,this.scrubClasses,this.scrubSelectors))return o;if(this.maskInputOptions[r.toLowerCase()]||this.maskInputOptions[n])if(this.maskInputFn)return this.maskInputFn(t,e);else return o;return t}handleInput(t){let e=t.type,r=t.target?.tagName.toLowerCase(),n=t.target?.value,o=t.target?.attributes?.type?.value||t.target?.type;switch(void 0!==n&&(n=this.scrubInputValue(n,t.target,r,o)),e){case"input":if(["radio","checkbox"].includes(o))return;["select","textarea"].includes(r)&&(o=r);break;case"change":if(!["radio","checkbox"].includes(o))return;"checkbox"===o&&(n=t.target?.checked)}this.telemeter.captureInput({type:o,isSynthetic:!t.isTrusted,element:t9(t.target),value:n,timestamp:I()})}deinstrumentNavigation(){let t=this._window.chrome;!(t&&t.app&&t.app.runtime)&&this._window.history&&this._window.history.pushState&&ee(this.replacements,"navigation")}instrumentNavigation(){let t=this._window.chrome;if(!(!(t&&t.app&&t.app.runtime)&&this._window.history&&this._window.history.pushState))return;let e=this;t6(this._window,"onpopstate",function(t){return function(){let r=e._location.href;e.handleUrlChange(e._lastHref,r),t&&t.apply(this,arguments)}},this.replacements,"navigation"),t6(this._window.history,"pushState",function(t){return function(){let r=arguments.length>2?arguments[2]:void 0;return r&&e.handleUrlChange(e._lastHref,String(r)),t.apply(this,arguments)}},this.replacements,"navigation")}handleUrlChange(t,e){let r=tY(this._location.href),n=tY(e),o=tY(t);this._lastHref=e,r.protocol===n.protocol&&r.host===n.host&&(e=n.path+(n.hash||"")),r.protocol===o.protocol&&r.host===o.host&&(t=o.path+(o.hash||"")),this.telemeter.captureNavigation(t,e,null,I()),this.rollbar.triggerReplay({type:"navigation",path:e})}instrumentConnectivity(){let t=this;this.addListener("connectivity",this._window,["online","offline"],e=>t.handleConnectivity(e))}handleConnectivity(t){let e=t.type;this.telemeter.captureConnectivityChange({type:e,isSynthetic:!t.isTrusted,timestamp:I()})}handleCspEvent(t){let e="Security Policy Violation: blockedURI: "+t.blockedURI+", violatedDirective: "+t.violatedDirective+", effectiveDirective: "+t.effectiveDirective+", ";t.sourceFile&&(e+="location: "+t.sourceFile+", line: "+t.lineNumber+", col: "+t.columnNumber+", "),e+="originalPolicy: "+t.originalPolicy,this.telemeter.captureLog(e,"error",null,I()),this.handleCspError(e)}handleCspError(t){this.autoInstrument.errorOnContentSecurityPolicy&&this.rollbar.error(t)}deinstrumentContentSecurityPolicy(){this.removeListeners("contentsecuritypolicy")}instrumentContentSecurityPolicy(){if(!("addEventListener"in this._document))return;let t=this.handleCspEvent.bind(this);this.addListener("contentsecuritypolicy",this._document,["securitypolicyviolation"],t)}addListener(t,e,r,n){if(e.addEventListener)for(let o of r){let r={capture:!0,passive:!0};e.addEventListener(o,n,r,!0),this.eventRemovers[t].push(function(){e.removeEventListener(o,n,r)})}}removeListeners(t){for(;this.eventRemovers[t].length;)this.eventRemovers[t].shift()()}constructor(t,r,n,o,i){(0,F._)(this,"deinstrumentConnectivity",function(){this.removeListeners("connectivity")}),this.options=t;let s=t.autoInstrument;!1===t.enabled||!1===s?this.autoInstrument={}:(e(s,"object")||(s=et),this.autoInstrument=R(et,s)),this.configureScrubbing(),this.telemeter=r,this.rollbar=n,this.diagnostic=n.client.notifier.diagnostic,this._window=o||{},this._document=i||{},this.replacements={network:[],log:[],navigation:[],connectivity:[]},this.eventRemovers={dom:[],connectivity:[],contentsecuritypolicy:[]},this._location=this._window.location,this._lastHref=this._location&&this._location.href}};t2.setComponents({telemeter:L,instrumenter:en,wrapGlobals:function(t,e,r){if(t){var n,o,s="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
1Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(n=0;n<s.length;++n)t[o=s[n]]&&t[o].prototype&&function(t,e,r){if(i(e,"addEventListener")){for(var n=e.addEventListener;n._rollbarOldAdd&&n.belongsToShim;)n=n._rollbarOldAdd;var o=function(e,r,o){n.call(this,e,t.wrap(r),o)};o._rollbarOldAdd=n,o.belongsToShim=r,e.addEventListener=o;for(var s=e.removeEventListener;s._rollbarOldRemove&&s.belongsToShim;)s=s._rollbarOldRemove;var a=function(t,e,r){s.call(this,t,e&&e._rollbar_wrapped||e,r)};a._rollbarOldRemove=s,a.belongsToShim=r,e.removeEventListener=a}}(e,t[o].prototype,r)}},scrub:A,truncation:{truncate:function(t,e,r){r=void 0===r?524288:r;for(var n,o,i,s,a,l=[K,Y,te.bind(null,1024),te.bind(null,512),te.bind(null,256),tn];(i=l.shift())&&(t=(s=i(t,e))[0],!(a=s[1]).error&&(n=a.value,o=r,function(t){for(var e=0,r=t.length,n=0;n<r;n++){var o=t.charCodeAt(n);o<128?e+=1:o<2048?e+=2:o<65536&&(e+=3)}return e}(n)>o)););return a},raw:K,truncateFrames:Y,truncateStrings:te,maybeTruncateValue:tt},tracing:class{configure(t){this.options=t}initSession(){this.session&&this.session.init()}get sessionId(){return this.session?this.session.session.id:null}get resource(){return{attributes:{...this.options.resource||{},"rollbar.environment":this.options.payload?.environment??this.options.environment}}}get scope(){return{name:"rollbar-browser-js",version:this.options.version}}idGen(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;return D(t)}createTracer(){this.contextManager=new q,this.exporter=new M(this.api,this.options),this.spanProcessor=new z(this.exporter,this.options.tracing),this.tracer=new G(this,this.spanProcessor)}getTracer(){return this.tracer}addSpanTransform(t){this.spanProcessor.addTransform(t)}getSpan(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.contextManager.active();return t.getValue(Z)}setSpan(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.contextManager.active(),e=arguments.length>1?arguments[1]:void 0;return t.setValue(Z,e)}startSpan(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.contextManager.active();return this.tracer.startSpan(t,e,r)}with(t,e,r){for(var n=arguments.length,o=Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];return this.contextManager.with(t,e,r,...o)}withSpan(t,e,r,n){let o=this.startSpan(t,e);return this.with(this.setSpan(this.contextManager.active(),o),r,n,o)}constructor(t,e,r){this.api=e,this.options=r,this.window=t,this.window.sessionStorage&&(this.session=new B(this,r)),this.createTracer()}}}),t.s(["default",0,t2],203877)},76238,t=>{"use strict";let e=["Script error",'{"isTrusted"',"JSONP request failed","[unhandledrejection]","could not be cloned","window.webkit","webkit.messageHandlers",'#undefined" was not found',"variable: UET","UET is not defined","Object Not Found Matching Id","ttd_dom_ready","getRestrictions is not a function","_AutofillCallbackHandler","((he.event.special[o.origType] || {}).handle || o.handler).apply is not a function","Java object is gone","Java exception was raised during method invocation","No Listener: tabs:outgoing.message.ready","ct.pinterest.com/stats","Not allowed to access cross-origin stylesheet","ResizeObserver loop","runtime.sendMessage(). Tab not found","Failed to start the audio device","WKWebView API client did not respond"],r=["Failed to fetch","Load failed","NetworkError when attempting to fetch resource","Unreachable hosts - your application id may be incorrect"],n=["chrome-extension://","moz-extension://","safari-extension://","safari-web-extension://","webkit-masked-url://"],o=/FBAN|FBIOS|FB_IAB|FBAV|Instagram/i,i=["(unknown)","[native code]"],s=["localhost","127.0.0.1"];function a(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{appBundlePath:a}=t;return function(t,l,u){try{var c;let l;if("u">typeof location&&s.includes(location.hostname))return!0;let{message:h,frames:p}=(c=u.body,l=c?.trace_chain,l?.length?{message:l[0]?.exception?.message||"",frames:l.flatMap(t=>t.frames??[])}:{message:c?.trace?.exception?.message||c?.message?.body||"",frames:c?.trace?.frames||[]});if(e.some(t=>h.includes(t))||t&&r.some(t=>h.includes(t))||h.includes("The object does not support the operation or argument")&&"u">typeof navigator&&o.test(navigator.userAgent)||p.length>0&&p.every(t=>n.some(e=>t.filename?.startsWith(e))))return!0;let d=p.filter(t=>t.filename&&!i.includes(t.filename));if(d.length>0&&!d.some(t=>!!(t.filename&&(a&&t.filename.includes(a)||"u">typeof location&&t.filename.startsWith(location.origin)))))return!0;return!1}catch{return!1}}}let l=a();t.s(["DEFAULT_HOST_BLOCK_LIST",0,["livechatinc.com","cookielaw.org","onetrust.com","static.klaviyo.com"],"checkIgnoreClient",0,l,"createCheckIgnoreClient",0,a]
1)},472066,189834,t=>{"use strict";var e=t.i(203877),r=t.i(76238);function n(t){return new e.default({...t,checkIgnore:t.checkIgnore??r.checkIgnoreClient})}t.s(["createClientInstance",0,n],189834);let o=null,i=new Proxy({options:{accessToken:"ssr-noop",payload:{}}},{get:(t,e,r)=>e in t?Reflect.get(t,e,r):"symbol"!=typeof e&&"then"!==e?()=>void 0:void 0});t.s(["SSR_ROLLBAR_STUB",0,i,"getClientRollbar",0,function(){return o},"initClientRollbar",0,function(t){return t.accessToken?(o||(o=n(t)),o):null}],472066)}]); 2 3//# sourceMappingURL=21cc98wd3k0rz.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.