text: (window.webpackJsonp=window.webpackJsonp||[]).push([[29],{284:function(e,t,n){e.exports=function(){var e=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},t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=function(e){return e<10?"0"+e:e},o={map:function(t,n){return e(t,function(e,t,r,o){return e.concat(n(t,r,o))},[])},reduce:e,filter:function(t,n){return e(t,function(e,t,r,o){return n(t,r,o)?e.concat(t):e},[])},includes:function(t,n){return e(t,function(e,t,r,o){return!0===e||t===n},!1)},keys:function(e){var r=[],o=void 0;for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push(o);if(!t)return r;for(var i=0,a=n.length;i<a;i++)Object.prototype.hasOwnProperty.call(e,n[i])&&r.push(n[i]);return r},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isoDate:function(){var e=new Date;return e.getUTCFullYear()+"-"+r(e.getUTCMonth()+1)+"-"+r(e.getUTCDate())+"T"+r(e.getUTCHours())+":"+r(e.getUTCMinutes())+":"+r(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}},i=o.isoDate,a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[anonymous]",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"manual",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i();!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=r,this.name=t,this.metaData=n,this.timestamp=o}return e.prototype.toJSON=function(){return{type:this.type,name:this.name,timestamp:this.timestamp,metaData:this.metaData}},e}(),s={},u=o.includes;s.positiveIntIfDefined=function(e){return u(["undefined","number"],typeof e)&&parseInt(""+e,10)===e&&e>0},s.stringWithLength=function(e){return"string"==typeof e&&!!e.length};var c={},f=o.filter,l=o.reduce,d=o.keys,g=o.isArray,p=o.includes,h=s.positiveIntIfDefined,v=s.stringWithLength;c.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:v},appVersion:{defaultValue:function(){return null},message:"should be a string",validate:function(e){return null===e||v(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||g(e)&&f(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&&v(e.notify)&&(!1===t.autoCaptureSessions||v(e.sessions))&&0===f(d(e),function(e){return!p(["notify","sessions"],e)}).length}},autoCaptureSessions:{defaultValue:function(e,t){return void 0===t.endpoints||!!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||g(e)&&f(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 0===e||h(e)&&(void 0===e||e<=40)}},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(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&l(["debug","info","warn","error"],function(t,n){return t&&"function"==typeof e[n]},!0)}}},c.mergeDefaults=function(e,t){if(!e||!t)throw Error("opts and schema objects are required");return l(d(t),function(n,r){return n[r]=void 0!==e[r]?e[r]:t[r].defaultValue(e[r],e),n},{})},c.validate=function(e,t){if(!e||!t)throw Error("opts and schema objects are required");var n=l(d(t),function(n,r){return t[r].validate(e[r],e)?n:n.concat({key:r,message:t[r].message,value:e[r]})},[]);return{valid:!n.length,errors:n}};var m=function(e){return e.app&&"string"==typeof e.app.releaseStage?e.app.releaseStage:e.config.releaseStage},y=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)},b={};!function(e,t){"use strict";"object"==typeof b?b=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(){var t=this.getFunctionName()||"{anonymous}",n="("+(this.getArgs()||[]).join(",")+")",r=this.getFileName()?"@"+this.getFileName():"",o=e(this.getLineNumber())?":"+this.getLineNumber():"",i=e(this.getColumnNumber())?":"+this.getColumnNumber():"";return t+n+r+o+i}};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]=!!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]=+n}}(o[c]);for(var f=0;f<i.length;f++)s.prototype["get"+t(i[f])]=n(i[f]),s.prototype["set"+t(i[f])]=function(e){return function(t){this[e]=t+""}}(i[f]);return s});var w={};!function(e,t){"use strict";"object"==typeof w?w=t(b):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(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){var r=t.stack.split("\n").filter(function(e){return!!e.match(n)},this);return r.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,"(").split(/\s+/).slice(1),r=this.extractLocation(n.pop()),o=n.join(" ")||void 0,i=["eval","<anonymous>"].indexOf(r[0])>-1?void 0:r[0];return new e({functionName:o,fileName:i,lineNumber:r[1],columnNumber:r[2],source:t})},this)},parseFFOrSafari:function(t){var n=t.stack.split("\n").filter(function(e){return!e.match(r)},this);return n.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){var r=n.stack.split("\n").filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this);return r.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 S={};!function(e,t){"use strict";"object"==typeof S?S=t(b):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=Array(o.arguments.length),a=0;a<i.length;++a)i[a]=o.arguments[a];n.push(new e(/function(?:\s+([\w$]+))+\s*\(/.test(""+o)?{functionName:RegExp.$1||void 0,args:i}:{args:i}));try{o=o.caller}catch(e){break}}return n}}});var O=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},j=o.reduce,E=o.filter,N=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:B();!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__isBugsnagReport=!0,this._ignored=!1,this._handledState=o,this.app=void 0,this.apiKey=void 0,this.breadcrumbs=[],this.context=void 0,this.device=void 0,this.errorClass=D(t,"[no error class]"),this.errorMessage=D(n,"[no error message]"),this.groupingHash=void 0,this.metaData={},this.request=void 0,this.severity=this._handledState.severity,this.stacktrace=j(r,function(e,t){var n=k(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(t){return e}},[]),this.user=void 0,this.session=void 0}return e.prototype.ignore=function(){this._ignored=!0},e.prototype.isIgnored=function(){return this._ignored},e.prototype.updateMetaData=function(e){var t;if(!e)return this;var n=void 0;return null===(arguments.length<=1?void 0:arguments[1])?this.removeMetaData(e):null===(arguments.length<=2?void 0:arguments[2])?this.removeMetaData(e,arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]):("object"==typeof(arguments.length<=1?void 0:arguments[1])&&(n=arguments.length<=1?void 0:arguments[1]),"string"==typeof(arguments.length<=1?void 0:arguments[1])&&((t={})[arguments.length<=1?void 0:arguments[1]]=arguments.length<=2?void 0:arguments[2],n=t),n?(this.metaData[e]||(this.metaData[e]={}),this.metaData[e]=O({},this.metaData[e],n),this):this)},e.prototype.removeMetaData=function(e,t){return"string"!=typeof e?this:t?this.metaData[e]?(delete this.metaData[e][t],this):this:(delete this.metaData[e],this)},e.prototype.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}(),k=function(e){var t={file:e.fileName,method:R(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},R=function(e){return/^global code$/i.test(e)?"global code":e},B=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},D=function(e,t){return"string"==typeof e&&e?e:t};N.getStacktrace=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return y(e)?w.parse(e).slice(t):E(S.backtrace(),function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")}).slice(1+n)},N.ensureReport=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.__isBugsnagReport)return e;try{var r=N.getStacktrace(e,t,1+n);return new N(e.name,e.message,r)}catch(t){return new N(e.name,e.message,[])}};var x=N,L=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},_="object"==typeof window?window:self,C=0;for(var q in _)Object.hasOwnProperty.call(_,q)&&C++;var T=navigator.mimeTypes?navigator.mimeTypes.length:0,A=L((T+navigator.userAgent.length).toString(36)+C.toString(36),4),M=function(){return A},P=0,V=4,H=36,U=Math.pow(H,V);function I(){return L((Math.random()*U<<0).toString(H),V)}function $(){var e=(new Date).getTime().toString(H),t=L((P=P<U?P:0,++P-1).toString(H),V),n=M(),r=I()+I();return"c"+e+t+n+r}$.fingerprint=M;var F=$,K=o.isoDate,X=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=F(),this.startedAt=K(),this._handled=0,this._unhandled=0}return e.prototype.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},e.prototype.trackError=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}(),J=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},z=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},G=o.map,W=o.reduce,Y=o.includes,Z=o.isArray,Q=function(){},ee=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.schema,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!(t&&t.name&&t.version&&t.url))throw Error("`notifier` argument is required");this.notifier=t,this.configSchema=n,this._configured=!1,this._transport={sendSession:Q,sendReport:Q},this._logger={debug:Q,info:Q,warn:Q,error:Q},this.plugins=[],this.session=r,this.beforeSession=[],this.breadcrumbs=[],this.app={},this.context=void 0,this.device=void 0,this.metaData=void 0,this.request=void 0,this.user={},this.BugsnagReport=x,this.BugsnagBreadcrumb=a,this.BugsnagSession=X}return e.prototype.configure=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=c.mergeDefaults(z({},this.config,e),this.configSchema);var t=c.validate(this.config,this.configSchema);if(1==!t.valid)throw Error(re(t.errors));return"function"==typeof this.config.beforeSend&&(this.config.beforeSend=[this.config.beforeSend]),null!==this.config.appVersion&&(this.app.version=this.config.appVersion),this.config.metaData&&(this.metaData=this.config.metaData),this.config.user&&(this.user=this.config.user),this.config.logger&&this.logger(this.config.logger),this._configured=!0,this._logger.debug("Loaded!"),this},e.prototype.use=function(e){return this.plugins.push(e),e.init(this)},e.prototype.transport=function(e){return this._transport=e,this},e.prototype.logger=function(e,t){return this._logger=e,this},e.prototype.sessionDelegate=function(e){return this._sessionDelegate=e,this},e.prototype.startSession=function(){return this._sessionDelegate?this._sessionDelegate.startSession(this):(this._logger.warn("No session implementation is installed"),this)},e.prototype.leaveBreadcrumb=function(e,t,n,r){if(!this._configured)throw Error("client not configured");if(e=e||void 0,n="string"==typeof n?n:void 0,r="string"==typeof r?r:void 0,t="object"==typeof t&&null!==t?t:void 0,"string"==typeof e||t){var o=new a(e,t,n,r);return this.breadcrumbs.push(o),this.breadcrumbs.length>this.config.maxBreadcrumbs&&(this.breadcrumbs=this.breadcrumbs.slice(this.breadcrumbs.length-this.config.maxBreadcrumbs)),this}},e.prototype.notify=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this._configured)throw Error("client not configured");var n=m(this),r=te(e,t,this._logger),o=r.err,i=r.errorFramesToSkip,a=r._opts;if(a&&(t=a),!o){var s=oe("nothing");this._logger.warn("Usage error. "+s),o=Error("Bugsnag usage error. "+s)}"object"==typeof t&&null!==t||(t={});var u=x.ensureReport(o,i,1);if(u.app=z({releaseStage:n},u.app,this.app),u.context=u.context||t.context||this.context||void 0,u.device=z({},u.device,this.device,t.device),u.request=z({},u.request,this.request,t.request),u.user=z({},u.user,this.user,t.user),u.metaData=z({},u.metaData,this.metaData,t.metaData),u.breadcrumbs=this.breadcrumbs.slice(0),this.session&&(this.session.trackError(u),u.session=this.session),void 0!==t.severity&&(u.severity=t.severity,u._handledState.severityReason={type:"userSpecifiedSeverity"}),Z(this.config.notifyReleaseStages)&&!Y(this.config.notifyReleaseStages,n))return this._logger.warn("Report not sent due to releaseStage/notifyReleaseStages configuration"),!1;var c=u.severity,f=[].concat(t.beforeSend).concat(this.config.beforeSend),l=W(f,function(e,t){return!0===e||"function"==typeof t&&!1===t(u)||!!u.isIgnored()},!1);return l?(this._logger.debug("Report not sent due to beforeSend callback"),!1):(this.config.autoBreadcrumbs&&this.leaveBreadcrumb(u.errorClass,{errorClass:u.errorClass,errorMessage:u.errorMessage,severity:u.severity,stacktrace:u.stacktrace},"error"),c!==u.severity&&(u._handledState.severityReason={type:"userCallbackSetSeverity"}),this._transport.sendReport(this._logger,this.config,{apiKey:u.apiKey||this.config.apiKey,notifier:this.notifier,events:[u]}),!0)},e}(),te=function(e,t,n){var r=void 0,o=0,i=void 0;switch(typeof e){case"string":if("string"==typeof t){var a=oe("string/string");n.warn("Usage error. "+a),r=Error("Bugsnag usage error. "+a),i={metaData:{notifier:{notifyArgs:[e,t]}}}}else r=Error(e+""),o+=2;break;case"number":case"boolean":r=Error(e+"");break;case"function":var s=oe("function");n.warn("Usage error. "+s),r=Error("Bugsnag usage error. "+s);break;case"object":if(null!==e&&(J(e)||e.__isBugsnagReport))r=e;else if(null!==e&&ne(e))(r=Error(e.message||e.errorMessage)).name=e.name||e.errorClass,o+=2;else{var u=oe("unsupported object");n.warn("Usage error. "+u),r=Error("Bugsnag usage error. "+u)}}return{err:r,errorFramesToSkip:o,_opts:i}},ne=function(e){return!("string"!=typeof e.name&&"string"!=typeof e.errorClass||"string"!=typeof e.message&&"string"!=typeof e.errorMessage)},re=function(e){return"Bugsnag configuration error\n"+G(e,function(e){return'"'+e.key+'" '+e.message+" \n    got "+ie(e.value)}).join("\n\n")},oe=function(e){return"notify() expected error/opts parameters, got "+e},ie=function(e){return"object"==typeof e?JSON.stringify(e):e+""},ae=ee,se=s.positiveIntIfDefined,ue={init:function(e){var t=0;e.config.beforeSend.push(function(n){if(t>=e.config.maxEvents)return n.ignore();t++}),e.refresh=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer ≤100",validate:function(e){return se(e)&&e<100}}}},ce=o.map,fe={releaseStage:{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"},message:"should be set",validate:s.stringWithLength},collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},logger:(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})({},c.schema.logger,{defaultValue:function(){return void 0!==console&&"function"==typeof console.debug?le():void 0}})},le=function(){var e={},t=console.log;return ce(["debug","info","warn","error"],function(n){var r=console[n];e[n]="function"==typeof r?r.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")}),e},de={},ge=o.map,pe=o.reduce,he=o.filter;de.init=function(e){ge(ve,function(t){var n=console[t];console[t]=function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];e.leaveBreadcrumb("Console output",pe(o,function(e,t,n){var r=t+"";if("[object Object]"===r)try{r=JSON.stringify(t)}catch(e){}return e["["+n+"]"]=r,e},{severity:0===t.indexOf("group")?"log":t}),"log"),n.apply(console,o)},console[t]._restore=function(){console[t]=n}})},de.configSchema={consoleBreadcrumbsEnabled:{defaultValue:function(){},validate:function(e){return!0===e||!1===e||void 0===e},message:"should be true|false"}};var ve=he(["log","debug","info","warn","error"],function(e){return void 0!==console&&"function"==typeof console[e]}),me={init:function(e){e.config.beforeSend.unshift(function(e){e.context||(e.context=window.location.pathname)})}},ye=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},be=o.isoDate,we={init:function(e){e.config.beforeSend.unshift(function(e){e.device=ye({time:be(),locale:navigator.browserLanguage||navigator.systemLanguage||navigator.userLanguage||navigator.language,userAgent:navigator.userAgent},e.device)}),e.beforeSession.push(function(e){e.device={userAgent:navigator.userAgent}})}},Se={},Oe=o.reduce,je=/^.*<script.*?>/,Ee=/<\/script>.*$/,Ne=(Se={init:function(e){var t="",n=!1,r=function(){return document.documentElement.outerHTML},o=window.location.href;t=r(),document.onreadystatechange=function(){"interactive"===document.readyState&&(t=r(),n=!0)},e.config.beforeSend.unshift(function(e){var i=e.stacktrace[0];if(!i||!i.file||!i.lineNumber)return i;if(i.file.replace(/#.*$/,"")!==o.replace(/#.*$/,""))return i;n&&t||(t=r());var a=["\x3c!-- DOC START --\x3e"].concat(t.split("\n")),s=Ne(a,i.lineNumber-1),u=s.script,c=s.start,f=Oe(u,function(e,t,n){return Math.abs(c+n+1-i.lineNumber)>10?e:(e[""+(c+n+1)]=t,e)},{});i.code=f,e.updateMetaData("script",{content:u.join("\n")})})}}).extractScriptContent=function(e,t){for(var n=t;n<e.length&&!Ee.test(e[n]);)n++;for(var r=n;n>0&&!je.test(e[n]);)n--;var o=n,i=e.slice(o,r+1);return i[0]=i[0].replace(je,""),i[i.length-1]=i[i.length-1].replace(Ee,""),{script:i,start:o}},ke={init:function(e){"addEventListener"in window&&window.addEventListener("click",function(t){var n=void 0,r=void 0;try{n=Re(t.target),r=function e(t){var n=[t.tagName];if(t.id&&n.push("#"+t.id),t.className&&t.className.length&&n.push("."+t.className.split(" ").join(".")),!document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===document.querySelectorAll(n.join("")).length)return n.join("")}catch(e){return n.join("")}if(t.parentNode.childNodes.length>1){var r=Array.prototype.indexOf.call(t.parentNode.childNodes,t)+1;n.push(":nth-child("+r+")")}return 1===document.querySelectorAll(n.join("")).length?n.join(""):t.parentNode?e(t.parentNode)+" > "+n.join(""):n.join("")}(t.target)}catch(t){n="[hidden]",r="[hidden]",e._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/y94fq5zm")}e.leaveBreadcrumb("UI click",{targetText:n,targetSelector:r},"user")},!0)},configSchema:{interactionBreadcrumbsEnabled:{defaultValue:function(){},validate:function(e){return!0===e||!1===e||void 0===e},message:"should be true|false"}}},Re=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-5)+"(...)"},Be=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},De={init:function(e){e.config.collectUserIp||e.config.beforeSend.push(function(e){e.user=Be({id:"[NOT COLLECTED]"},e.user),e.request=Be({clientIp:"[NOT COLLECTED]"},e.request)})}},xe={init:function(e){if("addEventListener"in window){var t=function(t){return function(){return e.leaveBreadcrumb(t,{},"navigation")}};window.addEventListener("pagehide",t("Page hidden"),!0),window.addEventListener("pageshow",t("Page shown"),!0),window.addEventListener("load",t("Page loaded"),!0),window.document.addEventListener("DOMContentLoaded",t("DOMContentLoaded"),!0),window.addEventListener("load",function(){return window.addEventListener("popstate",t("Navigated back"),!0)}),window.addEventListener("hashchange",function(t){var n=t.oldURL?{from:Le(t.oldURL),to:Le(t.newURL),state:Ce()}:{to:Le(window.location.href)};e.leaveBreadcrumb("Hash changed",n,"navigation")},!0),window.history.replaceState&&_e(e,window.history,"replaceState"),window.history.pushState&&_e(e,window.history,"pushState"),e.leaveBreadcrumb("Bugsnag loaded",{},"navigation")}},configSchema:{navigationBreadcrumbsEnabled:{defaultValue:function(){},validate:function(e){return!0===e||!1===e||void 0===e},message:"should be true|false"}}},Le=function(e){var t=document.createElement("A");return t.href=e,""+t.pathname+t.search+t.hash},_e=function(e,t,n){var r=t[n];t[n]=function(o,i,a){e.leaveBreadcrumb("History "+n,function(e,t,n){var r=Le(window.location.href);return{title:t,state:e,prevState:Ce(),to:n||r,from:r}}(o,i,a),"navigation"),"function"==typeof e.refresh&&e.refresh(),e.session&&e.startSession(),r.apply(t,[o,i].concat(void 0!==a?a:[]))},t[n]._restore=function(){t[n]=r}},Ce=function(){try{return window.history.state}catch(e){}},qe={},Te="request",Ae="BS~~U",Me="BS~~M",Pe=o.includes,Ve=void 0,He=function(){return[Ve.config.endpoints.notify,Ve.config.endpoints.sessions]};qe.init=function(e){Ve=e,Ue(),Fe()},qe.configSchema={networkBreadcrumbsEnabled:{defaultValue:function(){},validate:function(e){return!0===e||!1===e||void 0===e},message:"should be true|false"}};var Ue=function(){if("addEventListener"in window.XMLHttpRequest.prototype){var e=window.XMLHttpRequest.prototype.open;window.XMLHttpRequest.prototype.open=function(t,n){this[Ae]=n,this[Me]=t,this["BS~~S"]&&(this.removeEventListener("load",Ie),this.removeEventListener("error",$e)),this.addEventListener("load",Ie),this.addEventListener("error",$e),this["BS~~S"]=!0,e.apply(this,arguments)}}};function Ie(){if(!Pe(He(),this[Ae])){var e={status:this.status,request:this[Me]+" "+this[Ae]};Ve.leaveBreadcrumb(this.status>=400?"XMLHttpRequest failed":"XMLHttpRequest succeeded",e,Te)}}function $e(){Pe(He(),this[Ae])||Ve.leaveBreadcrumb("XMLHttpRequest error",{request:this[Me]+" "+this[Ae]},Te)}var Fe=function(){if("fetch"in window){var e=window.fetch;window.fetch=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a="GET";return i&&i.method&&(a=i.method),new Promise(function(t,r){e.apply(void 0,n).then(function(e){Ke(e,a,o),t(e)}).catch(function(e){Xe(a,o),r(e)})})}}},Ke=function(e,t,n){var r={status:e.status,request:t+" "+n};Ve.leaveBreadcrumb(e.status>=400?"fetch() failed":"fetch() succeeded",r,Te)},Xe=function(e,t){Ve.leaveBreadcrumb("fetch() error",{request:e+" "+t},Te)},Je=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},ze={init:function(e){e.config.beforeSend.unshift(function(e){e.request&&e.request.url||(e.request=Je({},e.request,{url:window.location.href}))})}},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},We=o.map,Ye=o.isArray,Ze=o.includes,Qe={init:function(e){return e.sessionDelegate(et)}},et={startSession:function(e){var t=e;t.session=new e.BugsnagSession,We(t.beforeSession,function(e){return e(t)});var n=m(t);return Ye(t.config.notifyReleaseStages)&&!Ze(t.config.notifyReleaseStages,n)?(t._logger.warn("Session not sent due to releaseStage/notifyReleaseStages configuration"),t):t.config.endpoints.sessions?(t._transport.sendSession(t._logger,t.config,{notifier:t.notifier,device:t.device,app:Ge({releaseStage:n},t.app),sessions:[{id:t.session.id,startedAt:t.session.startedAt,user:t.user}]}),t):(t._logger.warn("Session not sent due to missing endpoints.sessions configuration"),t)}},tt={},nt=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},rt=o.map,ot=(tt={init:function(e){e.config.beforeSend.push(function(e){e.stacktrace=rt(e.stacktrace,function(e){return nt({},e,{file:ot(e.file)})})})}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},it={},at=o.reduce;it.init=function(e){var t=function(t){var n=t.reason,r=!1;t.detail&&t.detail.reason&&(n=t.detail.reason,r=!0);var o={severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},i=void 0;n&&y(n)?(i=new e.BugsnagReport(n.name,n.message,w.parse(n),o),r&&(i.stacktrace=at(i.stacktrace,ut(n),[]))):(i=new e.BugsnagReport(n&&n.name?n.name:"UnhandledRejection",n&&n.message?n.message:'Rejection reason was not an Error. See "Promise" tab for more detail.',[],o)).updateMetaData("promise","rejection reason",st(n)),e.notify(i)};"addEventListener"in window?window.addEventListener("unhandledrejection",t):window.onunhandledrejection=function(e,n){t({detail:{reason:e,promise:n}})}};var st=function(e){return null===e||void 0===e?"undefined (or null)":J(e)?((t={})[Object.prototype.toString.call(e)]={name:e.name,message:e.message,code:e.code,stack:e.stack},t):e;var t},ut=function(e){return function(t,n){return n.file===""+e?t:(n.method&&(n.method=n.method.replace(/^\s+/,"")),t.concat(n))}},ct={init:function(e){var t=window.onerror;window.onerror=function(n,r,o,i,a){if(0===o&&/Script error\.?/.test(n))e._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/y94fq5zm");else{var s={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}},u=void 0;if(a)a.name&&a.message?u=new e.BugsnagReport(a.name,a.message,ft(e.BugsnagReport.getStacktrace(a),r,o,i),s):(u=new e.BugsnagReport("window.onerror",a+"",ft(e.BugsnagReport.getStacktrace(a,1),r,o,i),s)).updateMetaData("window onerror",{error:a});else if("object"!=typeof n||null===n||r||o||i||a)(u=new e.BugsnagReport("window.onerror",n+"",ft(e.BugsnagReport.getStacktrace(a,1),r,o,i),s)).updateMetaData("window onerror",{event:n});else{var c=n.type?"Event: "+n.type:"window.onerror",f=n.message||n.detail||"";(u=new e.BugsnagReport(c,f,e.BugsnagReport.getStacktrace(Error(),1).slice(1),s)).updateMetaData("window onerror",{event:n})}e.notify(u),"function"==typeof t&&t(n,r,o,i,a)}}}},ft=function(e,t,n,r){var o=e[0];return o?(o.fileName||o.setFileName(t),o.lineNumber||o.setLineNumber(n),o.columnNumber||(void 0!==r?o.setColumnNumber(r):window.event&&window.event.errorCharacter&&o.setColumnNumber(window.event&&window.event.errorCharacter)),e):e},lt=function(e,t,n){return JSON.stringify((r=[],o=0,function e(t,n){function i(){return n>pt&&o>gt}if(o++,void 0===n&&(n=0),n>dt)return ht;if(i())return ht;if(null===t||"object"!=typeof t)return t;if(function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}(r,t))return"[Circular]";if(r.push(t),"function"==typeof t.toJSON)try{o--;var a=e(t.toJSON(),n);return r.pop(),a}catch(e){return vt(e)}if(function(e){return"[object Array]"===Object.prototype.toString.call(e)}(t)){for(var s=[],u=0,c=t.length;u<c;u++){if(i()){s.push(ht);break}s.push(e(t[u],n+1))}return r.pop(),s}var f={};try{for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l)){if(i()){f[l]=ht;break}f[l]=e(mt(t,l),n+1)}}catch(e){}return r.pop(),f}(e)),t,n);var r,o},dt=20,gt=25e3,pt=8,ht="...";function vt(e){return"[Throws: "+(e?e.message:"?")+"]"}function mt(e,t){try{return e[t]}catch(e){return vt(e)}}var yt=function(e){var t=lt(e);if(t.length>1e6&&(delete e.events[0].metaData,e.events[0].metaData={notifier:"WARNING!\nSerialized payload was "+t.length/1e6+"MB (limit = 1MB)\nmetaData was removed"},(t=lt(e)).length>1e6))throw Error("payload exceeded 1MB limit");return t},bt={},wt=o.isoDate;bt={sendReport:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=St(t,"notify","4.0"),i=new window.XDomainRequest;i.onload=function(){r(null,i.responseText)},i.open("POST",o),setTimeout(function(){try{i.send(yt(n))}catch(t){e.error(t)}},0)},sendSession:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=St(t,"sessions","1.0"),i=new window.XDomainRequest;i.onload=function(){r(null,i.responseText)},i.open("POST",o),setTimeout(function(){try{i.send(lt(n))}catch(t){e.error(t)}},0)}};var St=function(e,t,n){return Ot(e.endpoints[t],window.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(wt())},Ot=bt._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e},jt=o.isoDate,Et={sendReport:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};try{var o=t.endpoints.notify,i=new window.XMLHttpRequest;i.onreadystatechange=function(){i.readyState===window.XMLHttpRequest.DONE&&r(null,i.responseText)},i.open("POST",o),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",n.apiKey||t.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","4.0"),i.setRequestHeader("Bugsnag-Sent-At",jt()),i.send(yt(n))}catch(t){e.error(t)}},sendSession:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};try{var o=t.endpoints.sessions,i=new window.XMLHttpRequest;i.onreadystatechange=function(){i.readyState===window.XMLHttpRequest.DONE&&r(null,i.responseText)},i.open("POST",o),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",t.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","1.0"),i.setRequestHeader("Bugsnag-Sent-At",jt()),i.send(lt(n))}catch(t){e.error(t)}}},Nt={},kt=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},Rt=o.map,Bt=o.reduce,Dt=kt({},c.schema,fe),xt=[ct,it,we,me,ze,ue,de,qe,xe,ke,Se,Qe,De,tt];Nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof e&&(e={apiKey:e});var n=[];e.sessionTrackingEnabled&&(n.push("deprecated option sessionTrackingEnabled is now called autoCaptureSessions"),e.autoCaptureSessions=e.sessionTrackingEnabled),!e.endpoint&&!e.sessionEndpoint||e.endpoints||(n.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&&n.push("notify endpoint is set but sessions endpoint is not. No sessions will be sent.");var r=Bt([].concat(xt).concat(t),function(e,t){return t.configSchema?kt({},e,t.configSchema):e},Dt),o=new ae({name:"Bugsnag JavaScript",version:"4.7.2",url:"https://github.com/bugsnag/bugsnag-js"},r);return o.transport(window.XDomainRequest?bt:Et),o.configure(e),Rt(n,function(e){return o._logger.warn(e)}),o.use(we),o.use(me),o.use(ze),o.use(Se),o.use(ue),o.use(Qe),o.use(De),o.use(tt),!1!==o.config.autoNotify&&(o.use(ct),o.use(it)),Lt(o.config,"navigationBreadcrumbsEnabled")&&o.use(xe),Lt(o.config,"interactionBreadcrumbsEnabled")&&o.use(ke),Lt(o.config,"networkBreadcrumbsEnabled")&&o.use(qe),Lt(o.config,"consoleBreadcrumbsEnabled",!1)&&o.use(de),Rt(t,function(e){return o.use(e)}),o.config.autoCaptureSessions?o.startSession():o};var Lt=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"boolean"==typeof e[t]?e[t]:e.autoBreadcrumbs&&(n||!/^dev(elopment)?$/.test(e.releaseStage))};return Nt.Bugsnag={Client:ae,Report:x,Session:X,Breadcrumb:a},Nt.default=Nt,Nt}()}}]);
  //# sourceMappingURL=vendors-bugsnag_ea8d8a8.js.map