@exceptionless/react
Version:
JavaScript client for Exceptionless
10 lines • 76.1 kB
JavaScript
var rr=Object.create;var ot=Object.defineProperty;var nr=Object.getOwnPropertyDescriptor;var ir=Object.getOwnPropertyNames;var sr=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty;var I=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var ar=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ir(e))!or.call(r,i)&&i!==t&&ot(r,i,{get:()=>e[i],enumerable:!(n=nr(e,i))||n.enumerable});return r};var at=(r,e,t)=>(t=r!=null?rr(sr(r)):{},ar(e||!r||!r.__esModule?ot(t,"default",{value:r,enumerable:!0}):t,r));var $e=I((De,lt)=>{(function(r,e){"use strict";typeof define=="function"&&define.amd?define("stackframe",[],e):typeof De=="object"?lt.exports=e():r.StackFrame=e()})(De,function(){"use strict";function r(l){return!isNaN(parseFloat(l))&&isFinite(l)}function e(l){return l.charAt(0).toUpperCase()+l.substring(1)}function t(l){return function(){return this[l]}}var n=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],s=["fileName","functionName","source"],o=["args"],a=["evalOrigin"],u=n.concat(i,s,o,a);function f(l){if(l)for(var h=0;h<u.length;h++)l[u[h]]!==void 0&&this["set"+e(u[h])](l[u[h]])}f.prototype={getArgs:function(){return this.args},setArgs:function(l){if(Object.prototype.toString.call(l)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=l},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(l){if(l instanceof f)this.evalOrigin=l;else if(l instanceof Object)this.evalOrigin=new f(l);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var l=this.getFileName()||"",h=this.getLineNumber()||"",m=this.getColumnNumber()||"",v=this.getFunctionName()||"";return this.getIsEval()?l?"[eval] ("+l+":"+h+":"+m+")":"[eval]:"+h+":"+m:v?v+" ("+l+":"+h+":"+m+")":l+":"+h+":"+m}},f.fromString=function(h){var m=h.indexOf("("),v=h.lastIndexOf(")"),y=h.substring(0,m),b=h.substring(m+1,v).split(","),E=h.substring(v+1);if(E.indexOf("@")===0)var C=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(E,""),N=C[1],G=C[2],tr=C[3];return new f({functionName:y,args:b||void 0,fileName:N,lineNumber:G||void 0,columnNumber:tr||void 0})};for(var c=0;c<n.length;c++)f.prototype["get"+e(n[c])]=t(n[c]),f.prototype["set"+e(n[c])]=function(l){return function(h){this[l]=!!h}}(n[c]);for(var d=0;d<i.length;d++)f.prototype["get"+e(i[d])]=t(i[d]),f.prototype["set"+e(i[d])]=function(l){return function(h){if(!r(h))throw new TypeError(l+" must be a Number");this[l]=Number(h)}}(i[d]);for(var g=0;g<s.length;g++)f.prototype["get"+e(s[g])]=t(s[g]),f.prototype["set"+e(s[g])]=function(l){return function(h){this[l]=String(h)}}(s[g]);return f})});var dt=I((je,ft)=>{(function(r,e){"use strict";typeof define=="function"&&define.amd?define("error-stack-parser",["stackframe"],e):typeof je=="object"?ft.exports=e($e()):r.ErrorStackParser=e(r.StackFrame)})(je,function(e){"use strict";var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,i=/^(eval@)?(\[native code])?$/;return{parse:function(o){if(typeof o.stacktrace<"u"||typeof o["opera#sourceloc"]<"u")return this.parseOpera(o);if(o.stack&&o.stack.match(n))return this.parseV8OrIE(o);if(o.stack)return this.parseFFOrSafari(o);throw new Error("Cannot parse given Error object")},extractLocation:function(o){if(o.indexOf(":")===-1)return[o];var a=/(.+?)(?::(\d+))?(?::(\d+))?$/,u=a.exec(o.replace(/[()]/g,""));return[u[1],u[2]||void 0,u[3]||void 0]},parseV8OrIE:function(o){var a=o.stack.split(`
`).filter(function(u){return!!u.match(n)},this);return a.map(function(u){u.indexOf("(eval ")>-1&&(u=u.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var f=u.replace(/^\s+/,"").replace(/\(eval code/g,"("),c=f.match(/ (\((.+):(\d+):(\d+)\)$)/);f=c?f.replace(c[0],""):f;var d=f.split(/\s+/).slice(1),g=this.extractLocation(c?c[1]:d.pop()),l=d.join(" ")||void 0,h=["eval","<anonymous>"].indexOf(g[0])>-1?void 0:g[0];return new e({functionName:l,fileName:h,lineNumber:g[1],columnNumber:g[2],source:u})},this)},parseFFOrSafari:function(o){var a=o.stack.split(`
`).filter(function(u){return!u.match(i)},this);return a.map(function(u){if(u.indexOf(" > eval")>-1&&(u=u.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),u.indexOf("@")===-1&&u.indexOf(":")===-1)return new e({functionName:u});var f=/((.*".+"[^@]*)?[^@]*)(?:@)/,c=u.match(f),d=c&&c[1]?c[1]:void 0,g=this.extractLocation(u.replace(f,""));return new e({functionName:d,fileName:g[0],lineNumber:g[1],columnNumber:g[2],source:u})},this)},parseOpera:function(o){return!o.stacktrace||o.message.indexOf(`
`)>-1&&o.message.split(`
`).length>o.stacktrace.split(`
`).length?this.parseOpera9(o):o.stack?this.parseOpera11(o):this.parseOpera10(o)},parseOpera9:function(o){for(var a=/Line (\d+).*script (?:in )?(\S+)/i,u=o.message.split(`
`),f=[],c=2,d=u.length;c<d;c+=2){var g=a.exec(u[c]);g&&f.push(new e({fileName:g[2],lineNumber:g[1],source:u[c]}))}return f},parseOpera10:function(o){for(var a=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,u=o.stacktrace.split(`
`),f=[],c=0,d=u.length;c<d;c+=2){var g=a.exec(u[c]);g&&f.push(new e({functionName:g[3]||void 0,fileName:g[2],lineNumber:g[1],source:u[c]}))}return f},parseOpera11:function(o){var a=o.stack.split(`
`).filter(function(u){return!!u.match(t)&&!u.match(/^Error created at/)},this);return a.map(function(u){var f=u.split("@"),c=this.extractLocation(f.pop()),d=f.shift()||"",g=d.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,l;d.match(/\(([^)]*)\)/)&&(l=d.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var h=l===void 0||l==="[arguments not available]"?void 0:l.split(",");return new e({functionName:g,args:h,fileName:c[0],lineNumber:c[1],columnNumber:c[2],source:u})},this)}}})});var ht=I((qe,gt)=>{(function(r,e){"use strict";typeof define=="function"&&define.amd?define("stack-generator",["stackframe"],e):typeof qe=="object"?gt.exports=e($e()):r.StackGenerator=e(r.StackFrame)})(qe,function(r){return{backtrace:function(t){var n=[],i=10;typeof t=="object"&&typeof t.maxStackSize=="number"&&(i=t.maxStackSize);for(var s=arguments.callee;s&&n.length<i&&s.arguments;){for(var o=new Array(s.arguments.length),a=0;a<o.length;++a)o[a]=s.arguments[a];/function(?:\s+([\w$]+))+\s*\(/.test(s.toString())?n.push(new r({functionName:RegExp.$1||void 0,args:o})):n.push(new r({args:o}));try{s=s.caller}catch{break}}return n}}})});var Ve=I(O=>{function cr(r,e,t){if(e in r)return r[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}O.getArg=cr;var mt=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,lr=/^data:.+\,.+$/;function Ae(r){var e=r.match(mt);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}O.urlParse=Ae;function he(r){var e="";return r.scheme&&(e+=r.scheme+":"),e+="//",r.auth&&(e+=r.auth+"@"),r.host&&(e+=r.host),r.port&&(e+=":"+r.port),r.path&&(e+=r.path),e}O.urlGenerate=he;function vt(r){var e=r,t=Ae(r);if(t){if(!t.path)return r;e=t.path}for(var n=O.isAbsolute(e),i=e.split(/\/+/),s,o=0,a=i.length-1;a>=0;a--)s=i[a],s==="."?i.splice(a,1):s===".."?o++:o>0&&(s===""?(i.splice(a+1,o),o=0):(i.splice(a,2),o--));return e=i.join("/"),e===""&&(e=n?"/":"."),t?(t.path=e,he(t)):e}O.normalize=vt;function fr(r,e){r===""&&(r="."),e===""&&(e=".");var t=Ae(e),n=Ae(r);if(n&&(r=n.path||"/"),t&&!t.scheme)return n&&(t.scheme=n.scheme),he(t);if(t||e.match(lr))return e;if(n&&!n.host&&!n.path)return n.host=e,he(n);var i=e.charAt(0)==="/"?e:vt(r.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,he(n)):i}O.join=fr;O.isAbsolute=function(r){return r.charAt(0)==="/"||!!r.match(mt)};function dr(r,e){r===""&&(r="."),r=r.replace(/\/$/,"");for(var t=0;e.indexOf(r+"/")!==0;){var n=r.lastIndexOf("/");if(n<0||(r=r.slice(0,n),r.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(r.length+1)}O.relative=dr;var yt=function(){var r=Object.create(null);return!("__proto__"in r)}();function _t(r){return r}function gr(r){return St(r)?"$"+r:r}O.toSetString=yt?_t:gr;function hr(r){return St(r)?r.slice(1):r}O.fromSetString=yt?_t:hr;function St(r){if(!r)return!1;var e=r.length;if(e<9||r.charCodeAt(e-1)!==95||r.charCodeAt(e-2)!==95||r.charCodeAt(e-3)!==111||r.charCodeAt(e-4)!==116||r.charCodeAt(e-5)!==111||r.charCodeAt(e-6)!==114||r.charCodeAt(e-7)!==112||r.charCodeAt(e-8)!==95||r.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(r.charCodeAt(t)!==36)return!1;return!0}function pr(r,e,t){var n=r.source-e.source;return n!==0||(n=r.originalLine-e.originalLine,n!==0)||(n=r.originalColumn-e.originalColumn,n!==0||t)||(n=r.generatedColumn-e.generatedColumn,n!==0)||(n=r.generatedLine-e.generatedLine,n!==0)?n:r.name-e.name}O.compareByOriginalPositions=pr;function mr(r,e,t){var n=r.generatedLine-e.generatedLine;return n!==0||(n=r.generatedColumn-e.generatedColumn,n!==0||t)||(n=r.source-e.source,n!==0)||(n=r.originalLine-e.originalLine,n!==0)||(n=r.originalColumn-e.originalColumn,n!==0)?n:r.name-e.name}O.compareByGeneratedPositionsDeflated=mr;function pt(r,e){return r===e?0:r>e?1:-1}function vr(r,e){var t=r.generatedLine-e.generatedLine;return t!==0||(t=r.generatedColumn-e.generatedColumn,t!==0)||(t=pt(r.source,e.source),t!==0)||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0)?t:pt(r.name,e.name)}O.compareByGeneratedPositionsInflated=vr});var Et=I(B=>{B.GREATEST_LOWER_BOUND=1;B.LEAST_UPPER_BOUND=2;function Be(r,e,t,n,i,s){var o=Math.floor((e-r)/2)+r,a=i(t,n[o],!0);return a===0?o:a>0?e-o>1?Be(o,e,t,n,i,s):s==B.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-r>1?Be(r,o,t,n,i,s):s==B.LEAST_UPPER_BOUND?o:r<0?-1:r}B.search=function(e,t,n,i){if(t.length===0)return-1;var s=Be(-1,t.length,e,t,n,i||B.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(t[s],t[s-1],!0)===0;)--s;return s}});var wt=I(bt=>{var Ge=Ve(),Qe=Object.prototype.hasOwnProperty;function F(){this._array=[],this._set=Object.create(null)}F.fromArray=function(e,t){for(var n=new F,i=0,s=e.length;i<s;i++)n.add(e[i],t);return n};F.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length};F.prototype.add=function(e,t){var n=Ge.toSetString(e),i=Qe.call(this._set,n),s=this._array.length;(!i||t)&&this._array.push(e),i||(this._set[n]=s)};F.prototype.has=function(e){var t=Ge.toSetString(e);return Qe.call(this._set,t)};F.prototype.indexOf=function(e){var t=Ge.toSetString(e);if(Qe.call(this._set,t))return this._set[t];throw new Error('"'+e+'" is not in the set.')};F.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};F.prototype.toArray=function(){return this._array.slice()};bt.ArraySet=F});var Ct=I(ze=>{var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ze.encode=function(r){if(0<=r&&r<Pt.length)return Pt[r];throw new TypeError("Must be between 0 and 63: "+r)};ze.decode=function(r){var e=65,t=90,n=97,i=122,s=48,o=57,a=43,u=47,f=26,c=52;return e<=r&&r<=t?r-e:n<=r&&r<=i?r-n+f:s<=r&&r<=o?r-s+c:r==a?62:r==u?63:-1}});var At=I(He=>{var xt=Ct(),We=5,It=1<<We,Ot=It-1,$t=It;function yr(r){return r<0?(-r<<1)+1:(r<<1)+0}function _r(r){var e=(r&1)===1,t=r>>1;return e?-t:t}He.encode=function(e){var t="",n,i=yr(e);do n=i&Ot,i>>>=We,i>0&&(n|=$t),t+=xt.encode(n);while(i>0);return t};He.decode=function(e,t,n){var i=e.length,s=0,o=0,a,u;do{if(t>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=xt.decode(e.charCodeAt(t++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));a=!!(u&$t),u&=Ot,s=s+(u<<o),o+=We}while(a);n.value=_r(s),n.rest=t}});var Lt=I(Nt=>{function Je(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function Sr(r,e){return Math.round(r+Math.random()*(e-r))}function Ke(r,e,t,n){if(t<n){var i=Sr(t,n),s=t-1;Je(r,i,n);for(var o=r[n],a=t;a<n;a++)e(r[a],o)<=0&&(s+=1,Je(r,s,a));Je(r,s+1,a);var u=s+1;Ke(r,e,t,u-1),Ke(r,e,u+1,n)}}Nt.quickSort=function(r,e){Ke(r,e,0,r.length-1)}});var Mt=I(Ne=>{var p=Ve(),Ze=Et(),W=wt().ArraySet,Er=At(),pe=Lt().quickSort;function w(r){var e=r;return typeof r=="string"&&(e=JSON.parse(r.replace(/^\)\]\}'/,""))),e.sections!=null?new L(e):new P(e)}w.fromSourceMap=function(r){return P.fromSourceMap(r)};w.prototype._version=3;w.prototype.__generatedMappings=null;Object.defineProperty(w.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});w.prototype.__originalMappings=null;Object.defineProperty(w.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});w.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===";"||n===","};w.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};w.GENERATED_ORDER=1;w.ORIGINAL_ORDER=2;w.GREATEST_LOWER_BOUND=1;w.LEAST_UPPER_BOUND=2;w.prototype.eachMapping=function(e,t,n){var i=t||null,s=n||w.GENERATED_ORDER,o;switch(s){case w.GENERATED_ORDER:o=this._generatedMappings;break;case w.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(u){var f=u.source===null?null:this._sources.at(u.source);return f!=null&&a!=null&&(f=p.join(a,f)),{source:f,generatedLine:u.generatedLine,generatedColumn:u.generatedColumn,originalLine:u.originalLine,originalColumn:u.originalColumn,name:u.name===null?null:this._names.at(u.name)}},this).forEach(e,i)};w.prototype.allGeneratedPositionsFor=function(e){var t=p.getArg(e,"line"),n={source:p.getArg(e,"source"),originalLine:t,originalColumn:p.getArg(e,"column",0)};if(this.sourceRoot!=null&&(n.source=p.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",p.compareByOriginalPositions,Ze.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:p.getArg(o,"generatedLine",null),column:p.getArg(o,"generatedColumn",null),lastColumn:p.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var u=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==u;)i.push({line:p.getArg(o,"generatedLine",null),column:p.getArg(o,"generatedColumn",null),lastColumn:p.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};Ne.SourceMapConsumer=w;function P(r){var e=r;typeof r=="string"&&(e=JSON.parse(r.replace(/^\)\]\}'/,"")));var t=p.getArg(e,"version"),n=p.getArg(e,"sources"),i=p.getArg(e,"names",[]),s=p.getArg(e,"sourceRoot",null),o=p.getArg(e,"sourcesContent",null),a=p.getArg(e,"mappings"),u=p.getArg(e,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);n=n.map(String).map(p.normalize).map(function(f){return s&&p.isAbsolute(s)&&p.isAbsolute(f)?p.relative(s,f):f}),this._names=W.fromArray(i.map(String),!0),this._sources=W.fromArray(n,!0),this.sourceRoot=s,this.sourcesContent=o,this._mappings=a,this.file=u}P.prototype=Object.create(w.prototype);P.prototype.consumer=w;P.fromSourceMap=function(e){var t=Object.create(P.prototype),n=t._names=W.fromArray(e._names.toArray(),!0),i=t._sources=W.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),o=t.__generatedMappings=[],a=t.__originalMappings=[],u=0,f=s.length;u<f;u++){var c=s[u],d=new kt;d.generatedLine=c.generatedLine,d.generatedColumn=c.generatedColumn,c.source&&(d.source=i.indexOf(c.source),d.originalLine=c.originalLine,d.originalColumn=c.originalColumn,c.name&&(d.name=n.indexOf(c.name)),a.push(d)),o.push(d)}return pe(t.__originalMappings,p.compareByOriginalPositions),t};P.prototype._version=3;Object.defineProperty(P.prototype,"sources",{get:function(){return this._sources.toArray().map(function(r){return this.sourceRoot!=null?p.join(this.sourceRoot,r):r},this)}});function kt(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}P.prototype._parseMappings=function(e,t){for(var n=1,i=0,s=0,o=0,a=0,u=0,f=e.length,c=0,d={},g={},l=[],h=[],m,v,y,b,E;c<f;)if(e.charAt(c)===";")n++,c++,i=0;else if(e.charAt(c)===",")c++;else{for(m=new kt,m.generatedLine=n,b=c;b<f&&!this._charIsMappingSeparator(e,b);b++);if(v=e.slice(c,b),y=d[v],y)c+=v.length;else{for(y=[];c<b;)Er.decode(e,c,g),E=g.value,c=g.rest,y.push(E);if(y.length===2)throw new Error("Found a source, but no line and column");if(y.length===3)throw new Error("Found a source and line, but no column");d[v]=y}m.generatedColumn=i+y[0],i=m.generatedColumn,y.length>1&&(m.source=a+y[1],a+=y[1],m.originalLine=s+y[2],s=m.originalLine,m.originalLine+=1,m.originalColumn=o+y[3],o=m.originalColumn,y.length>4&&(m.name=u+y[4],u+=y[4])),h.push(m),typeof m.originalLine=="number"&&l.push(m)}pe(h,p.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,pe(l,p.compareByOriginalPositions),this.__originalMappings=l};P.prototype._findMapping=function(e,t,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Ze.search(e,t,s,o)};P.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};P.prototype.originalPositionFor=function(e){var t={generatedLine:p.getArg(e,"line"),generatedColumn:p.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",p.compareByGeneratedPositionsDeflated,p.getArg(e,"bias",w.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var s=p.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),this.sourceRoot!=null&&(s=p.join(this.sourceRoot,s)));var o=p.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:p.getArg(i,"originalLine",null),column:p.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};P.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};P.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(e=p.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(this.sourceRoot!=null&&(n=p.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if(n.scheme=="file"&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!n.path||n.path=="/")&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};P.prototype.generatedPositionFor=function(e){var t=p.getArg(e,"source");if(this.sourceRoot!=null&&(t=p.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};t=this._sources.indexOf(t);var n={source:t,originalLine:p.getArg(e,"line"),originalColumn:p.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",p.compareByOriginalPositions,p.getArg(e,"bias",w.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:p.getArg(s,"generatedLine",null),column:p.getArg(s,"generatedColumn",null),lastColumn:p.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ne.BasicSourceMapConsumer=P;function L(r){var e=r;typeof r=="string"&&(e=JSON.parse(r.replace(/^\)\]\}'/,"")));var t=p.getArg(e,"version"),n=p.getArg(e,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new W,this._names=new W;var i={line:-1,column:0};this._sections=n.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var o=p.getArg(s,"offset"),a=p.getArg(o,"line"),u=p.getArg(o,"column");if(a<i.line||a===i.line&&u<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=o,{generatedOffset:{generatedLine:a+1,generatedColumn:u+1},consumer:new w(p.getArg(s,"map"))}})}L.prototype=Object.create(w.prototype);L.prototype.constructor=w;L.prototype._version=3;Object.defineProperty(L.prototype,"sources",{get:function(){for(var r=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)r.push(this._sections[e].consumer.sources[t]);return r}});L.prototype.originalPositionFor=function(e){var t={generatedLine:p.getArg(e,"line"),generatedColumn:p.getArg(e,"column")},n=Ze.search(t,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};L.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};L.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s)return s}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};L.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(n.consumer.sources.indexOf(p.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};L.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],u=i.consumer._sources.at(a.source);i.consumer.sourceRoot!==null&&(u=p.join(i.consumer.sourceRoot,u)),this._sources.add(u),u=this._sources.indexOf(u);var f=i.consumer._names.at(a.name);this._names.add(f),f=this._names.indexOf(f);var c={source:u,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:f};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}pe(this.__generatedMappings,p.compareByGeneratedPositionsDeflated),pe(this.__originalMappings,p.compareByOriginalPositions)};Ne.IndexedSourceMapConsumer=L});var Tt=I((Xe,Rt)=>{(function(r,e){"use strict";typeof define=="function"&&define.amd?define("stacktrace-gps",["source-map","stackframe"],e):typeof Xe=="object"?Rt.exports=e(Mt(),$e()):r.StackTraceGPS=e(r.SourceMap||r.sourceMap,r.StackFrame)})(Xe,function(r,e){"use strict";function t(c){return new Promise(function(d,g){var l=new XMLHttpRequest;l.open("get",c),l.onerror=g,l.onreadystatechange=function(){l.readyState===4&&(l.status>=200&&l.status<300||c.substr(0,7)==="file://"&&l.responseText?d(l.responseText):g(new Error("HTTP status: "+l.status+" retrieving "+c)))},l.send()})}function n(c){if(typeof window<"u"&&window.atob)return window.atob(c);throw new Error("You must supply a polyfill for window.atob in this environment")}function i(c){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(c);throw new Error("You must supply a polyfill for JSON.parse in this environment")}function s(c,d){for(var g=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],l=c.split(`
`),h="",m=Math.min(d,20),v=0;v<m;++v){var y=l[d-v-1],b=y.indexOf("//");if(b>=0&&(y=y.substr(0,b)),y){h=y+h;for(var E=g.length,C=0;C<E;C++){var N=g[C].exec(h);if(N&&N[1])return N[1]}}}}function o(){if(typeof Object.defineProperty!="function"||typeof Object.create!="function")throw new Error("Unable to consume source maps in older browsers")}function a(c){if(typeof c!="object")throw new TypeError("Given StackFrame is not an object");if(typeof c.fileName!="string")throw new TypeError("Given file name is not a String");if(typeof c.lineNumber!="number"||c.lineNumber%1!==0||c.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if(typeof c.columnNumber!="number"||c.columnNumber%1!==0||c.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}function u(c){for(var d=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/mg,g,l;l=d.exec(c);)g=l[1];if(g)return g;throw new Error("sourceMappingURL not found")}function f(c,d,g){return new Promise(function(l,h){var m=d.originalPositionFor({line:c.lineNumber,column:c.columnNumber});if(m.source){var v=d.sourceContentFor(m.source);v&&(g[m.source]=v),l(new e({functionName:m.name||c.functionName,args:c.args,fileName:m.source,lineNumber:m.line,columnNumber:m.column}))}else h(new Error("Could not get original source for given stackframe and source map"))})}return function c(d){if(!(this instanceof c))return new c(d);d=d||{},this.sourceCache=d.sourceCache||{},this.sourceMapConsumerCache=d.sourceMapConsumerCache||{},this.ajax=d.ajax||t,this._atob=d.atob||n,this._get=function(l){return new Promise(function(h,m){var v=l.substr(0,5)==="data:";if(this.sourceCache[l])h(this.sourceCache[l]);else if(d.offline&&!v)m(new Error("Cannot make network requests in offline mode"));else if(v){var y=/^data:application\/json;([\w=:"-]+;)*base64,/,b=l.match(y);if(b){var E=b[0].length,C=l.substr(E),N=this._atob(C);this.sourceCache[l]=N,h(N)}else m(new Error("The encoding of the inline sourcemap is not supported"))}else{var G=this.ajax(l,{method:"get"});this.sourceCache[l]=G,G.then(h,m)}}.bind(this))},this._getSourceMapConsumer=function(l,h){return new Promise(function(m){if(this.sourceMapConsumerCache[l])m(this.sourceMapConsumerCache[l]);else{var v=new Promise(function(y,b){return this._get(l).then(function(E){typeof E=="string"&&(E=i(E.replace(/^\)\]\}'/,""))),typeof E.sourceRoot>"u"&&(E.sourceRoot=h),y(new r.SourceMapConsumer(E))},b)}.bind(this));this.sourceMapConsumerCache[l]=v,m(v)}}.bind(this))},this.pinpoint=function(l){return new Promise(function(h,m){this.getMappedLocation(l).then(function(v){function y(){h(v)}this.findFunctionName(v).then(h,y).catch(y)}.bind(this),m)}.bind(this))},this.findFunctionName=function(l){return new Promise(function(h,m){a(l),this._get(l.fileName).then(function(y){var b=l.lineNumber,E=l.columnNumber,C=s(y,b,E);h(C?new e({functionName:C,args:l.args,fileName:l.fileName,lineNumber:b,columnNumber:E}):l)},m).catch(m)}.bind(this))},this.getMappedLocation=function(l){return new Promise(function(h,m){o(),a(l);var v=this.sourceCache,y=l.fileName;this._get(y).then(function(b){var E=u(b),C=E.substr(0,5)==="data:",N=y.substring(0,y.lastIndexOf("/")+1);return E[0]!=="/"&&!C&&!/^https?:\/\/|^\/\//i.test(E)&&(E=N+E),this._getSourceMapConsumer(E,N).then(function(G){return f(l,G,v).then(h).catch(function(){h(l)})})}.bind(this),m).catch(m)}.bind(this))}}})});var Ft=I((Ye,Ut)=>{(function(r,e){"use strict";typeof define=="function"&&define.amd?define("stacktrace",["error-stack-parser","stack-generator","stacktrace-gps"],e):typeof Ye=="object"?Ut.exports=e(dt(),ht(),Tt()):r.StackTrace=e(r.ErrorStackParser,r.StackGenerator,r.StackTraceGPS)})(Ye,function(e,t,n){var i={filter:function(f){return(f.functionName||"").indexOf("StackTrace$$")===-1&&(f.functionName||"").indexOf("ErrorStackParser$$")===-1&&(f.functionName||"").indexOf("StackTraceGPS$$")===-1&&(f.functionName||"").indexOf("StackGenerator$$")===-1},sourceCache:{}},s=function(){try{throw new Error}catch(c){return c}};function o(f,c){var d={};return[f,c].forEach(function(g){for(var l in g)Object.prototype.hasOwnProperty.call(g,l)&&(d[l]=g[l]);return d}),d}function a(f){return f.stack||f["opera#sourceloc"]}function u(f,c){return typeof c=="function"?f.filter(c):f}return{get:function(c){var d=s();return a(d)?this.fromError(d,c):this.generateArtificially(c)},getSync:function(c){c=o(i,c);var d=s(),g=a(d)?e.parse(d):t.backtrace(c);return u(g,c.filter)},fromError:function(c,d){d=o(i,d);var g=new n(d);return new Promise(function(l){var h=u(e.parse(c),d.filter);l(Promise.all(h.map(function(m){return new Promise(function(v){function y(){v(m)}g.pinpoint(m).then(v,y).catch(y)})})))}.bind(this))},generateArtificially:function(c){c=o(i,c);var d=t.backtrace(c);return typeof c.filter=="function"&&(d=d.filter(c.filter)),Promise.resolve(d)},instrument:function(c,d,g,l){if(typeof c!="function")throw new Error("Cannot instrument non-function object");if(typeof c.__stacktraceOriginalFn=="function")return c;var h=function(){try{return this.get().then(d,g).catch(g),c.apply(l||this,arguments)}catch(v){throw a(v)&&this.fromError(v).then(d,g).catch(g),v}}.bind(this);return h.__stacktraceOriginalFn=c,h},deinstrument:function(c){if(typeof c!="function")throw new Error("Cannot de-instrument non-function object");return typeof c.__stacktraceOriginalFn=="function"?c.__stacktraceOriginalFn:c},report:function(c,d,g,l){return new Promise(function(h,m){var v=new XMLHttpRequest;if(v.onerror=m,v.onreadystatechange=function(){v.readyState===4&&(v.status>=200&&v.status<400?h(v.responseText):m(new Error("POST to "+d+" failed with status: "+v.status)))},v.open("post",d),v.setRequestHeader("Content-Type","application/json"),l&&typeof l.headers=="object"){var y=l.headers;for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&v.setRequestHeader(b,y[b])}var E={stack:c};g!=null&&(E.message=g),v.send(JSON.stringify(E))})}}})});var Zt=I(_=>{"use strict";var we=Symbol.for("react.element"),br=Symbol.for("react.portal"),wr=Symbol.for("react.fragment"),Pr=Symbol.for("react.strict_mode"),Cr=Symbol.for("react.profiler"),xr=Symbol.for("react.provider"),Ir=Symbol.for("react.context"),Or=Symbol.for("react.forward_ref"),$r=Symbol.for("react.suspense"),Ar=Symbol.for("react.memo"),Nr=Symbol.for("react.lazy"),qt=Symbol.iterator;function Lr(r){return r===null||typeof r!="object"?null:(r=qt&&r[qt]||r["@@iterator"],typeof r=="function"?r:null)}var Gt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qt=Object.assign,zt={};function H(r,e,t){this.props=r,this.context=e,this.refs=zt,this.updater=t||Gt}H.prototype.isReactComponent={};H.prototype.setState=function(r,e){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,e,"setState")};H.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function Wt(){}Wt.prototype=H.prototype;function tt(r,e,t){this.props=r,this.context=e,this.refs=zt,this.updater=t||Gt}var rt=tt.prototype=new Wt;rt.constructor=tt;Qt(rt,H.prototype);rt.isPureReactComponent=!0;var Vt=Array.isArray,Ht=Object.prototype.hasOwnProperty,nt={current:null},Jt={key:!0,ref:!0,__self:!0,__source:!0};function Kt(r,e,t){var n,i={},s=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Ht.call(e,n)&&!Jt.hasOwnProperty(n)&&(i[n]=e[n]);var a=arguments.length-2;if(a===1)i.children=t;else if(1<a){for(var u=Array(a),f=0;f<a;f++)u[f]=arguments[f+2];i.children=u}if(r&&r.defaultProps)for(n in a=r.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:we,type:r,key:s,ref:o,props:i,_owner:nt.current}}function kr(r,e){return{$$typeof:we,type:r.type,key:e,ref:r.ref,props:r.props,_owner:r._owner}}function it(r){return typeof r=="object"&&r!==null&&r.$$typeof===we}function Mr(r){var e={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(t){return e[t]})}var Bt=/\/+/g;function et(r,e){return typeof r=="object"&&r!==null&&r.key!=null?Mr(""+r.key):e.toString(36)}function ke(r,e,t,n,i){var s=typeof r;(s==="undefined"||s==="boolean")&&(r=null);var o=!1;if(r===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(r.$$typeof){case we:case br:o=!0}}if(o)return o=r,i=i(o),r=n===""?"."+et(o,0):n,Vt(i)?(t="",r!=null&&(t=r.replace(Bt,"$&/")+"/"),ke(i,e,t,"",function(f){return f})):i!=null&&(it(i)&&(i=kr(i,t+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Bt,"$&/")+"/")+r)),e.push(i)),1;if(o=0,n=n===""?".":n+":",Vt(r))for(var a=0;a<r.length;a++){s=r[a];var u=n+et(s,a);o+=ke(s,e,t,u,i)}else if(u=Lr(r),typeof u=="function")for(r=u.call(r),a=0;!(s=r.next()).done;)s=s.value,u=n+et(s,a++),o+=ke(s,e,t,u,i);else if(s==="object")throw e=String(r),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Le(r,e,t){if(r==null)return r;var n=[],i=0;return ke(r,n,"","",function(s){return e.call(t,s,i++)}),n}function Rr(r){if(r._status===-1){var e=r._result;e=e(),e.then(function(t){(r._status===0||r._status===-1)&&(r._status=1,r._result=t)},function(t){(r._status===0||r._status===-1)&&(r._status=2,r._result=t)}),r._status===-1&&(r._status=0,r._result=e)}if(r._status===1)return r._result.default;throw r._result}var x={current:null},Me={transition:null},Tr={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:Me,ReactCurrentOwner:nt};_.Children={map:Le,forEach:function(r,e,t){Le(r,function(){e.apply(this,arguments)},t)},count:function(r){var e=0;return Le(r,function(){e++}),e},toArray:function(r){return Le(r,function(e){return e})||[]},only:function(r){if(!it(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};_.Component=H;_.Fragment=wr;_.Profiler=Cr;_.PureComponent=tt;_.StrictMode=Pr;_.Suspense=$r;_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tr;_.cloneElement=function(r,e,t){if(r==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+r+".");var n=Qt({},r.props),i=r.key,s=r.ref,o=r._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=nt.current),e.key!==void 0&&(i=""+e.key),r.type&&r.type.defaultProps)var a=r.type.defaultProps;for(u in e)Ht.call(e,u)&&!Jt.hasOwnProperty(u)&&(n[u]=e[u]===void 0&&a!==void 0?a[u]:e[u])}var u=arguments.length-2;if(u===1)n.children=t;else if(1<u){a=Array(u);for(var f=0;f<u;f++)a[f]=arguments[f+2];n.children=a}return{$$typeof:we,type:r.type,key:i,ref:s,props:n,_owner:o}};_.createContext=function(r){return r={$$typeof:Ir,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},r.Provider={$$typeof:xr,_context:r},r.Consumer=r};_.createElement=Kt;_.createFactory=function(r){var e=Kt.bind(null,r);return e.type=r,e};_.createRef=function(){return{current:null}};_.forwardRef=function(r){return{$$typeof:Or,render:r}};_.isValidElement=it;_.lazy=function(r){return{$$typeof:Nr,_payload:{_status:-1,_result:r},_init:Rr}};_.memo=function(r,e){return{$$typeof:Ar,type:r,compare:e===void 0?null:e}};_.startTransition=function(r){var e=Me.transition;Me.transition={};try{r()}finally{Me.transition=e}};_.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};_.useCallback=function(r,e){return x.current.useCallback(r,e)};_.useContext=function(r){return x.current.useContext(r)};_.useDebugValue=function(){};_.useDeferredValue=function(r){return x.current.useDeferredValue(r)};_.useEffect=function(r,e){return x.current.useEffect(r,e)};_.useId=function(){return x.current.useId()};_.useImperativeHandle=function(r,e,t){return x.current.useImperativeHandle(r,e,t)};_.useInsertionEffect=function(r,e){return x.current.useInsertionEffect(r,e)};_.useLayoutEffect=function(r,e){return x.current.useLayoutEffect(r,e)};_.useMemo=function(r,e){return x.current.useMemo(r,e)};_.useReducer=function(r,e,t){return x.current.useReducer(r,e,t)};_.useRef=function(r){return x.current.useRef(r)};_.useState=function(r){return x.current.useState(r)};_.useSyncExternalStore=function(r,e,t){return x.current.useSyncExternalStore(r,e,t)};_.useTransition=function(){return x.current.useTransition()};_.version="18.2.0"});var Yt=I((ds,Xt)=>{"use strict";Xt.exports=Zt()});var J=class{_lastReferenceId=null;getLast(){return this._lastReferenceId}clearLast(){this._lastReferenceId=null}setLast(e){this._lastReferenceId=e}};var K=class{trace(e){this.log("debug",e)}info(e){this.log("info",e)}warn(e){this.log("warn",e)}error(e){this.log("error",e)}log(e,t){if(console){let n=`Exceptionless:${new Date().toISOString()} [${e}] ${t}`,i=console[e];i?i(n):console.log&&console.log(n)}}};var Z=class{trace(e){}info(e){}warn(e){}error(e){}};var S;(function(r){r.Error="@error",r.SimpleError="@simple_error",r.RequestInfo="@request",r.TraceLog="@trace",r.EnvironmentInfo="@environment",r.UserInfo="@user",r.UserDescription="@user_description",r.Version="@version",r.Level="@level",r.SubmissionMethod="@submission_method",r.ManualStackingInfo="@stack"})(S||(S={}));function Q(r){if(!r||r.length===0)return 0;let e=0;for(let t=0;t<r.length;t++){let n=r.charCodeAt(t);e=(e<<5)-e+n,e|=0}return e}function Re(r,e){let t={},n=(r||"").split("; ");for(let i of n){let s=i.split("=");D(s[0],e||[])||(t[s[0]]=s[1])}return A(t)?null:t}function q(){function r(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()}function Te(r){if(!r)return null;let t=/(v?((\d+)\.(\d+)(\.(\d+))?)(?:-([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?)/.exec(r);return t&&t.length>0?t[0]:null}function Ue(r,e){if(!r||r.length===0)return{};let t=r.split("&");if(t.length===0)return{};let n={};for(let i of t){let s=i.split("=");(!e||!D(s[0],e))&&(n[decodeURIComponent(s[0])]=decodeURIComponent(s[1]))}return A(n)?{}:n}function ur(){return Math.floor(Math.random()*9007199254740992)}function D(r,e,t=!0){if(typeof r!="string")return!1;let n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;return r=(t?r.toLowerCase():r).replace(n,""),(e||[]).some(i=>{if(typeof i!="string")return!1;if(i&&(i=(t?i.toLowerCase():i).replace(n,"")),!i)return r==null;if(i==="*")return!0;if(r==null)return!1;let s=i[0]==="*";s&&(i=i.slice(1));let o=i[i.length-1]==="*";return o&&(i=i.substring(0,i.length-1)),s&&o?i.length<=r.length&&r.indexOf(i,0)!==-1:s?ut(r,i):o?Pe(r,i):r===i})}function A(r){if(r==null)return!0;if(typeof r=="object")return Array.isArray(r)?r.length===0:r instanceof Date?!1:Object.getOwnPropertyNames(r).length===0;if(typeof r=="string"){let e=r.trim();return e.length===0||e==="{}"||e==="[]"}return!1}function Pe(r,e){return r.substring(0,e.length)===e}function ut(r,e){return r.indexOf(e,r.length-e.length)!==-1}function ct(r,e=10){function t(s){if(s==null)return!1;switch(typeof s){case"function":return!0;case"object":switch(Object.prototype.toString.call(s)){case"[object AsyncGenerator]":case"[object Generator]":case"[object ArrayBuffer]":case"[object Buffer]":case"[object DataView]":case"[object Promise]":case"[object WeakMap]":case"[object WeakSet]":return!0}if("writeBigInt64LE"in s)return!0;break}return!1}function n(s){function o(a){return a!==null&&typeof a=="object"&&typeof a.toJSON=="function"}if(typeof s=="bigint")return`${s.toString()}n`;if(typeof s=="object"){if(Array.isArray(s)||s instanceof Date)return s;if(s instanceof Map){let u={};for(let[f,c]of s)u[f]=c;return u}if(s instanceof RegExp)return s.toString();if(s instanceof Set)return Array.from(s);let a=Object.getPrototypeOf(Uint8Array);return s instanceof a?Array.from(s):o(s)?n(s.toJSON()):s}return typeof s=="symbol"?s.description:s}function i(s,o,a=10,u=new WeakSet,f=!1){if(s==null)return s;if(a>o||t(s))return;let c=n(s);if(typeof c=="object"){if(a==o)return;if(Array.isArray(c)){let l=f?a+1:a;return c.map(h=>i(h,o,l,u,!0))}if(c instanceof Date)return c;if(Object.prototype.toString.call(c)==="[object Object]"){if(u.has(c))return;u.add(c)}let d=new Set([...Object.getOwnPropertyNames(c),...Object.getOwnPropertySymbols(c)]);for(let l in c)d.add(l);let g={};for(let l of d){let h=n(l),m=c[l];g[h]=i(m,o,a+1,u)}return g}return c}if(!(e<0))return i(r,e,0)}function k(r,e,t=10){function n(s,o){return JSON.stringify(s,(a,u)=>{if(!D(a,o))return u})}if(r===void 0)return r;let i=ct(r,t);return n(i,e||[])}function Ce(r,e=!1){if(typeof r=="boolean")return r;if(r===null||typeof r!="number"&&typeof r!="string")return e;switch((r+"").toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case null:return!1}return e}function xe(r,e="Unknown Error"){if(r==null){let n=new Error(e);return n.stack=void 0,n}if(r instanceof Error)return r;if(typeof r=="string"){let n=new Error(r);return n.stack=void 0,n}let t=new Error(k(r)||e);return t.stack=void 0,t}function R(r){typeof r=="object"&&"unref"in r&&r.unref()}var X=class{priority=100;name="HeartbeatPlugin";_interval;_intervalId;constructor(e=6e4){this._interval=e>=3e4?e:6e4}startup(){return clearInterval(this._intervalId),this._intervalId=void 0,Promise.resolve()}suspend(){return clearInterval(this._intervalId),this._intervalId=void 0,Promise.resolve()}run(e){if(this._interval<=0)return Promise.resolve();clearInterval(this._intervalId),this._intervalId=void 0;let{config:t}=e.client;if(!t.currentSessionIdentifier){let n=e.event.data?.[S.UserInfo];if(!n?.identity)return Promise.resolve();t.currentSessionIdentifier=n.identity}return t.currentSessionIdentifier&&(this._intervalId=setInterval(()=>void e.client.submitSessionHeartbeat(t.currentSessionIdentifier),this._interval),R(this._intervalId)),Promise.resolve()}};var Y=class{priority=25;name="SessionIdManagementPlugin";run(e){let t=e.event,n=t.type==="session",{config:i}=e.client;return(n||!i.currentSessionIdentifier)&&(i.currentSessionIdentifier=q().replaceAll("-","")),n?t.reference_id=i.currentSessionIdentifier:(t.data||(t.data={}),t.data["@ref:session"]=i.currentSessionIdentifier),Promise.resolve()}};var ee=class{priority=10;name="ConfigurationDefaultsPlugin";run(e){let{dataExclusions:t,defaultData:n,defaultTags:i}=e.client.config,s=e.event;if(i&&(s.tags=[...s.tags||[],...i]),n){s.data||(s.data={});for(let o in n){if(s.data[o]!==void 0||A(n[o]))continue;let a=k(n[o],t);A(a)||(s.data[o]=JSON.parse(a))}}return Promise.resolve()}};var te=class{priority=1010;name="DuplicateCheckerPlugin";_mergedEvents=[];_processedHashCodes=[];_getCurrentTime;_intervalId;_interval;constructor(e=()=>Date.now(),t=3e4){this._getCurrentTime=e,this._interval=t}startup(){return clearInterval(this._intervalId),this._intervalId=setInterval(()=>void this.submitEvents(),this._interval),R(this._intervalId),Promise.resolve()}async suspend(){clearInterval(this._intervalId),this._intervalId=void 0,await this.submitEvents()}run(e){function t(s){let o=0;for(;s;)s.message&&s.message.length&&(o+=o*397^Q(s.message)),s.stack_trace&&s.stack_trace.length&&(o+=o*397^Q(JSON.stringify(s.stack_trace))),s=s.inner;return o}let n=e.event.data?.[S.Error],i=t(n);if(i){let s=e.event.count||1,o=this._getCurrentTime(),a=this._mergedEvents.filter(u=>u.hashCode===i)[0];if(a&&(a.incrementCount(s),a.updateDate(e.event.date),e.log.info("Ignoring duplicate event with hash: "+i),e.cancelled=!0),!e.cancelled&&this._processedHashCodes.some(u=>u.hash===i&&u.timestamp>=o-this._interval)&&(e.log.trace("Adding event with hash: "+i),this._mergedEvents.push(new Fe(i,e,s)),e.cancelled=!0),!e.cancelled)for(e.log.trace(`Enqueueing event with hash: ${i} to cache`),this._processedHashCodes.push({hash:i,timestamp:o});this._processedHashCodes.length>50;)this._processedHashCodes.shift()}return Promise.resolve()}async submitEvents(){for(;this._mergedEvents.length>0;)await this._mergedEvents.shift()?.resubmit()}},Fe=class{hashCode;_count;_context;constructor(e,t,n){this.hashCode=e,this._context=t,this._count=n}incrementCount(e){this._count+=e}async resubmit(){this._context.event.count=this._count,await this._context.client.config.services.queue.enqueue(this._context.event)}updateDate(e){let t=this._context.event;e&&t.date&&e>t.date&&(t.date=e)}};var re=class{priority=45;name="EventExclusionPlugin";run(e){let t=e.event,n=e.log,i=e.client.config.settings;if(t.type==="log"){let s=this.getMinLogLevel(i,t.source),o=this.getLogLevel(t.data&&t.data[S.Level]);o!==-1&&(o===6||o<s)&&(n.info("Cancelling log event due to minimum log level."),e.cancelled=!0)}else if(t.type==="error"){let s=t.data&&t.data[S.Error];for(;!e.cancelled&&s;)this.getTypeAndSourceSetting(i,t.type,s.type,!0)===!1&&(n.info(`Cancelling error from excluded exception type: ${s.type}`),e.cancelled=!0),s=s.inner}else this.getTypeAndSourceSetting(i,t.type,t.source,!0)===!1&&(n.info(`Cancelling event from excluded type: ${t.type} and source: ${t.source}`),e.cancelled=!0);return Promise.resolve()}getLogLevel(e){switch((e||"").toLowerCase().trim()){case"trace":case"true":case"1":case"yes":return 0;case"debug":return 1;case"info":return 2;case"warn":return 3;case"error":return 4;case"fatal":return 5;case"off":case"false":case"0":case"no":return 6;default:return-1}}getMinLogLevel(e,t){return this.getLogLevel(this.getTypeAndSourceSetting(e,"log",t,"other")+"")}getTypeAndSourceSetting(e={},t,n,i){if(!t)return i;n||(n="");let s=t==="log",o=`@@${t}:`,a=e[o+n];if(a)return s?a:Ce(a);let u=Object.keys(e).sort((f,c)=>c.length-f.length||f.localeCompare(c));for(let f of u){if(!Pe(f.toLowerCase(),o))continue;let c=f.substring(o.length);if(D(n,[c]))return s?e[f]:Ce(e[f])}return i}};var ne=class{priority=20;name="ReferenceIdPlugin";run(e){return!e.event.reference_id&&e.event.type==="error"&&(e.event.reference_id=q().replaceAll("-","").substring(0,10)),Promise.resolve()}};var Ie=["arguments","column","columnNumber","description","fileName","message","name","number","line","lineNumber","opera#sourceloc","sourceId","sourceURL","stack","stackArray","stacktrace"],V=class{priority=30;name="SimpleErrorPlugin";async run(e){let t=e.eventContext.getException();if(t&&(e.event.type||(e.event.type="error"),e.event.data&&!e.event.data[S.SimpleError])){let n={type:t.name||"Error",message:t.message,stack_trace:t.stack,data:{}},i=e.client.config.dataExclusions.concat(Ie),s=k(t,i);A(s)||(n.data["@ext"]=JSON.parse(s)),e.event.data[S.SimpleError]=n}return Promise.resolve()}};var ie=class{priority=100;name="SubmissionMethodPlugin";run(e){let t=e.eventContext.getSubmissionMethod();return t&&e.event.data&&(e.event.data[S.SubmissionMethod]=t),Promise.resolve()}};var T=class{static async startup(e){for(let t of e.client.config.plugins)if(t.startup)try{await t.startup(e)}catch(n){e.log.error(`Error running plugin startup"${t.name}": ${n instanceof Error?n.message:n+""}`)}}static async suspend(e){for(let t of e.client.config.plugins)if(t.suspend)try{await t.suspend(e)}catch(n){e.log.error(`Error running plugin suspend"${t.name}": ${n instanceof Error?n.message:n+""}`)}}static async run(e){for(let t of e.client.config.plugins){if(e.cancelled)break;if(t.run)try{await t.run(e)}catch(n){e.cancelled=!0,e.log.error(`Error running plugin "${t.name}": ${n instanceof Error?n.message:n+""}. Discarding Event.`)}}}static addDefaultPlugins(e){e.addPlugin(new ee),e.addPlugin(new V),e.addPlugin(new ne),e.addPlugin(new te),e.addPlugin(new re),e.addPlugin(new ie)}};var se=class{config;maxItems;_handlers=[];_suspendProcessingUntil;_discardQueuedItemsUntil;_processingQueue=!1;_queueIntervalId;QUEUE_PREFIX="q:";_lastFileTimestamp=0;_queue=[];_loadPersistedEvents=!0;constructor(e,t=250){this.config=e,this.maxItems=t}async enqueue(e){let t="The event will not be queued.",n=this.config,i=n.services.log;if(!n.enabled){i.info(`Configuration is disabled. ${t}`);return}if(!n.isValid){i.info(`Invalid Api Key. ${t}`);return}if(this.areQueuedItemsDiscarded()){i.info(`Queue items are currently being discarded. ${t}`);return}let s=await this.enqueueEvent(e),o=`type=${e.type} reference_id=${e.reference_id} source=${e.source} message=${e.message}`;i.info(`Enqueued event: ${s} (${o})`)}async process(){let e="The queue will not be processed",{log:t}=this.config.services;if(!this._processingQueue){if(t.trace("Processing queue..."),!this.config.enabled){t.info(`Configuration is disabled: ${e}`);return}if(!this.config.isValid){t.info(`Invalid Api Key: ${e}`);return}this._processingQueue=!0;try{this._loadPersistedEvents&&(this.config.usePersistedQueueStorage&&await this.loadEvents(),this._loadPersistedEvents=!1);let n=this._queue.slice(0,this.config.submissionBatchSize);if(!n||n.length===0){this._processingQueue=!1;return}t.info(`Sending ${n.length} events to ${this.config.serverUrl}`);let i=n.map(o=>o.event),s=await this.config.services.submissionClient.submitEvents(i);await this.processSubmissionResponse(s,n),await this.eventsPosted(i,s),t.trace("Finished processing queue"),this._processingQueue=!1}catch(n){t.error(`Error processing queue: ${n instanceof Error?n.message:n+""}`),await this.suspendProcessing(),this._processingQueue=!1}}}startup(){return this._queueIntervalId||(this._queueIntervalId=setInterval(()=>void this.onProcessQueue(),1e4),R(this._queueIntervalId)),Promise.resolve()}suspend(){return clearInterval(this._queueIntervalId),this._queueIntervalId=void 0,Promise.resolve()}async suspendProcessing(e,t,n){let i=this.config,s=new Date;(!e||e<=0)&&(e=Math.ceil(s.getMinutes()/15)*15-s.getMinutes()),i.services.log.info(`Suspending p