@bugsnag/browser
Advanced tools
Comparing version 7.0.0-pre-alpha-ben.1 to 7.0.0-pre-alpha-ben.2
@@ -1,2 +0,2 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).bugsnag=e()}}(function(){var t=function(e,t,n){for(var r=n,i=0,o=e.length;i<o;i++)r=t(r,e[i],i,e);return r},o=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(e){return e<10?"0"+e:e},e=function(e,i){return t(e,function(e,t,n,r){return e.concat(i(t,n,r))},[])},r=t,i=function(e,i){return t(e,function(e,t,n,r){return i(t,n,r)?e.concat(t):e},[])},s=function(e,i){return t(e,function(e,t,n,r){return!0===e||t===i},!1)},u=function(e){return"[object Array]"===Object.prototype.toString.call(e)},c=function(){var e=new Date;return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},f={intRange:function(t,n){return void 0===t&&(t=1),void 0===n&&(n=Infinity),function(e){return"number"==typeof e&&parseInt(""+e,10)===e&&t<=e&&e<=n}},stringWithLength:function(e){return"string"==typeof e&&!!e.length}},l={},d=i,g=r,p=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);if(!o)return n;for(var r=0,i=a.length;r<i;r++)Object.prototype.hasOwnProperty.call(e,a[r])&&n.push(a[r]);return n},h=u,v=s,m=f.intRange,y=f.stringWithLength;function b(){return(b=Object.assign||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)}l.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:y},appVersion:{defaultValue:function(){return null},message:"should be a string",validate:function(e){return null===e||y(e)}},appType:{defaultValue:function(){return null},message:"should be a string",validate:function(e){return null===e||y(e)}},autoNotify:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},beforeSend:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:function(e){return"function"==typeof e||h(e)&&d(e,function(e){return"function"==typeof e}).length===e.length}},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }. sessions is optional if autoCaptureSessions=false",validate:function(e,t){return e&&"object"==typeof e&&y(e.notify)&&(!1===t.autoCaptureSessions||y(e.sessions))&&0===d(p(e),function(e){return!v(["notify","sessions"],e)}).length}},autoCaptureSessions:{defaultValue:function(e,t){return t.endpoints===undefined||!!t.endpoints&&!!t.endpoints.sessions},message:"should be true|false",validate:function(e){return!0===e||!1===e}},notifyReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||h(e)&&d(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 20},message:"should be a number ≤40",validate:function(e){return m(0,40)(e)}},autoBreadcrumbs:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return"boolean"==typeof e}},user:{defaultValue:function(){return null},message:"(object) user should be an object",validate:function(e){return"object"==typeof e}},metaData:{defaultValue:function(){return null},message:"should be an object",validate:function(e){return"object"==typeof e}},logger:{defaultValue:function(){return undefined},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(n){return!n||n&&g(["debug","info","warn","error"],function(e,t){return e&&"function"==typeof n[t]},!0)}},filters:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(e){return h(e)&&e.length===d(e,function(e){return"string"==typeof e||e&&"function"==typeof e.test}).length}}},l.mergeDefaults=function(n,r){if(!n||!r)throw new Error("opts and schema objects are required");return g(p(r),function(e,t){return e[t]=n[t]!==undefined?n[t]:r[t].defaultValue(n[t],n),e},{})},l.validate=function(n,r){if(!n||!r)throw new Error("opts and schema objects are required");var e=g(p(r),function(e,t){return r[t].validate(n[t],n)?e:e.concat({key:t,message:r[t].message,value:n[t]})},[]);return{valid:!e.length,errors:e}};var w=l.schema,S=e,O={releaseStage:{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"},message:"should be set",validate:f.stringWithLength},logger:b({},w.logger,{defaultValue:function(){return"undefined"!=typeof console&&"function"==typeof console.debug?E():undefined}})},E=function(){var n={},r=console.log;return S(["debug","info","warn","error"],function(e){var t=console[e];n[e]="function"==typeof t?t.bind(console,"[bugsnag]"):r.bind(console,"[bugsnag]")}),n},j=c,N=function(){function e(e,t,n,r){void 0===e&&(e="[anonymous]"),void 0===t&&(t={}),void 0===n&&(n="manual"),void 0===r&&(r=j()),this.type=n,this.name=e,this.metaData=t,this.timestamp=r}return e.prototype.toJSON=function(){return{type:this.type,name:this.name,timestamp:this.timestamp,metaData:this.metaData}},e}(),B=function(e){return e.app&&"string"==typeof e.app.releaseStage?e.app.releaseStage:e.config.releaseStage};var k=function It(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},R=function(e,t){return e.isIgnored()||!1===t},_={};!function(e,t){"use strict";"object"==typeof _?_=t():e.StackFrame=t()}(this,function(){"use strict";function n(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e){return e.charAt(0).toUpperCase()+e.substring(1)}function e(e){return function(){return this[e]}}var t=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],o=["fileName","functionName","source"],a=t.concat(i,o,["args"]);function s(e){if(e instanceof Object)for(var t=0;t<a.length;t++)e.hasOwnProperty(a[t])&&e[a[t]]!==undefined&&this["set"+r(a[t])](e[a[t]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new s(e)}},toString:function(){return(this.getFunctionName()||"{anonymous}")+("("+(this.getArgs()||[]).join(",")+")")+(this.getFileName()?"@"+this.getFileName():"")+(n(this.getLineNumber())?":"+this.getLineNumber():"")+(n(this.getColumnNumber())?":"+this.getColumnNumber():"")}};for(var u=0;u<t.length;u++)s.prototype["get"+r(t[u])]=e(t[u]),s.prototype["set"+r(t[u])]=function(t){return function(e){this[t]=Boolean(e)}}(t[u]);for(var c=0;c<i.length;c++)s.prototype["get"+r(i[c])]=e(i[c]),s.prototype["set"+r(i[c])]=function(t){return function(e){if(!n(e))throw new TypeError(t+" must be a Number");this[t]=Number(e)}}(i[c]);for(var f=0;f<o.length;f++)s.prototype["get"+r(o[f])]=e(o[f]),s.prototype["set"+r(o[f])]=function(t){return function(e){this[t]=String(e)}}(o[f]);return s});var D={};!function(e,t){"use strict";"object"==typeof D?D=t(_):e.ErrorStackParser=t(e.StackFrame)}(this,function(s){"use strict";var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if("undefined"!=typeof e.stacktrace||"undefined"!=typeof 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 new 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]||undefined,t[3]||undefined]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(n)},this).map(function(e){-1<e.indexOf("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),n=this.extractLocation(t.pop()),r=t.join(" ")||undefined,i=-1<["eval","<anonymous>"].indexOf(n[0])?undefined:n[0];return new s({functionName:r,fileName:i,lineNumber:n[1],columnNumber:n[2],source:e})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(r)},this).map(function(e){if(-1<e.indexOf(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new s({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:undefined,i=this.extractLocation(e.replace(t,""));return new s({functionName:r,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})},this)},parseOpera:function(e){return!e.stacktrace||-1<e.message.indexOf("\n")&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],i=2,o=n.length;i<o;i+=2){var a=t.exec(n[i]);a&&r.push(new s({fileName:a[2],lineNumber:a[1],source:n[i]}))}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[],i=0,o=n.length;i<o;i+=2){var a=t.exec(n[i]);a&&r.push(new s({functionName:a[3]||undefined,fileName:a[2],lineNumber:a[1],source:n[i]}))}return r},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(e){var t,n=e.split("@"),r=this.extractLocation(n.pop()),i=n.shift()||"",o=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||undefined;i.match(/\(([^\)]*)\)/)&&(t=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=t===undefined||"[arguments not available]"===t?undefined:t.split(",");return new s({functionName:o,args:a,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e})},this)}}});var x=D,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)},q={};function C(){return(C=Object.assign||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)}!function(e,t){"use strict";"object"==typeof q?q=t(_):e.StackGenerator=t(e.StackFrame)}(this,function(s){return{backtrace:function(e){var t=[],n=10;"object"==typeof e&&"number"==typeof e.maxStackSize&&(n=e.maxStackSize);for(var r=arguments.callee;r&&t.length<n&&r.arguments;){for(var i=new Array(r.arguments.length),o=0;o<i.length;++o)i[o]=r.arguments[o];/function(?:\s+([\w$]+))+\s*\(/.test(r.toString())?t.push(new s({functionName:RegExp.$1||undefined,args:i})):t.push(new s({args:i}));try{r=r.caller}catch(a){break}}return t}}});var T=r,M=i,P=function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=H()),this.__isBugsnagReport=!0,this._ignored=!1,this._handledState=r,this.app=undefined,this.apiKey=undefined,this.breadcrumbs=[],this.context=undefined,this.device=undefined,this.errorClass=$(e,"[no error class]"),this.errorMessage=$(t,"[no error message]"),this.groupingHash=undefined,this.metaData={},this.request=undefined,this.severity=this._handledState.severity,this.stacktrace=T(n,function(e,t){var n=A(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(r){return e}},[]),this.user=undefined,this.session=undefined}var t=e.prototype;return t.ignore=function(){this._ignored=!0},t.isIgnored=function(){return this._ignored},t.updateMetaData=function(e){var t,n;return e?null===(arguments.length<=1?undefined:arguments[1])?this.removeMetaData(e):null===(arguments.length<=2?undefined:arguments[2])?this.removeMetaData(e,arguments.length<=1?undefined:arguments[1],arguments.length<=2?undefined:arguments[2]):("object"==typeof(arguments.length<=1?undefined:arguments[1])&&(n=arguments.length<=1?undefined:arguments[1]),"string"==typeof(arguments.length<=1?undefined:arguments[1])&&((t={})[arguments.length<=1?undefined:arguments[1]]=arguments.length<=2?undefined:arguments[2],n=t),n&&(this.metaData[e]||(this.metaData[e]={}),this.metaData[e]=C({},this.metaData[e],n)),this):this},t.removeMetaData=function(e,t){return"string"!=typeof e||(t?this.metaData[e]&&delete this.metaData[e][t]:delete this.metaData[e]),this},t.toJSON=function(){return{payloadVersion:"4",exceptions:[{errorClass:this.errorClass,message:this.errorMessage,stacktrace:this.stacktrace,type:"browserjs"}],severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,breadcrumbs:this.breadcrumbs,context:this.context,user:this.user,metaData:this.metaData,groupingHash:this.groupingHash,request:this.request,session:this.session}},e}(),A=function(e){var t={file:e.fileName,method:V(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:undefined,inProject:undefined};return-1<t.lineNumber&&!t.file&&!t.method&&(t.file="global code"),t},V=function(e){return/^global code$/i.test(e)?"global code":e},H=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},$=function(e,t){return"string"==typeof e&&e?e:t};P.getStacktrace=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),L(e)?x.parse(e).slice(t):M(q.backtrace(),function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")}).slice(1+n)},P.ensureReport=function(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),e.__isBugsnagReport)return e;try{var r=P.getStacktrace(e,t,1+n);return new P(e.name,e.message,r)}catch(i){return new P(e.name,e.message,[])}};var U=P,F=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},K="object"==typeof window?window:self,I=0;for(var X in K)Object.hasOwnProperty.call(K,X)&&I++;var J=navigator.mimeTypes?navigator.mimeTypes.length:0,z=F((J+navigator.userAgent.length).toString(36)+I.toString(36),4),G=function(){return z},W=0,Y=4,Z=36,Q=Math.pow(Z,Y);function ee(){return F((Math.random()*Q<<0).toString(Z),Y)}function te(){return"c"+(new Date).getTime().toString(Z)+F(function e(){return W=W<Q?W:0,++W-1}().toString(Z),Y)+G()+(ee()+ee())}te.fingerprint=G;var ne=te,re=c,ie=function(){function e(){this.id=ne(),this.startedAt=re(),this._handled=0,this._unhandled=0}var t=e.prototype;return t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t.trackError=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}();function oe(){return(oe=Object.assign||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 ae=e,se=s,ue=u,ce="Usage error.",fe="Bugsnag usage error.",le=function(){function r(e){if(!(e&&e.name&&e.version&&e.url))throw new Error("`notifier` argument is required");this.notifier=e,this._configured=!1,this._opts={},this.config={},this._delivery={sendSession:function(){},sendReport:function(){}},this._logger={debug:function(){},info:function(){},warn:function(){},error:function(){}},this._plugins={},this._session=null,this.breadcrumbs=[],this.app={},this.context=undefined,this.device=undefined,this.metaData=undefined,this.request=undefined,this.user={},this.BugsnagClient=r,this.BugsnagReport=U,this.BugsnagBreadcrumb=N,this.BugsnagSession=ie;var t=this,n=this.notify;this.notify=function(){return n.apply(t,arguments)}}var e=r.prototype;return e.setOptions=function(e){this._opts=oe({},this._opts,e)},e.configure=function(e){void 0===e&&(e=l.schema);var t=l.mergeDefaults(this._opts,e),n=l.validate(t,e);if(!0==!n.valid)throw new Error(pe(n.errors));return"function"==typeof t.beforeSend&&(t.beforeSend=[t.beforeSend]),t.appVersion&&(this.app.version=t.appVersion),t.appType&&(this.app.type=t.appType),t.metaData&&(this.metaData=t.metaData),t.user&&(this.user=t.user),t.logger&&this.logger(t.logger),this.config=oe({},this.config,t),this._configured=!0,this},e.use=function(e){if(!this._configured)throw new Error("client not configured");e.configSchema&&this.configure(e.configSchema);for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.init.apply(e,[this].concat(n));return e.name&&(this._plugins["~"+e.name+"~"]=i),this},e.getPlugin=function(e){return this._plugins["~"+e+"~"]},e.delivery=function(e){return this._delivery=e(this),this},e.logger=function(e,t){return this._logger=e,this},e.sessionDelegate=function(e){return this._sessionDelegate=e,this},e.startSession=function(){return this._sessionDelegate?this._sessionDelegate.startSession(this):(this._logger.warn("No session implementation is installed"),this)},e.leaveBreadcrumb=function(e,t,n,r){if(!this._configured)throw new Error("client not configured");if(e=e||undefined,n="string"==typeof n?n:undefined,r="string"==typeof r?r:undefined,t="object"==typeof t&&null!==t?t:undefined,"string"==typeof e||t){var i=new N(e,t,n,r);return this.breadcrumbs.push(i),this.breadcrumbs.length>this.config.maxBreadcrumbs&&(this.breadcrumbs=this.breadcrumbs.slice(this.breadcrumbs.length-this.config.maxBreadcrumbs)),this}},e.notify=function(e,t,n){var r=this;if(void 0===t&&(t={}),void 0===n&&(n=function(){}),!this._configured)throw new Error("client not configured");var i=B(this),o=de(e,t,this._logger),a=o.err,s=o.errorFramesToSkip,u=o._opts;if(u&&(t=u),!a){var c=he("nothing");this._logger.warn(ce+" "+c),a=new Error(fe+" "+c)}"object"==typeof t&&null!==t||(t={});var f=U.ensureReport(a,s,1);if(f.app=oe({},{releaseStage:i},f.app,this.app),f.context=f.context||t.context||this.context||undefined,f.device=oe({},f.device,this.device,t.device),f.request=oe({},f.request,this.request,t.request),f.user=oe({},f.user,this.user,t.user),f.metaData=oe({},f.metaData,this.metaData,t.metaData),f.breadcrumbs=this.breadcrumbs.slice(0),this._session&&(this._session.trackError(f),f.session=this._session),t.severity!==undefined&&(f.severity=t.severity,f._handledState.severityReason={type:"userSpecifiedSeverity"}),ue(this.config.notifyReleaseStages)&&!se(this.config.notifyReleaseStages,i))return this._logger.warn("Report not sent due to releaseStage/notifyReleaseStages configuration"),!1;var l,d,g,p,h,v,m,y,b=f.severity,w=[].concat(t.beforeSend).concat(this.config.beforeSend),S=function(e){r._logger.error("Error occurred in beforeSend callback, continuing anyway…"),r._logger.error(e)};m=f,y=S,d=function(e,n){if("function"!=typeof e)return n(null,!1);try{if(2!==e.length){var t=e(m);return t&&"function"==typeof t.then?t.then(function(e){return setTimeout(function(){return n(null,R(m,e))},0)},function(e){setTimeout(function(){return y(e),n(null,!1)})}):n(null,R(m,t))}e(m,function(e,t){if(e)return y(e),n(null,!1);n(null,R(m,t))})}catch(r){y(r),n(null,!1)}},g=function(e,t){if(e&&S(e),t)return r._logger.debug("Report not sent due to beforeSend callback"),!1;r.config.autoBreadcrumbs&&r.leaveBreadcrumb(f.errorClass,{errorClass:f.errorClass,errorMessage:f.errorMessage,severity:f.severity,stacktrace:f.stacktrace},"error"),b!==f.severity&&(f._handledState.severityReason={type:"userCallbackSetSeverity"}),r._delivery.sendReport({apiKey:f.apiKey||r.config.apiKey,notifier:r.notifier,events:[f]},function(e){return n(e,f)})},p=(l=w).length,h=0,(v=function(){if(p<=h)return g(null,!1);d(l[h],function(e,t){return e?g(e,!1):!0===t?g(null,!0):(h++,void v())})})()},r}(),de=function(e,t,n){var r,i,o=0;switch(typeof e){case"string":if("string"==typeof t){var a=he("string/string");n.warn(ce+" "+a),r=new Error(fe+" "+a),i={metaData:{notifier:{notifyArgs:[e,t]}}}}else r=new Error(String(e)),o+=2;break;case"number":case"boolean":r=new Error(String(e));break;case"function":var s=he("function");n.warn(ce+" "+s),r=new Error(fe+" "+s);break;case"object":if(null!==e&&(k(e)||e.__isBugsnagReport))r=e;else if(null!==e&&ge(e))(r=new Error(e.message||e.errorMessage)).name=e.name||e.errorClass,o+=2;else{var u=he("unsupported object");n.warn(ce+" "+u),r=new Error(fe+" "+u)}}return{err:r,errorFramesToSkip:o,_opts:i}},ge=function(e){return!("string"!=typeof e.name&&"string"!=typeof e.errorClass||"string"!=typeof e.message&&"string"!=typeof e.errorMessage)},pe=function(e){return"Bugsnag configuration error\n"+ae(e,function(e){return'"'+e.key+'" '+e.message+" \n got "+ve(e.value)}).join("\n\n")},he=function(e){return"notify() expected error/opts parameters, got "+e},ve=function(e){return"object"==typeof e?JSON.stringify(e):String(e)},me=le,ye=function(e,t,n,r){var i=r&&r.filterKeys?r.filterKeys:[],o=r&&r.filterPaths?r.filterPaths:[];return JSON.stringify(function a(e,h,v){var m=[],y=0;return function b(e,t){function n(){return t.length>Se&&we<y}y++;if(t.length>be)return Oe;if(n())return Oe;if(null===e||"object"!=typeof e)return e;if(je(m,e))return"[Circular]";m.push(e);if("function"==typeof e.toJSON)try{y--;var r=b(e.toJSON(),t);return m.pop(),r}catch(g){return Ee(g)}var i=(o=e,o instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(o)));var o;if(i){y--;var a=b({name:e.name,message:e.message},t);return m.pop(),a}if(f=e,"[object Array]"===Object.prototype.toString.call(f)){for(var s=[],u=0,c=e.length;u<c;u++){if(n()){s.push(Oe);break}s.push(b(e[u],t.concat("[]")))}return m.pop(),s}var f;var l={};try{for(var d in e)if(Object.prototype.hasOwnProperty.call(e,d))if(Ne(v,t.join("."))&&Be(h,d))l[d]="[Filtered]";else{if(n()){l[d]=Oe;break}l[d]=b(ke(e,d),t.concat(d))}}catch(p){}m.pop();return l}(e,[])}(e,i,o),t,n)},be=20,we=25e3,Se=8,Oe="...";function Ee(e){return"[Throws: "+(e?e.message:"?")+"]"}function je(e,t){for(var n=0,r=e.length;n<r;n++){if(e[n]===t)return true}return false}function Ne(e,t){for(var n=0,r=e.length;n<r;n++)if(0===t.indexOf(e[n]))return!0;return!1}function Be(e,t){for(var n=0,r=e.length;n<r;n++){if("string"==typeof e[n]&&e[n]===t)return!0;if(e[n]&&"function"==typeof e[n].test&&e[n].test(t))return!0}return!1}function ke(e,t){try{return e[t]}catch(n){return Ee(n)}}var Re={},_e=["events.[].app","events.[].metaData","events.[].user","events.[].breadcrumbs","events.[].request","events.[].device"],De=["device","app","user"];Re.report=function(e,t){var n=ye(e,null,null,{filterPaths:_e,filterKeys:t});if(1e6<n.length&&(delete e.events[0].metaData,e.events[0].metaData={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetaData was removed"},1e6<(n=ye(e,null,null,{filterPaths:_e,filterKeys:t})).length))throw new Error("payload exceeded 1MB limit");return n},Re.session=function(e,t){var n=ye(e,null,null,{filterPaths:De,filterKeys:t});if(1e6<n.length)throw new Error("payload exceeded 1MB limit");return n};var xe,Le=this,qe=c;xe=function(i,o){return void 0===o&&(o=window),{sendReport:function(t,n){void 0===n&&(n=function(){});var e=Ce(i.config,"notify","4",o),r=new o.XDomainRequest;r.onload=function(){n(null)},r.open("POST",e),setTimeout(function(){try{r.send(Re.report(t,i.config.filters))}catch(e){i._logger.error(e),n(e)}},0)},sendSession:function(t,n){void 0===n&&(n=function(){});var e=Ce(i.config,"sessions","1",o),r=new o.XDomainRequest;r.onload=function(){n(null)},r.open("POST",e),setTimeout(function(){try{r.send(Re.session(t,i.config.filters))}catch(e){Le._logger.error(e),n(e)}},0)}}};var Ce=function(e,t,n,r){return Te(e.endpoints[t],r.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(qe())},Te=xe._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},Me=c,Pe=function(o,a){return void 0===a&&(a=window),{sendReport:function(e,t){void 0===t&&(t=function(){});try{var n=o.config.endpoints.notify,r=new a.XMLHttpRequest;r.onreadystatechange=function(){r.readyState===a.XMLHttpRequest.DONE&&t(null)},r.open("POST",n),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("Bugsnag-Api-Key",e.apiKey||o.config.apiKey),r.setRequestHeader("Bugsnag-Payload-Version","4"),r.setRequestHeader("Bugsnag-Sent-At",Me()),r.send(Re.report(e,o.config.filters))}catch(i){o._logger.error(i)}},sendSession:function(e,t){void 0===t&&(t=function(){});try{var n=o.config.endpoints.sessions,r=new a.XMLHttpRequest;r.onreadystatechange=function(){r.readyState===a.XMLHttpRequest.DONE&&t(null)},r.open("POST",n),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("Bugsnag-Api-Key",o.config.apiKey),r.setRequestHeader("Bugsnag-Payload-Version","1"),r.setRequestHeader("Bugsnag-Sent-At",Me()),r.send(Re.session(e,o.config.filters))}catch(i){o._logger.error(i)}}}},Ae={init:function(e,t){void 0===t&&(t=window),e.config.beforeSend.unshift(function(e){e.context||(e.context=t.location.pathname)})}};function Ve(){return(Ve=Object.assign||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 He=c,$e={init:function(e,t){void 0===t&&(t=navigator);var n={locale:t.browserLanguage||t.systemLanguage||t.userLanguage||t.language,userAgent:t.userAgent};e.device=Ve({},n,e.device),e.config.beforeSend.unshift(function(e){e.device=Ve({},e.device,{time:He()})})}};function Ue(){return(Ue=Object.assign||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 Fe={init:function(e,t){void 0===t&&(t=window),e.config.beforeSend.unshift(function(e){e.request&&e.request.url||(e.request=Ue({},e.request,{url:t.location.href}))})}};function Ke(){return(Ke=Object.assign||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 Ie=u,Xe=s,Je={init:function(e){return e.sessionDelegate(ze)}},ze={startSession:function(e){var t=e;t._session=new e.BugsnagSession;var n=B(t);return Ie(t.config.notifyReleaseStages)&&!Xe(t.config.notifyReleaseStages,n)?t._logger.warn("Session not sent due to releaseStage/notifyReleaseStages configuration"):t.config.endpoints.sessions?t._delivery.sendSession({notifier:t.notifier,device:t.device,app:Ke({},{releaseStage:n},t.app),sessions:[{id:t._session.id,startedAt:t._session.startedAt,user:t.user}]}):t._logger.warn("Session not sent due to missing endpoints.sessions configuration"),t}};function Ge(){return(Ge=Object.assign||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 We={init:function(e){e.config.collectUserIp||e.config.beforeSend.push(function(e){e.user&&"undefined"==typeof e.user.id&&delete e.user.id,e.user=Ge({id:"[NOT COLLECTED]"},e.user),e.request=Ge({clientIp:"[NOT COLLECTED]"},e.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}},Ye={},Ze=e,Qe=r,et=i;Ye.init=function(o){var e=/^dev(elopment)?$/.test(o.config.releaseStage),t=!1===o.config.consoleBreadcrumbsEnabled,n=(!1===o.config.autoBreadcrumbs||e)&&!0!==o.config.consoleBreadcrumbsEnabled;t||n||Ze(tt,function(r){var i=console[r];console[r]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.leaveBreadcrumb("Console output",Qe(t,function(e,t,n){var r="[Unknown value]";try{r=String(t)}catch(i){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(i){}return e["["+n+"]"]=r,e},{severity:0===r.indexOf("group")?"log":r}),"log"),i.apply(console,t)},console[r]._restore=function(){console[r]=i}})},Ye.configSchema={consoleBreadcrumbsEnabled:{defaultValue:function(){return undefined},validate:function(e){return!0===e||!1===e||e===undefined},message:"should be true|false"}};var tt=et(["log","debug","info","warn","error"],function(e){return"undefined"!=typeof console&&"function"==typeof console[e]}),nt={},rt=r,it=/^.*<script.*?>/,ot=/<\/script>.*$/,at=(nt={init:function(e,t,n){void 0===t&&(t=document),void 0===n&&(n=window);var s="",u=!1,c=function(){return t.documentElement.outerHTML},f=n.location.href;s=c();var r=t.onreadystatechange;t.onreadystatechange=function(){"interactive"===t.readyState&&(s=c(),u=!0),"function"==typeof r&&r.apply(this,arguments)},e.config.beforeSend.unshift(function(e){var r=e.stacktrace[0];if(!r||!r.file||!r.lineNumber)return r;if(r.file.replace(/#.*$/,"")!==f.replace(/#.*$/,""))return r;u&&s||(s=c());var t=["\x3c!-- DOC START --\x3e"].concat(s.split("\n")),n=at(t,r.lineNumber-1),i=n.script,o=n.start,a=rt(i,function(e,t,n){return 10<Math.abs(o+n+1-r.lineNumber)||(e[""+(o+n+1)]=t),e},{});r.code=a,e.updateMetaData("script",{content:i.join("\n")})})}}).extractScriptContent=function(e,t){for(var n=t;n<e.length&&!ot.test(e[n]);)n++;for(var r=n;0<n&&!it.test(e[n]);)n--;var i=n,o=e.slice(i,r+1);return o[0]=o[0].replace(it,""),o[o.length-1]=o[o.length-1].replace(ot,""),{script:o,start:i}},st={init:function(i,a){if(void 0===a&&(a=window),"addEventListener"in a){var e=!1===i.config.interactionBreadcrumbsEnabled,t=!1===i.config.autoBreadcrumbs&&!0!==i.config.interactionBreadcrumbsEnabled;e||t||a.addEventListener("click",function(e){var t,n;try{t=ut(e.target),n=function o(e,t){var n=[e.tagName];e.id&&n.push("#"+e.id);e.className&&e.className.length&&n.push("."+e.className.split(" ").join("."));if(!t.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===t.document.querySelectorAll(n.join("")).length)return n.join("")}catch(i){return n.join("")}if(1<e.parentNode.childNodes.length){var r=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;n.push(":nth-child("+r+")")}if(1===t.document.querySelectorAll(n.join("")).length)return n.join("");if(e.parentNode)return o(e.parentNode,t)+" > "+n.join("");return n.join("")}(e.target,a)}catch(r){n=t="[hidden]",i._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/y94fq5zm")}i.leaveBreadcrumb("UI click",{targetText:t,targetSelector:n},"user")},!0)}},configSchema:{interactionBreadcrumbsEnabled:{defaultValue:function(){return undefined},validate:function(e){return!0===e||!1===e||e===undefined},message:"should be true|false"}}},ut=function(e){var t=e.textContent||e.innerText||"";return t||"submit"!==e.type&&"button"!==e.type||(t=e.value),function n(e,t){return e&&e.length<=t?e:e.slice(0,t-"(...)".length)+"(...)"}(t=t.replace(/^\s+|\s+$/g,""),140)};var ct={init:function(n,r){if(void 0===r&&(r=window),"addEventListener"in r){var e=!1===n.config.navigationBreadcrumbsEnabled,t=!1===n.config.autoBreadcrumbs&&!0!==n.config.navigationBreadcrumbsEnabled;if(!e&&!t){var i=function(e){return function(){return n.leaveBreadcrumb(e,{},"navigation")}};r.addEventListener("pagehide",i("Page hidden"),!0),r.addEventListener("pageshow",i("Page shown"),!0),r.addEventListener("load",i("Page loaded"),!0),r.document.addEventListener("DOMContentLoaded",i("DOMContentLoaded"),!0),r.addEventListener("load",function(){return r.addEventListener("popstate",i("Navigated back"),!0)}),r.addEventListener("hashchange",function(e){var t=e.oldURL?{from:gt(e.oldURL,r),to:gt(e.newURL,r),state:ht(r)}:{to:gt(r.location.href,r)};n.leaveBreadcrumb("Hash changed",t,"navigation")},!0),r.history.replaceState&&pt(n,r.history,"replaceState",r),r.history.pushState&&pt(n,r.history,"pushState",r),n.leaveBreadcrumb("Bugsnag loaded",{},"navigation")}}}};ct.configSchema={navigationBreadcrumbsEnabled:{defaultValue:function(){return undefined},validate:function(e){return!0===e||!1===e||e===undefined},message:"should be true|false"}};var ft,lt,dt,gt=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},pt=function(u,c,f,l){var d=c[f];c[f]=function(e,t,n){var r,i,o,a,s;u.leaveBreadcrumb("History "+f,(i=e,o=t,a=n,s=gt((r=l).location.href,r),{title:o,state:i,prevState:ht(r),to:a||s,from:s}),"navigation"),"function"==typeof u.refresh&&u.refresh(),u.session&&u.startSession(),d.apply(c,[e,t].concat(n!==undefined?n:[]))},c[f]._restore=function(){c[f]=d}},ht=function(e){try{return e.history.state}catch(t){}},vt={},mt="request",yt="BS~~U",bt="BS~~M",wt=s,St=function(){return[ft.config.endpoints.notify,ft.config.endpoints.sessions]};vt.name="networkBreadcrumbs",vt.init=function(e,t,n){void 0===t&&(t=St),void 0===n&&(n=window);var r=!1===e.config.networkBreadcrumbsEnabled,i=!1===e.config.autoBreadcrumbs&&!0!==e.config.networkBreadcrumbsEnabled;r||i||(ft=e,lt=n,dt=t,Ot(),Nt())},vt.configSchema={networkBreadcrumbsEnabled:{defaultValue:function(){return undefined},validate:function(e){return!0===e||!1===e||e===undefined},message:"should be true|false"}};var Ot=function(){if("addEventListener"in lt.XMLHttpRequest.prototype){var n=lt.XMLHttpRequest.prototype.open;lt.XMLHttpRequest.prototype.open=function(e,t){this[yt]=t,this[bt]=e,this["BS~~S"]&&(this.removeEventListener("load",Et),this.removeEventListener("error",jt)),this.addEventListener("load",Et),this.addEventListener("error",jt),this["BS~~S"]=!0,n.apply(this,arguments)}}};function Et(){if(!wt(dt(),this[yt])){var e={status:this.status,request:this[bt]+" "+this[yt]};400<=this.status?ft.leaveBreadcrumb("XMLHttpRequest failed",e,mt):ft.leaveBreadcrumb("XMLHttpRequest succeeded",e,mt)}}function jt(){wt(dt,this[yt])||ft.leaveBreadcrumb("XMLHttpRequest error",{request:this[bt]+" "+this[yt]},mt)}var Nt=function(){if("fetch"in lt&&!lt.fetch.polyfill){var a=lt.fetch;lt.fetch=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],n=r[1],o="GET";return n&&n.method&&(o=n.method),new Promise(function(t,n){a.apply(void 0,r).then(function(e){Bt(e,o,i),t(e)})["catch"](function(e){kt(o,i),n(e)})})}}},Bt=function(e,t,n){var r={status:e.status,request:t+" "+n};400<=e.status?ft.leaveBreadcrumb("fetch() failed",r,mt):ft.leaveBreadcrumb("fetch() succeeded",r,mt)},kt=function(e,t){ft.leaveBreadcrumb("fetch() error",{request:e+" "+t},mt)},Rt=f.intRange,_t={init:function(t){var n=0;t.config.beforeSend.push(function(e){if(n>=t.config.maxEvents)return e.ignore();n++}),t.refresh=function(){n=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer ≤100",validate:function(e){return Rt(1,100)(e)}}}},Dt={};function xt(){return(xt=Object.assign||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 Lt=e,qt=(Dt={init:function(e){e.config.beforeSend.push(function(e){e.stacktrace=Lt(e.stacktrace,function(e){return xt({},e,{file:qt(e.file)})})})}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},Ct={init:function(c,e){void 0===e&&(e=window);var f=e.onerror;e.onerror=function l(e,t,n,r,i){if(0===n&&/Script error\.?/.test(e))c._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/y94fq5zm");else{var o,a={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(i)i.name&&i.message?o=new c.BugsnagReport(i.name,i.message,Tt(c.BugsnagReport.getStacktrace(i),t,n,r),a):(o=new c.BugsnagReport("window.onerror",String(i),Tt(c.BugsnagReport.getStacktrace(i,1),t,n,r),a)).updateMetaData("window onerror",{error:i});else if("object"!=typeof e||null===e||t&&"string"==typeof t||n||r||i)(o=new c.BugsnagReport("window.onerror",String(e),Tt(c.BugsnagReport.getStacktrace(i,1),t,n,r),a)).updateMetaData("window onerror",{event:e});else{var s=e.type?"Event: "+e.type:"window.onerror",u=e.message||e.detail||"";(o=new c.BugsnagReport(s,u,c.BugsnagReport.getStacktrace(new Error,1).slice(1),a)).updateMetaData("window onerror",{event:e,extraParameters:t})}c.notify(o)}"function"==typeof f&&f.apply(this,arguments)}}},Tt=function(e,t,n,r){var i=e[0];return i&&(i.fileName||"string"!=typeof t||i.setFileName(t),!i.lineNumber&&Mt(n)&&i.setLineNumber(n),i.columnNumber||(Mt(r)?i.setColumnNumber(r):window.event&&Mt(window.event.errorCharacter)&&i.setColumnNumber(window.event.errorCharacter))),e},Mt=function(e){return"number"==typeof e&&"NaN"!==String.call(e)},Pt={},At=r;Pt.init=function(a,e){void 0===e&&(e=window);var n=function(e){var t=e.reason,n=!1;try{e.detail&&e.detail.reason&&(t=e.detail.reason,n=!0)}catch(o){}var r,i={severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}};if(t&&L(t))r=new a.BugsnagReport(t.name,t.message,x.parse(t),i),n&&(r.stacktrace=At(r.stacktrace,$t(t),[]));else{(r=new a.BugsnagReport(t&&t.name?t.name:"UnhandledRejection",t&&t.message?t.message:'Rejection reason was not an Error. See "Promise" tab for more detail.',[],i)).updateMetaData("promise","rejection reason",Ht(t))}a.notify(r)};"addEventListener"in e?e.addEventListener("unhandledrejection",n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})},n};var Vt,Ht=function(e){return null===e||e===undefined?"undefined (or null)":k(e)?((t={})[Object.prototype.toString.call(e)]={name:e.name,message:e.message,code:e.code,stack:e.stack},t):e;var t},$t=function(n){return function(e,t){return t.file===n.toString()?e:(t.method&&(t.method=t.method.replace(/^\s+/,"")),e.concat(t))}};function Ut(){return(Ut=Object.assign||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 Ft=e,Kt=Ut({},l.schema,O);return(Vt=function(e){"string"==typeof e&&(e={apiKey:e});var t=[];e.sessionTrackingEnabled&&(t.push("deprecated option sessionTrackingEnabled is now called autoCaptureSessions"),e.autoCaptureSessions=e.sessionTrackingEnabled),!e.endpoint&&!e.sessionEndpoint||e.endpoints||(t.push("deprecated options endpoint/sessionEndpoint are now configured in the endpoints object"),e.endpoints={notify:e.endpoint,sessions:e.sessionEndpoint}),e.endpoints&&e.endpoints.notify&&!e.endpoints.sessions&&t.push("notify endpoint is set but sessions endpoint is not. No sessions will be sent.");var n=new me({name:"Bugsnag JavaScript",version:"7.0.0-pre-alpha-ben.1",url:"https://github.com/bugsnag/bugsnag-js"});return n.setOptions(e),n.delivery(window.XDomainRequest?xe:Pe),n.configure(Kt),Ft(t,function(e){return n._logger.warn(e)}),n.use($e),n.use(Ae),n.use(Fe),n.use(nt),n.use(_t),n.use(Je),n.use(We),n.use(Dt),!1!==n.config.autoNotify&&(n.use(Ct),n.use(Pt)),n.use(ct),n.use(st),n.use(vt),n.use(Ye),n._logger.debug("Loaded!"),n.config.autoCaptureSessions?n.startSession():n}).Bugsnag={Client:me,Report:U,Session:ie,Breadcrumb:N},Vt["default"]=Vt}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).bugsnag=e()}}(function(){var t=function(e,t,n){for(var r=n,i=0,o=e.length;i<o;i++)r=t(r,e[i],i,e);return r},o=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(e){return e<10?"0"+e:e},e=function(e,i){return t(e,function(e,t,n,r){return e.concat(i(t,n,r))},[])},r=t,i=function(e,i){return t(e,function(e,t,n,r){return i(t,n,r)?e.concat(t):e},[])},s=function(e,i){return t(e,function(e,t,n,r){return!0===e||t===i},!1)},u=function(e){return"[object Array]"===Object.prototype.toString.call(e)},c=function(){var e=new Date;return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},f={intRange:function(t,n){return void 0===t&&(t=1),void 0===n&&(n=Infinity),function(e){return"number"==typeof e&&parseInt(""+e,10)===e&&t<=e&&e<=n}},stringWithLength:function(e){return"string"==typeof e&&!!e.length}},l={},d=i,g=r,p=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);if(!o)return n;for(var r=0,i=a.length;r<i;r++)Object.prototype.hasOwnProperty.call(e,a[r])&&n.push(a[r]);return n},h=u,v=s,m=f.intRange,y=f.stringWithLength;function b(){return(b=Object.assign||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)}l.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:y},appVersion:{defaultValue:function(){return null},message:"should be a string",validate:function(e){return null===e||y(e)}},appType:{defaultValue:function(){return null},message:"should be a string",validate:function(e){return null===e||y(e)}},autoNotify:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},beforeSend:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:function(e){return"function"==typeof e||h(e)&&d(e,function(e){return"function"==typeof e}).length===e.length}},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }. sessions is optional if autoCaptureSessions=false",validate:function(e,t){return e&&"object"==typeof e&&y(e.notify)&&(!1===t.autoCaptureSessions||y(e.sessions))&&0===d(p(e),function(e){return!v(["notify","sessions"],e)}).length}},autoCaptureSessions:{defaultValue:function(e,t){return t.endpoints===undefined||!!t.endpoints&&!!t.endpoints.sessions},message:"should be true|false",validate:function(e){return!0===e||!1===e}},notifyReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||h(e)&&d(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 20},message:"should be a number ≤40",validate:function(e){return m(0,40)(e)}},autoBreadcrumbs:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return"boolean"==typeof e}},user:{defaultValue:function(){return null},message:"(object) user should be an object",validate:function(e){return"object"==typeof e}},metaData:{defaultValue:function(){return null},message:"should be an object",validate:function(e){return"object"==typeof e}},logger:{defaultValue:function(){return undefined},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(n){return!n||n&&g(["debug","info","warn","error"],function(e,t){return e&&"function"==typeof n[t]},!0)}},filters:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(e){return h(e)&&e.length===d(e,function(e){return"string"==typeof e||e&&"function"==typeof e.test}).length}}},l.mergeDefaults=function(n,r){if(!n||!r)throw new Error("opts and schema objects are required");return g(p(r),function(e,t){return e[t]=n[t]!==undefined?n[t]:r[t].defaultValue(n[t],n),e},{})},l.validate=function(n,r){if(!n||!r)throw new Error("opts and schema objects are required");var e=g(p(r),function(e,t){return r[t].validate(n[t],n)?e:e.concat({key:t,message:r[t].message,value:n[t]})},[]);return{valid:!e.length,errors:e}};var w=l.schema,S=e,O={releaseStage:{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"},message:"should be set",validate:f.stringWithLength},logger:b({},w.logger,{defaultValue:function(){return"undefined"!=typeof console&&"function"==typeof console.debug?E():undefined}})},E=function(){var n={},r=console.log;return S(["debug","info","warn","error"],function(e){var t=console[e];n[e]="function"==typeof t?t.bind(console,"[bugsnag]"):r.bind(console,"[bugsnag]")}),n},j=c,N=function(){function e(e,t,n,r){void 0===e&&(e="[anonymous]"),void 0===t&&(t={}),void 0===n&&(n="manual"),void 0===r&&(r=j()),this.type=n,this.name=e,this.metaData=t,this.timestamp=r}return e.prototype.toJSON=function(){return{type:this.type,name:this.name,timestamp:this.timestamp,metaData:this.metaData}},e}(),B=function(e){return e.app&&"string"==typeof e.app.releaseStage?e.app.releaseStage:e.config.releaseStage};var k=function It(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},R=function(e,t){return e.isIgnored()||!1===t},_={};!function(e,t){"use strict";"object"==typeof _?_=t():e.StackFrame=t()}(this,function(){"use strict";function n(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e){return e.charAt(0).toUpperCase()+e.substring(1)}function e(e){return function(){return this[e]}}var t=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],o=["fileName","functionName","source"],a=t.concat(i,o,["args"]);function s(e){if(e instanceof Object)for(var t=0;t<a.length;t++)e.hasOwnProperty(a[t])&&e[a[t]]!==undefined&&this["set"+r(a[t])](e[a[t]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new s(e)}},toString:function(){return(this.getFunctionName()||"{anonymous}")+("("+(this.getArgs()||[]).join(",")+")")+(this.getFileName()?"@"+this.getFileName():"")+(n(this.getLineNumber())?":"+this.getLineNumber():"")+(n(this.getColumnNumber())?":"+this.getColumnNumber():"")}};for(var u=0;u<t.length;u++)s.prototype["get"+r(t[u])]=e(t[u]),s.prototype["set"+r(t[u])]=function(t){return function(e){this[t]=Boolean(e)}}(t[u]);for(var c=0;c<i.length;c++)s.prototype["get"+r(i[c])]=e(i[c]),s.prototype["set"+r(i[c])]=function(t){return function(e){if(!n(e))throw new TypeError(t+" must be a Number");this[t]=Number(e)}}(i[c]);for(var f=0;f<o.length;f++)s.prototype["get"+r(o[f])]=e(o[f]),s.prototype["set"+r(o[f])]=function(t){return function(e){this[t]=String(e)}}(o[f]);return s});var D={};!function(e,t){"use strict";"object"==typeof D?D=t(_):e.ErrorStackParser=t(e.StackFrame)}(this,function(s){"use strict";var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if("undefined"!=typeof e.stacktrace||"undefined"!=typeof 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 new 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]||undefined,t[3]||undefined]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(n)},this).map(function(e){-1<e.indexOf("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),n=this.extractLocation(t.pop()),r=t.join(" ")||undefined,i=-1<["eval","<anonymous>"].indexOf(n[0])?undefined:n[0];return new s({functionName:r,fileName:i,lineNumber:n[1],columnNumber:n[2],source:e})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(r)},this).map(function(e){if(-1<e.indexOf(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new s({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:undefined,i=this.extractLocation(e.replace(t,""));return new s({functionName:r,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})},this)},parseOpera:function(e){return!e.stacktrace||-1<e.message.indexOf("\n")&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],i=2,o=n.length;i<o;i+=2){var a=t.exec(n[i]);a&&r.push(new s({fileName:a[2],lineNumber:a[1],source:n[i]}))}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split("\n"),r=[],i=0,o=n.length;i<o;i+=2){var a=t.exec(n[i]);a&&r.push(new s({functionName:a[3]||undefined,fileName:a[2],lineNumber:a[1],source:n[i]}))}return r},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(e){var t,n=e.split("@"),r=this.extractLocation(n.pop()),i=n.shift()||"",o=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||undefined;i.match(/\(([^\)]*)\)/)&&(t=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=t===undefined||"[arguments not available]"===t?undefined:t.split(",");return new s({functionName:o,args:a,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e})},this)}}});var x=D,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)},q={};function C(){return(C=Object.assign||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)}!function(e,t){"use strict";"object"==typeof q?q=t(_):e.StackGenerator=t(e.StackFrame)}(this,function(s){return{backtrace:function(e){var t=[],n=10;"object"==typeof e&&"number"==typeof e.maxStackSize&&(n=e.maxStackSize);for(var r=arguments.callee;r&&t.length<n&&r.arguments;){for(var i=new Array(r.arguments.length),o=0;o<i.length;++o)i[o]=r.arguments[o];/function(?:\s+([\w$]+))+\s*\(/.test(r.toString())?t.push(new s({functionName:RegExp.$1||undefined,args:i})):t.push(new s({args:i}));try{r=r.caller}catch(a){break}}return t}}});var T=r,M=i,P=function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=H()),this.__isBugsnagReport=!0,this._ignored=!1,this._handledState=r,this.app=undefined,this.apiKey=undefined,this.breadcrumbs=[],this.context=undefined,this.device=undefined,this.errorClass=$(e,"[no error class]"),this.errorMessage=$(t,"[no error message]"),this.groupingHash=undefined,this.metaData={},this.request=undefined,this.severity=this._handledState.severity,this.stacktrace=T(n,function(e,t){var n=A(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(r){return e}},[]),this.user=undefined,this.session=undefined}var t=e.prototype;return t.ignore=function(){this._ignored=!0},t.isIgnored=function(){return this._ignored},t.updateMetaData=function(e){var t,n;return e?null===(arguments.length<=1?undefined:arguments[1])?this.removeMetaData(e):null===(arguments.length<=2?undefined:arguments[2])?this.removeMetaData(e,arguments.length<=1?undefined:arguments[1],arguments.length<=2?undefined:arguments[2]):("object"==typeof(arguments.length<=1?undefined:arguments[1])&&(n=arguments.length<=1?undefined:arguments[1]),"string"==typeof(arguments.length<=1?undefined:arguments[1])&&((t={})[arguments.length<=1?undefined:arguments[1]]=arguments.length<=2?undefined:arguments[2],n=t),n&&(this.metaData[e]||(this.metaData[e]={}),this.metaData[e]=C({},this.metaData[e],n)),this):this},t.removeMetaData=function(e,t){return"string"!=typeof e||(t?this.metaData[e]&&delete this.metaData[e][t]:delete this.metaData[e]),this},t.toJSON=function(){return{payloadVersion:"4",exceptions:[{errorClass:this.errorClass,message:this.errorMessage,stacktrace:this.stacktrace,type:"browserjs"}],severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,breadcrumbs:this.breadcrumbs,context:this.context,user:this.user,metaData:this.metaData,groupingHash:this.groupingHash,request:this.request,session:this.session}},e}(),A=function(e){var t={file:e.fileName,method:V(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:undefined,inProject:undefined};return-1<t.lineNumber&&!t.file&&!t.method&&(t.file="global code"),t},V=function(e){return/^global code$/i.test(e)?"global code":e},H=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},$=function(e,t){return"string"==typeof e&&e?e:t};P.getStacktrace=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),L(e)?x.parse(e).slice(t):M(q.backtrace(),function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")}).slice(1+n)},P.ensureReport=function(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),e.__isBugsnagReport)return e;try{var r=P.getStacktrace(e,t,1+n);return new P(e.name,e.message,r)}catch(i){return new P(e.name,e.message,[])}};var U=P,F=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},K="object"==typeof window?window:self,I=0;for(var X in K)Object.hasOwnProperty.call(K,X)&&I++;var J=navigator.mimeTypes?navigator.mimeTypes.length:0,z=F((J+navigator.userAgent.length).toString(36)+I.toString(36),4),G=function(){return z},W=0,Y=4,Z=36,Q=Math.pow(Z,Y);function ee(){return F((Math.random()*Q<<0).toString(Z),Y)}function te(){return"c"+(new Date).getTime().toString(Z)+F(function e(){return W=W<Q?W:0,++W-1}().toString(Z),Y)+G()+(ee()+ee())}te.fingerprint=G;var ne=te,re=c,ie=function(){function e(){this.id=ne(),this.startedAt=re(),this._handled=0,this._unhandled=0}var t=e.prototype;return t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t.trackError=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}();function oe(){return(oe=Object.assign||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 ae=e,se=s,ue=u,ce="Usage error.",fe="Bugsnag usage error.",le=function(){function r(e){if(!(e&&e.name&&e.version&&e.url))throw new Error("`notifier` argument is required");this.notifier=e,this._configured=!1,this._opts={},this.config={},this._delivery={sendSession:function(){},sendReport:function(){}},this._logger={debug:function(){},info:function(){},warn:function(){},error:function(){}},this._plugins={},this._session=null,this.breadcrumbs=[],this.app={},this.context=undefined,this.device=undefined,this.metaData=undefined,this.request=undefined,this.user={},this.BugsnagClient=r,this.BugsnagReport=U,this.BugsnagBreadcrumb=N,this.BugsnagSession=ie;var t=this,n=this.notify;this.notify=function(){return n.apply(t,arguments)}}var e=r.prototype;return e.setOptions=function(e){this._opts=oe({},this._opts,e)},e.configure=function(e){void 0===e&&(e=l.schema);var t=l.mergeDefaults(this._opts,e),n=l.validate(t,e);if(!0==!n.valid)throw new Error(pe(n.errors));return"function"==typeof t.beforeSend&&(t.beforeSend=[t.beforeSend]),t.appVersion&&(this.app.version=t.appVersion),t.appType&&(this.app.type=t.appType),t.metaData&&(this.metaData=t.metaData),t.user&&(this.user=t.user),t.logger&&this.logger(t.logger),this.config=oe({},this.config,t),this._configured=!0,this},e.use=function(e){if(!this._configured)throw new Error("client not configured");e.configSchema&&this.configure(e.configSchema);for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.init.apply(e,[this].concat(n));return e.name&&(this._plugins["~"+e.name+"~"]=i),this},e.getPlugin=function(e){return this._plugins["~"+e+"~"]},e.delivery=function(e){return this._delivery=e(this),this},e.logger=function(e,t){return this._logger=e,this},e.sessionDelegate=function(e){return this._sessionDelegate=e,this},e.startSession=function(){return this._sessionDelegate?this._sessionDelegate.startSession(this):(this._logger.warn("No session implementation is installed"),this)},e.leaveBreadcrumb=function(e,t,n,r){if(!this._configured)throw new Error("client not configured");if(e=e||undefined,n="string"==typeof n?n:undefined,r="string"==typeof r?r:undefined,t="object"==typeof t&&null!==t?t:undefined,"string"==typeof e||t){var i=new N(e,t,n,r);return this.breadcrumbs.push(i),this.breadcrumbs.length>this.config.maxBreadcrumbs&&(this.breadcrumbs=this.breadcrumbs.slice(this.breadcrumbs.length-this.config.maxBreadcrumbs)),this}},e.notify=function(e,t,n){var r=this;if(void 0===t&&(t={}),void 0===n&&(n=function(){}),!this._configured)throw new Error("client not configured");var i=B(this),o=de(e,t,this._logger),a=o.err,s=o.errorFramesToSkip,u=o._opts;if(u&&(t=u),!a){var c=he("nothing");this._logger.warn(ce+" "+c),a=new Error(fe+" "+c)}"object"==typeof t&&null!==t||(t={});var f=U.ensureReport(a,s,1);if(f.app=oe({},{releaseStage:i},f.app,this.app),f.context=f.context||t.context||this.context||undefined,f.device=oe({},f.device,this.device,t.device),f.request=oe({},f.request,this.request,t.request),f.user=oe({},f.user,this.user,t.user),f.metaData=oe({},f.metaData,this.metaData,t.metaData),f.breadcrumbs=this.breadcrumbs.slice(0),this._session&&(this._session.trackError(f),f.session=this._session),t.severity!==undefined&&(f.severity=t.severity,f._handledState.severityReason={type:"userSpecifiedSeverity"}),ue(this.config.notifyReleaseStages)&&!se(this.config.notifyReleaseStages,i))return this._logger.warn("Report not sent due to releaseStage/notifyReleaseStages configuration"),!1;var l,d,g,p,h,v,m,y,b=f.severity,w=[].concat(t.beforeSend).concat(this.config.beforeSend),S=function(e){r._logger.error("Error occurred in beforeSend callback, continuing anyway…"),r._logger.error(e)};m=f,y=S,d=function(e,n){if("function"!=typeof e)return n(null,!1);try{if(2!==e.length){var t=e(m);return t&&"function"==typeof t.then?t.then(function(e){return setTimeout(function(){return n(null,R(m,e))},0)},function(e){setTimeout(function(){return y(e),n(null,!1)})}):n(null,R(m,t))}e(m,function(e,t){if(e)return y(e),n(null,!1);n(null,R(m,t))})}catch(r){y(r),n(null,!1)}},g=function(e,t){if(e&&S(e),t)return r._logger.debug("Report not sent due to beforeSend callback"),!1;r.config.autoBreadcrumbs&&r.leaveBreadcrumb(f.errorClass,{errorClass:f.errorClass,errorMessage:f.errorMessage,severity:f.severity,stacktrace:f.stacktrace},"error"),b!==f.severity&&(f._handledState.severityReason={type:"userCallbackSetSeverity"}),r._delivery.sendReport({apiKey:f.apiKey||r.config.apiKey,notifier:r.notifier,events:[f]},function(e){return n(e,f)})},p=(l=w).length,h=0,(v=function(){if(p<=h)return g(null,!1);d(l[h],function(e,t){return e?g(e,!1):!0===t?g(null,!0):(h++,void v())})})()},r}(),de=function(e,t,n){var r,i,o=0;switch(typeof e){case"string":if("string"==typeof t){var a=he("string/string");n.warn(ce+" "+a),r=new Error(fe+" "+a),i={metaData:{notifier:{notifyArgs:[e,t]}}}}else r=new Error(String(e)),o+=2;break;case"number":case"boolean":r=new Error(String(e));break;case"function":var s=he("function");n.warn(ce+" "+s),r=new Error(fe+" "+s);break;case"object":if(null!==e&&(k(e)||e.__isBugsnagReport))r=e;else if(null!==e&&ge(e))(r=new Error(e.message||e.errorMessage)).name=e.name||e.errorClass,o+=2;else{var u=he("unsupported object");n.warn(ce+" "+u),r=new Error(fe+" "+u)}}return{err:r,errorFramesToSkip:o,_opts:i}},ge=function(e){return!("string"!=typeof e.name&&"string"!=typeof e.errorClass||"string"!=typeof e.message&&"string"!=typeof e.errorMessage)},pe=function(e){return"Bugsnag configuration error\n"+ae(e,function(e){return'"'+e.key+'" '+e.message+" \n got "+ve(e.value)}).join("\n\n")},he=function(e){return"notify() expected error/opts parameters, got "+e},ve=function(e){return"object"==typeof e?JSON.stringify(e):String(e)},me=le,ye=function(e,t,n,r){var i=r&&r.filterKeys?r.filterKeys:[],o=r&&r.filterPaths?r.filterPaths:[];return JSON.stringify(function a(e,h,v){var m=[],y=0;return function b(e,t){function n(){return t.length>Se&&we<y}y++;if(t.length>be)return Oe;if(n())return Oe;if(null===e||"object"!=typeof e)return e;if(je(m,e))return"[Circular]";m.push(e);if("function"==typeof e.toJSON)try{y--;var r=b(e.toJSON(),t);return m.pop(),r}catch(g){return Ee(g)}var i=(o=e,o instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(o)));var o;if(i){y--;var a=b({name:e.name,message:e.message},t);return m.pop(),a}if(f=e,"[object Array]"===Object.prototype.toString.call(f)){for(var s=[],u=0,c=e.length;u<c;u++){if(n()){s.push(Oe);break}s.push(b(e[u],t.concat("[]")))}return m.pop(),s}var f;var l={};try{for(var d in e)if(Object.prototype.hasOwnProperty.call(e,d))if(Ne(v,t.join("."))&&Be(h,d))l[d]="[Filtered]";else{if(n()){l[d]=Oe;break}l[d]=b(ke(e,d),t.concat(d))}}catch(p){}m.pop();return l}(e,[])}(e,i,o),t,n)},be=20,we=25e3,Se=8,Oe="...";function Ee(e){return"[Throws: "+(e?e.message:"?")+"]"}function je(e,t){for(var n=0,r=e.length;n<r;n++){if(e[n]===t)return true}return false}function Ne(e,t){for(var n=0,r=e.length;n<r;n++)if(0===t.indexOf(e[n]))return!0;return!1}function Be(e,t){for(var n=0,r=e.length;n<r;n++){if("string"==typeof e[n]&&e[n]===t)return!0;if(e[n]&&"function"==typeof e[n].test&&e[n].test(t))return!0}return!1}function ke(e,t){try{return e[t]}catch(n){return Ee(n)}}var Re={},_e=["events.[].app","events.[].metaData","events.[].user","events.[].breadcrumbs","events.[].request","events.[].device"],De=["device","app","user"];Re.report=function(e,t){var n=ye(e,null,null,{filterPaths:_e,filterKeys:t});if(1e6<n.length&&(delete e.events[0].metaData,e.events[0].metaData={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetaData was removed"},1e6<(n=ye(e,null,null,{filterPaths:_e,filterKeys:t})).length))throw new Error("payload exceeded 1MB limit");return n},Re.session=function(e,t){var n=ye(e,null,null,{filterPaths:De,filterKeys:t});if(1e6<n.length)throw new Error("payload exceeded 1MB limit");return n};var xe,Le=this,qe=c;xe=function(i,o){return void 0===o&&(o=window),{sendReport:function(t,n){void 0===n&&(n=function(){});var e=Ce(i.config,"notify","4",o),r=new o.XDomainRequest;r.onload=function(){n(null)},r.open("POST",e),setTimeout(function(){try{r.send(Re.report(t,i.config.filters))}catch(e){i._logger.error(e),n(e)}},0)},sendSession:function(t,n){void 0===n&&(n=function(){});var e=Ce(i.config,"sessions","1",o),r=new o.XDomainRequest;r.onload=function(){n(null)},r.open("POST",e),setTimeout(function(){try{r.send(Re.session(t,i.config.filters))}catch(e){Le._logger.error(e),n(e)}},0)}}};var Ce=function(e,t,n,r){return Te(e.endpoints[t],r.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(qe())},Te=xe._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},Me=c,Pe=function(o,a){return void 0===a&&(a=window),{sendReport:function(e,t){void 0===t&&(t=function(){});try{var n=o.config.endpoints.notify,r=new a.XMLHttpRequest;r.onreadystatechange=function(){r.readyState===a.XMLHttpRequest.DONE&&t(null)},r.open("POST",n),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("Bugsnag-Api-Key",e.apiKey||o.config.apiKey),r.setRequestHeader("Bugsnag-Payload-Version","4"),r.setRequestHeader("Bugsnag-Sent-At",Me()),r.send(Re.report(e,o.config.filters))}catch(i){o._logger.error(i)}},sendSession:function(e,t){void 0===t&&(t=function(){});try{var n=o.config.endpoints.sessions,r=new a.XMLHttpRequest;r.onreadystatechange=function(){r.readyState===a.XMLHttpRequest.DONE&&t(null)},r.open("POST",n),r.setRequestHeader("Content-Type","application/json"),r.setRequestHeader("Bugsnag-Api-Key",o.config.apiKey),r.setRequestHeader("Bugsnag-Payload-Version","1"),r.setRequestHeader("Bugsnag-Sent-At",Me()),r.send(Re.session(e,o.config.filters))}catch(i){o._logger.error(i)}}}},Ae={init:function(e,t){void 0===t&&(t=window),e.config.beforeSend.unshift(function(e){e.context||(e.context=t.location.pathname)})}};function Ve(){return(Ve=Object.assign||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 He=c,$e={init:function(e,t){void 0===t&&(t=navigator);var n={locale:t.browserLanguage||t.systemLanguage||t.userLanguage||t.language,userAgent:t.userAgent};e.device=Ve({},n,e.device),e.config.beforeSend.unshift(function(e){e.device=Ve({},e.device,{time:He()})})}};function Ue(){return(Ue=Object.assign||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 Fe={init:function(e,t){void 0===t&&(t=window),e.config.beforeSend.unshift(function(e){e.request&&e.request.url||(e.request=Ue({},e.request,{url:t.location.href}))})}};function Ke(){return(Ke=Object.assign||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 Ie=u,Xe=s,Je={init:function(e){return e.sessionDelegate(ze)}},ze={startSession:function(e){var t=e;t._session=new e.BugsnagSession;var n=B(t);return Ie(t.config.notifyReleaseStages)&&!Xe(t.config.notifyReleaseStages,n)?t._logger.warn("Session not sent due to releaseStage/notifyReleaseStages configuration"):t.config.endpoints.sessions?t._delivery.sendSession({notifier:t.notifier,device:t.device,app:Ke({},{releaseStage:n},t.app),sessions:[{id:t._session.id,startedAt:t._session.startedAt,user:t.user}]}):t._logger.warn("Session not sent due to missing endpoints.sessions configuration"),t}};function Ge(){return(Ge=Object.assign||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 We={init:function(e){e.config.collectUserIp||e.config.beforeSend.push(function(e){e.user&&"undefined"==typeof e.user.id&&delete e.user.id,e.user=Ge({id:"[NOT COLLECTED]"},e.user),e.request=Ge({clientIp:"[NOT COLLECTED]"},e.request)})},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}},Ye={},Ze=e,Qe=r,et=i;Ye.init=function(o){var e=/^dev(elopment)?$/.test(o.config.releaseStage),t=!1===o.config.consoleBreadcrumbsEnabled,n=(!1===o.config.autoBreadcrumbs||e)&&!0!==o.config.consoleBreadcrumbsEnabled;t||n||Ze(tt,function(r){var i=console[r];console[r]=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.leaveBreadcrumb("Console output",Qe(t,function(e,t,n){var r="[Unknown value]";try{r=String(t)}catch(i){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(i){}return e["["+n+"]"]=r,e},{severity:0===r.indexOf("group")?"log":r}),"log"),i.apply(console,t)},console[r]._restore=function(){console[r]=i}})},Ye.configSchema={consoleBreadcrumbsEnabled:{defaultValue:function(){return undefined},validate:function(e){return!0===e||!1===e||e===undefined},message:"should be true|false"}};var tt=et(["log","debug","info","warn","error"],function(e){return"undefined"!=typeof console&&"function"==typeof console[e]}),nt={},rt=r,it=/^.*<script.*?>/,ot=/<\/script>.*$/,at=(nt={init:function(e,t,n){void 0===t&&(t=document),void 0===n&&(n=window);var s="",u=!1,c=function(){return t.documentElement.outerHTML},f=n.location.href;s=c();var r=t.onreadystatechange;t.onreadystatechange=function(){"interactive"===t.readyState&&(s=c(),u=!0),"function"==typeof r&&r.apply(this,arguments)},e.config.beforeSend.unshift(function(e){var r=e.stacktrace[0];if(!r||!r.file||!r.lineNumber)return r;if(r.file.replace(/#.*$/,"")!==f.replace(/#.*$/,""))return r;u&&s||(s=c());var t=["\x3c!-- DOC START --\x3e"].concat(s.split("\n")),n=at(t,r.lineNumber-1),i=n.script,o=n.start,a=rt(i,function(e,t,n){return 10<Math.abs(o+n+1-r.lineNumber)||(e[""+(o+n+1)]=t),e},{});r.code=a,e.updateMetaData("script",{content:i.join("\n")})})}}).extractScriptContent=function(e,t){for(var n=t;n<e.length&&!ot.test(e[n]);)n++;for(var r=n;0<n&&!it.test(e[n]);)n--;var i=n,o=e.slice(i,r+1);return o[0]=o[0].replace(it,""),o[o.length-1]=o[o.length-1].replace(ot,""),{script:o,start:i}},st={init:function(i,a){if(void 0===a&&(a=window),"addEventListener"in a){var e=!1===i.config.interactionBreadcrumbsEnabled,t=!1===i.config.autoBreadcrumbs&&!0!==i.config.interactionBreadcrumbsEnabled;e||t||a.addEventListener("click",function(e){var t,n;try{t=ut(e.target),n=function o(e,t){var n=[e.tagName];e.id&&n.push("#"+e.id);e.className&&e.className.length&&n.push("."+e.className.split(" ").join("."));if(!t.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===t.document.querySelectorAll(n.join("")).length)return n.join("")}catch(i){return n.join("")}if(1<e.parentNode.childNodes.length){var r=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;n.push(":nth-child("+r+")")}if(1===t.document.querySelectorAll(n.join("")).length)return n.join("");if(e.parentNode)return o(e.parentNode,t)+" > "+n.join("");return n.join("")}(e.target,a)}catch(r){n=t="[hidden]",i._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/y94fq5zm")}i.leaveBreadcrumb("UI click",{targetText:t,targetSelector:n},"user")},!0)}},configSchema:{interactionBreadcrumbsEnabled:{defaultValue:function(){return undefined},validate:function(e){return!0===e||!1===e||e===undefined},message:"should be true|false"}}},ut=function(e){var t=e.textContent||e.innerText||"";return t||"submit"!==e.type&&"button"!==e.type||(t=e.value),function n(e,t){return e&&e.length<=t?e:e.slice(0,t-"(...)".length)+"(...)"}(t=t.replace(/^\s+|\s+$/g,""),140)};var ct={init:function(n,r){if(void 0===r&&(r=window),"addEventListener"in r){var e=!1===n.config.navigationBreadcrumbsEnabled,t=!1===n.config.autoBreadcrumbs&&!0!==n.config.navigationBreadcrumbsEnabled;if(!e&&!t){var i=function(e){return function(){return n.leaveBreadcrumb(e,{},"navigation")}};r.addEventListener("pagehide",i("Page hidden"),!0),r.addEventListener("pageshow",i("Page shown"),!0),r.addEventListener("load",i("Page loaded"),!0),r.document.addEventListener("DOMContentLoaded",i("DOMContentLoaded"),!0),r.addEventListener("load",function(){return r.addEventListener("popstate",i("Navigated back"),!0)}),r.addEventListener("hashchange",function(e){var t=e.oldURL?{from:gt(e.oldURL,r),to:gt(e.newURL,r),state:ht(r)}:{to:gt(r.location.href,r)};n.leaveBreadcrumb("Hash changed",t,"navigation")},!0),r.history.replaceState&&pt(n,r.history,"replaceState",r),r.history.pushState&&pt(n,r.history,"pushState",r),n.leaveBreadcrumb("Bugsnag loaded",{},"navigation")}}}};ct.configSchema={navigationBreadcrumbsEnabled:{defaultValue:function(){return undefined},validate:function(e){return!0===e||!1===e||e===undefined},message:"should be true|false"}};var ft,lt,dt,gt=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},pt=function(u,c,f,l){var d=c[f];c[f]=function(e,t,n){var r,i,o,a,s;u.leaveBreadcrumb("History "+f,(i=e,o=t,a=n,s=gt((r=l).location.href,r),{title:o,state:i,prevState:ht(r),to:a||s,from:s}),"navigation"),"function"==typeof u.refresh&&u.refresh(),u.session&&u.startSession(),d.apply(c,[e,t].concat(n!==undefined?n:[]))},c[f]._restore=function(){c[f]=d}},ht=function(e){try{return e.history.state}catch(t){}},vt={},mt="request",yt="BS~~U",bt="BS~~M",wt=s,St=function(){return[ft.config.endpoints.notify,ft.config.endpoints.sessions]};vt.name="networkBreadcrumbs",vt.init=function(e,t,n){void 0===t&&(t=St),void 0===n&&(n=window);var r=!1===e.config.networkBreadcrumbsEnabled,i=!1===e.config.autoBreadcrumbs&&!0!==e.config.networkBreadcrumbsEnabled;r||i||(ft=e,lt=n,dt=t,Ot(),Nt())},vt.configSchema={networkBreadcrumbsEnabled:{defaultValue:function(){return undefined},validate:function(e){return!0===e||!1===e||e===undefined},message:"should be true|false"}};var Ot=function(){if("addEventListener"in lt.XMLHttpRequest.prototype){var n=lt.XMLHttpRequest.prototype.open;lt.XMLHttpRequest.prototype.open=function(e,t){this[yt]=t,this[bt]=e,this["BS~~S"]&&(this.removeEventListener("load",Et),this.removeEventListener("error",jt)),this.addEventListener("load",Et),this.addEventListener("error",jt),this["BS~~S"]=!0,n.apply(this,arguments)}}};function Et(){if(!wt(dt(),this[yt])){var e={status:this.status,request:this[bt]+" "+this[yt]};400<=this.status?ft.leaveBreadcrumb("XMLHttpRequest failed",e,mt):ft.leaveBreadcrumb("XMLHttpRequest succeeded",e,mt)}}function jt(){wt(dt,this[yt])||ft.leaveBreadcrumb("XMLHttpRequest error",{request:this[bt]+" "+this[yt]},mt)}var Nt=function(){if("fetch"in lt&&!lt.fetch.polyfill){var a=lt.fetch;lt.fetch=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],n=r[1],o="GET";return n&&n.method&&(o=n.method),new Promise(function(t,n){a.apply(void 0,r).then(function(e){Bt(e,o,i),t(e)})["catch"](function(e){kt(o,i),n(e)})})}}},Bt=function(e,t,n){var r={status:e.status,request:t+" "+n};400<=e.status?ft.leaveBreadcrumb("fetch() failed",r,mt):ft.leaveBreadcrumb("fetch() succeeded",r,mt)},kt=function(e,t){ft.leaveBreadcrumb("fetch() error",{request:e+" "+t},mt)},Rt=f.intRange,_t={init:function(t){var n=0;t.config.beforeSend.push(function(e){if(n>=t.config.maxEvents)return e.ignore();n++}),t.refresh=function(){n=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer ≤100",validate:function(e){return Rt(1,100)(e)}}}},Dt={};function xt(){return(xt=Object.assign||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 Lt=e,qt=(Dt={init:function(e){e.config.beforeSend.push(function(e){e.stacktrace=Lt(e.stacktrace,function(e){return xt({},e,{file:qt(e.file)})})})}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},Ct={init:function(c,e){void 0===e&&(e=window);var f=e.onerror;e.onerror=function l(e,t,n,r,i){if(0===n&&/Script error\.?/.test(e))c._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/y94fq5zm");else{var o,a={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(i)i.name&&i.message?o=new c.BugsnagReport(i.name,i.message,Tt(c.BugsnagReport.getStacktrace(i),t,n,r),a):(o=new c.BugsnagReport("window.onerror",String(i),Tt(c.BugsnagReport.getStacktrace(i,1),t,n,r),a)).updateMetaData("window onerror",{error:i});else if("object"!=typeof e||null===e||t&&"string"==typeof t||n||r||i)(o=new c.BugsnagReport("window.onerror",String(e),Tt(c.BugsnagReport.getStacktrace(i,1),t,n,r),a)).updateMetaData("window onerror",{event:e});else{var s=e.type?"Event: "+e.type:"window.onerror",u=e.message||e.detail||"";(o=new c.BugsnagReport(s,u,c.BugsnagReport.getStacktrace(new Error,1).slice(1),a)).updateMetaData("window onerror",{event:e,extraParameters:t})}c.notify(o)}"function"==typeof f&&f.apply(this,arguments)}}},Tt=function(e,t,n,r){var i=e[0];return i&&(i.fileName||"string"!=typeof t||i.setFileName(t),!i.lineNumber&&Mt(n)&&i.setLineNumber(n),i.columnNumber||(Mt(r)?i.setColumnNumber(r):window.event&&Mt(window.event.errorCharacter)&&i.setColumnNumber(window.event.errorCharacter))),e},Mt=function(e){return"number"==typeof e&&"NaN"!==String.call(e)},Pt={},At=r;Pt.init=function(a,e){void 0===e&&(e=window);var n=function(e){var t=e.reason,n=!1;try{e.detail&&e.detail.reason&&(t=e.detail.reason,n=!0)}catch(o){}var r,i={severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}};if(t&&L(t))r=new a.BugsnagReport(t.name,t.message,x.parse(t),i),n&&(r.stacktrace=At(r.stacktrace,$t(t),[]));else{(r=new a.BugsnagReport(t&&t.name?t.name:"UnhandledRejection",t&&t.message?t.message:'Rejection reason was not an Error. See "Promise" tab for more detail.',[],i)).updateMetaData("promise","rejection reason",Ht(t))}a.notify(r)};"addEventListener"in e?e.addEventListener("unhandledrejection",n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})},n};var Vt,Ht=function(e){return null===e||e===undefined?"undefined (or null)":k(e)?((t={})[Object.prototype.toString.call(e)]={name:e.name,message:e.message,code:e.code,stack:e.stack},t):e;var t},$t=function(n){return function(e,t){return t.file===n.toString()?e:(t.method&&(t.method=t.method.replace(/^\s+/,"")),e.concat(t))}};function Ut(){return(Ut=Object.assign||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 Ft=e,Kt=Ut({},l.schema,O);return(Vt=function(e){"string"==typeof e&&(e={apiKey:e});var t=[];e.sessionTrackingEnabled&&(t.push("deprecated option sessionTrackingEnabled is now called autoCaptureSessions"),e.autoCaptureSessions=e.sessionTrackingEnabled),!e.endpoint&&!e.sessionEndpoint||e.endpoints||(t.push("deprecated options endpoint/sessionEndpoint are now configured in the endpoints object"),e.endpoints={notify:e.endpoint,sessions:e.sessionEndpoint}),e.endpoints&&e.endpoints.notify&&!e.endpoints.sessions&&t.push("notify endpoint is set but sessions endpoint is not. No sessions will be sent.");var n=new me({name:"Bugsnag JavaScript",version:"7.0.0-pre-alpha-ben.2",url:"https://github.com/bugsnag/bugsnag-js"});return n.setOptions(e),n.delivery(window.XDomainRequest?xe:Pe),n.configure(Kt),Ft(t,function(e){return n._logger.warn(e)}),n.use($e),n.use(Ae),n.use(Fe),n.use(nt),n.use(_t),n.use(Je),n.use(We),n.use(Dt),!1!==n.config.autoNotify&&(n.use(Ct),n.use(Pt)),n.use(ct),n.use(st),n.use(vt),n.use(Ye),n._logger.debug("Loaded!"),n.config.autoCaptureSessions?n.startSession():n}).Bugsnag={Client:me,Report:U,Session:ie,Breadcrumb:N},Vt["default"]=Vt}); | ||
//# sourceMappingURL=bugsnag.min.js.map |
@@ -1,2 +0,2 @@ | ||
Copyright (c) 2018 Bugsnag, https://www.bugsnag.com/ | ||
Copyright (c) Bugsnag, https://www.bugsnag.com/ | ||
@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
{ | ||
"name": "@bugsnag/browser", | ||
"version": "7.0.0-pre-alpha-ben.1", | ||
"version": "7.0.0-pre-alpha-ben.2", | ||
"main": "dist/bugsnag.js", | ||
@@ -32,19 +32,19 @@ "types": "dist/types/bugsnag.d.ts", | ||
"devDependencies": { | ||
"@bugsnag/core": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/delivery-x-domain-request": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/delivery-xml-http-request": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-browser-context": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-browser-device": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-browser-request": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-browser-session": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-client-ip": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-console-breadcrumbs": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-inline-script-content": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-interaction-breadcrumbs": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-navigation-breadcrumbs": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-network-breadcrumbs": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-simple-throttle": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-strip-query-string": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-window-onerror": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/plugin-window-unhandled-rejection": "^7.0.0-pre-alpha-ben.1", | ||
"@bugsnag/core": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/delivery-x-domain-request": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/delivery-xml-http-request": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-browser-context": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-browser-device": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-browser-request": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-browser-session": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-client-ip": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-console-breadcrumbs": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-inline-script-content": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-interaction-breadcrumbs": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-navigation-breadcrumbs": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-network-breadcrumbs": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-simple-throttle": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-strip-query-string": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-window-onerror": "^7.0.0-pre-alpha-ben.2", | ||
"@bugsnag/plugin-window-unhandled-rejection": "^7.0.0-pre-alpha-ben.2", | ||
"cloudfront": "^0.4.1", | ||
@@ -59,3 +59,3 @@ "jasmine": "^3.1.0", | ||
}, | ||
"gitHead": "3ec9561119c41090cf9fe29507f704d053668805" | ||
"gitHead": "0e5ca78d276bed61992cbacdd59c64ffc1d0d2e4" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
462112
2819