1import{dc as Lt,ec as dn}from"./chunk-SCTSWO4W.js";import{$ as Tt,ca as fn}from"./chunk-XUOQO3WM.js";import{Da as Nt,E as Ot,F as wt,Ga as sn,M as on,a as St,b as Et,fc as xt,lc as un,tc as $t,uc as cn,v as an}from"./chunk-INU5ZF2F.js";import{$ as rn,Ga as nn,H as pt,Hd as bt,I as _t,L as vt,R as mt,Z as we,ea as te,ia as A,o as ht,p as Oe,ta as yt}from"./chunk-MOBT6VNX.js";import{a as ft,b as dt,f as lt,g as gt,i as tn}from"./chunk-OLNG5T5J.js";var Bt=gt((Rt,Ne)=>{(function(b){if(typeof Rt=="object"&&typeof Ne<"u")Ne.exports=b();else if(typeof define=="function"&&define.amd)define([],b);else{var F;typeof window<"u"?F=window:typeof global<"u"?F=global:typeof self<"u"?F=self:F=this,F.Bugsnag=b()}})(function(){var b,F,x,T=["navigation","request","process","log","user","state","error","manual"],_=function(e,t,n){for(var r=n,a=0,i=e.length;a<i;a++)r=t(r,e[a],a,e);return r},m=function(e,t){return _(e,function(n,r,a,i){return t(r,a,i)?n.concat(r):n},[])},w=function(e,t){return _(e,function(n,r,a,i){return n===!0||r===t},!1)},R=function(e){return Object.prototype.toString.call(e)==="[object Array]"},Ct=!{toString:null}.propertyIsEnumerable("toString"),re=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],j=function(e){var t=[],n;for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);if(!Ct)return t;for(var r=0,a=re.length;r<a;r++)Object.prototype.hasOwnProperty.call(e,re[r])&&t.push(re[r]);return t},xe=function(e,t){return e===void 0&&(e=1),t===void 0&&(t=1/0),function(n){return typeof n=="number"&&parseInt(""+n,10)===n&&n>=e&&n<=t}},ne=function(e){return typeof e=="function"||R(e)&&m(e,function(t){return typeof t=="function"}).length===e.length},V=function(e){return typeof e=="string"&&!!e.length},X={},$e=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};X.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:V},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return e===void 0||V(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return e===void 0||V(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return e===!0||e===!1}},enabledErrorTypes:{defaultValue:function(){return $e()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if(typeof e!="object"||!e)return!1;var t=j(e),n=j($e());return!(m(t,function(r){return w(n,r)}).length<t.length||m(j(e),function(r){return typeof e[r]!="boolean"}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:ne},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:ne},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:ne},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&typeof e=="object"&&V(e.notify)&&V(e.sessions)&&m(j(e),function(t){return!w(["notify","sessions"],t)}).length===0}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return e===!0||e===!1}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return e===null||R(e)&&m(e,function(t){return typeof t=="string"}).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return typeof e=="string"&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number \u2264100",validate:function(e){return xe(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return T},message:"should be null or a list of available breadcrumb types ("+T.join(",")+")",validate:function(e){return e===null||R(e)&&_(e,function(t,n){return t===!1?t:w(T,n)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return e===void 0||typeof e=="string"}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(e){return e===null||e&&_(j(e),function(t,n){return t&&w(["id","email","name"],n)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return typeof e=="object"&&e!==null}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&_(["debug","info","warn","error"],function(t,n){return t&&typeof e[n]=="function"},!0)}},redactedKeys:{defaultValue:function(){return["password"]}
1,message:"should be an array of strings|regexes",validate:function(e){return R(e)&&e.length===m(e,function(t){return typeof t=="string"||t&&typeof t.test=="function"}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return R(e)&&e.length===m(e,function(t){return t&&typeof t=="object"&&typeof t.load=="function"}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(e){return R(e)&&e.length===m(e,function(t){return t&&typeof t=="object"&&typeof t.name=="string"}).length}}};var N=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L=function(e,t){return _(e,function(n,r,a,i){return n.concat(t(r,a,i))},[])};function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(this,arguments)}var ie=X.schema,Ft={releaseStage:N({},ie.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:ae({},ie.appType,{defaultValue:function(){return"browser"}}),logger:N({},ie.logger,{defaultValue:function(){return typeof console<"u"&&typeof console.debug=="function"?Dt():void 0}})},Dt=function(){var e={},t=console.log;return L(["debug","info","warn","error"],function(n){var r=console[n];e[n]=typeof r=="function"?r.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")}),e},kt=(function(){function e(n,r,a,i){i===void 0&&(i=new Date),this.type=a,this.message=n,this.metadata=r,this.timestamp=i}var t=e.prototype;return t.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e})(),oe=kt,z={};(function(e,t){"use strict";typeof b=="function"&&b.amd?b("stackframe",[],t):typeof z=="object"?z=t():e.StackFrame=t()})(this,function(){"use strict";function e(c){return!isNaN(parseFloat(c))&&isFinite(c)}function t(c){return c.charAt(0).toUpperCase()+c.substring(1)}function n(c){return function(){return this[c]}}var r=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],i=["fileName","functionName","source"],o=["args"],u=r.concat(a,i,o);function s(c){if(c instanceof Object)for(var g=0;g<u.length;g++)c.hasOwnProperty(u[g])&&c[u[g]]!==void 0&&this["set"+t(u[g])](c[u[g]])}s.prototype={getArgs:function(){return this.args},setArgs:function(c){if(Object.prototype.toString.call(c)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=c},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(c){if(c instanceof s)this.evalOrigin=c;else if(c instanceof Object)this.evalOrigin=new s(c);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var c=this.getFunctionName()||"{anonymous}",g="("+(this.getArgs()||[]).join(",")+")",y=this.getFileName()?"@"+this.getFileName():"",v=e(this.getLineNumber())?":"+this.getLineNumber():"",l=e(this.getColumnNumber())?":"+this.getColumnNumber():"";return c+g+y+v+l}};for(var d=0;d<r.length;d++)s.prototype["get"+t(r[d])]=n(r[d]),s.prototype["set"+t(r[d])]=(function(c){return function(g){this[c]=!!g}})(r[d]);for(var f=0;f<a.length;f++)s.prototype["get"+t(a[f])]=n(a[f]),s.prototype["set"+t(a[f])]=(function(c){return function(g){if(!e(g))throw new TypeError(c+" must be a Number");this[c]=Number(g)}})(a[f]);for(var h=0;h<i.length;h++)s.prototype["get"+t(i[h])]=n(i[h]),s.prototype["set"+t(i[h])]=(function(c){return function(g){this[c]=String(g)}})(i[h]);return s});var se={};(function(e,t){"use strict";typeof b=="function"&&b.amd?b("error-stack-parser",["stackframe"],t):typeof se=="object"?se=t(z):e.ErrorStackParser=t(e.StackFrame)})(this,function(t){"use strict";var n=/(^|@)\S+\:\d+/,r=/^\s*at .*(\S+\:\d+|\(native\))/m,a=/^(eval@)?(\[native code\])?$/;return{parse:function(o){if(typeof o.stacktrace<"u"||typeof o["opera#sourceloc"]<"u")return this.parseOpera(o);if(o.stack&&o.stack.match(r))return this.parseV8OrIE(o);if(o.stack)return this.parseFFOrSafari(o);throw new Error("Cannot parse given Error object")}
1,extractLocation:function(o){if(o.indexOf(":")===-1)return[o];var u=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/,s=u.exec(o.replace(/[\(\)]/g,""));return[s[1],s[2]||void 0,s[3]||void 0]},parseV8OrIE:function(o){var u=o.stack.split(` 2`).filter(function(s){return!!s.match(r)},this);return u.map(function(s){s.indexOf("(eval ")>-1&&(s=s.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var d=s.replace(/^\s+/,"").replace(/\(eval code/g,"("),f=d.match(/ (\((.+):(\d+):(\d+)\)$)/);d=f?d.replace(f[0],""):d;var h=d.split(/\s+/).slice(1),c=this.extractLocation(f?f[1]:h.pop()),g=h.join(" ")||void 0,y=["eval","<anonymous>"].indexOf(c[0])>-1?void 0:c[0];return new t({functionName:g,fileName:y,lineNumber:c[1],columnNumber:c[2],source:s})},this)},parseFFOrSafari:function(o){var u=o.stack.split(` 3`).filter(function(s){return!s.match(a)},this);return u.map(function(s){if(s.indexOf(" > eval")>-1&&(s=s.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),s.indexOf("@")===-1&&s.indexOf(":")===-1)return new t({functionName:s});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=s.match(d),h=f&&f[1]?f[1]:void 0,c=this.extractLocation(s.replace(d,""));return new t({functionName:h,fileName:c[0],lineNumber:c[1],columnNumber:c[2],source:s})},this)},parseOpera:function(o){return!o.stacktrace||o.message.indexOf(` 4`)>-1&&o.message.split(` 5`).length>o.stacktrace.split(` 6`).length?this.parseOpera9(o):o.stack?this.parseOpera11(o):this.parseOpera10(o)},parseOpera9:function(o){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,s=o.message.split(` 7`),d=[],f=2,h=s.length;f<h;f+=2){var c=u.exec(s[f]);c&&d.push(new t({fileName:c[2],lineNumber:c[1],source:s[f]}))}return d},parseOpera10:function(o){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,s=o.stacktrace.split(` 8`),d=[],f=0,h=s.length;f<h;f+=2){var c=u.exec(s[f]);c&&d.push(new t({functionName:c[3]||void 0,fileName:c[2],lineNumber:c[1],source:s[f]}))}return d},parseOpera11:function(o){var u=o.stack.split(` 9`).filter(function(s){return!!s.match(n)&&!s.match(/^Error created at/)},this);return u.map(function(s){var d=s.split("@"),f=this.extractLocation(d.pop()),h=d.shift()||"",c=h.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0,g;h.match(/\(([^\)]*)\)/)&&(g=h.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var y=g===void 0||g==="[arguments not available]"?void 0:g.split(",");return new t({functionName:c,args:y,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:s})},this)}}});var Te=se,G=function(e,t,n,r){var a=r&&r.redactedKeys?r.redactedKeys:[],i=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(Wt(e,a,i),t,n)},Ht=20,Vt=25e3,qt=8,J="...";function Ut(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}function Le(e){return"[Throws: "+(e?e.message:"?")+"]"}function Kt(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}function Xt(e,t){for(var n=0,r=e.length;n<r;n++)if(t.indexOf(e[n])===0)return!0;return!1}function zt(e,t){for(var n=0,r=e.length;n<r;n++)if(typeof e[n]=="string"&&e[n].toLowerCase()===t.toLowerCase()||e[n]&&typeof e[n].test=="function"&&e[n].test(t))return!0;return!1}function Gt(e){return Object.prototype.toString.call(e)==="[object Array]"}function Jt(e,t){try{return e[t]}catch(n){return Le(n)}}function Wt(e,t,n){var r=[],a=0;function i(o,u){function s(){return u.length>qt&&a>Vt}if(a++,u.length>Ht||s())return J;if(o===null||typeof o!="object")return o;if(Kt(r,o))return"[Circular]";if(r.push(o),typeof o.toJSON=="function")try{a--;var d=i(o.toJSON(),u);return r.pop(),d}catch(p){return Le(p)}var f=Ut(o);if(f){a--;var h=i({name:o.name,message:o.message},u);return r.pop(),h}if(Gt(o)){for(var c=[],g=0,y=o.length;g<y;g++){if(s()){c.push(J);break}c.push(i(o[g],u.concat("[]")))}return r.pop(),c}var v={};try{for(var l in o)if(Object.prototype.hasOwnProperty.call(o,l)){if(Xt(n,u.join("."))&&zt(t,l)){v[l]="[REDACTED]";continue}if(s()){v[l]=J;break}v[l]=i(Jt(o,l),u.concat(l))}}catch(p){}return r.pop(),v}return i(e,[])}function Re(e,t,n,r){if(typeof n=="string"){r===void 0?r=null:r!==null&&typeof r!="string"&&(r=G(r));var a=t[n];if(typeof a=="number"){e[a]={name:n,variant:r};return}e.push({name:n,variant:r}),t[n]=e.length-1}}function Yt(e,t,n){if(R(t)){for(var r=0;r<t.length;++r){var a=t[r];a===null||typeof a!="object"||Re(e,n,a.name,a.variant)}return e}}function Qt(e){return L(m(e,Boolean),function(t){var n=t.name,r=t.variant,a={featureFlag:n};return typeof r=="string"&&(a.variant=r),a})}function Zt(e,t,n){var r=t[n];typeof r=="number"&&(e[r]=null,delete t[n])}var I={add:Re,clear:Zt,merge:Yt,toEventApi:Qt},W=function(e){return!!e&&(!!e.stack||!!e.stacktrace||!!e["opera#sourceloc"])&&typeof(e.stack||e.stacktrace||e["opera#sourceloc"])=="string"&&e.stack!==e.name+": "+e.message},er=tr;function tr(e){switch(Object.prototype.toString.call(e)){case"[object Error]":return!0;
9case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return e instanceof Error}}var Y=er,rr=function(e,t,n,r){var a;if(t){var i;if(n===null)return Be(e,t);typeof n=="object"&&(i=n),typeof n=="string"&&(i=(a={},a[n]=r,a)),i&&(t==="__proto__"||t==="constructor"||t==="prototype"||(e[t]||(e[t]={}),e[t]=N({},e[t],i)))}},nr=function(e,t,n){if(typeof t=="string"){if(!n)return e[t];if(e[t])return e[t][n]}},Be=function(e,t,n){if(typeof t=="string"){if(!n){delete e[t];return}t==="__proto__"||t==="constructor"||t==="prototype"||e[t]&&delete e[t][n]}},D={add:rr,get:nr,clear:Be},ue={};(function(e,t){"use strict";typeof b=="function"&&b.amd?b("stack-generator",["stackframe"],t):typeof ue=="object"?ue=t(z):e.StackGenerator=t(e.StackFrame)})(this,function(e){return{backtrace:function(n){var r=[],a=10;typeof n=="object"&&typeof n.maxStackSize=="number"&&(a=n.maxStackSize);for(var i=arguments.callee;i&&r.length<a&&i.arguments;){for(var o=new Array(i.arguments.length),u=0;u<o.length;++u)o[u]=i.arguments[u];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?r.push(new e({functionName:RegExp.$1||void 0,args:o})):r.push(new e({args:o}));try{i=i.caller}catch(s){break}}return r}}});function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}var M=(function(){function e(n,r,a,i,o){a===void 0&&(a=[]),i===void 0&&(i=or()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=o,this._handledState=i,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this.errors=[Ae(n,r,e.__type,a)]}var t=e.prototype;return t.addMetadata=function(r,a,i){return D.add(this._metadata,r,a,i)},t.setTraceCorrelation=function(r,a){typeof r=="string"&&(this._correlation=ce({traceId:r},typeof a=="string"?{spanId:a}:{}))},t.getMetadata=function(r,a){return D.get(this._metadata,r,a)},t.clearMetadata=function(r,a){return D.clear(this._metadata,r,a)},t.addFeatureFlag=function(r,a){a===void 0&&(a=null),I.add(this._features,this._featuresIndex,r,a)},t.addFeatureFlags=function(r){I.merge(this._features,r,this._featuresIndex)},t.getFeatureFlags=function(){return I.toEventApi(this._features)},t.clearFeatureFlag=function(r){I.clear(this._features,this._featuresIndex,r)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getUser=function(){return this._user},t.setUser=function(r,a,i){this._user={id:r,email:a,name:i}},t.toJSON=function(){return{payloadVersion:"4",exceptions:L(this.errors,function(r){return N({},r,{message:r.errorMessage})}),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},e})(),ar=function(e){var t={file:e.fileName,method:ir(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber>-1&&!t.file&&!t.method&&(t.file="global code"),t},ir=function(e){return/^global code$/i.test(e)?"global code":e},or=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},je=function(e){return typeof e=="string"?e:""};function Ae(e,t,n,r){return{errorClass:je(e),errorMessage:je(t),type:n,stacktrace:_(r,function(a,i){var o=ar(i);try{return JSON.stringify(o)==="{}"?a:a.concat(o)}catch(u){return a}},[])}}function Me(e){return e.cause?[e].concat(Me(e.cause)):[e]}M.getStacktrace=function(e,t,n){if(W(e))return Te.parse(e).slice(t);try{return m(ue.backtrace(),function(r){return(r.functionName||"").indexOf("StackGenerator$$")===-1}).slice(1+n)}catch(r){return[]}},M.create=function(e,t,n,r,a,i){a===void 0&&(a=0);
9var o=Ie(e,t,r,i),u=o[0],s=o[1],d;try{var f=M.getStacktrace(u,s>0?1+s+a:0,1+a);d=new M(u.name,u.message,f,n,e)}catch(y){d=new M(u.name,u.message,[],n,e)}if(u.name==="InvalidError"&&d.addMetadata(""+r,"non-error parameter",Pe(e)),u.cause){var h,c=Me(u).slice(1),g=L(c,function(y){var v=Y(y)&&W(y)?Te.parse(y):[],l=Ie(y,!0,"error cause"),p=l[0];return p.name==="InvalidError"&&d.addMetadata("error cause",Pe(y)),Ae(p.name,p.message,M.__type,v)});(h=d.errors).push.apply(h,g)}return d};var Pe=function(e){return e===null?"null":e===void 0?"undefined":e},Ie=function(e,t,n,r){var a,i=0,o=function(u){var s=n==="error cause"?"was":"received";r&&r.warn(n+" "+s+' a non-error: "'+u+'"');var d=new Error(n+" "+s+' a non-error. See "'+n+'" tab for more detail.');return d.name="InvalidError",d};if(!t)Y(e)?a=e:(a=o(typeof e),i+=2);else switch(typeof e){case"string":case"number":case"boolean":a=new Error(String(e)),i+=1;break;case"function":a=o("function"),i+=2;break;case"object":e!==null&&Y(e)?a=e:e!==null&&sr(e)?(a=new Error(e.message||e.errorMessage),a.name=e.name||e.errorClass,i+=1):(a=o(e===null?"null":"unsupported object"),i+=2);break;default:a=o("nothing"),i+=2}if(!W(a))try{throw a}catch(u){W(u)&&(a=u,i=1)}return[a,i]};M.__type="browserjs";var sr=function(e){return(typeof e.name=="string"||typeof e.errorClass=="string")&&(typeof e.message=="string"||typeof e.errorMessage=="string")},fe=M,ur=function(e,t,n){var r=0,a=function(){if(r>=e.length)return n(null,!0);t(e[r],function(i,o){if(i)return n(i);if(o===!1)return n(null,!1);r++,a()})};a()},cr=function(e,t,n,r){var a=function(i,o){if(typeof i!="function")return o(null);try{if(i.length!==2){var u=i(t);return u&&typeof u.then=="function"?u.then(function(s){return setTimeout(function(){return o(null,s)})},function(s){setTimeout(function(){return n(s),o(null,!0)})}):o(null,u)}i(t,function(s,d){if(s)return n(s),o(null);o(null,d)})}catch(s){n(s),o(null)}};ur(e,a,r)},Ce=function(e,t,n,r){for(var a=!1,i=e.slice();!a&&i.length;)try{a=i.pop()(t)===!1}catch(o){r.error("Error occurred in "+n+" callback, continuing anyway\u2026"),r.error(o)}return a},de=function(t,n){var r="000000000"+t;return r.substr(r.length-n)},Fe=typeof window=="object"?window:self,De=0;for(var fr in Fe)Object.hasOwnProperty.call(Fe,fr)&&De++;var dr=navigator.mimeTypes?navigator.mimeTypes.length:0,lr=de((dr+navigator.userAgent.length).toString(36)+De.toString(36),4),ke=function(){return lr},q=0,le=4,Q=36,He=Math.pow(Q,le);function Ve(){return de((Math.random()*He<<0).toString(Q),le)}function gr(){return q=q<He?q:0,q++,q-1}function qe(){var e="c",t=new Date().getTime().toString(Q),n=de(gr().toString(Q),le),r=ke(),a=Ve()+Ve();return e+t+n+r+a}qe.fingerprint=ke;var hr=qe,pr=(function(){function e(){this.id=hr(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var t=e.prototype;return t.getUser=function(){return this._user},t.setUser=function(r,a,i){this._user={id:r,email:a,name:i}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(r){this[r._handledState.unhandled?"_unhandled":"_handled"]+=1},e})(),ge=pr,_r=I.add,vr=I.clear,he=I.merge,P=function(){},mr=(function(){function e(n,r,a,i){var o=this;r===void 0&&(r=X.schema),a===void 0&&(a=[]),this._notifier=i,this._config={},this._schema=r,this._delivery={sendSession:P,sendEvent:P},this._logger={debug:P,info:P,warn:P,error:P},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=e,this.Event=fe,this.Breadcrumb=oe,this.Session=ge,this._config=this._configure(n,a),L(a.concat(this._config.plugins),function(d){d&&o._loadPlugin(d)}),this._depth=1;var u=this,s=this.notify;this.notify=function(){return s.apply(u,arguments)}}var t=e.prototype;return t.addMetadata=function(r,a,i){return D.add(this._metadata,r,a,i)},t.getMetadata=function(r,a){return D.get(this._metadata,r,a)},t.clearMetadata=function(r,a){return D.clear(this._metadata,r,a)},t.addFeatureFlag=function(r,a){a===void 0&&(a=null),_r(this._features,this._featuresIndex,r,a)},t.addFeatureFlags=function(r){he(this._features,r,this._featuresIndex)},t.clearFeatureFlag=function(r){vr(this._features,this._featuresIndex,r)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getContext=function(){return this._context},t.setContext=function(r){this._context=r},t._configure=function(r,a){var i=_(a,function(d,f){return f&&f.configSchema?N({},d,f.configSchema):d},this._schema),o=_(j(i),function(d,f){var h=i[f].defaultValue(r[f]);if(r[f]!==void 0){var c=i[f].validate(r[f]);c?i[f].allowPartialObject?d.config[f]=N(h,r[f]):d.config[f]=r[f]:(d.errors[f]=i[f].message,d.config[f]=h)}else d.config[f]=h;return d},{errors:{},config:{}}),u=o.errors,s=o.config;if(i.apiKey){if(!s.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(s.apiKey)||(u.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=N({},s.metadata),he(this._features,s.featureFlags,this._featuresIndex),this._user=N({},s.user),this._context=s.context,s.logger&&(this._logger=s.logger),s.onError&&(this._cbs.e=this._cbs.e.concat(s.onError)),s.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(s.onBreadcrumb)),s.onSession&&(this._cbs.s=this._cbs.s.concat(s.onSession)),j(u).length&&this._logger.warn(yr(u,r)),s},t.getUser=function(){return this._user},t.setUser=function(r,a,i){this._user={id:r,email:a,name:i}},t._loadPlugin=function(r){var a=r.load(this);return r.name&&(this._plugins["~"+r.name+"~"]=a),this},t.getPlugin=function(r){return this._plugins["~"+r+"~"]},t._setDelivery=function(r){this._delivery=r(this)},t.startSession=function(){var r=new ge;r.app.releaseStage=this._config.releaseStage,r.app.version=this._config.appVersion,r.app.type=this._config.appType,r._user=N({},this._user);var a=Ce(this._cbs.s,r,"onSession",this._logger);return a?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,r)},t.addOnError=function(r,a){a===void 0&&(a=!1),this._cbs.e[a?"unshift":"push"](r)},t.removeOnError=function(r){this._cbs.e=m(this._cbs.e,function(a){return a!==r})},t._addOnSessionPayload=function(r){this._cbs.sp.push(r)},t.addOnSession=function(r){this._cbs.s.push(r)},t.removeOnSession=function(r){this._cbs.s=m(this._cbs.s,function(a){return a!==r})},t.addOnBreadcrumb=function(r,a){a===void 0&&(a=!1),this._cbs.b[a?"unshift":"push"](r)},t.removeOnBreadcrumb=function(r){this._cbs.b=m(this._cbs.b,function(a){return a!==r})},t.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},t.resumeSession=function(){return this._sessionDelegate.resumeSession(this)}
9,t.leaveBreadcrumb=function(r,a,i){if(r=typeof r=="string"?r:"",i=typeof i=="string"&&w(T,i)?i:"manual",a=typeof a=="object"&&a!==null?a:{},!!r){var o=new oe(r,a,i),u=Ce(this._cbs.b,o,"onBreadcrumb",this._logger);if(u){this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");return}this._breadcrumbs.push(o),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},t._isBreadcrumbTypeEnabled=function(r){var a=this._config.enabledBreadcrumbTypes;return a===null||w(a,r)},t.notify=function(r,a,i){i===void 0&&(i=P);var o=fe.create(r,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(o,a,i)},t._notify=function(r,a,i){var o=this;if(i===void 0&&(i=P),r.app=N({},r.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),r.context=r.context||this._context,r._metadata=N({},r._metadata,this._metadata),r._user=N({},r._user,this._user),r.breadcrumbs=this._breadcrumbs.slice(),he(r._features,this._features,r._featuresIndex),this._config.enabledReleaseStages!==null&&!w(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),i(null,r);var u=r.severity,s=function(f){o._logger.error("Error occurred in onError callback, continuing anyway\u2026"),o._logger.error(f)},d=[].concat(this._cbs.e).concat(a);cr(d,r,s,function(f,h){if(f&&s(f),!h)return o._logger.debug("Event not sent due to onError callback"),i(null,r);o._isBreadcrumbTypeEnabled("error")&&e.prototype.leaveBreadcrumb.call(o,r.errors[0].errorClass,{errorClass:r.errors[0].errorClass,errorMessage:r.errors[0].errorMessage,severity:r.severity},"error"),u!==r.severity&&(r._handledState.severityReason={type:"userCallbackSetSeverity"}),r.unhandled!==r._handledState.unhandled&&(r._handledState.severityReason.unhandledOverridden=!0,r._handledState.unhandled=r.unhandled),o._session&&(o._session._track(r),r._session=o._session),o._delivery.sendEvent({apiKey:r.apiKey||o._config.apiKey,notifier:o._notifier,events:[r]},function(c){return i(c,r)})})},e})(),yr=function(e,t){var n=new Error(`Invalid configuration 10`+L(j(e),function(r){return" - "+r+" "+e[r]+", got "+br(t[r])}).join(` 11 12`));return n},br=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},pe=mr,k={},Ue=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];k.event=function(e,t){var n=G(e,null,null,{redactedPaths:Ue,redactedKeys:t});return n.length>1e6&&(e.events[0]._metadata={notifier:`WARNING! 13Serialized payload was `+n.length/1e6+`MB (limit = 1MB) 14metadata was removed`},n=G(e,null,null,{redactedPaths:Ue,redactedKeys:t})),n},k.session=function(e,t){var n=G(e,null,null);return n};var _e={};_e=function(e,t){return t===void 0&&(t=window),{sendEvent:function(n,r){r===void 0&&(r=function(){});var a=Ke(e._config,"notify","4",t),i=k.event(n,e._config.redactedKeys),o=new t.XDomainRequest;o.onload=function(){r(null)},o.onerror=function(){var u=new Error("Event failed to send");e._logger.error("Event failed to send\u2026",u),i.length>1e6&&e._logger.warn("Event oversized ("+(i.length/1e6).toFixed(2)+" MB)"),r(u)},o.open("POST",a),setTimeout(function(){try{o.send(i)}catch(u){e._logger.error(u),r(u)}},0)},sendSession:function(n,r){r===void 0&&(r=function(){});var a=Ke(e._config,"sessions","1",t),i=new t.XDomainRequest;i.onload=function(){r(null)},i.open("POST",a),setTimeout(function(){try{i.send(k.session(n,e._config.redactedKeys))}catch(o){e._logger.error(o),r(o)}},0)}}};var Ke=function(e,t,n,r){var a=JSON.parse(JSON.stringify(new Date)),i=Sr(e.endpoints[t],r.location.protocol);return i+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(a)},Sr=_e._matchPageProtocol=function(e,t){return t==="http:"?e.replace(/^https:/,"http:"):e},Er=function(e,t){return t===void 0&&(t=window),{sendEvent:function(n,r){r===void 0&&(r=function(){});try{var a=e._config.endpoints.notify,i=new t.XMLHttpRequest,o=k.event(n,e._config.redactedKeys);i.onreadystatechange=function(){if(i.readyState===t.XMLHttpRequest.DONE){var u=i.status;if(u===0||u>=400){var s=new Error("Request failed with status "+u);e._logger.error("Event failed to send\u2026",s),o.length>1e6&&e._logger.warn("Event oversized ("+(o.length/1e6).toFixed(2)+" MB)"),r(s)}else r(null)}},i.open("POST",a),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",n.apiKey||e._config.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","4"),i.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),i.send(o)}catch(u){e._logger.error(u)}},sendSession:function(n,r){r===void 0&&(r=function(){});try{var a=e._config.endpoints.sessions,i=new t.XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===t.XMLHttpRequest.DONE){var o=i.status;if(o===0||o>=400){var u=new Error("Request failed with status "+o);e._logger.error("Session failed to send\u2026",u),r(u)}else r(null)}},i.open("POST",a),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",e._config.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","1"),i.setRequestHeader("Bugsnag-Sent-At",new Date().toISOString()),i.send(k.session(n,e._config.redactedKeys))}catch(o){e._logger.error(o)}}}},Xe=new Date,Or=function(){Xe=new Date},wr={name:"appDuration",load:function(e){return e.addOnError(function(t){var n=new Date;t.app.duration=n-Xe},!0),{reset:Or}}},Nr=function(e){return e===void 0&&(e=window),{load:function(t){t.addOnError(function(n){n.context===void 0&&(n.context=e.location.pathname)},!0)}}},ve=function(t,n){var r="000000000"+t;return r.substr(r.length-n)},ze=typeof window=="object"?window:self,Ge=0;for(var xr in ze)Object.hasOwnProperty.call(ze,xr)&&Ge++;var $r=navigator.mimeTypes?navigator.mimeTypes.length:0,Tr=ve(($r+navigator.userAgent.length).toString(36)+Ge.toString(36),4),Je=function(){return Tr},U=0,me=4,Z=36,We=Math.pow(Z,me);function Ye(){return ve((Math.random()*We<<0).toString(Z),me)}function Lr(){return U=U<We?U:0,U++,U-1}function Qe(){var e="c",t=new Date().getTime().toString(Z),n=ve(Lr().toString(Z),me),r=Je(),a=Ye()+Ye();return e+t+n+r+a}Qe.fingerprint=Je;var Rr=Qe,Ze="bugsnag-anonymous-id",Br=function(e){try{var t=e.localStorage,n=t.getItem(Ze);return n&&/^c[a-z0-9]{20,32}$/.test(n)||(n=Rr(),t.setItem(Ze,n)),n}catch(r){}},jr=function(e,t){return e===void 0&&(e=navigator),t===void 0&&(t=window),{load:function(n){var r={locale:e.browserLanguage||e.systemLanguage||e.userLanguage||e.language,userAgent:e.userAgent};t&&t.screen&&t.screen.orientation&&t.screen.orientation.type?r.orientation=t.screen.orientation.type:t&&t.document&&(r.orientation=t.document.documentElement.clientWidth>t.document.documentElement.clientHeight?"landscape":"portrait"),n._config.generateAnonymousId&&(r.id=Br(t)),n.addOnSession(function(a){a.device=N({},a.device,r),n._config.collectUserIp||et(a)}),n.addOnError(function(a){a.device=N({},a.device,r,{time:new Date}),n._config.collectUserIp||et(a)},!0)},configSchema:{generateAnonymousId:{validate:function(n){return n===!0||n===!1},defaultValue:function(){return!0},message:"should be true|false"}}}},et=function(e){var t=e.getUser();(!t||!t.id)&&e.setUser(e.device.id)},Ar=function(e){return e===void 0&&(e=window),{load:function(t){t.addOnError(function(n){n.request&&n.request.url||(n.request=N({},n.request,{url:e.location.href}))},!0)}}},Mr={load:function(e){e._sessionDelegate=Pr}},Pr={startSession:function(e,t){var n=e;return n._session=t,n._pausedSession=null,n._config.enabledReleaseStages!==null&&!w(n._config.enabledReleaseStages,n._config.releaseStage)?(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n):(n._delivery.sendSession({notifier:n._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}),n)},resumeSession:function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},Ir={load:function(e){e._config.collectUserIp||e.addOnError(function(t){t._user&&typeof t._user.id>"u"&&delete t._user.id,t._user=N({id:"[REDACTED]"},t._user),t.request=N({clientIp:"[REDACTED]"},t.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return e===!0||e===!1}}}},tt={};
14tt.load=function(e){var t=/^(local-)?dev(elopment)?$/.test(e._config.releaseStage);t||!e._isBreadcrumbTypeEnabled("log")||L(Cr,function(n){var r=console[n];console[n]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];e.leaveBreadcrumb("Console output",_(i,function(u,s,d){var f="[Unknown value]";try{f=String(s)}catch(h){}if(f==="[object Object]")try{f=JSON.stringify(s)}catch(h){}return u["["+d+"]"]=f,u},{severity:n.indexOf("group")===0?"log":n}),"log"),r.apply(console,i)},console[n]._restore=function(){console[n]=r}})};var Cr=m(["log","debug","info","warn","error"],function(e){return typeof console<"u"&&typeof console[e]=="function"}),rt=200,nt=5e5,Fr=function(e,t){return e===void 0&&(e=document),t===void 0&&(t=window),{load:function(n){if(!n._config.trackInlineScripts)return;var r=t.location.href,a="",i=!!e.attachEvent,o=i?e.readyState==="complete":e.readyState!=="loading",u=function(){return e.documentElement.outerHTML};a=u();var s=e.onreadystatechange;e.onreadystatechange=function(){e.readyState==="interactive"&&(a=u(),o=!0);try{s.apply(this,arguments)}catch(l){}};var d=null,f=function(l){d=l},h=function(){var l=e.currentScript||d;if(!l&&!o){var p=e.scripts||e.getElementsByTagName("script");l=p[p.length-1]}return l},c=function(l){(!o||!a)&&(a=u());var p=["<!-- DOC START -->"].concat(a.split(` 15`)),E=l-1,S=Math.max(E-3,0),B=Math.min(E+3,p.length);return _(p.slice(S,B),function(O,K,Ee){return O[S+1+Ee]=K.length<=rt?K:K.substr(0,rt),O},{})};n.addOnError(function(l){l.errors[0].stacktrace=m(l.errors[0].stacktrace,function(O){return!/__trace__$/.test(O.method)});var p=l.errors[0].stacktrace[0],E=function(O){return O.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!(p&&p.file&&E(p.file)!==E(r))){var S=h();if(S){var B=S.innerHTML;l.addMetadata("script","content",B.length<=nt?B:B.substr(0,nt)),p&&p.lineNumber&&(p.code=c(p.lineNumber))}}},!0);var g=L(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],function(l){return ye(t,l,function(p){return v(p,function(E){return{get:function(){return E[0]},replace:function(S){E[0]=S}}})})}),y=g[0];L(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],function(l){!t[l]||!t[l].prototype||!Object.prototype.hasOwnProperty.call(t[l].prototype,"addEventListener")||(ye(t[l].prototype,"addEventListener",function(p){return v(p,at)}),ye(t[l].prototype,"removeEventListener",function(p){return v(p,at,!0)}))});function v(l,p,E){return E===void 0&&(E=!1),function(){var S=[].slice.call(arguments);try{var B=p(S),O=B.get();if(E&&l.apply(this,S),typeof O!="function")return l.apply(this,S);if(O.__trace__)B.replace(O.__trace__);else{var K=h();O.__trace__=function(){f(K),y(function(){f(null)},0);var en=O.apply(this,arguments);return f(null),en},O.__trace__.__trace__=O.__trace__,B.replace(O.__trace__)}}catch(Ee){}if(l.apply)return l.apply(this,S);switch(S.length){case 1:return l(S[0]);case 2:return l(S[0],S[1]);default:return l()}}}},configSchema:{trackInlineScripts:{validate:function(n){return n===!0||n===!1},defaultValue:function(){return!0},message:"should be true|false"}}}};function ye(e,t,n){var r=e[t];if(!r)return r;var a=n(r);return e[t]=a,r}function at(e){var t=!!e[1]&&typeof e[1].handleEvent=="function";return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(n){t?e[1].handleEvent=n:e[1]=n}}}var Dr=function(e){return e===void 0&&(e=window),{load:function(t){"addEventListener"in e&&t._isBreadcrumbTypeEnabled("user")&&e.addEventListener("click",function(n){var r,a;try{r=Hr(n.target),a=it(n.target,e)}catch(i){r="[hidden]",a="[hidden]",t._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}t.leaveBreadcrumb("UI click",{targetText:r,targetSelector:a},"user")},!0)}}},kr=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/;function Hr(e){var t=e.textContent||e.innerText||"";return!t&&(e.type==="submit"||e.type==="button")&&(t=e.value),t=t.replace(kr,"$1"),t.length>140?t.slice(0,135)+"(...)":t}function it(e,t){var n=[e.tagName];if(e.id&&n.push("#"+e.id),e.className&&e.className.length&&n.push("."+e.className.split(" ").join(".")),!t.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(t.document.querySelectorAll(n.join("")).length===1)return n.join("")}catch(a){return n.join("")}if(e.parentNode.childNodes.length>1){var r=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;n.push(":nth-child("+r+")")}return t.document.querySelectorAll(n.join("")).length===1?n.join(""):e.parentNode?it(e.parentNode,t)+" > "+n.join(""):n.join("")}var ot={};ot=function(e){e===void 0&&(e=window);var t={load:function(n){if("addEventListener"in e&&n._isBreadcrumbTypeEnabled("navigation")){var r=function(a){return function(){return n.leaveBreadcrumb(a,{},"navigation")}};e.addEventListener("pagehide",r("Page hidden"),!0),e.addEventListener("pageshow",r("Page shown"),!0),e.addEventListener("load",r("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",r("DOMContentLoaded"),!0),e.addEventListener("load",function(){return e.addEventListener("popstate",r("Navigated back"),!0)}),e.addEventListener("hashchange",function(a){var i=a.oldURL?{from:ee(a.oldURL,e),to:ee(a.newURL,e),state:ut(e)}:{to:ee(e.location.href,e)};n.leaveBreadcrumb("Hash changed",i,"navigation")},!0),e.history.replaceState&&st(n,e.history,"replaceState",e),e.history.pushState&&st(n,e.history,"pushState",e)}}};return t};var ee=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},Vr=function(e,t,n,r){var a=ee(e.location.href,e);return{title:n,state:t,prevState:ut(e),to:r||a,from:a}},st=function(e,t,n,r){var a=t[n];t[n]=function(i,o,u){e.leaveBreadcrumb("History "+n,Vr(r,i,o,u),"navigation"),typeof e.resetEventCount=="function"&&e.resetEventCount(),e._config.autoTrackSessions&&e.startSession(),a.apply(t,[i,o].concat(u!==void 0?u:[]))}},ut=function(e){try{return e.history.state}catch(t){}},H="request",qr=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=window);
15var n=[],r={load:function(a){if(!a._isBreadcrumbTypeEnabled("request"))return;var i=[a._config.endpoints.notify,a._config.endpoints.sessions].concat(e);o(),d();function o(){if("addEventListener"in t.XMLHttpRequest.prototype){var c=t.XMLHttpRequest.prototype.open;t.XMLHttpRequest.prototype.open=function(y,v){var l=this,p=!1,E=function(){return s(y,v)},S=function(){return u(y,v,l.status)};p&&(this.removeEventListener("load",S),this.removeEventListener("error",E)),this.addEventListener("load",S),this.addEventListener("error",E),p=!0,c.apply(this,arguments)}}}function u(c,g,y){if(g===void 0){a._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");return}if(!(typeof g=="string"&&w(i,g.replace(/\?.*$/,"")))){var v={status:y,request:c+" "+g};y>=400?a.leaveBreadcrumb("XMLHttpRequest failed",v,H):a.leaveBreadcrumb("XMLHttpRequest succeeded",v,H)}}function s(c,g){if(g===void 0){a._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");return}typeof g=="string"&&w(i,g.replace(/\?.*$/,""))||a.leaveBreadcrumb("XMLHttpRequest error",{request:c+" "+g},H)}function d(){if(!(!("fetch"in t)||t.fetch.polyfill)){var c=t.fetch;t.fetch=function(){var y=arguments,v=arguments[0],l=arguments[1],p,E=null;return v&&typeof v=="object"?(E=v.url,l&&"method"in l?p=l.method:v&&"method"in v&&(p=v.method)):(E=v,l&&"method"in l&&(p=l.method)),p===void 0&&(p="GET"),new Promise(function(S,B){c.apply(void 0,y).then(function(O){f(O,p,E),S(O)}).catch(function(O){h(p,E),B(O)})})}}}var f=function(c,g,y){var v={status:c.status,request:g+" "+y};c.status>=400?a.leaveBreadcrumb("fetch() failed",v,H):a.leaveBreadcrumb("fetch() succeeded",v,H)},h=function(c,g){a.leaveBreadcrumb("fetch() error",{request:c+" "+g},H)}}};return r},Ur={load:function(e){var t=0;e.addOnError(function(n){if(t>=e._config.maxEvents)return e._logger.warn("Cancelling event send due to maxEvents per session limit of "+e._config.maxEvents+" being reached"),!1;t++}),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer \u2264100",validate:function(e){return xe(1,100)(e)}}}},be={};be={load:function(e){e.addOnError(function(t){var n=_(t.errors,function(r,a){return r.concat(a.stacktrace)},[]);L(n,function(r){r.file=Kr(r.file)})})}};var Kr=be._strip=function(e){return typeof e=="string"?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},Xr=function(e,t){return e===void 0&&(e=window),t===void 0&&(t="window onerror"),{load:function(n){if(!n._config.autoDetectErrors||!n._config.enabledErrorTypes.unhandledExceptions)return;function r(i,o,u,s,d){if(u===0&&/Script error\.?/.test(i))n._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var f={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},h;if(d)h=n.Event.create(d,!0,f,t,1),ct(h.errors[0].stacktrace,o,u,s);else if(typeof i=="object"&&i!==null&&(!o||typeof o!="string")&&!u&&!s&&!d){var c=i.type?"Event: "+i.type:"Error",g=i.message||i.detail||"";h=n.Event.create({name:c,message:g},!0,f,t,1),h.originalError=i,h.addMetadata(t,{event:i,extraParameters:o})}else h=n.Event.create(i,!0,f,t,1),ct(h.errors[0].stacktrace,o,u,s);n._notify(h)}typeof a=="function"&&a.apply(this,arguments)}var a=e.onerror;e.onerror=r}}},ct=function(e,t,n,r){e[0]||e.push({});var a=e[0];!a.file&&typeof t=="string"&&(a.file=t),!a.lineNumber&&Se(n)&&(a.lineNumber=n),a.columnNumber||(Se(r)?a.columnNumber=r:window.event&&Se(window.event.errorCharacter)&&(a.columnNumber=window.event.errorCharacter))},Se=function(e){return typeof e=="number"&&String.call(e)!=="NaN"},zr,Gr=function(e){e===void 0&&(e=window);var t={load:function(n){if(!(!n._config.autoDetectErrors||!n._config.enabledErrorTypes.unhandledRejections)){var r=function(a){var i=a.reason,o=!1;try{a.detail&&a.detail.reason&&(i=a.detail.reason,o=!0)}catch(s){}var u=n.Event.create(i,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,n._logger);o&&L(u.errors[0].stacktrace,Jr(i)),n._notify(u,function(s){if(Y(s.originalError)&&!s.originalError.stack){var d;s.addMetadata("unhandledRejection handler",(d={},d[Object.prototype.toString.call(s.originalError)]={name:s.originalError.name,message:s.originalError.message,code:s.originalError.code},d))}})};"addEventListener"in e?e.addEventListener("unhandledrejection",r):e.onunhandledrejection=function(a,i){r({detail
15:{reason:a,promise:i}})},zr=r}}};return t},Jr=function(e){return function(t){t.file!==e.toString()&&t.method&&(t.method=t.method.replace(/^\s+/,""))}},C={},Wr="Bugsnag JavaScript",Yr="7.25.0",Qr="https://github.com/bugsnag/bugsnag-js",Zr=N({},X.schema,Ft),$={_client:null,createClient:function(e){typeof e=="string"&&(e={apiKey:e}),e||(e={});var t=[wr,jr(),Nr(),Ar(),Ur,Mr,Ir,be,Xr(),Gr(),ot(),Dr(),qr(),tt,Fr()],n=new pe(e,Zr,t,{name:Wr,version:Yr,url:Qr});return n._setDelivery(window.XDomainRequest?_e:Er),n._logger.debug("Loaded!"),n.leaveBreadcrumb("Bugsnag loaded",{},"state"),n._config.autoTrackSessions?n.startSession():n},start:function(e){return $._client?($._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),$._client):($._client=$.createClient(e),$._client)},isStarted:function(){return $._client!=null}};return L(["resetEventCount"].concat(j(pe.prototype)),function(e){/^_/.test(e)||($[e]=function(){if(!$._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");$._client._depth+=1;var t=$._client[e].apply($._client,arguments);return $._client._depth-=1,t})}),C=$,C.Client=pe,C.Event=fe,C.Session=ge,C.Breadcrumb=oe,C.default=$,C})});var At=gt((pn,jt)=>{jt.exports=Bt()});var Mt,Pt,It=lt(()=>{Mt=tn(At());an();bt();Pt=(()=>{class b{constructor(x){this.injector=x}upload(x,T){let _=this.injector.get(St),m=_ instanceof Et?_.path():"",w=dt(ft({},x),{url:m});Mt.default.notify(JSON.stringify(w,null,2),R=>{R.severity=T})}static{this.\u0275fac=function(T){return new(T||b)(A(yt))}}static{this.\u0275prov=te({token:b,factory:b.\u0275fac,providedIn:"root"})}}return b})()});var xn,hn=lt(()=>{on();rn();nn();bt();dn();sn();cn();un();It();fn();xn=(()=>{class b{constructor(x,T,_,m,w,R){this.authService=x,this.router=T,this.toastrService=_,this.dialog=m,this._bugsnagService=w,this._loaderService=R,this.retryCount=2,this.retryWaitMilliSeconds=1e3,this.retryStatus=504}intercept(x,T){return!x.url.includes("index.php?Api")&&!x.url.includes("account/show?email=")&&!x.url.includes("interestRateFile.json")&&this.authService.getToken()&&(x=x.clone({setHeaders:{Authorization:`${this.authService.getToken()}`}})),T.handle(x).pipe(we(_=>{if(_ instanceof Ot){let m=_.headers.get("x-main-user-timezone");m&&localStorage.setItem("timezoneOffset",m)}}),mt(_=>_.pipe(_t((m,w)=>w<this.retryCount&&m.status===this.retryStatus?ht(m):Oe(m)),vt(this.retryWaitMilliSeconds),we(m=>console.log("Retrying...")))),pt((_,m)=>{if(_.error?.message!=="You were logged out due to inactivity"){let w={body:x.body,error:_?.error,message:_.error?.message};this._bugsnagService.upload(w,"error")}return this.toastrService.dismissAll(),this._loaderService.stopAll(),_ instanceof wt&&(_.error?.message==="You were logged out due to inactivity"||_?.error?.message==="Authorization not found!"||_?.status===401?(localStorage.clear(),this.dialog.closeAll(),this.router.navigate(["/auth/login"])):_.status==406&&(window.location.pathname=="/home"&&!x.url.includes("/callLog/inbox")?this._loaderService.stopAll():this.router.navigate(["/permission-denied"],{}))),Oe(_)}))}static{this.\u0275fac=function(T){return new(T||b)(A(Lt),A(Nt),A($t),A(xt),A(Pt),A(Tt))}}static{this.\u0275prov=te({token:b,factory:b.\u0275fac})}}return b})()});export{At as a,Pt as b,It as c,xn as d,hn as e};
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.