diff --git a/src/octoprint/plugins/errortracking/static/js/sentry.min.js b/src/octoprint/plugins/errortracking/static/js/sentry.min.js index e4979d05a..83bb176de 100644 --- a/src/octoprint/plugins/errortracking/static/js/sentry.min.js +++ b/src/octoprint/plugins/errortracking/static/js/sentry.min.js @@ -1,3 +1,2 @@ -/*! @sentry/browser 4.5.1 (6a390acf) | https://github.com/getsentry/sentry-javascript */ -var Sentry=function(t){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,o,i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function l(){for(var t=[],e=0;e"}return t.event_id||""}function w(t){var e=b();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}function k(t,e){return void 0===e&&(e=0),0!==e&&g(t)?t.length<=e?t:t.substr(0,e)+"...":t}function O(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;rt.length)&&-1!==t.indexOf(e)}function T(t){return JSON.stringify(t,L({normalize:!1}))}function I(t,e,n){if(e in t&&!t[e].__sentry__){var r=t[e],o=n(r);o.__sentry__=!0,o.__sentry_original__=r,o.__sentry_wrapped__=o,t[e]=o}}(r=t.Severity||(t.Severity={})).Fatal="fatal",r.Error="error",r.Warning="warning",r.Log="log",r.Info="info",r.Debug="debug",r.Critical="critical",function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(t.Severity||(t.Severity={})),(o=t.Status||(t.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(t.Status||(t.Status={}));var R=3,F=102400,C=40;function D(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function N(t){var e=Object.prototype.toString.call(t);return"string"==typeof t?k(t,40):"[object Object]"===e?"[Object]":"[object Array]"===e?"[Array]":P(t)}function M(t,e){if(0===e)return N(t);if(y(t)){var n={},r=t;return Object.keys(r).forEach(function(t){n[t]=M(r[t],e-1)}),n}return Array.isArray(t)?t.map(function(t){return M(t,e-1)}):N(t)}function U(t){for(var e=[],n=1;n")+"]":t}function L(t){void 0===t&&(t={normalize:!0});var e=[],n=[];return function(r,o){if(e.length>0){var i=e.indexOf(this);-1===i?(e.push(this),n.push(r)):(e.splice(i+1),n.splice(i,1/0,r)),-1!==e.indexOf(o)&&(o=function(t,r){return e[0]===r?"[Circular ~]":"[Circular ~."+n.slice(0,e.indexOf(r)).join(".")+"]"}.call(this,r,o))}else e.push(o);return t.normalize?P(o,r):o}}function A(t){try{return JSON.parse(JSON.stringify(t,L({normalize:!0})))}catch(t){return"**non-serializable**"}}var B=function(){function t(){this.notifyingListeners=!1,this.scopeListeners=[],this.eventProcessors=[],this.breadcrumbs=[],this.user={},this.tags={},this.extra={}}return t.prototype.addScopeListener=function(t){this.scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this.eventProcessors.push(t),this},t.prototype.notifyScopeListeners=function(){var t=this;this.notifyingListeners||(this.notifyingListeners=!0,setTimeout(function(){t.scopeListeners.forEach(function(e){e(t)}),t.notifyingListeners=!1},0))},t.prototype.notifyEventProcessors=function(t,e){return s(this,void 0,void 0,function(){var n,r,o,s,c,p,f;return a(this,function(a){switch(a.label){case 0:o=t,a.label=1;case 1:a.trys.push([1,8,9,10]),s=u(l(H(),this.eventProcessors)),c=s.next(),a.label=2;case 2:if(c.done)return[3,7];p=c.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,p(i({},o),e)];case 4:return null===(o=a.sent())?[2,null]:[3,6];case 5:return a.sent(),[3,6];case 6:return c=s.next(),[3,2];case 7:return[3,10];case 8:return f=a.sent(),n={error:f},[3,10];case 9:try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}return[7];case 10:return[2,o]}})})},t.prototype.setUser=function(t){return this.user=A(t),this.notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this.tags=i({},this.tags,((n={})[t]=A(e),n)),this.notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this.extra=i({},this.extra,((n={})[t]=A(e),n)),this.notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this.fingerprint=A(t),this.notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this.level=A(t),this.notifyScopeListeners(),this},t.clone=function(e){var n=new t;return U(n,e,{scopeListeners:[]}),e&&(n.extra=U(e.extra),n.tags=U(e.tags),n.breadcrumbs=l(e.breadcrumbs),n.eventProcessors=l(e.eventProcessors)),n},t.prototype.clear=function(){this.breadcrumbs=[],this.tags={},this.extra={},this.user={},this.level=void 0,this.fingerprint=void 0,this.notifyScopeListeners()},t.prototype.addBreadcrumb=function(t,e){this.breadcrumbs=void 0!==e&&e>=0?l(this.breadcrumbs,[A(t)]).slice(-e):l(this.breadcrumbs,[A(t)]),this.notifyScopeListeners()},t.prototype.applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.fingerprint?t.fingerprint=t.fingerprint.concat(this.fingerprint):t.message&&(t.fingerprint=t.fingerprint.concat(t.message)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t.prototype.applyToEvent=function(t,e,n){return s(this,void 0,void 0,function(){return a(this,function(r){return this.extra&&Object.keys(this.extra).length&&(t.extra=i({},this.extra,t.extra)),this.tags&&Object.keys(this.tags).length&&(t.tags=i({},this.tags,t.tags)),this.user&&Object.keys(this.user).length&&(t.user=i({},this.user,t.user)),this.level&&(t.level=this.level),this.applyFingerprint(t),(!t.breadcrumbs||0===t.breadcrumbs.length)&&this.breadcrumbs.length>0&&(t.breadcrumbs=void 0!==n&&n>=0?this.breadcrumbs.slice(-n):this.breadcrumbs),[2,this.notifyEventProcessors(t,e)]})})},t}();function H(){var t=b();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function $(t){H().push(t)}var q=b(),W=new(function(){function t(){this.enabled=!1}return t.prototype.disable=function(){this.enabled=!1},t.prototype.enable=function(){this.enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e0?t[t.length-1].scope:void 0,n=B.clone(e);return this.getStack().push({client:this.getClient(),scope:n}),n},t.prototype.popScope=function(){return void 0!==this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this.stack},t.prototype.getStackTop=function(){return this.stack[this.stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=E();return this.invokeClientAsync("captureException",t,i({},e,{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=E();return this.invokeClientAsync("captureMessage",t,e,i({},n,{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=E();return this.invokeClientAsync("captureEvent",t,i({},e,{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){this.invokeClient("addBreadcrumb",t,i({},e))},t.prototype.configureScope=function(t){var e=this.getStackTop();e.scope&&e.client&&t(e.scope)},t.prototype.run=function(t){var e=z(this);try{t(this)}finally{z(e)}},t.prototype.getIntegration=function(t){try{return this.getClient().getIntegration(t)}catch(e){return W.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t}();function Y(){var t=b();return t.__SENTRY__=t.__SENTRY__||{hub:void 0},t}function z(t){var e=Y(),n=K(e);return Z(e,t),n}function X(){var t,e,n=Y();J(n)&&!K(n).isOlderThan(V)||Z(n,new G);try{var r=(t=module,e="domain",t.require(e)).active;if(!r)return K(n);if(!J(r)||K(r).isOlderThan(V)){var o=K(n).getStackTop();Z(r,new G(o.client,B.clone(o.scope)))}return K(r)}catch(t){return K(n)}}function J(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function K(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub?t.__SENTRY__.hub:(t.__SENTRY__={},t.__SENTRY__.hub=new G,t.__SENTRY__.hub)}function Z(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Q(t){for(var e=[],n=1;n1&&(p=h.slice(0,-1).join("/"),f=h.pop()),U(this,{host:a,pass:s,path:p,projectId:f,port:l,protocol:r,user:o})},t.prototype.fromComponents=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype.validate=function(){var t,e;try{for(var n=u(["protocol","user","host","projectId"]),r=n.next();!r.done;r=n.next()){var o=r.value;if(!this[o])throw new et("Invalid Dsn: Missing "+o)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}if("http"!==this.protocol&&"https"!==this.protocol)throw new et('Invalid Dsn: Unsupported protocol "'+this.protocol+'"');if(this.port&&m(parseInt(this.port,10)))throw new et('Invalid Dsn: Invalid port number "'+this.port+'"')},t}(),ot=function(){function t(t){this.dsn=t,this.dsnObject=new rt(t)}return t.prototype.getDsn=function(){return this.dsnObject},t.prototype.getStoreEndpoint=function(){return""+this.getBaseUrl()+this.getStoreEndpointPath()},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var t,e={sentry_key:this.dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(t=e,Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"))},t.prototype.getBaseUrl=function(){var t=this.dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n},t.prototype.getStoreEndpointPath=function(){var t=this.dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this.dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_timestamp="+(new Date).getTime()),r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this.dsnObject,n=this.getBaseUrl()+(e.path?"/"+e.path:"")+"/api/embed/error-page/",r=[];for(var o in r.push("dsn="+e.toString()),t)if("user"===o){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(t[o]));return r.length?n+"?"+r.join("&"):n},t}();var it=[];function st(t){var e={};return function(t){var e,n,r,o,i=t.defaultIntegrations&&l(t.defaultIntegrations)||[],s=t.integrations,a=[];if(Array.isArray(s)){var c=s.map(function(t){return t.name}),p=[];try{for(var f=u(i),h=f.next();!h.done;h=f.next()){var d=h.value;-1===c.indexOf(at(d))&&-1===p.indexOf(at(d))&&(a.push(d),p.push(at(d)))}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}try{for(var v=u(s),g=v.next();!g.done;g=v.next()){var y=g.value;-1===p.indexOf(at(y))&&(a.push(y),p.push(at(y)))}}catch(t){r={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}}else{if("function"!=typeof s)return l(i);a=s(i),a=Array.isArray(a)?a:[a]}return a}(t).forEach(function(n){e[at(n)]=n,function(t,e){if(-1===it.indexOf(at(t))){try{t.setupOnce()}catch(n){t.install&&(W.warn("Integration "+at(t)+': The install method is deprecated. Use "setupOnce".'),t.install(e))}it.push(at(t)),W.log("Integration installed: "+at(t))}}(n,t)}),e}function at(t){return t.constructor.id||t.name}var ut,ct=function(){function t(t){this.limit=t,this.buffer=[]}return t.prototype.isReady=function(){return void 0===this.limit||this.length()0&&n(!1)},t);Promise.all(e.buffer).then(function(){clearTimeout(r),n(!0)}).catch(function(){n(!0)})})]})})},t}(),lt=function(){function e(t,e){this.buffer=new ct,this.backend=new t(e),this.options=e,e.dsn&&(this.dsn=new rt(e.dsn)),this.integrations=st(this.options)}return e.prototype.install=function(){if(!this.isEnabled())return this.installed=!1;var t=this.getBackend();return!this.installed&&t.install&&t.install(),this.installed=!0},e.prototype.captureException=function(t,e,n){return s(this,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.buffer.add(s(r,void 0,void 0,function(){var r;return a(this,function(o){switch(o.label){case 0:return[4,this.getBackend().eventFromException(t,e)];case 1:return r=o.sent(),[2,this.captureEvent(r,e,n)]}})}))]})})},e.prototype.captureMessage=function(t,e,n,r){return s(this,void 0,void 0,function(){var o=this;return a(this,function(i){return[2,this.buffer.add(s(o,void 0,void 0,function(){var o,i;return a(this,function(s){switch(s.label){case 0:return null===(a=t)||"object"!=typeof a&&"function"!=typeof a?[4,this.getBackend().eventFromMessage(""+t,e,n)]:[3,2];case 1:return i=s.sent(),[3,4];case 2:return[4,this.getBackend().eventFromException(t,n)];case 3:i=s.sent(),s.label=4;case 4:return o=i,[2,this.captureEvent(o,n,r)]}var a})}))]})})},e.prototype.captureEvent=function(t,e,n){return s(this,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.buffer.add(s(r,void 0,void 0,function(){var r=this;return a(this,function(o){return[2,this.processEvent(t,function(t){return s(r,void 0,void 0,function(){return a(this,function(e){return[2,this.getBackend().sendEvent(t)]})})},e,n)]})}))]})})},e.prototype.addBreadcrumb=function(t,e,n){var r=this.getOptions(),o=r.beforeBreadcrumb,s=r.maxBreadcrumbs,a=void 0===s?30:s;if(!(a<=0)){var u=(new Date).getTime()/1e3,c=i({timestamp:u},t),l=o?w(function(){return o(c,e)}):c;null!==l&&this.getBackend().storeBreadcrumb(l)&&n&&n.addBreadcrumb(l,Math.min(a,100))}},e.prototype.getDsn=function(){return this.dsn},e.prototype.getOptions=function(){return this.options},e.prototype.getBackend=function(){return this.backend},e.prototype.isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this.dsn},e.prototype.prepareEvent=function(t,e,n){return s(this,void 0,void 0,function(){var r,o,s,u,c,l,p,f,h;return a(this,function(a){return r=this.getOptions(),o=r.environment,s=r.maxBreadcrumbs,u=void 0===s?30:s,c=r.release,l=r.dist,void 0===(p=i({},t)).environment&&void 0!==o&&(p.environment=o),void 0===p.release&&void 0!==c&&(p.release=c),void 0===p.dist&&void 0!==l&&(p.dist=l),p.message&&(p.message=k(p.message,250)),(f=p.exception&&p.exception.values&&p.exception.values[0])&&f.value&&(f.value=k(f.value,250)),(h=p.request)&&h.url&&(h.url=k(h.url,250)),void 0===p.event_id&&(p.event_id=E()),e?[2,e.applyToEvent(p,n,Math.min(u,100))]:[2,p]})})},e.prototype.processEvent=function(e,n,r,o){return s(this,void 0,void 0,function(){var i,s,u,c,l,p,f,h;return a(this,function(a){switch(a.label){case 0:return this.isEnabled()?(i=this.getOptions(),s=i.beforeSend,"number"==typeof(u=i.sampleRate)&&Math.random()>u?[2,{status:t.Status.Skipped}]:[4,this.prepareEvent(e,o,r)]):[2,{status:t.Status.Skipped}];case 1:if(null===(c=a.sent()))return[2,{status:t.Status.Skipped}];l=c,a.label=2;case 2:return a.trys.push([2,5,,6]),r&&r.data&&!0===r.data.__sentry__||!s?[3,4]:[4,s(c,r)];case 3:void 0===(l=a.sent())&&W.error("`beforeSend` method has to return `null` or a valid event"),a.label=4;case 4:return[3,6];case 5:return p=a.sent(),this.captureException(p,{data:{__sentry__:!0},originalException:p}).catch(function(t){console.error(t)}),[2,{reason:"Event processing in beforeSend method threw an exception",status:t.Status.Invalid}];case 6:if(null===l)return[2,{reason:"Event dropped due to being discarded by beforeSend method",status:t.Status.Skipped}];a.label=7;case 7:return a.trys.push([7,9,,10]),[4,n(l)];case 8:return(f=a.sent()).event=l,f.status,t.Status.RateLimit,[2,f];case 9:return h=a.sent(),W.error(""+h),[2,{reason:""+h,status:t.Status.Failed}];case 10:return[2]}})})},e.prototype.close=function(t){return s(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.getBackend().getTransport().close(t),this.buffer.drain(t)])];case 1:return[2,e.sent().reduce(function(t,e){return t&&e})]}})})},e.prototype.getIntegrations=function(){return this.integrations||{}},e.prototype.getIntegration=function(t){try{return this.integrations[t.id]||null}catch(e){return W.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},e}(),pt=function(){function e(){}return e.prototype.sendEvent=function(e){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:t.Status.Skipped})]})})},e.prototype.close=function(t){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,Promise.resolve(!0)]})})},e}(),ft=function(){function t(t){this.options=t,this.options.dsn||W.warn("No DSN provided, backend will not do anything."),this.transport=this.setupTransport()}return t.prototype.setupTransport=function(){return new pt},t.prototype.eventFromException=function(t,e){return s(this,void 0,void 0,function(){return a(this,function(t){throw new et("Backend has to implement `eventFromException` method")})})},t.prototype.eventFromMessage=function(t,e,n){return s(this,void 0,void 0,function(){return a(this,function(t){throw new et("Backend has to implement `eventFromMessage` method")})})},t.prototype.sendEvent=function(t){return s(this,void 0,void 0,function(){return a(this,function(e){return this.transport.captureEvent?[2,this.transport.captureEvent(t)]:[2,this.transport.sendEvent(T(t))]})})},t.prototype.storeBreadcrumb=function(t){return!0},t.prototype.storeScope=function(t){},t.prototype.getTransport=function(){return this.transport},t}();!function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(ut||(ut={}));var ht,dt=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){var e=this;$(function(n){return s(e,void 0,void 0,function(){var e;return a(this,function(r){if(e=X().getIntegration(t)){try{if(e.shouldDropEvent(n,e.previousEvent))return[2,null]}catch(t){return[2,e.previousEvent=n]}return[2,e.previousEvent=n]}return[2,n]})})})},t.prototype.shouldDropEvent=function(t,e){return!!e&&(this.isSameMessageEvent(t,e)?(W.warn("Event dropped due to being a duplicate of previous event (same message).\nEvent: "+S(t)),!0):!!this.isSameExceptionEvent(t,e)&&(W.warn("Event dropped due to being a duplicate of previous event (same exception).\nEvent: "+S(t)),!0))},t.prototype.isSameMessageEvent=function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this.isSameFingerprint(t,e)&&!!this.isSameStacktrace(t,e))))},t.prototype.getFramesFromEvent=function(t){var e=t.exception;if(!e)return t.stacktrace?t.stacktrace.frames:void 0;try{return e.values[0].stacktrace.frames}catch(t){return}},t.prototype.isSameStacktrace=function(t,e){var n=this.getFramesFromEvent(t),r=this.getFramesFromEvent(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var o=0;o ".length;n&&i++<5&&!("html"===(e=o(n))||i>1&&s+r.length*a+e.length>=80);)r.push(e),s+=e.length,n=n.parentNode;return r.reverse().join(" > ")},e.htmlElementAsString=o,e.parseUrl=function(t){if(!t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}},e.getEventDescription=function(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||""}return t.event_id||""},e.consoleSandbox=function(t){var e=r();if(!("console"in e))return t();var n=e.console,o={};["debug","info","warn","error","log"].forEach(function(t){t in e.console&&n[t].__sentry__&&(o[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var i=t();return Object.keys(o).forEach(function(t){n[t]=o[t]}),i}});Et(St);St.dynamicRequire,St.isNodeEnv,St.getGlobalObject,St.uuid4,St.htmlTreeAsString,St.htmlElementAsString,St.parseUrl,St.getEventDescription,St.consoleSandbox;var wt=xt(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=St.getGlobalObject(),r=new(function(){function t(){this.enabled=!1}return t.prototype.disable=function(){this.enabled=!1},t.prototype.enable=function(){this.enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e=-1&&!r;o--){var i=o>=0?t[o]:"/";i&&(n=i+"/"+n,r="/"===i.charAt(0))}return n=function(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(n.split("/").filter(function(t){return!!t}),!r).join("/"),(r?"/":"")+n||"."}function Rt(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function Ft(t,e){var n,r,o=(n=t,r=Tt.exec(n),r?r.slice(1):[])[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o}var Ct=function(){function t(e){void 0===e&&(e={});var n=this;this.name=t.id,this.iteratee=function(t){return s(n,void 0,void 0,function(){var e;return a(this,function(n){return t.filename&&t.filename.startsWith("/")&&(e=this.root?function(t,e){t=It(t).substr(1),e=It(e).substr(1);for(var n=Rt(t.split("/")),r=Rt(e.split("/")),o=Math.min(n.length,r.length),i=o,s=0;s>16)+(e>>16)+(n>>16)<<16|65535&n}function Pt(t,e,n,r,o,i){return Ut((s=Ut(Ut(e,t),Ut(r,i)))<<(a=o)|s>>>32-a,n);var s,a}function Lt(t,e,n,r,o,i,s){return Pt(e&n|~e&r,t,e,o,i,s)}function At(t,e,n,r,o,i,s){return Pt(e&r|n&~r,t,e,o,i,s)}function Bt(t,e,n,r,o,i,s){return Pt(e^n^r,t,e,o,i,s)}function Ht(t,e,n,r,o,i,s){return Pt(n^(e|~r),t,e,o,i,s)}function $t(t,e){var n,r,o,i,s;t[e>>5]|=128<>>9<<4)]=e;var a=1732584193,u=-271733879,c=-1732584194,l=271733878;for(n=0;n>5]>>>e%32&255);return n}function Wt(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e>5]|=(255&t.charCodeAt(e/8))<>>4&15)+"0123456789abcdef".charAt(15&e);return r}function Gt(t){return unescape(encodeURIComponent(t))}function Yt(t){return function(t){return qt($t(Wt(t),8*t.length))}(Gt(t))}function zt(t,e){return function(t,e){var n,r,o=Wt(t),i=[],s=[];for(i[15]=s[15]=void 0,o.length>16&&(o=$t(o,8*t.length)),n=0;n<16;n+=1)i[n]=909522486^o[n],s[n]=1549556828^o[n];return r=$t(i.concat(Wt(e)),512+8*e.length),qt($t(s.concat(r),640))}(Gt(t),Gt(e))}function Xt(t,e,n){return e?n?zt(e,t):Vt(zt(e,t)):n?Yt(t):Vt(Yt(t))}var Jt=b(),Kt={wrap:function(){return function(){}},report:!1,collectWindowErrors:!1,computeStackTrace:!1,remoteFetching:!1,linesOfContext:!1,extendToAsynchronousCallbacks:!1},Zt=[].slice,Qt="?",te=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function ee(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ne(){return"undefined"==typeof document||null==document.location?"":document.location.href}Kt.wrap=function(t){return function(){try{return t.apply(this,arguments)}catch(t){throw Kt.report(t),t}}},Kt.report=function(){var t,e,n,r,o=[],s=null,a=null;function u(t,e,n){var r=null;if(!e||Kt.collectWindowErrors){for(var i in o)if(ee(o,i))try{o[i](t,e,n)}catch(t){r=t}if(r)throw r}}function c(e,n,r,o,s){var c=null;if(s=f(s)?s.error:s,e=f(e)?e.message:e,a)Kt.computeStackTrace.augmentStackTraceWithInitialElement(a,n,r,e),h();else if(s&&p(s))(c=Kt.computeStackTrace(s)).mechanism="onerror",u(c,!0,s);else{var l,d={url:n,line:r,column:o},v=e;if("[object String]"==={}.toString.call(e)){var g=e.match(te);g&&(l=g[1],v=g[2])}d.func=Kt.computeStackTrace.guessFunctionName(d.url,d.line),d.context=Kt.computeStackTrace.gatherContext(d.url,d.line),u(c={name:l,message:v,mode:"onerror",mechanism:"onerror",stack:[i({},d,{url:d.url||ne()})]},!0,null)}return!!t&&t.apply(this,arguments)}function l(t){var e=t&&(t.detail?t.detail.reason:t.reason)||t,n=Kt.computeStackTrace(e);n.mechanism="onunhandledrejection",u(n,!0,e)}function h(){var t=a,e=s;a=null,s=null,u(t,!1,e)}function d(t){if(a){if(s===t)return;h()}var e=Kt.computeStackTrace(t);throw a=e,s=t,setTimeout(function(){s===t&&h()},e.incomplete?2e3:0),t}return d.subscribe=function(t){o.push(t)},d.unsubscribe=function(i){for(var s=o.length-1;s>=0;--s)o[s]===i&&o.splice(s,1);0===o.length&&(e&&(Jt.onerror=t,e=!1),r&&(Jt.onunhandledrejection=n,r=!1))},d.installGlobalHandler=function(){!0!==e&&(t=Jt.onerror,Jt.onerror=c,e=!0)},d.installGlobalUnhandledRejectionHandler=function(){!0!==r&&(n=Jt.onunhandledrejection,Jt.onunhandledrejection=l,r=!0)},d}(),Kt.computeStackTrace=function(){var t=!1,e={};function n(t){if("string"!=typeof t)return[];if(!ee(e,t)){var n="",r="";try{r=Jt.document.domain}catch(t){}var o=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(t);o&&o[2]===r&&(n=function(t){if(!Kt.remoteFetching)return"";try{var e=function(){try{return new Jt.XMLHttpRequest}catch(t){return new Jt.ActiveXObject("Microsoft.XMLHTTP")}}();return e.open("GET",t,!1),e.send(""),e.responseText}catch(t){return""}}(t)),e[t]=n?n.split("\n"):[]}return e[t]}function r(t,e){var r,o=/function ([^(]*)\(([^)]*)\)/,i=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,s="",a=n(t);if(!a.length)return Qt;for(var u=0;u<10;++u)if(!d(s=a[e-u]+s)){if(r=i.exec(s))return r[1];if(r=o.exec(s))return r[1]}return Qt}function o(t,e){var r=n(t);if(!r.length)return null;var o=[],i=Math.floor(Kt.linesOfContext/2),s=i+Kt.linesOfContext%2,a=Math.max(0,e-i-1),u=Math.min(r.length,e+s-1);e-=1;for(var c=a;c0?o:null}function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function s(t){return i(t).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function a(t,e){for(var r,o,i=0,s=e.length;ir&&(o=a.exec(s[r]))?o.index:null}function c(t){if(!d(Jt&&Jt.document)){for(var e,n,r,o,u=[ne()],c=Jt.document.getElementsByTagName("script"),l=""+t,p=0;p|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,c=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,p=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=t.stack.split("\n"),h=[],v=/^(.*) is undefined$/.exec(t.message),g=0,y=f.length;g eval")>-1&&(e=l.exec(n[3]))?n[3]=e[1]:0!==g||n[5]||d(t.columnNumber)||(h[0].column=t.columnNumber+1),i={url:n[3],func:n[1]||Qt,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func=r(i.url,i.line)),Kt.remoteFetching&&i.url&&"blob:"===i.url.substr(0,5)){var b=new XMLHttpRequest;if(b.open("GET",i.url,!1),b.send(""),200===b.status){var E=b.responseText||"",x=(E=E.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(x){var _=x[1];"~"===_.charAt(0)&&(_=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+_.slice(1)),i.url=_.slice(0,-4)}}}i.context=i.line?o(i.url,i.line):null,h.push(i)}return h.length?(h[0]&&h[0].line&&!h[0].column&&v&&(h[0].column=u(v[1],h[0].url,h[0].line)),{mode:"stack",name:t.name,message:t.message,stack:h}):null}function p(t,e,n,i){var s={url:e,line:n};if(s.url&&s.line){t.incomplete=!1,s.func||(s.func=r(s.url,s.line)),s.context||(s.context=o(s.url,s.line));var a=/ '([^']+)' /.exec(i);if(a&&(s.column=u(a[1],s.url,s.line)),t.stack.length>0&&t.stack[0].url===s.url){if(t.stack[0].line===s.line)return!1;if(!t.stack[0].line&&t.stack[0].func===s.func)return t.stack[0].line=s.line,t.stack[0].context=s.context,!1}return t.stack.unshift(s),t.partial=!0,!0}return t.incomplete=!0,!1}function f(t,e){for(var n,o,i,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,a=[],l={},d=!1,v=f.caller;v&&!d;v=v.caller)if(v!==h&&v!==Kt.report){if(o={url:null,func:Qt,args:[],line:null,column:null},v.name?o.func=v.name:(n=s.exec(v.toString()))&&(o.func=n[1]),void 0===o.func)try{o.func=n.input.substring(0,n.input.indexOf("{"))}catch(t){}if(i=c(v)){o.url=i.url,o.line=i.line,o.func===Qt&&(o.func=r(o.url,o.line));var g=/ '([^']+)' /.exec(t.message||t.description);g&&(o.column=u(g[1],i.url,i.line))}l[""+v]?d=!0:l[""+v]=!0,a.push(o)}e&&a.splice(0,e);var y={mode:"callers",name:t.name,message:t.message,stack:a};return p(y,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),y}function h(e,i){var u=null;i=null==i?0:+i;try{if(u=function(t){var e=t.stacktrace;if(e){for(var n,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,s=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,a=e.split("\n"),u=[],c=0;c=0&&(g.line=y+b.substring(0,E).split("\n").length)}}}else if(i=l.exec(e[v])){var x=ne().replace(/#.*$/,""),_=a(new RegExp(s(e[v+1])),[x]);g={url:x,func:"",args:[],line:_?_.line:i[1],column:null}}if(g){g.func||(g.func=r(g.url,g.line));var S=o(g.url,g.line),w=S?S[Math.floor(S.length/2)]:null;S&&w.replace(/^\s*/,"")===e[v+1].replace(/^\s*/,"")?g.context=S:g.context=[e[v+1]],p.push(g)}}return p.length?{mode:"multiline",name:t.name,message:e[0],stack:p}:null}(e))return u}catch(e){if(t)throw e}try{if(u=f(e,i+1))return u}catch(e){if(t)throw e}return{name:e.name,message:e.message,mode:"failed"}}return h.augmentStackTraceWithInitialElement=p,h.computeStackTraceFromStackProp=l,h.guessFunctionName=r,h.gatherContext=o,h.ofCaller=function(t){t=1+(null==t?0:+t);try{throw new Error}catch(e){return h(e,t+1)}},h.getSource=n,h}(),Kt.extendToAsynchronousCallbacks=function(){var t=function(t){var e=Jt[t];Jt[t]=function(){var t=Zt.call(arguments),n=t[0];return"function"==typeof n&&(t[0]=Kt.wrap(n)),e.apply?e.apply(this,t):e(t[0],t[1])}};t("setTimeout"),t("setInterval")},Kt.remoteFetching=!1,Kt.collectWindowErrors=!0,Kt.linesOfContext=11;var re=Kt.report.subscribe,oe=Kt.report.installGlobalHandler,ie=Kt.report.installGlobalUnhandledRejectionHandler,se=Kt.computeStackTrace,ae=50;function ue(t){var e={stacktrace:{frames:pe(t.stack)},type:t.name,value:t.message};return void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function ce(t,e){var n=Object.keys(t).sort(),r={extra:{__serialized__:function t(e,n,r){void 0===n&&(n=R),void 0===r&&(r=F);var o=M(e,n);return D(T(o))>r?t(e,n-1):o}(t)},fingerprint:[Xt(n.join(""))],message:"Non-Error exception captured with keys: "+function(t,e){if(void 0===e&&(e=C),!t.length)return"[object has no keys]";if(t[0].length>=e)return k(t[0],e);for(var n=t.length;n>0;n--){var r=t.slice(0,n).join(", ");if(!(r.length>e))return n===t.length?r:k(r,e)}return""}(n)};if(e){var o=pe(se(e).stack);r.stacktrace={frames:o}}return r}function le(t){return{exception:{values:[ue(t)]}}}function pe(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return(j(n,"captureMessage")||j(n,"captureException"))&&(e=e.slice(1)),j(r,"sentryWrapped")&&(e=e.slice(0,-1)),e.map(function(t){return{colno:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:t.line}}).slice(0,ae).reverse()}function fe(t,e){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e,t.exception.values[0].type=t.exception.values[0].type||"Error"}var he,de,ve=function(){function t(t){this.options=t,this.buffer=new ct(30),this.url=new ot(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){return s(this,void 0,void 0,function(){return a(this,function(t){throw new et("Transport Class has to implement `sendEvent` method")})})},t.prototype.close=function(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,this.buffer.drain(t)]})})},t}(),ge=b(),ye=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.sendEvent=function(e){return s(this,void 0,void 0,function(){var n;return a(this,function(r){return n={body:e,method:"POST",referrerPolicy:function(){if(!Nt())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(t){return!1}}()?"origin":""},[2,this.buffer.add(ge.fetch(this.url,n).then(function(e){return{status:t.Status.fromHttpCode(e.status)}}))]})})},r}(ve),me=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.sendEvent=function(e){return s(this,void 0,void 0,function(){var n=this;return a(this,function(r){return[2,this.buffer.add(new Promise(function(r,o){var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&(200===i.status&&r({status:t.Status.fromHttpCode(i.status)}),o(i))},i.open("POST",n.url),i.send(e)}))]})})},r}(ve),be=b(),Ee=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.sendEvent=function(e){return s(this,void 0,void 0,function(){var n;return a(this,function(r){return n=be.navigator.sendBeacon(this.url,e),[2,this.buffer.add(Promise.resolve({status:n?t.Status.Success:t.Status.Failed}))]})})},r}(ve),xe=Object.freeze({BaseTransport:ve,FetchTransport:ye,XHRTransport:me,BeaconTransport:Ee}),_e=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.install=function(){if(!this.options.dsn)throw new et("Invariant exception: install() must not be called when disabled");return Error.stackTraceLimit=50,!0},r.prototype.setupTransport=function(){if(!this.options.dsn)return e.prototype.setupTransport.call(this);var t=this.options.transportOptions?this.options.transportOptions:{dsn:this.options.dsn};return this.options.transport?new this.options.transport(t):Mt()?new Ee(t):Nt()?new ye(t):new me(t)},r.prototype.eventFromException=function(t,e){return s(this,void 0,void 0,function(){var n,r,o,s;return a(this,function(a){switch(a.label){case 0:return f(t)&&t.error?(t=(s=t).error,n=le(se(t)),[3,7]):[3,1];case 1:return h(t)||(u=t,"[object DOMException]"===Object.prototype.toString.call(u))?(r=(s=t).name||(h(s)?"DOMError":"DOMException"),o=s.message?r+": "+s.message:r,[4,this.eventFromMessage(o,void 0,e)]):[3,3];case 2:return fe(n=a.sent(),o),[3,7];case 3:return p(t)?(n=le(se(t)),[3,7]):[3,4];case 4:return y(t)&&e&&e.syntheticException?(fe(n=ce(s=t,e.syntheticException),"Custom Object"),[3,7]):[3,5];case 5:return s=t,[4,this.eventFromMessage(s,void 0,e)];case 6:fe(n=a.sent(),""+s),a.label=7;case 7:return[2,n=i({},n,{event_id:e&&e.event_id,exception:i({},n.exception,{mechanism:{handled:!0,type:"generic"}})})]}var u})})},r.prototype.eventFromMessage=function(e,n,r){return void 0===n&&(n=t.Severity.Info),s(this,void 0,void 0,function(){var t,o,i;return a(this,function(s){return t={event_id:r&&r.event_id,level:n,message:e},this.options.attachStacktrace&&r&&r.syntheticException&&(o=se(r.syntheticException),i=pe(o.stack),t.stacktrace={frames:i}),[2,t]})})},r}(ft),Se="sentry.javascript.browser",we=function(t){function e(e){return t.call(this,_e,e)||this}return n(e,t),e.prototype.prepareEvent=function(e,n,r){return s(this,void 0,void 0,function(){return a(this,function(o){return e.platform=e.platform||"javascript",e.sdk=i({},e.sdk,{name:Se,packages:l(e.sdk&&e.sdk.packages||[],[{name:"npm:@sentry/browser",version:"4.5.1"}]),version:"4.5.1"}),[2,t.prototype.prepareEvent.call(this,e,n,r)]})})},e.prototype.showReportDialog=function(t){void 0===t&&(t={});var e=b().document;if(e){var n=t.dsn||this.getDsn();if(!t.eventId)throw new et("Missing `eventId` option in showReportDialog call");if(!n)throw new et("Missing `Dsn` option in showReportDialog call");var r=e.createElement("script");r.async=!0,r.src=new ot(n).getReportDialogEndpoint(t),(e.head||e.body).appendChild(r)}},e}(lt),ke=1e3,Oe=0;function je(t,e,n){if(void 0===e&&(e={}),!v(t))return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var sentryWrapped=function(){var r=this;n&&v(n)&&n.apply(this,arguments);var o=Array.prototype.slice.call(arguments);try{var u=o.map(function(t){return je(t,e)});return t.handleEvent?t.handleEvent.apply(this,u):t.apply(this,u)}catch(t){throw Oe+=1,setTimeout(function(){Oe-=1}),tt(function(n){return s(r,void 0,void 0,function(){var r=this;return a(this,function(u){return n.addEventProcessor(function(t){return s(r,void 0,void 0,function(){var n;return a(this,function(r){return n=i({},t),e.mechanism&&(n.exception=n.exception||{},n.exception.mechanism=e.mechanism),n.extra=i({},n.extra,{arguments:M(o,2)}),[2,n]})})}),captureException(t),[2]})})}),t}};try{for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(sentryWrapped[r]=t[r])}catch(t){}return sentryWrapped.prototype=t.prototype,t.__sentry_wrapped__=sentryWrapped,sentryWrapped.__sentry__=!0,sentryWrapped.__sentry_original__=t,sentryWrapped}function Te(t){return function(e){if(he=void 0,de!==e){var n;de=e;try{n=function(t){for(var e,n=t,r=[],o=0,i=0,s=" > ".length;n&&o++<5&&!("html"===(e=x(n))||o>1&&i+r.length*s+e.length>=80);)r.push(e),i+=e.length,n=n.parentNode;return r.reverse().join(" > ")}(e.target)}catch(t){n=""}X().addBreadcrumb({category:"ui."+t,message:n},{event:e,name:t})}}}function Ie(){return function(t){var e;try{e=t.target}catch(t){return}var n=e&&e.tagName;n&&("INPUT"===n||"TEXTAREA"===n||e.isContentEditable)&&(he||Te("input")(t),clearTimeout(he),he=setTimeout(function(){he=void 0},ke))}}var Re=function(){function t(e){this.name=t.id,this.options=i({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){re(function(e,n,r){if(!(Oe>0)){var o=X().getIntegration(t);o&&X().captureEvent(o.eventFromGlobalHandler(e),{originalException:r,data:{stack:e}})}}),this.options.onerror&&(W.log("Global Handler attached: onerror"),oe()),this.options.onunhandledrejection&&(W.log("Global Handler attached: onunhandledrejection"),ie())},t.prototype.eventFromGlobalHandler=function(t){var e=le(t);return i({},e,{exception:i({},e.exception,{mechanism:{data:{mode:t.mode},handled:!1,type:t.mechanism}})})},t.id="GlobalHandlers",t}(),Fe=function(){function t(){this.ignoreOnError=0,this.name=t.id}return t.prototype.wrapTimeFunction=function(t){return function(){for(var e=[],n=0;n"}catch(t){return""}}var De,Ne=b(),Me=function(){function e(t){this.name=e.id,this.options=i({beacon:!0,console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.instrumentBeacon=function(){Mt()&&I(Ne.navigator,"sendBeacon",function(n){return function(){for(var r=[],o=0;o2?e[2]:void 0;return r&&s(De,String(r)),t.apply(this,e)}}},e.prototype.instrumentXHR=function(){if("XMLHttpRequest"in Ne){var t=XMLHttpRequest.prototype;I(t,"open",function(t){return function(){for(var e=[],n=0;n"},handled:!0,type:"instrument"}})})}(t,o)}),"onreadystatechange"in o&&v(o.onreadystatechange)?I(o,"onreadystatechange",function(t){return je(t,{mechanism:{data:{function:"onreadystatechange",handler:t&&t.name||""},handled:!0,type:"instrument"}},i)}):o.onreadystatechange=i,t.apply(this,n)}})}},e.addBreadcrumb=function(t,n){X().getIntegration(e)&&X().addBreadcrumb(t,n)},e.prototype.setupOnce=function(){this.options.console&&this.instrumentConsole(),this.options.dom&&this.instrumentDOM(),this.options.xhr&&this.instrumentXHR(),this.options.fetch&&this.instrumentFetch(),this.options.beacon&&this.instrumentBeacon(),this.options.history&&this.instrumentHistory()},e.id="Breadcrumbs",e}();function Ue(e){try{var n=(r=e,JSON.parse(r));Me.addBreadcrumb({category:"sentry",event_id:n.event_id,level:n.level||t.Severity.fromString("error"),message:S(n)},{event:n})}catch(t){W.error("Error while adding sentry type breadcrumb")}var r}var Pe,Le="cause",Ae=5,Be=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this.key=e.key||Le,this.limit=e.limit||Ae}return t.prototype.setupOnce=function(){var e=this;$(function(n,r){return s(e,void 0,void 0,function(){var e;return a(this,function(o){return(e=X().getIntegration(t))?[2,e.handler(n,r)]:[2,n]})})})},t.prototype.handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&e.originalException instanceof Error))return t;var n=this.walkErrorTree(e.originalException,this.key);return t.exception.values=l(n,t.exception.values),t},t.prototype.walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!(t[e]instanceof Error)||n.length+1>=this.limit)return n;var r=ue(se(t[e]));return this.walkErrorTree(t[e],e,l([r],n))},t.id="LinkedErrors",t}(),He=b(),$e=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){var e=this;$(function(n){return s(e,void 0,void 0,function(){var e;return a(this,function(r){return X().getIntegration(t)&&He.navigator&&He.location?((e=n.request||{}).url=e.url||He.location.href,e.headers=e.headers||{},e.headers["User-Agent"]=He.navigator.userAgent,[2,i({},n,{request:e})]):[2,n]})})})},t.id="UserAgent",t}(),qe=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this.Ember=e.Ember||b().Ember}return t.prototype.setupOnce=function(){var e=this;if(this.Ember){var n=this.Ember.onerror;this.Ember.onerror=function(r){if(X().getIntegration(t)&&tt(function(t){e.addIntegrationToSdkInfo(t),captureException(r)}),"function"==typeof n)n.call(e.Ember,r);else if(e.Ember.testing)throw r},this.Ember.RSVP.on("error",function(n){X().getIntegration(t)&&tt(function(t){n instanceof Error?(t.setExtra("context","Unhandled Promise error detected"),e.addIntegrationToSdkInfo(t),captureException(n)):(t.setExtra("reason",n),e.addIntegrationToSdkInfo(t),captureMessage("Unhandled Promise error detected"))})})}},t.prototype.addIntegrationToSdkInfo=function(t){var e=this;t.addEventProcessor(function(t){return s(e,void 0,void 0,function(){var e;return a(this,function(n){return t.sdk&&(e=t.sdk.integrations||[],t.sdk=i({},t.sdk,{integrations:l(e,["ember"])})),[2,t]})})})},t.id="Ember",t}(),We=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this.Vue=e.Vue||b().Vue}return t.prototype.formatComponentName=function(t){if(t.$root===t)return"root instance";var e=t._isVue?t.$options.name||t.$options._componentTag:t.name;return(e?"component <"+e+">":"anonymous component")+(t._isVue&&t.$options.__file?" at "+t.$options.__file:"")},t.prototype.setupOnce=function(){var e=this;if(this.Vue&&this.Vue.config){var n=this.Vue.config.errorHandler;this.Vue.config.errorHandler=function(r,o,u){var c={};y(o)&&(c.componentName=e.formatComponentName(o),c.propsData=o.$options.propsData),d(u)||(c.lifecycleHook=u),X().getIntegration(t)&&tt(function(t){Object.keys(c).forEach(function(e){t.setExtra(e,c[e])}),t.addEventProcessor(function(t){return s(e,void 0,void 0,function(){var e;return a(this,function(n){return t.sdk&&(e=t.sdk.integrations||[],t.sdk=i({},t.sdk,{integrations:l(e,["vue"])})),[2,t]})})}),captureException(r)}),"function"==typeof n&&n.call(e.Vue,r,o,u)}}},t.id="Vue",t}();!function(t){t.Crash="crash",t.Deprecation="deprecation",t.Intervention="intervention"}(Pe||(Pe={}));var Ve=function(){function t(e){void 0===e&&(e={types:[Pe.Crash,Pe.Deprecation,Pe.Intervention]}),this.options=e,this.name=t.id}return t.prototype.setupOnce=function(){"ReportingObserver"in b()&&new(b().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this.options.types}).observe()},t.prototype.handler=function(e){var n,r;if(X().getIntegration(t)){var o=function(t){tt(function(e){e.setExtra("url",t.url);var n="ReportingObserver ["+t.type+"]",r="No details available";if(t.body){var o,i={};for(var s in t.body)i[s]=t.body[s];if(e.setExtra("body",i),t.type===Pe.Crash)r=[(o=t.body).crashId||"",o.reason||""].join(" ").trim()||r;else r=(o=t.body).message||r}captureMessage(n+": "+r)})};try{for(var i=u(e),s=i.next();!s.done;s=i.next()){o(s.value)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}},t.id="ReportingObserver",t}(),Ge=Object.freeze({GlobalHandlers:Re,TryCatch:Fe,Breadcrumbs:Me,LinkedErrors:Be,UserAgent:$e,Ember:qe,Vue:We,ReportingObserver:Ve}),Ye=[new dt,new mt,new vt,new Ot,new Fe,new Me,new Re,new Be,new $e];var ze=i({},Dt,Ge);return t.Integrations=ze,t.Transports=xe,t.addGlobalEventProcessor=$,t.addBreadcrumb=function(t){Q("addBreadcrumb",t)},t.captureException=captureException,t.captureEvent=function(t){return Q("captureEvent",t)},t.captureMessage=captureMessage,t.configureScope=function(t){Q("configureScope",t)},t.withScope=tt,t.getHubFromCarrier=K,t.getCurrentHub=X,t.Hub=G,t.Scope=B,t.BrowserBackend=_e,t.BrowserClient=we,t.defaultIntegrations=Ye,t.forceLoad=function(){},t.init=function(t){void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Ye),function(t,e){if(!0===e.debug&&W.enable(),!X().getClient()){var n=new t(e);X().bindClient(n),n.install()}}(we,t)},t.lastEventId=function(){return X().lastEventId()},t.onLoad=function(t){t()},t.showReportDialog=function(t){void 0===t&&(t={}),t.eventId||(t.eventId=X().lastEventId()),X().getClient().showReportDialog(t)},t.SDK_NAME=Se,t.SDK_VERSION="4.5.1",t}({}); -//# sourceMappingURL=bundle.min.js.map +/*! @sentry/browser 5.0.5 (913eafc4) | https://github.com/getsentry/sentry-javascript */ +var Sentry=function(n){"use strict";var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,r)};function r(n,r){function i(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,i=arguments.length;r0&&e[e.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]0)&&!(i=o.next()).done;)u.push(i.value)}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function a(){for(var n=[],t=0;t=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(n.Status||(n.Status={}));var b={};function w(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:b}function g(){var n=w(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function E(n){var t,r,i,e,o,u=[];if(!n||!n.tagName)return"";if(u.push(n.tagName.toLowerCase()),n.id&&u.push("#"+n.id),(t=n.className)&&d(t))for(r=t.split(/\s+/),o=0;o"}return n.event_id||""}function S(n){var t=w();if(!("console"in t))return n();var r=t.console,i={};["debug","info","warn","error","log"].forEach(function(n){n in t.console&&r[n].__sentry__&&(i[n]=r[n].__sentry_wrapped__,r[n]=r[n].__sentry_original__)});var e=n();return Object.keys(i).forEach(function(n){r[n]=i[n]}),e}function _(n,t,r,i){void 0===i&&(i={handled:!0,type:"generic"}),n.exception=n.exception||{},n.exception.values=n.exception.values||[],n.exception.values[0]=n.exception.values[0]||{},n.exception.values[0].value=n.exception.values[0].value||t||"",n.exception.values[0].type=n.exception.values[0].type||r||"Error",n.exception.values[0].mechanism=n.exception.values[0].mechanism||i}var O,k=function(){function n(){this.t="function"==typeof WeakSet,this.i=this.t?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.t)return!!this.i.has(n)||(this.i.add(n),!1);for(var t=0;tr?D(n,t-1,r):i}function I(n,t){return"domain"===t&&"object"==typeof n&&n.o?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":m(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"")+"]":n;var r}function A(n,t,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new k),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=I(n);return p(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var e=I(t,n);if(p(e))return e;var o=h(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(i.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=A(c,o[c],r-1,i));return i.unmemoize(t),u}function C(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return A(n,r,t)}))}catch(n){return"**non-serializable**"}}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(O||(O={}));var M=function(){function n(n){var t=this;this.u=O.PENDING,this.s=[],this.h=function(n){t.v(n,O.RESOLVED)},this.l=function(n){t.v(n,O.REJECTED)},this.v=function(n,r){t.u===O.PENDING&&(y(n)?n.then(t.h,t.l):(t.p=n,t.u=r,t.m()))},this.m=function(){t.u!==O.PENDING&&(t.u===O.REJECTED?t.s.forEach(function(n){return n.onFail&&n.onFail(t.p)}):t.s.forEach(function(n){return n.onSuccess&&n.onSuccess(t.p)}),t.s=[])},this.g=function(n){t.s=t.s.concat(n),t.m()};try{n(this.h,this.l)}catch(n){this.l(n)}}return n.prototype.then=function(t,r){var i=this;return new n(function(n,e){i.g({onFail:function(t){if(r)try{return void n(r(t))}catch(n){return void e(n)}else e(t)},onSuccess:function(r){if(t)try{return void n(t(r))}catch(n){return void e(n)}else n(r)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.toString=function(){return"[object SyncPromise]"},n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,r){r(t)})},n}(),N=function(){function n(){this.j=!1,this.S=[],this._=[],this.O=[],this.k={},this.T={},this.R={}}return n.prototype.addScopeListener=function(n){this.S.push(n)},n.prototype.addEventProcessor=function(n){return this._.push(n),this},n.prototype.D=function(){var n=this;this.j||(this.j=!0,setTimeout(function(){n.S.forEach(function(t){t(n)}),n.j=!1}))},n.prototype.I=function(n,t,r,i){var e=this;return void 0===i&&(i=0),new M(function(o,c){var s=n[i];if(null===t||"function"!=typeof s)o(t);else{var f=s(u({},t),r);y(f)?f.then(function(t){return e.I(n,t,r,i+1).then(o)}).catch(c):e.I(n,f,r,i+1).then(o).catch(c)}})},n.prototype.setUser=function(n){return this.k=C(n),this.D(),this},n.prototype.setTags=function(n){return this.T=u({},this.T,C(n)),this.D(),this},n.prototype.setTag=function(n,t){var r;return this.T=u({},this.T,((r={})[n]=C(t),r)),this.D(),this},n.prototype.setExtras=function(n){return this.R=u({},this.R,C(n)),this.D(),this},n.prototype.setExtra=function(n,t){var r;return this.R=u({},this.R,((r={})[n]=C(t),r)),this.D(),this},n.prototype.setFingerprint=function(n){return this.A=C(n),this.D(),this},n.prototype.setLevel=function(n){return this.C=C(n),this.D(),this},n.clone=function(t){var r=new n;return Object.assign(r,t,{S:[]}),t&&(r.O=a(t.O),r.T=u({},t.T),r.R=u({},t.R),r.k=t.k,r.C=t.C,r.A=t.A,r._=a(t._)),r},n.prototype.clear=function(){return this.O=[],this.T={},this.R={},this.k={},this.C=void 0,this.A=void 0,this.D(),this},n.prototype.addBreadcrumb=function(n,t){return this.O=void 0!==t&&t>=0?a(this.O,[C(n)]).slice(-t):a(this.O,[C(n)]),this.D(),this},n.prototype.clearBreadcrumbs=function(){return this.O=[],this.D(),this},n.prototype.M=function(n){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],this.A&&(n.fingerprint=n.fingerprint.concat(this.A)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint},n.prototype.applyToEvent=function(n,t){return this.R&&Object.keys(this.R).length&&(n.extra=u({},this.R,n.extra)),this.T&&Object.keys(this.T).length&&(n.tags=u({},this.T,n.tags)),this.k&&Object.keys(this.k).length&&(n.user=u({},this.k,n.user)),this.C&&(n.level=this.C),this.M(n),(!n.breadcrumbs||0===n.breadcrumbs.length)&&this.O.length>0&&(n.breadcrumbs=this.O),this.I(a(F(),this._),n,t)},n}();function F(){var n=w();return n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.globalEventProcessors=n.__SENTRY__.globalEventProcessors||[],n.__SENTRY__.globalEventProcessors}function U(n){F().push(n)}var L=w(),P="Sentry Logger ",$=function(){function n(){this.N=!1}return n.prototype.disable=function(){this.N=!1},n.prototype.enable=function(){this.N=!0},n.prototype.log=function(){for(var n=[],t=0;t0?n[n.length-1].scope:void 0,r=N.clone(t);return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return void 0!==this.getStack().pop()},n.prototype.withScope=function(n){var t=this.pushScope();try{n(t)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this.U},n.prototype.getStackTop=function(){return this.U[this.U.length-1]},n.prototype.captureException=function(n,t){var r=this.P=g();return this.L("captureException",n,u({},t,{event_id:r})),r},n.prototype.captureMessage=function(n,t,r){var i=this.P=g();return this.L("captureMessage",n,t,u({},r,{event_id:i})),i},n.prototype.captureEvent=function(n,t){var r=this.P=g();return this.L("captureEvent",n,u({},t,{event_id:r})),r},n.prototype.lastEventId=function(){return this.P},n.prototype.addBreadcrumb=function(n,t){var r=this.getStackTop();if(r.scope&&r.client){var i=r.client.getOptions(),e=i.beforeBreadcrumb,o=i.maxBreadcrumbs,c=void 0===o?30:o;if(!(c<=0)){var s=(new Date).getTime()/1e3,f=u({timestamp:s},n),a=e?S(function(){return e(f,t)}):f;null!==a&&r.scope.addBreadcrumb(a,Math.min(c,100))}}},n.prototype.configureScope=function(n){var t=this.getStackTop();t.scope&&t.client&&n(t.scope)},n.prototype.run=function(n){var t=G(this);try{n(this)}finally{G(t)}},n.prototype.getIntegration=function(n){var t=this.getClient();if(!t)return null;try{return t.getIntegration(n)}catch(t){return q.warn("Cannot retrieve integration "+n.id+" from the current Hub"),null}},n}();function B(){var n=w();return n.__SENTRY__=n.__SENTRY__||{hub:void 0},n}function G(n){var t=B(),r=z(t);return V(t,n),r}function J(){var n,t,r=B();X(r)&&!z(r).isOlderThan(H)||V(r,new W);try{var i=(n=module,t="domain",n.require(t)).active;if(!i)return z(r);if(!X(i)||z(i).isOlderThan(H)){var e=z(r).getStackTop();V(i,new W(e.client,N.clone(e.scope)))}return z(i)}catch(n){return z(r)}}function X(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function z(n){return n&&n.__SENTRY__&&n.__SENTRY__.hub?n.__SENTRY__.hub:(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=new W,n.__SENTRY__.hub)}function V(n,t){return!!n&&(n.__SENTRY__=n.__SENTRY__||{},n.__SENTRY__.hub=t,!0)}function K(n){for(var t=[],r=1;r1&&(h=l.slice(0,-1).join("/"),v=l.pop()),Object.assign(this,{host:c,pass:u,path:h,projectId:v,port:a,protocol:i,user:e})},n.prototype.q=function(n){this.protocol=n.protocol,this.user=n.user,this.pass=n.pass||"",this.host=n.host,this.port=n.port||"",this.path=n.path||"",this.projectId=n.projectId},n.prototype.H=function(){var n=this;if(["protocol","user","host","projectId"].forEach(function(t){if(!n[t])throw new Q("Invalid Dsn")}),"http"!==this.protocol&&"https"!==this.protocol)throw new Q("Invalid Dsn");if(this.port&&Number.isNaN(parseInt(this.port,10)))throw new Q("Invalid Dsn")},n}(),tn=function(){function n(n){this.dsn=n,this.W=new nn(n)}return n.prototype.getDsn=function(){return this.W},n.prototype.getStoreEndpoint=function(){return""+this.B()+this.getStoreEndpointPath()},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var n,t={sentry_key:this.W.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(n=t,Object.keys(n).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(n[t])}).join("&"))},n.prototype.B=function(){var n=this.W,t=n.protocol?n.protocol+":":"",r=n.port?":"+n.port:"";return t+"//"+n.host+r},n.prototype.getStoreEndpointPath=function(){var n=this.W;return(n.path?"/"+n.path:"")+"/api/"+n.projectId+"/store/"},n.prototype.getRequestHeaders=function(n,t){var r=this.W,i=["Sentry sentry_version=7"];return i.push("sentry_timestamp="+(new Date).getTime()),i.push("sentry_client="+n+"/"+t),i.push("sentry_key="+r.user),r.pass&&i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},n.prototype.getReportDialogEndpoint=function(n){void 0===n&&(n={});var t=this.W,r=this.B()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",i=[];for(var e in i.push("dsn="+t.toString()),n)if("user"===e){if(!n.user)continue;n.user.name&&i.push("name="+encodeURIComponent(n.user.name)),n.user.email&&i.push("email="+encodeURIComponent(n.user.email))}else i.push(encodeURIComponent(e)+"="+encodeURIComponent(n[e]));return i.length?r+"?"+i.join("&"):r},n}();function rn(n,t){return void 0===t&&(t=0),0===t?n:n.length<=t?n:n.substr(0,t)+"..."}function en(n,t){if(!Array.isArray(n))return"";for(var r=[],i=0;i=t)return rn(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:rn(i,t)}return""}var un=[];function cn(n){var t={};return function(n){var t=n.defaultIntegrations&&a(n.defaultIntegrations)||[],r=n.integrations,i=[];if(Array.isArray(r)){var e=r.map(function(n){return n.name}),o=[];t.forEach(function(n){-1===e.indexOf(n.name)&&-1===o.indexOf(n.name)&&(i.push(n),o.push(n.name))}),r.forEach(function(n){-1===o.indexOf(n.name)&&(i.push(n),o.push(n.name))})}else{if("function"!=typeof r)return a(t);i=r(t),i=Array.isArray(i)?i:[i]}return i}(n).forEach(function(n){t[n.name]=n,function(n){-1===un.indexOf(n.name)&&(n.setupOnce(U,J),un.push(n.name),q.log("Integration installed: "+n.name))}(n)}),t}var sn,fn=function(){function n(n,t){this.G=!1,this.J=new n(t),this.X=t,t.dsn&&(this.V=new nn(t.dsn)),this.K=cn(this.X)}return n.prototype.captureException=function(n,t,r){var i=this,e=t&&t.event_id;return this.G=!0,this.Z().eventFromException(n,t).then(function(n){return i.Y(n,t,r)}).then(function(n){e=n&&n.event_id,i.G=!1}).catch(function(n){q.log(n),i.G=!1}),e},n.prototype.captureMessage=function(n,t,r,i){var e=this,o=r&&r.event_id;return this.G=!0,(p(n)?this.Z().eventFromMessage(""+n,t,r):this.Z().eventFromException(n,r)).then(function(n){return e.Y(n,r,i)}).then(function(n){o=n&&n.event_id,e.G=!1}).catch(function(n){q.log(n),e.G=!1}),o},n.prototype.captureEvent=function(n,t,r){var i=this,e=t&&t.event_id;return this.G=!0,this.Y(n,t,r).then(function(n){e=n&&n.event_id,i.G=!1}).catch(function(n){q.log(n),i.G=!1}),e},n.prototype.getDsn=function(){return this.V},n.prototype.getOptions=function(){return this.X},n.prototype.flush=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,Promise.all([this.Z().getTransport().close(n),this.nn()])];case 1:return[2,t.sent().reduce(function(n,t){return n&&t})]}})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,this.flush(n).finally(function(){t.getOptions().enabled=!1})]})})},n.prototype.getIntegrations=function(){return this.K||{}},n.prototype.getIntegration=function(n){try{return this.K[n.id]||null}catch(t){return q.warn("Cannot retrieve integration "+n.id+" from the current Client"),null}},n.prototype.nn=function(n){return void 0===n&&(n=0),c(this,void 0,void 0,function(){var t=this;return s(this,function(r){return[2,new Promise(function(r){t.G?n>=10?r(!1):setTimeout(function(){return c(t,void 0,void 0,function(){var t;return s(this,function(i){switch(i.label){case 0:return t=r,[4,this.nn(n+1)];case 1:return t.apply(void 0,[i.sent()]),[2]}})})},10):r(!0)})]})})},n.prototype.Z=function(){return this.J},n.prototype.tn=function(){return!1!==this.getOptions().enabled&&void 0!==this.V},n.prototype.rn=function(n,t,r){var i=this.getOptions(),e=i.environment,o=i.release,c=i.dist,s=i.maxValueLength,f=void 0===s?250:s,a=u({},n);void 0===a.environment&&void 0!==e&&(a.environment=e),void 0===a.release&&void 0!==o&&(a.release=o),void 0===a.dist&&void 0!==c&&(a.dist=c),a.message&&(a.message=rn(a.message,f));var h=a.exception&&a.exception.values&&a.exception.values[0];h&&h.value&&(h.value=rn(h.value,f));var v=a.request;v&&v.url&&(v.url=rn(v.url,f)),void 0===a.event_id&&(a.event_id=g()),this.in(a.sdk);var l=M.resolve(a);return t&&(l=t.applyToEvent(a,r)),l},n.prototype.in=function(n){var t=Object.keys(this.K);n&&t.length>0&&(n.integrations=t)},n.prototype.Y=function(n,t,r){var i=this,e=this.getOptions(),o=e.beforeSend,u=e.sampleRate;return this.tn()?"number"==typeof u&&Math.random()>u?M.reject("This event has been sampled, will not send event."):new M(function(e,u){i.rn(n,r,t).then(function(n){if(null!==n){var r=n;try{if(t&&t.data&&!0===t.data.__sentry__||!o)return i.Z().sendEvent(r),void e(r);var c=o(n,t);if(void 0===c)q.error("`beforeSend` method has to return `null` or a valid event.");else if(y(c))i.en(c,e,u);else{if(null===(r=c))return q.log("`beforeSend` returned `null`, will not send event."),void e(null);i.Z().sendEvent(r),e(r)}}catch(n){i.captureException(n,{data:{__sentry__:!0},originalException:n}),u("`beforeSend` throw an error, will not send event.")}}else u("An event processor returned null, will not send event.")})}):M.reject("SDK not enabled, will not send event.")},n.prototype.en=function(n,t,r){var i=this;n.then(function(n){null!==n?(i.Z().sendEvent(n),t(n)):r("`beforeSend` returned `null`, will not send event.")}).catch(function(n){r("beforeSend rejected with "+n)})},n}(),an=function(){function t(){}return t.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,Promise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:n.Status.Skipped})]})})},t.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){return[2,Promise.resolve(!0)]})})},t}(),hn=function(){function n(n){this.X=n,this.X.dsn||q.warn("No DSN provided, backend will not do anything."),this.on=this.un()}return n.prototype.un=function(){return new an},n.prototype.eventFromException=function(n,t){throw new Q("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(n,t,r){throw new Q("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(n){this.on.sendEvent(n).catch(function(n){q.error("Error while sending event: "+n)})},n.prototype.getTransport=function(){return this.on},n}();var vn=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){sn=Function.prototype.toString,Function.prototype.toString=function(){for(var n=[],t=0;t|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=n.stack.split("\n"),a=[],h=/^(.*) is undefined$/.exec(n.message),v=0,l=f.length;v eval")>-1&&(t=c.exec(r[3]))?r[3]=t[1]:0!==v||r[5]||void 0===n.columnNumber||(a[0].column=n.columnNumber+1),i={url:r[3],func:r[1]||gn,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!i.func&&i.line&&(i.func=gn),i.context=null,a.push(i)}return a.length?(a[0]&&a[0].line&&!a[0].column&&h&&(a[0].column=null),{mode:"stack",name:n.name,message:n.message,stack:a}):null}function t(n,t,r,i){var e={url:t,line:r};if(e.url&&e.line){if(n.incomplete=!1,e.func||(e.func=gn),e.context||(e.context=null),/ '([^']+)' /.exec(i)&&(e.column=null),n.stack.length>0&&n.stack[0].url===e.url){if(n.stack[0].line===e.line)return!1;if(!n.stack[0].line&&n.stack[0].func===e.func)return n.stack[0].line=e.line,n.stack[0].context=e.context,!1}return n.stack.unshift(e),n.partial=!0,!0}return n.incomplete=!0,!1}function r(n,e){for(var o,u,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],f={},a=!1,h=r.caller;h&&!a;h=h.caller)if(h!==i&&h!==wn.report){if(u={url:null,func:gn,args:[],line:null,column:null},h.name?u.func=h.name:(o=c.exec(h.toString()))&&(u.func=o[1]),void 0===u.func)try{u.func=o.input.substring(0,o.input.indexOf("{"))}catch(n){}f[""+h]?a=!0:f[""+h]=!0,s.push(u)}e&&s.splice(0,e);var v={mode:"callers",name:n.name,message:n.message,stack:s};return t(v,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),v}function i(t,i){var e=null;i=null==i?0:+i;try{if(e=function(n){var t=n.stacktrace;if(t){for(var r,i=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,e=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),u=[],c=0;c0&&r(!1)},n);Promise.all(t.yn).then(function(){clearTimeout(i),r(!0)}).catch(function(){r(!0)})})]})})},n}(),Nn=function(){function n(n){this.options=n,this.yn=new Mn(30),this.url=new tn(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(n){return c(this,void 0,void 0,function(){return s(this,function(n){throw new Q("Transport Class has to implement `sendEvent` method")})})},n.prototype.close=function(n){return c(this,void 0,void 0,function(){return s(this,function(t){return[2,this.yn.drain(n)]})})},n}(),Fn=w(),Un=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r;return s(this,function(i){return r={body:JSON.stringify(t),method:"POST",referrerPolicy:yn()?"origin":""},[2,this.yn.add(Fn.fetch(this.url,r).then(function(t){return{status:n.Status.fromHttpCode(t.status)}}))]})})},i}(Nn),Ln=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.sendEvent=function(t){return c(this,void 0,void 0,function(){var r=this;return s(this,function(i){return[2,this.yn.add(new Promise(function(i,e){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&i({status:n.Status.fromHttpCode(o.status)}),e(o))},o.open("POST",r.url),o.send(JSON.stringify(t))}))]})})},i}(Nn),Pn=Object.freeze({BaseTransport:Nn,FetchTransport:Un,XHRTransport:Ln}),$n=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.prototype.un=function(){if(!this.X.dsn)return t.prototype.un.call(this);var n=this.X.transportOptions?this.X.transportOptions:{dsn:this.X.dsn};return this.X.transport?new this.X.transport(n):mn()?new Un(n):new Ln(n)},i.prototype.eventFromException=function(t,r){var i,e,o=this;if(v(t)&&t.error)return t=t.error,i=Dn(kn(t)),M.resolve(this.bn(i,r));if(l(t)||(e=t,"[object DOMException]"===Object.prototype.toString.call(e))){var u=t,c=u.name||(l(u)?"DOMError":"DOMException"),s=u.message?c+": "+u.message:c;return this.eventFromMessage(s,n.Severity.Error,r).then(function(n){return _(n,s),M.resolve(o.bn(n,r))})}if(h(t))return i=Dn(kn(t)),M.resolve(this.bn(i,r));if(m(t)&&r&&r.syntheticException)return _(i=function(n,t){var r=Object.keys(n).sort(),i={extra:{__serialized__:D(n)},message:"Non-Error exception captured with keys: "+on(r)};if(t){var e=In(kn(t).stack);i.stacktrace={frames:e}}return i}(t,r.syntheticException),"Custom Object",void 0,{handled:!0,synthetic:!0,type:"generic"}),i.level=n.Severity.Error,M.resolve(this.bn(i,r));var f=t;return this.eventFromMessage(f,void 0,r).then(function(t){return _(t,""+f,void 0,{handled:!0,synthetic:!0,type:"generic"}),t.level=n.Severity.Error,M.resolve(o.bn(t,r))})},i.prototype.bn=function(n,t){return u({},n,{event_id:t&&t.event_id})},i.prototype.eventFromMessage=function(t,r,i){void 0===r&&(r=n.Severity.Info);var e={event_id:i&&i.event_id,level:r,message:t};if(this.X.attachStacktrace&&i&&i.syntheticException){var o=In(kn(i.syntheticException).stack);e.stacktrace={frames:o}}return M.resolve(e)},i}(hn),qn="sentry.javascript.browser",Hn=function(n){function t(t){return void 0===t&&(t={}),n.call(this,$n,t)||this}return r(t,n),t.prototype.rn=function(t,r,i){return t.platform=t.platform||"javascript",t.sdk=u({},t.sdk,{name:qn,packages:a(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.0.5"}]),version:"5.0.5"}),n.prototype.rn.call(this,t,r,i)},t.prototype.showReportDialog=function(n){void 0===n&&(n={});var t=w().document;if(t)if(this.tn()){var r=n.dsn||this.getDsn();if(n.eventId)if(r){var i=t.createElement("script");i.async=!0,i.src=new tn(r).getReportDialogEndpoint(n),(t.head||t.body).appendChild(i)}else q.error("Missing `Dsn` option in showReportDialog call");else q.error("Missing `eventId` option in showReportDialog call")}else q.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(fn),Wn=1e3,Bn=0;function Gn(n,t,r){if(void 0===t&&(t={}),"function"!=typeof n)return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch(t){return n}var sentryWrapped=function(){r&&"function"==typeof r&&r.apply(this,arguments);var i=Array.prototype.slice.call(arguments);try{var e=i.map(function(n){return Gn(n,t)});return n.handleEvent?n.handleEvent.apply(this,e):n.apply(this,e)}catch(n){throw Bn+=1,setTimeout(function(){Bn-=1}),Z(function(r){r.addEventProcessor(function(n){var r=u({},n);return t.mechanism&&_(r,void 0,void 0,t.mechanism),r.extra=u({},r.extra,{arguments:C(i,3)}),r}),captureException(n)}),n}};try{for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(sentryWrapped[i]=n[i])}catch(n){}n.prototype=n.prototype||{},sentryWrapped.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:sentryWrapped}),Object.defineProperties(sentryWrapped,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{Object.defineProperty(sentryWrapped,"name",{get:function(){return n.name}})}catch(n){}return sentryWrapped}function Jn(n){return function(t){if(An=void 0,Cn!==t){var r;Cn=t;try{r=function(n){for(var t,r=n,i=[],e=0,o=0,u=" > ".length;r&&e++<5&&!("html"===(t=E(r))||e>1&&o+i.length*u+t.length>=80);)i.push(t),o+=t.length,r=r.parentNode;return i.reverse().join(" > ")}(t.target)}catch(n){r=""}J().addBreadcrumb({category:"ui."+n,message:r},{event:t,name:n})}}}function Xn(){return function(n){var t;try{t=n.target}catch(n){return}var r=t&&t.tagName;r&&("INPUT"===r||"TEXTAREA"===r||t.isContentEditable)&&(An||Jn("input")(n),clearTimeout(An),An=setTimeout(function(){An=void 0},Wn))}}var zn=function(){function n(t){this.name=n.id,this.X=u({onerror:!0,onunhandledrejection:!0},t)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,Sn(function(t,r,i){if(!(Bn>0)){var e=J().getIntegration(n);e&&J().captureEvent(e.wn(t),{data:{stack:t},originalException:i})}}),this.X.onerror&&(q.log("Global Handler attached: onerror"),_n()),this.X.onunhandledrejection&&(q.log("Global Handler attached: onunhandledrejection"),On())},n.prototype.wn=function(n){var t=Dn(n),r={mode:n.mode};n.message&&(r.message=n.message),n.name&&(r.name=n.name);var i=J().getClient(),e=i&&i.getOptions().maxValueLength||250;return _(t,n.original?rn(JSON.stringify(C(n.original)),e):"","onunhandledrejection"===n.mechanism?"UnhandledRejection":"Error",{data:r,handled:!1,type:n.mechanism}),t},n.id="GlobalHandlers",n}(),Vn=function(){function n(){this.gn=0,this.name=n.id}return n.prototype.En=function(n){return function(){for(var t=[],r=0;r"}catch(n){return""}}var Zn,Qn=w(),Yn=function(){function t(n){this.name=t.id,this.X=u({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.Sn=function(){"console"in Qn&&["debug","info","warn","error","log"].forEach(function(r){r in Qn.console&&T(Qn.console,r,function(i){return function(){for(var e=[],o=0;o2?t[2]:void 0;return i&&u(Zn,String(i)),n.apply(this,t)}}},t.prototype.Tn=function(){if("XMLHttpRequest"in Qn){var n=XMLHttpRequest.prototype;T(n,"open",function(n){return function(){for(var t=[],r=0;r"},handled:!0,type:"instrument"}})})}(n,e)}),"onreadystatechange"in e&&"function"==typeof e.onreadystatechange?T(e,"onreadystatechange",function(n){return Gn(n,{mechanism:{data:{function:"onreadystatechange",handler:n&&n.name||""},handled:!0,type:"instrument"}},o)}):e.onreadystatechange=o,n.apply(this,r)}})}},t.addBreadcrumb=function(n,r){J().getIntegration(t)&&J().addBreadcrumb(n,r)},t.prototype.setupOnce=function(){this.X.console&&this.Sn(),this.X.dom&&this._n(),this.X.xhr&&this.Tn(),this.X.fetch&&this.On(),this.X.history&&this.kn()},t.id="Breadcrumbs",t}();function nt(t){try{var r=JSON.parse(t);Yn.addBreadcrumb({category:"sentry",event_id:r.event_id,level:r.level||n.Severity.fromString("error"),message:j(r)},{event:r})}catch(n){q.error("Error while adding sentry type breadcrumb")}}var tt="cause",rt=5,it=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.Rn=t.key||tt,this.mn=t.limit||rt}return n.prototype.setupOnce=function(){U(function(t,r){var i=J().getIntegration(n);return i?i.handler(t,r):t})},n.prototype.handler=function(n,t){if(!(n.exception&&n.exception.values&&t&&t.originalException instanceof Error))return n;var r=this.walkErrorTree(t.originalException,this.Rn);return n.exception.values=a(r,n.exception.values),n},n.prototype.walkErrorTree=function(n,t,r){if(void 0===r&&(r=[]),!(n[t]instanceof Error)||r.length+1>=this.mn)return r;var i=Rn(kn(n[t]));return this.walkErrorTree(n[t],t,a([i],r))},n.id="LinkedErrors",n}(),et=w(),ot=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){U(function(t){if(J().getIntegration(n)){if(!et.navigator||!et.location)return t;var r=t.request||{};return r.url=r.url||et.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=et.navigator.userAgent,u({},t,{request:r})}return t})},n.id="UserAgent",n}(),ut=Object.freeze({GlobalHandlers:zn,TryCatch:Vn,Breadcrumbs:Yn,LinkedErrors:it,UserAgent:ot}),ct=[new dn,new vn,new Vn,new Yn,new zn,new it,new ot];var st={},ft=w();ft.Sentry&&ft.Sentry.Integrations&&(st=ft.Sentry.Integrations);var at=u({},st,pn,ut);return n.Integrations=at,n.Transports=Pn,n.addGlobalEventProcessor=U,n.addBreadcrumb=function(n){K("addBreadcrumb",n)},n.captureException=captureException,n.captureEvent=function(n){return K("captureEvent",n)},n.captureMessage=function(n,t){var r;try{throw new Error(n)}catch(n){r=n}return K("captureMessage",n,t,{originalException:n,syntheticException:r})},n.configureScope=function(n){K("configureScope",n)},n.withScope=Z,n.getHubFromCarrier=z,n.getCurrentHub=J,n.Hub=W,n.Scope=N,n.BrowserClient=Hn,n.defaultIntegrations=ct,n.forceLoad=function(){},n.init=function(n){void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=ct),function(n,t){!0===t.debug&&q.enable(),J().bindClient(new n(t))}(Hn,n)},n.lastEventId=function(){return J().lastEventId()},n.onLoad=function(n){n()},n.showReportDialog=function(n){void 0===n&&(n={}),n.eventId||(n.eventId=J().lastEventId());var t=J().getClient();t&&t.showReportDialog(n)},n.flush=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=J().getClient())?[2,t.flush(n)]:[2,Promise.reject(!1)]})})},n.close=function(n){return c(this,void 0,void 0,function(){var t;return s(this,function(r){return(t=J().getClient())?[2,t.close(n)]:[2,Promise.reject(!1)]})})},n.SDK_NAME=qn,n.SDK_VERSION="5.0.5",n}({}); diff --git a/src/octoprint/plugins/errortracking/templates/errortracking_javascripts.jinja2 b/src/octoprint/plugins/errortracking/templates/errortracking_javascripts.jinja2 index e953144dc..d449fb7fd 100644 --- a/src/octoprint/plugins/errortracking/templates/errortracking_javascripts.jinja2 +++ b/src/octoprint/plugins/errortracking/templates/errortracking_javascripts.jinja2 @@ -7,7 +7,15 @@ Sentry.init({ dsn: errortracking_url_coreui, - release: VERSION + release: VERSION, + whitelistUrls: [ + // only include static assets + "/static/" + ], + blacklistUrls: [ + // exclude third party plugins + "/static/webassets/packed_plugins.js" + ] }); Sentry.configureScope(function (scope) { scope.setUser({"id": errortracking_unique_id}); diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py index 730eb9d42..8bdedc49a 100644 --- a/src/octoprint/plugins/pluginmanager/__init__.py +++ b/src/octoprint/plugins/pluginmanager/__init__.py @@ -688,7 +688,9 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, if additional_args: args.append(additional_args) - return self._pip_caller.execute(*args) + kwargs = dict(env=dict(PYTHONWARNINGS="ignore:DEPRECATION::pip._internal.cli.base_command")) + + return self._pip_caller.execute(*args, **kwargs) def _log_message(self, *lines): self._log(lines, prefix=u"*", stream="message") diff --git a/src/octoprint/plugins/softwareupdate/updaters/pip.py b/src/octoprint/plugins/softwareupdate/updaters/pip.py index ef4101681..4fd95ba17 100644 --- a/src/octoprint/plugins/softwareupdate/updaters/pip.py +++ b/src/octoprint/plugins/softwareupdate/updaters/pip.py @@ -87,7 +87,7 @@ def perform_update(target, check, target_version, log_cb=None, online=True, forc logger.debug(u"Target: %s, executing pip install %s" % (target, install_arg)) pip_args = ["--disable-pip-version-check", "install", install_arg, "--no-cache-dir"] - pip_kwargs = dict() + pip_kwargs = dict(env=dict(PYTHONWARNINGS="ignore:DEPRECATION::pip._internal.cli.base_command")) if pip_working_directory is not None: pip_kwargs.update(cwd=pip_working_directory)