2 lines
78 KiB
JavaScript
2 lines
78 KiB
JavaScript
|
(window.findifyJsonp=window.findifyJsonp||[]).push([[7],{"+Sqj":function(t,e,n){"use strict";n.r(e),n.d(e,"LinkedErrors",(function(){return l}));var r=n("XMIM"),o=n("/PaG"),i=n("5DM2"),c=n("s6PE"),s=n("pYdy"),u="cause",a=5,l=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||u,this._limit=e.limit||a}return t.prototype.setupOnce=function(){Object(o.addGlobalEventProcessor)((function(e,n){var r=Object(i.getCurrentHub)().getIntegration(t);return r?r._handler(e,n):e}))},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=r.__spread(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 o=Object(s._computeStackTrace)(t[e]),i=Object(c.exceptionFromStacktrace)(o);return this._walkErrorTree(t[e],e,r.__spread([i],n))},t.id="LinkedErrors",t}()},"/67D":function(t,e,n){"use strict";n.r(e),n.d(e,"truncate",(function(){return o})),n.d(e,"snipLine",(function(){return i})),n.d(e,"safeJoin",(function(){return c})),n.d(e,"keysToEventMessage",(function(){return s})),n.d(e,"isMatchingPattern",(function(){return u}));var r=n("kfBU");function o(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e?t:t.length<=e?t:t.substr(0,e)+"..."}function i(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var o=Math.max(e-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n}function c(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{n.push(String(o))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function s(t,e){if(void 0===e&&(e=40),!t.length)return"[object has no keys]";if(t[0].length>=e)return o(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:o(r,e)}return""}function u(t,e){return Object(r.isRegExp)(e)?e.test(t):"string"==typeof e&&t.includes(e)}},"/PaG":function(t,e,n){"use strict";n.r(e),n.d(e,"Scope",(function(){return a})),n.d(e,"addGlobalEventProcessor",(function(){return f}));var r=n("XMIM"),o=n("29qi"),i=n("kfBU"),c=n("k0Gh"),s=n("dXN1"),u=n("ymWa"),a=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}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})))},t.prototype._notifyEventProcessors=function(t,e,n,c){var s=this;return void 0===c&&(c=0),new o.SyncPromise((function(o,u){var a=t[c];if(null===e||"function"!=typeof a)o(e);else{var l=a(r.__assign({},e),n);Object(i.isThenable)(l)?l.then((function(e){return s._notifyEventProcessors(t,e,n,c+1).then(o)})).catch(u):s._notifyEventProcessors(t,l,n,c+1).then(o).catch(u)}}))},t.prototype.setUser=function(t){return this._user=Object(c.normalize)(t),this._notifyScopeListeners(),this},t.prototype.setTags=function(t){return this._tags=r.__assign({},this._tags,Object(c.normalize)(t)),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=r.__assign({},this._tags,((n={})[t]=Object(c.normalize)(e),n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=r.__assign({},this._extra,Object(c.normalize)(t)),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=r.__assign({},this._extra,((n={})[t]=Object(c.normalize)(e),n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=Object(c.normalize)(t),this._notifyScopeListeners(),this},t.prot
|
||
|
//# sourceMappingURL=sentry.js.map
|