@icanbwell/composite 1.508.2 → 1.508.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/138.index.js +3 -3
- package/218.index.js +31 -0
- package/index.js +6 -6
- package/native.js +1 -1
- package/package.json +3 -3
- package/430.index.js +0 -90
package/430.index.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[430],{6591:(H,J,T)=>{T.d(J,{$N:()=>et,$X:()=>L,Dl:()=>b,FA:()=>d,M6:()=>tt,VZ:()=>B,eJ:()=>ct,gO:()=>G,pq:()=>k});var V=T(1171),z={};function B(){return(0,V.wD)()?T.g:typeof window<"u"?window:typeof self<"u"?self:z}function ct(){var y=B(),_=y.crypto||y.msCrypto;if(_!==void 0&&_.getRandomValues){var m=new Uint16Array(8);_.getRandomValues(m),m[3]=m[3]&4095|16384,m[4]=m[4]&16383|32768;var S=function(F){for(var N=F.toString(16);N.length<4;)N="0"+N;return N};return S(m[0])+S(m[1])+S(m[2])+S(m[3])+S(m[4])+S(m[5])+S(m[6])+S(m[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(F){var N=Math.random()*16|0,R=F==="x"?N:N&3|8;return R.toString(16)})}function b(y){if(!y)return{};var _=y.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!_)return{};var m=_[6]||"",S=_[8]||"";return{host:_[4],path:_[5],protocol:_[2],relative:_[5]+m+S}}function L(y){if(y.message)return y.message;if(y.exception&&y.exception.values&&y.exception.values[0]){var _=y.exception.values[0];return _.type&&_.value?_.type+": "+_.value:_.type||_.value||y.event_id||"<unknown>"}return y.event_id||"<unknown>"}function k(y){var _=B(),m=["debug","info","warn","error","log","assert"];if(!("console"in _))return y();var S=_.console,F={};m.forEach(function(R){R in _.console&&S[R].__sentry_original__&&(F[R]=S[R],S[R]=S[R].__sentry_original__)});var N=y();return Object.keys(F).forEach(function(R){S[R]=F[R]}),N}function G(y,_,m){y.exception=y.exception||{},y.exception.values=y.exception.values||[],y.exception.values[0]=y.exception.values[0]||{},y.exception.values[0].value=y.exception.values[0].value||_||"",y.exception.values[0].type=y.exception.values[0].type||m||"Error"}function tt(y,_){_===void 0&&(_={});try{y.exception.values[0].mechanism=y.exception.values[0].mechanism||{},Object.keys(_).forEach(function(m){y.exception.values[0].mechanism[m]=_[m]})}catch{}}function et(){try{return document.location.href}catch{return""}}var ft=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function X(y){var _=y.match(ft)||[],m=parseInt(_[1],10),S=parseInt(_[2],10),F=parseInt(_[3],10);return{buildmetadata:_[5],major:isNaN(m)?void 0:m,minor:isNaN(S)?void 0:S,patch:isNaN(F)?void 0:F,prerelease:_[4]}}var j=60*1e3;function d(y,_){if(!_)return j;var m=parseInt(""+_,10);if(!isNaN(m))return m*1e3;var S=Date.parse(""+_);return isNaN(S)?j:S-y}function ir(y,_,m){m===void 0&&(m=5);var S=_.lineno||0,F=y.length,N=Math.max(Math.min(F,S-1),0);_.pre_context=y.slice(Math.max(0,N-m),N).map(function(R){return snipLine(R,0)}),_.context_line=snipLine(y[Math.min(F-1,N)],_.colno||0),_.post_context=y.slice(Math.min(N+1,F),N+1+m).map(function(R){return snipLine(R,0)})}function or(y){return y.split(/[\?#]/,1)[0]}},1171:(H,J,T)=>{T.d(J,{fj:()=>z,wD:()=>V}),H=T.hmd(H);function V(){return Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function z(b,L){return b.require(L)}var B=null;function ct(b,L){if(L===void 0&&(L=B),!V())throw new Error("Can't get node request data outside of a node environment");var k={},G=b.headers||b.header||{},tt=b.method,et=b.hostname||b.host||G.host||"<no host>",ft=b.protocol==="https"||b.secure||(b.socket||{}).encrypted?"https":"http",X=b.originalUrl||b.url||"",j=ft+"://"+et+X;return L.forEach(function(d){switch(d){case"headers":k.headers=G;break;case"method":k.method=tt;break;case"url":k.url=j;break;case"cookies":k.cookies=b.cookies||z(H,"cookie").parse(G.cookie||"");break;case"query_string":k.query_string=z(H,"url").parse(X||"",!1).query;break;case"data":if(tt==="GET"||tt==="HEAD")break;b.body!==void 0&&(k.data=isString(b.body)?b.body:JSON.stringify(normalize(b.body)));break;default:({}).hasOwnProperty.call(b,d)&&(k[d]=b[d])}}),k}},2234:(H,J,T)=>{T.d(J,{lu:()=>G});var V=T(6591),z=T(1171);H=T.hmd(H);var B={nowSeconds:function(){return Date.now()/1e3}};function ct(){var j=(0,V.VZ)().performance;if(!(!j||!j.now)){var d=Date.now()-j.now();return{now:function(){return j.now()},timeOrigin:d}}}function b(){try{var j=(0,z.fj)(H,"perf_hooks");return j.performance}catch{return}}var L=(0,z.wD)()?b():ct(),k=L===void 0?B:{nowSeconds:function(){return(L.timeOrigin+L.now())/1e3}},G=B.nowSeconds.bind(B),tt=k.nowSeconds.bind(k),et=null,ft=L!==void 0,X=function(){var j=(0,V.VZ)().performance;if(!!j)return j.timeOrigin?j.timeOrigin:j.timing&&j.timing.navigationStart||Date.now()}()},4430:(H,J,T)=>{T.r(J),T.d(J,{default:()=>Zn});var V=10,z=20,B=30,ct=40,b=50,L=60,k={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},G={};function tt(e){return typeof e=="string"?k[e.toLowerCase()]:e}Object.keys(k).forEach(function(e){G[k[e]]=e});var et={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},ft=function(){function e(t){var r=t===void 0?{}:t,n=r.logByLevel,o=r.css,i=o===void 0?et:o;this.logByLevel=n!==void 0&&n,this.css=i}return e.prototype.write=function(t){var r,n,o=this.css.def,i=this.css.msg,s=this.css.src,a=t.childName?t.name+"/"+t.childName:t.name,l=G[t.level],u=(Array(6-l.length).join(" ")+l).toUpperCase();this.logByLevel?(t.level===V?l="debug":t.level===L&&(l="error"),n=typeof console[l]=="function"?console[l]:console.log):n=console.log,r=t.level<z?this.css.levels.trace:t.level<B?this.css.levels.debug:t.level<ct?this.css.levels.info:t.level<b?this.css.levels.warn:t.level<L?this.css.levels.error:this.css.levels.fatal;var c=function(f,h){return Array(h+1-(f+"").length).join("0")+f},p=[];p.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(t.src?"%c%s":"")),p.push(c(t.time.getHours(),2)),p.push(c(t.time.getMinutes(),2)),p.push(c(t.time.getSeconds(),2)),p.push(c(t.time.getMilliseconds(),4)),p.push(r),p.push(u),p.push(o),p.push(a),p.push(i),p.push(t.msg),t.src&&(p.push(s),p.push(t.src)),t.obj&&(p.push(`
|
|
2
|
-
`),p.push(t.obj)),t.err&&t.err.stack&&(p.push(`
|
|
3
|
-
`),p.push(t.err.stack)),n.apply(console,p)},e.getDefaultCss=function(){return et},e}();/*! *****************************************************************************
|
|
4
|
-
Copyright (c) Microsoft Corporation.
|
|
5
|
-
|
|
6
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
-
purpose with or without fee is hereby granted.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
***************************************************************************** */var X=function(e,t){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},X(e,t)};function j(e,t){X(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var d=function(){return d=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},d.apply(this,arguments)};function ir(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function or(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function y(e,t){return function(r,n){t(r,n,e)}}function _(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function m(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function S(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function F(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function N(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function R(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sr(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function rt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(sr(arguments[t]));return e}function $n(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function jt(e){return this instanceof jt?(this.v=e,this):new jt(e)}function Kn(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,x){i.push([f,h,g,x])>1||a(f,h)})})}function a(f,h){try{l(n[f](h))}catch(g){p(i[0][3],g)}}function l(f){f.value instanceof jt?Promise.resolve(f.value.v).then(u,c):p(i[0][2],f)}function u(f){a("next",f)}function c(f){a("throw",f)}function p(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Qn(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:jt(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function ti(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof R=="function"?R(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}}function ei(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function ri(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function ni(e){return e&&e.__esModule?e:{default:e}}function ii(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function oi(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}var v=T(6591),qt=T(2234),nt=(0,v.VZ)(),Vt="Sentry Logger ",ar=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!this._enabled||(0,v.pq)(function(){nt.console.log(Vt+"[Log]: "+t.join(" "))})},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!this._enabled||(0,v.pq)(function(){nt.console.warn(Vt+"[Warn]: "+t.join(" "))})},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];!this._enabled||(0,v.pq)(function(){nt.console.error(Vt+"[Error]: "+t.join(" "))})},e}();nt.__SENTRY__=nt.__SENTRY__||{};var E=nt.__SENTRY__.logger||(nt.__SENTRY__.logger=new ar),ur=T(1171);function Se(e){switch(Object.prototype.toString.call(e)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return Z(e,Error)}}function Oe(e){return Object.prototype.toString.call(e)==="[object ErrorEvent]"}function xe(e){return Object.prototype.toString.call(e)==="[object DOMError]"}function lr(e){return Object.prototype.toString.call(e)==="[object DOMException]"}function pt(e){return Object.prototype.toString.call(e)==="[object String]"}function gt(e){return e===null||typeof e!="object"&&typeof e!="function"}function Rt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Wt(e){return typeof Event<"u"&&Z(e,Event)}function Te(e){return typeof Element<"u"&&Z(e,Element)}function cr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Yt(e){return Boolean(e&&e.then&&typeof e.then=="function")}function fr(e){return Rt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Z(e,t){try{return e instanceof t}catch{return!1}}var W;(function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"})(W||(W={}));var C=function(){function e(t){var r=this;this._state=W.PENDING,this._handlers=[],this._resolve=function(n){r._setResult(W.RESOLVED,n)},this._reject=function(n){r._setResult(W.REJECTED,n)},this._setResult=function(n,o){if(r._state===W.PENDING){if(Yt(o)){o.then(r._resolve,r._reject);return}r._state=n,r._value=o,r._executeHandlers()}},this._attachHandler=function(n){r._handlers=r._handlers.concat(n),r._executeHandlers()},this._executeHandlers=function(){if(r._state!==W.PENDING){var n=r._handlers.slice();r._handlers=[],n.forEach(function(o){o.done||(r._state===W.RESOLVED&&o.onfulfilled&&o.onfulfilled(r._value),r._state===W.REJECTED&&o.onrejected&&o.onrejected(r._value),o.done=!0)})}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return e.resolve=function(t){return new e(function(r){r(t)})},e.reject=function(t){return new e(function(r,n){n(t)})},e.all=function(t){return new e(function(r,n){if(!Array.isArray(t)){n(new TypeError("Promise.all requires an array as input."));return}if(t.length===0){r([]);return}var o=t.length,i=[];t.forEach(function(s,a){e.resolve(s).then(function(l){i[a]=l,o-=1,o===0&&r(i)}).then(null,n)})})},e.prototype.then=function(t,r){var n=this;return new e(function(o,i){n._attachHandler({done:!1,onfulfilled:function(s){if(!t){o(s);return}try{o(t(s));return}catch(a){i(a);return}},onrejected:function(s){if(!r){i(s);return}try{o(r(s));return}catch(a){i(a);return}}})})},e.prototype.catch=function(t){return this.then(function(r){return r},t)},e.prototype.finally=function(t){var r=this;return new e(function(n,o){var i,s;return r.then(function(a){s=!1,i=a,t&&t()},function(a){s=!0,i=a,t&&t()}).then(function(){if(s){o(i);return}n(i)})})},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),It=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var r=new e;return t&&(r._breadcrumbs=rt(t._breadcrumbs),r._tags=d({},t._tags),r._extra=d({},t._extra),r._contexts=d({},t._contexts),r._user=t._user,r._level=t._level,r._span=t._span,r._session=t._session,r._transactionName=t._transactionName,r._fingerprint=t._fingerprint,r._eventProcessors=rt(t._eventProcessors)),r},e.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},e.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},e.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(t){return this._tags=d(d({},this._tags),t),this._notifyScopeListeners(),this},e.prototype.setTag=function(t,r){var n;return this._tags=d(d({},this._tags),(n={},n[t]=r,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(t){return this._extra=d(d({},this._extra),t),this._notifyScopeListeners(),this},e.prototype.setExtra=function(t,r){var n;return this._extra=d(d({},this._extra),(n={},n[t]=r,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},e.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(t){return this.setTransactionName(t)},e.prototype.setContext=function(t,r){var n;return r===null?delete this._contexts[t]:this._contexts=d(d({},this._contexts),(n={},n[t]=r,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var t,r,n,o,i=this.getSpan();if(!((t=i)===null||t===void 0)&&t.transaction)return(r=i)===null||r===void 0?void 0:r.transaction;if(!((o=(n=i)===null||n===void 0?void 0:n.spanRecorder)===null||o===void 0)&&o.spans[0])return i.spanRecorder.spans[0]},e.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if(typeof t=="function"){var r=t(this);return r instanceof e?r:this}return t instanceof e?(this._tags=d(d({},this._tags),t._tags),this._extra=d(d({},this._extra),t._extra),this._contexts=d(d({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Rt(t)&&(t=t,this._tags=d(d({},this._tags),t.tags),this._extra=d(d({},this._extra),t.extra),this._contexts=d(d({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(t,r){var n=d({timestamp:(0,qt.lu)()},t);return this._breadcrumbs=r!==void 0&&r>=0?rt(this._breadcrumbs,[n]).slice(-r):rt(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(t,r){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=d(d({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=d(d({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=d(d({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=d(d({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=d({trace:this._span.getTraceContext()},t.contexts);var o=(n=this._span.transaction)===null||n===void 0?void 0:n.name;o&&(t.tags=d({transaction:o},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=rt(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(rt(je(),this._eventProcessors),t,r)},e.prototype._notifyEventProcessors=function(t,r,n,o){var i=this;return o===void 0&&(o=0),new C(function(s,a){var l=t[o];if(r===null||typeof l!="function")s(r);else{var u=l(d({},r),n);Yt(u)?u.then(function(c){return i._notifyEventProcessors(t,c,n,o+1).then(s)}).then(null,a):i._notifyEventProcessors(t,u,n,o+1).then(s).then(null,a)}})},e.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(r){r(t)}),this._notifyingListeners=!1)},e.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.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},e}();function je(){var e=(0,v.VZ)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function kt(e){je().push(e)}var ht;(function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"})(ht||(ht={}));/*! *****************************************************************************
|
|
17
|
-
Copyright (c) Microsoft Corporation.
|
|
18
|
-
|
|
19
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
20
|
-
purpose with or without fee is hereby granted.
|
|
21
|
-
|
|
22
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
23
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
24
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
25
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
26
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
27
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
28
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
29
|
-
***************************************************************************** */var Jt=function(e,t){return Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},Jt(e,t)};function pr(e,t){Jt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var it=function(){return it=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},it.apply(this,arguments)};function si(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ai(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function ui(e,t){return function(r,n){t(r,n,e)}}function li(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ci(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function fi(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function pi(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function hi(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Pt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Re(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function di(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Re(arguments[t]));return e}function _i(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function At(e){return this instanceof At?(this.v=e,this):new At(e)}function vi(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,x){i.push([f,h,g,x])>1||a(f,h)})})}function a(f,h){try{l(n[f](h))}catch(g){p(i[0][3],g)}}function l(f){f.value instanceof At?Promise.resolve(f.value.v).then(u,c):p(i[0][2],f)}function u(f){a("next",f)}function c(f){a("throw",f)}function p(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function yi(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:At(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function mi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Pt=="function"?Pt(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}}function gi(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function bi(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function wi(e){return e&&e.__esModule?e:{default:e}}function Ei(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function Si(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}function Nt(e){try{for(var t=e,r=5,n=80,o=[],i=0,s=0,a=" > ",l=a.length,u=void 0;t&&i++<r&&(u=hr(t),!(u==="html"||i>1&&s+o.length*l+u.length>=n));)o.push(u),s+=u.length,t=t.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function hr(e){var t=e,r=[],n,o,i,s,a;if(!t||!t.tagName)return"";if(r.push(t.tagName.toLowerCase()),t.id&&r.push("#"+t.id),n=t.className,n&&pt(n))for(o=n.split(/\s+/),a=0;a<o.length;a++)r.push("."+o[a]);var l=["type","name","title","alt"];for(a=0;a<l.length;a++)i=l[a],s=t.getAttribute(i),s&&r.push("["+i+'="'+s+'"]');return r.join("")}var dr=function(){function e(){this._hasWeakSet=typeof WeakSet=="function",this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(t){if(this._hasWeakSet)return this._inner.has(t)?!0:(this._inner.add(t),!1);for(var r=0;r<this._inner.length;r++){var n=this._inner[r];if(n===t)return!0}return this._inner.push(t),!1},e.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var r=0;r<this._inner.length;r++)if(this._inner[r]===t){this._inner.splice(r,1);break}},e}(),Xt="<anonymous>";function $(e){try{return!e||typeof e!="function"?Xt:e.name||Xt}catch{return Xt}}function bt(e,t){return t===void 0&&(t=0),typeof e!="string"||t===0||e.length<=t?e:e.substr(0,t)+"..."}function Oi(e,t){var r=e,n=r.length;if(n<=150)return r;t>n&&(t=n);var o=Math.max(t-60,0);o<5&&(o=0);var i=Math.min(o+140,n);return i>n-5&&(i=n),i===n&&(o=Math.max(i-140,0)),r=r.slice(o,i),o>0&&(r="'{snip} "+r),i<n&&(r+=" {snip}"),r}function Ie(e,t){if(!Array.isArray(e))return"";for(var r=[],n=0;n<e.length;n++){var o=e[n];try{r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function Zt(e,t){return pt(e)?cr(t)?t.test(e):typeof t=="string"?e.indexOf(t)!==-1:!1:!1}function I(e,t,r){if(t in e){var n=e[t],o=r(n);if(typeof o=="function")try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:n}})}catch{}e[t]=o}}function _r(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}function ke(e){if(Se(e)){var t=e,r={message:t.message,name:t.name,stack:t.stack};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}if(Wt(e)){var o=e,i={};i.type=o.type;try{i.target=Te(o.target)?Nt(o.target):Object.prototype.toString.call(o.target)}catch{i.target="<unknown>"}try{i.currentTarget=Te(o.currentTarget)?Nt(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch{i.currentTarget="<unknown>"}typeof CustomEvent<"u"&&Z(e,CustomEvent)&&(i.detail=o.detail);for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i[n]=o);return i}return e}function vr(e){return~-encodeURI(e).split(/%..|./).length}function yr(e){return vr(JSON.stringify(e))}function Pe(e,t,r){t===void 0&&(t=3),r===void 0&&(r=100*1024);var n=wt(e,t);return yr(n)>r?Pe(e,t-1,r):n}function mr(e){var t=Object.prototype.toString.call(e);if(typeof e=="string")return e;if(t==="[object Object]")return"[Object]";if(t==="[object Array]")return"[Array]";var r=Ae(e);return gt(r)?r:t}function Ae(e,t){return t==="domain"&&e&&typeof e=="object"&&e._events?"[Domain]":t==="domainEmitter"?"[DomainEmitter]":typeof T.g<"u"&&e===T.g?"[Global]":typeof window<"u"&&e===window?"[Window]":typeof document<"u"&&e===document?"[Document]":fr(e)?"[SyntheticEvent]":typeof e=="number"&&e!==e?"[NaN]":e===void 0?"[undefined]":typeof e=="function"?"[Function: "+$(e)+"]":typeof e=="symbol"?"["+String(e)+"]":typeof e=="bigint"?"[BigInt: "+String(e)+"]":e}function Ne(e,t,r,n){if(r===void 0&&(r=1/0),n===void 0&&(n=new dr),r===0)return mr(t);if(t!=null&&typeof t.toJSON=="function")return t.toJSON();var o=Ae(t,e);if(gt(o))return o;var i=ke(t),s=Array.isArray(t)?[]:{};if(n.memoize(t))return"[Circular ~]";for(var a in i)!Object.prototype.hasOwnProperty.call(i,a)||(s[a]=Ne(a,i[a],r-1,n));return n.unmemoize(t),s}function wt(e,t){try{return JSON.parse(JSON.stringify(e,function(r,n){return Ne(r,n,t)}))}catch{return"**non-serializable**"}}function gr(e,t){t===void 0&&(t=40);var r=Object.keys(ke(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return bt(r[0],t);for(var n=r.length;n>0;n--){var o=r.slice(0,n).join(", ");if(!(o.length>t))return n===r.length?o:bt(o,t)}return""}function Dt(e){var t,r;if(Rt(e)){var n=e,o={};try{for(var i=Pt(Object.keys(n)),s=i.next();!s.done;s=i.next()){var a=s.value;typeof n[a]<"u"&&(o[a]=Dt(n[a]))}}catch(l){t={error:l}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(Dt):e}var br=function(){function e(t){this.errors=0,this.sid=(0,v.eJ)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=ht.Ok,t&&this.update(t)}return e.prototype.update=function(t){t===void 0&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=t.sid.length===32?t.sid:(0,v.eJ)()),t.did&&(this.did=""+t.did),typeof t.started=="number"&&(this.started=t.started),typeof t.duration=="number"?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),typeof t.errors=="number"&&(this.errors=t.errors),t.status&&(this.status=t.status)},e.prototype.close=function(t){t?this.update({status:t}):this.status===ht.Ok?this.update({status:ht.Exited}):this.update()},e.prototype.toJSON=function(){return Dt({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:typeof this.did=="number"||typeof this.did=="string"?""+this.did:void 0,duration:this.duration,attrs:Dt({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),$t=3,wr=100,Er=100,Kt=function(){function e(t,r,n){r===void 0&&(r=new It),n===void 0&&(n=$t),this._version=n,this._stack=[{}],this.getStackTop().scope=r,this.bindClient(t)}return e.prototype.isOlderThan=function(t){return this._version<t},e.prototype.bindClient=function(t){var r=this.getStackTop();r.client=t,t&&t.setupIntegrations&&t.setupIntegrations()},e.prototype.pushScope=function(){var t=It.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},e.prototype.popScope=function(){return this.getStack().length<=1?!1:!!this.getStack().pop()},e.prototype.withScope=function(t){var r=this.pushScope();try{t(r)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(t,r){var n=this._lastEventId=(0,v.eJ)(),o=r;if(!r){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(s){i=s}o={originalException:t,syntheticException:i}}return this._invokeClient("captureException",t,d(d({},o),{event_id:n})),n},e.prototype.captureMessage=function(t,r,n){var o=this._lastEventId=(0,v.eJ)(),i=n;if(!n){var s=void 0;try{throw new Error(t)}catch(a){s=a}i={originalException:t,syntheticException:s}}return this._invokeClient("captureMessage",t,r,d(d({},i),{event_id:o})),o},e.prototype.captureEvent=function(t,r){var n=this._lastEventId=(0,v.eJ)();return this._invokeClient("captureEvent",t,d(d({},r),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(t,r){var n=this.getStackTop(),o=n.scope,i=n.client;if(!(!o||!i)){var s=i.getOptions&&i.getOptions()||{},a=s.beforeBreadcrumb,l=a===void 0?null:a,u=s.maxBreadcrumbs,c=u===void 0?wr:u;if(!(c<=0)){var p=(0,qt.lu)(),f=d({timestamp:p},t),h=l?(0,v.pq)(function(){return l(f,r)}):f;h!==null&&o.addBreadcrumb(h,Math.min(c,Er))}}},e.prototype.setUser=function(t){var r=this.getScope();r&&r.setUser(t)},e.prototype.setTags=function(t){var r=this.getScope();r&&r.setTags(t)},e.prototype.setExtras=function(t){var r=this.getScope();r&&r.setExtras(t)},e.prototype.setTag=function(t,r){var n=this.getScope();n&&n.setTag(t,r)},e.prototype.setExtra=function(t,r){var n=this.getScope();n&&n.setExtra(t,r)},e.prototype.setContext=function(t,r){var n=this.getScope();n&&n.setContext(t,r)},e.prototype.configureScope=function(t){var r=this.getStackTop(),n=r.scope,o=r.client;n&&o&&t(n)},e.prototype.run=function(t){var r=De(this);try{t(this)}finally{De(r)}},e.prototype.getIntegration=function(t){var r=this.getClient();if(!r)return null;try{return r.getIntegration(t)}catch{return E.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},e.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},e.prototype.startTransaction=function(t,r){return this._callExtensionMethod("startTransaction",t,r)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.startSession=function(t){this.endSession();var r=this.getStackTop(),n=r.scope,o=r.client,i=o&&o.getOptions()||{},s=i.release,a=i.environment,l=new br(d(d({release:s,environment:a},n&&{user:n.getUser()}),t));return n&&n.setSession(l),l},e.prototype.endSession=function(){var t=this.getStackTop(),r=t.scope,n=t.client;if(!!r){var o=r.getSession&&r.getSession();o&&(o.close(),n&&n.captureSession&&n.captureSession(o),r.setSession())}},e.prototype._invokeClient=function(t){for(var r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=this.getStackTop(),s=i.scope,a=i.client;a&&a[t]&&(r=a)[t].apply(r,rt(n,[s]))},e.prototype._callExtensionMethod=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=Lt(),i=o.__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,r);E.warn("Extension method "+t+" couldn't be found, doing nothing.")},e}();function Lt(){var e=(0,v.VZ)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function De(e){var t=Lt(),r=K(t);return Qt(t,e),r}function P(){var e=Lt();return(!Le(e)||K(e).isOlderThan($t))&&Qt(e,new Kt),(0,ur.wD)()?Or(e):K(e)}function Sr(){var e=Lt().__SENTRY__;return e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active}function Or(e){try{var t=Sr();if(!t)return K(e);if(!Le(t)||K(t).isOlderThan($t)){var r=K(e).getStackTop();Qt(t,new Kt(r.client,It.clone(r.scope)))}return K(t)}catch{return K(e)}}function Le(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function K(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new Kt),e.__SENTRY__.hub}function Qt(e,t){return e?(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0):!1}/*! *****************************************************************************
|
|
30
|
-
Copyright (c) Microsoft Corporation.
|
|
31
|
-
|
|
32
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
33
|
-
purpose with or without fee is hereby granted.
|
|
34
|
-
|
|
35
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
36
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
38
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
39
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
40
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
41
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
42
|
-
***************************************************************************** */var te=function(e,t){return te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},te(e,t)};function xi(e,t){te(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var M=function(){return M=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},M.apply(this,arguments)};function xr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Ti(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function ji(e,t){return function(r,n){t(r,n,e)}}function Ri(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Ii(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function ki(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Pi(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function Ai(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function ee(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tr(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function dt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Tr(arguments[t]));return e}function Ni(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function Ft(e){return this instanceof Ft?(this.v=e,this):new Ft(e)}function Di(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,x){i.push([f,h,g,x])>1||a(f,h)})})}function a(f,h){try{l(n[f](h))}catch(g){p(i[0][3],g)}}function l(f){f.value instanceof Ft?Promise.resolve(f.value.v).then(u,c):p(i[0][2],f)}function u(f){a("next",f)}function c(f){a("throw",f)}function p(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Li(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:Ft(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function Fi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof ee=="function"?ee(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}}function Ci(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Ui(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Mi(e){return e&&e.__esModule?e:{default:e}}function Bi(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function Hi(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}var jr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Rr=function(){function e(t){t===void 0&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){kt(function(t){var r=P();if(!r)return t;var n=r.getIntegration(e);if(n){var o=r.getClient(),i=o?o.getOptions():{},s=n._mergeOptions(i);if(n._shouldDropEvent(t,s))return null}return t})},e.prototype._shouldDropEvent=function(t,r){return this._isSentryError(t,r)?(E.warn(`Event dropped due to being internal Sentry Error.
|
|
43
|
-
Event: `+(0,v.$X)(t)),!0):this._isIgnoredError(t,r)?(E.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,v.$X)(t)),!0):this._isDeniedUrl(t,r)?(E.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,v.$X)(t)+`.
|
|
44
|
-
Url: `+this._getEventFilterUrl(t)),!0):this._isAllowedUrl(t,r)?!1:(E.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,v.$X)(t)+`.
|
|
45
|
-
Url: `+this._getEventFilterUrl(t)),!0)},e.prototype._isSentryError=function(t,r){if(!r.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].type==="SentryError"||!1}catch{return!1}},e.prototype._isIgnoredError=function(t,r){return!r.ignoreErrors||!r.ignoreErrors.length?!1:this._getPossibleEventMessages(t).some(function(n){return r.ignoreErrors.some(function(o){return Zt(n,o)})})},e.prototype._isDeniedUrl=function(t,r){if(!r.denyUrls||!r.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return n?r.denyUrls.some(function(o){return Zt(n,o)}):!1},e.prototype._isAllowedUrl=function(t,r){if(!r.allowUrls||!r.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return n?r.allowUrls.some(function(o){return Zt(n,o)}):!0},e.prototype._mergeOptions=function(t){return t===void 0&&(t={}),{allowUrls:dt(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:dt(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:dt(this._options.ignoreErrors||[],t.ignoreErrors||[],jr),ignoreInternal:typeof this._options.ignoreInternal<"u"?this._options.ignoreInternal:!0}},e.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var r=t.exception.values&&t.exception.values[0]||{},n=r.type,o=n===void 0?"":n,i=r.value,s=i===void 0?"":i;return[""+s,o+": "+s]}catch{return E.error("Cannot extract message for event "+(0,v.$X)(t)),[]}return[]},e.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var r=t.stacktrace.frames;return r&&r[r.length-1].filename||null}if(t.exception){var n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch{return E.error("Cannot extract url for event "+(0,v.$X)(t)),null}},e.id="InboundFilters",e}(),Fe,Ir=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Fe=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.__sentry_original__||this;return Fe.apply(n,t)}},e.id="FunctionToString",e}();function kr(e,t){t.debug===!0&&E.enable();var r=P(),n=new e(t);r.bindClient(n)}/*! *****************************************************************************
|
|
46
|
-
Copyright (c) Microsoft Corporation.
|
|
47
|
-
|
|
48
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
49
|
-
purpose with or without fee is hereby granted.
|
|
50
|
-
|
|
51
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
52
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
53
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
54
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
55
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
56
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
57
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
58
|
-
***************************************************************************** */var re=function(e,t){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},re(e,t)};function Ct(e,t){re(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var w=function(){return w=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},w.apply(this,arguments)};function zi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Gi(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function qi(e,t){return function(r,n){t(r,n,e)}}function Vi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Wi(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function Yi(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ji(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function Xi(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Ut(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pr(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function Q(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Pr(arguments[t]));return e}function Zi(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function Mt(e){return this instanceof Mt?(this.v=e,this):new Mt(e)}function $i(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,x){i.push([f,h,g,x])>1||a(f,h)})})}function a(f,h){try{l(n[f](h))}catch(g){p(i[0][3],g)}}function l(f){f.value instanceof Mt?Promise.resolve(f.value.v).then(u,c):p(i[0][2],f)}function u(f){a("next",f)}function c(f){a("throw",f)}function p(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Ki(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:Mt(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function Qi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ut=="function"?Ut(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}}function to(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function eo(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function ro(e){return e&&e.__esModule?e:{default:e}}function no(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function io(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}var Ar=Object.setPrototypeOf||({__proto__:[]}instanceof Array?Nr:Dr);function Nr(e,t){return e.__proto__=t,e}function Dr(e,t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r]);return e}var A=function(e){pr(t,e);function t(r){var n=this.constructor,o=e.call(this,r)||this;return o.message=r,o.name=n.prototype.constructor.name,Ar(o,n.prototype),o}return t}(Error),Lr=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Et="Invalid Dsn",Ce=function(){function e(t){typeof t=="string"?this._fromString(t):this._fromComponents(t),this._validate()}return e.prototype.toString=function(t){t===void 0&&(t=!1);var r=this,n=r.host,o=r.path,i=r.pass,s=r.port,a=r.projectId,l=r.protocol,u=r.user;return l+"://"+u+(t&&i?":"+i:"")+("@"+n+(s?":"+s:"")+"/"+(o&&o+"/")+a)},e.prototype._fromString=function(t){var r=Lr.exec(t);if(!r)throw new A(Et);var n=Re(r.slice(1),6),o=n[0],i=n[1],s=n[2],a=s===void 0?"":s,l=n[3],u=n[4],c=u===void 0?"":u,p=n[5],f="",h=p,g=h.split("/");if(g.length>1&&(f=g.slice(0,-1).join("/"),h=g.pop()),h){var x=h.match(/^\d+/);x&&(h=x[0])}this._fromComponents({host:l,pass:a,path:f,projectId:h,port:c,protocol:o,user:i})},e.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},e.prototype._validate=function(){var t=this;if(["protocol","user","host","projectId"].forEach(function(r){if(!t[r])throw new A(Et+": "+r+" missing")}),!this.projectId.match(/^\d+$/))throw new A(Et+": Invalid projectId "+this.projectId);if(this.protocol!=="http"&&this.protocol!=="https")throw new A(Et+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new A(Et+": Invalid port "+this.port)},e}(),Ue=[];function Fr(e){var t=e.defaultIntegrations&&dt(e.defaultIntegrations)||[],r=e.integrations,n=[];if(Array.isArray(r)){var o=r.map(function(l){return l.name}),i=[];t.forEach(function(l){o.indexOf(l.name)===-1&&i.indexOf(l.name)===-1&&(n.push(l),i.push(l.name))}),r.forEach(function(l){i.indexOf(l.name)===-1&&(n.push(l),i.push(l.name))})}else typeof r=="function"?(n=r(t),n=Array.isArray(n)?n:[n]):n=dt(t);var s=n.map(function(l){return l.name}),a="Debug";return s.indexOf(a)!==-1&&n.push.apply(n,dt(n.splice(s.indexOf(a),1))),n}function Cr(e){Ue.indexOf(e.name)===-1&&(e.setupOnce(kt,P),Ue.push(e.name),E.log("Integration installed: "+e.name))}function Ur(e){var t={};return Fr(e).forEach(function(r){t[r.name]=r,Cr(r)}),t}var Mr=function(){function e(t,r){this._integrations={},this._processing=0,this._backend=new t(r),this._options=r,r.dsn&&(this._dsn=new Ce(r.dsn))}return e.prototype.captureException=function(t,r,n){var o=this,i=r&&r.event_id;return this._process(this._getBackend().eventFromException(t,r).then(function(s){return o._captureEvent(s,r,n)}).then(function(s){i=s})),i},e.prototype.captureMessage=function(t,r,n,o){var i=this,s=n&&n.event_id,a=gt(t)?this._getBackend().eventFromMessage(String(t),r,n):this._getBackend().eventFromException(t,n);return this._process(a.then(function(l){return i._captureEvent(l,n,o)}).then(function(l){s=l})),s},e.prototype.captureEvent=function(t,r,n){var o=r&&r.event_id;return this._process(this._captureEvent(t,r,n).then(function(i){o=i})),o},e.prototype.captureSession=function(t){t.release?this._sendSession(t):E.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(t){var r=this;return this._isClientProcessing(t).then(function(n){return r._getBackend().getTransport().close(t).then(function(o){return n&&o})})},e.prototype.close=function(t){var r=this;return this.flush(t).then(function(n){return r.getOptions().enabled=!1,n})},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Ur(this._options))},e.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch{return E.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(t,r){var n,o,i=!1,s=!1,a,l=r.exception&&r.exception.values;if(l){s=!0;try{for(var u=ee(l),c=u.next();!c.done;c=u.next()){var p=c.value,f=p.mechanism;if(f&&f.handled===!1){i=!0;break}}}catch(Y){n={error:Y}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}var h=r.user;if(!t.userAgent){var g=r.request?r.request.headers:{};for(var x in g)if(x.toLowerCase()==="user-agent"){a=g[x];break}}t.update(M(M({},i&&{status:ht.Crashed}),{user:h,userAgent:a,errors:t.errors+Number(s||i)}))},e.prototype._sendSession=function(t){this._getBackend().sendSession(t)},e.prototype._isClientProcessing=function(t){var r=this;return new C(function(n){var o=0,i=1,s=setInterval(function(){r._processing==0?(clearInterval(s),n(!0)):(o+=i,t&&o>=t&&(clearInterval(s),n(!1)))},i)})},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return this.getOptions().enabled!==!1&&this._dsn!==void 0},e.prototype._prepareEvent=function(t,r,n){var o=this,i=this.getOptions().normalizeDepth,s=i===void 0?3:i,a=M(M({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,v.eJ)()),timestamp:t.timestamp||(0,qt.lu)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var l=r;n&&n.captureContext&&(l=It.clone(l).update(n.captureContext));var u=C.resolve(a);return l&&(u=l.applyToEvent(a,n)),u.then(function(c){return typeof s=="number"&&s>0?o._normalizeEvent(c,s):c})},e.prototype._normalizeEvent=function(t,r){if(!t)return null;var n=M(M(M(M(M({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(function(o){return M(M({},o),o.data&&{data:wt(o.data,r)})})}),t.user&&{user:wt(t.user,r)}),t.contexts&&{contexts:wt(t.contexts,r)}),t.extra&&{extra:wt(t.extra,r)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},e.prototype._applyClientOptions=function(t){var r=this.getOptions(),n=r.environment,o=r.release,i=r.dist,s=r.maxValueLength,a=s===void 0?250:s;"environment"in t||(t.environment="environment"in r?n:"production"),t.release===void 0&&o!==void 0&&(t.release=o),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=bt(t.message,a));var l=t.exception&&t.exception.values&&t.exception.values[0];l&&l.value&&(l.value=bt(l.value,a));var u=t.request;u&&u.url&&(u.url=bt(u.url,a))},e.prototype._applyIntegrationsMetadata=function(t){var r=t.sdk,n=Object.keys(this._integrations);r&&n.length>0&&(r.integrations=n)},e.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},e.prototype._captureEvent=function(t,r,n){return this._processEvent(t,r,n).then(function(o){return o.event_id},function(o){E.error(o)})},e.prototype._processEvent=function(t,r,n){var o=this,i=this.getOptions(),s=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return C.reject(new A("SDK not enabled, will not send event."));var l=t.type==="transaction";return!l&&typeof a=="number"&&Math.random()>a?C.reject(new A("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(t,n,r).then(function(u){if(u===null)throw new A("An event processor returned null, will not send event.");var c=r&&r.data&&r.data.__sentry__===!0;if(c||l||!s)return u;var p=s(u,r);if(typeof p>"u")throw new A("`beforeSend` method has to return `null` or a valid event.");return Yt(p)?p.then(function(f){return f},function(f){throw new A("beforeSend rejected with "+f)}):p}).then(function(u){if(u===null)throw new A("`beforeSend` returned `null`, will not send event.");var c=n&&n.getSession&&n.getSession();return!l&&c&&o._updateSessionFromEvent(c,u),o._sendEvent(u),u}).then(null,function(u){throw u instanceof A?u:(o.captureException(u,{data:{__sentry__:!0},originalException:u}),new A(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
59
|
-
Reason: `+u))})},e.prototype._process=function(t){var r=this;this._processing+=1,t.then(function(n){return r._processing-=1,n},function(n){return r._processing-=1,n})},e}(),ot;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"})(ot||(ot={})),function(e){function t(r){return r>=200&&r<300?e.Success:r===429?e.RateLimit:r>=400&&r<500?e.Invalid:r>=500?e.Failed:e.Unknown}e.fromHttpCode=t}(ot||(ot={}));var Br=function(){function e(){}return e.prototype.sendEvent=function(t){return C.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:ot.Skipped})},e.prototype.close=function(t){return C.resolve(!0)},e}(),Hr=function(){function e(t){this._options=t,this._options.dsn||E.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(t,r){throw new A("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(t,r,n){throw new A("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,function(r){E.error("Error while sending event: "+r)})},e.prototype.sendSession=function(t){if(!this._transport.sendSession){E.warn("Dropping session because custom transport doesn't implement sendSession");return}this._transport.sendSession(t).then(null,function(r){E.error("Error while sending session: "+r)})},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Br},e}(),q;(function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"})(q||(q={})),function(e){function t(r){switch(r){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}e.fromString=t}(q||(q={}));function oo(){try{return new ErrorEvent(""),!0}catch{return!1}}function so(){try{return new DOMError(""),!0}catch{return!1}}function ao(){try{return new DOMException(""),!0}catch{return!1}}function ne(){if(!("fetch"in(0,v.VZ)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch{return!1}}function Me(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function zr(){if(!ne())return!1;var e=(0,v.VZ)();if(Me(e.fetch))return!0;var t=!1,r=e.document;if(r&&typeof r.createElement=="function")try{var n=r.createElement("iframe");n.hidden=!0,r.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Me(n.contentWindow.fetch)),r.head.removeChild(n)}catch(o){E.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return t}function uo(){return"ReportingObserver"in getGlobalObject()}function Gr(){if(!ne())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}function qr(){var e=(0,v.VZ)(),t=e.chrome,r=t&&t.app&&t.app.runtime,n="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!r&&n}var St="?",Vr=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Wr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Yr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Xr=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zr=/Minified React error #\d+;/i;function Ot(e){var t=null,r=0;e&&(typeof e.framesToPop=="number"?r=e.framesToPop:Zr.test(e.message)&&(r=1));try{if(t=Kr(e),t)return Be(t,r)}catch{}try{if(t=$r(e),t)return Be(t,r)}catch{}return{message:ie(e),name:e&&e.name,stack:[],failed:!0}}function $r(e){if(!e||!e.stack)return null;for(var t=[],r=e.stack.split(`
|
|
60
|
-
`),n,o,i,s,a=0;a<r.length;++a){if(i=Vr.exec(r[a])){var l=i[2]&&i[2].indexOf("native")===0;n=i[2]&&i[2].indexOf("eval")===0,n&&(o=Xr.exec(i[2]))&&(i[2]=o[1],i[3]=o[2],i[4]=o[3]),s={url:i[2]&&i[2].indexOf("address at ")===0?i[2].substr(11):i[2],func:i[1]||St,args:l?[i[2]]:[],line:i[3]?+i[3]:null,column:i[4]?+i[4]:null}}else if(i=Yr.exec(r[a]))s={url:i[2],func:i[1]||St,args:[],line:+i[3],column:i[4]?+i[4]:null};else if(i=Wr.exec(r[a]))n=i[3]&&i[3].indexOf(" > eval")>-1,n&&(o=Jr.exec(i[3]))?(i[1]=i[1]||"eval",i[3]=o[1],i[4]=o[2],i[5]=""):a===0&&!i[5]&&e.columnNumber!==void 0&&(t[0].column=e.columnNumber+1),s={url:i[3],func:i[1]||St,args:i[2]?i[2].split(","):[],line:i[4]?+i[4]:null,column:i[5]?+i[5]:null};else continue;!s.func&&s.line&&(s.func=St),t.push(s)}return t.length?{message:ie(e),name:e.name,stack:t}:null}function Kr(e){if(!e||!e.stacktrace)return null;for(var t=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,n=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=t.split(`
|
|
61
|
-
`),i=[],s,a=0;a<o.length;a+=2){var l=null;(s=r.exec(o[a]))?l={url:s[2],func:s[3],args:[],line:+s[1],column:null}:(s=n.exec(o[a]))&&(l={url:s[6],func:s[3]||s[4],args:s[5]?s[5].split(","):[],line:+s[1],column:+s[2]}),l&&(!l.func&&l.line&&(l.func=St),i.push(l))}return i.length?{message:ie(e),name:e.name,stack:i}:null}function Be(e,t){try{return w(w({},e),{stack:e.stack.slice(t)})}catch{return e}}function ie(e){var t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}var Qr=50;function He(e){var t=oe(e.stack),r={type:e.name,value:e.message};return t&&t.length&&(r.stacktrace={frames:t}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function tn(e,t,r){var n={exception:{values:[{type:Wt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+gr(e)}]},extra:{__serialized__:Pe(e)}};if(t){var o=Ot(t),i=oe(o.stack);n.stacktrace={frames:i}}return n}function ze(e){var t=He(e);return{exception:{values:[t]}}}function oe(e){if(!e||!e.length)return[];var t=e,r=t[0].func||"",n=t[t.length-1].func||"";return(r.indexOf("captureMessage")!==-1||r.indexOf("captureException")!==-1)&&(t=t.slice(1)),n.indexOf("sentryWrapped")!==-1&&(t=t.slice(0,-1)),t.slice(0,Qr).map(function(o){return{colno:o.column===null?void 0:o.column,filename:o.url||t[0].url,function:o.func||"?",in_app:!0,lineno:o.line===null?void 0:o.line}}).reverse()}function en(e,t,r){var n=r&&r.syntheticException||void 0,o=se(t,n,{attachStacktrace:e.attachStacktrace});return(0,v.M6)(o,{handled:!0,type:"generic"}),o.level=q.Error,r&&r.event_id&&(o.event_id=r.event_id),C.resolve(o)}function rn(e,t,r,n){r===void 0&&(r=q.Info);var o=n&&n.syntheticException||void 0,i=ae(t,o,{attachStacktrace:e.attachStacktrace});return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),C.resolve(i)}function se(e,t,r){r===void 0&&(r={});var n;if(Oe(e)&&e.error){var o=e;return e=o.error,n=ze(Ot(e)),n}if(xe(e)||lr(e)){var i=e,s=i.name||(xe(i)?"DOMError":"DOMException"),a=i.message?s+": "+i.message:s;return n=ae(a,t,r),(0,v.gO)(n,a),"code"in i&&(n.tags=w(w({},n.tags),{"DOMException.code":""+i.code})),n}if(Se(e))return n=ze(Ot(e)),n;if(Rt(e)||Wt(e)){var l=e;return n=tn(l,t,r.rejection),(0,v.M6)(n,{synthetic:!0}),n}return n=ae(e,t,r),(0,v.gO)(n,""+e,void 0),(0,v.M6)(n,{synthetic:!0}),n}function ae(e,t,r){r===void 0&&(r={});var n={message:e};if(r.attachStacktrace&&t){var o=Ot(t),i=oe(o.stack);n.stacktrace={frames:i}}return n}function Ge(e,t){var r=JSON.stringify({sent_at:new Date().toISOString()}),n=JSON.stringify({type:"session"});return{body:r+`
|
|
62
|
-
`+n+`
|
|
63
|
-
`+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function qe(e,t){var r=e.tags||{},n=r.__sentry_samplingMethod,o=r.__sentry_sampleRate,i=xr(r,["__sentry_samplingMethod","__sentry_sampleRate"]);e.tags=i;var s=e.type==="transaction",a={body:JSON.stringify(e),type:e.type||"event",url:s?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(s){var l=JSON.stringify({event_id:e.event_id,sent_at:new Date().toISOString()}),u=JSON.stringify({type:e.type,sample_rates:[{id:n,rate:o}]}),c=l+`
|
|
64
|
-
`+u+`
|
|
65
|
-
`+a.body;a.body=c}return a}var Ve="7",We=function(){function e(t){this.dsn=t,this._dsnObject=new Ce(t)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var t=this._dsnObject,r=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return r+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},e.prototype.getRequestHeaders=function(t,r){var n=this._dsnObject,o=["Sentry sentry_version="+Ve];return o.push("sentry_client="+t+"/"+r),o.push("sentry_key="+n.user),n.pass&&o.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":o.join(", ")}},e.prototype.getReportDialogEndpoint=function(t){t===void 0&&(t={});var r=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",o=[];o.push("dsn="+r.toString());for(var i in t)if(i!=="dsn")if(i==="user"){if(!t.user)continue;t.user.name&&o.push("name="+encodeURIComponent(t.user.name)),t.user.email&&o.push("email="+encodeURIComponent(t.user.email))}else o.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return o.length?n+"?"+o.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(t){var r=this.getBaseApiEndpoint(),n=this._dsnObject;return""+r+n.projectId+"/"+t+"/"},e.prototype._encodedAuth=function(){var t=this._dsnObject,r={sentry_key:t.user,sentry_version:Ve};return _r(r)},e}(),nn=function(){function e(t){this._limit=t,this._buffer=[]}return e.prototype.isReady=function(){return this._limit===void 0||this.length()<this._limit},e.prototype.add=function(t){var r=this;return this.isReady()?(this._buffer.indexOf(t)===-1&&this._buffer.push(t),t.then(function(){return r.remove(t)}).then(null,function(){return r.remove(t).then(null,function(){})}),t):C.reject(new A("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(t){var r=this._buffer.splice(this._buffer.indexOf(t),1)[0];return r},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(t){var r=this;return new C(function(n){var o=setTimeout(function(){t&&t>0&&n(!1)},t);C.all(r._buffer).then(function(){clearTimeout(o),n(!0)}).then(null,function(){n(!0)})})},e}(),Ye=function(){function e(t){this.options=t,this._buffer=new nn(30),this._rateLimits={},this._api=new We(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(t){throw new A("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(t){return this._buffer.drain(t)},e.prototype._handleResponse=function(t){var r=t.requestType,n=t.response,o=t.headers,i=t.resolve,s=t.reject,a=ot.fromHttpCode(n.status),l=this._handleRateLimit(o);if(l&&E.warn("Too many requests, backing off until: "+this._disabledUntil(r)),a===ot.Success){i({status:a});return}s(n)},e.prototype._disabledUntil=function(t){return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},e.prototype._handleRateLimit=function(t){var r,n,o,i,s=Date.now(),a=t["x-sentry-rate-limits"],l=t["retry-after"];if(a){try{for(var u=Ut(a.trim().split(",")),c=u.next();!c.done;c=u.next()){var p=c.value,f=p.split(":",2),h=parseInt(f[0],10),g=(isNaN(h)?60:h)*1e3;try{for(var x=(o=void 0,Ut(f[1].split(";"))),Y=x.next();!Y.done;Y=x.next()){var Gt=Y.value;this._rateLimits[Gt||"all"]=new Date(s+g)}}catch(mt){o={error:mt}}finally{try{Y&&!Y.done&&(i=x.return)&&i.call(x)}finally{if(o)throw o.error}}}}catch(mt){r={error:mt}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return!0}else if(l)return this._rateLimits.all=new Date(s+(0,v.FA)(s,l)),!0;return!1},e}(),on=(0,v.VZ)(),sn=function(e){Ct(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.sendEvent=function(r){return this._sendRequest(qe(r,this._api),r)},t.prototype.sendSession=function(r){return this._sendRequest(Ge(r,this._api),r)},t.prototype._sendRequest=function(r,n){var o=this;if(this._isRateLimited(r.type))return Promise.reject({event:n,type:r.type,reason:"Transport locked till "+this._disabledUntil(r.type)+" due to too many requests.",status:429});var i={body:r.body,method:"POST",referrerPolicy:Gr()?"origin":""};return this.options.fetchParameters!==void 0&&Object.assign(i,this.options.fetchParameters),this.options.headers!==void 0&&(i.headers=this.options.headers),this._buffer.add(new C(function(s,a){on.fetch(r.url,i).then(function(l){var u={"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")};o._handleResponse({requestType:r.type,response:l,headers:u,resolve:s,reject:a})}).catch(a)}))},t}(Ye),an=function(e){Ct(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.sendEvent=function(r){return this._sendRequest(qe(r,this._api),r)},t.prototype.sendSession=function(r){return this._sendRequest(Ge(r,this._api),r)},t.prototype._sendRequest=function(r,n){var o=this;return this._isRateLimited(r.type)?Promise.reject({event:n,type:r.type,reason:"Transport locked till "+this._disabledUntil(r.type)+" due to too many requests.",status:429}):this._buffer.add(new C(function(i,s){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===4){var u={"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")};o._handleResponse({requestType:r.type,response:a,headers:u,resolve:i,reject:s})}},a.open("POST",r.url);for(var l in o.options.headers)o.options.headers.hasOwnProperty(l)&&a.setRequestHeader(l,o.options.headers[l]);a.send(r.body)}))},t}(Ye),un=function(e){Ct(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.eventFromException=function(r,n){return en(this._options,r,n)},t.prototype.eventFromMessage=function(r,n,o){return n===void 0&&(n=q.Info),rn(this._options,r,n,o)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var r=w(w({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(r):ne()?new sn(r):new an(r)},t}(Hr);/*! *****************************************************************************
|
|
66
|
-
Copyright (c) Microsoft Corporation.
|
|
67
|
-
|
|
68
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
69
|
-
purpose with or without fee is hereby granted.
|
|
70
|
-
|
|
71
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
72
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
73
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
74
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
75
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
76
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
77
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
78
|
-
***************************************************************************** */var ue=function(e,t){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},ue(e,t)};function lo(e,t){ue(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var le=function(){return le=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},le.apply(this,arguments)};function co(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function fo(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function po(e,t){return function(r,n){t(r,n,e)}}function ho(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function _o(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{u(n.next(c))}catch(p){s(p)}}function l(c){try{u(n.throw(c))}catch(p){s(p)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function vo(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function yo(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function mo(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Je(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ln(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function cn(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ln(arguments[t]));return e}function go(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function Bt(e){return this instanceof Bt?(this.v=e,this):new Bt(e)}function bo(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){n[f]&&(o[f]=function(h){return new Promise(function(g,x){i.push([f,h,g,x])>1||a(f,h)})})}function a(f,h){try{l(n[f](h))}catch(g){p(i[0][3],g)}}function l(f){f.value instanceof Bt?Promise.resolve(f.value.v).then(u,c):p(i[0][2],f)}function u(f){a("next",f)}function c(f){a("throw",f)}function p(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function wo(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:Bt(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function Eo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Je=="function"?Je(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}}function So(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Oo(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function xo(e){return e&&e.__esModule?e:{default:e}}function To(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function jo(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}function U(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=P();if(n&&n[e])return n[e].apply(n,cn(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Xe(e,t){var r;try{throw new Error("Sentry syntheticException")}catch(n){r=n}return U("captureException",e,{captureContext:t,originalException:e,syntheticException:r})}function fn(e,t){var r;try{throw new Error(e)}catch(i){r=i}var n=typeof t=="string"?t:void 0,o=typeof t!="string"?{captureContext:t}:void 0;return U("captureMessage",e,n,le({originalException:e,syntheticException:r},o))}function Ro(e){return U("captureEvent",e)}function pn(e){U("configureScope",e)}function Io(e){U("addBreadcrumb",e)}function ko(e,t){U("setContext",e,t)}function Po(e){U("setExtras",e)}function Ao(e){U("setTags",e)}function No(e,t){U("setExtra",e,t)}function Do(e,t){U("setTag",e,t)}function Lo(e){U("setUser",e)}function hn(e){U("withScope",e)}function Fo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];U.apply(void 0,__spread(["_invokeClient",e],t))}function Co(e,t){return U("startTransaction",__assign({},e),t)}var ce=0;function Ze(){return ce>0}function dn(){ce+=1,setTimeout(function(){ce-=1})}function _t(e,t,r){if(t===void 0&&(t={}),typeof e!="function")return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch{return e}var n=function(){var s=Array.prototype.slice.call(arguments);try{r&&typeof r=="function"&&r.apply(this,arguments);var a=s.map(function(l){return _t(l,t)});return e.handleEvent?e.handleEvent.apply(this,a):e.apply(this,a)}catch(l){throw dn(),hn(function(u){u.addEventProcessor(function(c){var p=w({},c);return t.mechanism&&((0,v.gO)(p,void 0,void 0),(0,v.M6)(p,t.mechanism)),p.extra=w(w({},p.extra),{arguments:s}),p}),Xe(l)}),l}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}catch{}e.prototype=e.prototype||{},n.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:n}),Object.defineProperties(n,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{var i=Object.getOwnPropertyDescriptor(n,"name");i.configurable&&Object.defineProperty(n,"name",{get:function(){return e.name}})}catch{}return n}function _n(e){if(e===void 0&&(e={}),!e.eventId){E.error("Missing eventId option in showReportDialog call");return}if(!e.dsn){E.error("Missing dsn option in showReportDialog call");return}var t=document.createElement("script");t.async=!0,t.src=new We(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}var O=(0,v.VZ)(),xt={},$e={};function vn(e){if(!$e[e])switch($e[e]=!0,e){case"console":yn();break;case"dom":Sn();break;case"xhr":wn();break;case"fetch":mn();break;case"history":En();break;case"error":xn();break;case"unhandledrejection":Tn();break;default:E.warn("unknown instrumentation type:",e)}}function st(e){!e||typeof e.type!="string"||typeof e.callback!="function"||(xt[e.type]=xt[e.type]||[],xt[e.type].push(e.callback),vn(e.type))}function D(e,t){var r,n;if(!(!e||!xt[e]))try{for(var o=Pt(xt[e]||[]),i=o.next();!i.done;i=o.next()){var s=i.value;try{s(t)}catch(a){E.error(`Error while triggering instrumentation handler.
|
|
79
|
-
Type: `+e+`
|
|
80
|
-
Name: `+$(s)+`
|
|
81
|
-
Error: `+a)}}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function yn(){"console"in O&&["debug","info","warn","error","log","assert"].forEach(function(e){e in O.console&&I(O.console,e,function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];D("console",{args:r,level:e}),t&&Function.prototype.apply.call(t,O.console,r)}})})}function mn(){!zr()||I(O,"fetch",function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n={args:t,fetchData:{method:gn(t),url:bn(t)},startTimestamp:Date.now()};return D("fetch",it({},n)),e.apply(O,t).then(function(o){return D("fetch",it(it({},n),{endTimestamp:Date.now(),response:o})),o},function(o){throw D("fetch",it(it({},n),{endTimestamp:Date.now(),error:o})),o})}})}function gn(e){return e===void 0&&(e=[]),"Request"in O&&Z(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function bn(e){return e===void 0&&(e=[]),typeof e[0]=="string"?e[0]:"Request"in O&&Z(e[0],Request)?e[0].url:String(e[0])}function wn(){if("XMLHttpRequest"in O){var e=[],t=[],r=XMLHttpRequest.prototype;I(r,"open",function(n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var s=this,a=o[1];s.__sentry_xhr__={method:pt(o[0])?o[0].toUpperCase():o[0],url:o[1]},pt(a)&&s.__sentry_xhr__.method==="POST"&&a.match(/sentry_key/)&&(s.__sentry_own_request__=!0);var l=function(){if(s.readyState===4){try{s.__sentry_xhr__&&(s.__sentry_xhr__.status_code=s.status)}catch{}try{var u=e.indexOf(s);if(u!==-1){e.splice(u);var c=t.splice(u)[0];s.__sentry_xhr__&&c[0]!==void 0&&(s.__sentry_xhr__.body=c[0])}}catch{}D("xhr",{args:o,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:s})}};return"onreadystatechange"in s&&typeof s.onreadystatechange=="function"?I(s,"onreadystatechange",function(u){return function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];return l(),u.apply(s,c)}}):s.addEventListener("readystatechange",l),n.apply(s,o)}}),I(r,"send",function(n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.push(this),t.push(o),D("xhr",{args:o,startTimestamp:Date.now(),xhr:this}),n.apply(this,o)}})}}var Ht;function En(){if(!qr())return;var e=O.onpopstate;O.onpopstate=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=O.location.href,i=Ht;if(Ht=o,D("history",{from:i,to:o}),e)return e.apply(this,r)};function t(r){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n.length>2?n[2]:void 0;if(i){var s=Ht,a=String(i);Ht=a,D("history",{from:s,to:a})}return r.apply(this,n)}}I(O.history,"pushState",t),I(O.history,"replaceState",t)}function Sn(){"document"in O&&(O.document.addEventListener("click",zt("click",D.bind(null,"dom")),!1),O.document.addEventListener("keypress",pe(D.bind(null,"dom")),!1),["EventTarget","Node"].forEach(function(e){var t=O[e]&&O[e].prototype;!t||!t.hasOwnProperty||!t.hasOwnProperty("addEventListener")||(I(t,"addEventListener",function(r){return function(n,o,i){return o&&o.handleEvent?(n==="click"&&I(o,"handleEvent",function(s){return function(a){return zt("click",D.bind(null,"dom"))(a),s.call(this,a)}}),n==="keypress"&&I(o,"handleEvent",function(s){return function(a){return pe(D.bind(null,"dom"))(a),s.call(this,a)}})):(n==="click"&&zt("click",D.bind(null,"dom"),!0)(this),n==="keypress"&&pe(D.bind(null,"dom"))(this)),r.call(this,n,o,i)}}),I(t,"removeEventListener",function(r){return function(n,o,i){try{r.call(this,n,o.__sentry_wrapped__,i)}catch{}return r.call(this,n,o,i)}}))}))}var On=1e3,fe=0,Tt,Ke;function zt(e,t,r){return r===void 0&&(r=!1),function(n){Tt=void 0,!(!n||Ke===n)&&(Ke=n,fe&&clearTimeout(fe),r?fe=setTimeout(function(){t({event:n,name:e})}):t({event:n,name:e}))}}function pe(e){return function(t){var r;try{r=t.target}catch{return}var n=r&&r.tagName;!n||n!=="INPUT"&&n!=="TEXTAREA"&&!r.isContentEditable||(Tt||zt("input",e)(t),clearTimeout(Tt),Tt=setTimeout(function(){Tt=void 0},On))}}var he=null;function xn(){he=O.onerror,O.onerror=function(e,t,r,n,o){return D("error",{column:n,error:o,line:r,msg:e,url:t}),he?he.apply(this,arguments):!1}}var de=null;function Tn(){de=O.onunhandledrejection,O.onunhandledrejection=function(e){return D("unhandledrejection",e),de?de.apply(this,arguments):!0}}var Qe=function(){function e(t){this.name=e.id,this._options=w({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(t){!this._options.sentry||P().addBreadcrumb({category:"sentry."+(t.type==="transaction"?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,v.$X)(t)},{event:t})},e.prototype.setupOnce=function(){var t=this;this._options.console&&st({callback:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t._consoleBreadcrumb.apply(t,Q(r))},type:"console"}),this._options.dom&&st({callback:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t._domBreadcrumb.apply(t,Q(r))},type:"dom"}),this._options.xhr&&st({callback:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t._xhrBreadcrumb.apply(t,Q(r))},type:"xhr"}),this._options.fetch&&st({callback:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t._fetchBreadcrumb.apply(t,Q(r))},type:"fetch"}),this._options.history&&st({callback:function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t._historyBreadcrumb.apply(t,Q(r))},type:"history"})},e.prototype._consoleBreadcrumb=function(t){var r={category:"console",data:{arguments:t.args,logger:"console"},level:q.fromString(t.level),message:Ie(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)r.message="Assertion failed: "+(Ie(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1);else return;P().addBreadcrumb(r,{input:t.args,level:t.level})},e.prototype._domBreadcrumb=function(t){var r;try{r=t.event.target?Nt(t.event.target):Nt(t.event)}catch{r="<unknown>"}r.length!==0&&P().addBreadcrumb({category:"ui."+t.name,message:r},{event:t.event,name:t.name})},e.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var r=t.xhr.__sentry_xhr__||{},n=r.method,o=r.url,i=r.status_code,s=r.body;P().addBreadcrumb({category:"xhr",data:{method:n,url:o,status_code:i},type:"http"},{xhr:t.xhr,input:s});return}},e.prototype._fetchBreadcrumb=function(t){!t.endTimestamp||t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"||(t.error?P().addBreadcrumb({category:"fetch",data:t.fetchData,level:q.Error,type:"http"},{data:t.error,input:t.args}):P().addBreadcrumb({category:"fetch",data:w(w({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response}))},e.prototype._historyBreadcrumb=function(t){var r=(0,v.VZ)(),n=t.from,o=t.to,i=(0,v.Dl)(r.location.href),s=(0,v.Dl)(n),a=(0,v.Dl)(o);s.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(n=s.relative),P().addBreadcrumb({category:"navigation",data:{from:n,to:o}})},e.id="Breadcrumbs",e}(),jn="sentry.javascript.browser",tr="5.30.0",Rn=function(e){Ct(t,e);function t(r){return r===void 0&&(r={}),e.call(this,un,r)||this}return t.prototype.showReportDialog=function(r){r===void 0&&(r={});var n=(0,v.VZ)().document;if(!!n){if(!this._isEnabled()){E.error("Trying to call showReportDialog with Sentry Client disabled");return}_n(w(w({},r),{dsn:r.dsn||this.getDsn()}))}},t.prototype._prepareEvent=function(r,n,o){return r.platform=r.platform||"javascript",r.sdk=w(w({},r.sdk),{name:jn,packages:Q(r.sdk&&r.sdk.packages||[],[{name:"npm:@sentry/browser",version:tr}]),version:tr}),e.prototype._prepareEvent.call(this,r,n,o)},t.prototype._sendEvent=function(r){var n=this.getIntegration(Qe);n&&n.addSentryBreadcrumb(r),e.prototype._sendEvent.call(this,r)},t}(Mr),In=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],kn=function(){function e(t){this.name=e.id,this._options=w({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var t=(0,v.VZ)();if(this._options.setTimeout&&I(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&I(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&I(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&I(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget){var r=Array.isArray(this._options.eventTarget)?this._options.eventTarget:In;r.forEach(this._wrapEventTarget.bind(this))}},e.prototype._wrapTimeFunction=function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0];return r[0]=_t(o,{mechanism:{data:{function:$(t)},handled:!0,type:"instrument"}}),t.apply(this,r)}},e.prototype._wrapRAF=function(t){return function(r){return t.call(this,_t(r,{mechanism:{data:{function:"requestAnimationFrame",handler:$(t)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(t){var r=(0,v.VZ)(),n=r[t]&&r[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(I(n,"addEventListener",function(o){return function(i,s,a){try{typeof s.handleEvent=="function"&&(s.handleEvent=_t(s.handleEvent.bind(s),{mechanism:{data:{function:"handleEvent",handler:$(s),target:t},handled:!0,type:"instrument"}}))}catch{}return o.call(this,i,_t(s,{mechanism:{data:{function:"addEventListener",handler:$(s),target:t},handled:!0,type:"instrument"}}),a)}}),I(n,"removeEventListener",function(o){return function(i,s,a){var l,u=s;try{var c=(l=u)===null||l===void 0?void 0:l.__sentry_wrapped__;c&&o.call(this,i,c,a)}catch{}return o.call(this,i,u,a)}}))},e.prototype._wrapXHR=function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach(function(s){s in o&&typeof o[s]=="function"&&I(o,s,function(a){var l={mechanism:{data:{function:s,handler:$(a)},handled:!0,type:"instrument"}};return a.__sentry_original__&&(l.mechanism.data.handler=$(a.__sentry_original__)),_t(a,l)})}),t.apply(this,r)}},e.id="TryCatch",e}(),Pn=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=w({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(E.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(E.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(st({callback:function(r){var n=r.error,o=P(),i=o.getIntegration(e),s=n&&n.__sentry_own_request__===!0;if(!(!i||Ze()||s)){var a=o.getClient(),l=gt(n)?t._eventFromIncompleteOnError(r.msg,r.url,r.line,r.column):t._enhanceEventWithInitialFrame(se(n,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);(0,v.M6)(l,{handled:!1,type:"onerror"}),o.captureEvent(l,{originalException:n})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(st({callback:function(r){var n=r;try{"reason"in r?n=r.reason:"detail"in r&&"reason"in r.detail&&(n=r.detail.reason)}catch{}var o=P(),i=o.getIntegration(e),s=n&&n.__sentry_own_request__===!0;if(!i||Ze()||s)return!0;var a=o.getClient(),l=gt(n)?t._eventFromRejectionWithPrimitive(n):se(n,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});l.level=q.Error,(0,v.M6)(l,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(l,{originalException:n})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(t,r,n,o){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,s=Oe(t)?t.message:t,a;if(pt(s)){var l=s.match(i);l&&(a=l[1],s=l[2])}var u={exception:{values:[{type:a||"Error",value:s}]}};return this._enhanceEventWithInitialFrame(u,r,n,o)},e.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},e.prototype._enhanceEventWithInitialFrame=function(t,r,n,o){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(o,10))?void 0:o,s=isNaN(parseInt(n,10))?void 0:n,a=pt(r)&&r.length>0?r:(0,v.$N)();return t.exception.values[0].stacktrace.frames.length===0&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:s}),t},e.id="GlobalHandlers",e}(),An="cause",Nn=5,Dn=function(){function e(t){t===void 0&&(t={}),this.name=e.id,this._key=t.key||An,this._limit=t.limit||Nn}return e.prototype.setupOnce=function(){kt(function(t,r){var n=P().getIntegration(e);return n?n._handler(t,r):t})},e.prototype._handler=function(t,r){if(!t.exception||!t.exception.values||!r||!Z(r.originalException,Error))return t;var n=this._walkErrorTree(r.originalException,this._key);return t.exception.values=Q(n,t.exception.values),t},e.prototype._walkErrorTree=function(t,r,n){if(n===void 0&&(n=[]),!Z(t[r],Error)||n.length+1>=this._limit)return n;var o=Ot(t[r]),i=He(o);return this._walkErrorTree(t[r],r,Q([i],n))},e.id="LinkedErrors",e}(),vt=(0,v.VZ)(),Ln=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){kt(function(t){var r,n,o;if(P().getIntegration(e)){if(!vt.navigator&&!vt.location&&!vt.document)return t;var i=((r=t.request)===null||r===void 0?void 0:r.url)||((n=vt.location)===null||n===void 0?void 0:n.href),s=(vt.document||{}).referrer,a=(vt.navigator||{}).userAgent,l=w(w(w({},(o=t.request)===null||o===void 0?void 0:o.headers),s&&{Referer:s}),a&&{"User-Agent":a}),u=w(w({},i&&{url:i}),{headers:l});return w(w({},t),{request:u})}return t})},e.id="UserAgent",e}(),Fn=[new Rr,new Ir,new kn,new Qe,new Pn,new Dn,new Ln];function Cn(e){if(e===void 0&&(e={}),e.defaultIntegrations===void 0&&(e.defaultIntegrations=Fn),e.release===void 0){var t=(0,v.VZ)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}e.autoSessionTracking===void 0&&(e.autoSessionTracking=!1),kr(Rn,e),e.autoSessionTracking&&Un()}function Uo(e){e===void 0&&(e={}),e.eventId||(e.eventId=getCurrentHub().lastEventId());var t=getCurrentHub().getClient();t&&t.showReportDialog(e)}function Mo(){return getCurrentHub().lastEventId()}function Bo(){}function Ho(e){e()}function zo(e){var t=getCurrentHub().getClient();return t?t.flush(e):SyncPromise.reject(!1)}function Go(e){var t=getCurrentHub().getClient();return t?t.close(e):SyncPromise.reject(!1)}function qo(e){return internalWrap(e)()}function Un(){var e=(0,v.VZ)(),t=P(),r=document.readyState==="complete",n=!1,o=function(){n&&r&&t.endSession()},i=function(){r=!0,o(),e.removeEventListener("load",i)};t.startSession(),r||e.addEventListener("load",i);try{var s=new PerformanceObserver(function(l,u){l.getEntries().forEach(function(c){c.name==="first-contentful-paint"&&c.startTime<a&&(u.disconnect(),n=!0,o())})}),a=document.visibilityState==="hidden"?0:1/0;document.addEventListener("visibilitychange",function(l){a=Math.min(a,l.timeStamp)},{once:!0}),s.observe({type:"paint",buffered:!0})}catch{n=!0,o()}}class Mn{constructor(t){P().getClient()?pn(r=>{r.clear(),r.setTag("clientSlug",t.clientSlug),r.addEventProcessor(n=>new Promise(o=>o(Object.assign(Object.assign({},n),{environment:t.environment}))))}):Cn({environment:t.environment,dsn:t.dsn,beforeSend(r){var n;return!((n=r.extra)===null||n===void 0)&&n.log?r:null}})}write(t){t.err?Xe(t.err,{extra:{log:!0}}):t.msg&&fn(t.msg,{extra:{log:!0}})}}function _e(){return _e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_e.apply(this,arguments)}var er=typeof window<"u"?window.navigator.userAgent:"no-window",Bn=/bot|crawler|spider|crawling/i.test(er),Hn={"Content-Type":"application/json"},zn=function(){function e(r){var n=this;r===void 0&&(r={});var o=r.method,i=o===void 0?"PUT":o,s=r.url,a=s===void 0?"/log":s,l=r.headers,u=l===void 0?{}:l,c=r.throttleInterval,p=c===void 0?3e3:c,f=r.withCredentials,h=f!==void 0&&f,g=r.onError,x=r.flushOnClose,Y=x!==void 0&&x,Gt=r.writeCondition;this.writeCondition=Gt===void 0?e.defaultWriteCondition:Gt,this.records={},this.headers=_e({},Hn,u),this.start({method:i,url:a,throttleInterval:p,withCredentials:h,onError:g}),Y&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){n.currentThrottleTimeout&&window.clearTimeout(n.currentThrottleTimeout);var mt=n.recordsAsArray();mt.length&&window.fetch(a,{method:i,body:JSON.stringify(mt),headers:n.headers,credentials:h?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(r){var n=this,o=r.method,i=r.url,s=r.throttleInterval,a=r.withCredentials,l=r.onError;(function u(){n.currentThrottleTimeout=setTimeout(function(){var c=n.recordsAsArray();if(c.length){var p=new XMLHttpRequest;p.onreadystatechange=function(){p.readyState===XMLHttpRequest.DONE&&(p.status>=400&&(typeof l=="function"?l.call(n,c,p):console.warn("Browser Bunyan: A server log write failed")),n.records={},u())},p.open(o,i);for(var f=0,h=Object.entries(n.headers);f<h.length;f++){var g=h[f];p.setRequestHeader(g[0],g[1])}p.withCredentials=a,p.send(JSON.stringify(c))}else u()},s)})()},t.stop=function(){var r=this;setTimeout(function(){r.currentThrottleTimeout&&(clearTimeout(r.currentThrottleTimeout),r.currentThrottleTimeout=null)},1)},t.write=function(r){r.url=typeof window<"u"&&window.location.href,r.userAgent=er,this.currentThrottleTimeout&&this.writeCondition(r)&&(this.records[r.msg]?this.records[r.msg].count++:(r.count=1,this.records[r.msg]=r))},t.recordsAsArray=function(){var r=this;return Object.keys(this.records).map(function(n){return r.records[n]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!Bn},e}(),Vo=10,Wo=20,Yo=30,Jo=40,Xo=50,Zo=60,ve={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},rr={};function ye(e){return typeof e=="string"?ve[e.toLowerCase()]:e}function me(e,t){return me=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},me(e,t)}function Gn(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ge(e,t,r){return ge=Gn()?Reflect.construct:function(n,o,i){var s=[null];s.push.apply(s,o);var a=new(Function.bind.apply(n,s));return i&&me(a,i.prototype),a},ge.apply(null,arguments)}function at(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(r){t[r]=e[r]}),t}return e}function be(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return be(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function ut(e){if(typeof e!="string"){for(var t=new Array(arguments.length),r=0;r<arguments.length;r++)t[r]=be(arguments[r]);return t.join(" ")}for(var n=/%[sdj%]/g,o=1,i=arguments,s=i.length,a=String(e).replace(n,function(u){if(u==="%%")return"%";if(o>=s)return u;switch(u){case"%s":return String(i[o++]);case"%d":return Number(i[o++]);case"%j":try{return JSON.stringify(i[o++])}catch{return"[Circular]"}default:return u}}),l=i[o];o<s;l=i[++o])a+=l===null||typeof l!="object"?" "+l:" "+be(l);return a}function qn(e,t){var r=e.split(`
|
|
82
|
-
`);r[0]&&r[0].indexOf("call-stack-error")>=0&&r.shift();var n=r[t],o=null;if(n){var i=/^\s*(at|.*@)\s*(.+)?$/.exec(n);o=Array.isArray(i)&&i[2]?i[2]:n}return o}Object.keys(ve).forEach(function(e){rr[ve[e]]=e});var we={};function Ee(e,t){if(t){if(we[t])return;we[t]=!0}console.error(e+`
|
|
83
|
-
`)}function Vn(e){return we[e]}function Wn(){var e=[];return function(t,r){return r&&typeof r=="object"?e.indexOf(r)!==-1?"[Circular]":(e.push(r),r):r}}var Yn=function(){function e(){}return e.prototype.write=function(t){t.level<30?console.log(t):t.level<40?console.info(t):t.level<50?console.warn(t):console.error(t),t.err&&t.err.stack&&console.error(t.err.stack),t.obj&&console.log(t.obj)},e}(),lt=function(){function e(r,n,o){var i,s,a,l,u=this;if(!(this instanceof e))return new e(r,n);if(n!==void 0&&(i=r,r=n,!(i instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!r)throw new TypeError("options (object) is required");if(i){if(r.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!r.name)throw new TypeError("options.name (string) is required");if(r.stream&&r.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(r.streams&&!Array.isArray(r.streams))throw new TypeError("invalid options.streams: must be an array");if(r.serializers&&(typeof r.serializers!="object"||Array.isArray(r.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(i&&o){this._level=i._level,this.streams=i.streams,this.serializers=i.serializers,this.src=i.src,s=this.fields={};var c=Object.keys(i.fields);for(l=0;l<c.length;l++)s[a=c[l]]=i.fields[a];var p=Object.keys(r);for(l=0;l<p.length;l++)s[a=p[l]]=r[a]}else{if(i){for(this._level=i._level,this.streams=[],l=0;l<i.streams.length;l++){var f=at(i.streams[l]);this.streams.push(f)}this.serializers=at(i.serializers),this.src=i.src,this.fields=at(i.fields),r.level&&this.level(r.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};r.stream?this.addStream({type:"stream",stream:r.stream,level:r.level}):r.streams?r.streams.forEach(function(h){u.addStream(h,r.level)}):i&&r.level?this.level(r.level):i||this.addStream({type:"raw",stream:new Yn,level:r.level}),r.serializers&&this.addSerializers(r.serializers),r.src&&(this.src=!0),delete(s=at(r)).stream,delete s.level,delete s.streams,delete s.serializers,delete s.src,this.serializers&&this._applySerializers(s),Object.keys(s).forEach(function(h){u.fields[h]=s[h]})}}var t=e.prototype;return t.addStream=function(r,n){n===void 0&&(n=30),(r=at(r)).type="raw",r.level=ye(r.level||n),r.level<this._level&&(this._level=r.level),this.streams.push(r),delete this.haveNonRawStreams},t.addSerializers=function(r){var n=this;this.serializers||(this.serializers={}),Object.keys(r).forEach(function(o){var i=r[o];if(typeof i!="function")throw new TypeError(ut('invalid serializer for "%s" field: must be a function',o));n.serializers[o]=i})},t.child=function(r,n){return new this.constructor(this,r||{},n)},t.level=function(r){if(r===void 0)return this._level;for(var n=ye(r),o=this.streams.length,i=0;i<o;i++)this.streams[i].level=n;this._level=n},t.levels=function(r,n){if(r===void 0)return this.streams.map(function(u){return u.level});var o;if(typeof r=="number"){if((o=this.streams[r])===void 0)throw new Error("invalid stream index: "+r)}else{for(var i=this.streams.length,s=0;s<i;s++){var a=this.streams[s];if(a.name===r){o=a;break}}if(!o)throw new Error(ut('no stream with name "%s"',r))}if(n===void 0)return o.level;var l=ye(n);o.level=l,l<this._level&&(this._level=l)},t._applySerializers=function(r,n){var o=this;Object.keys(this.serializers).forEach(function(i){if(!(r[i]===void 0||n&&n[i]))try{r[i]=o.serializers[i](r[i])}catch(s){Ee(ut(`bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.
|
|
84
|
-
%s`,i,s.stack||s)),r[i]=ut('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',i)}})},t._emit=function(r,n){var o,i;if(this.haveNonRawStreams===void 0){for(this.haveNonRawStreams=!1,o=0;o<this.streams.length;o++)if(!this.streams[o].raw){this.haveNonRawStreams=!0;break}}if(n||this.haveNonRawStreams)try{i=JSON.stringify(r,Wn())+`
|
|
85
|
-
`}catch(u){var s=u.stack.split(/\n/g,2).join(`
|
|
86
|
-
`);Ee('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(c,p){return p||(p=" "),p+c.split(/\r?\n/g).join(`
|
|
87
|
-
`+p)}(ut(`%s
|
|
88
|
-
%s`,r,u.stack)),s),i=ut(`(Exception in JSON.stringify(rec): %j. See stderr for details.)
|
|
89
|
-
`,u.message)}if(n)return i;var a=r.level;for(o=0;o<this.streams.length;o++){var l=this.streams[o];l.level<=a&&l.stream.write(r)}return i},e}();function yt(e){return function(){var t=this;function r(s){var a;s[0]instanceof Error?(n={err:t.serializers&&t.serializers.err?t.serializers.err(s[0]):Jn.err(s[0])},a={err:!0},o=s.length===1?[n.err.message]:Array.prototype.slice.call(s,1)):typeof s[0]!="object"&&s[0]!==null||Array.isArray(s[0])?(n=null,o=Array.prototype.slice.call(s)):(n=s[0],o=s.length===1&&n.err&&n.err instanceof Error?[n.err.message]:Array.prototype.slice.call(s,1));var l=at(t.fields);l.level=e;var u=n?at(n):null;if(u&&(t.serializers&&t._applySerializers(u,a),Object.keys(u).forEach(function(p){l[p]=u[p]})),l.levelName=rr[e],l.msg=o.length?ut.apply(t,o):"",l.time||(l.time=new Date),t.src&&!l.src)try{throw new Error("call-stack-error")}catch(p){var c=p.stack?qn(p.stack,2):"";c||Vn("src")||Ee("Unable to determine src line info","src"),l.src=c||""}return l.v=1,l}var n=null,o=arguments,i=null;if(arguments.length===0)return this._level<=e;this._level>e||(i=r(o),this._emit(i))}}function nr(e){var t=e.stack||e.toString();if(e.cause&&typeof e.cause=="function"){var r=e.cause();r&&(t+=`
|
|
90
|
-
Caused by: `+nr(r))}return t}lt.prototype.trace=yt(10),lt.prototype.debug=yt(20),lt.prototype.info=yt(30),lt.prototype.warn=yt(40),lt.prototype.error=yt(50),lt.prototype.fatal=yt(60);var Jn={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:nr(e),code:e.code,signal:e.signal}:e}};function Xn(){return ge(lt,[].slice.call(arguments))}var $o={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},Ko=null,Qo=null;function Zn({environment:e,clientSlug:t,url:r,telemetry:n}={}){const{logging:o}=Object.assign({},n),i=[{level:B,stream:new ft({logByLevel:!0})}];return o&&i.push({level:b,stream:new Mn({dsn:"https://86b24fd7a3854c22904ea453df6744f5@sentry.icanbwell.com/179",environment:e,clientSlug:t})}),r&&i.push({level:b,stream:new zn({url:r,method:"POST",throttleInterval:5e3,flushOnClose:!0})}),Xn({name:"embeddable-logger",streams:i,environment:e,clientSlug:t})}}}]);
|