1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1704],{11704:(e,t,n)=>{e.exports=n(16196)},16196:e=>{e.exports=function(){var e,t=["navigation","request","process","log","user","state","error","manual"],n=function(e,t,n){for(var r=n,o=0,a=e.length;o<a;o++)r=t(r,e[o],o,e);return r},r=function(e,t){return n(e,function(e,n,r,o){return t(n,r,o)?e.concat(n):e},[])},o=function(e,t){return n(e,function(e,n,r,o){return!0===e||n===t},!1)},a=function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=!({toString:null}).propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);if(!i)return n;for(var r=0,o=s.length;r<o;r++)Object.prototype.hasOwnProperty.call(e,s[r])&&n.push(s[r]);return n},c=function(e,t){return void 0===e&&(e=1),void 0===t&&(t=1/0),function(n){return"number"==typeof n&&parseInt(""+n,10)===n&&n>=e&&n<=t}},l=function(e){return"function"==typeof e||a(e)&&r(e,function(e){return"function"==typeof e}).length===e.length},d=function(e){return"string"==typeof e&&!!e.length},f={},g=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};f.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:d},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||d(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||d(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledErrorTypes:{defaultValue:function(){return g()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if("object"!=typeof e||!e)return!1;var t=u(e),n=u(g());return!(r(t,function(e){return o(n,e)}).length<t.length)&&!(r(u(e),function(t){return"boolean"!=typeof e[t]}).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:l},endpoints:{defaultValue:function(e){return void 0===e?{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}:{notify:null,sessions:null}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&"object"==typeof e&&d(e.notify)&&d(e.sessions)&&0===r(u(e),function(e){return!o(["notify","sessions"],e)}).length}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||a(e)&&r(e,function(e){return"string"==typeof e}).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return"string"==typeof e&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number â¤100",validate:function(e){return c(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 null===e||a(e)&&n(e,function(e,n){return!1===e?e:o(t,n)},!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||"string"==typeof e}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(e){return null===e||e&&n(u(e),function(e,t){return e&&o(["id","email","name"],t)},!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return"object"==typeof e&&null!==e}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&n(["debug","info","warn","error"],function(t,n){return t&&"function"==typeof e[n]},!0)}},redactedKeys:{defaultValue:function(){return["password"]}
1,message:"should be an array of strings|regexes",validate:function(e){return a(e)&&e.length===r(e,function(e){return"string"==typeof e||e&&"function"==typeof e.test}).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return a(e)&&e.length===r(e,function(e){return e&&"object"==typeof e&&"function"==typeof e.load}).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(e){return a(e)&&e.length===r(e,function(e){return e&&"object"==typeof e&&"string"==typeof e.name}).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:"should be true|false",validate:function(e){return!0===e||!1===e}},sendPayloadChecksums:{defaultValue:function(){return!1},message:"should be true|false",validate:function(e){return!0===e||!1===e}}};var h=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},p=function(e,t){return n(e,function(e,n,r,o){return e.concat(t(n,r,o))},[])};function v(){return(v=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}).apply(this,arguments)}var m=f.schema,y={releaseStage:h({},m.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:v({},m.appType,{defaultValue:function(){return"browser"}}),logger:h({},m.logger,{defaultValue:function(){return"undefined"!=typeof console&&"function"==typeof console.debug?_():void 0}})},_=function(){var e={},t=console.log;return p(["debug","info","warn","error"],function(n){var r=console[n];e[n]="function"==typeof r?r.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")}),e},b=function(){function e(e,t,n,r){void 0===r&&(r=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=r}return e.prototype.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e}(),S={};!function(t,n){"use strict";"function"==typeof e&&e.amd?e("stackframe",[],n):"object"==typeof S?S=n():t.StackFrame=n()}(this,function(){"use strict";function e(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],r=["columnNumber","lineNumber"],o=["fileName","functionName","source"],a=n.concat(r,o,["args"],["evalOrigin"]);function i(t){if(t)for(var n=0;n<a.length;n++)void 0!==t[a[n]]&&this["set"+e(a[n])](t[a[n]])}i.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof i)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new i(e);else throw TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},i.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),o=e.substring(t+1,n).split(","),a=e.substring(n+1);if(0===a.indexOf("@"))var s=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,""),u=s[1],c=s[2],l=s[3];return new i({functionName:r,args:o||void 0,fileName:u,lineNumber:c||void 0,columnNumber:l||void 0})};for(var s=0;s<n.length;s++)i.prototype["get"+e(n[s])]=t(n[s]),i.prototype["set"+e(n[s])]=function(e){return function(t){this[e]=!!t}}(n[s]);for(var u=0;u<r.length;u++)i.prototype["get"+e(r[u])]=t(r[u]),i.prototype["set"+e(r[u])]=function(e){return function(t){if(!(!isNaN(parseFloat(t))&&isFinite(t)))throw TypeError(e+" must be a Number");this[e]=Number(t)}}(r[u]);for(var c=0;c<o.length;c++)i.prototype["get"+e(o[c])]=t(o[c]),i.prototype["set"+e(o[c])]=function(e){return function(t){this[e]=String(t)}}(o[c]);return i});var E={};!function(t,n){"use strict";"function"==typeof e&&e.amd?e("stack-generator",["stackframe"],n):"object"==typeof E?E=n(S):t.StackGenerator=n(t.StackFrame)}(this,function(e){return{backtrace:function(t){var n=[],r=10;"object"==typeof t&&"number"==typeof t.maxStackSize&&(r=t.maxStackSize);for(var o=arguments.callee;o&&n.length<r&&o.arguments;){for(var a=Array(o.arguments.length),i=0;i<a.length;++i)a[i]=o.arguments[i];/function(?:\s+([\w$]+))+\s*\(/.test(o.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:a})):n.push(new e({args:a}));try{o=o.caller}catch(e){break}}return n}}});var w={};!function(t,n){"use strict";
1"function"==typeof e&&e.amd?e("error-stack-parser",["stackframe"],n):"object"==typeof w?w=n(S):t.ErrorStackParser=n(t.StackFrame)}(this,function(e){"use strict";var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),a=this.extractLocation(r?r[1]:o.pop());return new e({functionName:o.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],a=2,i=r.length;a<i;a+=2){var s=n.exec(r[a]);s&&o.push(new e({fileName:s[2],lineNumber:s[1],source:r[a]}))}return o},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),o=[],a=0,i=r.length;a<i;a+=2){var s=n.exec(r[a]);s&&o.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[a]}))}return o},parseOpera11:function(n){return n.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n,r=t.split("@"),o=this.extractLocation(r.pop()),a=r.shift()||"",i=a.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return a.match(/\(([^)]*)\)/)&&(n=a.replace(/^[^(]+\(([^)]*)\)$/,"$1")),new e({functionName:i,args:void 0===n||"[arguments not available]"===n?void 0:n.split(","),fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)}}});var O=w,k=function(e,t,n,r){var o,a,i,s,u;return JSON.stringify((o=e,a=r&&r.redactedKeys?r.redactedKeys:[],i=r&&r.redactedPaths?r.redactedPaths:[],s=[],u=0,function e(t,n){function r(){return n.length>8&&u>25e3}if(u++,n.length>20||r())return"...";if(null===t||"object"!=typeof t)return t;if(function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}(s,t))return"[Circular]";if(s.push(t),"function"==typeof t.toJSON)try{u--;var o=e(t.toJSON(),n);return s.pop(),o}catch(e){return x(e)}if(t instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(t))){u--;var c=e({name:t.name,message:t.message},n);return s.pop(),c}if("[object Array]"===Object.prototype.toString.call(t)){for(var l=[],d=0,f=t.length;d<f;d++){if(r()){l.push("...");break}l.push(e(t[d],n.concat("[]")))}return s.pop(),l}var g={};try{for(var h in t)if(Object.prototype.hasOwnProperty.call(t,h)){if(function(e,t){for(var n=0,r=e.length;n<r;n++)if(0===t.indexOf(e[n]))return!0;return!1}(i,n.join("."))&&function(e,t){for(var n=0,r=e.length;n<r;n++)if("string"==typeof e[n]&&e[n].toLowerCase()===t.toLowerCase()||e[n]&&"function"==typeof e[n].test&&e[n].test(t))return!0;return!1}(a,h)){g[h]="[REDACTED]";continue}if(r()){g[h]="...";break}g[h]=e(function(e,t){try{return e[t]}catch(e){return x(e)}}(t,h),n.concat(h))}}catch(e){}return s.pop(),g}(o,[])),t,n)};function x(e){return"[Throws: "+(e?e.message:"?")+"]"}function j(e,t,n,r){if("string"==typeof n){void 0===r?r=null:null!==r&&"string"!=typeof r&&(r=k(r));var o=t[n];if("number"==typeof o){e[o]={name:n,variant:r};return}e.push({name:n,variant:r}),t[n]=e.length-1}}var N=function(e,t,n){var r=t[n];"number"==typeof r&&(e[r]=null,delete t[n])},R=function(e,t,n){if(a(t)){for(var r=0;r<t.length;++r){var o=t[r];null!==o&&"object"==typeof o&&j(e,n,o.name,o.variant)}return e}},L=function(e){return!!e&&(!!e.stack||!!e.stacktrace||!!e["opera#sourceloc"])&&"string"==typeof(e.stack||e.stacktrace||e["opera#sourceloc"])&&e.stack!==e.name+": "+e.message},T=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object E
1xception]":case"[object DOMException]":return!0;default:return e instanceof Error}},B=function(e,t,n){if("string"==typeof t){if(!n)return void delete e[t];"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&e[t]&&delete e[t][n]}},C=function(e,t,n,r){var o,a;if(t){if(null===n)return B(e,t);"object"==typeof n&&(a=n),"string"==typeof n&&((o={})[n]=r,a=o),a&&"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&(e[t]||(e[t]={}),e[t]=h({},e[t],a))}},q=function(e,t,n){if("string"==typeof t){if(!n)return e[t];if(e[t])return e[t][n]}};function I(){return(I=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}).apply(this,arguments)}var M=function(){function e(t,n,r,o,a){void 0===r&&(r=[]),void 0===o&&(o=D()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=a,this._handledState=o,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=[F(t,n,e.__type,r)]}var t=e.prototype;return t.addMetadata=function(e,t,n){return C(this._metadata,e,t,n)},t.setTraceCorrelation=function(e,t){"string"==typeof e&&(this._correlation=I({traceId:e},"string"==typeof t?{spanId:t}:{}))},t.getMetadata=function(e,t){return q(this._metadata,e,t)},t.clearMetadata=function(e,t){return B(this._metadata,e,t)},t.addFeatureFlag=function(e,t){void 0===t&&(t=null),j(this._features,this._featuresIndex,e,t)},t.addFeatureFlags=function(e){R(this._features,e,this._featuresIndex)},t.getFeatureFlags=function(){return p(r(this._features,Boolean),function(e){var t=e.name,n=e.variant,r={featureFlag:t};return"string"==typeof n&&(r.variant=n),r})},t.clearFeatureFlag=function(e){N(this._features,this._featuresIndex,e)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{payloadVersion:"4",exceptions:p(this.errors,function(e){return h({},e,{message:e.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}(),P=function(e){var t={file:e.fileName,method:A(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},A=function(e){return/^global code$/i.test(e)?"global code":e},D=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},V=function(e){return"string"==typeof e?e:""};function F(e,t,r,o){return{errorClass:V(e),errorMessage:V(t),type:r,stacktrace:n(o,function(e,t){var n=P(t);try{if("{}"===JSON.stringify(n))return e;return e.concat(n)}catch(t){return e}},[])}}M.getStacktrace=function(e,t,n){if(L(e))return O.parse(e).slice(t);try{return r(E.backtrace(),function(e){return -1===(e.functionName||"").indexOf("StackGenerator$$")}).slice(1+n)}catch(e){return[]}},M.create=function(e,t,n,r,o,a){void 0===o&&(o=0);var i=$(e,t,r,a),s=i[0],u=i[1];try{var c=M.getStacktrace(s,u>0?1+u+o:0,1+o);l=new M(s.name,s.message,c,n,e)}catch(t){l=new M(s.name,s.message,[],n,e)}if("InvalidError"===s.name&&l.addMetadata(""+r,"non-error parameter",H(e)),s.cause){var l,d,f=p((function e(t){return t.cause?[t].concat(e(t.cause)):[t]})(s).slice(1),function(e){var t=T(e)&&L(e)?O.parse(e):[],n=$(e,!0,"error cause")[0];return"InvalidError"===n.name&&l.addMetadata("error cause",H(e)),F(n.name,n.message,M.__type,t)});(d=l.errors).push.apply(d,f)}return l};var H=function(e){return null===e?"null":void 0===e?"undefined":e},$=function(e,t,n,r){var o,a=0,i=function(e){var t="error cause"===n?"was":"received";r&&r.warn(n+" "+t+' a non-error: "'+e+'"');var o=Error(n+" "+t+' a non-error. See "'+n+'" tab for more detail.');return o.name="InvalidError",o};if(t)switch(typeof e){case"string":case"number":case"boolean":o=Error(String(e)),a+=1;break;case"function":o=i("function"),a+=2;break;case"object":null!==e&&T(e)?o=e:null!==e&&K(e)?((o=Error(e.message||e.errorMessage)).name=e.name||e.errorClass,a+=1):(o=i(null===e?"null":"unsupported object"),a+=2);break;default:o=i("nothing"),a+=2}else T(e)?o=e:(o=i(typeof e),a+=2);if(!L(o))try{throw o}catch(e){L(e)&&(o=e,a=1)}return[o,a]};M.__type="browserjs";var K=function(e){return("string"==typeof e.name||"string"==typeof e.errorClass)&&("string"==typeof e.message||"string"==typeof e.errorMessage)},U=function(e,t,n){var r=0,o=function(){if(r>=e.length)return n(null,!0);t(e[r],function(e,t){return e?n(e):!1===t?n(null,!1):void(r++,o())})};o()},X=function(e,t,n,r){U(e,function(e,r){if("function"!=typeof e)return r(null);try{if(2!==e.length){var o=e(t);if(o&&"function"==typeof o.then)return o.then(function(e){return setTimeout(function(){return r(null,e)})},function(e){setTimeout(function(){return n(e),r(null,!0)})});return r(null,o)}e(t,function(e,t){if(e)return n(e),r(null);r(null,t)})}catch(e){n(e),r(null)}},r)},J=function(e,t,n,r){for(var o=!1,a=e.slice();!o&&a.length;)try{o=!1===a.pop()(t)}catch(e){r.error("Error occurred in "+n+" callback, continuing anywayâ¦"),r.error(e)}return o},W=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},z="object"==typeof window?window:self,G=0;for(var Q in z)Object.hasOwnProperty.call(z,Q)&&G++;var Y=W(((navigator.mimeTypes?navigator.mimeTypes.length:0)+navigator.userAgent.length).toString(36)+G.toString(36),4),Z=function(){return Y},ee=0;function et(){return W((1679616*Math.random()|0).toString(36),4)}function en(){return"c"+new Date().getTime().toString(36)+W((ee=ee<1679616?ee:0,++ee-1).toString(36),4)+Z()+(et()+et())}en.fingerprint=Z,en.isCuid=function(e){return"string"==typeof e&&/^c[a-z0-9]{20,32}$/.test(e)};var er=function(){function e(){this.id=en(),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(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}(),eo=function(){},ea=function(){function e(t,n,r,o){var a=this;void 0===n&&(n=f.schema),void 0===r&&(r=[]),this._notifier=o,this._config={},this._schema=n,this._delivery={sendSession:eo,sendEvent:eo},this._logger={debug:eo,info:eo,warn:eo,error:eo},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=M,this.Breadcrumb=b,this.Session=er,this._config=this._configure(t,r),p(r.concat(this._config.plugins),function(e){e&&a._loadPlugin(e)}),this._depth=1;var i=this,s=this.notify;this.notify=function(){return s.apply(i,arguments)}}var a=e.prototype;return a.addMetadata=function(e,t,n){return C(this._metadata,e,t,n)},a.getMetadata=function(e,t){return q(this._metadata,e,t)},a.clearMetadata=function(e,t){return B(this._metadata,e,t)},a.addFeatureFlag=function(e,t){void 0===t&&(t=null),j(this._features,this._featuresIndex,e,t)},a.addFeatureFlags=function(e){R(this._features,e,this._featuresIndex)},a.clearFeatureFlag=function(e){N(this._features,this._featuresIndex,e)},a.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},a.getContext=function(){return this._context},a.setContext=function(e){this._context=e},a._configure=function(e,t){var r=n(t,function(e,t){return t&&t.configSchema?h({},e,t.configSchema):e},this._schema);e.endpoints||(e.sendPayloadChecksums=!("sendPayloadChecksums"in e)||e.sendPayloadChecksums);
1var o=n(u(r),function(t,n){var o=r[n].defaultValue(e[n]);return void 0!==e[n]?r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=h(o,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=o):t.config[n]=o,t},{errors:{},config:{}}),a=o.errors,i=o.config;if(r.apiKey){if(!i.apiKey)throw Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(i.apiKey)||(a.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=h({},i.metadata),R(this._features,i.featureFlags,this._featuresIndex),this._user=h({},i.user),this._context=i.context,i.logger&&(this._logger=i.logger),i.onError&&(this._cbs.e=this._cbs.e.concat(i.onError)),i.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(i.onBreadcrumb)),i.onSession&&(this._cbs.s=this._cbs.s.concat(i.onSession)),u(a).length&&this._logger.warn(ei(a,e)),i},a.getUser=function(){return this._user},a.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},a._loadPlugin=function(e){var t=e.load(this);e.name&&(this._plugins["~"+e.name+"~"]=t)},a.getPlugin=function(e){return this._plugins["~"+e+"~"]},a._setDelivery=function(e){this._delivery=e(this)},a.startSession=function(){var e=new er;return(e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=h({},this._user),J(this._cbs.s,e,"onSession",this._logger))?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,e)},a.addOnError=function(e,t){void 0===t&&(t=!1),this._cbs.e[t?"unshift":"push"](e)},a.removeOnError=function(e){this._cbs.e=r(this._cbs.e,function(t){return t!==e})},a._addOnSessionPayload=function(e){this._cbs.sp.push(e)},a.addOnSession=function(e){this._cbs.s.push(e)},a.removeOnSession=function(e){this._cbs.s=r(this._cbs.s,function(t){return t!==e})},a.addOnBreadcrumb=function(e,t){void 0===t&&(t=!1),this._cbs.b[t?"unshift":"push"](e)},a.removeOnBreadcrumb=function(e){this._cbs.b=r(this._cbs.b,function(t){return t!==e})},a.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},a.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},a.leaveBreadcrumb=function(e,n,r){if(e="string"==typeof e?e:"",r="string"==typeof r&&o(t,r)?r:"manual",n="object"==typeof n&&null!==n?n:{},e){var a=new b(e,n,r);if(J(this._cbs.b,a,"onBreadcrumb",this._logger))return void this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback");this._breadcrumbs.push(a),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs))}},a._isBreadcrumbTypeEnabled=function(e){var t=this._config.enabledBreadcrumbTypes;return null===t||o(t,e)},a.notify=function(e,t,n){void 0===n&&(n=eo);var r=M.create(e,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(r,t,n)},a._notify=function(t,n,r){var a=this;if(void 0===r&&(r=eo),t.app=h({},t.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),t.context=t.context||this._context,t._metadata=h({},t._metadata,this._metadata),t._user=h({},t._user,this._user),t.breadcrumbs=this._breadcrumbs.slice(),R(t._features,this._features,t._featuresIndex),null!==this._config.enabledReleaseStages&&!o(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),r(null,t);var i=t.severity,s=function(e){a._logger.error("Error occurred in onError callback, continuing anywayâ¦"),a._logger.error(e)};X([].concat(this._cbs.e).concat(n),t,s,function(n,o){if(n&&s(n),!o)return a._logger.debug("Event not sent due to onError callback"),r(null,t);a._isBreadcrumbTypeEnabled("error")&&e.prototype.leaveBreadcrumb.call(a,t.errors[0].errorClass,{errorClass:t.errors[0].errorClass,errorMessage:t.errors[0].errorMessage,severity:t.severity},"error"),i!==t.severity&&(t._handledState.severityReason={type:"userCallbackSetSeverity"}),t.unhandled!==t._handledState.unhandled&&(t._handledState.severityReason.unhandledOverridden=!0,t._handledState.unhandled=t.unhandled),a._session&&(a._session._track(t),t._session=a._session),a._delivery.sendEvent({apiKey:t.apiKey||a._config.apiKey,notifier:a._notifier,events:[t]},function(e){return r(e,t)})})},e}(),ei=function(e,t){return Error("Invalid configuration\n"+p(u(e),function(n){return" - "+n+" "+e[n]+", got "+es(t[n])}).join("\n\n"))},es=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},eu={},ec=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];eu.event=function(e,t){var n=k(e,null,null,{redactedPaths:ec,redactedKeys:t});return n.length>1e6&&(e.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},n=k(e,null,null,{redactedPaths:ec,redactedKeys:t})),n},eu.session=function(e,t){return k(e,null,null)};var el={},ed=function(e,t,n,r){var o=JSON.parse(JSON.stringify(new Date));return ef(e.endpoints[t],r.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(o)},ef=(el=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){if(void 0===r&&(r=function(){}),null===e._config.endpoints.notify){var o=Error("Event not sent due to incomplete endpoint configuration");return r(o)}var a=ed(e._config,"notify","4",t),i=eu.event(n,e._config.redactedKeys),s=new t.XDomainRequest;s.onload=function(){r(null)},s.onerror=function(){var t=Error("Event failed to send");e._logger.error("Event failed to sendâ¦",t),i.length>1e6&&e._logger.warn("Event oversized ("+(i.length/1e6).toFixed(2)+" MB)"),r(t)}
1,s.open("POST",a),setTimeout(function(){try{s.send(i)}catch(t){e._logger.error(t),r(t)}},0)},sendSession:function(n,r){if(void 0===r&&(r=function(){}),null===e._config.endpoints.sessions){var o=Error("Session not sent due to incomplete endpoint configuration");return r(o)}var a=ed(e._config,"sessions","1",t),i=new t.XDomainRequest;i.onload=function(){r(null)},i.open("POST",a),setTimeout(function(){try{i.send(eu.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}},0)}}})._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e};function eg(e,t){if(e.isSecureContext&&e.crypto&&e.crypto.subtle&&e.crypto.subtle.digest&&"function"==typeof TextEncoder){var n=new TextEncoder().encode(t);return e.crypto.subtle.digest("SHA-1",n).then(function(e){return"sha1 "+Array.from(new Uint8Array(e)).map(function(e){return e.toString(16).padStart(2,"0")}).join("")})}return Promise.resolve()}var eh=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});try{var o=e._config.endpoints.notify;if(null===o){var a=Error("Event not sent due to incomplete endpoint configuration");return r(a)}var i=new t.XMLHttpRequest,s=eu.event(n,e._config.redactedKeys);i.onreadystatechange=function(){if(i.readyState===t.XMLHttpRequest.DONE){var n=i.status;if(0===n||n>=400){var o=Error("Request failed with status "+n);e._logger.error("Event failed to sendâ¦",o),s.length>1e6&&e._logger.warn("Event oversized ("+(s.length/1e6).toFixed(2)+" MB)"),r(o)}else r(null)}},i.open("POST",o),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()),e._config.sendPayloadChecksums&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?eg(t,s).then(function(e){e&&i.setRequestHeader("Bugsnag-Integrity",e),i.send(s)}).catch(function(t){e._logger.error(t),i.send(s)}):i.send(s)}catch(t){e._logger.error(t)}},sendSession:function(n,r){void 0===r&&(r=function(){});try{var o=e._config.endpoints.sessions;if(null===o){var a=Error("Session not sent due to incomplete endpoint configuration");return r(a)}var i=new t.XMLHttpRequest,s=eu.session(n,e._config.redactedKeys);i.onreadystatechange=function(){if(i.readyState===t.XMLHttpRequest.DONE){var n=i.status;if(0===n||n>=400){var o=Error("Request failed with status "+n);e._logger.error("Session failed to sendâ¦",o),r(o)}else r(null)}},i.open("POST",o),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()),e._config.sendPayloadChecksums&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?eg(t,s).then(function(e){e&&i.setRequestHeader("Bugsnag-Integrity",e),i.send(s)}).catch(function(t){e._logger.error(t),i.send(s)}):i.send(s)}catch(t){e._logger.error(t)}}}},ep=new Date,ev=function(){ep=new Date},em={name:"appDuration",load:function(e){return e.addOnError(function(e){var t=new Date;e.app.duration=t-ep},!0),{reset:ev}}},ey="bugsnag-anonymous-id",e_=function(e){try{var t=e.localStorage,n=t.getItem(ey);if(n&&/^c[a-z0-9]{20,32}$/.test(n))return n;return n=en(),t.setItem(ey,n),n}catch(e){}},eb=function(e){var t=e.getUser();t&&t.id||e.setUser(e.device.id)},eS={load:function(e){e._sessionDelegate=eE}},eE={startSession:function(e,t){return(e._session=t,e._pausedSession=null,null===e._config.enabledReleaseStages||o(e._config.enabledReleaseStages,e._config.releaseStage))?e._delivery.sendSession({notifier:e._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}):e._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),e},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}},ew={load:function(e){e._config.collectUserIp||e.addOnError(function(e){e._user&&void 0===e._user.id&&delete e._user.id,e._user=h({id:"[REDACTED]"},e._user),e.request=h({clientIp:"[REDACTED]"},e.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}},eO={};
1eO.load=function(e){!/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)&&e._isBreadcrumbTypeEnabled("log")&&p(ek,function(t){var r=console[t];console[t]=function(){for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];e.leaveBreadcrumb("Console output",n(a,function(e,t,n){var r="[Unknown value]";try{r=String(t)}catch(e){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(e){}return e["["+n+"]"]=r,e},{severity:0===t.indexOf("group")?"log":t}),"log"),r.apply(console,a)},console[t]._restore=function(){console[t]=r}})};var ek=r(["log","debug","info","warn","error"],function(e){return"undefined"!=typeof console&&"function"==typeof console[e]});function ex(e,t,n){var r=e[t];if(!r)return r;var o=n(r);return e[t]=o,r}function ej(e){var t=!!e[1]&&"function"==typeof e[1].handleEvent;return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(n){t?e[1].handleEvent=n:e[1]=n}}}var eN=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/,eR={};eR=function(e){return void 0===e&&(e=window),{load:function(t){if("addEventListener"in e&&t._isBreadcrumbTypeEnabled("navigation")){var n=function(e){return function(){return t.leaveBreadcrumb(e,{},"navigation")}};e.addEventListener("pagehide",n("Page hidden"),!0),e.addEventListener("pageshow",n("Page shown"),!0),e.addEventListener("load",n("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",n("DOMContentLoaded"),!0),e.addEventListener("load",function(){return e.addEventListener("popstate",n("Navigated back"),!0)}),e.addEventListener("hashchange",function(n){var r=n.oldURL?{from:eL(n.oldURL,e),to:eL(n.newURL,e),state:eC(e)}:{to:eL(e.location.href,e)};t.leaveBreadcrumb("Hash changed",r,"navigation")},!0),e.history.pushState&&eB(t,e.history,"pushState",e,!0),e.history.replaceState&&eB(t,e.history,"replaceState",e)}}}};var eL=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},eT=function(e,t,n,r){var o=eL(e.location.href,e);return{title:n,state:t,prevState:eC(e),to:r||o,from:o}},eB=function(e,t,n,r,o){void 0===o&&(o=!1);var a=t[n];t[n]=function(i,s,u){e.leaveBreadcrumb("History "+n,eT(r,i,s,u),"navigation"),o&&"function"==typeof e.resetEventCount&&e.resetEventCount(),a.apply(t,[i,s].concat(void 0!==u?u:[]))}},eC=function(e){try{return e.history.state}catch(e){}},eq="request",eI=function(e){return e&&new Date-e},eM={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 â¤100",validate:function(e){return c(1,100)(e)}}}},eP={},eA=(eP={load:function(e){e.addOnError(function(e){p(n(e.errors,function(e,t){return e.concat(t.stacktrace)},[]),function(e){e.file=eA(e.file)})})}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},eD=function(e,t,n,r){e[0]||e.push({});var o=e[0];o.file||"string"!=typeof t||(o.file=t),!o.lineNumber&&eV(n)&&(o.lineNumber=n),!o.columnNumber&&(eV(r)?o.columnNumber=r:window.event&&eV(window.event.errorCharacter)&&(o.columnNumber=window.event.errorCharacter))},eV=function(e){return"number"==typeof e&&"NaN"!==String.call(e)},eF={},eH=h({},f.schema,y),e$={_client:null,createClient:function(e){"string"==typeof e&&(e={apiKey:e}),e||(e={});var t,a,i,s,u,c,l,d,f,g,v,m,y=new ea(e,eH,[em,(void 0===t&&(t=navigator),void 0===a&&(a=window),{load:function(e){var n={locale:t.browserLanguage||t.systemLanguage||t.userLanguage||t.language,userAgent:t.userAgent};a&&a.screen&&a.screen.orientation&&a.screen.orientation.type?n.orientation=a.screen.orientation.type:a&&a.document&&(n.orientation=a.document.documentElement.clientWidth>a.document.documentElement.clientHeight?"landscape":"portrait"),e._config.generateAnonymousId&&(n.id=e_(a)),e.addOnSession(function(t){t.device=h({},t.device,n),e._config.collectUserIp||eb(t)}),e.addOnError(function(t){t.device=h({},t.device,n,{time:new Date}),e._config.collectUserIp||eb(t)},!0)},configSchema:{generateAnonymousId:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}),(void 0===i&&(i=window),{load:function(e){e.addOnError(function(e){void 0===e.context&&(e.context=i.location.pathname)},!0)}}),(void 0===s&&(s=window),{load:function(e){e.addOnError(function(e){e.request&&e.request.url||(e.request=h({},e.request,{url:s.location.href}))},!0)}}),eM,eS,ew,eP,(void 0===u&&(u=window),void 0===c&&(c="window onerror"),{load:function(e){if(e._config.autoDetectErrors&&e._config.enabledErrorTypes.unhandledExceptions){var t=u.onerror;u.onerror=function(n,r,o,a,i){if(0===o&&/Script error\.?/.test(n))e._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var s,u={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(i)eD((s=e.Event.create(i,!0,u,c,1)).errors[0].stacktrace,r,o,a);else if("object"!=typeof n||null===n||r&&"string"==typeof r||o||a||i)eD((s=e.Event.create(n,!0,u,c,1)).errors[0].stacktrace,r,o,a);else{var l=n.type?"Event: "+n.type:"Error",d=n.message||n.detail||"";(s=e.Event.create({name:l,message:d},!0,u,c,1)).originalError=n,s.addMetadata(c,{event:n,extraParameters:r})}e._notify(s)}"function"==typeof t&&t.apply(this,arguments)}}}}),(void 0===l&&(l=window),{load:function(e){if(e._config.autoDetectErrors&&e._config.enabledErrorTypes.unhandledRejections){var t=function(t){var n,r=t.reason,o=!1;try{t.detail&&t.detail.reason&&(r=t.detail.reason,o=!0)}catch(e){}
1var a=!e._config.reportUnhandledPromiseRejectionsAsHandled,i=e.Event.create(r,!1,{severity:"error",unhandled:a,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,e._logger);o&&p(i.errors[0].stacktrace,(n=r,function(e){e.file!==n.toString()&&e.method&&(e.method=e.method.replace(/^\s+/,""))})),e._notify(i,function(e){if(T(e.originalError)&&!e.originalError.stack){var t;e.addMetadata("unhandledRejection handler",((t={})[Object.prototype.toString.call(e.originalError)]={name:e.originalError.name,message:e.originalError.message,code:e.originalError.code},t))}})};"addEventListener"in l?l.addEventListener("unhandledrejection",t):l.onunhandledrejection=function(e,n){t({detail:{reason:e,promise:n}})}}}}),eR(),(void 0===d&&(d=window),{load:function(e){"addEventListener"in d&&e._isBreadcrumbTypeEnabled("user")&&d.addEventListener("click",function(t){var n,r,o,a;try{(a=(o=t.target).textContent||o.innerText||"")||"submit"!==o.type&&"button"!==o.type||(a=o.value),n=(a=a.replace(eN,"$1")).length>140?a.slice(0,135)+"(...)":a,r=function e(t,n){var r=[t.tagName];if(t.id&&r.push("#"+t.id),t.className&&t.className.length&&r.push("."+t.className.split(" ").join(".")),!n.document.querySelectorAll||!Array.prototype.indexOf)return r.join("");try{if(1===n.document.querySelectorAll(r.join("")).length)return r.join("")}catch(e){return r.join("")}if(t.parentNode.childNodes.length>1){var o=Array.prototype.indexOf.call(t.parentNode.childNodes,t)+1;r.push(":nth-child("+o+")")}return 1===n.document.querySelectorAll(r.join("")).length?r.join(""):t.parentNode?e(t.parentNode,n)+" > "+r.join(""):r.join("")}(t.target,d)}catch(t){n="[hidden]",r="[hidden]",e._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}e.leaveBreadcrumb("UI click",{targetText:n,targetSelector:r},"user")},!0)}}),(void 0===f&&(f=[]),void 0===g&&(g=window),{load:function(e){if(e._isBreadcrumbTypeEnabled("request")){var t=[e._config.endpoints.notify,e._config.endpoints.sessions].concat(f);(function(){if("addEventListener"in g.XMLHttpRequest.prototype&&"WeakMap"in g){var n=new WeakMap,r=new WeakMap,a=g.XMLHttpRequest.prototype.open;g.XMLHttpRequest.prototype.open=function(e,t){this&&n.set(this,{method:e,url:t}),a.apply(this,arguments)};var i=g.XMLHttpRequest.prototype.send;g.XMLHttpRequest.prototype.send=function(a){var s=this,u=n.get(this);if(u){var c=r.get(this);c&&(this.removeEventListener("load",c.load),this.removeEventListener("error",c.error));var l=new Date,d=function(){return function(n,r,a){if(void 0===r)return void e._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");"string"==typeof r&&o(t,r.replace(/\?.*$/,""))||e.leaveBreadcrumb("XMLHttpRequest error",{method:String(n),url:String(r),duration:a},eq)}(u.method,u.url,eI(l))},f=function(){return function(n,r,a,i){if(void 0===r)return void e._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.");if(!("string"==typeof r&&o(t,r.replace(/\?.*$/,"")))){var s={status:a,method:String(n),url:String(r),duration:i};a>=400?e.leaveBreadcrumb("XMLHttpRequest failed",s,eq):e.leaveBreadcrumb("XMLHttpRequest succeeded",s,eq)}}(u.method,u.url,s.status,eI(l))};this.addEventListener("load",f),this.addEventListener("error",d),this&&r.set(this,{load:f,error:d})}i.apply(this,arguments)}}})(),function(){if("fetch"in g&&!g.fetch.polyfill){var e=g.fetch;g.fetch=function(){var t,o=arguments,a=arguments[0],i=arguments[1],s=null;return a&&"object"==typeof a?(s=a.url,i&&"method"in i?t=i.method:a&&"method"in a&&(t=a.method)):(s=a,i&&"method"in i&&(t=i.method)),void 0===t&&(t="GET"),new Promise(function(a,i){var u=new Date;e.apply(void 0,o).then(function(e){n(e,t,s,eI(u)),a(e)}).catch(function(e){r(t,s,eI(u)),i(e)})})}}}();var n=function(t,n,r,o){var a={method:String(n),status:t.status,url:String(r),duration:o};t.status>=400?e.leaveBreadcrumb("fetch() failed",a,eq):e.leaveBreadcrumb("fetch() succeeded",a,eq)},r=function(t,n,r){e.leaveBreadcrumb("fetch() error",{method:String(t),url:String(n),duration:r},eq)}}}}),eO,(void 0===v&&(v=document),void 0===m&&(m=window),{load:function(e){if(e._config.trackInlineScripts){var t=m.location.href,o="",a=v.attachEvent?"complete"===v.readyState:"loading"!==v.readyState,i=function(){return v.documentElement.outerHTML};o=i();var s=v.onreadystatechange;v.onreadystatechange=function(){"interactive"===v.readyState&&(o=i(),a=!0);try{s.apply(this,arguments)}catch(e){}};var u=null,c=function(e){u=e},l=function(){var e=v.currentScript||u;if(!e&&!a){var t=v.scripts||v.getElementsByTagName("script");e=t[t.length-1]}return e},d=function(e){a&&o||(o=i());var t=["\x3c!-- DOC START --\x3e"].concat(o.split("\n")),r=e-1,s=Math.max(r-3,0),u=Math.min(r+3,t.length);return n(t.slice(s,u),function(e,t,n){return e[s+1+n]=t.length<=200?t:t.substr(0,200),e},{})};e.addOnError(function(e){e.errors[0].stacktrace=r(e.errors[0].stacktrace,function(e){return!/__trace__$/.test(e.method)});var n=e.errors[0].stacktrace[0],o=function(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!n||!n.file||o(n.file)===o(t)){var a=l();if(a){var i=a.innerHTML;e.addMetadata("script","content",i.length<=5e5?i:i.substr(0,5e5)),n&&n.lineNumber&&(n.code=d(n.lineNumber))}}},!0);var f=p(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],function(e){return ex(m,e,function(e){return g(e,function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}})})})[0];p(["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(e){m[e]&&m[e].prototype&&Object.prototype.hasOwnProperty.call(m[e].prototype,"addEventListener")&&(ex(m[e].prototype,"addEventListener",function(e){return g(e,ej)}),ex(m[e].prototype,"removeEventListener",function(e){return g(e,ej,!0)}))})}function g(e,t,n){return void 0===n&&(n=!1),function(){var r=[].slice.call(arguments);try{var o=t(r),a=o.get();if(n&&e.apply(this,r),"function"!=typeof a)return e.apply(this,r);if(a.__trace__)o.replace(a.__trace__);else{var i=l();a.__trace__=function(){c(i),f(function(){c(null)},0);var e=a.apply(this,arguments);return c(null),e},a.__trace__.__trace__=a.__trace__,o.replace(a.__trace__)}}catch(e){}if(e.apply)return e.apply(this,r);switch(r.length){case 1:return e(r[0]);case 2:return e(r[0],r[1]);default:return e()}}}},configSchema:{trackInlineScripts:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}})],{name:"Bugsnag JavaScript",version:"8.2.0",url:"https://github.com/bugsnag/bugsnag-js"});return y._setDelivery(window.XDomainRequest?el:eh),y._logger.debug("Loaded!"),y.leaveBreadcrumb("Bugsnag loaded",{},"state"),y._config.autoTrackSessions?y.startSession():y},start:function(e){return e$._client?e$._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."):e$._client=e$.createClient(e),e$._client},isStarted:function(){return null!=e$._client}};return p(["resetEventCount"].concat(u(ea.prototype)),function(e){/^_/.test(e)||(e$[e]=function(){if(!e$._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");
1e$._client._depth+=1;var t=e$._client[e].apply(e$._client,arguments);return e$._client._depth-=1,t})}),(eF=e$).Client=ea,eF.Event=M,eF.Session=er,eF.Breadcrumb=b,eF.default=e$,eF}()}}]);
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.