1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[11],{ASyH:function(e,t,n){e.exports=function(){var e=["navigation","request","process","log","user","state","error","manual"],t=function(e,t,n){for(var r=n,o=0,i=e.length;o<i;o++)r=t(r,e[o],o,e);return r},n=function(e,n){return t(e,(function(e,t,r,o){return n(t,r,o)?e.concat(t):e}),[])},r=function(e,n){return t(e,(function(e,t,r,o){return!0===e||t===n}),!1)},o=function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=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=a.length;r<o;r++)Object.prototype.hasOwnProperty.call(e,a[r])&&n.push(a[r]);return n},u=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}},c=function(e){return"function"===typeof e||o(e)&&n(e,(function(e){return"function"===typeof e})).length===e.length},l=function(e){return"string"===typeof e&&!!e.length},f={};f.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:l},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||l(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||l(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledErrorTypes:{defaultValue:function(){return{unhandledExceptions:!0,unhandledRejections:!0}},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=s(e),o=s({unhandledExceptions:!0,unhandledRejections:!0});return!(n(t,(function(e){return r(o,e)})).length<t.length)&&!(n(s(e),(function(t){return"boolean"!==typeof e[t]})).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&"object"===typeof e&&l(e.notify)&&l(e.sessions)&&0===n(s(e),(function(e){return!r(["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||o(e)&&n(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 \u2264100",validate:function(e){return u(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return e},message:"should be null or a list of available breadcrumb types ("+e.join(",")+")",validate:function(n){return null===n||o(n)&&t(n,(function(t,n){return!1===t?t:r(e,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&&t(s(e),(function(e,t){return e&&r(["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&&t(["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 o(e)&&e.length===n(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 o(e)&&e.length===n(e,(function(e){return e&&"object"===typeof e&&"function"===typeof e.load})).length}}};var d=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},h=function(e,n){return t(e,(function(e,t,r,o){return e.concat(n(t,r,o))}),[])},g=f.schema,p={releaseStage:d({},g.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),logger:d({},g.logger,{defaultValue:function(){return"undefined"!==typeof console&&"function"===typeof console.debug?v():void 0}})},v=function(){var e={},t=console.log;return h(["debug","info","warn","error"],(function(n){var r=console[n];e[n]="function"===typeof r?r.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")})),e},m=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}(),y={};!function(e,t){"use strict";"object"===typeof y?y=t():e.StackFrame=t()}(this,(function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=r.concat(o,i,["args"]);function s(e){if(e instanceof Object)for(var n=0;n<a.length;n++)e.hasOwnProperty(a[n])&&void 0!==e[a[n]]&&this["set"+t(a[n])](e[a[n]])}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():"")+(e(this.getLineNumber())?":"+this.getLineNumber():"")+(e(this.getColumnNumber())?":"+this.getColumnNumber():"")}};for(var u=0;u<r.length;u++)s.prototype["get"+t(r[u])]=n(r[u]),s.prototype["set"+t(r[u])]=function(e){return function(t){this[e]=Boolean(t)}}(r[u]);for(var c=0;c<o.length;c++)s.prototype["get"+t(o[c])]=n(o[c]),s.prototype["set"+t(o[c])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(o[c]);for(var l=0;l<i.length;l++)s.prototype["get"+t(i[l])]=n(i[l]),s.prototype["set"+t(i[l])]=function(e){return function(t){this[e]=String(t)}}(i[l]);return s}));var b={};!function(e,t){"use strict";"object"===typeof b?b=t(y):e.ErrorStackParser=t(e.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("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]||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),i=this.extractLocation(r?r[1]:o.pop()),a=o.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new e({functionName:a,fileName:s,lineNumber:i[1],columnNumber:i[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,i=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[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=[],i=2,a=r.length;i<a;i+=2){var s=n.exec(r[i]);s&&o.push(new e({fileName:s[2],lineNumber:s[1],source:r[i]}))}return o},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),o=[],i=0,a=r.length;i<a;i+=2){var s=n.exec(r[i]);s&&o.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[i]}))}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()),i=r.shift()||"",a=i.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^\)]*\)/g,"")||void 0;i.match(/\(([^\)]*)\)/)&&(n=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:a,args:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}}));var _=b,S=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},w=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}},E="browserjs",O=function(e,t,n){"string"===typeof t&&(n?e[t]&&delete e[t][n]:delete e[t])},N={add:function(e,t,n,r){var o;if(t){var i;if(null===n)return O(e,t);"object"===typeof n&&(i=n),"string"===typeof n&&((o={})[n]=r,i=o),i&&(e[t]||(e[t]={}),e[t]=d({},e[t],i))}},get:function(e,t,n){if("string"===typeof t)return n?e[t]?e[t][n]:void 0:e[t]},clear:O},j={};!function(e,t){"use strict";"object"===typeof j?j=t(y):e.StackGenerator=t(e.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 i=new Array(o.arguments.length),a=0;a<i.length;++a)i[a]=o.arguments[a];/function(?:\s+([\w$]+))+\s*\(/.test(o.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:i})):n.push(new e({args:i}));try{o=o.caller}catch(s){break}}return n}}}));var k=function(){function e(e,n,r,o,i){void 0===r&&(r=[]),void 0===o&&(o=T()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=i,this._handledState=o,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this._metadata={},this._user={},this._session=void 0,this.errors=[{errorClass:L(e),errorMessage:L(n),type:E,stacktrace:t(r,(function(e,t){var n=x(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(r){return e}}),[])}]}var n=e.prototype;return n.addMetadata=function(e,t,n){return N.add(this._metadata,e,t,n)},n.getMetadata=function(e,t){return N.get(this._metadata,e,t)},n.clearMetadata=function(e,t){return N.clear(this._metadata,e,t)},n.getUser=function(){return this._user},n.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},n.toJSON=function(){return{payloadVersion:"4",exceptions:h(this.errors,(function(e){return d({},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}},e}(),x=function(e){var t={file:e.fileName,method:B(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},B=function(e){return/^global code$/i.test(e)?"global code":e},T=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},L=function(e){return"string"===typeof e?e:""};k.getStacktrace=function(e,t,r){if(S(e))return _.parse(e).slice(t);try{return n(j.backtrace(),(function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")})).slice(1+r)}catch(o){return[]}},k.create=function(e,t,n,r,o,i){void 0===o&&(o=0);var a,s=M(e,t,r,i),u=s[0],c=s[1];try{var l=k.getStacktrace(u,c>0?1+c+o:0,1+o);a=new k(u.name,u.message,l,n,e)}catch(f){a=new k(u.name,u.message,[],n,e)}return"InvalidError"===u.name&&a.addMetadata(""+r,"non-error parameter",R(e)),a};var R=function(e){return null===e?"null":void 0===e?"undefined":e},M=function(e,t,n,r){var o,i=0,a=function(e){r&&r.warn(n+' received a non-error: "'+e+'"');var t=new Error(n+' received a non-error. See "'+n+'" tab for more detail.');return t.name="InvalidError",t};if(t)switch(typeof e){case"string":case"number":case"boolean":o=new Error(String(e)),i+=1;break;case"function":o=a("function"),i+=2;break;case"object":null!==e&&w(e)?o=e:null!==e&&q(e)?((o=new Error(e.message||e.errorMessage)).name=e.name||e.errorClass,i+=1):(o=a(null===e?"null":"unsupported object"),i+=2);break;default:o=a("nothing"),i+=2}else w(e)?o=e:(o=a(typeof e),i+=2);if(!S(o))try{throw o}catch(s){S(s)&&(o=s,i=1)}return[o,i]},q=function(e){return("string"===typeof e.name||"string"===typeof e.errorClass)&&("string"===typeof e.message||"string"===typeof e.errorMessage)},C=k,A=function(e,t,n,r){for(var o=!1,i=e.slice();!o&&i.length;)try{o=!1===i.pop()(t)}catch(a){r.error("Error occurred in "+n+" callback, continuing anyway\u2026"),r.error(a)}return o},D=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},P="object"===typeof window?window:self,V=0;for(var H in P)Object.hasOwnProperty.call(P,H)&&V++;var I=navigator.mimeTypes?navigator.mimeTypes.length:0,K=D((I+navigator.userAgent.length).toString(36)+V.toString(36),4),$=function(){return K},U=0,X=4,F=36,J=Math.pow(F,X);function W(){return D((Math.random()*J<<0).toString(F),X)}function z(){return"c"+(new Date).getTime().toString(F)+D((U=U<J?U:0,++U-1).toString(F),X)+$()+(W()+W())}z.fingerprint=$;var G=z,Q=function(){function e(){this.id=G(),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}(),Y=function(){},Z=function(){function o(e,t,n,r){var i=this;void 0===t&&(t=f.schema),void 0===n&&(n=[]),this._notifier=r,this._config={},this._schema=t,this._delivery={sendSession:Y,sendEvent:Y},this._logger={debug:Y,info:Y,warn:Y,error:Y},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=o,this.Event=C,this.Breadcrumb=m,this.Session=Q,this._config=this._configure(e,n),h(n.concat(this._config.plugins),(function(e){e&&i._loadPlugin(e)})),this._depth=1;var a=this,s=this.notify;this.notify=function(){return s.apply(a,arguments)}}var i=o.prototype;return i.addMetadata=function(e,t,n){return N.add(this._metadata,e,t,n)},i.getMetadata=function(e,t){return N.get(this._metadata,e,t)},i.clearMetadata=function(e,t){return N.clear(this._metadata,e,t)},i.getContext=function(){return this._context},i.setContext=function(e){this._context=e},i._configure=function(e,n){var r=t(n,(function(e,t){return t&&t.configSchema?d({},e,t.configSchema):e}),this._schema),o=t(s(r),(function(t,n){var o=r[n].defaultValue(e[
1n]);return void 0!==e[n]?r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=d(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:{}}),i=o.errors,a=o.config;if(r.apiKey){if(!a.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(a.apiKey)||(i.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=d({},a.metadata),this._user=d({},a.user),this._context=a.context,a.logger&&(this._logger=a.logger),a.onError&&(this._cbs.e=this._cbs.e.concat(a.onError)),a.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(a.onBreadcrumb)),a.onSession&&(this._cbs.s=this._cbs.s.concat(a.onSession)),s(i).length&&this._logger.warn(ee(i,e)),a},i.getUser=function(){return this._user},i.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},i._loadPlugin=function(e){var t=e.load(this);return e.name&&(this._plugins["~"+e.name+"~"]=t),this},i.getPlugin=function(e){return this._plugins["~"+e+"~"]},i._setDelivery=function(e){this._delivery=e(this)},i.startSession=function(){var e=new Q;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=d({},this._user),A(this._cbs.s,e,"onSession",this._logger)?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,e)},i.addOnError=function(e,t){void 0===t&&(t=!1),this._cbs.e[t?"unshift":"push"](e)},i.removeOnError=function(e){this._cbs.e=n(this._cbs.e,(function(t){return t!==e}))},i._addOnSessionPayload=function(e){this._cbs.sp.push(e)},i.addOnSession=function(e){this._cbs.s.push(e)},i.removeOnSession=function(e){this._cbs.s=n(this._cbs.s,(function(t){return t!==e}))},i.addOnBreadcrumb=function(e){this._cbs.b.push(e)},i.removeOnBreadcrumb=function(e){this._cbs.b=n(this._cbs.b,(function(t){return t!==e}))},i.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},i.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},i.leaveBreadcrumb=function(t,n,o){if(t="string"===typeof t?t:"",o="string"===typeof o&&r(e,o)?o:"manual",n="object"===typeof n&&null!==n?n:{},t){var i=new m(t,n,o);A(this._cbs.b,i,"onBreadcrumb",this._logger)?this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback"):(this._breadcrumbs.push(i),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs)))}},i.notify=function(e,t,n){void 0===n&&(n=Y);var r=C.create(e,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(r,t,n)},i._notify=function(e,t,n){var i=this;if(void 0===n&&(n=Y),e.app=d({},e.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),e.context=e.context||this._context,e._metadata=d({},e._metadata,this._metadata),e._user=d({},e._user,this._user),e.breadcrumbs=this._breadcrumbs.slice(),this._session&&(this._session._track(e),e._session=this._session),null!==this._config.enabledReleaseStages&&!r(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),n(null,e);var a=e.severity,s=function(e){i._logger.error("Error occurred in onError callback, continuing anyway\u2026"),i._logger.error(e)};!function(e,t,n,r){!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):(r++,void o())}))};o()}(e,(function(e,r){if("function"!==typeof e)return r(null);try{if(2!==e.length){var o=e(t);return o&&"function"===typeof o.then?o.then((function(e){return setTimeout((function(){return r(null,e)}))}),(function(e){setTimeout((function(){return n(e),r(null,!0)}))})):r(null,o)}e(t,(function(e,t){if(e)return n(e),r(null);r(null,t)}))}catch(i){n(i),r(null)}}),r)}([].concat(this._cbs.e).concat(t),e,s,(function(t,u){if(t&&s(t),!u)return i._logger.debug("Event not sent due to onError callback"),n(null,e);r(i._config.enabledBreadcrumbTypes,"error")&&o.prototype.leaveBreadcrumb.call(i,e.errors[0].errorClass,{errorClass:e.errors[0].errorClass,errorMessage:e.errors[0].errorMessage,severity:e.severity},"error"),a!==e.severity&&(e._handledState.severityReason={type:"userCallbackSetSeverity"}),i._delivery.sendEvent({apiKey:e.apiKey||i._config.apiKey,notifier:i._notifier,events:[e]},(function(t){return n(t,e)}))}
1))},o}(),ee=function(e,t){return new Error("Invalid configuration\n"+h(s(e),(function(n){return" - "+n+" "+e[n]+", got "+te(t[n])})).join("\n\n"))},te=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},ne=Z,re=function(e,t,n,r){var o=r&&r.redactedKeys?r.redactedKeys:[],i=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(function(e,t,n){var r=[],o=0;return function e(i,a){function s(){return a.length>ae&&o>ie}if(o++,a.length>oe)return se;if(s())return se;if(null===i||"object"!==typeof i)return i;if(function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}(r,i))return"[Circular]";if(r.push(i),"function"===typeof i.toJSON)try{o--;var u=e(i.toJSON(),a);return r.pop(),u}catch(v){return ue(v)}var c;if((c=i)instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(c))){o--;var l=e({name:i.name,message:i.message},a);return r.pop(),l}if(function(e){return"[object Array]"===Object.prototype.toString.call(e)}(i)){for(var f=[],d=0,h=i.length;d<h;d++){if(s()){f.push(se);break}f.push(e(i[d],a.concat("[]")))}return r.pop(),f}var g={};try{for(var p in i)if(Object.prototype.hasOwnProperty.call(i,p))if(ce(n,a.join("."))&&le(t,p))g[p]="[REDACTED]";else{if(s()){g[p]=se;break}g[p]=e(fe(i,p),a.concat(p))}}catch(m){}return r.pop(),g}(e,[])}(e,o,i),t,n)},oe=20,ie=25e3,ae=8,se="...";function ue(e){return"[Throws: "+(e?e.message:"?")+"]"}function ce(e,t){for(var n=0,r=e.length;n<r;n++)if(0===t.indexOf(e[n]))return!0;return!1}function le(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 fe(e,t){try{return e[t]}catch(n){return ue(n)}}var de,he={},ge=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];he.event=function(e,t){var n=re(e,null,null,{redactedPaths:ge,redactedKeys:t});if(n.length>1e6&&(e.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},(n=re(e,null,null,{redactedPaths:ge,redactedKeys:t})).length>1e6))throw new Error("payload exceeded 1MB limit");return n},he.session=function(e,t){var n=re(e,null,null);if(n.length>1e6)throw new Error("payload exceeded 1MB limit");return n},de=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});var o=pe(e._config,"notify","4",t),i=new t.XDomainRequest;i.onload=function(){r(null)},i.open("POST",o),setTimeout((function(){try{i.send(he.event(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}}),0)},sendSession:function(n,r){void 0===r&&(r=function(){});var o=pe(e._config,"sessions","1",t),i=new t.XDomainRequest;i.onload=function(){r(null)},i.open("POST",o),setTimeout((function(){try{i.send(he.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}}),0)}}};var pe=function(e,t,n,r){var o=JSON.parse(JSON.stringify(new Date));return ve(e.endpoints[t],r.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(o)},ve=de._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},me=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,i=new t.XMLHttpRequest;i.onreadystatechange=function(){i.readyState===t.XMLHttpRequest.DONE&&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()),i.send(he.event(n,e._config.redactedKeys))}catch(a){e._logger.error(a)}},sendSession:function(n,r){void 0===r&&(r=function(){});try{var o=e._config.endpoints.sessions,i=new t.XMLHttpRequest;i.onreadystatechange=function(){i.readyState===t.XMLHttpRequest.DONE&&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",(ne
1w Date).toISOString()),i.send(he.session(n,e._config.redactedKeys))}catch(a){e._logger.error(a)}}}},ye=function(e){return void 0===e&&(e=window),{load:function(t){t.addOnError((function(t){t.request&&t.request.url||(t.request=d({},t.request,{url:e.location.href}))}),!0)}}},be={load:function(e){e._sessionDelegate=_e}},_e={startSession:function(e,t){var n=e;return n._session=t,n._pausedSession=null,null===n._config.enabledReleaseStages||r(n._config.enabledReleaseStages,n._config.releaseStage)?(n._delivery.sendSession({notifier:n._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}),n):(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n)},resumeSession:function(e){return e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},Se={load:function(e){e._config.collectUserIp||e.addOnError((function(e){e._user&&"undefined"===typeof e._user.id&&delete e._user.id,e._user=d({id:"[REDACTED]"},e._user),e.request=d({clientIp:"[REDACTED]"},e.request)}))},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}},we={load:function(e){var n=/^dev(elopment)?$/.test(e._config.releaseStage);e._config.enabledBreadcrumbTypes&&r(e._config.enabledBreadcrumbTypes,"log")&&!n&&h(Ee,(function(n){var r=console[n];console[n]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];e.leaveBreadcrumb("Console output",t(i,(function(e,t,n){var r="[Unknown value]";try{r=String(t)}catch(o){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(o){}return e["["+n+"]"]=r,e}),{severity:0===n.indexOf("group")?"log":n}),"log"),r.apply(console,i)},console[n]._restore=function(){console[n]=r}}))}},Ee=n(["log","debug","info","warn","error"],(function(e){return"undefined"!==typeof console&&"function"===typeof console[e]})),Oe=function(e,r){return void 0===e&&(e=document),void 0===r&&(r=window),{load:function(o){if(o._config.trackInlineScripts){var i=r.location.href,a="",s=!1,u=function(){return e.documentElement.outerHTML};a=u();var c=e.onreadystatechange;e.onreadystatechange=function(){"interactive"===e.readyState&&(a=u(),s=!0);try{c.apply(this,arguments)}catch(t){}};var l=null,f=function(e){l=e},d=function(){var t=e.currentScript||l;if(!t&&!s){var n=e.scripts||e.getElementsByTagName("script");t=n[n.length-1]}return t};o.addOnError((function(e){e.errors[0].stacktrace=n(e.errors[0].stacktrace,(function(e){return!/__trace__$/.test(e.method)}));var r=e.errors[0].stacktrace[0];if(!r||!r.file||r.file.replace(/#.*$/,"")===i.replace(/#.*$/,"")){var o=d();if(o){var c=o.innerHTML;e.addMetadata("script","content",c.length<=5e5?c:c.substr(0,5e5))}r&&r.lineNumber&&(r.code=function(e){s&&a||(a=u());var n=["\x3c!-- DOC START --\x3e"].concat(a.split("\n")),r=e-1,o=Math.max(r-3,0),i=Math.min(r+3,n.length);return t(n.slice(o,i),(function(e,t,n){return e[o+1+n]=t.length<=200?t:t.substr(0,200),e}),{})}(r.lineNumber))}}),!0);var g=h(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],(function(e){return Ne(r,e,(function(e){return p(e,(function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}}))}))}))[0];h(["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){r[e]&&r[e].prototype&&Object.prototype.hasOwnProperty.call(r[e].prototype,"addEventListener")&&(Ne(r[e].prototype,"addEventListener",(function(e){return p(e,je)})),Ne(r[e].prototype,"removeEventListener",(function(e){return p(e,je,!0)})))}))}function p(e,t,n){return void 0===n&&(n=!1),function(){var r=[].slice.call(arguments);try{var o=t(r),i=o.get();if(n&&e.apply(this,r),"function"!==typeof i)return e.apply(this,r);if(i.__trace__)o.replace(i.__trace__);else{var a=d();i.__trace__=function(){f(a),g((function(){f(null)}),0);var e=i.apply(this,arguments);return f(null),e},i.__trace__.__trace__=i.__trace__,o.replace(i.__trace__)}}catch(s){}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"}}}};function Ne(e,t,n){var r=e[t];if(!r)return r;var o=n(r);return e[t]=o,r}function je(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}}}
1var ke,xe=function(e){return void 0===e&&(e=window),{load:function(t){"addEventListener"in e&&t._config.enabledBreadcrumbTypes&&r(t._config.enabledBreadcrumbTypes,"user")&&e.addEventListener("click",(function(n){var r,o;try{r=Be(n.target),o=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(i){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("")}(n.target,e)}catch(i){r="[hidden]",o="[hidden]",t._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}t.leaveBreadcrumb("UI click",{targetText:r,targetSelector:o},"user")}),!0)}}},Be=function(e){var t,n,r=e.textContent||e.innerText||"";return r||"submit"!==e.type&&"button"!==e.type||(r=e.value),r=r.replace(/^\s+|\s+$/g,""),n=140,(t=r)&&t.length<=n?t:t.slice(0,n-"(...)".length)+"(...)"};ke=function(e){return void 0===e&&(e=window),{load:function(t){if("addEventListener"in e&&t._config.enabledBreadcrumbTypes&&r(t._config.enabledBreadcrumbTypes,"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:Te(n.oldURL,e),to:Te(n.newURL,e),state:Re(e)}:{to:Te(e.location.href,e)};t.leaveBreadcrumb("Hash changed",r,"navigation")}),!0),e.history.replaceState&&Le(t,e.history,"replaceState",e),e.history.pushState&&Le(t,e.history,"pushState",e),t.leaveBreadcrumb("Bugsnag loaded",{},"navigation")}}}};var Te=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},Le=function(e,t,n,r){var o=t[n];t[n]=function(i,a,s){e.leaveBreadcrumb("History "+n,function(e,t,n,r){var o=Te(e.location.href,e);return{title:n,state:t,prevState:Re(e),to:r||o,from:o}}(r,i,a,s),"navigation"),"function"===typeof e.resetEventCount&&e.resetEventCount(),e._config.autoTrackSessions&&e.startSession(),o.apply(t,[i,a].concat(void 0!==s?s:[]))}},Re=function(e){try{return e.history.state}catch(t){}},Me="request",qe="BS~~S",Ce="BS~~U",Ae="BS~~M",De=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=window),{load:function(n){if(n._config.enabledBreadcrumbTypes&&r(n._config.enabledBreadcrumbTypes,"request")){var o=[n._config.endpoints.notify,n._config.endpoints.sessions].concat(e);!function(){if("addEventListener"in t.XMLHttpRequest.prototype){var e=t.XMLHttpRequest.prototype.open;t.XMLHttpRequest.prototype.open=function(t,n){this[Ce]=n,this[Ae]=t,this[qe]&&(this.removeEventListener("load",s),this.removeEventListener("error",u)),this.addEventListener("load",s),this.addEventListener("error",u),this[qe]=!0,e.apply(this,arguments)}}}(),function(){if("fetch"in t&&!t.fetch.polyfill){var e=t.fetch;t.fetch=function(){var t,n=arguments,r=arguments[0],o=arguments[1],s=null;return r&&"object"===typeof r?(s=r.url,o&&"method"in o?t=o.method:r&&"method"in r&&(t=r.method)):(s=r,o&&"method"in o&&(t=o.method)),void 0===t&&(t="GET"),new Promise((function(r,o){e.apply(void 0,n).then((function(e){i(e,t,s),r(e)})).catch((function(e){a(t,s),o(e)}))}))}}}();var i=function(e,t,r){var o={status:e.status,request:t+" "+r};e.status>=400?n.leaveBreadcrumb("fetch() failed",o,Me):n.leaveBreadcrumb("fetch() succeeded",o,Me)},a=function(e,t){n.leaveBreadcrumb("fetch() error",{request:e+" "+t},Me)}}function s(){if(!r(o,this[Ce])){var e={status:this.status,request:this[Ae]+" "+this[Ce]};this.status>=400?n.leaveBreadcrumb("XMLHttpRequest failed",e,Me):n.leaveBreadcrumb("XMLHttpRequest succeeded",e,Me)}}function u(){r(o,this[Ce])||n.leaveBreadcrumb("XMLHttpRequest error",{request:this[Ae]+" "+this[Ce]},Me)}}}},Pe={load:function(e){var t=0;e.addOnError((function(n){if(t>=e._config.maxEvents)return!1;t++})),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer \u2264100",validate:function(e){return u(1,100)(e)}}}},Ve={},He=(Ve={load:function(e){e.addOnError((function(e){var n=t(e.errors,(function(e,t){return e.concat(t.stacktrace)}),[]);h(n,(function(e){e.file=He(e.file)}))}
1))}})._strip=function(e){return"string"===typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},Ie=function(e){return void 0===e&&(e=window),{load:function(t){if(t._config.autoDetectErrors&&t._config.enabledErrorTypes.unhandledExceptions){var n=e.onerror;e.onerror=function(e,r,o,i,a){if(0===o&&/Script error\.?/.test(e))t._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(a)s=t.Event.create(a,!0,u,"window onerror",1),Ke(s.errors[0].stacktrace,r,o,i);else if("object"!==typeof e||null===e||r&&"string"===typeof r||o||i||a)s=t.Event.create(e,!0,u,"window onerror",1),Ke(s.errors[0].stacktrace,r,o,i);else{var c=e.type?"Event: "+e.type:"Error",l=e.message||e.detail||"";(s=t.Event.create({name:c,message:l},!0,u,"window onerror",1)).originalError=e,s.addMetadata("window onerror",{event:e,extraParameters:r})}t._notify(s)}"function"===typeof n&&n.apply(this,arguments)}}}}},Ke=function(e,t,n,r){e[0]||e.push({});var o=e[0];o.file||"string"!==typeof t||(o.file=t),!o.lineNumber&&$e(n)&&(o.lineNumber=n),o.columnNumber||($e(r)?o.columnNumber=r:window.event&&$e(window.event.errorCharacter)&&(o.columnNumber=window.event.errorCharacter))},$e=function(e){return"number"===typeof e&&"NaN"!==String.call(e)},Ue=function(e){return void 0===e&&(e=window),{load:function(t){if(t._config.autoDetectErrors&&t._config.enabledErrorTypes.unhandledRejections){var n=function(e){var n=e.reason,r=!1;try{e.detail&&e.detail.reason&&(n=e.detail.reason,r=!0)}catch(i){}var o=t.Event.create(n,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,t._logger);r&&h(o.errors[0].stacktrace,Xe(n)),t._notify(o,(function(e){var t;w(e.originalError)&&!e.originalError.stack&&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 e?e.addEventListener("unhandledrejection",n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})}}}}},Xe=function(e){return function(t){t.file!==e.toString()&&t.method&&(t.method=t.method.replace(/^\s+/,""))}},Fe={},Je=d({},f.schema,p),We={_client:null,createClient:function(e){"string"===typeof e&&(e={apiKey:e}),e||(e={});var t,n,r=[(void 0===n&&(n=navigator),{load:function(e){var t={locale:n.browserLanguage||n.systemLanguage||n.userLanguage||n.language,userAgent:n.userAgent};e.addOnSession((function(e){e.device=d({},e.device,t)})),e.addOnError((function(e){e.device=d({},e.device,t,{time:new Date})}),!0)}}),(void 0===t&&(t=window),{load:function(e){e.addOnError((function(e){void 0===e.context&&(e.context=t.location.pathname)}),!0)}}),ye(),Pe,be,Se,Ve,Ie(),Ue(),ke(),xe(),De(),we,Oe()],o=new ne(e,Je,r,{name:"Bugsnag JavaScript",version:"7.1.1",url:"https://github.com/bugsnag/bugsnag-js"});return o._setDelivery(window.XDomainRequest?de:me),o._logger.debug("Loaded!"),o._config.autoTrackSessions?o.startSession():o},start:function(e){return We._client?(We._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),We._client):(We._client=We.createClient(e),We._client)}};return h(["resetEventCount"].concat(s(ne.prototype)),(function(e){/^_/.test(e)||(We[e]=function(){if(!We._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");We._client._depth+=1;var t=We._client[e].apply(We._client,arguments);return We._client._depth-=1,t})})),(Fe=We).Client=ne,Fe.Event=C,Fe.Session=Q,Fe.Breadcrumb=m,Fe.default=We,Fe}()},NTr2:function(e,t,n){e.exports=n("ASyH")}}]);
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.