country-flag-cli 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cli.js CHANGED
@@ -1,36 +1,39 @@
1
1
  #!/usr/bin/env node
2
- var Rd=Object.create;var fi=Object.defineProperty;var Ad=Object.getOwnPropertyDescriptor;var Pd=Object.getOwnPropertyNames;var qd=Object.getPrototypeOf,Nd=Object.prototype.hasOwnProperty;var Md=t=>fi(t,"__esModule",{value:!0});var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var kd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Pd(e))!Nd.call(t,i)&&(r||i!=="default")&&fi(t,i,{get:()=>e[i],enumerable:!(n=Ad(e,i))||n.enumerable});return t},li=(t,e)=>kd(Md(fi(t!=null?Rd(qd(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var gs=b((jr,vs)=>{var Dd=require("events").EventEmitter,di=require("child_process").spawn,Dr=require("path"),Fd=Dr.dirname,ds=Dr.basename,ps=require("fs");require("util").inherits(j,Dd);jr=vs.exports=new j;jr.Command=j;jr.Option=Nt;function Nt(t,e){this.flags=t,this.required=t.indexOf("<")>=0,this.optional=t.indexOf("[")>=0,this.bool=t.indexOf("-no-")===-1,t=t.split(/[ ,|]+/),t.length>1&&!/^[[<]/.test(t[1])&&(this.short=t.shift()),this.long=t.shift(),this.description=e||""}Nt.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Nt.prototype.attributeName=function(){return jd(this.name())};Nt.prototype.is=function(t){return this.short===t||this.long===t};function j(t){this.commands=[],this.options=[],this._execs={},this._allowUnknownOption=!1,this._args=[],this._name=t||""}j.prototype.command=function(t,e,r){typeof e=="object"&&e!==null&&(r=e,e=null),r=r||{};var n=t.split(/ +/),i=new j(n.shift());return e&&(i.description(e),this.executables=!0,this._execs[i._name]=!0,r.isDefault&&(this.defaultExecutable=i._name)),i._noHelp=!!r.noHelp,this.commands.push(i),i.parseExpectedArgs(n),i.parent=this,e?this:i};j.prototype.arguments=function(t){return this.parseExpectedArgs(t.split(/ +/))};j.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};j.prototype.parseExpectedArgs=function(t){if(!!t.length){var e=this;return t.forEach(function(r){var n={required:!1,name:"",variadic:!1};switch(r[0]){case"<":n.required=!0,n.name=r.slice(1,-1);break;case"[":n.name=r.slice(1,-1);break}n.name.length>3&&n.name.slice(-3)==="..."&&(n.variadic=!0,n.name=n.name.slice(0,-3)),n.name&&e._args.push(n)}),this}};j.prototype.action=function(t){var e=this,r=function(o,a){o=o||[],a=a||[];var s=e.parseOptions(a);hs(e,s.unknown),s.unknown.length>0&&e.unknownOption(s.unknown[0]),s.args.length&&(o=s.args.concat(o)),e._args.forEach(function(u,c){u.required&&o[c]==null?e.missingArgument(u.name):u.variadic&&(c!==e._args.length-1&&e.variadicArgNotLast(u.name),o[c]=o.splice(c))}),e._args.length?o[e._args.length]=e:o.push(e),t.apply(e,o)},n=this.parent||this,i=n===this?"*":this._name;return n.on("command:"+i,r),this._alias&&n.on("command:"+this._alias,r),this};j.prototype.option=function(t,e,r,n){var i=this,o=new Nt(t,e),a=o.name(),s=o.attributeName();if(typeof r!="function")if(r instanceof RegExp){var u=r;r=function(c,l){var d=u.exec(c);return d?d[0]:l}}else n=r,r=null;return(!o.bool||o.optional||o.required)&&(o.bool||(n=!0),n!==void 0&&(i[s]=n,o.defaultValue=n)),this.options.push(o),this.on("option:"+a,function(c){c!==null&&r&&(c=r(c,i[s]===void 0?n:i[s])),typeof i[s]=="boolean"||typeof i[s]=="undefined"?c==null?i[s]=o.bool?n||!0:!1:i[s]=c:c!==null&&(i[s]=c)}),this};j.prototype.allowUnknownOption=function(t){return this._allowUnknownOption=arguments.length===0||t,this};j.prototype.parse=function(t){this.executables&&this.addImplicitHelpCommand(),this.rawArgs=t,this._name=this._name||ds(t[1],".js"),this.executables&&t.length<3&&!this.defaultExecutable&&t.push("--help");var e=this.parseOptions(this.normalize(t.slice(2))),r=this.args=e.args,n=this.parseArgs(this.args,e.unknown),i=n.args[0],o=null;return i&&(o=this.commands.filter(function(a){return a.alias()===i})[0]),this._execs[i]===!0?this.executeSubCommand(t,r,e.unknown):o?(r[0]=o._name,this.executeSubCommand(t,r,e.unknown)):this.defaultExecutable?(r.unshift(this.defaultExecutable),this.executeSubCommand(t,r,e.unknown)):n};j.prototype.executeSubCommand=function(t,e,r){e=e.concat(r),e.length||this.help(),e[0]==="help"&&e.length===1&&this.help(),e[0]==="help"&&(e[0]=e[1],e[1]="--help");var n=t[1],i=ds(n,Dr.extname(n))+"-"+e[0],o,a=ps.realpathSync(n);o=Fd(a);var s=Dr.join(o,i),u=!1;pi(s+".js")?(i=s+".js",u=!0):pi(s+".ts")?(i=s+".ts",u=!0):pi(s)&&(i=s),e=e.slice(1);var c;process.platform!=="win32"?u?(e.unshift(i),e=(process.execArgv||[]).concat(e),c=di(process.argv[0],e,{stdio:"inherit",customFds:[0,1,2]})):c=di(i,e,{stdio:"inherit",customFds:[0,1,2]}):(e.unshift(i),c=di(process.execPath,e,{stdio:"inherit"}));var l=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];l.forEach(function(d){process.on(d,function(){c.killed===!1&&c.exitCode===null&&c.kill(d)})}),c.on("close",process.exit.bind(process)),c.on("error",function(d){d.code==="ENOENT"?console.error("error: %s(1) does not exist, try --help",i):d.code==="EACCES"&&console.error("error: %s(1) not executable. try chmod or run with root",i),process.exit(1)}),this.runningCommand=c};j.prototype.normalize=function(t){for(var e=[],r,n,i,o=0,a=t.length;o<a;++o)if(r=t[o],o>0&&(n=this.optionFor(t[o-1])),r==="--"){e=e.concat(t.slice(o));break}else n&&n.required?e.push(r):r.length>1&&r[0]==="-"&&r[1]!=="-"?r.slice(1).split("").forEach(function(s){e.push("-"+s)}):/^--/.test(r)&&~(i=r.indexOf("="))?e.push(r.slice(0,i),r.slice(i+1)):e.push(r);return e};j.prototype.parseArgs=function(t,e){var r;return t.length?(r=t[0],this.listeners("command:"+r).length?this.emit("command:"+t.shift(),t,e):this.emit("command:*",t)):(hs(this,e),e.length>0&&this.unknownOption(e[0]),this.commands.length===0&&this._args.filter(function(n){return n.required}).length===0&&this.emit("command:*")),this};j.prototype.optionFor=function(t){for(var e=0,r=this.options.length;e<r;++e)if(this.options[e].is(t))return this.options[e]};j.prototype.parseOptions=function(t){for(var e=[],r=t.length,n,i,o,a=[],s=0;s<r;++s){if(o=t[s],n){e.push(o);continue}if(o==="--"){n=!0;continue}if(i=this.optionFor(o),i){if(i.required){if(o=t[++s],o==null)return this.optionMissingArgument(i);this.emit("option:"+i.name(),o)}else i.optional?(o=t[s+1],o==null||o[0]==="-"&&o!=="-"?o=null:++s,this.emit("option:"+i.name(),o)):this.emit("option:"+i.name());continue}if(o.length>1&&o[0]==="-"){a.push(o),s+1<t.length&&t[s+1][0]!=="-"&&a.push(t[++s]);continue}e.push(o)}return{args:e,unknown:a}};j.prototype.opts=function(){for(var t={},e=this.options.length,r=0;r<e;r++){var n=this.options[r].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t};j.prototype.missingArgument=function(t){console.error("error: missing required argument `%s'",t),process.exit(1)};j.prototype.optionMissingArgument=function(t,e){e?console.error("error: option `%s' argument missing, got `%s'",t.flags,e):console.error("error: option `%s' argument missing",t.flags),process.exit(1)};j.prototype.unknownOption=function(t){this._allowUnknownOption||(console.error("error: unknown option `%s'",t),process.exit(1))};j.prototype.variadicArgNotLast=function(t){console.error("error: variadic arguments must be last `%s'",t),process.exit(1)};j.prototype.version=function(t,e){if(arguments.length===0)return this._version;this._version=t,e=e||"-V, --version";var r=new Nt(e,"output the version number");return this._versionOptionName=r.long.substr(2)||"version",this.options.push(r),this.on("option:"+this._versionOptionName,function(){process.stdout.write(t+`
3
- `),process.exit(0)}),this};j.prototype.description=function(t,e){return arguments.length===0?this._description:(this._description=t,this._argsDescription=e,this)};j.prototype.alias=function(t){var e=this;if(this.commands.length!==0&&(e=this.commands[this.commands.length-1]),arguments.length===0)return e._alias;if(t===e._name)throw new Error("Command alias can't be the same as its name");return e._alias=t,this};j.prototype.usage=function(t){var e=this._args.map(function(n){return _s(n)}),r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+e.join(" "):"");return arguments.length===0?this._usage||r:(this._usage=t,this)};j.prototype.name=function(t){return arguments.length===0?this._name:(this._name=t,this)};j.prototype.prepareCommands=function(){return this.commands.filter(function(t){return!t._noHelp}).map(function(t){var e=t._args.map(function(r){return _s(r)}).join(" ");return[t._name+(t._alias?"|"+t._alias:"")+(t.options.length?" [options]":"")+(e?" "+e:""),t._description]})};j.prototype.largestCommandLength=function(){var t=this.prepareCommands();return t.reduce(function(e,r){return Math.max(e,r[0].length)},0)};j.prototype.largestOptionLength=function(){var t=[].slice.call(this.options);return t.push({flags:"-h, --help"}),t.reduce(function(e,r){return Math.max(e,r.flags.length)},0)};j.prototype.largestArgLength=function(){return this._args.reduce(function(t,e){return Math.max(t,e.name.length)},0)};j.prototype.padWidth=function(){var t=this.largestOptionLength();return this._argsDescription&&this._args.length&&this.largestArgLength()>t&&(t=this.largestArgLength()),this.commands&&this.commands.length&&this.largestCommandLength()>t&&(t=this.largestCommandLength()),t};j.prototype.optionHelp=function(){var t=this.padWidth();return this.options.map(function(e){return Fr(e.flags,t)+" "+e.description+(e.bool&&e.defaultValue!==void 0?" (default: "+JSON.stringify(e.defaultValue)+")":"")}).concat([Fr("-h, --help",t)+" output usage information"]).join(`
4
- `)};j.prototype.commandHelp=function(){if(!this.commands.length)return"";var t=this.prepareCommands(),e=this.padWidth();return["Commands:",t.map(function(r){var n=r[1]?" "+r[1]:"";return(n?Fr(r[0],e):r[0])+n}).join(`
2
+ var ch=Object.create;var Bi=Object.defineProperty;var lh=Object.getOwnPropertyDescriptor;var fh=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,ph=Object.prototype.hasOwnProperty;var hh=t=>Bi(t,"__esModule",{value:!0});var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var vh=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of fh(e))!ph.call(t,i)&&(r||i!=="default")&&Bi(t,i,{get:()=>e[i],enumerable:!(n=lh(e,i))||n.enumerable});return t},Gi=(t,e)=>vh(hh(Bi(t!=null?ch(dh(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var gu=b((fn,_u)=>{var _h=require("events").EventEmitter,zi=require("child_process").spawn,cn=require("path"),gh=cn.dirname,du=cn.basename,pu=require("fs");require("util").inherits(U,_h);fn=_u.exports=new U;fn.Command=U;fn.Option=Kt;function Kt(t,e){this.flags=t,this.required=t.indexOf("<")>=0,this.optional=t.indexOf("[")>=0,this.bool=t.indexOf("-no-")===-1,t=t.split(/[ ,|]+/),t.length>1&&!/^[[<]/.test(t[1])&&(this.short=t.shift()),this.long=t.shift(),this.description=e||""}Kt.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Kt.prototype.attributeName=function(){return mh(this.name())};Kt.prototype.is=function(t){return this.short===t||this.long===t};function U(t){this.commands=[],this.options=[],this._execs={},this._allowUnknownOption=!1,this._args=[],this._name=t||""}U.prototype.command=function(t,e,r){typeof e=="object"&&e!==null&&(r=e,e=null),r=r||{};var n=t.split(/ +/),i=new U(n.shift());return e&&(i.description(e),this.executables=!0,this._execs[i._name]=!0,r.isDefault&&(this.defaultExecutable=i._name)),i._noHelp=!!r.noHelp,this.commands.push(i),i.parseExpectedArgs(n),i.parent=this,e?this:i};U.prototype.arguments=function(t){return this.parseExpectedArgs(t.split(/ +/))};U.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};U.prototype.parseExpectedArgs=function(t){if(!!t.length){var e=this;return t.forEach(function(r){var n={required:!1,name:"",variadic:!1};switch(r[0]){case"<":n.required=!0,n.name=r.slice(1,-1);break;case"[":n.name=r.slice(1,-1);break}n.name.length>3&&n.name.slice(-3)==="..."&&(n.variadic=!0,n.name=n.name.slice(0,-3)),n.name&&e._args.push(n)}),this}};U.prototype.action=function(t){var e=this,r=function(o,s){o=o||[],s=s||[];var a=e.parseOptions(s);hu(e,a.unknown),a.unknown.length>0&&e.unknownOption(a.unknown[0]),a.args.length&&(o=a.args.concat(o)),e._args.forEach(function(u,c){u.required&&o[c]==null?e.missingArgument(u.name):u.variadic&&(c!==e._args.length-1&&e.variadicArgNotLast(u.name),o[c]=o.splice(c))}),e._args.length?o[e._args.length]=e:o.push(e),t.apply(e,o)},n=this.parent||this,i=n===this?"*":this._name;return n.on("command:"+i,r),this._alias&&n.on("command:"+this._alias,r),this};U.prototype.option=function(t,e,r,n){var i=this,o=new Kt(t,e),s=o.name(),a=o.attributeName();if(typeof r!="function")if(r instanceof RegExp){var u=r;r=function(c,l){var d=u.exec(c);return d?d[0]:l}}else n=r,r=null;return(!o.bool||o.optional||o.required)&&(o.bool||(n=!0),n!==void 0&&(i[a]=n,o.defaultValue=n)),this.options.push(o),this.on("option:"+s,function(c){c!==null&&r&&(c=r(c,i[a]===void 0?n:i[a])),typeof i[a]=="boolean"||typeof i[a]=="undefined"?c==null?i[a]=o.bool?n||!0:!1:i[a]=c:c!==null&&(i[a]=c)}),this};U.prototype.allowUnknownOption=function(t){return this._allowUnknownOption=arguments.length===0||t,this};U.prototype.parse=function(t){this.executables&&this.addImplicitHelpCommand(),this.rawArgs=t,this._name=this._name||du(t[1],".js"),this.executables&&t.length<3&&!this.defaultExecutable&&t.push("--help");var e=this.parseOptions(this.normalize(t.slice(2))),r=this.args=e.args,n=this.parseArgs(this.args,e.unknown),i=n.args[0],o=null;return i&&(o=this.commands.filter(function(s){return s.alias()===i})[0]),this._execs[i]===!0?this.executeSubCommand(t,r,e.unknown):o?(r[0]=o._name,this.executeSubCommand(t,r,e.unknown)):this.defaultExecutable?(r.unshift(this.defaultExecutable),this.executeSubCommand(t,r,e.unknown)):n};U.prototype.executeSubCommand=function(t,e,r){e=e.concat(r),e.length||this.help(),e[0]==="help"&&e.length===1&&this.help(),e[0]==="help"&&(e[0]=e[1],e[1]="--help");var n=t[1],i=du(n,cn.extname(n))+"-"+e[0],o,s=pu.realpathSync(n);o=gh(s);var a=cn.join(o,i),u=!1;Vi(a+".js")?(i=a+".js",u=!0):Vi(a+".ts")?(i=a+".ts",u=!0):Vi(a)&&(i=a),e=e.slice(1);var c;process.platform!=="win32"?u?(e.unshift(i),e=(process.execArgv||[]).concat(e),c=zi(process.argv[0],e,{stdio:"inherit",customFds:[0,1,2]})):c=zi(i,e,{stdio:"inherit",customFds:[0,1,2]}):(e.unshift(i),c=zi(process.execPath,e,{stdio:"inherit"}));var l=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];l.forEach(function(d){process.on(d,function(){c.killed===!1&&c.exitCode===null&&c.kill(d)})}),c.on("close",process.exit.bind(process)),c.on("error",function(d){d.code==="ENOENT"?console.error("error: %s(1) does not exist, try --help",i):d.code==="EACCES"&&console.error("error: %s(1) not executable. try chmod or run with root",i),process.exit(1)}),this.runningCommand=c};U.prototype.normalize=function(t){for(var e=[],r,n,i,o=0,s=t.length;o<s;++o)if(r=t[o],o>0&&(n=this.optionFor(t[o-1])),r==="--"){e=e.concat(t.slice(o));break}else n&&n.required?e.push(r):r.length>1&&r[0]==="-"&&r[1]!=="-"?r.slice(1).split("").forEach(function(a){e.push("-"+a)}):/^--/.test(r)&&~(i=r.indexOf("="))?e.push(r.slice(0,i),r.slice(i+1)):e.push(r);return e};U.prototype.parseArgs=function(t,e){var r;return t.length?(r=t[0],this.listeners("command:"+r).length?this.emit("command:"+t.shift(),t,e):this.emit("command:*",t)):(hu(this,e),e.length>0&&this.unknownOption(e[0]),this.commands.length===0&&this._args.filter(function(n){return n.required}).length===0&&this.emit("command:*")),this};U.prototype.optionFor=function(t){for(var e=0,r=this.options.length;e<r;++e)if(this.options[e].is(t))return this.options[e]};U.prototype.parseOptions=function(t){for(var e=[],r=t.length,n,i,o,s=[],a=0;a<r;++a){if(o=t[a],n){e.push(o);continue}if(o==="--"){n=!0;continue}if(i=this.optionFor(o),i){if(i.required){if(o=t[++a],o==null)return this.optionMissingArgument(i);this.emit("option:"+i.name(),o)}else i.optional?(o=t[a+1],o==null||o[0]==="-"&&o!=="-"?o=null:++a,this.emit("option:"+i.name(),o)):this.emit("option:"+i.name());continue}if(o.length>1&&o[0]==="-"){s.push(o),a+1<t.length&&t[a+1][0]!=="-"&&s.push(t[++a]);continue}e.push(o)}return{args:e,unknown:s}};U.prototype.opts=function(){for(var t={},e=this.options.length,r=0;r<e;r++){var n=this.options[r].attributeName();t[n]=n===this._versionOptionName?this._version:this[n]}return t};U.prototype.missingArgument=function(t){console.error("error: missing required argument `%s'",t),process.exit(1)};U.prototype.optionMissingArgument=function(t,e){e?console.error("error: option `%s' argument missing, got `%s'",t.flags,e):console.error("error: option `%s' argument missing",t.flags),process.exit(1)};U.prototype.unknownOption=function(t){this._allowUnknownOption||(console.error("error: unknown option `%s'",t),process.exit(1))};U.prototype.variadicArgNotLast=function(t){console.error("error: variadic arguments must be last `%s'",t),process.exit(1)};U.prototype.version=function(t,e){if(arguments.length===0)return this._version;this._version=t,e=e||"-V, --version";var r=new Kt(e,"output the version number");return this._versionOptionName=r.long.substr(2)||"version",this.options.push(r),this.on("option:"+this._versionOptionName,function(){process.stdout.write(t+`
3
+ `),process.exit(0)}),this};U.prototype.description=function(t,e){return arguments.length===0?this._description:(this._description=t,this._argsDescription=e,this)};U.prototype.alias=function(t){var e=this;if(this.commands.length!==0&&(e=this.commands[this.commands.length-1]),arguments.length===0)return e._alias;if(t===e._name)throw new Error("Command alias can't be the same as its name");return e._alias=t,this};U.prototype.usage=function(t){var e=this._args.map(function(n){return vu(n)}),r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+e.join(" "):"");return arguments.length===0?this._usage||r:(this._usage=t,this)};U.prototype.name=function(t){return arguments.length===0?this._name:(this._name=t,this)};U.prototype.prepareCommands=function(){return this.commands.filter(function(t){return!t._noHelp}).map(function(t){var e=t._args.map(function(r){return vu(r)}).join(" ");return[t._name+(t._alias?"|"+t._alias:"")+(t.options.length?" [options]":"")+(e?" "+e:""),t._description]})};U.prototype.largestCommandLength=function(){var t=this.prepareCommands();return t.reduce(function(e,r){return Math.max(e,r[0].length)},0)};U.prototype.largestOptionLength=function(){var t=[].slice.call(this.options);return t.push({flags:"-h, --help"}),t.reduce(function(e,r){return Math.max(e,r.flags.length)},0)};U.prototype.largestArgLength=function(){return this._args.reduce(function(t,e){return Math.max(t,e.name.length)},0)};U.prototype.padWidth=function(){var t=this.largestOptionLength();return this._argsDescription&&this._args.length&&this.largestArgLength()>t&&(t=this.largestArgLength()),this.commands&&this.commands.length&&this.largestCommandLength()>t&&(t=this.largestCommandLength()),t};U.prototype.optionHelp=function(){var t=this.padWidth();return this.options.map(function(e){return ln(e.flags,t)+" "+e.description+(e.bool&&e.defaultValue!==void 0?" (default: "+JSON.stringify(e.defaultValue)+")":"")}).concat([ln("-h, --help",t)+" output usage information"]).join(`
4
+ `)};U.prototype.commandHelp=function(){if(!this.commands.length)return"";var t=this.prepareCommands(),e=this.padWidth();return["Commands:",t.map(function(r){var n=r[1]?" "+r[1]:"";return(n?ln(r[0],e):r[0])+n}).join(`
5
5
  `).replace(/^/gm," "),""].join(`
6
- `)};j.prototype.helpInformation=function(){var t=[];if(this._description){t=[this._description,""];var e=this._argsDescription;if(e&&this._args.length){var r=this.padWidth();t.push("Arguments:"),t.push(""),this._args.forEach(function(u){t.push(" "+Fr(u.name,r)+" "+e[u.name])}),t.push("")}}var n=this._name;this._alias&&(n=n+"|"+this._alias);var i=["Usage: "+n+" "+this.usage(),""],o=[],a=this.commandHelp();a&&(o=[a]);var s=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return i.concat(t).concat(s).concat(o).join(`
7
- `)};j.prototype.outputHelp=function(t){t||(t=function(e){return e}),process.stdout.write(t(this.helpInformation())),this.emit("--help")};j.prototype.help=function(t){this.outputHelp(t),process.exit()};function jd(t){return t.split("-").reduce(function(e,r){return e+r[0].toUpperCase()+r.slice(1)})}function Fr(t,e){var r=Math.max(0,e-t.length);return t+Array(r+1).join(" ")}function hs(t,e){e=e||[];for(var r=0;r<e.length;r++)(e[r]==="--help"||e[r]==="-h")&&(t.outputHelp(),process.exit(0))}function _s(t){var e=t.name+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}function pi(t){try{if(ps.statSync(t).isFile())return!0}catch{return!1}}});var N=b((Hb,Lr)=>{var ys,bs,Ss,Es,Ts,Os,ws,xs,Is,Hr,hi,Cs,Rs,Mt,As,Ps,qs,Ns,Ms,ks,Ds,Fs,js;(function(t){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){t(r(e,r(n)))}):typeof Lr=="object"&&typeof Lr.exports=="object"?t(r(e,r(Lr.exports))):t(r(e));function r(n,i){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,a){return n[o]=i?i(o,a):a}}})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};ys=function(r,n){e(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},bs=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r},Ss=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(i[o[a]]=r[o[a]]);return i},Es=function(r,n,i,o){var a=arguments.length,s=a<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,n,i,o);else for(var c=r.length-1;c>=0;c--)(u=r[c])&&(s=(a<3?u(s):a>3?u(n,i,s):u(n,i))||s);return a>3&&s&&Object.defineProperty(n,i,s),s},Ts=function(r,n){return function(i,o){n(i,o,r)}},Os=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},ws=function(r,n,i,o){function a(s){return s instanceof i?s:new i(function(u){u(s)})}return new(i||(i=Promise))(function(s,u){function c(h){try{d(o.next(h))}catch(y){u(y)}}function l(h){try{d(o.throw(h))}catch(y){u(y)}}function d(h){h.done?s(h.value):a(h.value).then(c,l)}d((o=o.apply(r,n||[])).next())})},xs=function(r,n){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,a,s,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(d){return function(h){return l([d,h])}}function l(d){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,a&&(s=d[0]&2?a.return:d[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,d[1])).done)return s;switch(a=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return i.label++,{value:d[1],done:!1};case 5:i.label++,a=d[1],d=[0];continue;case 7:d=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){i.label=d[1];break}if(d[0]===6&&i.label<s[1]){i.label=s[1],s=d;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(d);break}s[2]&&i.ops.pop(),i.trys.pop();continue}d=n.call(r,i)}catch(h){d=[6,h],a=0}finally{o=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},js=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},Is=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},Hr=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},hi=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),a,s=[],u;try{for(;(n===void 0||n-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return s},Cs=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(hi(arguments[n]));return r},Rs=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),a=0,n=0;n<i;n++)for(var s=arguments[n],u=0,c=s.length;u<c;u++,a++)o[a]=s[u];return o},Mt=function(r){return this instanceof Mt?(this.v=r,this):new Mt(r)},As=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),a,s=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(S){o[S]&&(a[S]=function(T){return new Promise(function(C,q){s.push([S,T,C,q])>1||c(S,T)})})}function c(S,T){try{l(o[S](T))}catch(C){y(s[0][3],C)}}function l(S){S.value instanceof Mt?Promise.resolve(S.value.v).then(d,h):y(s[0][2],S)}function d(S){c("next",S)}function h(S){c("throw",S)}function y(S,T){S(T),s.shift(),s.length&&c(s[0][0],s[0][1])}},Ps=function(r){var n,i;return n={},o("next"),o("throw",function(a){throw a}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(a,s){n[a]=r[a]?function(u){return(i=!i)?{value:Mt(r[a](u)),done:a==="return"}:s?s(u):u}:s}},qs=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof Hr=="function"?Hr(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(s){i[s]=r[s]&&function(u){return new Promise(function(c,l){u=r[s](u),a(c,l,u.done,u.value)})}}function a(s,u,c,l){Promise.resolve(l).then(function(d){s({value:d,done:c})},u)}},Ns=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},Ms=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},ks=function(r){return r&&r.__esModule?r:{default:r}},Ds=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},Fs=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},t("__extends",ys),t("__assign",bs),t("__rest",Ss),t("__decorate",Es),t("__param",Ts),t("__metadata",Os),t("__awaiter",ws),t("__generator",xs),t("__exportStar",Is),t("__createBinding",js),t("__values",Hr),t("__read",hi),t("__spread",Cs),t("__spreadArrays",Rs),t("__await",Mt),t("__asyncGenerator",As),t("__asyncDelegator",Ps),t("__asyncValues",qs),t("__makeTemplateObject",Ns),t("__importStar",Ms),t("__importDefault",ks),t("__classPrivateFieldGet",Ds),t("__classPrivateFieldSet",Fs)})});var Hs=b(Ur=>{Object.defineProperty(Ur,"__esModule",{value:!0});var Hd;(function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"})(Hd=Ur.LogLevel||(Ur.LogLevel={}))});var Ls=b(kt=>{Object.defineProperty(kt,"__esModule",{value:!0});var Ld;(function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"})(Ld=kt.SessionStatus||(kt.SessionStatus={}));var Ud;(function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"})(Ud=kt.RequestSessionStatus||(kt.RequestSessionStatus={}))});var Bs=b(Dt=>{Object.defineProperty(Dt,"__esModule",{value:!0});var Us;(function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"})(Us=Dt.Severity||(Dt.Severity={}));(function(t){function e(r){switch(r){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}t.fromString=e})(Us=Dt.Severity||(Dt.Severity={}))});var zs=b(Ft=>{Object.defineProperty(Ft,"__esModule",{value:!0});var Gs;(function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"})(Gs=Ft.Status||(Ft.Status={}));(function(t){function e(r){return r>=200&&r<300?t.Success:r===429?t.RateLimit:r>=400&&r<500?t.Invalid:r>=500?t.Failed:t.Unknown}t.fromHttpCode=e})(Gs=Ft.Status||(Ft.Status={}))});var Vs=b(Br=>{Object.defineProperty(Br,"__esModule",{value:!0});var Bd;(function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"})(Bd=Br.TransactionSamplingMethod||(Br.TransactionSamplingMethod={}))});var Ws=b(Gr=>{Object.defineProperty(Gr,"__esModule",{value:!0});var Gd;(function(t){t.BeforeSend="before_send",t.EventProcessor="event_processor",t.NetworkError="network_error",t.QueueOverflow="queue_overflow",t.RateLimitBackoff="ratelimit_backoff",t.SampleRate="sample_rate"})(Gd=Gr.Outcome||(Gr.Outcome={}))});var ne=b(Ge=>{Object.defineProperty(Ge,"__esModule",{value:!0});var zd=Hs();Ge.LogLevel=zd.LogLevel;var Ys=Ls();Ge.SessionStatus=Ys.SessionStatus;Ge.RequestSessionStatus=Ys.RequestSessionStatus;var Vd=Bs();Ge.Severity=Vd.Severity;var Wd=zs();Ge.Status=Wd.Status;var Yd=Vs();Ge.TransactionSamplingMethod=Yd.TransactionSamplingMethod;var $d=Ws();Ge.Outcome=$d.Outcome});var $s=b(_i=>{Object.defineProperty(_i,"__esModule",{value:!0});function Kd(t){t.then(null,function(e){console.error(e)})}_i.forget=Kd});var Wr=b((ar,Vr)=>{Object.defineProperty(ar,"__esModule",{value:!0});function Jd(){return Object.prototype.toString.call(typeof process!="undefined"?process:0)==="[object process]"}ar.isNodeEnv=Jd;function zr(t,e){return t.require(e)}ar.dynamicRequire=zr;function Xd(t){var e;try{e=zr(Vr,t)}catch{}try{var r=zr(Vr,"process").cwd;e=zr(Vr,r()+"/node_modules/"+t)}catch{}return e}ar.loadModule=Xd});var nt=b(vi=>{Object.defineProperty(vi,"__esModule",{value:!0});var Qd=Wr(),Zd={};function ep(){return Qd.isNodeEnv()?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Zd}vi.getGlobalObject=ep});var vt=b(ce=>{Object.defineProperty(ce,"__esModule",{value:!0});function tp(t){switch(Object.prototype.toString.call(t)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return Yr(t,Error)}}ce.isError=tp;function rp(t){return Object.prototype.toString.call(t)==="[object ErrorEvent]"}ce.isErrorEvent=rp;function np(t){return Object.prototype.toString.call(t)==="[object DOMError]"}ce.isDOMError=np;function ip(t){return Object.prototype.toString.call(t)==="[object DOMException]"}ce.isDOMException=ip;function op(t){return Object.prototype.toString.call(t)==="[object String]"}ce.isString=op;function ap(t){return t===null||typeof t!="object"&&typeof t!="function"}ce.isPrimitive=ap;function Ks(t){return Object.prototype.toString.call(t)==="[object Object]"}ce.isPlainObject=Ks;function sp(t){return typeof Event!="undefined"&&Yr(t,Event)}ce.isEvent=sp;function up(t){return typeof Element!="undefined"&&Yr(t,Element)}ce.isElement=up;function cp(t){return Object.prototype.toString.call(t)==="[object RegExp]"}ce.isRegExp=cp;function fp(t){return Boolean(t&&t.then&&typeof t.then=="function")}ce.isThenable=fp;function lp(t){return Ks(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}ce.isSyntheticEvent=lp;function Yr(t,e){try{return t instanceof e}catch{return!1}}ce.isInstanceOf=Yr});var gi=b($r=>{Object.defineProperty($r,"__esModule",{value:!0});var dp=nt(),pp=vt();function hp(t,e){try{for(var r=t,n=5,i=80,o=[],a=0,s=0,u=" > ",c=u.length,l=void 0;r&&a++<n&&(l=_p(r,e),!(l==="html"||a>1&&s+o.length*c+l.length>=i));)o.push(l),s+=l.length,r=r.parentNode;return o.reverse().join(u)}catch{return"<unknown>"}}$r.htmlTreeAsString=hp;function _p(t,e){var r,n,i=t,o=[],a,s,u,c,l;if(!i||!i.tagName)return"";o.push(i.tagName.toLowerCase());var d=((r=e)===null||r===void 0?void 0:r.length)?e.filter(function(y){return i.getAttribute(y)}).map(function(y){return[y,i.getAttribute(y)]}):null;if((n=d)===null||n===void 0?void 0:n.length)d.forEach(function(y){o.push("["+y[0]+'="'+y[1]+'"]')});else if(i.id&&o.push("#"+i.id),a=i.className,a&&pp.isString(a))for(s=a.split(/\s+/),l=0;l<s.length;l++)o.push("."+s[l]);var h=["type","name","title","alt"];for(l=0;l<h.length;l++)u=h[l],c=i.getAttribute(u),c&&o.push("["+u+'="'+c+'"]');return o.join("")}function vp(){var t=dp.getGlobalObject();try{return t.document.location.href}catch{return""}}$r.getLocationHref=vp});var Js=b(mi=>{Object.defineProperty(mi,"__esModule",{value:!0});mi.setPrototypeOf=Object.setPrototypeOf||({__proto__:[]}instanceof Array?gp:mp);function gp(t,e){return t.__proto__=e,t}function mp(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var Kr=b(yi=>{Object.defineProperty(yi,"__esModule",{value:!0});var yp=N(),bp=Js(),Sp=function(t){yp.__extends(e,t);function e(r){var n=this.constructor,i=t.call(this,r)||this;return i.message=r,i.name=n.prototype.constructor.name,bp.setPrototypeOf(i,n.prototype),i}return e}(Error);yi.SentryError=Sp});var Xs=b(bi=>{Object.defineProperty(bi,"__esModule",{value:!0});var Ep=N(),sr=Kr(),Tp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,ur="Invalid Dsn",Op=function(){function t(e){typeof e=="string"?this._fromString(e):this._fromComponents(e),this._validate()}return t.prototype.toString=function(e){e===void 0&&(e=!1);var r=this,n=r.host,i=r.path,o=r.pass,a=r.port,s=r.projectId,u=r.protocol,c=r.publicKey;return u+"://"+c+(e&&o?":"+o:"")+("@"+n+(a?":"+a:"")+"/"+(i&&i+"/")+s)},t.prototype._fromString=function(e){var r=Tp.exec(e);if(!r)throw new sr.SentryError(ur);var n=Ep.__read(r.slice(1),6),i=n[0],o=n[1],a=n[2],s=a===void 0?"":a,u=n[3],c=n[4],l=c===void 0?"":c,d=n[5],h="",y=d,S=y.split("/");if(S.length>1&&(h=S.slice(0,-1).join("/"),y=S.pop()),y){var T=y.match(/^\d+/);T&&(y=T[0])}this._fromComponents({host:u,pass:s,path:h,projectId:y,port:l,protocol:i,publicKey:o})},t.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},t.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach(function(r){if(!e[r])throw new sr.SentryError(ur+": "+r+" missing")}),!this.projectId.match(/^\d+$/))throw new sr.SentryError(ur+": Invalid projectId "+this.projectId);if(this.protocol!=="http"&&this.protocol!=="https")throw new sr.SentryError(ur+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new sr.SentryError(ur+": Invalid port "+this.port)},t}();bi.Dsn=Op});var Qr=b(Xr=>{Object.defineProperty(Xr,"__esModule",{value:!0});var Qs=nt(),gt=Qs.getGlobalObject(),Si="Sentry Logger ";function Jr(t){var e=Qs.getGlobalObject(),r=["debug","info","warn","error","log","assert"];if(!("console"in e))return t();var n=e.console,i={};r.forEach(function(a){a in e.console&&n[a].__sentry_original__&&(i[a]=n[a],n[a]=n[a].__sentry_original__)});var o=t();return Object.keys(i).forEach(function(a){n[a]=i[a]}),o}Xr.consoleSandbox=Jr;var wp=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];!this._enabled||Jr(function(){gt.console.log(Si+"[Log]: "+e.join(" "))})},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];!this._enabled||Jr(function(){gt.console.warn(Si+"[Warn]: "+e.join(" "))})},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];!this._enabled||Jr(function(){gt.console.error(Si+"[Error]: "+e.join(" "))})},t}();gt.__SENTRY__=gt.__SENTRY__||{};var xp=gt.__SENTRY__.logger||(gt.__SENTRY__.logger=new wp);Xr.logger=xp});var Ti=b(Ei=>{Object.defineProperty(Ei,"__esModule",{value:!0});var Ip=function(){function t(){this._hasWeakSet=typeof WeakSet=="function",this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(e){if(this._hasWeakSet)return this._inner.has(e)?!0:(this._inner.add(e),!1);for(var r=0;r<this._inner.length;r++){var n=this._inner[r];if(n===e)return!0}return this._inner.push(e),!1},t.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var r=0;r<this._inner.length;r++)if(this._inner[r]===e){this._inner.splice(r,1);break}},t}();Ei.Memo=Ip});var Zr=b(wi=>{Object.defineProperty(wi,"__esModule",{value:!0});var Oi="<anonymous>";function Cp(t){try{return!t||typeof t!="function"?Oi:t.name||Oi}catch{return Oi}}wi.getFunctionName=Cp});var en=b(mt=>{Object.defineProperty(mt,"__esModule",{value:!0});var Zs=vt();function Rp(t,e){return e===void 0&&(e=0),typeof t!="string"||e===0||t.length<=e?t:t.substr(0,e)+"..."}mt.truncate=Rp;function Ap(t,e){var r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r="'{snip} "+r),o<n&&(r+=" {snip}"),r}mt.snipLine=Ap;function Pp(t,e){if(!Array.isArray(t))return"";for(var r=[],n=0;n<t.length;n++){var i=t[n];try{r.push(String(i))}catch{r.push("[value cannot be serialized]")}}return r.join(e)}mt.safeJoin=Pp;function qp(t,e){return Zs.isString(t)?Zs.isRegExp(e)?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1:!1}mt.isMatchingPattern=qp;function Np(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}mt.escapeStringForRegex=Np});var Ci=b(De=>{Object.defineProperty(De,"__esModule",{value:!0});var Mp=N(),eu=gi(),ke=vt(),kp=Ti(),Dp=Zr(),tu=en();function Fp(t,e,r){if(e in t){var n=t[e],i=r(n);if(typeof i=="function")try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:n}})}catch{}t[e]=i}}De.fill=Fp;function jp(t){return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}De.urlEncode=jp;function ru(t){if(ke.isError(t)){var e=t,r={message:e.message,name:e.name,stack:e.stack};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}if(ke.isEvent(t)){var i=t,o={};o.type=i.type;try{o.target=ke.isElement(i.target)?eu.htmlTreeAsString(i.target):Object.prototype.toString.call(i.target)}catch{o.target="<unknown>"}try{o.currentTarget=ke.isElement(i.currentTarget)?eu.htmlTreeAsString(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch{o.currentTarget="<unknown>"}typeof CustomEvent!="undefined"&&ke.isInstanceOf(t,CustomEvent)&&(o.detail=i.detail);for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a]);return o}return t}function Hp(t){return~-encodeURI(t).split(/%..|./).length}function Lp(t){return Hp(JSON.stringify(t))}function nu(t,e,r){e===void 0&&(e=3),r===void 0&&(r=100*1024);var n=ou(t,e);return Lp(n)>r?nu(t,e-1,r):n}De.normalizeToSize=nu;function Up(t){var e=Object.prototype.toString.call(t);if(typeof t=="string")return t;if(e==="[object Object]")return"[Object]";if(e==="[object Array]")return"[Array]";var r=iu(t);return ke.isPrimitive(r)?r:e}function iu(t,e){return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global!="undefined"&&t===global?"[Global]":typeof window!="undefined"&&t===window?"[Window]":typeof document!="undefined"&&t===document?"[Document]":ke.isSyntheticEvent(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?"[Function: "+Dp.getFunctionName(t)+"]":typeof t=="symbol"?"["+String(t)+"]":typeof t=="bigint"?"[BigInt: "+String(t)+"]":t}function xi(t,e,r,n){if(r===void 0&&(r=1/0),n===void 0&&(n=new kp.Memo),r===0)return Up(e);if(e!=null&&typeof e.toJSON=="function")return e.toJSON();var i=iu(e,t);if(ke.isPrimitive(i))return i;var o=ru(e),a=Array.isArray(e)?[]:{};if(n.memoize(e))return"[Circular ~]";for(var s in o)!Object.prototype.hasOwnProperty.call(o,s)||(a[s]=xi(s,o[s],r-1,n));return n.unmemoize(e),a}De.walk=xi;function ou(t,e){try{return JSON.parse(JSON.stringify(t,function(r,n){return xi(r,n,e)}))}catch{return"**non-serializable**"}}De.normalize=ou;function Bp(t,e){e===void 0&&(e=40);var r=Object.keys(ru(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return tu.truncate(r[0],e);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>e))return n===r.length?i:tu.truncate(i,e)}return""}De.extractExceptionKeysForMessage=Bp;function Ii(t){var e,r;if(ke.isPlainObject(t)){var n=t,i={};try{for(var o=Mp.__values(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;typeof n[s]!="undefined"&&(i[s]=Ii(n[s]))}}catch(u){e={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return i}return Array.isArray(t)?t.map(Ii):t}De.dropUndefinedKeys=Ii;function Gp(t){var e;switch(!0){case t==null:e=new String(t);break;case(typeof t=="symbol"||typeof t=="bigint"):e=Object(t);break;case ke.isPrimitive(t):e=new t.constructor(t);break;default:e=t;break}return e}De.objectify=Gp});var Pi=b(Re=>{Object.defineProperty(Re,"__esModule",{value:!0});var tn=nt(),zp=Qr();function Vp(){try{return new ErrorEvent(""),!0}catch{return!1}}Re.supportsErrorEvent=Vp;function Wp(){try{return new DOMError(""),!0}catch{return!1}}Re.supportsDOMError=Wp;function Yp(){try{return new DOMException(""),!0}catch{return!1}}Re.supportsDOMException=Yp;function Ri(){if(!("fetch"in tn.getGlobalObject()))return!1;try{return new Headers,new Request(""),new Response,!0}catch{return!1}}Re.supportsFetch=Ri;function Ai(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}Re.isNativeFetch=Ai;function $p(){if(!Ri())return!1;var t=tn.getGlobalObject();if(Ai(t.fetch))return!0;var e=!1,r=t.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&&(e=Ai(n.contentWindow.fetch)),r.head.removeChild(n)}catch(i){zp.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return e}Re.supportsNativeFetch=$p;function Kp(){return"ReportingObserver"in tn.getGlobalObject()}Re.supportsReportingObserver=Kp;function Jp(){if(!Ri())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}Re.supportsReferrerPolicy=Jp;function Xp(){var t=tn.getGlobalObject(),e=t.chrome,r=e&&e.app&&e.app.runtime,n="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!r&&n}Re.supportsHistory=Xp});var fu=b(Mi=>{Object.defineProperty(Mi,"__esModule",{value:!0});var jt=N(),Qp=nt(),rn=vt(),au=Qr(),ze=Ci(),Zp=Zr(),su=Pi(),Y=Qp.getGlobalObject(),cr={},uu={};function eh(t){if(!uu[t])switch(uu[t]=!0,t){case"console":rh();break;case"dom":lh();break;case"xhr":ah();break;case"fetch":nh();break;case"history":sh();break;case"error":dh();break;case"unhandledrejection":ph();break;default:au.logger.warn("unknown instrumentation type:",t)}}function th(t){!t||typeof t.type!="string"||typeof t.callback!="function"||(cr[t.type]=cr[t.type]||[],cr[t.type].push(t.callback),eh(t.type))}Mi.addInstrumentationHandler=th;function Ae(t,e){var r,n;if(!(!t||!cr[t]))try{for(var i=jt.__values(cr[t]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(e)}catch(s){au.logger.error(`Error while triggering instrumentation handler.
6
+ `)};U.prototype.helpInformation=function(){var t=[];if(this._description){t=[this._description,""];var e=this._argsDescription;if(e&&this._args.length){var r=this.padWidth();t.push("Arguments:"),t.push(""),this._args.forEach(function(u){t.push(" "+ln(u.name,r)+" "+e[u.name])}),t.push("")}}var n=this._name;this._alias&&(n=n+"|"+this._alias);var i=["Usage: "+n+" "+this.usage(),""],o=[],s=this.commandHelp();s&&(o=[s]);var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return i.concat(t).concat(a).concat(o).join(`
7
+ `)};U.prototype.outputHelp=function(t){t||(t=function(e){return e}),process.stdout.write(t(this.helpInformation())),this.emit("--help")};U.prototype.help=function(t){this.outputHelp(t),process.exit()};function mh(t){return t.split("-").reduce(function(e,r){return e+r[0].toUpperCase()+r.slice(1)})}function ln(t,e){var r=Math.max(0,e-t.length);return t+Array(r+1).join(" ")}function hu(t,e){e=e||[];for(var r=0;r<e.length;r++)(e[r]==="--help"||e[r]==="-h")&&(t.outputHelp(),process.exit(0))}function vu(t){var e=t.name+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}function Vi(t){try{if(pu.statSync(t).isFile())return!0}catch{return!1}}});var q=b((n0,pn)=>{var yu,bu,Su,Eu,Tu,wu,Ou,Cu,xu,dn,Wi,Ru,Iu,Jt,Au,Mu,Pu,Nu,qu,ku,Du,Lu,Fu;(function(t){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){t(r(e,r(n)))}):typeof pn=="object"&&typeof pn.exports=="object"?t(r(e,r(pn.exports))):t(r(e));function r(n,i){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])};yu=function(r,n){e(r,n);function i(){this.constructor=r}r.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},bu=Object.assign||function(r){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},Su=function(r,n){var i={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&n.indexOf(o)<0&&(i[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(r);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(r,o[s])&&(i[o[s]]=r[o[s]]);return i},Eu=function(r,n,i,o){var s=arguments.length,a=s<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,n,i,o);else for(var c=r.length-1;c>=0;c--)(u=r[c])&&(a=(s<3?u(a):s>3?u(n,i,a):u(n,i))||a);return s>3&&a&&Object.defineProperty(n,i,a),a},Tu=function(r,n){return function(i,o){n(i,o,r)}},wu=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},Ou=function(r,n,i,o){function s(a){return a instanceof i?a:new i(function(u){u(a)})}return new(i||(i=Promise))(function(a,u){function c(h){try{d(o.next(h))}catch(_){u(_)}}function l(h){try{d(o.throw(h))}catch(_){u(_)}}function d(h){h.done?a(h.value):s(h.value).then(c,l)}d((o=o.apply(r,n||[])).next())})},Cu=function(r,n){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(d){return function(h){return l([d,h])}}function l(d){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,s&&(a=d[0]&2?s.return:d[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,d[1])).done)return a;switch(s=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return i.label++,{value:d[1],done:!1};case 5:i.label++,s=d[1],d=[0];continue;case 7:d=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){i.label=d[1];break}if(d[0]===6&&i.label<a[1]){i.label=a[1],a=d;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(d);break}a[2]&&i.ops.pop(),i.trys.pop();continue}d=n.call(r,i)}catch(h){d=[6,h],s=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Fu=function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]},xu=function(r,n){for(var i in r)i!=="default"&&!n.hasOwnProperty(i)&&(n[i]=r[i])},dn=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&r[n],o=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Wi=function(r,n){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var o=i.call(r),s,a=[],u;try{for(;(n===void 0||n-- >0)&&!(s=o.next()).done;)a.push(s.value)}catch(c){u={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(u)throw u.error}}return a},Ru=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Wi(arguments[n]));return r},Iu=function(){for(var r=0,n=0,i=arguments.length;n<i;n++)r+=arguments[n].length;for(var o=Array(r),s=0,n=0;n<i;n++)for(var a=arguments[n],u=0,c=a.length;u<c;u++,s++)o[s]=a[u];return o},Jt=function(r){return this instanceof Jt?(this.v=r,this):new Jt(r)},Au=function(r,n,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(r,n||[]),s,a=[];return s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s;function u(S){o[S]&&(s[S]=function(T){return new Promise(function(R,A){a.push([S,T,R,A])>1||c(S,T)})})}function c(S,T){try{l(o[S](T))}catch(R){_(a[0][3],R)}}function l(S){S.value instanceof Jt?Promise.resolve(S.value.v).then(d,h):_(a[0][2],S)}function d(S){c("next",S)}function h(S){c("throw",S)}function _(S,T){S(T),a.shift(),a.length&&c(a[0][0],a[0][1])}},Mu=function(r){var n,i;return n={},o("next"),o("throw",function(s){throw s}),o("return"),n[Symbol.iterator]=function(){return this},n;function o(s,a){n[s]=r[s]?function(u){return(i=!i)?{value:Jt(r[s](u)),done:s==="return"}:a?a(u):u}:a}},Pu=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],i;return n?n.call(r):(r=typeof dn=="function"?dn(r):r[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(a){i[a]=r[a]&&function(u){return new Promise(function(c,l){u=r[a](u),s(c,l,u.done,u.value)})}}function s(a,u,c,l){Promise.resolve(l).then(function(d){a({value:d,done:c})},u)}},Nu=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},qu=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var i in r)Object.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n.default=r,n},ku=function(r){return r&&r.__esModule?r:{default:r}},Du=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},Lu=function(r,n,i){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,i),i},t("__extends",yu),t("__assign",bu),t("__rest",Su),t("__decorate",Eu),t("__param",Tu),t("__metadata",wu),t("__awaiter",Ou),t("__generator",Cu),t("__exportStar",xu),t("__createBinding",Fu),t("__values",dn),t("__read",Wi),t("__spread",Ru),t("__spreadArrays",Iu),t("__await",Jt),t("__asyncGenerator",Au),t("__asyncDelegator",Mu),t("__asyncValues",Pu),t("__makeTemplateObject",Nu),t("__importStar",qu),t("__importDefault",ku),t("__classPrivateFieldGet",Du),t("__classPrivateFieldSet",Lu)})});var ju=b(hn=>{Object.defineProperty(hn,"__esModule",{value:!0});var yh;(function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"})(yh=hn.LogLevel||(hn.LogLevel={}))});var Uu=b(Xt=>{Object.defineProperty(Xt,"__esModule",{value:!0});var bh;(function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"})(bh=Xt.SessionStatus||(Xt.SessionStatus={}));var Sh;(function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"})(Sh=Xt.RequestSessionStatus||(Xt.RequestSessionStatus={}))});var Bu=b(Qt=>{Object.defineProperty(Qt,"__esModule",{value:!0});var Hu;(function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"})(Hu=Qt.Severity||(Qt.Severity={}));(function(t){function e(r){switch(r){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}t.fromString=e})(Hu=Qt.Severity||(Qt.Severity={}))});var zu=b(Zt=>{Object.defineProperty(Zt,"__esModule",{value:!0});var Gu;(function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"})(Gu=Zt.Status||(Zt.Status={}));(function(t){function e(r){return r>=200&&r<300?t.Success:r===429?t.RateLimit:r>=400&&r<500?t.Invalid:r>=500?t.Failed:t.Unknown}t.fromHttpCode=e})(Gu=Zt.Status||(Zt.Status={}))});var Vu=b(vn=>{Object.defineProperty(vn,"__esModule",{value:!0});var Eh;(function(t){t.Explicit="explicitly_set",t.Sampler="client_sampler",t.Rate="client_rate",t.Inheritance="inheritance"})(Eh=vn.TransactionSamplingMethod||(vn.TransactionSamplingMethod={}))});var Wu=b(_n=>{Object.defineProperty(_n,"__esModule",{value:!0});var Th;(function(t){t.BeforeSend="before_send",t.EventProcessor="event_processor",t.NetworkError="network_error",t.QueueOverflow="queue_overflow",t.RateLimitBackoff="ratelimit_backoff",t.SampleRate="sample_rate"})(Th=_n.Outcome||(_n.Outcome={}))});var se=b(Qe=>{Object.defineProperty(Qe,"__esModule",{value:!0});var wh=ju();Qe.LogLevel=wh.LogLevel;var $u=Uu();Qe.SessionStatus=$u.SessionStatus;Qe.RequestSessionStatus=$u.RequestSessionStatus;var Oh=Bu();Qe.Severity=Oh.Severity;var Ch=zu();Qe.Status=Ch.Status;var xh=Vu();Qe.TransactionSamplingMethod=xh.TransactionSamplingMethod;var Rh=Wu();Qe.Outcome=Rh.Outcome});var Yu=b($i=>{Object.defineProperty($i,"__esModule",{value:!0});function Ih(t){t.then(null,function(e){console.error(e)})}$i.forget=Ih});var yn=b((xr,mn)=>{Object.defineProperty(xr,"__esModule",{value:!0});function Ah(){return Object.prototype.toString.call(typeof process!="undefined"?process:0)==="[object process]"}xr.isNodeEnv=Ah;function gn(t,e){return t.require(e)}xr.dynamicRequire=gn;function Mh(t){var e;try{e=gn(mn,t)}catch{}try{var r=gn(mn,"process").cwd;e=gn(mn,r()+"/node_modules/"+t)}catch{}return e}xr.loadModule=Mh});var pt=b(Yi=>{Object.defineProperty(Yi,"__esModule",{value:!0});var Ph=yn(),Nh={};function qh(){return Ph.isNodeEnv()?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Nh}Yi.getGlobalObject=qh});var Rt=b(he=>{Object.defineProperty(he,"__esModule",{value:!0});function kh(t){switch(Object.prototype.toString.call(t)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return bn(t,Error)}}he.isError=kh;function Dh(t){return Object.prototype.toString.call(t)==="[object ErrorEvent]"}he.isErrorEvent=Dh;function Lh(t){return Object.prototype.toString.call(t)==="[object DOMError]"}he.isDOMError=Lh;function Fh(t){return Object.prototype.toString.call(t)==="[object DOMException]"}he.isDOMException=Fh;function jh(t){return Object.prototype.toString.call(t)==="[object String]"}he.isString=jh;function Uh(t){return t===null||typeof t!="object"&&typeof t!="function"}he.isPrimitive=Uh;function Ku(t){return Object.prototype.toString.call(t)==="[object Object]"}he.isPlainObject=Ku;function Hh(t){return typeof Event!="undefined"&&bn(t,Event)}he.isEvent=Hh;function Bh(t){return typeof Element!="undefined"&&bn(t,Element)}he.isElement=Bh;function Gh(t){return Object.prototype.toString.call(t)==="[object RegExp]"}he.isRegExp=Gh;function zh(t){return Boolean(t&&t.then&&typeof t.then=="function")}he.isThenable=zh;function Vh(t){return Ku(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}he.isSyntheticEvent=Vh;function bn(t,e){try{return t instanceof e}catch{return!1}}he.isInstanceOf=bn});var Ki=b(Sn=>{Object.defineProperty(Sn,"__esModule",{value:!0});var Wh=pt(),$h=Rt();function Yh(t,e){try{for(var r=t,n=5,i=80,o=[],s=0,a=0,u=" > ",c=u.length,l=void 0;r&&s++<n&&(l=Kh(r,e),!(l==="html"||s>1&&a+o.length*c+l.length>=i));)o.push(l),a+=l.length,r=r.parentNode;return o.reverse().join(u)}catch{return"<unknown>"}}Sn.htmlTreeAsString=Yh;function Kh(t,e){var r,n,i=t,o=[],s,a,u,c,l;if(!i||!i.tagName)return"";o.push(i.tagName.toLowerCase());var d=((r=e)===null||r===void 0?void 0:r.length)?e.filter(function(_){return i.getAttribute(_)}).map(function(_){return[_,i.getAttribute(_)]}):null;if((n=d)===null||n===void 0?void 0:n.length)d.forEach(function(_){o.push("["+_[0]+'="'+_[1]+'"]')});else if(i.id&&o.push("#"+i.id),s=i.className,s&&$h.isString(s))for(a=s.split(/\s+/),l=0;l<a.length;l++)o.push("."+a[l]);var h=["type","name","title","alt"];for(l=0;l<h.length;l++)u=h[l],c=i.getAttribute(u),c&&o.push("["+u+'="'+c+'"]');return o.join("")}function Jh(){var t=Wh.getGlobalObject();try{return t.document.location.href}catch{return""}}Sn.getLocationHref=Jh});var Ju=b(Ji=>{Object.defineProperty(Ji,"__esModule",{value:!0});Ji.setPrototypeOf=Object.setPrototypeOf||({__proto__:[]}instanceof Array?Xh:Qh);function Xh(t,e){return t.__proto__=e,t}function Qh(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}});var En=b(Xi=>{Object.defineProperty(Xi,"__esModule",{value:!0});var Zh=q(),ev=Ju(),tv=function(t){Zh.__extends(e,t);function e(r){var n=this.constructor,i=t.call(this,r)||this;return i.message=r,i.name=n.prototype.constructor.name,ev.setPrototypeOf(i,n.prototype),i}return e}(Error);Xi.SentryError=tv});var Xu=b(Qi=>{Object.defineProperty(Qi,"__esModule",{value:!0});var rv=q(),Rr=En(),nv=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Ir="Invalid Dsn",iv=function(){function t(e){typeof e=="string"?this._fromString(e):this._fromComponents(e),this._validate()}return t.prototype.toString=function(e){e===void 0&&(e=!1);var r=this,n=r.host,i=r.path,o=r.pass,s=r.port,a=r.projectId,u=r.protocol,c=r.publicKey;return u+"://"+c+(e&&o?":"+o:"")+("@"+n+(s?":"+s:"")+"/"+(i&&i+"/")+a)},t.prototype._fromString=function(e){var r=nv.exec(e);if(!r)throw new Rr.SentryError(Ir);var n=rv.__read(r.slice(1),6),i=n[0],o=n[1],s=n[2],a=s===void 0?"":s,u=n[3],c=n[4],l=c===void 0?"":c,d=n[5],h="",_=d,S=_.split("/");if(S.length>1&&(h=S.slice(0,-1).join("/"),_=S.pop()),_){var T=_.match(/^\d+/);T&&(_=T[0])}this._fromComponents({host:u,pass:a,path:h,projectId:_,port:l,protocol:i,publicKey:o})},t.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},t.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach(function(r){if(!e[r])throw new Rr.SentryError(Ir+": "+r+" missing")}),!this.projectId.match(/^\d+$/))throw new Rr.SentryError(Ir+": Invalid projectId "+this.projectId);if(this.protocol!=="http"&&this.protocol!=="https")throw new Rr.SentryError(Ir+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Rr.SentryError(Ir+": Invalid port "+this.port)},t}();Qi.Dsn=iv});var On=b(wn=>{Object.defineProperty(wn,"__esModule",{value:!0});var Qu=pt(),It=Qu.getGlobalObject(),Zi="Sentry Logger ";function Tn(t){var e=Qu.getGlobalObject(),r=["debug","info","warn","error","log","assert"];if(!("console"in e))return t();var n=e.console,i={};r.forEach(function(s){s in e.console&&n[s].__sentry_original__&&(i[s]=n[s],n[s]=n[s].__sentry_original__)});var o=t();return Object.keys(i).forEach(function(s){n[s]=i[s]}),o}wn.consoleSandbox=Tn;var ov=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];!this._enabled||Tn(function(){It.console.log(Zi+"[Log]: "+e.join(" "))})},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];!this._enabled||Tn(function(){It.console.warn(Zi+"[Warn]: "+e.join(" "))})},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];!this._enabled||Tn(function(){It.console.error(Zi+"[Error]: "+e.join(" "))})},t}();It.__SENTRY__=It.__SENTRY__||{};var sv=It.__SENTRY__.logger||(It.__SENTRY__.logger=new ov);wn.logger=sv});var to=b(eo=>{Object.defineProperty(eo,"__esModule",{value:!0});var av=function(){function t(){this._hasWeakSet=typeof WeakSet=="function",this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(e){if(this._hasWeakSet)return this._inner.has(e)?!0:(this._inner.add(e),!1);for(var r=0;r<this._inner.length;r++){var n=this._inner[r];if(n===e)return!0}return this._inner.push(e),!1},t.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var r=0;r<this._inner.length;r++)if(this._inner[r]===e){this._inner.splice(r,1);break}},t}();eo.Memo=av});var Cn=b(no=>{Object.defineProperty(no,"__esModule",{value:!0});var ro="<anonymous>";function uv(t){try{return!t||typeof t!="function"?ro:t.name||ro}catch{return ro}}no.getFunctionName=uv});var xn=b(At=>{Object.defineProperty(At,"__esModule",{value:!0});var Zu=Rt();function cv(t,e){return e===void 0&&(e=0),typeof t!="string"||e===0||t.length<=e?t:t.substr(0,e)+"..."}At.truncate=cv;function lv(t,e){var r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r="'{snip} "+r),o<n&&(r+=" {snip}"),r}At.snipLine=lv;function fv(t,e){if(!Array.isArray(t))return"";for(var r=[],n=0;n<t.length;n++){var i=t[n];try{r.push(String(i))}catch{r.push("[value cannot be serialized]")}}return r.join(e)}At.safeJoin=fv;function dv(t,e){return Zu.isString(t)?Zu.isRegExp(e)?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1:!1}At.isMatchingPattern=dv;function pv(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}At.escapeStringForRegex=pv});var so=b(ze=>{Object.defineProperty(ze,"__esModule",{value:!0});var hv=q(),ec=Ki(),Ge=Rt(),vv=to(),_v=Cn(),tc=xn();function gv(t,e,r){if(e in t){var n=t[e],i=r(n);if(typeof i=="function")try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:n}})}catch{}t[e]=i}}ze.fill=gv;function mv(t){return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}ze.urlEncode=mv;function rc(t){if(Ge.isError(t)){var e=t,r={message:e.message,name:e.name,stack:e.stack};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}if(Ge.isEvent(t)){var i=t,o={};o.type=i.type;try{o.target=Ge.isElement(i.target)?ec.htmlTreeAsString(i.target):Object.prototype.toString.call(i.target)}catch{o.target="<unknown>"}try{o.currentTarget=Ge.isElement(i.currentTarget)?ec.htmlTreeAsString(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch{o.currentTarget="<unknown>"}typeof CustomEvent!="undefined"&&Ge.isInstanceOf(t,CustomEvent)&&(o.detail=i.detail);for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(o[s]=i[s]);return o}return t}function yv(t){return~-encodeURI(t).split(/%..|./).length}function bv(t){return yv(JSON.stringify(t))}function nc(t,e,r){e===void 0&&(e=3),r===void 0&&(r=100*1024);var n=oc(t,e);return bv(n)>r?nc(t,e-1,r):n}ze.normalizeToSize=nc;function Sv(t){var e=Object.prototype.toString.call(t);if(typeof t=="string")return t;if(e==="[object Object]")return"[Object]";if(e==="[object Array]")return"[Array]";var r=ic(t);return Ge.isPrimitive(r)?r:e}function ic(t,e){return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global!="undefined"&&t===global?"[Global]":typeof window!="undefined"&&t===window?"[Window]":typeof document!="undefined"&&t===document?"[Document]":Ge.isSyntheticEvent(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?"[Function: "+_v.getFunctionName(t)+"]":typeof t=="symbol"?"["+String(t)+"]":typeof t=="bigint"?"[BigInt: "+String(t)+"]":t}function io(t,e,r,n){if(r===void 0&&(r=1/0),n===void 0&&(n=new vv.Memo),r===0)return Sv(e);if(e!=null&&typeof e.toJSON=="function")return e.toJSON();var i=ic(e,t);if(Ge.isPrimitive(i))return i;var o=rc(e),s=Array.isArray(e)?[]:{};if(n.memoize(e))return"[Circular ~]";for(var a in o)!Object.prototype.hasOwnProperty.call(o,a)||(s[a]=io(a,o[a],r-1,n));return n.unmemoize(e),s}ze.walk=io;function oc(t,e){try{return JSON.parse(JSON.stringify(t,function(r,n){return io(r,n,e)}))}catch{return"**non-serializable**"}}ze.normalize=oc;function Ev(t,e){e===void 0&&(e=40);var r=Object.keys(rc(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return tc.truncate(r[0],e);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>e))return n===r.length?i:tc.truncate(i,e)}return""}ze.extractExceptionKeysForMessage=Ev;function oo(t){var e,r;if(Ge.isPlainObject(t)){var n=t,i={};try{for(var o=hv.__values(Object.keys(n)),s=o.next();!s.done;s=o.next()){var a=s.value;typeof n[a]!="undefined"&&(i[a]=oo(n[a]))}}catch(u){e={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return i}return Array.isArray(t)?t.map(oo):t}ze.dropUndefinedKeys=oo;function Tv(t){var e;switch(!0){case t==null:e=new String(t);break;case(typeof t=="symbol"||typeof t=="bigint"):e=Object(t);break;case Ge.isPrimitive(t):e=new t.constructor(t);break;default:e=t;break}return e}ze.objectify=Tv});var co=b(De=>{Object.defineProperty(De,"__esModule",{value:!0});var Rn=pt(),wv=On();function Ov(){try{return new ErrorEvent(""),!0}catch{return!1}}De.supportsErrorEvent=Ov;function Cv(){try{return new DOMError(""),!0}catch{return!1}}De.supportsDOMError=Cv;function xv(){try{return new DOMException(""),!0}catch{return!1}}De.supportsDOMException=xv;function ao(){if(!("fetch"in Rn.getGlobalObject()))return!1;try{return new Headers,new Request(""),new Response,!0}catch{return!1}}De.supportsFetch=ao;function uo(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}De.isNativeFetch=uo;function Rv(){if(!ao())return!1;var t=Rn.getGlobalObject();if(uo(t.fetch))return!0;var e=!1,r=t.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&&(e=uo(n.contentWindow.fetch)),r.head.removeChild(n)}catch(i){wv.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return e}De.supportsNativeFetch=Rv;function Iv(){return"ReportingObserver"in Rn.getGlobalObject()}De.supportsReportingObserver=Iv;function Av(){if(!ao())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}De.supportsReferrerPolicy=Av;function Mv(){var t=Rn.getGlobalObject(),e=t.chrome,r=e&&e.app&&e.app.runtime,n="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!r&&n}De.supportsHistory=Mv});var lc=b(po=>{Object.defineProperty(po,"__esModule",{value:!0});var er=q(),Pv=pt(),In=Rt(),sc=On(),Ze=so(),Nv=Cn(),ac=co(),K=Pv.getGlobalObject(),Ar={},uc={};function qv(t){if(!uc[t])switch(uc[t]=!0,t){case"console":Dv();break;case"dom":Vv();break;case"xhr":Uv();break;case"fetch":Lv();break;case"history":Hv();break;case"error":Wv();break;case"unhandledrejection":$v();break;default:sc.logger.warn("unknown instrumentation type:",t)}}function kv(t){!t||typeof t.type!="string"||typeof t.callback!="function"||(Ar[t.type]=Ar[t.type]||[],Ar[t.type].push(t.callback),qv(t.type))}po.addInstrumentationHandler=kv;function Le(t,e){var r,n;if(!(!t||!Ar[t]))try{for(var i=er.__values(Ar[t]||[]),o=i.next();!o.done;o=i.next()){var s=o.value;try{s(e)}catch(a){sc.logger.error(`Error while triggering instrumentation handler.
8
8
  Type: `+t+`
9
- Name: `+Zp.getFunctionName(a)+`
10
- Error: `+s)}}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function rh(){"console"in Y&&["debug","info","warn","error","log","assert"].forEach(function(t){t in Y.console&&ze.fill(Y.console,t,function(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];Ae("console",{args:r,level:t}),e&&Function.prototype.apply.call(e,Y.console,r)}})})}function nh(){!su.supportsNativeFetch()||ze.fill(Y,"fetch",function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n={args:e,fetchData:{method:ih(e),url:oh(e)},startTimestamp:Date.now()};return Ae("fetch",jt.__assign({},n)),t.apply(Y,e).then(function(i){return Ae("fetch",jt.__assign(jt.__assign({},n),{endTimestamp:Date.now(),response:i})),i},function(i){throw Ae("fetch",jt.__assign(jt.__assign({},n),{endTimestamp:Date.now(),error:i})),i})}})}function ih(t){return t===void 0&&(t=[]),"Request"in Y&&rn.isInstanceOf(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function oh(t){return t===void 0&&(t=[]),typeof t[0]=="string"?t[0]:"Request"in Y&&rn.isInstanceOf(t[0],Request)?t[0].url:String(t[0])}function ah(){if("XMLHttpRequest"in Y){var t=[],e=[],r=XMLHttpRequest.prototype;ze.fill(r,"open",function(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=this,s=i[1];a.__sentry_xhr__={method:rn.isString(i[0])?i[0].toUpperCase():i[0],url:i[1]},rn.isString(s)&&a.__sentry_xhr__.method==="POST"&&s.match(/sentry_key/)&&(a.__sentry_own_request__=!0);var u=function(){if(a.readyState===4){try{a.__sentry_xhr__&&(a.__sentry_xhr__.status_code=a.status)}catch{}try{var c=t.indexOf(a);if(c!==-1){t.splice(c);var l=e.splice(c)[0];a.__sentry_xhr__&&l[0]!==void 0&&(a.__sentry_xhr__.body=l[0])}}catch{}Ae("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:a})}};return"onreadystatechange"in a&&typeof a.onreadystatechange=="function"?ze.fill(a,"onreadystatechange",function(c){return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return u(),c.apply(a,l)}}):a.addEventListener("readystatechange",u),n.apply(a,i)}}),ze.fill(r,"send",function(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t.push(this),e.push(i),Ae("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),n.apply(this,i)}})}}var nn;function sh(){if(!su.supportsHistory())return;var t=Y.onpopstate;Y.onpopstate=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=Y.location.href,o=nn;if(nn=i,Ae("history",{from:o,to:i}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n.length>2?n[2]:void 0;if(o){var a=nn,s=String(o);nn=s,Ae("history",{from:a,to:s})}return r.apply(this,n)}}ze.fill(Y.history,"pushState",e),ze.fill(Y.history,"replaceState",e)}var uh=1e3,on,an;function ch(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function fh(t){if(t.type!=="keypress")return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function cu(t,e){return e===void 0&&(e=!1),function(r){if(!(!r||an===r)&&!fh(r)){var n=r.type==="keypress"?"input":r.type;on===void 0?(t({event:r,name:n,global:e}),an=r):ch(an,r)&&(t({event:r,name:n,global:e}),an=r),clearTimeout(on),on=Y.setTimeout(function(){on=void 0},uh)}}}function lh(){if("document"in Y){var t=Ae.bind(null,"dom"),e=cu(t,!0);Y.document.addEventListener("click",e,!1),Y.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(r){var n=Y[r]&&Y[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(ze.fill(n,"addEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{var u=this,c=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},l=c[o]=c[o]||{refCount:0};if(!l.handler){var d=cu(t);l.handler=d,i.call(this,o,d,s)}l.refCount+=1}catch{}return i.call(this,o,a,s)}}),ze.fill(n,"removeEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{var u=this,c=u.__sentry_instrumentation_handlers__||{},l=c[o];l&&(l.refCount-=1,l.refCount<=0&&(i.call(this,o,l.handler,s),l.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,s)}}))})}}var qi=null;function dh(){qi=Y.onerror,Y.onerror=function(t,e,r,n,i){return Ae("error",{column:n,error:i,line:r,msg:t,url:e}),qi?qi.apply(this,arguments):!1}}var Ni=null;function ph(){Ni=Y.onunhandledrejection,Y.onunhandledrejection=function(t){return Ae("unhandledrejection",t),Ni?Ni.apply(this,arguments):!0}}});var du=b(we=>{Object.defineProperty(we,"__esModule",{value:!0});var fr=N(),hh=nt(),ki=en();function _h(){var t=hh.getGlobalObject(),e=t.crypto||t.msCrypto;if(e!==void 0&&e.getRandomValues){var r=new Uint16Array(8);e.getRandomValues(r),r[3]=r[3]&4095|16384,r[4]=r[4]&16383|32768;var n=function(i){for(var o=i.toString(16);o.length<4;)o="0"+o;return o};return n(r[0])+n(r[1])+n(r[2])+n(r[3])+n(r[4])+n(r[5])+n(r[6])+n(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(i){var o=Math.random()*16|0,a=i==="x"?o:o&3|8;return a.toString(16)})}we.uuid4=_h;function vh(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+r+n}}we.parseUrl=vh;function gh(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}we.getEventDescription=gh;function mh(t,e,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}we.addExceptionTypeValue=mh;function yh(t,e){var r;if(!(!t.exception||!t.exception.values)){var n=t.exception.values[0],i={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism=fr.__assign(fr.__assign(fr.__assign({},i),o),e),e&&"data"in e){var a=fr.__assign(fr.__assign({},(r=o)===null||r===void 0?void 0:r.data),e.data);n.mechanism.data=a}}}we.addExceptionMechanism=yh;var bh=/^(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 Sh(t){var e=t.match(bh)||[],r=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10);return{buildmetadata:e[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:e[4]}}we.parseSemver=Sh;var lu=60*1e3;function Eh(t,e){if(!e)return lu;var r=parseInt(""+e,10);if(!isNaN(r))return r*1e3;var n=Date.parse(""+e);return isNaN(n)?lu:n-t}we.parseRetryAfterHeader=Eh;function Th(t,e,r){r===void 0&&(r=5);var n=e.lineno||0,i=t.length,o=Math.max(Math.min(i,n-1),0);e.pre_context=t.slice(Math.max(0,o-r),o).map(function(a){return ki.snipLine(a,0)}),e.context_line=ki.snipLine(t[Math.min(i-1,o)],e.colno||0),e.post_context=t.slice(Math.min(o+1,i),o+1+r).map(function(a){return ki.snipLine(a,0)})}we.addContextToFrame=Th;function Oh(t){return t.split(/[\?#]/,1)[0]}we.stripUrlQueryAndFragment=Oh;function wh(t){var e;if((e=t)===null||e===void 0?void 0:e.__sentry_captured__)return!0;try{Object.defineProperty(t,"__sentry_captured__",{value:!0})}catch{}return!1}we.checkOrSetAlreadyCaught=wh});var mu=b(Ve=>{Object.defineProperty(Ve,"__esModule",{value:!0});function pu(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];i==="."?t.splice(n,1):i===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var xh=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function hu(t){var e=xh.exec(t);return e?e.slice(1):[]}function Di(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r="",n=!1,i=t.length-1;i>=-1&&!n;i--){var o=i>=0?t[i]:"/";!o||(r=o+"/"+r,n=o.charAt(0)==="/")}return r=pu(r.split("/").filter(function(a){return!!a}),!n).join("/"),(n?"/":"")+r||"."}Ve.resolve=Di;function _u(t){for(var e=0;e<t.length&&t[e]==="";e++);for(var r=t.length-1;r>=0&&t[r]==="";r--);return e>r?[]:t.slice(e,r-e+1)}function Ih(t,e){t=Di(t).substr(1),e=Di(e).substr(1);for(var r=_u(t.split("/")),n=_u(e.split("/")),i=Math.min(r.length,n.length),o=i,a=0;a<i;a++)if(r[a]!==n[a]){o=a;break}for(var s=[],a=o;a<r.length;a++)s.push("..");return s=s.concat(n.slice(o)),s.join("/")}Ve.relative=Ih;function vu(t){var e=gu(t),r=t.substr(-1)==="/",n=pu(t.split("/").filter(function(i){return!!i}),!e).join("/");return!n&&!e&&(n="."),n&&r&&(n+="/"),(e?"/":"")+n}Ve.normalizePath=vu;function gu(t){return t.charAt(0)==="/"}Ve.isAbsolute=gu;function Ch(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return vu(t.join("/"))}Ve.join=Ch;function Rh(t){var e=hu(t),r=e[0],n=e[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}Ve.dirname=Rh;function Ah(t,e){var r=hu(t)[2];return e&&r.substr(e.length*-1)===e&&(r=r.substr(0,r.length-e.length)),r}Ve.basename=Ah});var ji=b(Fi=>{Object.defineProperty(Fi,"__esModule",{value:!0});var Ph=vt(),qh=function(){function t(e){var r=this;this._state="PENDING",this._handlers=[],this._resolve=function(n){r._setResult("RESOLVED",n)},this._reject=function(n){r._setResult("REJECTED",n)},this._setResult=function(n,i){if(r._state==="PENDING"){if(Ph.isThenable(i)){i.then(r._resolve,r._reject);return}r._state=n,r._value=i,r._executeHandlers()}},this._attachHandler=function(n){r._handlers=r._handlers.concat(n),r._executeHandlers()},this._executeHandlers=function(){if(r._state!=="PENDING"){var n=r._handlers.slice();r._handlers=[],n.forEach(function(i){i.done||(r._state==="RESOLVED"&&i.onfulfilled&&i.onfulfilled(r._value),r._state==="REJECTED"&&i.onrejected&&i.onrejected(r._value),i.done=!0)})}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.resolve=function(e){return new t(function(r){r(e)})},t.reject=function(e){return new t(function(r,n){n(e)})},t.all=function(e){return new t(function(r,n){if(!Array.isArray(e)){n(new TypeError("Promise.all requires an array as input."));return}if(e.length===0){r([]);return}var i=e.length,o=[];e.forEach(function(a,s){t.resolve(a).then(function(u){o[s]=u,i-=1,i===0&&r(o)}).then(null,n)})})},t.prototype.then=function(e,r){var n=this;return new t(function(i,o){n._attachHandler({done:!1,onfulfilled:function(a){if(!e){i(a);return}try{i(e(a));return}catch(s){o(s);return}},onrejected:function(a){if(!r){o(a);return}try{i(r(a));return}catch(s){o(s);return}}})})},t.prototype.catch=function(e){return this.then(function(r){return r},e)},t.prototype.finally=function(e){var r=this;return new t(function(n,i){var o,a;return r.then(function(s){a=!1,o=s,e&&e()},function(s){a=!0,o=s,e&&e()}).then(function(){if(a){i(o);return}n(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"},t}();Fi.SyncPromise=qh});var yu=b(Li=>{Object.defineProperty(Li,"__esModule",{value:!0});var Nh=Kr(),Hi=ji(),Mh=function(){function t(e){this._limit=e,this._buffer=[]}return t.prototype.isReady=function(){return this._limit===void 0||this.length()<this._limit},t.prototype.add=function(e){var r=this;if(!this.isReady())return Hi.SyncPromise.reject(new Nh.SentryError("Not adding Promise due to buffer limit reached."));var n=e();return this._buffer.indexOf(n)===-1&&this._buffer.push(n),n.then(function(){return r.remove(n)}).then(null,function(){return r.remove(n).then(null,function(){})}),n},t.prototype.remove=function(e){var r=this._buffer.splice(this._buffer.indexOf(e),1)[0];return r},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(e){var r=this;return new Hi.SyncPromise(function(n){var i=setTimeout(function(){e&&e>0&&n(!1)},e);Hi.SyncPromise.all(r._buffer).then(function(){clearTimeout(i),n(!0)}).then(null,function(){n(!0)})})},t}();Li.PromiseBuffer=Mh});var Ou=b((xe,Tu)=>{Object.defineProperty(xe,"__esModule",{value:!0});var bu=nt(),Su=Wr(),Ui={nowSeconds:function(){return Date.now()/1e3}};function kh(){var t=bu.getGlobalObject().performance;if(!(!t||!t.now)){var e=Date.now()-t.now();return{now:function(){return t.now()},timeOrigin:e}}}function Dh(){try{var t=Su.dynamicRequire(Tu,"perf_hooks");return t.performance}catch{return}}var sn=Su.isNodeEnv()?Dh():kh(),Eu=sn===void 0?Ui:{nowSeconds:function(){return(sn.timeOrigin+sn.now())/1e3}};xe.dateTimestampInSeconds=Ui.nowSeconds.bind(Ui);xe.timestampInSeconds=Eu.nowSeconds.bind(Eu);xe.timestampWithMs=xe.timestampInSeconds;xe.usingPerformanceAPI=sn!==void 0;xe.browserPerformanceTimeOrigin=function(){var t=bu.getGlobalObject().performance;if(!t||!t.now){xe._browserPerformanceTimeOriginMode="none";return}var e=3600*1e3,r=t.now(),n=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,o=i<e,a=t.timing&&t.timing.navigationStart,s=typeof a=="number",u=s?Math.abs(a+r-n):e,c=u<e;return o||c?i<=u?(xe._browserPerformanceTimeOriginMode="timeOrigin",t.timeOrigin):(xe._browserPerformanceTimeOriginMode="navigationStart",a):(xe._browserPerformanceTimeOriginMode="dateNow",n)}()});var P=b(K=>{Object.defineProperty(K,"__esModule",{value:!0});var Q=N();Q.__exportStar($s(),K);Q.__exportStar(gi(),K);Q.__exportStar(Xs(),K);Q.__exportStar(Kr(),K);Q.__exportStar(nt(),K);Q.__exportStar(fu(),K);Q.__exportStar(vt(),K);Q.__exportStar(Qr(),K);Q.__exportStar(Ti(),K);Q.__exportStar(du(),K);Q.__exportStar(Wr(),K);Q.__exportStar(Ci(),K);Q.__exportStar(mu(),K);Q.__exportStar(yu(),K);Q.__exportStar(Zr(),K);Q.__exportStar(en(),K);Q.__exportStar(Pi(),K);Q.__exportStar(ji(),K);Q.__exportStar(Ou(),K)});var Bi=b(un=>{Object.defineProperty(un,"__esModule",{value:!0});var M=N(),lr=P(),wu=100,Fh=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var r=new t;return e&&(r._breadcrumbs=M.__spread(e._breadcrumbs),r._tags=M.__assign({},e._tags),r._extra=M.__assign({},e._extra),r._contexts=M.__assign({},e._contexts),r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=M.__spread(e._eventProcessors),r._requestSession=e._requestSession),r},t.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},t.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},t.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(e){return this._requestSession=e,this},t.prototype.setTags=function(e){return this._tags=M.__assign(M.__assign({},this._tags),e),this._notifyScopeListeners(),this},t.prototype.setTag=function(e,r){var n;return this._tags=M.__assign(M.__assign({},this._tags),(n={},n[e]=r,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(e){return this._extra=M.__assign(M.__assign({},this._extra),e),this._notifyScopeListeners(),this},t.prototype.setExtra=function(e,r){var n;return this._extra=M.__assign(M.__assign({},this._extra),(n={},n[e]=r,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},t.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(e){return this.setTransactionName(e)},t.prototype.setContext=function(e,r){var n;return r===null?delete this._contexts[e]:this._contexts=M.__assign(M.__assign({},this._contexts),(n={},n[e]=r,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var e,r,n,i,o=this.getSpan();if((e=o)===null||e===void 0?void 0:e.transaction)return(r=o)===null||r===void 0?void 0:r.transaction;if((i=(n=o)===null||n===void 0?void 0:n.spanRecorder)===null||i===void 0?void 0:i.spans[0])return o.spanRecorder.spans[0]},t.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if(typeof e=="function"){var r=e(this);return r instanceof t?r:this}return e instanceof t?(this._tags=M.__assign(M.__assign({},this._tags),e._tags),this._extra=M.__assign(M.__assign({},this._extra),e._extra),this._contexts=M.__assign(M.__assign({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):lr.isPlainObject(e)&&(e=e,this._tags=M.__assign(M.__assign({},this._tags),e.tags),this._extra=M.__assign(M.__assign({},this._extra),e.extra),this._contexts=M.__assign(M.__assign({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.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._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(e,r){var n=typeof r=="number"?Math.min(r,wu):wu;if(n<=0)return this;var i=M.__assign({timestamp:lr.dateTimestampInSeconds()},e);return this._breadcrumbs=M.__spread(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(e,r){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=M.__assign(M.__assign({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=M.__assign(M.__assign({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=M.__assign(M.__assign({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=M.__assign(M.__assign({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=M.__assign({trace:this._span.getTraceContext()},e.contexts);var i=(n=this._span.transaction)===null||n===void 0?void 0:n.name;i&&(e.tags=M.__assign({transaction:i},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=M.__spread(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(M.__spread(xu(),this._eventProcessors),e,r)},t.prototype._notifyEventProcessors=function(e,r,n,i){var o=this;return i===void 0&&(i=0),new lr.SyncPromise(function(a,s){var u=e[i];if(r===null||typeof u!="function")a(r);else{var c=u(M.__assign({},r),n);lr.isThenable(c)?c.then(function(l){return o._notifyEventProcessors(e,l,n,i+1).then(a)}).then(null,s):o._notifyEventProcessors(e,c,n,i+1).then(a).then(null,s)}})},t.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(r){r(e)}),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},t}();un.Scope=Fh;function xu(){var t=lr.getGlobalObject();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function jh(t){xu().push(t)}un.addGlobalEventProcessor=jh});var Vi=b(zi=>{Object.defineProperty(zi,"__esModule",{value:!0});var Gi=ne(),Ht=P(),Hh=function(){function t(e){this.errors=0,this.sid=Ht.uuid4(),this.duration=0,this.status=Gi.SessionStatus.Ok,this.init=!0,this.ignoreDuration=!1;var r=Ht.timestampInSeconds();this.timestamp=r,this.started=r,e&&this.update(e)}return t.prototype.update=function(e){if(e===void 0&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),!this.did&&!e.did&&(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Ht.timestampInSeconds(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=e.sid.length===32?e.sid:Ht.uuid4()),e.init!==void 0&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),typeof e.started=="number"&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if(typeof e.duration=="number")this.duration=e.duration;else{var r=this.timestamp-this.started;this.duration=r>=0?r:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),typeof e.errors=="number"&&(this.errors=e.errors),e.status&&(this.status=e.status)},t.prototype.close=function(e){e?this.update({status:e}):this.status===Gi.SessionStatus.Ok?this.update({status:Gi.SessionStatus.Exited}):this.update()},t.prototype.toJSON=function(){return Ht.dropUndefinedKeys({sid:""+this.sid,init:this.init,started:new Date(this.started*1e3).toISOString(),timestamp:new Date(this.timestamp*1e3).toISOString(),status:this.status,errors:this.errors,did:typeof this.did=="number"||typeof this.did=="string"?""+this.did:void 0,duration:this.duration,attrs:Ht.dropUndefinedKeys({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}();zi.Session=Hh});var $i=b(_e=>{Object.defineProperty(_e,"__esModule",{value:!0});var Pe=N(),Iu=ne(),qe=P(),Wi=Bi(),Lh=Vi();_e.API_VERSION=4;var Uh=100,cn=function(){function t(e,r,n){r===void 0&&(r=new Wi.Scope),n===void 0&&(n=_e.API_VERSION),this._version=n,this._stack=[{}],this.getStackTop().scope=r,e&&this.bindClient(e)}return t.prototype.isOlderThan=function(e){return this._version<e},t.prototype.bindClient=function(e){var r=this.getStackTop();r.client=e,e&&e.setupIntegrations&&e.setupIntegrations()},t.prototype.pushScope=function(){var e=Wi.Scope.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},t.prototype.popScope=function(){return this.getStack().length<=1?!1:!!this.getStack().pop()},t.prototype.withScope=function(e){var r=this.pushScope();try{e(r)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(e,r){var n=this._lastEventId=qe.uuid4(),i=r;if(!r){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(a){o=a}i={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,Pe.__assign(Pe.__assign({},i),{event_id:n})),n},t.prototype.captureMessage=function(e,r,n){var i=this._lastEventId=qe.uuid4(),o=n;if(!n){var a=void 0;try{throw new Error(e)}catch(s){a=s}o={originalException:e,syntheticException:a}}return this._invokeClient("captureMessage",e,r,Pe.__assign(Pe.__assign({},o),{event_id:i})),i},t.prototype.captureEvent=function(e,r){var n=qe.uuid4();return e.type!=="transaction"&&(this._lastEventId=n),this._invokeClient("captureEvent",e,Pe.__assign(Pe.__assign({},r),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(e,r){var n=this.getStackTop(),i=n.scope,o=n.client;if(!(!i||!o)){var a=o.getOptions&&o.getOptions()||{},s=a.beforeBreadcrumb,u=s===void 0?null:s,c=a.maxBreadcrumbs,l=c===void 0?Uh:c;if(!(l<=0)){var d=qe.dateTimestampInSeconds(),h=Pe.__assign({timestamp:d},e),y=u?qe.consoleSandbox(function(){return u(h,r)}):h;y!==null&&i.addBreadcrumb(y,l)}}},t.prototype.setUser=function(e){var r=this.getScope();r&&r.setUser(e)},t.prototype.setTags=function(e){var r=this.getScope();r&&r.setTags(e)},t.prototype.setExtras=function(e){var r=this.getScope();r&&r.setExtras(e)},t.prototype.setTag=function(e,r){var n=this.getScope();n&&n.setTag(e,r)},t.prototype.setExtra=function(e,r){var n=this.getScope();n&&n.setExtra(e,r)},t.prototype.setContext=function(e,r){var n=this.getScope();n&&n.setContext(e,r)},t.prototype.configureScope=function(e){var r=this.getStackTop(),n=r.scope,i=r.client;n&&i&&e(n)},t.prototype.run=function(e){var r=Yi(this);try{e(this)}finally{Yi(r)}},t.prototype.getIntegration=function(e){var r=this.getClient();if(!r)return null;try{return r.getIntegration(e)}catch{return qe.logger.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},t.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},t.prototype.startTransaction=function(e,r){return this._callExtensionMethod("startTransaction",e,r)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(e){if(e===void 0&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var e,r,n,i,o;(n=(r=(e=this.getStackTop())===null||e===void 0?void 0:e.scope)===null||r===void 0?void 0:r.getSession())===null||n===void 0||n.close(),this._sendSessionUpdate(),(o=(i=this.getStackTop())===null||i===void 0?void 0:i.scope)===null||o===void 0||o.setSession()},t.prototype.startSession=function(e){var r=this.getStackTop(),n=r.scope,i=r.client,o=i&&i.getOptions()||{},a=o.release,s=o.environment,u=qe.getGlobalObject(),c=(u.navigator||{}).userAgent,l=new Lh.Session(Pe.__assign(Pe.__assign(Pe.__assign({release:a,environment:s},n&&{user:n.getUser()}),c&&{userAgent:c}),e));if(n){var d=n.getSession&&n.getSession();d&&d.status===Iu.SessionStatus.Ok&&d.update({status:Iu.SessionStatus.Exited}),this.endSession(),n.setSession(l)}return l},t.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),r=e.scope,n=e.client;if(!!r){var i=r.getSession&&r.getSession();i&&n&&n.captureSession&&n.captureSession(i)}},t.prototype._invokeClient=function(e){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop(),a=o.scope,s=o.client;s&&s[e]&&(r=s)[e].apply(r,Pe.__spread(n,[a]))},t.prototype._callExtensionMethod=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=Lt(),o=i.__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,r);qe.logger.warn("Extension method "+e+" couldn't be found, doing nothing.")},t}();_e.Hub=cn;function Lt(){var t=qe.getGlobalObject();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}_e.getMainCarrier=Lt;function Yi(t){var e=Lt(),r=We(e);return fn(e,t),r}_e.makeMain=Yi;function Bh(){var t=Lt();return(!Cu(t)||We(t).isOlderThan(_e.API_VERSION))&&fn(t,new cn),qe.isNodeEnv()?zh(t):We(t)}_e.getCurrentHub=Bh;function Gh(){qe.logger.warn("Function `getActiveDomain` is deprecated and will be removed in a future version.");var t=Lt().__SENTRY__;return t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active}_e.getActiveDomain=Gh;function zh(t){var e,r,n;try{var i=(n=(r=(e=Lt().__SENTRY__)===null||e===void 0?void 0:e.extensions)===null||r===void 0?void 0:r.domain)===null||n===void 0?void 0:n.active;if(!i)return We(t);if(!Cu(i)||We(i).isOlderThan(_e.API_VERSION)){var o=We(t).getStackTop();fn(i,new cn(o.client,Wi.Scope.clone(o.scope)))}return We(i)}catch{return We(t)}}function Cu(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function We(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new cn),t.__SENTRY__.hub}_e.getHubFromCarrier=We;function fn(t,e){return t?(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0):!1}_e.setHubOnCarrier=fn});var Ru=b(Xi=>{Object.defineProperty(Xi,"__esModule",{value:!0});var Ki=ne(),Ji=P(),Vh=$i(),Wh=function(){function t(e,r){var n=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=e,this._intervalId=setInterval(function(){return n.flush()},this.flushTimeout*1e3),this._sessionAttrs=r}return t.prototype.sendSessionAggregates=function(e){if(!this._transport.sendSession){Ji.logger.warn("Dropping session because custom transport doesn't implement sendSession");return}this._transport.sendSession(e).then(null,function(r){Ji.logger.error("Error while sending session: "+r)})},t.prototype.flush=function(){var e=this.getSessionAggregates();e.aggregates.length!==0&&(this._pendingAggregates={},this.sendSessionAggregates(e))},t.prototype.getSessionAggregates=function(){var e=this,r=Object.keys(this._pendingAggregates).map(function(i){return e._pendingAggregates[parseInt(i)]}),n={attrs:this._sessionAttrs,aggregates:r};return Ji.dropUndefinedKeys(n)},t.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},t.prototype.incrementSessionStatusCount=function(){var e,r;if(!!this._isEnabled){var n=Vh.getCurrentHub().getScope(),i=(e=n)===null||e===void 0?void 0:e.getRequestSession();i&&i.status&&(this._incrementSessionStatusCount(i.status,new Date),(r=n)===null||r===void 0||r.setRequestSession(void 0))}},t.prototype._incrementSessionStatusCount=function(e,r){var n=new Date(r).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};var i=this._pendingAggregates[n];switch(i.started||(i.started=new Date(n).toISOString()),e){case Ki.RequestSessionStatus.Errored:return i.errored=(i.errored||0)+1,i.errored;case Ki.RequestSessionStatus.Ok:return i.exited=(i.exited||0)+1,i.exited;case Ki.RequestSessionStatus.Crashed:return i.crashed=(i.crashed||0)+1,i.crashed}},t}();Xi.SessionFlusher=Wh});var ge=b(ve=>{Object.defineProperty(ve,"__esModule",{value:!0});var Au=Bi();ve.addGlobalEventProcessor=Au.addGlobalEventProcessor;ve.Scope=Au.Scope;var Yh=Vi();ve.Session=Yh.Session;var $h=Ru();ve.SessionFlusher=$h.SessionFlusher;var yt=$i();ve.getActiveDomain=yt.getActiveDomain;ve.getCurrentHub=yt.getCurrentHub;ve.getHubFromCarrier=yt.getHubFromCarrier;ve.getMainCarrier=yt.getMainCarrier;ve.Hub=yt.Hub;ve.makeMain=yt.makeMain;ve.setHubOnCarrier=yt.setHubOnCarrier});var Pu=b(se=>{Object.defineProperty(se,"__esModule",{value:!0});var ln=N(),Kh=ge();function de(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Kh.getCurrentHub();if(n&&n[t])return n[t].apply(n,ln.__spread(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Jh(t,e){var r;try{throw new Error("Sentry syntheticException")}catch(n){r=n}return de("captureException",t,{captureContext:e,originalException:t,syntheticException:r})}se.captureException=Jh;function Xh(t,e){var r;try{throw new Error(t)}catch(o){r=o}var n=typeof e=="string"?e:void 0,i=typeof e!="string"?{captureContext:e}:void 0;return de("captureMessage",t,n,ln.__assign({originalException:t,syntheticException:r},i))}se.captureMessage=Xh;function Qh(t){return de("captureEvent",t)}se.captureEvent=Qh;function Zh(t){de("configureScope",t)}se.configureScope=Zh;function e_(t){de("addBreadcrumb",t)}se.addBreadcrumb=e_;function t_(t,e){de("setContext",t,e)}se.setContext=t_;function r_(t){de("setExtras",t)}se.setExtras=r_;function n_(t){de("setTags",t)}se.setTags=n_;function i_(t,e){de("setExtra",t,e)}se.setExtra=i_;function o_(t,e){de("setTag",t,e)}se.setTag=o_;function a_(t){de("setUser",t)}se.setUser=a_;function s_(t){de("withScope",t)}se.withScope=s_;function u_(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];de.apply(void 0,ln.__spread(["_invokeClient",t],e))}se._callOnClient=u_;function c_(t,e){return de("startTransaction",ln.__assign({},t),e)}se.startTransaction=c_});var Mu=b(Qi=>{Object.defineProperty(Qi,"__esModule",{value:!0});var qu=P(),Nu="7",f_=function(){function t(e,r,n){r===void 0&&(r={}),this.dsn=e,this._dsnObject=new qu.Dsn(e),this.metadata=r,this._tunnel=n}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){var e=this.getDsn(),r=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return r+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var e=this.getDsn();return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},t.prototype.getRequestHeaders=function(e,r){var n=this.getDsn(),i=["Sentry sentry_version="+Nu];return i.push("sentry_client="+e+"/"+r),i.push("sentry_key="+n.publicKey),n.pass&&i.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},t.prototype.getReportDialogEndpoint=function(e){e===void 0&&(e={});var r=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",i=[];i.push("dsn="+r.toString());for(var o in e)if(o!=="dsn")if(o==="user"){if(!e.user)continue;e.user.name&&i.push("name="+encodeURIComponent(e.user.name)),e.user.email&&i.push("email="+encodeURIComponent(e.user.email))}else i.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return i.length?n+"?"+i.join("&"):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(e){if(this._tunnel)return this._tunnel;var r=this.getBaseApiEndpoint(),n=this.getDsn();return""+r+n.projectId+"/"+e+"/"},t.prototype._encodedAuth=function(){var e=this.getDsn(),r={sentry_key:e.publicKey,sentry_version:Nu};return qu.urlEncode(r)},t}();Qi.API=f_});var Hu=b(it=>{Object.defineProperty(it,"__esModule",{value:!0});var dn=N(),ku=ge(),l_=P();it.installedIntegrations=[];function Du(t){return t.reduce(function(e,r){return e.every(function(n){return r.name!==n.name})&&e.push(r),e},[])}function Fu(t){var e=t.defaultIntegrations&&dn.__spread(t.defaultIntegrations)||[],r=t.integrations,n=dn.__spread(Du(e));Array.isArray(r)?n=dn.__spread(n.filter(function(a){return r.every(function(s){return s.name!==a.name})}),Du(r)):typeof r=="function"&&(n=r(n),n=Array.isArray(n)?n:[n]);var i=n.map(function(a){return a.name}),o="Debug";return i.indexOf(o)!==-1&&n.push.apply(n,dn.__spread(n.splice(i.indexOf(o),1))),n}it.getIntegrationsToSetup=Fu;function ju(t){it.installedIntegrations.indexOf(t.name)===-1&&(t.setupOnce(ku.addGlobalEventProcessor,ku.getCurrentHub),it.installedIntegrations.push(t.name),l_.logger.log("Integration installed: "+t.name))}it.setupIntegration=ju;function d_(t){var e={};return Fu(t).forEach(function(r){e[r.name]=r,ju(r)}),Object.defineProperty(e,"initialized",{value:!0}),e}it.setupIntegrations=d_});var Uu=b(Zi=>{Object.defineProperty(Zi,"__esModule",{value:!0});var me=N(),p_=ge(),dr=ne(),L=P(),h_=Hu(),Lu="Not capturing exception because it's already been captured.",__=function(){function t(e,r){this._integrations={},this._numProcessing=0,this._backend=new e(r),this._options=r,r.dsn&&(this._dsn=new L.Dsn(r.dsn))}return t.prototype.captureException=function(e,r,n){var i=this;if(L.checkOrSetAlreadyCaught(e)){L.logger.log(Lu);return}var o=r&&r.event_id;return this._process(this._getBackend().eventFromException(e,r).then(function(a){return i._captureEvent(a,r,n)}).then(function(a){o=a})),o},t.prototype.captureMessage=function(e,r,n,i){var o=this,a=n&&n.event_id,s=L.isPrimitive(e)?this._getBackend().eventFromMessage(String(e),r,n):this._getBackend().eventFromException(e,n);return this._process(s.then(function(u){return o._captureEvent(u,n,i)}).then(function(u){a=u})),a},t.prototype.captureEvent=function(e,r,n){var i;if(((i=r)===null||i===void 0?void 0:i.originalException)&&L.checkOrSetAlreadyCaught(r.originalException)){L.logger.log(Lu);return}var o=r&&r.event_id;return this._process(this._captureEvent(e,r,n).then(function(a){o=a})),o},t.prototype.captureSession=function(e){if(!this._isEnabled()){L.logger.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?L.logger.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1}))},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(e){var r=this;return this._isClientDoneProcessing(e).then(function(n){return r.getTransport().close(e).then(function(i){return n&&i})})},t.prototype.close=function(e){var r=this;return this.flush(e).then(function(n){return r.getOptions().enabled=!1,n})},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=h_.setupIntegrations(this._options))},t.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch{return L.logger.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(e,r){var n,i,o=!1,a=!1,s=r.exception&&r.exception.values;if(s){a=!0;try{for(var u=me.__values(s),c=u.next();!c.done;c=u.next()){var l=c.value,d=l.mechanism;if(d&&d.handled===!1){o=!0;break}}}catch(S){n={error:S}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}var h=e.status===dr.SessionStatus.Ok,y=h&&e.errors===0||h&&o;y&&(e.update(me.__assign(me.__assign({},o&&{status:dr.SessionStatus.Crashed}),{errors:e.errors||Number(a||o)})),this.captureSession(e))},t.prototype._sendSession=function(e){this._getBackend().sendSession(e)},t.prototype._isClientDoneProcessing=function(e){var r=this;return new L.SyncPromise(function(n){var i=0,o=1,a=setInterval(function(){r._numProcessing==0?(clearInterval(a),n(!0)):(i+=o,e&&i>=e&&(clearInterval(a),n(!1)))},o)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return this.getOptions().enabled!==!1&&this._dsn!==void 0},t.prototype._prepareEvent=function(e,r,n){var i=this,o=this.getOptions().normalizeDepth,a=o===void 0?3:o,s=me.__assign(me.__assign({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:L.uuid4()),timestamp:e.timestamp||L.dateTimestampInSeconds()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var u=r;n&&n.captureContext&&(u=p_.Scope.clone(u).update(n.captureContext));var c=L.SyncPromise.resolve(s);return u&&(c=u.applyToEvent(s,n)),c.then(function(l){return typeof a=="number"&&a>0?i._normalizeEvent(l,a):l})},t.prototype._normalizeEvent=function(e,r){if(!e)return null;var n=me.__assign(me.__assign(me.__assign(me.__assign(me.__assign({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(a){return me.__assign(me.__assign({},a),a.data&&{data:L.normalize(a.data,r)})})}),e.user&&{user:L.normalize(e.user,r)}),e.contexts&&{contexts:L.normalize(e.contexts,r)}),e.extra&&{extra:L.normalize(e.extra,r)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var i=this.getOptions()._experiments,o=i===void 0?{}:i;return o.ensureNoCircularStructures?L.normalize(n):n},t.prototype._applyClientOptions=function(e){var r=this.getOptions(),n=r.environment,i=r.release,o=r.dist,a=r.maxValueLength,s=a===void 0?250:a;"environment"in e||(e.environment="environment"in r?n:"production"),e.release===void 0&&i!==void 0&&(e.release=i),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=L.truncate(e.message,s));var u=e.exception&&e.exception.values&&e.exception.values[0];u&&u.value&&(u.value=L.truncate(u.value,s));var c=e.request;c&&c.url&&(c.url=L.truncate(c.url,s))},t.prototype._applyIntegrationsMetadata=function(e){var r=Object.keys(this._integrations);r.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=me.__spread(e.sdk.integrations||[],r))},t.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},t.prototype._captureEvent=function(e,r,n){return this._processEvent(e,r,n).then(function(i){return i.event_id},function(i){L.logger.error(i)})},t.prototype._processEvent=function(e,r,n){var i=this,o,a,s=this.getOptions(),u=s.beforeSend,c=s.sampleRate,l=this.getTransport();if(!this._isEnabled())return L.SyncPromise.reject(new L.SentryError("SDK not enabled, will not capture event."));var d=e.type==="transaction";return!d&&typeof c=="number"&&Math.random()>c?((a=(o=l).recordLostEvent)===null||a===void 0||a.call(o,dr.Outcome.SampleRate,"event"),L.SyncPromise.reject(new L.SentryError("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(e,n,r).then(function(h){var y,S;if(h===null)throw(S=(y=l).recordLostEvent)===null||S===void 0||S.call(y,dr.Outcome.EventProcessor,e.type||"event"),new L.SentryError("An event processor returned null, will not send event.");var T=r&&r.data&&r.data.__sentry__===!0;if(T||d||!u)return h;var C=u(h,r);return i._ensureBeforeSendRv(C)}).then(function(h){var y,S;if(h===null)throw(S=(y=l).recordLostEvent)===null||S===void 0||S.call(y,dr.Outcome.BeforeSend,e.type||"event"),new L.SentryError("`beforeSend` returned `null`, will not send event.");var T=n&&n.getSession&&n.getSession();return!d&&T&&i._updateSessionFromEvent(T,h),i._sendEvent(h),h}).then(null,function(h){throw h instanceof L.SentryError?h:(i.captureException(h,{data:{__sentry__:!0},originalException:h}),new L.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
11
- Reason: `+h))})},t.prototype._process=function(e){var r=this;this._numProcessing+=1,e.then(function(n){return r._numProcessing-=1,n},function(n){return r._numProcessing-=1,n})},t.prototype._ensureBeforeSendRv=function(e){var r="`beforeSend` method has to return `null` or a valid event.";if(L.isThenable(e))return e.then(function(n){if(!(L.isPlainObject(n)||n===null))throw new L.SentryError(r);return n},function(n){throw new L.SentryError("beforeSend rejected with "+n)});if(!(L.isPlainObject(e)||e===null))throw new L.SentryError(r);return e},t}();Zi.BaseClient=__});var to=b(eo=>{Object.defineProperty(eo,"__esModule",{value:!0});var v_=ne(),Bu=P(),g_=function(){function t(){}return t.prototype.sendEvent=function(e){return Bu.SyncPromise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:v_.Status.Skipped})},t.prototype.close=function(e){return Bu.SyncPromise.resolve(!0)},t}();eo.NoopTransport=g_});var Gu=b(ro=>{Object.defineProperty(ro,"__esModule",{value:!0});var Ut=P(),m_=to(),y_=function(){function t(e){this._options=e,this._options.dsn||Ut.logger.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(e,r){throw new Ut.SentryError("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(e,r,n){throw new Ut.SentryError("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,function(r){Ut.logger.error("Error while sending event: "+r)})},t.prototype.sendSession=function(e){if(!this._transport.sendSession){Ut.logger.warn("Dropping session because custom transport doesn't implement sendSession");return}this._transport.sendSession(e).then(null,function(r){Ut.logger.error("Error while sending session: "+r)})},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new m_.NoopTransport},t}();ro.BaseBackend=y_});var Vu=b(pn=>{Object.defineProperty(pn,"__esModule",{value:!0});var bt=N();function zu(t){if(!(!t.metadata||!t.metadata.sdk)){var e=t.metadata.sdk,r=e.name,n=e.version;return{name:r,version:n}}}function b_(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=bt.__spread(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=bt.__spread(t.sdk.packages||[],e.packages||[])),t}function S_(t,e){var r=zu(e),n=JSON.stringify(bt.__assign(bt.__assign({sent_at:new Date().toISOString()},r&&{sdk:r}),e.forceEnvelope()&&{dsn:e.getDsn().toString()})),i="aggregates"in t?"sessions":"session",o=JSON.stringify({type:i});return{body:n+`
9
+ Name: `+Nv.getFunctionName(s)+`
10
+ Error: `+a)}}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function Dv(){"console"in K&&["debug","info","warn","error","log","assert"].forEach(function(t){t in K.console&&Ze.fill(K.console,t,function(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];Le("console",{args:r,level:t}),e&&Function.prototype.apply.call(e,K.console,r)}})})}function Lv(){!ac.supportsNativeFetch()||Ze.fill(K,"fetch",function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n={args:e,fetchData:{method:Fv(e),url:jv(e)},startTimestamp:Date.now()};return Le("fetch",er.__assign({},n)),t.apply(K,e).then(function(i){return Le("fetch",er.__assign(er.__assign({},n),{endTimestamp:Date.now(),response:i})),i},function(i){throw Le("fetch",er.__assign(er.__assign({},n),{endTimestamp:Date.now(),error:i})),i})}})}function Fv(t){return t===void 0&&(t=[]),"Request"in K&&In.isInstanceOf(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function jv(t){return t===void 0&&(t=[]),typeof t[0]=="string"?t[0]:"Request"in K&&In.isInstanceOf(t[0],Request)?t[0].url:String(t[0])}function Uv(){if("XMLHttpRequest"in K){var t=[],e=[],r=XMLHttpRequest.prototype;Ze.fill(r,"open",function(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=this,a=i[1];s.__sentry_xhr__={method:In.isString(i[0])?i[0].toUpperCase():i[0],url:i[1]},In.isString(a)&&s.__sentry_xhr__.method==="POST"&&a.match(/sentry_key/)&&(s.__sentry_own_request__=!0);var u=function(){if(s.readyState===4){try{s.__sentry_xhr__&&(s.__sentry_xhr__.status_code=s.status)}catch{}try{var c=t.indexOf(s);if(c!==-1){t.splice(c);var l=e.splice(c)[0];s.__sentry_xhr__&&l[0]!==void 0&&(s.__sentry_xhr__.body=l[0])}}catch{}Le("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:s})}};return"onreadystatechange"in s&&typeof s.onreadystatechange=="function"?Ze.fill(s,"onreadystatechange",function(c){return function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return u(),c.apply(s,l)}}):s.addEventListener("readystatechange",u),n.apply(s,i)}}),Ze.fill(r,"send",function(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t.push(this),e.push(i),Le("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),n.apply(this,i)}})}}var An;function Hv(){if(!ac.supportsHistory())return;var t=K.onpopstate;K.onpopstate=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=K.location.href,o=An;if(An=i,Le("history",{from:o,to:i}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n.length>2?n[2]:void 0;if(o){var s=An,a=String(o);An=a,Le("history",{from:s,to:a})}return r.apply(this,n)}}Ze.fill(K.history,"pushState",e),Ze.fill(K.history,"replaceState",e)}var Bv=1e3,Mn,Pn;function Gv(t,e){if(!t||t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch{}return!1}function zv(t){if(t.type!=="keypress")return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)return!1}catch{}return!0}function cc(t,e){return e===void 0&&(e=!1),function(r){if(!(!r||Pn===r)&&!zv(r)){var n=r.type==="keypress"?"input":r.type;Mn===void 0?(t({event:r,name:n,global:e}),Pn=r):Gv(Pn,r)&&(t({event:r,name:n,global:e}),Pn=r),clearTimeout(Mn),Mn=K.setTimeout(function(){Mn=void 0},Bv)}}}function Vv(){if("document"in K){var t=Le.bind(null,"dom"),e=cc(t,!0);K.document.addEventListener("click",e,!1),K.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(function(r){var n=K[r]&&K[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ze.fill(n,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{var u=this,c=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},l=c[o]=c[o]||{refCount:0};if(!l.handler){var d=cc(t);l.handler=d,i.call(this,o,d,a)}l.refCount+=1}catch{}return i.call(this,o,s,a)}}),Ze.fill(n,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{var u=this,c=u.__sentry_instrumentation_handlers__||{},l=c[o];l&&(l.refCount-=1,l.refCount<=0&&(i.call(this,o,l.handler,a),l.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}}var lo=null;function Wv(){lo=K.onerror,K.onerror=function(t,e,r,n,i){return Le("error",{column:n,error:i,line:r,msg:t,url:e}),lo?lo.apply(this,arguments):!1}}var fo=null;function $v(){fo=K.onunhandledrejection,K.onunhandledrejection=function(t){return Le("unhandledrejection",t),fo?fo.apply(this,arguments):!0}}});var dc=b(Me=>{Object.defineProperty(Me,"__esModule",{value:!0});var Mr=q(),Yv=pt(),ho=xn();function Kv(){var t=Yv.getGlobalObject(),e=t.crypto||t.msCrypto;if(e!==void 0&&e.getRandomValues){var r=new Uint16Array(8);e.getRandomValues(r),r[3]=r[3]&4095|16384,r[4]=r[4]&16383|32768;var n=function(i){for(var o=i.toString(16);o.length<4;)o="0"+o;return o};return n(r[0])+n(r[1])+n(r[2])+n(r[3])+n(r[4])+n(r[5])+n(r[6])+n(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(i){var o=Math.random()*16|0,s=i==="x"?o:o&3|8;return s.toString(16)})}Me.uuid4=Kv;function Jv(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+r+n}}Me.parseUrl=Jv;function Xv(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}Me.getEventDescription=Xv;function Qv(t,e,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}Me.addExceptionTypeValue=Qv;function Zv(t,e){var r;if(!(!t.exception||!t.exception.values)){var n=t.exception.values[0],i={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism=Mr.__assign(Mr.__assign(Mr.__assign({},i),o),e),e&&"data"in e){var s=Mr.__assign(Mr.__assign({},(r=o)===null||r===void 0?void 0:r.data),e.data);n.mechanism.data=s}}}Me.addExceptionMechanism=Zv;var e_=/^(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 t_(t){var e=t.match(e_)||[],r=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10);return{buildmetadata:e[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:e[4]}}Me.parseSemver=t_;var fc=60*1e3;function r_(t,e){if(!e)return fc;var r=parseInt(""+e,10);if(!isNaN(r))return r*1e3;var n=Date.parse(""+e);return isNaN(n)?fc:n-t}Me.parseRetryAfterHeader=r_;function n_(t,e,r){r===void 0&&(r=5);var n=e.lineno||0,i=t.length,o=Math.max(Math.min(i,n-1),0);e.pre_context=t.slice(Math.max(0,o-r),o).map(function(s){return ho.snipLine(s,0)}),e.context_line=ho.snipLine(t[Math.min(i-1,o)],e.colno||0),e.post_context=t.slice(Math.min(o+1,i),o+1+r).map(function(s){return ho.snipLine(s,0)})}Me.addContextToFrame=n_;function i_(t){return t.split(/[\?#]/,1)[0]}Me.stripUrlQueryAndFragment=i_;function o_(t){var e;if((e=t)===null||e===void 0?void 0:e.__sentry_captured__)return!0;try{Object.defineProperty(t,"__sentry_captured__",{value:!0})}catch{}return!1}Me.checkOrSetAlreadyCaught=o_});var mc=b(et=>{Object.defineProperty(et,"__esModule",{value:!0});function pc(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];i==="."?t.splice(n,1):i===".."?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var s_=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function hc(t){var e=s_.exec(t);return e?e.slice(1):[]}function vo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r="",n=!1,i=t.length-1;i>=-1&&!n;i--){var o=i>=0?t[i]:"/";!o||(r=o+"/"+r,n=o.charAt(0)==="/")}return r=pc(r.split("/").filter(function(s){return!!s}),!n).join("/"),(n?"/":"")+r||"."}et.resolve=vo;function vc(t){for(var e=0;e<t.length&&t[e]==="";e++);for(var r=t.length-1;r>=0&&t[r]==="";r--);return e>r?[]:t.slice(e,r-e+1)}function a_(t,e){t=vo(t).substr(1),e=vo(e).substr(1);for(var r=vc(t.split("/")),n=vc(e.split("/")),i=Math.min(r.length,n.length),o=i,s=0;s<i;s++)if(r[s]!==n[s]){o=s;break}for(var a=[],s=o;s<r.length;s++)a.push("..");return a=a.concat(n.slice(o)),a.join("/")}et.relative=a_;function _c(t){var e=gc(t),r=t.substr(-1)==="/",n=pc(t.split("/").filter(function(i){return!!i}),!e).join("/");return!n&&!e&&(n="."),n&&r&&(n+="/"),(e?"/":"")+n}et.normalizePath=_c;function gc(t){return t.charAt(0)==="/"}et.isAbsolute=gc;function u_(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return _c(t.join("/"))}et.join=u_;function c_(t){var e=hc(t),r=e[0],n=e[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}et.dirname=c_;function l_(t,e){var r=hc(t)[2];return e&&r.substr(e.length*-1)===e&&(r=r.substr(0,r.length-e.length)),r}et.basename=l_});var go=b(_o=>{Object.defineProperty(_o,"__esModule",{value:!0});var f_=Rt(),d_=function(){function t(e){var r=this;this._state="PENDING",this._handlers=[],this._resolve=function(n){r._setResult("RESOLVED",n)},this._reject=function(n){r._setResult("REJECTED",n)},this._setResult=function(n,i){if(r._state==="PENDING"){if(f_.isThenable(i)){i.then(r._resolve,r._reject);return}r._state=n,r._value=i,r._executeHandlers()}},this._attachHandler=function(n){r._handlers=r._handlers.concat(n),r._executeHandlers()},this._executeHandlers=function(){if(r._state!=="PENDING"){var n=r._handlers.slice();r._handlers=[],n.forEach(function(i){i.done||(r._state==="RESOLVED"&&i.onfulfilled&&i.onfulfilled(r._value),r._state==="REJECTED"&&i.onrejected&&i.onrejected(r._value),i.done=!0)})}};try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.resolve=function(e){return new t(function(r){r(e)})},t.reject=function(e){return new t(function(r,n){n(e)})},t.all=function(e){return new t(function(r,n){if(!Array.isArray(e)){n(new TypeError("Promise.all requires an array as input."));return}if(e.length===0){r([]);return}var i=e.length,o=[];e.forEach(function(s,a){t.resolve(s).then(function(u){o[a]=u,i-=1,i===0&&r(o)}).then(null,n)})})},t.prototype.then=function(e,r){var n=this;return new t(function(i,o){n._attachHandler({done:!1,onfulfilled:function(s){if(!e){i(s);return}try{i(e(s));return}catch(a){o(a);return}},onrejected:function(s){if(!r){o(s);return}try{i(r(s));return}catch(a){o(a);return}}})})},t.prototype.catch=function(e){return this.then(function(r){return r},e)},t.prototype.finally=function(e){var r=this;return new t(function(n,i){var o,s;return r.then(function(a){s=!1,o=a,e&&e()},function(a){s=!0,o=a,e&&e()}).then(function(){if(s){i(o);return}n(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"},t}();_o.SyncPromise=d_});var yc=b(yo=>{Object.defineProperty(yo,"__esModule",{value:!0});var p_=En(),mo=go(),h_=function(){function t(e){this._limit=e,this._buffer=[]}return t.prototype.isReady=function(){return this._limit===void 0||this.length()<this._limit},t.prototype.add=function(e){var r=this;if(!this.isReady())return mo.SyncPromise.reject(new p_.SentryError("Not adding Promise due to buffer limit reached."));var n=e();return this._buffer.indexOf(n)===-1&&this._buffer.push(n),n.then(function(){return r.remove(n)}).then(null,function(){return r.remove(n).then(null,function(){})}),n},t.prototype.remove=function(e){var r=this._buffer.splice(this._buffer.indexOf(e),1)[0];return r},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(e){var r=this;return new mo.SyncPromise(function(n){var i=setTimeout(function(){e&&e>0&&n(!1)},e);mo.SyncPromise.all(r._buffer).then(function(){clearTimeout(i),n(!0)}).then(null,function(){n(!0)})})},t}();yo.PromiseBuffer=h_});var wc=b((Pe,Tc)=>{Object.defineProperty(Pe,"__esModule",{value:!0});var bc=pt(),Sc=yn(),bo={nowSeconds:function(){return Date.now()/1e3}};function v_(){var t=bc.getGlobalObject().performance;if(!(!t||!t.now)){var e=Date.now()-t.now();return{now:function(){return t.now()},timeOrigin:e}}}function __(){try{var t=Sc.dynamicRequire(Tc,"perf_hooks");return t.performance}catch{return}}var Nn=Sc.isNodeEnv()?__():v_(),Ec=Nn===void 0?bo:{nowSeconds:function(){return(Nn.timeOrigin+Nn.now())/1e3}};Pe.dateTimestampInSeconds=bo.nowSeconds.bind(bo);Pe.timestampInSeconds=Ec.nowSeconds.bind(Ec);Pe.timestampWithMs=Pe.timestampInSeconds;Pe.usingPerformanceAPI=Nn!==void 0;Pe.browserPerformanceTimeOrigin=function(){var t=bc.getGlobalObject().performance;if(!t||!t.now){Pe._browserPerformanceTimeOriginMode="none";return}var e=3600*1e3,r=t.now(),n=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,o=i<e,s=t.timing&&t.timing.navigationStart,a=typeof s=="number",u=a?Math.abs(s+r-n):e,c=u<e;return o||c?i<=u?(Pe._browserPerformanceTimeOriginMode="timeOrigin",t.timeOrigin):(Pe._browserPerformanceTimeOriginMode="navigationStart",s):(Pe._browserPerformanceTimeOriginMode="dateNow",n)}()});var N=b(X=>{Object.defineProperty(X,"__esModule",{value:!0});var te=q();te.__exportStar(Yu(),X);te.__exportStar(Ki(),X);te.__exportStar(Xu(),X);te.__exportStar(En(),X);te.__exportStar(pt(),X);te.__exportStar(lc(),X);te.__exportStar(Rt(),X);te.__exportStar(On(),X);te.__exportStar(to(),X);te.__exportStar(dc(),X);te.__exportStar(yn(),X);te.__exportStar(so(),X);te.__exportStar(mc(),X);te.__exportStar(yc(),X);te.__exportStar(Cn(),X);te.__exportStar(xn(),X);te.__exportStar(co(),X);te.__exportStar(go(),X);te.__exportStar(wc(),X)});var So=b(qn=>{Object.defineProperty(qn,"__esModule",{value:!0});var D=q(),Pr=N(),Oc=100,g_=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var r=new t;return e&&(r._breadcrumbs=D.__spread(e._breadcrumbs),r._tags=D.__assign({},e._tags),r._extra=D.__assign({},e._extra),r._contexts=D.__assign({},e._contexts),r._user=e._user,r._level=e._level,r._span=e._span,r._session=e._session,r._transactionName=e._transactionName,r._fingerprint=e._fingerprint,r._eventProcessors=D.__spread(e._eventProcessors),r._requestSession=e._requestSession),r},t.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},t.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},t.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(e){return this._requestSession=e,this},t.prototype.setTags=function(e){return this._tags=D.__assign(D.__assign({},this._tags),e),this._notifyScopeListeners(),this},t.prototype.setTag=function(e,r){var n;return this._tags=D.__assign(D.__assign({},this._tags),(n={},n[e]=r,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(e){return this._extra=D.__assign(D.__assign({},this._extra),e),this._notifyScopeListeners(),this},t.prototype.setExtra=function(e,r){var n;return this._extra=D.__assign(D.__assign({},this._extra),(n={},n[e]=r,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},t.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(e){return this.setTransactionName(e)},t.prototype.setContext=function(e,r){var n;return r===null?delete this._contexts[e]:this._contexts=D.__assign(D.__assign({},this._contexts),(n={},n[e]=r,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var e,r,n,i,o=this.getSpan();if((e=o)===null||e===void 0?void 0:e.transaction)return(r=o)===null||r===void 0?void 0:r.transaction;if((i=(n=o)===null||n===void 0?void 0:n.spanRecorder)===null||i===void 0?void 0:i.spans[0])return o.spanRecorder.spans[0]},t.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if(typeof e=="function"){var r=e(this);return r instanceof t?r:this}return e instanceof t?(this._tags=D.__assign(D.__assign({},this._tags),e._tags),this._extra=D.__assign(D.__assign({},this._extra),e._extra),this._contexts=D.__assign(D.__assign({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):Pr.isPlainObject(e)&&(e=e,this._tags=D.__assign(D.__assign({},this._tags),e.tags),this._extra=D.__assign(D.__assign({},this._extra),e.extra),this._contexts=D.__assign(D.__assign({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.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._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(e,r){var n=typeof r=="number"?Math.min(r,Oc):Oc;if(n<=0)return this;var i=D.__assign({timestamp:Pr.dateTimestampInSeconds()},e);return this._breadcrumbs=D.__spread(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(e,r){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=D.__assign(D.__assign({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=D.__assign(D.__assign({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=D.__assign(D.__assign({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=D.__assign(D.__assign({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=D.__assign({trace:this._span.getTraceContext()},e.contexts);var i=(n=this._span.transaction)===null||n===void 0?void 0:n.name;i&&(e.tags=D.__assign({transaction:i},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=D.__spread(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(D.__spread(Cc(),this._eventProcessors),e,r)},t.prototype._notifyEventProcessors=function(e,r,n,i){var o=this;return i===void 0&&(i=0),new Pr.SyncPromise(function(s,a){var u=e[i];if(r===null||typeof u!="function")s(r);else{var c=u(D.__assign({},r),n);Pr.isThenable(c)?c.then(function(l){return o._notifyEventProcessors(e,l,n,i+1).then(s)}).then(null,a):o._notifyEventProcessors(e,c,n,i+1).then(s).then(null,a)}})},t.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(r){r(e)}),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},t}();qn.Scope=g_;function Cc(){var t=Pr.getGlobalObject();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function m_(t){Cc().push(t)}qn.addGlobalEventProcessor=m_});var wo=b(To=>{Object.defineProperty(To,"__esModule",{value:!0});var Eo=se(),tr=N(),y_=function(){function t(e){this.errors=0,this.sid=tr.uuid4(),this.duration=0,this.status=Eo.SessionStatus.Ok,this.init=!0,this.ignoreDuration=!1;var r=tr.timestampInSeconds();this.timestamp=r,this.started=r,e&&this.update(e)}return t.prototype.update=function(e){if(e===void 0&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),!this.did&&!e.did&&(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||tr.timestampInSeconds(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=e.sid.length===32?e.sid:tr.uuid4()),e.init!==void 0&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),typeof e.started=="number"&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if(typeof e.duration=="number")this.duration=e.duration;else{var r=this.timestamp-this.started;this.duration=r>=0?r:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),typeof e.errors=="number"&&(this.errors=e.errors),e.status&&(this.status=e.status)},t.prototype.close=function(e){e?this.update({status:e}):this.status===Eo.SessionStatus.Ok?this.update({status:Eo.SessionStatus.Exited}):this.update()},t.prototype.toJSON=function(){return tr.dropUndefinedKeys({sid:""+this.sid,init:this.init,started:new Date(this.started*1e3).toISOString(),timestamp:new Date(this.timestamp*1e3).toISOString(),status:this.status,errors:this.errors,did:typeof this.did=="number"||typeof this.did=="string"?""+this.did:void 0,duration:this.duration,attrs:tr.dropUndefinedKeys({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}();To.Session=y_});var xo=b(be=>{Object.defineProperty(be,"__esModule",{value:!0});var Fe=q(),xc=se(),je=N(),Oo=So(),b_=wo();be.API_VERSION=4;var S_=100,kn=function(){function t(e,r,n){r===void 0&&(r=new Oo.Scope),n===void 0&&(n=be.API_VERSION),this._version=n,this._stack=[{}],this.getStackTop().scope=r,e&&this.bindClient(e)}return t.prototype.isOlderThan=function(e){return this._version<e},t.prototype.bindClient=function(e){var r=this.getStackTop();r.client=e,e&&e.setupIntegrations&&e.setupIntegrations()},t.prototype.pushScope=function(){var e=Oo.Scope.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},t.prototype.popScope=function(){return this.getStack().length<=1?!1:!!this.getStack().pop()},t.prototype.withScope=function(e){var r=this.pushScope();try{e(r)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(e,r){var n=this._lastEventId=je.uuid4(),i=r;if(!r){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(s){o=s}i={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,Fe.__assign(Fe.__assign({},i),{event_id:n})),n},t.prototype.captureMessage=function(e,r,n){var i=this._lastEventId=je.uuid4(),o=n;if(!n){var s=void 0;try{throw new Error(e)}catch(a){s=a}o={originalException:e,syntheticException:s}}return this._invokeClient("captureMessage",e,r,Fe.__assign(Fe.__assign({},o),{event_id:i})),i},t.prototype.captureEvent=function(e,r){var n=je.uuid4();return e.type!=="transaction"&&(this._lastEventId=n),this._invokeClient("captureEvent",e,Fe.__assign(Fe.__assign({},r),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(e,r){var n=this.getStackTop(),i=n.scope,o=n.client;if(!(!i||!o)){var s=o.getOptions&&o.getOptions()||{},a=s.beforeBreadcrumb,u=a===void 0?null:a,c=s.maxBreadcrumbs,l=c===void 0?S_:c;if(!(l<=0)){var d=je.dateTimestampInSeconds(),h=Fe.__assign({timestamp:d},e),_=u?je.consoleSandbox(function(){return u(h,r)}):h;_!==null&&i.addBreadcrumb(_,l)}}},t.prototype.setUser=function(e){var r=this.getScope();r&&r.setUser(e)},t.prototype.setTags=function(e){var r=this.getScope();r&&r.setTags(e)},t.prototype.setExtras=function(e){var r=this.getScope();r&&r.setExtras(e)},t.prototype.setTag=function(e,r){var n=this.getScope();n&&n.setTag(e,r)},t.prototype.setExtra=function(e,r){var n=this.getScope();n&&n.setExtra(e,r)},t.prototype.setContext=function(e,r){var n=this.getScope();n&&n.setContext(e,r)},t.prototype.configureScope=function(e){var r=this.getStackTop(),n=r.scope,i=r.client;n&&i&&e(n)},t.prototype.run=function(e){var r=Co(this);try{e(this)}finally{Co(r)}},t.prototype.getIntegration=function(e){var r=this.getClient();if(!r)return null;try{return r.getIntegration(e)}catch{return je.logger.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},t.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},t.prototype.startTransaction=function(e,r){return this._callExtensionMethod("startTransaction",e,r)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(e){if(e===void 0&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var e,r,n,i,o;(n=(r=(e=this.getStackTop())===null||e===void 0?void 0:e.scope)===null||r===void 0?void 0:r.getSession())===null||n===void 0||n.close(),this._sendSessionUpdate(),(o=(i=this.getStackTop())===null||i===void 0?void 0:i.scope)===null||o===void 0||o.setSession()},t.prototype.startSession=function(e){var r=this.getStackTop(),n=r.scope,i=r.client,o=i&&i.getOptions()||{},s=o.release,a=o.environment,u=je.getGlobalObject(),c=(u.navigator||{}).userAgent,l=new b_.Session(Fe.__assign(Fe.__assign(Fe.__assign({release:s,environment:a},n&&{user:n.getUser()}),c&&{userAgent:c}),e));if(n){var d=n.getSession&&n.getSession();d&&d.status===xc.SessionStatus.Ok&&d.update({status:xc.SessionStatus.Exited}),this.endSession(),n.setSession(l)}return l},t.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),r=e.scope,n=e.client;if(!!r){var i=r.getSession&&r.getSession();i&&n&&n.captureSession&&n.captureSession(i)}},t.prototype._invokeClient=function(e){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop(),s=o.scope,a=o.client;a&&a[e]&&(r=a)[e].apply(r,Fe.__spread(n,[s]))},t.prototype._callExtensionMethod=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=rr(),o=i.__SENTRY__;if(o&&o.extensions&&typeof o.extensions[e]=="function")return o.extensions[e].apply(this,r);je.logger.warn("Extension method "+e+" couldn't be found, doing nothing.")},t}();be.Hub=kn;function rr(){var t=je.getGlobalObject();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}be.getMainCarrier=rr;function Co(t){var e=rr(),r=tt(e);return Dn(e,t),r}be.makeMain=Co;function E_(){var t=rr();return(!Rc(t)||tt(t).isOlderThan(be.API_VERSION))&&Dn(t,new kn),je.isNodeEnv()?w_(t):tt(t)}be.getCurrentHub=E_;function T_(){je.logger.warn("Function `getActiveDomain` is deprecated and will be removed in a future version.");var t=rr().__SENTRY__;return t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active}be.getActiveDomain=T_;function w_(t){var e,r,n;try{var i=(n=(r=(e=rr().__SENTRY__)===null||e===void 0?void 0:e.extensions)===null||r===void 0?void 0:r.domain)===null||n===void 0?void 0:n.active;if(!i)return tt(t);if(!Rc(i)||tt(i).isOlderThan(be.API_VERSION)){var o=tt(t).getStackTop();Dn(i,new kn(o.client,Oo.Scope.clone(o.scope)))}return tt(i)}catch{return tt(t)}}function Rc(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function tt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new kn),t.__SENTRY__.hub}be.getHubFromCarrier=tt;function Dn(t,e){return t?(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0):!1}be.setHubOnCarrier=Dn});var Ic=b(Ao=>{Object.defineProperty(Ao,"__esModule",{value:!0});var Ro=se(),Io=N(),O_=xo(),C_=function(){function t(e,r){var n=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=e,this._intervalId=setInterval(function(){return n.flush()},this.flushTimeout*1e3),this._sessionAttrs=r}return t.prototype.sendSessionAggregates=function(e){if(!this._transport.sendSession){Io.logger.warn("Dropping session because custom transport doesn't implement sendSession");return}this._transport.sendSession(e).then(null,function(r){Io.logger.error("Error while sending session: "+r)})},t.prototype.flush=function(){var e=this.getSessionAggregates();e.aggregates.length!==0&&(this._pendingAggregates={},this.sendSessionAggregates(e))},t.prototype.getSessionAggregates=function(){var e=this,r=Object.keys(this._pendingAggregates).map(function(i){return e._pendingAggregates[parseInt(i)]}),n={attrs:this._sessionAttrs,aggregates:r};return Io.dropUndefinedKeys(n)},t.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},t.prototype.incrementSessionStatusCount=function(){var e,r;if(!!this._isEnabled){var n=O_.getCurrentHub().getScope(),i=(e=n)===null||e===void 0?void 0:e.getRequestSession();i&&i.status&&(this._incrementSessionStatusCount(i.status,new Date),(r=n)===null||r===void 0||r.setRequestSession(void 0))}},t.prototype._incrementSessionStatusCount=function(e,r){var n=new Date(r).setSeconds(0,0);this._pendingAggregates[n]=this._pendingAggregates[n]||{};var i=this._pendingAggregates[n];switch(i.started||(i.started=new Date(n).toISOString()),e){case Ro.RequestSessionStatus.Errored:return i.errored=(i.errored||0)+1,i.errored;case Ro.RequestSessionStatus.Ok:return i.exited=(i.exited||0)+1,i.exited;case Ro.RequestSessionStatus.Crashed:return i.crashed=(i.crashed||0)+1,i.crashed}},t}();Ao.SessionFlusher=C_});var Ee=b(Se=>{Object.defineProperty(Se,"__esModule",{value:!0});var Ac=So();Se.addGlobalEventProcessor=Ac.addGlobalEventProcessor;Se.Scope=Ac.Scope;var x_=wo();Se.Session=x_.Session;var R_=Ic();Se.SessionFlusher=R_.SessionFlusher;var Mt=xo();Se.getActiveDomain=Mt.getActiveDomain;Se.getCurrentHub=Mt.getCurrentHub;Se.getHubFromCarrier=Mt.getHubFromCarrier;Se.getMainCarrier=Mt.getMainCarrier;Se.Hub=Mt.Hub;Se.makeMain=Mt.makeMain;Se.setHubOnCarrier=Mt.setHubOnCarrier});var Mc=b(fe=>{Object.defineProperty(fe,"__esModule",{value:!0});var Ln=q(),I_=Ee();function ge(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=I_.getCurrentHub();if(n&&n[t])return n[t].apply(n,Ln.__spread(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function A_(t,e){var r;try{throw new Error("Sentry syntheticException")}catch(n){r=n}return ge("captureException",t,{captureContext:e,originalException:t,syntheticException:r})}fe.captureException=A_;function M_(t,e){var r;try{throw new Error(t)}catch(o){r=o}var n=typeof e=="string"?e:void 0,i=typeof e!="string"?{captureContext:e}:void 0;return ge("captureMessage",t,n,Ln.__assign({originalException:t,syntheticException:r},i))}fe.captureMessage=M_;function P_(t){return ge("captureEvent",t)}fe.captureEvent=P_;function N_(t){ge("configureScope",t)}fe.configureScope=N_;function q_(t){ge("addBreadcrumb",t)}fe.addBreadcrumb=q_;function k_(t,e){ge("setContext",t,e)}fe.setContext=k_;function D_(t){ge("setExtras",t)}fe.setExtras=D_;function L_(t){ge("setTags",t)}fe.setTags=L_;function F_(t,e){ge("setExtra",t,e)}fe.setExtra=F_;function j_(t,e){ge("setTag",t,e)}fe.setTag=j_;function U_(t){ge("setUser",t)}fe.setUser=U_;function H_(t){ge("withScope",t)}fe.withScope=H_;function B_(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];ge.apply(void 0,Ln.__spread(["_invokeClient",t],e))}fe._callOnClient=B_;function G_(t,e){return ge("startTransaction",Ln.__assign({},t),e)}fe.startTransaction=G_});var qc=b(Mo=>{Object.defineProperty(Mo,"__esModule",{value:!0});var Pc=N(),Nc="7",z_=function(){function t(e,r,n){r===void 0&&(r={}),this.dsn=e,this._dsnObject=new Pc.Dsn(e),this.metadata=r,this._tunnel=n}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){var e=this.getDsn(),r=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return r+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var e=this.getDsn();return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},t.prototype.getRequestHeaders=function(e,r){var n=this.getDsn(),i=["Sentry sentry_version="+Nc];return i.push("sentry_client="+e+"/"+r),i.push("sentry_key="+n.publicKey),n.pass&&i.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},t.prototype.getReportDialogEndpoint=function(e){e===void 0&&(e={});var r=this.getDsn(),n=this.getBaseApiEndpoint()+"embed/error-page/",i=[];i.push("dsn="+r.toString());for(var o in e)if(o!=="dsn")if(o==="user"){if(!e.user)continue;e.user.name&&i.push("name="+encodeURIComponent(e.user.name)),e.user.email&&i.push("email="+encodeURIComponent(e.user.email))}else i.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return i.length?n+"?"+i.join("&"):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(e){if(this._tunnel)return this._tunnel;var r=this.getBaseApiEndpoint(),n=this.getDsn();return""+r+n.projectId+"/"+e+"/"},t.prototype._encodedAuth=function(){var e=this.getDsn(),r={sentry_key:e.publicKey,sentry_version:Nc};return Pc.urlEncode(r)},t}();Mo.API=z_});var jc=b(ht=>{Object.defineProperty(ht,"__esModule",{value:!0});var Fn=q(),kc=Ee(),V_=N();ht.installedIntegrations=[];function Dc(t){return t.reduce(function(e,r){return e.every(function(n){return r.name!==n.name})&&e.push(r),e},[])}function Lc(t){var e=t.defaultIntegrations&&Fn.__spread(t.defaultIntegrations)||[],r=t.integrations,n=Fn.__spread(Dc(e));Array.isArray(r)?n=Fn.__spread(n.filter(function(s){return r.every(function(a){return a.name!==s.name})}),Dc(r)):typeof r=="function"&&(n=r(n),n=Array.isArray(n)?n:[n]);var i=n.map(function(s){return s.name}),o="Debug";return i.indexOf(o)!==-1&&n.push.apply(n,Fn.__spread(n.splice(i.indexOf(o),1))),n}ht.getIntegrationsToSetup=Lc;function Fc(t){ht.installedIntegrations.indexOf(t.name)===-1&&(t.setupOnce(kc.addGlobalEventProcessor,kc.getCurrentHub),ht.installedIntegrations.push(t.name),V_.logger.log("Integration installed: "+t.name))}ht.setupIntegration=Fc;function W_(t){var e={};return Lc(t).forEach(function(r){e[r.name]=r,Fc(r)}),Object.defineProperty(e,"initialized",{value:!0}),e}ht.setupIntegrations=W_});var Hc=b(Po=>{Object.defineProperty(Po,"__esModule",{value:!0});var Te=q(),$_=Ee(),Nr=se(),B=N(),Y_=jc(),Uc="Not capturing exception because it's already been captured.",K_=function(){function t(e,r){this._integrations={},this._numProcessing=0,this._backend=new e(r),this._options=r,r.dsn&&(this._dsn=new B.Dsn(r.dsn))}return t.prototype.captureException=function(e,r,n){var i=this;if(B.checkOrSetAlreadyCaught(e)){B.logger.log(Uc);return}var o=r&&r.event_id;return this._process(this._getBackend().eventFromException(e,r).then(function(s){return i._captureEvent(s,r,n)}).then(function(s){o=s})),o},t.prototype.captureMessage=function(e,r,n,i){var o=this,s=n&&n.event_id,a=B.isPrimitive(e)?this._getBackend().eventFromMessage(String(e),r,n):this._getBackend().eventFromException(e,n);return this._process(a.then(function(u){return o._captureEvent(u,n,i)}).then(function(u){s=u})),s},t.prototype.captureEvent=function(e,r,n){var i;if(((i=r)===null||i===void 0?void 0:i.originalException)&&B.checkOrSetAlreadyCaught(r.originalException)){B.logger.log(Uc);return}var o=r&&r.event_id;return this._process(this._captureEvent(e,r,n).then(function(s){o=s})),o},t.prototype.captureSession=function(e){if(!this._isEnabled()){B.logger.warn("SDK not enabled, will not capture session.");return}typeof e.release!="string"?B.logger.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1}))},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(e){var r=this;return this._isClientDoneProcessing(e).then(function(n){return r.getTransport().close(e).then(function(i){return n&&i})})},t.prototype.close=function(e){var r=this;return this.flush(e).then(function(n){return r.getOptions().enabled=!1,n})},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=Y_.setupIntegrations(this._options))},t.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch{return B.logger.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(e,r){var n,i,o=!1,s=!1,a=r.exception&&r.exception.values;if(a){s=!0;try{for(var u=Te.__values(a),c=u.next();!c.done;c=u.next()){var l=c.value,d=l.mechanism;if(d&&d.handled===!1){o=!0;break}}}catch(S){n={error:S}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}var h=e.status===Nr.SessionStatus.Ok,_=h&&e.errors===0||h&&o;_&&(e.update(Te.__assign(Te.__assign({},o&&{status:Nr.SessionStatus.Crashed}),{errors:e.errors||Number(s||o)})),this.captureSession(e))},t.prototype._sendSession=function(e){this._getBackend().sendSession(e)},t.prototype._isClientDoneProcessing=function(e){var r=this;return new B.SyncPromise(function(n){var i=0,o=1,s=setInterval(function(){r._numProcessing==0?(clearInterval(s),n(!0)):(i+=o,e&&i>=e&&(clearInterval(s),n(!1)))},o)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return this.getOptions().enabled!==!1&&this._dsn!==void 0},t.prototype._prepareEvent=function(e,r,n){var i=this,o=this.getOptions().normalizeDepth,s=o===void 0?3:o,a=Te.__assign(Te.__assign({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:B.uuid4()),timestamp:e.timestamp||B.dateTimestampInSeconds()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var u=r;n&&n.captureContext&&(u=$_.Scope.clone(u).update(n.captureContext));var c=B.SyncPromise.resolve(a);return u&&(c=u.applyToEvent(a,n)),c.then(function(l){return typeof s=="number"&&s>0?i._normalizeEvent(l,s):l})},t.prototype._normalizeEvent=function(e,r){if(!e)return null;var n=Te.__assign(Te.__assign(Te.__assign(Te.__assign(Te.__assign({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(function(s){return Te.__assign(Te.__assign({},s),s.data&&{data:B.normalize(s.data,r)})})}),e.user&&{user:B.normalize(e.user,r)}),e.contexts&&{contexts:B.normalize(e.contexts,r)}),e.extra&&{extra:B.normalize(e.extra,r)});e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace);var i=this.getOptions()._experiments,o=i===void 0?{}:i;return o.ensureNoCircularStructures?B.normalize(n):n},t.prototype._applyClientOptions=function(e){var r=this.getOptions(),n=r.environment,i=r.release,o=r.dist,s=r.maxValueLength,a=s===void 0?250:s;"environment"in e||(e.environment="environment"in r?n:"production"),e.release===void 0&&i!==void 0&&(e.release=i),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=B.truncate(e.message,a));var u=e.exception&&e.exception.values&&e.exception.values[0];u&&u.value&&(u.value=B.truncate(u.value,a));var c=e.request;c&&c.url&&(c.url=B.truncate(c.url,a))},t.prototype._applyIntegrationsMetadata=function(e){var r=Object.keys(this._integrations);r.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Te.__spread(e.sdk.integrations||[],r))},t.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},t.prototype._captureEvent=function(e,r,n){return this._processEvent(e,r,n).then(function(i){return i.event_id},function(i){B.logger.error(i)})},t.prototype._processEvent=function(e,r,n){var i=this,o,s,a=this.getOptions(),u=a.beforeSend,c=a.sampleRate,l=this.getTransport();if(!this._isEnabled())return B.SyncPromise.reject(new B.SentryError("SDK not enabled, will not capture event."));var d=e.type==="transaction";return!d&&typeof c=="number"&&Math.random()>c?((s=(o=l).recordLostEvent)===null||s===void 0||s.call(o,Nr.Outcome.SampleRate,"event"),B.SyncPromise.reject(new B.SentryError("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(e,n,r).then(function(h){var _,S;if(h===null)throw(S=(_=l).recordLostEvent)===null||S===void 0||S.call(_,Nr.Outcome.EventProcessor,e.type||"event"),new B.SentryError("An event processor returned null, will not send event.");var T=r&&r.data&&r.data.__sentry__===!0;if(T||d||!u)return h;var R=u(h,r);return i._ensureBeforeSendRv(R)}).then(function(h){var _,S;if(h===null)throw(S=(_=l).recordLostEvent)===null||S===void 0||S.call(_,Nr.Outcome.BeforeSend,e.type||"event"),new B.SentryError("`beforeSend` returned `null`, will not send event.");var T=n&&n.getSession&&n.getSession();return!d&&T&&i._updateSessionFromEvent(T,h),i._sendEvent(h),h}).then(null,function(h){throw h instanceof B.SentryError?h:(i.captureException(h,{data:{__sentry__:!0},originalException:h}),new B.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
11
+ Reason: `+h))})},t.prototype._process=function(e){var r=this;this._numProcessing+=1,e.then(function(n){return r._numProcessing-=1,n},function(n){return r._numProcessing-=1,n})},t.prototype._ensureBeforeSendRv=function(e){var r="`beforeSend` method has to return `null` or a valid event.";if(B.isThenable(e))return e.then(function(n){if(!(B.isPlainObject(n)||n===null))throw new B.SentryError(r);return n},function(n){throw new B.SentryError("beforeSend rejected with "+n)});if(!(B.isPlainObject(e)||e===null))throw new B.SentryError(r);return e},t}();Po.BaseClient=K_});var qo=b(No=>{Object.defineProperty(No,"__esModule",{value:!0});var J_=se(),Bc=N(),X_=function(){function t(){}return t.prototype.sendEvent=function(e){return Bc.SyncPromise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:J_.Status.Skipped})},t.prototype.close=function(e){return Bc.SyncPromise.resolve(!0)},t}();No.NoopTransport=X_});var Gc=b(ko=>{Object.defineProperty(ko,"__esModule",{value:!0});var nr=N(),Q_=qo(),Z_=function(){function t(e){this._options=e,this._options.dsn||nr.logger.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(e,r){throw new nr.SentryError("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(e,r,n){throw new nr.SentryError("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,function(r){nr.logger.error("Error while sending event: "+r)})},t.prototype.sendSession=function(e){if(!this._transport.sendSession){nr.logger.warn("Dropping session because custom transport doesn't implement sendSession");return}this._transport.sendSession(e).then(null,function(r){nr.logger.error("Error while sending session: "+r)})},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new Q_.NoopTransport},t}();ko.BaseBackend=Z_});var Vc=b(jn=>{Object.defineProperty(jn,"__esModule",{value:!0});var Pt=q();function zc(t){if(!(!t.metadata||!t.metadata.sdk)){var e=t.metadata.sdk,r=e.name,n=e.version;return{name:r,version:n}}}function eg(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=Pt.__spread(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=Pt.__spread(t.sdk.packages||[],e.packages||[])),t}function tg(t,e){var r=zc(e),n=JSON.stringify(Pt.__assign(Pt.__assign({sent_at:new Date().toISOString()},r&&{sdk:r}),e.forceEnvelope()&&{dsn:e.getDsn().toString()})),i="aggregates"in t?"sessions":"session",o=JSON.stringify({type:i});return{body:n+`
12
12
  `+o+`
13
- `+JSON.stringify(t),type:i,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}pn.sessionToSentryRequest=S_;function E_(t,e){var r=zu(e),n=t.type||"event",i=n==="transaction"||e.forceEnvelope(),o=t.debug_meta||{},a=o.transactionSampling,s=bt.__rest(o,["transactionSampling"]),u=a||{},c=u.method,l=u.rate;Object.keys(s).length===0?delete t.debug_meta:t.debug_meta=s;var d={body:JSON.stringify(r?b_(t,e.metadata.sdk):t),type:n,url:i?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(i){var h=JSON.stringify(bt.__assign(bt.__assign({event_id:t.event_id,sent_at:new Date().toISOString()},r&&{sdk:r}),e.forceEnvelope()&&{dsn:e.getDsn().toString()})),y=JSON.stringify({type:n,sample_rates:[{id:c,rate:l}]}),S=h+`
14
- `+y+`
15
- `+d.body;d.body=S}return d}pn.eventToSentryRequest=E_});var Wu=b(no=>{Object.defineProperty(no,"__esModule",{value:!0});var T_=ge(),O_=P();function w_(t,e){var r;e.debug===!0&&O_.logger.enable();var n=T_.getCurrentHub();(r=n.getScope())===null||r===void 0||r.update(e.initialScope);var i=new t(e);n.bindClient(i)}no.initAndBind=w_});var Yu=b(io=>{Object.defineProperty(io,"__esModule",{value:!0});io.SDK_VERSION="6.16.1"});var Ku=b(oo=>{Object.defineProperty(oo,"__esModule",{value:!0});var $u,x_=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){$u=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=this.__sentry_original__||this;return $u.apply(n,e)}},t.id="FunctionToString",t}();oo.FunctionToString=x_});var Xu=b(so=>{Object.defineProperty(so,"__esModule",{value:!0});var ao=N(),Ju=ge(),fe=P(),I_=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],C_=function(){function t(e){e===void 0&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){Ju.addGlobalEventProcessor(function(e){var r=Ju.getCurrentHub();if(!r)return e;var n=r.getIntegration(t);if(n){var i=r.getClient(),o=i?i.getOptions():{},a=typeof n._mergeOptions=="function"?n._mergeOptions(o):{};return typeof n._shouldDropEvent!="function"?e:n._shouldDropEvent(e,a)?null:e}return e})},t.prototype._shouldDropEvent=function(e,r){return this._isSentryError(e,r)?(fe.logger.warn(`Event dropped due to being internal Sentry Error.
16
- Event: `+fe.getEventDescription(e)),!0):this._isIgnoredError(e,r)?(fe.logger.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+fe.getEventDescription(e)),!0):this._isDeniedUrl(e,r)?(fe.logger.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+fe.getEventDescription(e)+`.
17
- Url: `+this._getEventFilterUrl(e)),!0):this._isAllowedUrl(e,r)?!1:(fe.logger.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+fe.getEventDescription(e)+`.
18
- Url: `+this._getEventFilterUrl(e)),!0)},t.prototype._isSentryError=function(e,r){if(!r.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&e.exception.values[0].type==="SentryError"||!1}catch{return!1}},t.prototype._isIgnoredError=function(e,r){return!r.ignoreErrors||!r.ignoreErrors.length?!1:this._getPossibleEventMessages(e).some(function(n){return r.ignoreErrors.some(function(i){return fe.isMatchingPattern(n,i)})})},t.prototype._isDeniedUrl=function(e,r){if(!r.denyUrls||!r.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return n?r.denyUrls.some(function(i){return fe.isMatchingPattern(n,i)}):!1},t.prototype._isAllowedUrl=function(e,r){if(!r.allowUrls||!r.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return n?r.allowUrls.some(function(i){return fe.isMatchingPattern(n,i)}):!0},t.prototype._mergeOptions=function(e){return e===void 0&&(e={}),{allowUrls:ao.__spread(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:ao.__spread(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:ao.__spread(this._options.ignoreErrors||[],e.ignoreErrors||[],I_),ignoreInternal:typeof this._options.ignoreInternal!="undefined"?this._options.ignoreInternal:!0}},t.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var r=e.exception.values&&e.exception.values[0]||{},n=r.type,i=n===void 0?"":n,o=r.value,a=o===void 0?"":o;return[""+a,i+": "+a]}catch{return fe.logger.error("Cannot extract message for event "+fe.getEventDescription(e)),[]}return[]},t.prototype._getLastValidUrl=function(e){e===void 0&&(e=[]);for(var r,n,i=e.length-1;i>=0;i--){var o=e[i];if(((r=o)===null||r===void 0?void 0:r.filename)!=="<anonymous>"&&((n=o)===null||n===void 0?void 0:n.filename)!=="[native code]")return o.filename||null}return null},t.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var r=e.stacktrace.frames;return this._getLastValidUrl(r)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch{return fe.logger.error("Cannot extract url for event "+fe.getEventDescription(e)),null}},t.id="InboundFilters",t}();so.InboundFilters=C_});var Qu=b(hn=>{Object.defineProperty(hn,"__esModule",{value:!0});var R_=Ku();hn.FunctionToString=R_.FunctionToString;var A_=Xu();hn.InboundFilters=A_.InboundFilters});var ie=b(z=>{Object.defineProperty(z,"__esModule",{value:!0});var ye=Pu();z.addBreadcrumb=ye.addBreadcrumb;z.captureException=ye.captureException;z.captureEvent=ye.captureEvent;z.captureMessage=ye.captureMessage;z.configureScope=ye.configureScope;z.startTransaction=ye.startTransaction;z.setContext=ye.setContext;z.setExtra=ye.setExtra;z.setExtras=ye.setExtras;z.setTag=ye.setTag;z.setTags=ye.setTags;z.setUser=ye.setUser;z.withScope=ye.withScope;var Bt=ge();z.addGlobalEventProcessor=Bt.addGlobalEventProcessor;z.getCurrentHub=Bt.getCurrentHub;z.getHubFromCarrier=Bt.getHubFromCarrier;z.Hub=Bt.Hub;z.makeMain=Bt.makeMain;z.Scope=Bt.Scope;var P_=Mu();z.API=P_.API;var q_=Uu();z.BaseClient=q_.BaseClient;var N_=Gu();z.BaseBackend=N_.BaseBackend;var Zu=Vu();z.eventToSentryRequest=Zu.eventToSentryRequest;z.sessionToSentryRequest=Zu.sessionToSentryRequest;var M_=Wu();z.initAndBind=M_.initAndBind;var k_=to();z.NoopTransport=k_.NoopTransport;var D_=Yu();z.SDK_VERSION=D_.SDK_VERSION;var F_=Qu();z.Integrations=F_});var ec=b(_n=>{(function(t,e){let r=typeof _n=="object"?_n:typeof t=="object"?t:{};e(r),typeof define=="function"&&define.amd&&define("lru",r)})(_n,function(t){let e=Symbol("newer"),r=Symbol("older");function n(u,c){typeof u!="number"&&(c=u,u=0),this.size=0,this.limit=u,this.oldest=this.newest=void 0,this._keymap=new Map,c&&(this.assign(c),u<1&&(this.limit=this.size))}t.LRUMap=n;function i(u,c){this.key=u,this.value=c,this[e]=void 0,this[r]=void 0}n.prototype._markEntryAsUsed=function(u){u!==this.newest&&(u[e]&&(u===this.oldest&&(this.oldest=u[e]),u[e][r]=u[r]),u[r]&&(u[r][e]=u[e]),u[e]=void 0,u[r]=this.newest,this.newest&&(this.newest[e]=u),this.newest=u)},n.prototype.assign=function(u){let c,l=this.limit||Number.MAX_VALUE;this._keymap.clear();let d=u[Symbol.iterator]();for(let h=d.next();!h.done;h=d.next()){let y=new i(h.value[0],h.value[1]);if(this._keymap.set(y.key,y),c?(c[e]=y,y[r]=c):this.oldest=y,c=y,l--==0)throw new Error("overflow")}this.newest=c,this.size=this._keymap.size},n.prototype.get=function(u){var c=this._keymap.get(u);if(!!c)return this._markEntryAsUsed(c),c.value},n.prototype.set=function(u,c){var l=this._keymap.get(u);return l?(l.value=c,this._markEntryAsUsed(l),this):(this._keymap.set(u,l=new i(u,c)),this.newest?(this.newest[e]=l,l[r]=this.newest):this.oldest=l,this.newest=l,++this.size,this.size>this.limit&&this.shift(),this)},n.prototype.shift=function(){var u=this.oldest;if(u)return this.oldest[e]?(this.oldest=this.oldest[e],this.oldest[r]=void 0):(this.oldest=void 0,this.newest=void 0),u[e]=u[r]=void 0,this._keymap.delete(u.key),--this.size,[u.key,u.value]},n.prototype.find=function(u){let c=this._keymap.get(u);return c?c.value:void 0},n.prototype.has=function(u){return this._keymap.has(u)},n.prototype.delete=function(u){var c=this._keymap.get(u);if(!!c)return this._keymap.delete(c.key),c[e]&&c[r]?(c[r][e]=c[e],c[e][r]=c[r]):c[e]?(c[e][r]=void 0,this.oldest=c[e]):c[r]?(c[r][e]=void 0,this.newest=c[r]):this.oldest=this.newest=void 0,this.size--,c.value},n.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()};function o(u){this.entry=u}o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let u=this.entry;return u?(this.entry=u[e],{done:!1,value:[u.key,u.value]}):{done:!0,value:void 0}};function a(u){this.entry=u}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let u=this.entry;return u?(this.entry=u[e],{done:!1,value:u.key}):{done:!0,value:void 0}};function s(u){this.entry=u}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let u=this.entry;return u?(this.entry=u[e],{done:!1,value:u.value}):{done:!0,value:void 0}},n.prototype.keys=function(){return new a(this.oldest)},n.prototype.values=function(){return new s(this.oldest)},n.prototype.entries=function(){return this},n.prototype[Symbol.iterator]=function(){return new o(this.oldest)},n.prototype.forEach=function(u,c){typeof c!="object"&&(c=this);let l=this.oldest;for(;l;)u.call(c,l.value,l.key,this),l=l[e]},n.prototype.toJSON=function(){for(var u=new Array(this.size),c=0,l=this.oldest;l;)u[c++]={key:l.key,value:l.value},l=l[e];return u},n.prototype.toString=function(){for(var u="",c=this.oldest;c;)u+=String(c.key)+":"+c.value,c=c[e],c&&(u+=" < ");return u}})});var tc=b(uo=>{Object.defineProperty(uo,"__esModule",{value:!0});function j_(t){if(!t.stack)return[];var e=t.stack.split(`
19
- `).slice(1);return e.map(function(r){if(r.match(/^\s*[-]{4,}$/))return{columnNumber:null,fileName:r,functionName:null,lineNumber:null,methodName:null,native:null,typeName:null};var n=r.match(/at (?:(.+?)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(!!n){var i=null,o=null,a=null,s=null,u=null,c=n[5]==="native";if(n[1]){a=n[1];var l=a.lastIndexOf(".");if(a[l-1]==="."&&l--,l>0){i=a.substr(0,l),o=a.substr(l+1);var d=i.indexOf(".Module");d>0&&(a=a.substr(d+1),i=i.substr(0,d))}s=null}o&&(s=i,u=o),o==="<anonymous>"&&(u=null,a=null);var h={columnNumber:parseInt(n[4],10)||null,fileName:n[2]||null,functionName:a,lineNumber:parseInt(n[3],10)||null,methodName:u,native:c,typeName:s};return h}}).filter(function(r){return!!r})}uo.parse=j_});var fo=b(ot=>{Object.defineProperty(ot,"__esModule",{value:!0});var Ne=P(),H_=require("fs"),L_=ec(),U_=tc(),B_=7,co=new L_.LRUMap(100);function G_(){co.clear()}ot.resetFileContentCache=G_;function z_(t){try{return t.functionName||t.typeName+"."+(t.methodName||"<anonymous>")}catch{return"<anonymous>"}}var V_=(require.main&&require.main.filename&&Ne.dirname(require.main.filename)||global.process.cwd())+"/";function W_(t,e){e||(e=V_);var r=Ne.basename(t,".js");t=Ne.dirname(t);var n=t.lastIndexOf("/node_modules/");if(n>-1)return t.substr(n+14).replace(/\//g,".")+":"+r;if(n=(t+"/").lastIndexOf(e,0),n===0){var i=t.substr(e.length).replace(/\//g,".");return i&&(i+=":"),i+=r,i}return r}function Y_(t){return t.length===0?Ne.SyncPromise.resolve({}):new Ne.SyncPromise(function(e){for(var r={},n=0,i=function(a){var s=t[a],u=co.get(s);if(u!==void 0)return u!==null&&(r[s]=u),n++,n===t.length&&e(r),"continue";H_.readFile(s,function(c,l){var d=c?null:l.toString();r[s]=d,co.set(s,d),n++,n===t.length&&e(r)})},o=0;o<t.length;o++)i(o)})}function rc(t){var e=U_.parse(t);return e||[]}ot.extractStackFromError=rc;function nc(t,e){var r=[],n=e&&e.frameContextLines!==void 0?e.frameContextLines:B_,i=t.map(function(o){var a,s={colno:o.columnNumber,filename:((a=o.fileName)===null||a===void 0?void 0:a.startsWith("file://"))?o.fileName.substr(7):o.fileName||"",function:z_(o),lineno:o.lineNumber},u=o.native||s.filename&&!s.filename.startsWith("/")&&!s.filename.startsWith(".")&&s.filename.indexOf(":\\")!==1;return s.in_app=!u&&s.filename!==void 0&&s.filename.indexOf("node_modules/")===-1,s.filename&&(s.module=W_(s.filename),!u&&n>0&&r.indexOf(s.filename)===-1&&r.push(s.filename)),s});if(n<=0)return Ne.SyncPromise.resolve(i);try{return $_(r,i,n)}catch{return Ne.SyncPromise.resolve(i)}}ot.parseStack=nc;function $_(t,e,r){return new Ne.SyncPromise(function(n){return Y_(t).then(function(i){var o=e.map(function(a){if(a.filename&&i[a.filename])try{var s=i[a.filename].split(`
20
- `);Ne.addContextToFrame(s,a,r)}catch{}return a});n(o)})})}function ic(t,e){var r=t.name||t.constructor.name,n=rc(t);return new Ne.SyncPromise(function(i){return nc(n,e).then(function(o){var a={stacktrace:{frames:oc(o)},type:r,value:t.message};i(a)})})}ot.getExceptionFromError=ic;function K_(t,e){return new Ne.SyncPromise(function(r){return ic(t,e).then(function(n){r({exception:{values:[n]}})})})}ot.parseError=K_;function oc(t){if(!t||!t.length)return[];var e=t,r=e[0].function||"";return(r.indexOf("captureMessage")!==-1||r.indexOf("captureException")!==-1)&&(e=e.slice(1)),e.reverse()}ot.prepareFramesForEvent=oc});var po=b(lo=>{Object.defineProperty(lo,"__esModule",{value:!0});lo.SDK_NAME="sentry.javascript.node"});var vn=b(_o=>{Object.defineProperty(_o,"__esModule",{value:!0});var Ye=N(),ac=ie(),sc=ne(),St=P(),J_=require("fs"),X_=require("url"),Q_=po(),ho={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},Z_=function(){function t(e){this.options=e,this._buffer=new St.PromiseBuffer(30),this._rateLimits={},this.urlParser=function(r){return new X_.URL(r)},this._api=new ac.API(e.dsn,e._metadata,e.tunnel)}return t.prototype.sendEvent=function(e){throw new St.SentryError("Transport Class has to implement `sendEvent` method.")},t.prototype.close=function(e){return this._buffer.drain(e)},t.prototype._getProxy=function(e){var r,n,i=process.env,o=i.no_proxy,a=i.http_proxy,s=i.https_proxy,u=this.options,c=u.httpProxy,l=u.httpsProxy,d=e==="http"?c||a:l||c||s||a;if(!o)return d;var h=this._api.getDsn(),y=h.host,S=h.port;try{for(var T=Ye.__values(o.split(",")),C=T.next();!C.done;C=T.next()){var q=C.value;if(y.endsWith(q)||(y+":"+S).endsWith(q))return}}catch(U){r={error:U}}finally{try{C&&!C.done&&(n=T.return)&&n.call(T)}finally{if(r)throw r.error}}return d},t.prototype._getRequestOptions=function(e){var r=Ye.__assign(Ye.__assign({},this._api.getRequestHeaders(Q_.SDK_NAME,ac.SDK_VERSION)),this.options.headers),n=e.hostname,i=e.pathname,o=e.port,a=e.protocol,s=""+i;return Ye.__assign({agent:this.client,headers:r,hostname:n,method:"POST",path:s,port:o,protocol:a},this.options.caCerts&&{ca:J_.readFileSync(this.options.caCerts)})},t.prototype._disabledUntil=function(e){var r=ho[e];return this._rateLimits[r]||this._rateLimits.all},t.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},t.prototype._handleRateLimit=function(e){var r,n,i,o,a=Date.now(),s=e["x-sentry-rate-limits"],u=e["retry-after"];if(s){try{for(var c=Ye.__values(s.trim().split(",")),l=c.next();!l.done;l=c.next()){var d=l.value,h=d.split(":",2),y=parseInt(h[0],10),S=(isNaN(y)?60:y)*1e3;try{for(var T=(i=void 0,Ye.__values(h[1]&&h[1].split(";")||["all"])),C=T.next();!C.done;C=T.next()){var q=C.value,U=Ye.__spread(Object.keys(ho).map(function(k){return ho[k]}),["all"]);U.includes(q)&&(this._rateLimits[q]=new Date(a+S))}}catch(k){i={error:k}}finally{try{C&&!C.done&&(o=T.return)&&o.call(T)}finally{if(i)throw i.error}}}}catch(k){r={error:k}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return!0}else if(u)return this._rateLimits.all=new Date(a+St.parseRetryAfterHeader(a,u)),!0;return!1},t.prototype._send=function(e,r){return Ye.__awaiter(this,void 0,void 0,function(){var n=this;return Ye.__generator(this,function(i){if(!this.module)throw new St.SentryError("No module available");return r&&this._isRateLimited(e.type)?[2,Promise.reject({payload:r,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})]:[2,this._buffer.add(function(){return new Promise(function(o,a){if(!n.module)throw new St.SentryError("No module available");var s=n._getRequestOptions(n.urlParser(e.url)),u=n.module.request(s,function(c){var l=c.statusCode||500,d=sc.Status.fromHttpCode(l);c.setEncoding("utf8");var h=c.headers?c.headers["retry-after"]:"";h=Array.isArray(h)?h[0]:h;var y=c.headers?c.headers["x-sentry-rate-limits"]:"";y=Array.isArray(y)?y[0]:y;var S={"x-sentry-rate-limits":y,"retry-after":h},T=n._handleRateLimit(S);if(T&&St.logger.warn("Too many "+e.type+" requests, backing off until: "+n._disabledUntil(e.type)),d===sc.Status.Success)o({status:d});else{var C="HTTP Error ("+l+")";c.headers&&c.headers["x-sentry-error"]&&(C+=": "+c.headers["x-sentry-error"]),a(new St.SentryError(C))}c.on("data",function(){}),c.on("end",function(){})});u.on("error",a),u.end(e.body)})})]})})},t}();_o.BaseTransport=Z_});var cc=b((kS,uc)=>{var Gt=1e3,zt=Gt*60,Vt=zt*60,Et=Vt*24,ev=Et*7,tv=Et*365.25;uc.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return rv(t);if(r==="number"&&isFinite(t))return e.long?iv(t):nv(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function rv(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*tv;case"weeks":case"week":case"w":return r*ev;case"days":case"day":case"d":return r*Et;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Vt;case"minutes":case"minute":case"mins":case"min":case"m":return r*zt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Gt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function nv(t){var e=Math.abs(t);return e>=Et?Math.round(t/Et)+"d":e>=Vt?Math.round(t/Vt)+"h":e>=zt?Math.round(t/zt)+"m":e>=Gt?Math.round(t/Gt)+"s":t+"ms"}function iv(t){var e=Math.abs(t);return e>=Et?gn(t,e,Et,"day"):e>=Vt?gn(t,e,Vt,"hour"):e>=zt?gn(t,e,zt,"minute"):e>=Gt?gn(t,e,Gt,"second"):t+" ms"}function gn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var vo=b((DS,fc)=>{function ov(t){r.debug=r,r.default=r,r.coerce=u,r.disable=o,r.enable=i,r.enabled=a,r.humanize=cc(),r.destroy=c,Object.keys(t).forEach(l=>{r[l]=t[l]}),r.names=[],r.skips=[],r.formatters={};function e(l){let d=0;for(let h=0;h<l.length;h++)d=(d<<5)-d+l.charCodeAt(h),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=e;function r(l){let d,h=null,y,S;function T(...C){if(!T.enabled)return;let q=T,U=Number(new Date),k=U-(d||U);q.diff=k,q.prev=d,q.curr=U,d=U,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let Se=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(R,B)=>{if(R==="%%")return"%";Se++;let D=r.formatters[B];if(typeof D=="function"){let V=C[Se];R=D.call(q,V),C.splice(Se,1),Se--}return R}),r.formatArgs.call(q,C),(q.log||r.log).apply(q,C)}return T.namespace=l,T.useColors=r.useColors(),T.color=r.selectColor(l),T.extend=n,T.destroy=r.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(y!==r.namespaces&&(y=r.namespaces,S=r.enabled(l)),S),set:C=>{h=C}}),typeof r.init=="function"&&r.init(T),T}function n(l,d){let h=r(this.namespace+(typeof d=="undefined"?":":d)+l);return h.log=this.log,h}function i(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let d,h=(typeof l=="string"?l:"").split(/[\s,]+/),y=h.length;for(d=0;d<y;d++)!h[d]||(l=h[d].replace(/\*/g,".*?"),l[0]==="-"?r.skips.push(new RegExp("^"+l.substr(1)+"$")):r.names.push(new RegExp("^"+l+"$")))}function o(){let l=[...r.names.map(s),...r.skips.map(s).map(d=>"-"+d)].join(",");return r.enable(""),l}function a(l){if(l[l.length-1]==="*")return!0;let d,h;for(d=0,h=r.skips.length;d<h;d++)if(r.skips[d].test(l))return!1;for(d=0,h=r.names.length;d<h;d++)if(r.names[d].test(l))return!0;return!1}function s(l){return l.toString().substring(2,l.toString().length-2).replace(/\.\*\?$/,"*")}function u(l){return l instanceof Error?l.stack||l.message:l}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}fc.exports=ov});var lc=b((be,mn)=>{be.formatArgs=sv;be.save=uv;be.load=cv;be.useColors=av;be.storage=fv();be.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();be.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function av(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function sv(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+mn.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}be.log=console.debug||console.log||(()=>{});function uv(t){try{t?be.storage.setItem("debug",t):be.storage.removeItem("debug")}catch{}}function cv(){let t;try{t=be.storage.getItem("debug")}catch{}return!t&&typeof process!="undefined"&&"env"in process&&(t=process.env.DEBUG),t}function fv(){try{return localStorage}catch{}}mn.exports=vo()(be);var{formatters:lv}=mn.exports;lv.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var pc=b((FS,dc)=>{"use strict";dc.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var vc=b((jS,_c)=>{"use strict";var dv=require("os"),hc=require("tty"),Ie=pc(),{env:ee}=process,at;Ie("no-color")||Ie("no-colors")||Ie("color=false")||Ie("color=never")?at=0:(Ie("color")||Ie("colors")||Ie("color=true")||Ie("color=always"))&&(at=1);"FORCE_COLOR"in ee&&(ee.FORCE_COLOR==="true"?at=1:ee.FORCE_COLOR==="false"?at=0:at=ee.FORCE_COLOR.length===0?1:Math.min(parseInt(ee.FORCE_COLOR,10),3));function go(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function mo(t,e){if(at===0)return 0;if(Ie("color=16m")||Ie("color=full")||Ie("color=truecolor"))return 3;if(Ie("color=256"))return 2;if(t&&!e&&at===void 0)return 0;let r=at||0;if(ee.TERM==="dumb")return r;if(process.platform==="win32"){let n=dv.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ee)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ee)||ee.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ee){let n=parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:r}function pv(t){let e=mo(t,t&&t.isTTY);return go(e)}_c.exports={supportsColor:pv,stdout:go(mo(!0,hc.isatty(1))),stderr:go(mo(!0,hc.isatty(2)))}});var mc=b((oe,bn)=>{var hv=require("tty"),yn=require("util");oe.init=Sv;oe.log=mv;oe.formatArgs=vv;oe.save=yv;oe.load=bv;oe.useColors=_v;oe.destroy=yn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");oe.colors=[6,2,3,4,5,1];try{let t=vc();t&&(t.stderr||t).level>=2&&(oe.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}oe.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function _v(){return"colors"in oe.inspectOpts?Boolean(oe.inspectOpts.colors):hv.isatty(process.stderr.fd)}function vv(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
13
+ `+JSON.stringify(t),type:i,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}jn.sessionToSentryRequest=tg;function rg(t,e){var r=zc(e),n=t.type||"event",i=n==="transaction"||e.forceEnvelope(),o=t.debug_meta||{},s=o.transactionSampling,a=Pt.__rest(o,["transactionSampling"]),u=s||{},c=u.method,l=u.rate;Object.keys(a).length===0?delete t.debug_meta:t.debug_meta=a;var d={body:JSON.stringify(r?eg(t,e.metadata.sdk):t),type:n,url:i?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(i){var h=JSON.stringify(Pt.__assign(Pt.__assign({event_id:t.event_id,sent_at:new Date().toISOString()},r&&{sdk:r}),e.forceEnvelope()&&{dsn:e.getDsn().toString()})),_=JSON.stringify({type:n,sample_rates:[{id:c,rate:l}]}),S=h+`
14
+ `+_+`
15
+ `+d.body;d.body=S}return d}jn.eventToSentryRequest=rg});var Wc=b(Do=>{Object.defineProperty(Do,"__esModule",{value:!0});var ng=Ee(),ig=N();function og(t,e){var r;e.debug===!0&&ig.logger.enable();var n=ng.getCurrentHub();(r=n.getScope())===null||r===void 0||r.update(e.initialScope);var i=new t(e);n.bindClient(i)}Do.initAndBind=og});var $c=b(Lo=>{Object.defineProperty(Lo,"__esModule",{value:!0});Lo.SDK_VERSION="6.16.1"});var Kc=b(Fo=>{Object.defineProperty(Fo,"__esModule",{value:!0});var Yc,sg=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Yc=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=this.__sentry_original__||this;return Yc.apply(n,e)}},t.id="FunctionToString",t}();Fo.FunctionToString=sg});var Xc=b(Uo=>{Object.defineProperty(Uo,"__esModule",{value:!0});var jo=q(),Jc=Ee(),ve=N(),ag=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],ug=function(){function t(e){e===void 0&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){Jc.addGlobalEventProcessor(function(e){var r=Jc.getCurrentHub();if(!r)return e;var n=r.getIntegration(t);if(n){var i=r.getClient(),o=i?i.getOptions():{},s=typeof n._mergeOptions=="function"?n._mergeOptions(o):{};return typeof n._shouldDropEvent!="function"?e:n._shouldDropEvent(e,s)?null:e}return e})},t.prototype._shouldDropEvent=function(e,r){return this._isSentryError(e,r)?(ve.logger.warn(`Event dropped due to being internal Sentry Error.
16
+ Event: `+ve.getEventDescription(e)),!0):this._isIgnoredError(e,r)?(ve.logger.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+ve.getEventDescription(e)),!0):this._isDeniedUrl(e,r)?(ve.logger.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+ve.getEventDescription(e)+`.
17
+ Url: `+this._getEventFilterUrl(e)),!0):this._isAllowedUrl(e,r)?!1:(ve.logger.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+ve.getEventDescription(e)+`.
18
+ Url: `+this._getEventFilterUrl(e)),!0)},t.prototype._isSentryError=function(e,r){if(!r.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&e.exception.values[0].type==="SentryError"||!1}catch{return!1}},t.prototype._isIgnoredError=function(e,r){return!r.ignoreErrors||!r.ignoreErrors.length?!1:this._getPossibleEventMessages(e).some(function(n){return r.ignoreErrors.some(function(i){return ve.isMatchingPattern(n,i)})})},t.prototype._isDeniedUrl=function(e,r){if(!r.denyUrls||!r.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return n?r.denyUrls.some(function(i){return ve.isMatchingPattern(n,i)}):!1},t.prototype._isAllowedUrl=function(e,r){if(!r.allowUrls||!r.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return n?r.allowUrls.some(function(i){return ve.isMatchingPattern(n,i)}):!0},t.prototype._mergeOptions=function(e){return e===void 0&&(e={}),{allowUrls:jo.__spread(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:jo.__spread(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:jo.__spread(this._options.ignoreErrors||[],e.ignoreErrors||[],ag),ignoreInternal:typeof this._options.ignoreInternal!="undefined"?this._options.ignoreInternal:!0}},t.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var r=e.exception.values&&e.exception.values[0]||{},n=r.type,i=n===void 0?"":n,o=r.value,s=o===void 0?"":o;return[""+s,i+": "+s]}catch{return ve.logger.error("Cannot extract message for event "+ve.getEventDescription(e)),[]}return[]},t.prototype._getLastValidUrl=function(e){e===void 0&&(e=[]);for(var r,n,i=e.length-1;i>=0;i--){var o=e[i];if(((r=o)===null||r===void 0?void 0:r.filename)!=="<anonymous>"&&((n=o)===null||n===void 0?void 0:n.filename)!=="[native code]")return o.filename||null}return null},t.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var r=e.stacktrace.frames;return this._getLastValidUrl(r)}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return this._getLastValidUrl(n)}return null}catch{return ve.logger.error("Cannot extract url for event "+ve.getEventDescription(e)),null}},t.id="InboundFilters",t}();Uo.InboundFilters=ug});var Qc=b(Un=>{Object.defineProperty(Un,"__esModule",{value:!0});var cg=Kc();Un.FunctionToString=cg.FunctionToString;var lg=Xc();Un.InboundFilters=lg.InboundFilters});var ae=b(V=>{Object.defineProperty(V,"__esModule",{value:!0});var we=Mc();V.addBreadcrumb=we.addBreadcrumb;V.captureException=we.captureException;V.captureEvent=we.captureEvent;V.captureMessage=we.captureMessage;V.configureScope=we.configureScope;V.startTransaction=we.startTransaction;V.setContext=we.setContext;V.setExtra=we.setExtra;V.setExtras=we.setExtras;V.setTag=we.setTag;V.setTags=we.setTags;V.setUser=we.setUser;V.withScope=we.withScope;var ir=Ee();V.addGlobalEventProcessor=ir.addGlobalEventProcessor;V.getCurrentHub=ir.getCurrentHub;V.getHubFromCarrier=ir.getHubFromCarrier;V.Hub=ir.Hub;V.makeMain=ir.makeMain;V.Scope=ir.Scope;var fg=qc();V.API=fg.API;var dg=Hc();V.BaseClient=dg.BaseClient;var pg=Gc();V.BaseBackend=pg.BaseBackend;var Zc=Vc();V.eventToSentryRequest=Zc.eventToSentryRequest;V.sessionToSentryRequest=Zc.sessionToSentryRequest;var hg=Wc();V.initAndBind=hg.initAndBind;var vg=qo();V.NoopTransport=vg.NoopTransport;var _g=$c();V.SDK_VERSION=_g.SDK_VERSION;var gg=Qc();V.Integrations=gg});var el=b(Hn=>{(function(t,e){let r=typeof Hn=="object"?Hn:typeof t=="object"?t:{};e(r),typeof define=="function"&&define.amd&&define("lru",r)})(Hn,function(t){let e=Symbol("newer"),r=Symbol("older");function n(u,c){typeof u!="number"&&(c=u,u=0),this.size=0,this.limit=u,this.oldest=this.newest=void 0,this._keymap=new Map,c&&(this.assign(c),u<1&&(this.limit=this.size))}t.LRUMap=n;function i(u,c){this.key=u,this.value=c,this[e]=void 0,this[r]=void 0}n.prototype._markEntryAsUsed=function(u){u!==this.newest&&(u[e]&&(u===this.oldest&&(this.oldest=u[e]),u[e][r]=u[r]),u[r]&&(u[r][e]=u[e]),u[e]=void 0,u[r]=this.newest,this.newest&&(this.newest[e]=u),this.newest=u)},n.prototype.assign=function(u){let c,l=this.limit||Number.MAX_VALUE;this._keymap.clear();let d=u[Symbol.iterator]();for(let h=d.next();!h.done;h=d.next()){let _=new i(h.value[0],h.value[1]);if(this._keymap.set(_.key,_),c?(c[e]=_,_[r]=c):this.oldest=_,c=_,l--==0)throw new Error("overflow")}this.newest=c,this.size=this._keymap.size},n.prototype.get=function(u){var c=this._keymap.get(u);if(!!c)return this._markEntryAsUsed(c),c.value},n.prototype.set=function(u,c){var l=this._keymap.get(u);return l?(l.value=c,this._markEntryAsUsed(l),this):(this._keymap.set(u,l=new i(u,c)),this.newest?(this.newest[e]=l,l[r]=this.newest):this.oldest=l,this.newest=l,++this.size,this.size>this.limit&&this.shift(),this)},n.prototype.shift=function(){var u=this.oldest;if(u)return this.oldest[e]?(this.oldest=this.oldest[e],this.oldest[r]=void 0):(this.oldest=void 0,this.newest=void 0),u[e]=u[r]=void 0,this._keymap.delete(u.key),--this.size,[u.key,u.value]},n.prototype.find=function(u){let c=this._keymap.get(u);return c?c.value:void 0},n.prototype.has=function(u){return this._keymap.has(u)},n.prototype.delete=function(u){var c=this._keymap.get(u);if(!!c)return this._keymap.delete(c.key),c[e]&&c[r]?(c[r][e]=c[e],c[e][r]=c[r]):c[e]?(c[e][r]=void 0,this.oldest=c[e]):c[r]?(c[r][e]=void 0,this.newest=c[r]):this.oldest=this.newest=void 0,this.size--,c.value},n.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()};function o(u){this.entry=u}o.prototype[Symbol.iterator]=function(){return this},o.prototype.next=function(){let u=this.entry;return u?(this.entry=u[e],{done:!1,value:[u.key,u.value]}):{done:!0,value:void 0}};function s(u){this.entry=u}s.prototype[Symbol.iterator]=function(){return this},s.prototype.next=function(){let u=this.entry;return u?(this.entry=u[e],{done:!1,value:u.key}):{done:!0,value:void 0}};function a(u){this.entry=u}a.prototype[Symbol.iterator]=function(){return this},a.prototype.next=function(){let u=this.entry;return u?(this.entry=u[e],{done:!1,value:u.value}):{done:!0,value:void 0}},n.prototype.keys=function(){return new s(this.oldest)},n.prototype.values=function(){return new a(this.oldest)},n.prototype.entries=function(){return this},n.prototype[Symbol.iterator]=function(){return new o(this.oldest)},n.prototype.forEach=function(u,c){typeof c!="object"&&(c=this);let l=this.oldest;for(;l;)u.call(c,l.value,l.key,this),l=l[e]},n.prototype.toJSON=function(){for(var u=new Array(this.size),c=0,l=this.oldest;l;)u[c++]={key:l.key,value:l.value},l=l[e];return u},n.prototype.toString=function(){for(var u="",c=this.oldest;c;)u+=String(c.key)+":"+c.value,c=c[e],c&&(u+=" < ");return u}})});var tl=b(Ho=>{Object.defineProperty(Ho,"__esModule",{value:!0});function mg(t){if(!t.stack)return[];var e=t.stack.split(`
19
+ `).slice(1);return e.map(function(r){if(r.match(/^\s*[-]{4,}$/))return{columnNumber:null,fileName:r,functionName:null,lineNumber:null,methodName:null,native:null,typeName:null};var n=r.match(/at (?:(.+?)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(!!n){var i=null,o=null,s=null,a=null,u=null,c=n[5]==="native";if(n[1]){s=n[1];var l=s.lastIndexOf(".");if(s[l-1]==="."&&l--,l>0){i=s.substr(0,l),o=s.substr(l+1);var d=i.indexOf(".Module");d>0&&(s=s.substr(d+1),i=i.substr(0,d))}a=null}o&&(a=i,u=o),o==="<anonymous>"&&(u=null,s=null);var h={columnNumber:parseInt(n[4],10)||null,fileName:n[2]||null,functionName:s,lineNumber:parseInt(n[3],10)||null,methodName:u,native:c,typeName:a};return h}}).filter(function(r){return!!r})}Ho.parse=mg});var Go=b(vt=>{Object.defineProperty(vt,"__esModule",{value:!0});var Ue=N(),yg=require("fs"),bg=el(),Sg=tl(),Eg=7,Bo=new bg.LRUMap(100);function Tg(){Bo.clear()}vt.resetFileContentCache=Tg;function wg(t){try{return t.functionName||t.typeName+"."+(t.methodName||"<anonymous>")}catch{return"<anonymous>"}}var Og=(require.main&&require.main.filename&&Ue.dirname(require.main.filename)||global.process.cwd())+"/";function Cg(t,e){e||(e=Og);var r=Ue.basename(t,".js");t=Ue.dirname(t);var n=t.lastIndexOf("/node_modules/");if(n>-1)return t.substr(n+14).replace(/\//g,".")+":"+r;if(n=(t+"/").lastIndexOf(e,0),n===0){var i=t.substr(e.length).replace(/\//g,".");return i&&(i+=":"),i+=r,i}return r}function xg(t){return t.length===0?Ue.SyncPromise.resolve({}):new Ue.SyncPromise(function(e){for(var r={},n=0,i=function(s){var a=t[s],u=Bo.get(a);if(u!==void 0)return u!==null&&(r[a]=u),n++,n===t.length&&e(r),"continue";yg.readFile(a,function(c,l){var d=c?null:l.toString();r[a]=d,Bo.set(a,d),n++,n===t.length&&e(r)})},o=0;o<t.length;o++)i(o)})}function rl(t){var e=Sg.parse(t);return e||[]}vt.extractStackFromError=rl;function nl(t,e){var r=[],n=e&&e.frameContextLines!==void 0?e.frameContextLines:Eg,i=t.map(function(o){var s,a={colno:o.columnNumber,filename:((s=o.fileName)===null||s===void 0?void 0:s.startsWith("file://"))?o.fileName.substr(7):o.fileName||"",function:wg(o),lineno:o.lineNumber},u=o.native||a.filename&&!a.filename.startsWith("/")&&!a.filename.startsWith(".")&&a.filename.indexOf(":\\")!==1;return a.in_app=!u&&a.filename!==void 0&&a.filename.indexOf("node_modules/")===-1,a.filename&&(a.module=Cg(a.filename),!u&&n>0&&r.indexOf(a.filename)===-1&&r.push(a.filename)),a});if(n<=0)return Ue.SyncPromise.resolve(i);try{return Rg(r,i,n)}catch{return Ue.SyncPromise.resolve(i)}}vt.parseStack=nl;function Rg(t,e,r){return new Ue.SyncPromise(function(n){return xg(t).then(function(i){var o=e.map(function(s){if(s.filename&&i[s.filename])try{var a=i[s.filename].split(`
20
+ `);Ue.addContextToFrame(a,s,r)}catch{}return s});n(o)})})}function il(t,e){var r=t.name||t.constructor.name,n=rl(t);return new Ue.SyncPromise(function(i){return nl(n,e).then(function(o){var s={stacktrace:{frames:ol(o)},type:r,value:t.message};i(s)})})}vt.getExceptionFromError=il;function Ig(t,e){return new Ue.SyncPromise(function(r){return il(t,e).then(function(n){r({exception:{values:[n]}})})})}vt.parseError=Ig;function ol(t){if(!t||!t.length)return[];var e=t,r=e[0].function||"";return(r.indexOf("captureMessage")!==-1||r.indexOf("captureException")!==-1)&&(e=e.slice(1)),e.reverse()}vt.prepareFramesForEvent=ol});var Vo=b(zo=>{Object.defineProperty(zo,"__esModule",{value:!0});zo.SDK_NAME="sentry.javascript.node"});var Bn=b($o=>{Object.defineProperty($o,"__esModule",{value:!0});var rt=q(),sl=ae(),al=se(),Nt=N(),Ag=require("fs"),Mg=require("url"),Pg=Vo(),Wo={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},Ng=function(){function t(e){this.options=e,this._buffer=new Nt.PromiseBuffer(30),this._rateLimits={},this.urlParser=function(r){return new Mg.URL(r)},this._api=new sl.API(e.dsn,e._metadata,e.tunnel)}return t.prototype.sendEvent=function(e){throw new Nt.SentryError("Transport Class has to implement `sendEvent` method.")},t.prototype.close=function(e){return this._buffer.drain(e)},t.prototype._getProxy=function(e){var r,n,i=process.env,o=i.no_proxy,s=i.http_proxy,a=i.https_proxy,u=this.options,c=u.httpProxy,l=u.httpsProxy,d=e==="http"?c||s:l||c||a||s;if(!o)return d;var h=this._api.getDsn(),_=h.host,S=h.port;try{for(var T=rt.__values(o.split(",")),R=T.next();!R.done;R=T.next()){var A=R.value;if(_.endsWith(A)||(_+":"+S).endsWith(A))return}}catch(F){r={error:F}}finally{try{R&&!R.done&&(n=T.return)&&n.call(T)}finally{if(r)throw r.error}}return d},t.prototype._getRequestOptions=function(e){var r=rt.__assign(rt.__assign({},this._api.getRequestHeaders(Pg.SDK_NAME,sl.SDK_VERSION)),this.options.headers),n=e.hostname,i=e.pathname,o=e.port,s=e.protocol,a=""+i;return rt.__assign({agent:this.client,headers:r,hostname:n,method:"POST",path:a,port:o,protocol:s},this.options.caCerts&&{ca:Ag.readFileSync(this.options.caCerts)})},t.prototype._disabledUntil=function(e){var r=Wo[e];return this._rateLimits[r]||this._rateLimits.all},t.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},t.prototype._handleRateLimit=function(e){var r,n,i,o,s=Date.now(),a=e["x-sentry-rate-limits"],u=e["retry-after"];if(a){try{for(var c=rt.__values(a.trim().split(",")),l=c.next();!l.done;l=c.next()){var d=l.value,h=d.split(":",2),_=parseInt(h[0],10),S=(isNaN(_)?60:_)*1e3;try{for(var T=(i=void 0,rt.__values(h[1]&&h[1].split(";")||["all"])),R=T.next();!R.done;R=T.next()){var A=R.value,F=rt.__spread(Object.keys(Wo).map(function(k){return Wo[k]}),["all"]);F.includes(A)&&(this._rateLimits[A]=new Date(s+S))}}catch(k){i={error:k}}finally{try{R&&!R.done&&(o=T.return)&&o.call(T)}finally{if(i)throw i.error}}}}catch(k){r={error:k}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return!0}else if(u)return this._rateLimits.all=new Date(s+Nt.parseRetryAfterHeader(s,u)),!0;return!1},t.prototype._send=function(e,r){return rt.__awaiter(this,void 0,void 0,function(){var n=this;return rt.__generator(this,function(i){if(!this.module)throw new Nt.SentryError("No module available");return r&&this._isRateLimited(e.type)?[2,Promise.reject({payload:r,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})]:[2,this._buffer.add(function(){return new Promise(function(o,s){if(!n.module)throw new Nt.SentryError("No module available");var a=n._getRequestOptions(n.urlParser(e.url)),u=n.module.request(a,function(c){var l=c.statusCode||500,d=al.Status.fromHttpCode(l);c.setEncoding("utf8");var h=c.headers?c.headers["retry-after"]:"";h=Array.isArray(h)?h[0]:h;var _=c.headers?c.headers["x-sentry-rate-limits"]:"";_=Array.isArray(_)?_[0]:_;var S={"x-sentry-rate-limits":_,"retry-after":h},T=n._handleRateLimit(S);if(T&&Nt.logger.warn("Too many "+e.type+" requests, backing off until: "+n._disabledUntil(e.type)),d===al.Status.Success)o({status:d});else{var R="HTTP Error ("+l+")";c.headers&&c.headers["x-sentry-error"]&&(R+=": "+c.headers["x-sentry-error"]),s(new Nt.SentryError(R))}c.on("data",function(){}),c.on("end",function(){})});u.on("error",s),u.end(e.body)})})]})})},t}();$o.BaseTransport=Ng});var cl=b((Z0,ul)=>{var or=1e3,sr=or*60,ar=sr*60,qt=ar*24,qg=qt*7,kg=qt*365.25;ul.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Dg(t);if(r==="number"&&isFinite(t))return e.long?Fg(t):Lg(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Dg(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!!e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*kg;case"weeks":case"week":case"w":return r*qg;case"days":case"day":case"d":return r*qt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ar;case"minutes":case"minute":case"mins":case"min":case"m":return r*sr;case"seconds":case"second":case"secs":case"sec":case"s":return r*or;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Lg(t){var e=Math.abs(t);return e>=qt?Math.round(t/qt)+"d":e>=ar?Math.round(t/ar)+"h":e>=sr?Math.round(t/sr)+"m":e>=or?Math.round(t/or)+"s":t+"ms"}function Fg(t){var e=Math.abs(t);return e>=qt?Gn(t,e,qt,"day"):e>=ar?Gn(t,e,ar,"hour"):e>=sr?Gn(t,e,sr,"minute"):e>=or?Gn(t,e,or,"second"):t+" ms"}function Gn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Yo=b((eT,ll)=>{function jg(t){r.debug=r,r.default=r,r.coerce=u,r.disable=o,r.enable=i,r.enabled=s,r.humanize=cl(),r.destroy=c,Object.keys(t).forEach(l=>{r[l]=t[l]}),r.names=[],r.skips=[],r.formatters={};function e(l){let d=0;for(let h=0;h<l.length;h++)d=(d<<5)-d+l.charCodeAt(h),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=e;function r(l){let d,h=null,_,S;function T(...R){if(!T.enabled)return;let A=T,F=Number(new Date),k=F-(d||F);A.diff=k,A.prev=d,A.curr=F,d=F,R[0]=r.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let xe=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(I,G)=>{if(I==="%%")return"%";xe++;let L=r.formatters[G];if(typeof L=="function"){let W=R[xe];I=L.call(A,W),R.splice(xe,1),xe--}return I}),r.formatArgs.call(A,R),(A.log||r.log).apply(A,R)}return T.namespace=l,T.useColors=r.useColors(),T.color=r.selectColor(l),T.extend=n,T.destroy=r.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(_!==r.namespaces&&(_=r.namespaces,S=r.enabled(l)),S),set:R=>{h=R}}),typeof r.init=="function"&&r.init(T),T}function n(l,d){let h=r(this.namespace+(typeof d=="undefined"?":":d)+l);return h.log=this.log,h}function i(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let d,h=(typeof l=="string"?l:"").split(/[\s,]+/),_=h.length;for(d=0;d<_;d++)!h[d]||(l=h[d].replace(/\*/g,".*?"),l[0]==="-"?r.skips.push(new RegExp("^"+l.substr(1)+"$")):r.names.push(new RegExp("^"+l+"$")))}function o(){let l=[...r.names.map(a),...r.skips.map(a).map(d=>"-"+d)].join(",");return r.enable(""),l}function s(l){if(l[l.length-1]==="*")return!0;let d,h;for(d=0,h=r.skips.length;d<h;d++)if(r.skips[d].test(l))return!1;for(d=0,h=r.names.length;d<h;d++)if(r.names[d].test(l))return!0;return!1}function a(l){return l.toString().substring(2,l.toString().length-2).replace(/\.\*\?$/,"*")}function u(l){return l instanceof Error?l.stack||l.message:l}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}ll.exports=jg});var fl=b((Oe,zn)=>{Oe.formatArgs=Hg;Oe.save=Bg;Oe.load=Gg;Oe.useColors=Ug;Oe.storage=zg();Oe.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Oe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ug(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Hg(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+zn.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Oe.log=console.debug||console.log||(()=>{});function Bg(t){try{t?Oe.storage.setItem("debug",t):Oe.storage.removeItem("debug")}catch{}}function Gg(){let t;try{t=Oe.storage.getItem("debug")}catch{}return!t&&typeof process!="undefined"&&"env"in process&&(t=process.env.DEBUG),t}function zg(){try{return localStorage}catch{}}zn.exports=Yo()(Oe);var{formatters:Vg}=zn.exports;Vg.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var pl=b((tT,dl)=>{"use strict";dl.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var _l=b((rT,vl)=>{"use strict";var Wg=require("os"),hl=require("tty"),Ne=pl(),{env:ne}=process,_t;Ne("no-color")||Ne("no-colors")||Ne("color=false")||Ne("color=never")?_t=0:(Ne("color")||Ne("colors")||Ne("color=true")||Ne("color=always"))&&(_t=1);"FORCE_COLOR"in ne&&(ne.FORCE_COLOR==="true"?_t=1:ne.FORCE_COLOR==="false"?_t=0:_t=ne.FORCE_COLOR.length===0?1:Math.min(parseInt(ne.FORCE_COLOR,10),3));function Ko(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Jo(t,e){if(_t===0)return 0;if(Ne("color=16m")||Ne("color=full")||Ne("color=truecolor"))return 3;if(Ne("color=256"))return 2;if(t&&!e&&_t===void 0)return 0;let r=_t||0;if(ne.TERM==="dumb")return r;if(process.platform==="win32"){let n=Wg.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ne)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ne)||ne.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ne)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0;if(ne.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ne){let n=parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ne.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)||"COLORTERM"in ne?1:r}function $g(t){let e=Jo(t,t&&t.isTTY);return Ko(e)}vl.exports={supportsColor:$g,stdout:Ko(Jo(!0,hl.isatty(1))),stderr:Ko(Jo(!0,hl.isatty(2)))}});var ml=b((ue,Wn)=>{var Yg=require("tty"),Vn=require("util");ue.init=tm;ue.log=Qg;ue.formatArgs=Jg;ue.save=Zg;ue.load=em;ue.useColors=Kg;ue.destroy=Vn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ue.colors=[6,2,3,4,5,1];try{let t=_l();t&&(t.stderr||t).level>=2&&(ue.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ue.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Kg(){return"colors"in ue.inspectOpts?Boolean(ue.inspectOpts.colors):Yg.isatty(process.stderr.fd)}function Jg(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
21
21
  `).join(`
22
- `+o),t.push(i+"m+"+bn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=gv()+e+" "+t[0]}function gv(){return oe.inspectOpts.hideDate?"":new Date().toISOString()+" "}function mv(...t){return process.stderr.write(yn.format(...t)+`
23
- `)}function yv(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function bv(){return process.env.DEBUG}function Sv(t){t.inspectOpts={};let e=Object.keys(oe.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=oe.inspectOpts[e[r]]}bn.exports=vo()(oe);var{formatters:gc}=bn.exports;gc.o=function(t){return this.inspectOpts.colors=this.useColors,yn.inspect(t,this.inspectOpts).split(`
24
- `).map(e=>e.trim()).join(" ")};gc.O=function(t){return this.inspectOpts.colors=this.useColors,yn.inspect(t,this.inspectOpts)}});var Sn=b((HS,yo)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?yo.exports=lc():yo.exports=mc()});var yc=b(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});function Ev(t){return function(e,r){return new Promise((n,i)=>{t.call(this,e,r,(o,a)=>{o?i(o):n(a)})})}}bo.default=Ev});var Ec=b((Eo,Sc)=>{"use strict";var bc=Eo&&Eo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Tv=require("events"),Ov=bc(Sn()),wv=bc(yc()),pr=Ov.default("agent-base");function xv(t){return Boolean(t)&&typeof t.addRequest=="function"}function So(){let{stack:t}=new Error;return typeof t!="string"?!1:t.split(`
25
- `).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function En(t,e){return new En.Agent(t,e)}(function(t){class e extends Tv.EventEmitter{constructor(n,i){super();let o=i;typeof n=="function"?this.callback=n:n&&(o=n),this.timeout=null,o&&typeof o.timeout=="number"&&(this.timeout=o.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:So()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:So()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,i,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,i){let o=Object.assign({},i);typeof o.secureEndpoint!="boolean"&&(o.secureEndpoint=So()),o.host==null&&(o.host="localhost"),o.port==null&&(o.port=o.secureEndpoint?443:80),o.protocol==null&&(o.protocol=o.secureEndpoint?"https:":"http:"),o.host&&o.path&&delete o.path,delete o.agent,delete o.hostname,delete o._defaultAgent,delete o.defaultPort,delete o.createConnection,n._last=!0,n.shouldKeepAlive=!1;let a=!1,s=null,u=o.timeout||this.timeout,c=y=>{n._hadError||(n.emit("error",y),n._hadError=!0)},l=()=>{s=null,a=!0;let y=new Error(`A "socket" was not created for HTTP request before ${u}ms`);y.code="ETIMEOUT",c(y)},d=y=>{a||(s!==null&&(clearTimeout(s),s=null),c(y))},h=y=>{if(a)return;if(s!=null&&(clearTimeout(s),s=null),xv(y)){pr("Callback returned another Agent instance %o",y.constructor.name),y.addRequest(n,o);return}if(y){y.once("free",()=>{this.freeSocket(y,o)}),n.onSocket(y);return}let S=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);c(S)};if(typeof this.callback!="function"){c(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(pr("Converting legacy callback function to promise"),this.promisifiedCallback=wv.default(this.callback)):this.promisifiedCallback=this.callback),typeof u=="number"&&u>0&&(s=setTimeout(l,u)),"port"in o&&typeof o.port!="number"&&(o.port=Number(o.port));try{pr("Resolving socket for %o request: %o",o.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,o)).then(h,d)}catch(y){Promise.reject(y).catch(d)}}freeSocket(n,i){pr("Freeing socket %o %o",n.constructor.name,i),n.destroy()}destroy(){pr("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(En||(En={}));Sc.exports=En});var Tc=b(_r=>{"use strict";var Iv=_r&&_r.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_r,"__esModule",{value:!0});var Cv=Iv(Sn()),hr=Cv.default("https-proxy-agent:parse-proxy-response");function Rv(t){return new Promise((e,r)=>{let n=0,i=[];function o(){let d=t.read();d?l(d):t.once("readable",o)}function a(){t.removeListener("end",u),t.removeListener("error",c),t.removeListener("close",s),t.removeListener("readable",o)}function s(d){hr("onclose had error %o",d)}function u(){hr("onend")}function c(d){a(),hr("onerror %o",d),r(d)}function l(d){i.push(d),n+=d.length;let h=Buffer.concat(i,n);if(h.indexOf(`\r
22
+ `+o),t.push(i+"m+"+Wn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Xg()+e+" "+t[0]}function Xg(){return ue.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Qg(...t){return process.stderr.write(Vn.format(...t)+`
23
+ `)}function Zg(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function em(){return process.env.DEBUG}function tm(t){t.inspectOpts={};let e=Object.keys(ue.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ue.inspectOpts[e[r]]}Wn.exports=Yo()(ue);var{formatters:gl}=Wn.exports;gl.o=function(t){return this.inspectOpts.colors=this.useColors,Vn.inspect(t,this.inspectOpts).split(`
24
+ `).map(e=>e.trim()).join(" ")};gl.O=function(t){return this.inspectOpts.colors=this.useColors,Vn.inspect(t,this.inspectOpts)}});var $n=b((nT,Xo)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?Xo.exports=fl():Xo.exports=ml()});var yl=b(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});function rm(t){return function(e,r){return new Promise((n,i)=>{t.call(this,e,r,(o,s)=>{o?i(o):n(s)})})}}Qo.default=rm});var El=b((es,Sl)=>{"use strict";var bl=es&&es.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},nm=require("events"),im=bl($n()),om=bl(yl()),qr=im.default("agent-base");function sm(t){return Boolean(t)&&typeof t.addRequest=="function"}function Zo(){let{stack:t}=new Error;return typeof t!="string"?!1:t.split(`
25
+ `).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function Yn(t,e){return new Yn.Agent(t,e)}(function(t){class e extends nm.EventEmitter{constructor(n,i){super();let o=i;typeof n=="function"?this.callback=n:n&&(o=n),this.timeout=null,o&&typeof o.timeout=="number"&&(this.timeout=o.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:Zo()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Zo()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,i,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,i){let o=Object.assign({},i);typeof o.secureEndpoint!="boolean"&&(o.secureEndpoint=Zo()),o.host==null&&(o.host="localhost"),o.port==null&&(o.port=o.secureEndpoint?443:80),o.protocol==null&&(o.protocol=o.secureEndpoint?"https:":"http:"),o.host&&o.path&&delete o.path,delete o.agent,delete o.hostname,delete o._defaultAgent,delete o.defaultPort,delete o.createConnection,n._last=!0,n.shouldKeepAlive=!1;let s=!1,a=null,u=o.timeout||this.timeout,c=_=>{n._hadError||(n.emit("error",_),n._hadError=!0)},l=()=>{a=null,s=!0;let _=new Error(`A "socket" was not created for HTTP request before ${u}ms`);_.code="ETIMEOUT",c(_)},d=_=>{s||(a!==null&&(clearTimeout(a),a=null),c(_))},h=_=>{if(s)return;if(a!=null&&(clearTimeout(a),a=null),sm(_)){qr("Callback returned another Agent instance %o",_.constructor.name),_.addRequest(n,o);return}if(_){_.once("free",()=>{this.freeSocket(_,o)}),n.onSocket(_);return}let S=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);c(S)};if(typeof this.callback!="function"){c(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(qr("Converting legacy callback function to promise"),this.promisifiedCallback=om.default(this.callback)):this.promisifiedCallback=this.callback),typeof u=="number"&&u>0&&(a=setTimeout(l,u)),"port"in o&&typeof o.port!="number"&&(o.port=Number(o.port));try{qr("Resolving socket for %o request: %o",o.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,o)).then(h,d)}catch(_){Promise.reject(_).catch(d)}}freeSocket(n,i){qr("Freeing socket %o %o",n.constructor.name,i),n.destroy()}destroy(){qr("Destroying agent %o",this.constructor.name)}}t.Agent=e,t.prototype=t.Agent.prototype})(Yn||(Yn={}));Sl.exports=Yn});var Tl=b(Dr=>{"use strict";var am=Dr&&Dr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dr,"__esModule",{value:!0});var um=am($n()),kr=um.default("https-proxy-agent:parse-proxy-response");function cm(t){return new Promise((e,r)=>{let n=0,i=[];function o(){let d=t.read();d?l(d):t.once("readable",o)}function s(){t.removeListener("end",u),t.removeListener("error",c),t.removeListener("close",a),t.removeListener("readable",o)}function a(d){kr("onclose had error %o",d)}function u(){kr("onend")}function c(d){s(),kr("onerror %o",d),r(d)}function l(d){i.push(d),n+=d.length;let h=Buffer.concat(i,n);if(h.indexOf(`\r
26
26
  \r
27
- `)===-1){hr("have not received end of HTTP headers yet..."),o();return}let S=h.toString("ascii",0,h.indexOf(`\r
28
- `)),T=+S.split(" ")[1];hr("got proxy server response: %o",S),e({statusCode:T,buffered:h})}t.on("error",c),t.on("close",s),t.on("end",u),o()})}_r.default=Rv});var Ic=b(Tt=>{"use strict";var Av=Tt&&Tt.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(l){try{c(n.next(l))}catch(d){a(d)}}function u(l){try{c(n.throw(l))}catch(d){a(d)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((n=n.apply(t,e||[])).next())})},Wt=Tt&&Tt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tt,"__esModule",{value:!0});var Oc=Wt(require("net")),wc=Wt(require("tls")),Pv=Wt(require("url")),qv=Wt(require("assert")),Nv=Wt(Sn()),Mv=Ec(),kv=Wt(Tc()),vr=Nv.default("https-proxy-agent:agent"),xc=class extends Mv.Agent{constructor(e){let r;if(typeof e=="string"?r=Pv.default.parse(e):r=e,!r)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");vr("creating new HttpsProxyAgent instance: %o",r);super(r);let n=Object.assign({},r);this.secureProxy=r.secureProxy||jv(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,r){return Av(this,void 0,void 0,function*(){let{proxy:n,secureProxy:i}=this,o;i?(vr("Creating `tls.Socket`: %o",n),o=wc.default.connect(n)):(vr("Creating `net.Socket`: %o",n),o=Oc.default.connect(n));let a=Object.assign({},n.headers),u=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
29
- `;n.auth&&(a["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:c,port:l,secureEndpoint:d}=r;Fv(l,d)||(c+=`:${l}`),a.Host=c,a.Connection="close";for(let C of Object.keys(a))u+=`${C}: ${a[C]}\r
30
- `;let h=kv.default(o);o.write(`${u}\r
31
- `);let{statusCode:y,buffered:S}=yield h;if(y===200){if(e.once("socket",Dv),r.secureEndpoint){let C=r.servername||r.host;if(!C)throw new Error('Could not determine "servername"');return vr("Upgrading socket connection to TLS"),wc.default.connect(Object.assign(Object.assign({},Hv(r,"host","hostname","path","port")),{socket:o,servername:C}))}return o}o.destroy();let T=new Oc.default.Socket;return T.readable=!0,e.once("socket",C=>{vr("replaying proxy buffer for failed request"),qv.default(C.listenerCount("data")>0),C.push(S),C.push(null)}),T})}};Tt.default=xc;function Dv(t){t.resume()}function Fv(t,e){return Boolean(!e&&t===80||e&&t===443)}function jv(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function Hv(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var xo=b((wo,Cc)=>{"use strict";var Lv=wo&&wo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},To=Lv(Ic());function Oo(t){return new To.default(t)}(function(t){t.HttpsProxyAgent=To.default,t.prototype=To.default.prototype})(Oo||(Oo={}));Cc.exports=Oo});var Pc=b(Io=>{Object.defineProperty(Io,"__esModule",{value:!0});var Uv=N(),Rc=ie(),Ac=require("http"),Bv=vn(),Gv=function(t){Uv.__extends(e,t);function e(r){var n=t.call(this,r)||this;n.options=r;var i=n._getProxy("http");return n.module=Ac,n.client=i?new(xo())(i):new Ac.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),n}return e.prototype.sendEvent=function(r){return this._send(Rc.eventToSentryRequest(r,this._api),r)},e.prototype.sendSession=function(r){return this._send(Rc.sessionToSentryRequest(r,this._api),r)},e}(Bv.BaseTransport);Io.HTTPTransport=Gv});var Mc=b(Co=>{Object.defineProperty(Co,"__esModule",{value:!0});var zv=N(),qc=ie(),Nc=require("https"),Vv=vn(),Wv=function(t){zv.__extends(e,t);function e(r){var n=t.call(this,r)||this;n.options=r;var i=n._getProxy("https");return n.module=Nc,n.client=i?new(xo())(i):new Nc.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),n}return e.prototype.sendEvent=function(r){return this._send(qc.eventToSentryRequest(r,this._api),r)},e.prototype.sendSession=function(r){return this._send(qc.sessionToSentryRequest(r,this._api),r)},e}(Vv.BaseTransport);Co.HTTPSTransport=Wv});var Ro=b(gr=>{Object.defineProperty(gr,"__esModule",{value:!0});var Yv=vn();gr.BaseTransport=Yv.BaseTransport;var $v=Pc();gr.HTTPTransport=$v.HTTPTransport;var Kv=Mc();gr.HTTPSTransport=Kv.HTTPSTransport});var Po=b(Ao=>{Object.defineProperty(Ao,"__esModule",{value:!0});var st=N(),kc=ie(),Jv=ne(),$e=P(),Tn=fo(),Dc=Ro(),Xv=function(t){st.__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.eventFromException=function(r,n){var i=this,o=r,a=n&&n.data&&n.data.mechanism,s=a||{handled:!0,type:"generic"};if(!$e.isError(r)){if($e.isPlainObject(r)){var u="Non-Error exception captured with keys: "+$e.extractExceptionKeysForMessage(r);kc.getCurrentHub().configureScope(function(c){c.setExtra("__serialized__",$e.normalizeToSize(r))}),o=n&&n.syntheticException||new Error(u),o.message=u}else o=n&&n.syntheticException||new Error(r),o.message=r;s.synthetic=!0}return new $e.SyncPromise(function(c,l){return Tn.parseError(o,i._options).then(function(d){$e.addExceptionTypeValue(d,void 0,void 0),$e.addExceptionMechanism(d,s),c(st.__assign(st.__assign({},d),{event_id:n&&n.event_id}))}).then(null,l)})},e.prototype.eventFromMessage=function(r,n,i){var o=this;n===void 0&&(n=Jv.Severity.Info);var a={event_id:i&&i.event_id,level:n,message:r};return new $e.SyncPromise(function(s){if(o._options.attachStacktrace&&i&&i.syntheticException){var u=i.syntheticException?Tn.extractStackFromError(i.syntheticException):[];Tn.parseStack(u,o._options).then(function(c){a.stacktrace={frames:Tn.prepareFramesForEvent(c)},s(a)}).then(null,function(){s(a)})}else s(a)})},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var r=new $e.Dsn(this._options.dsn),n=st.__assign(st.__assign(st.__assign(st.__assign(st.__assign({},this._options.transportOptions),this._options.httpProxy&&{httpProxy:this._options.httpProxy}),this._options.httpsProxy&&{httpsProxy:this._options.httpsProxy}),this._options.caCerts&&{caCerts:this._options.caCerts}),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(n):r.protocol==="http"?new Dc.HTTPTransport(n):new Dc.HTTPSTransport(n)},e}(kc.BaseBackend);Ao.NodeBackend=Xv});var Mo=b(No=>{Object.defineProperty(No,"__esModule",{value:!0});var Qv=N(),qo=ie(),Zv=ge(),On=ne(),Fc=P(),eg=Po(),tg=function(t){Qv.__extends(e,t);function e(r){var n=this;return r._metadata=r._metadata||{},r._metadata.sdk=r._metadata.sdk||{name:"sentry.javascript.node",packages:[{name:"npm:@sentry/node",version:qo.SDK_VERSION}],version:qo.SDK_VERSION},n=t.call(this,eg.NodeBackend,r)||this,n}return e.prototype.captureException=function(r,n,i){if(this._options.autoSessionTracking&&this._sessionFlusher&&i){var o=i.getRequestSession();o&&o.status===On.RequestSessionStatus.Ok&&(o.status=On.RequestSessionStatus.Errored)}return t.prototype.captureException.call(this,r,n,i)},e.prototype.captureEvent=function(r,n,i){if(this._options.autoSessionTracking&&this._sessionFlusher&&i){var o=r.type||"exception",a=o==="exception"&&r.exception&&r.exception.values&&r.exception.values.length>0;if(a){var s=i.getRequestSession();s&&s.status===On.RequestSessionStatus.Ok&&(s.status=On.RequestSessionStatus.Errored)}}return t.prototype.captureEvent.call(this,r,n,i)},e.prototype.close=function(r){var n;return(n=this._sessionFlusher)===null||n===void 0||n.close(),t.prototype.close.call(this,r)},e.prototype.initSessionFlusher=function(){var r=this._options,n=r.release,i=r.environment;n?this._sessionFlusher=new Zv.SessionFlusher(this.getTransport(),{release:n,environment:i}):Fc.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")},e.prototype._prepareEvent=function(r,n,i){return r.platform=r.platform||"node",this.getOptions().serverName&&(r.server_name=this.getOptions().serverName),t.prototype._prepareEvent.call(this,r,n,i)},e.prototype._captureRequestSession=function(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():Fc.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")},e}(qo.BaseClient);No.NodeClient=tg});var Uc=b(ko=>{Object.defineProperty(ko,"__esModule",{value:!0});var jc=N(),Hc=ie(),mr=ne(),rg=P(),ng=require("util"),Lc=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){var e,r;try{for(var n=jc.__values(["debug","info","warn","error","log"]),i=n.next();!i.done;i=n.next()){var o=i.value;rg.fill(console,o,ig(o))}}catch(a){e={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.id="Console",t}();ko.Console=Lc;function ig(t){return function(r){var n;switch(t){case"debug":n=mr.Severity.Debug;break;case"error":n=mr.Severity.Error;break;case"info":n=mr.Severity.Info;break;case"warn":n=mr.Severity.Warning;break;default:n=mr.Severity.Log}return function(){Hc.getCurrentHub().getIntegration(Lc)&&Hc.getCurrentHub().addBreadcrumb({category:"console",level:n,message:ng.format.apply(void 0,arguments)},{input:jc.__spread(arguments),level:t}),r.apply(this,arguments)}}}});var Vc=b(Ot=>{Object.defineProperty(Ot,"__esModule",{value:!0});var Do=N(),og=ie(),ag=P(),Bc=require("url"),Gc=ag.parseSemver(process.versions.node);function sg(t){var e,r=(e=og.getCurrentHub().getClient())===null||e===void 0?void 0:e.getDsn();return r?t.includes(r.host):!1}Ot.isSentryRequest=sg;function zc(t){var e=t.protocol||"",r=t.hostname||t.host||"",n=!t.port||t.port===80||t.port===443?"":":"+t.port,i=t.path?t.path:"/";return e+"//"+r+n+i}Ot.extractUrl=zc;function ug(t,e,r){var n,i,o;if(!t)return t;var a=Do.__read(t.split(" "),2),s=a[0],u=a[1];return e.host&&!e.protocol&&(e.protocol=(i=(n=r)===null||n===void 0?void 0:n.agent)===null||i===void 0?void 0:i.protocol,u=zc(e)),((o=u)===null||o===void 0?void 0:o.startsWith("///"))&&(u=u.slice(2)),s+" "+u}Ot.cleanSpanDescription=ug;function Fo(t){var e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:""+(t.pathname||"")+(t.search||""),href:t.href};return t.port!==""&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=t.username+":"+t.password),e}Ot.urlToOptions=Fo;function cg(t,e){var r,n,i,o,a,s,u,c,l,d;return typeof e[e.length-1]=="function"&&(l=e.pop()),typeof e[0]=="string"?d=Fo(new Bc.URL(e[0])):e[0]instanceof Bc.URL?d=Fo(e[0]):d=e[0],e.length===2&&(d=Do.__assign(Do.__assign({},d),e[1])),d.protocol===void 0&&(Gc.major&&Gc.major>8?d.protocol=((n=(r=t)===null||r===void 0?void 0:r.globalAgent)===null||n===void 0?void 0:n.protocol)||((i=d.agent)===null||i===void 0?void 0:i.protocol)||((o=d._defaultAgent)===null||o===void 0?void 0:o.protocol):d.protocol=((a=d.agent)===null||a===void 0?void 0:a.protocol)||((s=d._defaultAgent)===null||s===void 0?void 0:s.protocol)||((c=(u=t)===null||u===void 0?void 0:u.globalAgent)===null||c===void 0?void 0:c.protocol)),l?[d,l]:[d]}Ot.normalizeRequestArgs=cg});var Jc=b(Ho=>{Object.defineProperty(Ho,"__esModule",{value:!0});var Wc=N(),jo=ie(),Yt=P(),yr=Vc(),Yc=Yt.parseSemver(process.versions.node),$c=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._breadcrumbs=typeof e.breadcrumbs=="undefined"?!0:e.breadcrumbs,this._tracing=typeof e.tracing=="undefined"?!1:e.tracing}return t.prototype.setupOnce=function(){if(!(!this._breadcrumbs&&!this._tracing)){var e=fg(this._breadcrumbs,this._tracing),r=require("http");if(Yt.fill(r,"get",e),Yt.fill(r,"request",e),Yc.major&&Yc.major>8){var n=require("https");Yt.fill(n,"get",e),Yt.fill(n,"request",e)}}},t.id="Http",t}();Ho.Http=$c;function fg(t,e){return function(n){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=this,u=yr.normalizeRequestArgs(this,o),c=u[0],l=yr.extractUrl(c);if(yr.isSentryRequest(l))return n.apply(s,u);var d,h,y=jo.getCurrentHub().getScope();if(y&&e&&(h=y.getSpan(),h)){d=h.startChild({description:(c.method||"GET")+" "+l,op:"http.client"});var S=d.toTraceparent();Yt.logger.log("[Tracing] Adding sentry-trace header "+S+" to outgoing request to "+l+": "),c.headers=Wc.__assign(Wc.__assign({},c.headers),{"sentry-trace":S})}return n.apply(s,u).once("response",function(T){var C=this;t&&Kc("response",l,C,T),e&&d&&(T.statusCode&&d.setHttpStatus(T.statusCode),d.description=yr.cleanSpanDescription(d.description,c,C),d.finish())}).once("error",function(){var T=this;t&&Kc("error",l,T),e&&d&&(d.setHttpStatus(500),d.description=yr.cleanSpanDescription(d.description,c,T),d.finish())})}}}function Kc(t,e,r,n){!jo.getCurrentHub().getIntegration($c)||jo.getCurrentHub().addBreadcrumb({category:"http",data:{method:r.method,status_code:n&&n.statusCode,url:e},type:"http"},{event:t,request:r,response:n})}});var Bo=b(Uo=>{Object.defineProperty(Uo,"__esModule",{value:!0});var lg=ie(),Lo=P(),dg=2e3;function pg(t){console.error(t&&t.stack?t.stack:t);var e=lg.getCurrentHub().getClient();if(e===void 0){Lo.logger.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1);return}var r=e.getOptions(),n=r&&r.shutdownTimeout&&r.shutdownTimeout>0&&r.shutdownTimeout||dg;Lo.forget(e.close(n).then(function(i){i||Lo.logger.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)}))}Uo.logAndExitProcess=pg});var Zc=b(Go=>{Object.defineProperty(Go,"__esModule",{value:!0});var Xc=ie(),hg=ne(),_g=P(),Qc=Bo(),vg=function(){function t(e){e===void 0&&(e={}),this._options=e,this.name=t.id,this.handler=this._makeErrorHandler()}return t.prototype.setupOnce=function(){global.process.on("uncaughtException",this.handler.bind(this))},t.prototype._makeErrorHandler=function(){var e=this,r=2e3,n=!1,i=!1,o=!1,a;return function(s){var u=Qc.logAndExitProcess,c=Xc.getCurrentHub().getClient();if(e._options.onFatalError?u=e._options.onFatalError:c&&c.getOptions().onFatalError&&(u=c.getOptions().onFatalError),n)o?(_g.logger.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),Qc.logAndExitProcess(s)):i||(i=!0,setTimeout(function(){o||(o=!0,u(a,s))},r));else{var l=Xc.getCurrentHub();a=s,n=!0,l.getIntegration(t)?l.withScope(function(d){d.setLevel(hg.Severity.Fatal),l.captureException(s,{originalException:s,data:{mechanism:{handled:!1,type:"onuncaughtexception"}}}),o||(o=!0,u(s))}):o||(o=!0,u(s))}}},t.id="OnUncaughtException",t}();Go.OnUncaughtException=vg});var tf=b(zo=>{Object.defineProperty(zo,"__esModule",{value:!0});var gg=ie(),ef=P(),mg=Bo(),yg=function(){function t(e){e===void 0&&(e={mode:"warn"}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){global.process.on("unhandledRejection",this.sendUnhandledPromise.bind(this))},t.prototype.sendUnhandledPromise=function(e,r){var n=gg.getCurrentHub();if(!n.getIntegration(t)){this._handleRejection(e);return}var i=r.domain&&r.domain.sentryContext||{};n.withScope(function(o){o.setExtra("unhandledPromiseRejection",!0),i.user&&o.setUser(i.user),i.tags&&o.setTags(i.tags),i.extra&&o.setExtras(i.extra),n.captureException(e,{originalException:r,data:{mechanism:{handled:!1,type:"onunhandledrejection"}}})}),this._handleRejection(e)},t.prototype._handleRejection=function(e){var r="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";this._options.mode==="warn"?ef.consoleSandbox(function(){console.warn(r),console.error(e&&e.stack?e.stack:e)}):this._options.mode==="strict"&&(ef.consoleSandbox(function(){console.warn(r)}),mg.logAndExitProcess(e))},t.id="OnUnhandledRejection",t}();zo.OnUnhandledRejection=yg});var of=b(Vo=>{Object.defineProperty(Vo,"__esModule",{value:!0});var rf=N(),nf=ie(),$t=P(),bg=fo(),Sg="cause",Eg=5,Tg=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._key=e.key||Sg,this._limit=e.limit||Eg}return t.prototype.setupOnce=function(){nf.addGlobalEventProcessor(function(e,r){var n=nf.getCurrentHub().getIntegration(t);if(n){var i=n._handler&&n._handler.bind(n);return typeof i=="function"?i(e,r):e}return e})},t.prototype._handler=function(e,r){var n=this;return!e.exception||!e.exception.values||!r||!$t.isInstanceOf(r.originalException,Error)?$t.SyncPromise.resolve(e):new $t.SyncPromise(function(i){n._walkErrorTree(r.originalException,n._key).then(function(o){e&&e.exception&&e.exception.values&&(e.exception.values=rf.__spread(o,e.exception.values)),i(e)}).then(null,function(){i(e)})})},t.prototype._walkErrorTree=function(e,r,n){var i=this;return n===void 0&&(n=[]),!$t.isInstanceOf(e[r],Error)||n.length+1>=this._limit?$t.SyncPromise.resolve(n):new $t.SyncPromise(function(o,a){bg.getExceptionFromError(e[r]).then(function(s){i._walkErrorTree(e[r],r,rf.__spread([s],n)).then(o).then(null,function(){a()})}).then(null,function(){a()})})},t.id="LinkedErrors",t}();Vo.LinkedErrors=Tg});var cf=b(Yo=>{Object.defineProperty(Yo,"__esModule",{value:!0});var af=N(),sf=require("fs"),uf=require("path"),Wo;function Og(){try{return require.cache?Object.keys(require.cache):[]}catch{return[]}}function wg(){var t=require.main&&require.main.paths||[],e=Og(),r={},n={};return e.forEach(function(i){var o=i,a=function(){var s=o;if(o=uf.dirname(s),!(!o||s===o||n[s])){if(t.indexOf(o)<0)return a();var u=uf.join(s,"package.json");if(n[s]=!0,!sf.existsSync(u))return a();try{var c=JSON.parse(sf.readFileSync(u,"utf8"));r[c.name]=c.version}catch{}}};a()}),r}var xg=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){var n=this;e(function(i){return r().getIntegration(t)?af.__assign(af.__assign({},i),{modules:n._getModules()}):i})},t.prototype._getModules=function(){return Wo||(Wo=wg()),Wo},t.id="Modules",t}();Yo.Modules=xg});var $o=b(ut=>{Object.defineProperty(ut,"__esModule",{value:!0});var Ig=Uc();ut.Console=Ig.Console;var Cg=Jc();ut.Http=Cg.Http;var Rg=Zc();ut.OnUncaughtException=Rg.OnUncaughtException;var Ag=tf();ut.OnUnhandledRejection=Ag.OnUnhandledRejection;var Pg=of();ut.LinkedErrors=Pg.LinkedErrors;var qg=cf();ut.Modules=qg.Modules});var Jo=b(Fe=>{Object.defineProperty(Fe,"__esModule",{value:!0});var br=N(),ct=ie(),ff=ge(),lf=ne(),Ko=P(),Ng=require("domain"),Mg=Mo(),Sr=$o();Fe.defaultIntegrations=[new ct.Integrations.InboundFilters,new ct.Integrations.FunctionToString,new Sr.Console,new Sr.Http,new Sr.OnUncaughtException,new Sr.OnUnhandledRejection,new Sr.LinkedErrors];function kg(t){t===void 0&&(t={});var e,r=ff.getMainCarrier(),n=((e=r.__SENTRY__)===null||e===void 0?void 0:e.integrations)||[];if(t.defaultIntegrations=t.defaultIntegrations===!1?[]:br.__spread(Array.isArray(t.defaultIntegrations)?t.defaultIntegrations:Fe.defaultIntegrations,n),t.dsn===void 0&&process.env.SENTRY_DSN&&(t.dsn=process.env.SENTRY_DSN),t.tracesSampleRate===void 0&&process.env.SENTRY_TRACES_SAMPLE_RATE){var i=parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);isFinite(i)&&(t.tracesSampleRate=i)}if(t.release===void 0){var o=df();o!==void 0?t.release=o:t.autoSessionTracking=!1}t.environment===void 0&&process.env.SENTRY_ENVIRONMENT&&(t.environment=process.env.SENTRY_ENVIRONMENT),t.autoSessionTracking===void 0&&t.dsn!==void 0&&(t.autoSessionTracking=!0),Ng.active&&ff.setHubOnCarrier(r,ct.getCurrentHub()),ct.initAndBind(Mg.NodeClient,t),t.autoSessionTracking&&Lg()}Fe.init=kg;function Dg(){return ct.getCurrentHub().lastEventId()}Fe.lastEventId=Dg;function Fg(t){return br.__awaiter(this,void 0,void 0,function(){var e;return br.__generator(this,function(r){return e=ct.getCurrentHub().getClient(),e?[2,e.flush(t)]:(Ko.logger.warn("Cannot flush events. No client defined."),[2,Promise.resolve(!1)])})})}Fe.flush=Fg;function jg(t){return br.__awaiter(this,void 0,void 0,function(){var e;return br.__generator(this,function(r){return e=ct.getCurrentHub().getClient(),e?[2,e.close(t)]:(Ko.logger.warn("Cannot flush events and disable SDK. No client defined."),[2,Promise.resolve(!1)])})})}Fe.close=jg;function Hg(t){if(t===void 0)return!1;var e=t&&t.getOptions();return e&&e.autoSessionTracking!==void 0?e.autoSessionTracking:!1}Fe.isAutoSessionTrackingEnabled=Hg;function df(t){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;var e=Ko.getGlobalObject();return e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id?e.SENTRY_RELEASE.id:process.env.GITHUB_SHA||process.env.COMMIT_REF||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA||t}Fe.getSentryRelease=df;function Lg(){var t=ct.getCurrentHub();t.startSession(),process.on("beforeExit",function(){var e,r=(e=t.getScope())===null||e===void 0?void 0:e.getSession(),n=[lf.SessionStatus.Exited,lf.SessionStatus.Crashed];r&&!n.includes(r.status)&&t.endSession()})}});var hf=b(Qo=>{Object.defineProperty(Qo,"__esModule",{value:!0});var pf=N(),wn=require("fs"),Xo=require("path");function Ug(t){var e=Xo.resolve(t);if(!wn.existsSync(e))throw new Error("Cannot read contents of "+e+". Directory does not exist.");if(!wn.statSync(e).isDirectory())throw new Error("Cannot read contents of "+e+", because it is not a directory.");var r=function(n){return wn.readdirSync(n).reduce(function(i,o){var a=Xo.join(n,o);return wn.statSync(a).isDirectory()?pf.__spread(i,r(a)):pf.__spread(i,[a])},[])};return r(e).map(function(n){return Xo.relative(e,n)})}Qo.deepReadDirSync=Ug});var ft=b(Kt=>{Object.defineProperty(Kt,"__esModule",{value:!0});var _f;(function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"})(_f=Kt.SpanStatus||(Kt.SpanStatus={}));(function(t){function e(r){if(r<400&&r>=100)return t.Ok;if(r>=400&&r<500)switch(r){case 401:return t.Unauthenticated;case 403:return t.PermissionDenied;case 404:return t.NotFound;case 409:return t.AlreadyExists;case 413:return t.FailedPrecondition;case 429:return t.ResourceExhausted;default:return t.InvalidArgument}if(r>=500&&r<600)switch(r){case 501:return t.Unimplemented;case 503:return t.Unavailable;case 504:return t.DeadlineExceeded;default:return t.InternalError}return t.UnknownError}t.fromHttpCode=e})(_f=Kt.SpanStatus||(Kt.SpanStatus={}))});var lt=b(je=>{Object.defineProperty(je,"__esModule",{value:!0});var vf=ge();je.TRACEPARENT_REGEXP=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Bg(t){t===void 0&&(t=(e=vf.getCurrentHub().getClient())===null||e===void 0?void 0:e.getOptions());var e;return!!t&&("tracesSampleRate"in t||"tracesSampler"in t)}je.hasTracingEnabled=Bg;function Gg(t){var e=t.match(je.TRACEPARENT_REGEXP);if(e){var r=void 0;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}}je.extractTraceparentData=Gg;function zg(t){t===void 0&&(t=vf.getCurrentHub());var e,r;return(r=(e=t)===null||e===void 0?void 0:e.getScope())===null||r===void 0?void 0:r.getTransaction()}je.getActiveTransaction=zg;function Vg(t){return t/1e3}je.msToSec=Vg;function Wg(t){return t*1e3}je.secToMs=Wg;var Yg=P();je.stripUrlQueryAndFragment=Yg.stripUrlQueryAndFragment});var yf=b(ea=>{Object.defineProperty(ea,"__esModule",{value:!0});var Zo=P(),gf=ft(),$g=lt();function Kg(){Zo.addInstrumentationHandler({callback:mf,type:"error"}),Zo.addInstrumentationHandler({callback:mf,type:"unhandledrejection"})}ea.registerErrorInstrumentation=Kg;function mf(){var t=$g.getActiveTransaction();t&&(Zo.logger.log("[Tracing] Transaction: "+gf.SpanStatus.InternalError+" -> Global error occured"),t.setStatus(gf.SpanStatus.InternalError))}});var ta=b(xn=>{Object.defineProperty(xn,"__esModule",{value:!0});xn.FINISH_REASON_TAG="finishReason";xn.IDLE_TRANSACTION_FINISH_REASONS=["heartbeatFailed","idleTimeout","documentHidden"]});var Cn=b(In=>{Object.defineProperty(In,"__esModule",{value:!0});var Jt=N(),wt=P(),ra=ft(),Jg=function(){function t(e){e===void 0&&(e=1e3),this.spans=[],this._maxlen=e}return t.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},t}();In.SpanRecorder=Jg;var Xg=function(){function t(e){if(this.traceId=wt.uuid4(),this.spanId=wt.uuid4().substring(16),this.startTimestamp=wt.timestampWithMs(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return t.prototype.child=function(e){return this.startChild(e)},t.prototype.startChild=function(e){var r=new t(Jt.__assign(Jt.__assign({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r),r.transaction=this.transaction,r},t.prototype.setTag=function(e,r){var n;return this.tags=Jt.__assign(Jt.__assign({},this.tags),(n={},n[e]=r,n)),this},t.prototype.setData=function(e,r){var n;return this.data=Jt.__assign(Jt.__assign({},this.data),(n={},n[e]=r,n)),this},t.prototype.setStatus=function(e){return this.status=e,this},t.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var r=ra.SpanStatus.fromHttpCode(e);return r!==ra.SpanStatus.UnknownError&&this.setStatus(r),this},t.prototype.isSuccess=function(){return this.status===ra.SpanStatus.Ok},t.prototype.finish=function(e){this.endTimestamp=typeof e=="number"?e:wt.timestampWithMs()},t.prototype.toTraceparent=function(){var e="";return this.sampled!==void 0&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},t.prototype.toContext=function(){return wt.dropUndefinedKeys({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(e){var r,n,i,o,a;return this.data=(r=e.data,r??{}),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(n=e.spanId,n??this.spanId),this.startTimestamp=(i=e.startTimestamp,i??this.startTimestamp),this.status=e.status,this.tags=(o=e.tags,o??{}),this.traceId=(a=e.traceId,a??this.traceId),this},t.prototype.getTraceContext=function(){return wt.dropUndefinedKeys({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return wt.dropUndefinedKeys({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}();In.Span=Xg});var Rn=b(na=>{Object.defineProperty(na,"__esModule",{value:!0});var Xt=N(),bf=ge(),Qg=ne(),Qt=P(),Sf=Cn(),Zg=function(t){Xt.__extends(e,t);function e(r,n){var i=t.call(this,r)||this;return i._measurements={},i._hub=bf.getCurrentHub(),Qt.isInstanceOf(n,bf.Hub)&&(i._hub=n),i.name=r.name||"",i.metadata=r.metadata||{},i._trimEnd=r.trimEnd,i.transaction=i,i}return e.prototype.setName=function(r){this.name=r},e.prototype.initSpanRecorder=function(r){r===void 0&&(r=1e3),this.spanRecorder||(this.spanRecorder=new Sf.SpanRecorder(r)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(r){this._measurements=Xt.__assign({},r)},e.prototype.setMetadata=function(r){this.metadata=Xt.__assign(Xt.__assign({},this.metadata),r)},e.prototype.finish=function(r){var n=this,i,o,a,s,u;if(this.endTimestamp===void 0){if(this.name||(Qt.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,r),this.sampled!==!0){Qt.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),(u=(a=(i=this._hub.getClient())===null||i===void 0?void 0:(o=i).getTransport)===null||a===void 0?void 0:(s=a.call(o)).recordLostEvent)===null||u===void 0||u.call(s,Qg.Outcome.SampleRate,"transaction");return}var c=this.spanRecorder?this.spanRecorder.spans.filter(function(h){return h!==n&&h.endTimestamp}):[];this._trimEnd&&c.length>0&&(this.endTimestamp=c.reduce(function(h,y){return h.endTimestamp&&y.endTimestamp?h.endTimestamp>y.endTimestamp?h:y:h}).endTimestamp);var l={contexts:{trace:this.getTraceContext()},spans:c,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata},d=Object.keys(this._measurements).length>0;return d&&(Qt.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),Qt.logger.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(l)}},e.prototype.toContext=function(){var r=t.prototype.toContext.call(this);return Qt.dropUndefinedKeys(Xt.__assign(Xt.__assign({},r),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(r){var n;return t.prototype.updateWithContext.call(this,r),this.name=(n=r.name,n??""),this._trimEnd=r.trimEnd,this},e}(Sf.Span);na.Transaction=Zg});var Pn=b(dt=>{Object.defineProperty(dt,"__esModule",{value:!0});var ia=N(),ue=P(),An=ta(),em=Cn(),Ef=ft(),tm=Rn();dt.DEFAULT_IDLE_TIMEOUT=1e3;dt.HEARTBEAT_INTERVAL=5e3;var Tf=function(t){ia.__extends(e,t);function e(r,n,i,o){i===void 0&&(i="");var a=t.call(this,o)||this;return a._pushActivity=r,a._popActivity=n,a.transactionSpanId=i,a}return e.prototype.add=function(r){var n=this;r.spanId!==this.transactionSpanId&&(r.finish=function(i){r.endTimestamp=typeof i=="number"?i:ue.timestampWithMs(),n._popActivity(r.spanId)},r.endTimestamp===void 0&&this._pushActivity(r.spanId)),t.prototype.add.call(this,r)},e}(em.SpanRecorder);dt.IdleTransactionSpanRecorder=Tf;var rm=function(t){ia.__extends(e,t);function e(r,n,i,o){i===void 0&&(i=dt.DEFAULT_IDLE_TIMEOUT),o===void 0&&(o=!1);var a=t.call(this,r,n)||this;return a._idleHub=n,a._idleTimeout=i,a._onScope=o,a.activities={},a._heartbeatCounter=0,a._finished=!1,a._beforeFinishCallbacks=[],n&&o&&(Of(n),ue.logger.log("Setting idle transaction on scope. Span ID: "+a.spanId),n.configureScope(function(s){return s.setSpan(a)})),a._initTimeout=setTimeout(function(){a._finished||a.finish()},a._idleTimeout),a}return e.prototype.finish=function(r){var n,i,o=this;if(r===void 0&&(r=ue.timestampWithMs()),this._finished=!0,this.activities={},this.spanRecorder){ue.logger.log("[Tracing] finishing IdleTransaction",new Date(r*1e3).toISOString(),this.op);try{for(var a=ia.__values(this._beforeFinishCallbacks),s=a.next();!s.done;s=a.next()){var u=s.value;u(this,r)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(c){if(c.spanId===o.spanId)return!0;c.endTimestamp||(c.endTimestamp=r,c.setStatus(Ef.SpanStatus.Cancelled),ue.logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(c,void 0,2)));var l=c.startTimestamp<r;return l||ue.logger.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(c,void 0,2)),l}),ue.logger.log("[Tracing] flushing IdleTransaction")}else ue.logger.log("[Tracing] No active IdleTransaction");return this._onScope&&Of(this._idleHub),t.prototype.finish.call(this,r)},e.prototype.registerBeforeFinishCallback=function(r){this._beforeFinishCallbacks.push(r)},e.prototype.initSpanRecorder=function(r){var n=this;if(!this.spanRecorder){var i=function(a){n._finished||n._pushActivity(a)},o=function(a){n._finished||n._popActivity(a)};this.spanRecorder=new Tf(i,o,this.spanId,r),ue.logger.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},e.prototype._pushActivity=function(r){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),ue.logger.log("[Tracing] pushActivity: "+r),this.activities[r]=!0,ue.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(r){var n=this;if(this.activities[r]&&(ue.logger.log("[Tracing] popActivity "+r),delete this.activities[r],ue.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){var i=this._idleTimeout,o=ue.timestampWithMs()+i/1e3;setTimeout(function(){n._finished||(n.setTag(An.FINISH_REASON_TAG,An.IDLE_TRANSACTION_FINISH_REASONS[1]),n.finish(o))},i)}},e.prototype._beat=function(){if(!this._finished){var r=Object.keys(this.activities).join("");r===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=r,this._heartbeatCounter>=3?(ue.logger.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(Ef.SpanStatus.DeadlineExceeded),this.setTag(An.FINISH_REASON_TAG,An.IDLE_TRANSACTION_FINISH_REASONS[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var r=this;ue.logger.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){r._beat()},dt.HEARTBEAT_INTERVAL)},e}(tm.Transaction);dt.IdleTransaction=rm;function Of(t){if(t){var e=t.getScope();if(e){var r=e.getTransaction();r&&e.setSpan(void 0)}}}});var Nn=b((Er,Tr)=>{Object.defineProperty(Er,"__esModule",{value:!0});var oa=N(),wf=ge(),qn=ne(),Ce=P(),nm=yf(),im=Pn(),om=Rn(),am=lt();function sm(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function xf(t,e,r){if(!am.hasTracingEnabled(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({transactionSampling:{method:qn.TransactionSamplingMethod.Explicit}}),t;var n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(r),t.setMetadata({transactionSampling:{method:qn.TransactionSamplingMethod.Sampler,rate:Number(n)}})):r.parentSampled!==void 0?(n=r.parentSampled,t.setMetadata({transactionSampling:{method:qn.TransactionSamplingMethod.Inheritance}})):(n=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:qn.TransactionSamplingMethod.Rate,rate:Number(n)}})),um(n)?n?(t.sampled=Math.random()<n,t.sampled?(Ce.logger.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(Ce.logger.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(n)+")"),t)):(Ce.logger.log("[Tracing] Discarding transaction because "+(typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(Ce.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function um(t){return isNaN(t)||!(typeof t=="number"||typeof t=="boolean")?(Ce.logger.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1):t<0||t>1?(Ce.logger.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1):!0}function cm(t,e){var r,n,i=((r=this.getClient())===null||r===void 0?void 0:r.getOptions())||{},o=new om.Transaction(t,this);return o=xf(o,i,oa.__assign({parentSampled:t.parentSampled,transactionContext:t},e)),o.sampled&&o.initSpanRecorder((n=i._experiments)===null||n===void 0?void 0:n.maxSpans),o}function fm(t,e,r,n,i){var o,a,s=((o=t.getClient())===null||o===void 0?void 0:o.getOptions())||{},u=new im.IdleTransaction(e,t,r,n);return u=xf(u,s,oa.__assign({parentSampled:e.parentSampled,transactionContext:e},i)),u.sampled&&u.initSpanRecorder((a=s._experiments)===null||a===void 0?void 0:a.maxSpans),u}Er.startIdleTransaction=fm;function If(){var t=wf.getMainCarrier();!t.__SENTRY__||(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=cm),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=sm))}Er._addTracingExtensions=If;function lm(){var t=wf.getMainCarrier();if(!!t.__SENTRY__){var e={mongodb:function(){var n=Ce.dynamicRequire(Tr,"./integrations/node/mongo");return new n.Mongo},mongoose:function(){var n=Ce.dynamicRequire(Tr,"./integrations/node/mongo");return new n.Mongo({mongoose:!0})},mysql:function(){var n=Ce.dynamicRequire(Tr,"./integrations/node/mysql");return new n.Mysql},pg:function(){var n=Ce.dynamicRequire(Tr,"./integrations/node/postgres");return new n.Postgres}},r=Object.keys(e).filter(function(n){return!!Ce.loadModule(n)}).map(function(n){try{return e[n]()}catch{return}}).filter(function(n){return n});r.length>0&&(t.__SENTRY__.integrations=oa.__spread(t.__SENTRY__.integrations||[],r))}}function dm(){If(),Ce.isNodeEnv()&&lm(),nm.registerErrorInstrumentation()}Er.addExtensionMethods=dm});var Rf=b(sa=>{Object.defineProperty(sa,"__esModule",{value:!0});var aa=N(),pm=P(),hm=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}return t.prototype.setupOnce=function(){if(!this._router){pm.logger.error("ExpressIntegration is missing an Express instance");return}gm(this._router,this._methods)},t.id="Express",t}();sa.Express=hm;function Cf(t,e){var r=t.length;switch(r){case 2:return function(n,i){var o=i.__sentry_transaction;if(o){var a=o.startChild({description:t.name,op:"express.middleware."+e});i.once("finish",function(){a.finish()})}return t.call(this,n,i)};case 3:return function(n,i,o){var a,s=i.__sentry_transaction,u=(a=s)===null||a===void 0?void 0:a.startChild({description:t.name,op:"express.middleware."+e});t.call(this,n,i,function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var d;(d=u)===null||d===void 0||d.finish(),o.call.apply(o,aa.__spread([this],c))})};case 4:return function(n,i,o,a){var s,u=o.__sentry_transaction,c=(s=u)===null||s===void 0?void 0:s.startChild({description:t.name,op:"express.middleware."+e});t.call(this,n,i,o,function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h;(h=c)===null||h===void 0||h.finish(),a.call.apply(a,aa.__spread([this],l))})};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+r)}}function _m(t,e){return t.map(function(r){return typeof r=="function"?Cf(r,e):Array.isArray(r)?r.map(function(n){return typeof n=="function"?Cf(n,e):n}):r})}function vm(t,e){var r=t[e];return t[e]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return r.call.apply(r,aa.__spread([this],_m(n,e)))},t}function gm(t,e){e===void 0&&(e=[]),e.forEach(function(r){return vm(t,r)})}});var Af=b(ua=>{Object.defineProperty(ua,"__esModule",{value:!0});var Or=P(),mm=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._usePgNative=!!e.usePgNative}return t.prototype.setupOnce=function(e,r){var n,i=Or.loadModule("pg");if(!i){Or.logger.error("Postgres Integration was unable to require `pg` package.");return}if(this._usePgNative&&!((n=i.native)===null||n===void 0?void 0:n.Client)){Or.logger.error("Postgres Integration was unable to access 'pg-native' bindings.");return}var o=(this._usePgNative?i.native:i).Client;Or.fill(o.prototype,"query",function(a){return function(s,u,c){var l,d,h,y=r().getScope(),S=(l=y)===null||l===void 0?void 0:l.getSpan(),T=(d=S)===null||d===void 0?void 0:d.startChild({description:typeof s=="string"?s:s.text,op:"db"});if(typeof c=="function")return a.call(this,s,u,function(q,U){var k;(k=T)===null||k===void 0||k.finish(),c(q,U)});if(typeof u=="function")return a.call(this,s,function(q,U){var k;(k=T)===null||k===void 0||k.finish(),u(q,U)});var C=typeof u!="undefined"?a.call(this,s,u):a.call(this,s);return Or.isThenable(C)?C.then(function(q){var U;return(U=T)===null||U===void 0||U.finish(),q}):((h=T)===null||h===void 0||h.finish(),C)}})},t.id="Postgres",t}();ua.Postgres=mm});var Pf=b(fa=>{Object.defineProperty(fa,"__esModule",{value:!0});var ca=P(),ym=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){var n=ca.loadModule("mysql/lib/Connection.js");if(!n){ca.logger.error("Mysql Integration was unable to require `mysql` package.");return}ca.fill(n,"createQuery",function(i){return function(o,a,s){var u,c,l=r().getScope(),d=(u=l)===null||u===void 0?void 0:u.getSpan(),h=(c=d)===null||c===void 0?void 0:c.startChild({description:typeof o=="string"?o:o.sql,op:"db"});return typeof s=="function"?i.call(this,o,a,function(y,S,T){var C;(C=h)===null||C===void 0||C.finish(),s(y,S,T)}):typeof a=="function"?i.call(this,o,function(y,S,T){var C;(C=h)===null||C===void 0||C.finish(),a(y,S,T)}):i.call(this,o,a,s)}})},t.id="Mysql",t}();fa.Mysql=ym});var qf=b(da=>{Object.defineProperty(da,"__esModule",{value:!0});var la=N(),Mn=P(),bm=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],Sm={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},Em=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:bm,this._describeOperations="describeOperations"in e?e.describeOperations:!0,this._useMongoose=!!e.useMongoose}return t.prototype.setupOnce=function(e,r){var n=this._useMongoose?"mongoose":"mongodb",i=Mn.loadModule(n);if(!i){Mn.logger.error("Mongo Integration was unable to require `"+n+"` package.");return}this._instrumentOperations(i.Collection,this._operations,r)},t.prototype._instrumentOperations=function(e,r,n){var i=this;r.forEach(function(o){return i._patchOperation(e,o,n)})},t.prototype._patchOperation=function(e,r,n){if(r in e.prototype){var i=this._getSpanContextFromOperationArguments.bind(this);Mn.fill(e.prototype,r,function(o){return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u,c,l,d,h=a[a.length-1],y=n().getScope(),S=(u=y)===null||u===void 0?void 0:u.getSpan();if(typeof h!="function"||r==="mapReduce"&&a.length===2){var T=(c=S)===null||c===void 0?void 0:c.startChild(i(this,r,a)),C=o.call.apply(o,la.__spread([this],a));return Mn.isThenable(C)?C.then(function(U){var k;return(k=T)===null||k===void 0||k.finish(),U}):((l=T)===null||l===void 0||l.finish(),C)}var q=(d=S)===null||d===void 0?void 0:d.startChild(i(this,r,a.slice(0,-1)));return o.call.apply(o,la.__spread([this],a.slice(0,-1),[function(U,k){var Se;(Se=q)===null||Se===void 0||Se.finish(),h(U,k)}]))}})}},t.prototype._getSpanContextFromOperationArguments=function(e,r,n){var i={collectionName:e.collectionName,dbName:e.dbName,namespace:e.namespace},o={op:"db",description:r,data:i},a=Sm[r],s=Array.isArray(this._describeOperations)?this._describeOperations.includes(r):this._describeOperations;if(!a||!s)return o;try{if(r==="mapReduce"){var u=la.__read(n,2),c=u[0],l=u[1];i[a[0]]=typeof c=="string"?c:c.name||"<anonymous>",i[a[1]]=typeof l=="string"?l:l.name||"<anonymous>"}else for(var d=0;d<a.length;d++)i[a[d]]=JSON.stringify(n[d])}catch{}return o},t.id="Mongo",t}();da.Mongo=Em});var kf=b(ha=>{Object.defineProperty(ha,"__esModule",{value:!0});var pa=P(),Nf=ta(),Mf=ft(),Tm=lt(),kn=pa.getGlobalObject();function Om(){kn&&kn.document?kn.document.addEventListener("visibilitychange",function(){var t=Tm.getActiveTransaction();kn.document.hidden&&t&&(pa.logger.log("[Tracing] Transaction: "+Mf.SpanStatus.Cancelled+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(Mf.SpanStatus.Cancelled),t.setTag("visibilitychange","document.hidden"),t.setTag(Nf.FINISH_REASON_TAG,Nf.IDLE_TRANSACTION_FINISH_REASONS[2]),t.finish())}):pa.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}ha.registerBackgroundTabDetection=Om});var Dn=b(_a=>{Object.defineProperty(_a,"__esModule",{value:!0});_a.bindReporter=function(t,e,r){var n;return function(i){e.value>=0&&(i||r)&&(e.delta=e.value-(n||0),(e.delta||n===void 0)&&(n=e.value,t(e)))}}});var Df=b(va=>{Object.defineProperty(va,"__esModule",{value:!0});va.generateUniqueID=function(){return"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)}});var Fn=b(ga=>{Object.defineProperty(ga,"__esModule",{value:!0});var wm=Df();ga.initMetric=function(t,e){return{name:t,value:e??-1,delta:0,entries:[],id:wm.generateUniqueID()}}});var jn=b(ma=>{Object.defineProperty(ma,"__esModule",{value:!0});ma.observe=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var r=new PerformanceObserver(function(n){return n.getEntries().map(e)});return r.observe({type:t,buffered:!0}),r}}catch{}}});var wr=b(ya=>{Object.defineProperty(ya,"__esModule",{value:!0});var xm=P();ya.onHidden=function(t,e){var r=function(n){(n.type==="pagehide"||xm.getGlobalObject().document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)}});var Ff=b(ba=>{Object.defineProperty(ba,"__esModule",{value:!0});var Im=Dn(),Cm=Fn(),Rm=jn(),Am=wr();ba.getCLS=function(t,e){var r=Cm.initMetric("CLS",0),n,i=0,o=[],a=function(u){if(u&&!u.hadRecentInput){var c=o[0],l=o[o.length-1];i&&o.length!==0&&u.startTime-l.startTime<1e3&&u.startTime-c.startTime<5e3?(i+=u.value,o.push(u)):(i=u.value,o=[u]),i>r.value&&(r.value=i,r.entries=o,n&&n())}},s=Rm.observe("layout-shift",a);s&&(n=Im.bindReporter(t,r,e),Am.onHidden(function(){s.takeRecords().map(a),n(!0)}))}});var Ln=b(Sa=>{Object.defineProperty(Sa,"__esModule",{value:!0});var Pm=P(),qm=wr(),Hn=-1,Nm=function(){return Pm.getGlobalObject().document.visibilityState==="hidden"?0:1/0},Mm=function(){qm.onHidden(function(t){var e=t.timeStamp;Hn=e},!0)};Sa.getVisibilityWatcher=function(){return Hn<0&&(Hn=Nm(),Mm()),{get firstHiddenTime(){return Hn}}}});var jf=b(Ea=>{Object.defineProperty(Ea,"__esModule",{value:!0});var km=Dn(),Dm=Ln(),Fm=Fn(),jm=jn(),Hm=wr();Ea.getFID=function(t,e){var r=Dm.getVisibilityWatcher(),n=Fm.initMetric("FID"),i,o=function(s){i&&s.startTime<r.firstHiddenTime&&(n.value=s.processingStart-s.startTime,n.entries.push(s),i(!0))},a=jm.observe("first-input",o);a&&(i=km.bindReporter(t,n,e),Hm.onHidden(function(){a.takeRecords().map(o),a.disconnect()},!0))}});var Lf=b(Ta=>{Object.defineProperty(Ta,"__esModule",{value:!0});var Lm=Dn(),Um=Ln(),Bm=Fn(),Gm=jn(),zm=wr(),Hf={};Ta.getLCP=function(t,e){var r=Um.getVisibilityWatcher(),n=Bm.initMetric("LCP"),i,o=function(u){var c=u.startTime;c<r.firstHiddenTime&&(n.value=c,n.entries.push(u)),i&&i()},a=Gm.observe("largest-contentful-paint",o);if(a){i=Lm.bindReporter(t,n,e);var s=function(){Hf[n.id]||(a.takeRecords().map(o),a.disconnect(),Hf[n.id]=!0,i(!0))};["keydown","click"].forEach(function(u){addEventListener(u,s,{once:!0,capture:!0})}),zm.onHidden(s,!0)}}});var Gf=b(xr=>{Object.defineProperty(xr,"__esModule",{value:!0});var Uf=N(),Z=P(),te=lt(),Vm=Ff(),Wm=jf(),Ym=Lf(),$m=Ln(),le=Z.getGlobalObject(),Km=function(){function t(e){e===void 0&&(e=!1);var r,n;this._reportAllChanges=e,this._measurements={},this._performanceCursor=0,!Z.isNodeEnv()&&((r=le)===null||r===void 0?void 0:r.performance)&&((n=le)===null||n===void 0?void 0:n.document)&&(le.performance.mark&&le.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return t.prototype.addPerformanceEntries=function(e){var r=this;if(!(!le||!le.performance||!le.performance.getEntries||!Z.browserPerformanceTimeOrigin)){Z.logger.log("[Tracing] Adding & adjusting spans using Performance API");var n=te.msToSec(Z.browserPerformanceTimeOrigin),i;if(le.document&&le.document.scripts){for(var o=0;o<le.document.scripts.length;o++)if(le.document.scripts[o].dataset.entry==="true"){i=le.document.scripts[o].src;break}}var a,s,u,c;if(le.performance.getEntries().slice(this._performanceCursor).forEach(function(d){var h=te.msToSec(d.startTime),y=te.msToSec(d.duration);if(!(e.op==="navigation"&&n+h<e.startTimestamp))switch(d.entryType){case"navigation":{Jm(e,d,n),u=n+te.msToSec(d.responseStart),c=n+te.msToSec(d.requestStart);break}case"mark":case"paint":case"measure":{var S=Xm(e,d,h,y,n);s===void 0&&d.name==="sentry-tracing-init"&&(s=S);var T=$m.getVisibilityWatcher(),C=d.startTime<T.firstHiddenTime;d.name==="first-paint"&&C&&(Z.logger.log("[Measurements] Adding FP"),r._measurements.fp={value:d.startTime},r._measurements["mark.fp"]={value:S}),d.name==="first-contentful-paint"&&C&&(Z.logger.log("[Measurements] Adding FCP"),r._measurements.fcp={value:d.startTime},r._measurements["mark.fcp"]={value:S});break}case"resource":{var q=d.name.replace(le.location.origin,""),U=Bf(e,d,q,h,y,n);a===void 0&&(i||"").indexOf(q)>-1&&(a=U);break}default:}}),a!==void 0&&s!==void 0&&ht(e,{description:"evaluation",endTimestamp:s,op:"script",startTimestamp:a}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),e.op==="pageload"){var l=te.msToSec(Z.browserPerformanceTimeOrigin);typeof u=="number"&&(Z.logger.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:(u-e.startTimestamp)*1e3},typeof c=="number"&&c<=u&&(this._measurements["ttfb.requestTime"]={value:(u-c)*1e3})),["fcp","fp","lcp"].forEach(function(d){if(!(!r._measurements[d]||l>=e.startTimestamp)){var h=r._measurements[d].value,y=l+te.msToSec(h),S=Math.abs((y-e.startTimestamp)*1e3),T=S-h;Z.logger.log("[Measurements] Normalized "+d+" from "+h+" to "+S+" ("+T+")"),r._measurements[d].value=S}}),this._measurements["mark.fid"]&&this._measurements.fid&&ht(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+te.msToSec(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),this._tagMetricInfo(e),e.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._tagMetricInfo=function(e){this._lcpEntry&&(Z.logger.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&e.setTag("lcp.element",Z.htmlTreeAsString(this._lcpEntry.element)),this._lcpEntry.id&&e.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&e.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),e.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&this._clsEntry.sources&&(Z.logger.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.forEach(function(r,n){return e.setTag("cls.source."+(n+1),Z.htmlTreeAsString(r.node))}))},t.prototype._trackCLS=function(){var e=this;Vm.getCLS(function(r){var n=r.entries.pop();!n||(Z.logger.log("[Measurements] Adding CLS"),e._measurements.cls={value:r.value},e._clsEntry=n)})},t.prototype._trackNavigator=function(e){var r=le.navigator;if(!!r){var n=r.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Un(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),Un(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),Un(r.deviceMemory)&&e.setTag("deviceMemory",String(r.deviceMemory)),Un(r.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(r.hardwareConcurrency))}},t.prototype._trackLCP=function(){var e=this;Ym.getLCP(function(r){var n=r.entries.pop();if(!!n){var i=te.msToSec(Z.browserPerformanceTimeOrigin),o=te.msToSec(n.startTime);Z.logger.log("[Measurements] Adding LCP"),e._measurements.lcp={value:r.value},e._measurements["mark.lcp"]={value:i+o},e._lcpEntry=n}},this._reportAllChanges)},t.prototype._trackFID=function(){var e=this;Wm.getFID(function(r){var n=r.entries.pop();if(!!n){var i=te.msToSec(Z.browserPerformanceTimeOrigin),o=te.msToSec(n.startTime);Z.logger.log("[Measurements] Adding FID"),e._measurements.fid={value:r.value},e._measurements["mark.fid"]={value:i+o}}})},t}();xr.MetricsInstrumentation=Km;function Jm(t,e,r){pt({transaction:t,entry:e,event:"unloadEvent",timeOrigin:r}),pt({transaction:t,entry:e,event:"redirect",timeOrigin:r}),pt({transaction:t,entry:e,event:"domContentLoadedEvent",timeOrigin:r}),pt({transaction:t,entry:e,event:"loadEvent",timeOrigin:r}),pt({transaction:t,entry:e,event:"connect",timeOrigin:r}),pt({transaction:t,entry:e,event:"secureConnection",timeOrigin:r,eventEnd:"connectEnd",description:"TLS/SSL"}),pt({transaction:t,entry:e,event:"fetch",timeOrigin:r,eventEnd:"domainLookupStart",description:"cache"}),pt({transaction:t,entry:e,event:"domainLookup",timeOrigin:r,description:"DNS"}),Qm(t,e,r)}function Xm(t,e,r,n,i){var o=i+r,a=o+n;return ht(t,{description:e.name,endTimestamp:a,op:e.entryType,startTimestamp:o}),o}function Bf(t,e,r,n,i,o){if(!(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")){var a={};"transferSize"in e&&(a["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(a["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(a["Decoded Body Size"]=e.decodedBodySize);var s=o+n,u=s+i;return ht(t,{description:r,endTimestamp:u,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:s,data:a}),u}}xr.addResourceSpans=Bf;function pt(t){var e=t.transaction,r=t.entry,n=t.event,i=t.timeOrigin,o=t.eventEnd,a=t.description,s=o?r[o]:r[n+"End"],u=r[n+"Start"];!u||!s||ht(e,{op:"browser",description:a??n,startTimestamp:i+te.msToSec(u),endTimestamp:i+te.msToSec(s)})}function Qm(t,e,r){ht(t,{op:"browser",description:"request",startTimestamp:r+te.msToSec(e.requestStart),endTimestamp:r+te.msToSec(e.responseEnd)}),ht(t,{op:"browser",description:"response",startTimestamp:r+te.msToSec(e.responseStart),endTimestamp:r+te.msToSec(e.responseEnd)})}function ht(t,e){var r=e.startTimestamp,n=Uf.__rest(e,["startTimestamp"]);return r&&t.startTimestamp>r&&(t.startTimestamp=r),t.startChild(Uf.__assign({startTimestamp:r},n))}xr._startChild=ht;function Un(t){return typeof t=="number"&&isFinite(t)}});var Oa=b(Je=>{Object.defineProperty(Je,"__esModule",{value:!0});var Ke=N(),Ir=P(),Zm=ft(),Bn=lt();Je.DEFAULT_TRACING_ORIGINS=["localhost",/^\//];Je.defaultRequestInstrumentationOptions={traceFetch:!0,traceXHR:!0,tracingOrigins:Je.DEFAULT_TRACING_ORIGINS};function ey(t){var e=Ke.__assign(Ke.__assign({},Je.defaultRequestInstrumentationOptions),t),r=e.traceFetch,n=e.traceXHR,i=e.tracingOrigins,o=e.shouldCreateSpanForRequest,a={},s=function(l){if(a[l])return a[l];var d=i;return a[l]=d.some(function(h){return Ir.isMatchingPattern(l,h)})&&!Ir.isMatchingPattern(l,"sentry_key"),a[l]},u=s;typeof o=="function"&&(u=function(l){return s(l)&&o(l)});var c={};r&&Ir.addInstrumentationHandler({callback:function(l){zf(l,u,c)},type:"fetch"}),n&&Ir.addInstrumentationHandler({callback:function(l){Vf(l,u,c)},type:"xhr"})}Je.instrumentOutgoingRequests=ey;function zf(t,e,r){if(!(!Bn.hasTracingEnabled()||!(t.fetchData&&e(t.fetchData.url)))){if(t.endTimestamp&&t.fetchData.__span){var n=r[t.fetchData.__span];n&&(t.response?n.setHttpStatus(t.response.status):t.error&&n.setStatus(Zm.SpanStatus.InternalError),n.finish(),delete r[t.fetchData.__span]);return}var i=Bn.getActiveTransaction();if(i){var n=i.startChild({data:Ke.__assign(Ke.__assign({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=n.spanId,r[n.spanId]=n;var o=t.args[0]=t.args[0],a=t.args[1]=t.args[1]||{},s=a.headers;Ir.isInstanceOf(o,Request)&&(s=o.headers),s?typeof s.append=="function"?s.append("sentry-trace",n.toTraceparent()):Array.isArray(s)?s=Ke.__spread(s,[["sentry-trace",n.toTraceparent()]]):s=Ke.__assign(Ke.__assign({},s),{"sentry-trace":n.toTraceparent()}):s={"sentry-trace":n.toTraceparent()},a.headers=s}}}Je.fetchCallback=zf;function Vf(t,e,r){var n,i;if(!(!Bn.hasTracingEnabled()||((n=t.xhr)===null||n===void 0?void 0:n.__sentry_own_request__)||!(((i=t.xhr)===null||i===void 0?void 0:i.__sentry_xhr__)&&e(t.xhr.__sentry_xhr__.url)))){var o=t.xhr.__sentry_xhr__;if(t.endTimestamp&&t.xhr.__sentry_xhr_span_id__){var a=r[t.xhr.__sentry_xhr_span_id__];a&&(a.setHttpStatus(o.status_code),a.finish(),delete r[t.xhr.__sentry_xhr_span_id__]);return}var s=Bn.getActiveTransaction();if(s){var a=s.startChild({data:Ke.__assign(Ke.__assign({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=a.spanId,r[t.xhr.__sentry_xhr_span_id__]=a,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",a.toTraceparent())}catch{}}}}Je.xhrCallback=Vf});var Wf=b(wa=>{Object.defineProperty(wa,"__esModule",{value:!0});var Gn=P(),Cr=Gn.getGlobalObject();function ty(t,e,r){if(e===void 0&&(e=!0),r===void 0&&(r=!0),!Cr||!Cr.location){Gn.logger.warn("Could not initialize routing instrumentation due to invalid location");return}var n=Cr.location.href,i;e&&(i=t({name:Cr.location.pathname,op:"pageload"})),r&&Gn.addInstrumentationHandler({callback:function(o){var a=o.to,s=o.from;if(s===void 0&&n&&n.indexOf(a)!==-1){n=void 0;return}s!==a&&(n=void 0,i&&(Gn.logger.log("[Tracing] Finishing current transaction with op: "+i.op),i.finish()),i=t({name:Cr.location.pathname,op:"navigation"}))},type:"history"})}wa.instrumentRoutingWithDefaults=ty});var Jf=b(It=>{Object.defineProperty(It,"__esModule",{value:!0});var Xe=N(),xt=P(),ry=Nn(),ny=Pn(),iy=ft(),Yf=lt(),oy=kf(),ay=Gf(),zn=Oa(),sy=Wf();It.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS=600;var uy=Xe.__assign({idleTimeout:ny.DEFAULT_IDLE_TIMEOUT,markBackgroundTransactions:!0,maxTransactionDuration:It.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS,routingInstrumentation:sy.instrumentRoutingWithDefaults,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},zn.defaultRequestInstrumentationOptions),cy=function(){function t(e){this.name=t.id,this._emitOptionsWarning=!1,this._configuredIdleTimeout=void 0;var r=zn.defaultRequestInstrumentationOptions.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&e.tracingOrigins.length!==0?r=e.tracingOrigins:this._emitOptionsWarning=!0),this.options=Xe.__assign(Xe.__assign(Xe.__assign({},uy),e),{tracingOrigins:r});var n=this.options._metricOptions;this._metrics=new ay.MetricsInstrumentation(n&&n._reportAllChanges)}return t.prototype.setupOnce=function(e,r){var n=this;this._getCurrentHub=r,this._emitOptionsWarning&&(xt.logger.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),xt.logger.warn("[Tracing] We added a reasonable default for you: "+zn.defaultRequestInstrumentationOptions.tracingOrigins));var i=this.options,o=i.routingInstrumentation,a=i.startTransactionOnLocationChange,s=i.startTransactionOnPageLoad,u=i.markBackgroundTransactions,c=i.traceFetch,l=i.traceXHR,d=i.tracingOrigins,h=i.shouldCreateSpanForRequest;o(function(y){return n._createRouteTransaction(y)},s,a),u&&oy.registerBackgroundTabDetection(),zn.instrumentOutgoingRequests({traceFetch:c,traceXHR:l,tracingOrigins:d,shouldCreateSpanForRequest:h})},t.prototype._createRouteTransaction=function(e){var r=this;if(!this._getCurrentHub){xt.logger.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.");return}var n=this.options,i=n.beforeNavigate,o=n.idleTimeout,a=n.maxTransactionDuration,s=e.op==="pageload"?$f():void 0,u=Xe.__assign(Xe.__assign(Xe.__assign({},e),s),{trimEnd:!0}),c=typeof i=="function"?i(u):u,l=c===void 0?Xe.__assign(Xe.__assign({},u),{sampled:!1}):c;l.sampled===!1&&xt.logger.log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate."),xt.logger.log("[Tracing] Starting "+l.op+" transaction on scope");var d=this._getCurrentHub(),h=xt.getGlobalObject().location,y=ry.startIdleTransaction(d,l,o,!0,{location:h});return y.registerBeforeFinishCallback(function(S,T){r._metrics.addPerformanceEntries(S),fy(Yf.secToMs(a),S,T)}),y.setTag("idleTimeout",this._configuredIdleTimeout),y},t.id="BrowserTracing",t}();It.BrowserTracing=cy;function $f(){var t=Kf("sentry-trace");if(t)return Yf.extractTraceparentData(t)}It.getHeaderContext=$f;function Kf(t){var e=xt.getGlobalObject().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null}It.getMetaContent=Kf;function fy(t,e,r){var n=r-e.startTimestamp,i=r&&(n>t||n<0);i&&(e.setStatus(iy.SpanStatus.DeadlineExceeded),e.setTag("maxTransactionDurationExceeded","true"))}});var Vn=b(Rr=>{Object.defineProperty(Rr,"__esModule",{value:!0});var ly=Jf();Rr.BrowserTracing=ly.BrowserTracing;var Xf=Oa();Rr.instrumentOutgoingRequests=Xf.instrumentOutgoingRequests;Rr.defaultRequestInstrumentationOptions=Xf.defaultRequestInstrumentationOptions});var Qf=b(Ct=>{Object.defineProperty(Ct,"__esModule",{value:!0});var dy=Rf();Ct.Express=dy.Express;var py=Af();Ct.Postgres=py.Postgres;var hy=Pf();Ct.Mysql=hy.Mysql;var _y=qf();Ct.Mongo=_y.Mongo;var vy=Vn();Ct.BrowserTracing=vy.BrowserTracing});var tl=b(ae=>{Object.defineProperty(ae,"__esModule",{value:!0});var Zf=Nn();ae.addExtensionMethods=Zf.addExtensionMethods;var gy=Qf();ae.Integrations=gy;var my=Vn();ae.BrowserTracing=my.BrowserTracing;var yy=Cn();ae.Span=yy.Span;var by=Rn();ae.Transaction=by.Transaction;var el=Vn();ae.registerRequestInstrumentation=el.instrumentOutgoingRequests;ae.defaultRequestInstrumentationOptions=el.defaultRequestInstrumentationOptions;var Sy=ft();ae.SpanStatus=Sy.SpanStatus;var Ey=Pn();ae.IdleTransaction=Ey.IdleTransaction;var Ty=Nn();ae.startIdleTransaction=Ty.startIdleTransaction;Zf.addExtensionMethods();var Ar=lt();ae.extractTraceparentData=Ar.extractTraceparentData;ae.getActiveTransaction=Ar.getActiveTransaction;ae.hasTracingEnabled=Ar.hasTracingEnabled;ae.stripUrlQueryAndFragment=Ar.stripUrlQueryAndFragment;ae.TRACEPARENT_REGEXP=Ar.TRACEPARENT_REGEXP});var rl=b(xa=>{"use strict";xa.parse=Iy;xa.serialize=Cy;var Oy=decodeURIComponent,wy=encodeURIComponent,xy=/; */,Wn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Iy(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var r={},n=e||{},i=t.split(xy),o=n.decode||Oy,a=0;a<i.length;a++){var s=i[a],u=s.indexOf("=");if(!(u<0)){var c=s.substr(0,u).trim(),l=s.substr(++u,s.length).trim();l[0]=='"'&&(l=l.slice(1,-1)),r[c]==null&&(r[c]=Ry(l,o))}}return r}function Cy(t,e,r){var n=r||{},i=n.encode||wy;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Wn.test(t))throw new TypeError("argument name is invalid");var o=i(e);if(o&&!Wn.test(o))throw new TypeError("argument val is invalid");var a=t+"="+o;if(n.maxAge!=null){var s=n.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(n.domain){if(!Wn.test(n.domain))throw new TypeError("option domain is invalid");a+="; Domain="+n.domain}if(n.path){if(!Wn.test(n.path))throw new TypeError("option path is invalid");a+="; Path="+n.path}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a}function Ry(t,e){try{return e(t)}catch{return t}}});var ol=b(At=>{Object.defineProperty(At,"__esModule",{value:!0});var He=N(),Rt=ie(),Ay=tl(),nl=ne(),Zt=P(),Py=rl(),qy=require("domain"),Ny=require("os"),My=require("url"),Pr=Jo();function ky(){return function(e,r,n){var i;e.headers&&Zt.isString(e.headers["sentry-trace"])&&(i=Ay.extractTraceparentData(e.headers["sentry-trace"]));var o=Rt.startTransaction(He.__assign({name:Yn(e,{path:!0,method:!0}),op:"http.server"},i),{request:$n(e)});Rt.getCurrentHub().configureScope(function(a){a.setSpan(o)}),r.__sentry_transaction=o,r.once("finish",function(){setImmediate(function(){Dy(o,e),o.setHttpStatus(r.statusCode),o.finish()})}),n()}}At.tracingHandler=ky;function Dy(t,e){!t||(t.name=Yn(e,{path:!0,method:!0}),t.setData("url",e.originalUrl),t.setData("baseUrl",e.baseUrl),t.setData("query",e.query))}function Yn(t,e){e===void 0&&(e={});var r,n=(r=t.method)===null||r===void 0?void 0:r.toUpperCase(),i="";t.route?i=""+(t.baseUrl||"")+t.route.path:(t.originalUrl||t.url)&&(i=Zt.stripUrlQueryAndFragment(t.originalUrl||t.url||""));var o="";return e.method&&n&&(o+=n),e.method&&e.path&&(o+=" "),e.path&&i&&(o+=i),o}function Fy(t,e){var r;switch(e){case"path":return Yn(t,{path:!0});case"handler":return((r=t.route)===null||r===void 0?void 0:r.stack[0].name)||"<anonymous>";case"methodPath":default:return Yn(t,{path:!0,method:!0})}}var jy=["id","username","email"];function Hy(t,e){var r={},n=Array.isArray(e)?e:jy;return n.forEach(function(i){t&&i in t&&(r[i]=t[i])}),r}var Ly=["cookies","data","headers","method","query_string","url"];function $n(t,e){e===void 0&&(e=Ly);var r={},n=t.headers||t.header||{},i=t.method,o=t.hostname||t.host||n.host||"<no host>",a=t.protocol==="https"||t.secure||(t.socket||{}).encrypted?"https":"http",s=t.originalUrl||t.url||"",u=a+"://"+o+s;return e.forEach(function(c){switch(c){case"headers":r.headers=n;break;case"method":r.method=i;break;case"url":r.url=u;break;case"cookies":r.cookies=t.cookies||Py.parse(n.cookie||"");break;case"query_string":r.query_string=t.query||My.parse(s||"",!1).query;break;case"data":if(i==="GET"||i==="HEAD")break;t.body!==void 0&&(r.data=Zt.isString(t.body)?t.body:JSON.stringify(Zt.normalize(t.body)));break;default:({}).hasOwnProperty.call(t,c)&&(r[c]=t[c])}}),r}At.extractRequestData=$n;function il(t,e,r){if(r=He.__assign({ip:!1,request:!0,serverName:!0,transaction:!0,user:!0,version:!0},r),r.version&&(t.contexts=He.__assign(He.__assign({},t.contexts),{runtime:{name:"node",version:global.process.version}})),r.request){var n=Array.isArray(r.request)?$n(e,r.request):$n(e);t.request=He.__assign(He.__assign({},t.request),n)}if(r.serverName&&!t.server_name&&(t.server_name=global.process.env.SENTRY_NAME||Ny.hostname()),r.user){var i=e.user&&Zt.isPlainObject(e.user)?Hy(e.user,r.user):{};Object.keys(i)&&(t.user=He.__assign(He.__assign({},t.user),i))}if(r.ip){var o=e.ip||e.connection&&e.connection.remoteAddress;o&&(t.user=He.__assign(He.__assign({},t.user),{ip_address:o}))}return r.transaction&&!t.transaction&&(t.transaction=Fy(e,r.transaction)),t}At.parseRequest=il;function Uy(t){var e=Rt.getCurrentHub(),r=e.getClient();if(r&&Pr.isAutoSessionTrackingEnabled(r)){r.initSessionFlusher();var n=e.getScope();n&&n.getSession()&&n.setSession()}return function(o,a,s){if(t&&t.flushTimeout&&t.flushTimeout>0){var u=a.end;a.end=function(l,d,h){var y=this;Pr.flush(t.flushTimeout).then(function(){u.call(y,l,d,h)}).then(null,function(S){Zt.logger.error(S)})}}var c=qy.create();c.add(o),c.add(a),c.on("error",s),c.run(function(){var l=Rt.getCurrentHub();l.configureScope(function(d){d.addEventProcessor(function(S){return il(S,o,t)});var h=l.getClient();if(Pr.isAutoSessionTrackingEnabled(h)){var y=l.getScope();y&&y.setRequestSession({status:nl.RequestSessionStatus.Ok})}}),a.once("finish",function(){var d=l.getClient();Pr.isAutoSessionTrackingEnabled(d)&&setImmediate(function(){d&&d._captureRequestSession&&d._captureRequestSession()})}),s()})}}At.requestHandler=Uy;function By(t){var e=t.status||t.statusCode||t.status_code||t.output&&t.output.statusCode;return e?parseInt(e,10):500}function Gy(t){var e=By(t);return e>=500}function zy(t){return function(r,n,i,o){var a=t&&t.shouldHandleError||Gy;if(a(r)){Rt.withScope(function(s){var u=i.__sentry_transaction;u&&s.getSpan()===void 0&&s.setSpan(u);var c=Rt.getCurrentHub().getClient();if(c&&Pr.isAutoSessionTrackingEnabled(c)){var l=c._sessionFlusher!==void 0;if(l){var d=s.getRequestSession();d&&d.status!==void 0&&(d.status=nl.RequestSessionStatus.Crashed)}}var h=Rt.captureException(r);i.sentry=h,o(r)});return}o(r)}}At.errorHandler=zy});var ul=b(H=>{Object.defineProperty(H,"__esModule",{value:!0});var al=N(),sl=ne();H.Severity=sl.Severity;H.Status=sl.Status;var X=ie();H.addGlobalEventProcessor=X.addGlobalEventProcessor;H.addBreadcrumb=X.addBreadcrumb;H.captureException=X.captureException;H.captureEvent=X.captureEvent;H.captureMessage=X.captureMessage;H.configureScope=X.configureScope;H.getHubFromCarrier=X.getHubFromCarrier;H.getCurrentHub=X.getCurrentHub;H.Hub=X.Hub;H.makeMain=X.makeMain;H.Scope=X.Scope;H.startTransaction=X.startTransaction;H.SDK_VERSION=X.SDK_VERSION;H.setContext=X.setContext;H.setExtra=X.setExtra;H.setExtras=X.setExtras;H.setTag=X.setTag;H.setTags=X.setTags;H.setUser=X.setUser;H.withScope=X.withScope;var Vy=Po();H.NodeBackend=Vy.NodeBackend;var Wy=Mo();H.NodeClient=Wy.NodeClient;var er=Jo();H.defaultIntegrations=er.defaultIntegrations;H.init=er.init;H.lastEventId=er.lastEventId;H.flush=er.flush;H.close=er.close;H.getSentryRelease=er.getSentryRelease;var Yy=hf();H.deepReadDirSync=Yy.deepReadDirSync;var $y=po();H.SDK_NAME=$y.SDK_NAME;var Ky=ie(),Jy=ge(),Xy=require("domain"),Qy=ol();H.Handlers=Qy;var Zy=$o(),eb=Ro();H.Transports=eb;var tb=al.__assign(al.__assign({},Ky.Integrations),Zy);H.Integrations=tb;var qr=Jy.getMainCarrier();qr.__SENTRY__&&(qr.__SENTRY__.extensions=qr.__SENTRY__.extensions||{},qr.__SENTRY__.extensions.domain=qr.__SENTRY__.extensions.domain||Xy)});var fl=b(Ca=>{Object.defineProperty(Ca,"__esModule",{value:!0});var cl=N(),Ia=P(),rb=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,nb=function(){function t(e){if(e===void 0&&(e={}),this.name=t.id,Ia.logger.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=e.angular||Ia.getGlobalObject().angular,!this._angular){Ia.logger.error("AngularIntegration is missing an Angular instance");return}this._module=this._angular.module(t.moduleName,[])}return t.prototype.setupOnce=function(e,r){var n=this;!this._module||(this._getCurrentHub=r,this._module.config(["$provide",function(i){i.decorator("$exceptionHandler",["$delegate",n._$exceptionHandlerDecorator.bind(n)])}]))},t.prototype._$exceptionHandlerDecorator=function(e){var r=this;return function(n,i){var o=r._getCurrentHub&&r._getCurrentHub();o&&o.getIntegration(t)&&o.withScope(function(a){i&&a.setExtra("cause",i),a.addEventProcessor(function(s){var u=s.exception&&s.exception.values&&s.exception.values[0];if(u){var c=rb.exec(u.value||"");c&&(u.type=c[1],u.value=c[2],s.message=u.type+": "+u.value,s.extra=cl.__assign(cl.__assign({},s.extra),{angularDocs:c[3].substr(0,250)}))}return s}),o.captureException(n)}),e(n,i)}},t.id="AngularJS",t.moduleName="ngSentry",t}();Ca.Angular=nb});var ll=b(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});var ib=ne(),Kn=P(),Jn=Kn.getGlobalObject(),ob=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return t.prototype.setupOnce=function(e,r){"console"in Jn&&this._levels.forEach(function(n){n in Jn.console&&Kn.fill(Jn.console,n,function(i){return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=r();s.getIntegration(t)&&s.withScope(function(u){u.setLevel(ib.Severity.fromString(n)),u.setExtra("arguments",o),u.addEventProcessor(function(l){return l.logger="console",l});var c=Kn.safeJoin(o," ");n==="assert"?o[0]===!1&&(c="Assertion failed: "+(Kn.safeJoin(o.slice(1)," ")||"console.assert"),u.setExtra("arguments",o.slice(1)),s.captureMessage(c)):n==="error"&&o[0]instanceof Error?s.captureException(o[0]):s.captureMessage(c)}),i&&Function.prototype.apply.call(i,Jn.console,o)}})})},t.id="CaptureConsole",t}();Ra.CaptureConsole=ob});var dl=b(Aa=>{Object.defineProperty(Aa,"__esModule",{value:!0});var ab=N(),sb=P(),ub=function(){function t(e){this.name=t.id,this._options=ab.__assign({debugger:!1,stringify:!1},e)}return t.prototype.setupOnce=function(e,r){e(function(n,i){var o=r().getIntegration(t);if(o){if(o._options.debugger)debugger;sb.consoleSandbox(function(){o._options.stringify?(console.log(JSON.stringify(n,null,2)),i&&console.log(JSON.stringify(i,null,2))):(console.log(n),i&&console.log(i))})}return n})},t.id="Debug",t}();Aa.Debug=ub});var pl=b(Pa=>{Object.defineProperty(Pa,"__esModule",{value:!0});var cb=P(),fb=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){e(function(n){var i=r().getIntegration(t);if(i){try{if(i._shouldDropEvent(n,i._previousEvent))return cb.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return i._previousEvent=n}return i._previousEvent=n}return n})},t.prototype._shouldDropEvent=function(e,r){return r?!!(this._isSameMessageEvent(e,r)||this._isSameExceptionEvent(e,r)):!1},t.prototype._isSameMessageEvent=function(e,r){var n=e.message,i=r.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!this._isSameFingerprint(e,r)||!this._isSameStacktrace(e,r))},t.prototype._getFramesFromEvent=function(e){var r=e.exception;if(r)try{return r.values[0].stacktrace.frames}catch{return}else if(e.stacktrace)return e.stacktrace.frames},t.prototype._isSameStacktrace=function(e,r){var n=this._getFramesFromEvent(e),i=this._getFramesFromEvent(r);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(var o=0;o<i.length;o++){var a=i[o],s=n[o];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0},t.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},t.prototype._isSameExceptionEvent=function(e,r){var n=this._getExceptionFromEvent(r),i=this._getExceptionFromEvent(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!this._isSameFingerprint(e,r)||!this._isSameStacktrace(e,r))},t.prototype._isSameFingerprint=function(e,r){var n=e.fingerprint,i=r.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}},t.id="Dedupe",t}();Pa.Dedupe=fb});var hl=b(Na=>{Object.defineProperty(Na,"__esModule",{value:!0});var qa=P(),lb=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._Ember=e.Ember||qa.getGlobalObject().Ember}return t.prototype.setupOnce=function(e,r){var n=this;if(!this._Ember){qa.logger.error("EmberIntegration is missing an Ember instance");return}var i=this._Ember.onerror;this._Ember.onerror=function(o){if(r().getIntegration(t)&&r().captureException(o,{originalException:o}),typeof i=="function")i.call(n._Ember,o);else if(n._Ember.testing)throw o},this._Ember.RSVP.on("error",function(o){r().getIntegration(t)&&r().withScope(function(a){qa.isInstanceOf(o,Error)?(a.setExtra("context","Unhandled Promise error detected"),r().captureException(o,{originalException:o})):(a.setExtra("reason",o),r().captureMessage("Unhandled Promise error detected"))})})},t.id="Ember",t}();Na.Ember=lb});var _l=b(Ma=>{Object.defineProperty(Ma,"__esModule",{value:!0});var _t=N(),tr=P(),db=function(){function t(e){e===void 0&&(e={depth:3}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,r){e(function(n,i){var o=r().getIntegration(t);return o?o.enhanceEventWithErrorData(n,i):n})},t.prototype.enhanceEventWithErrorData=function(e,r){var n;if(!r||!r.originalException||!tr.isError(r.originalException))return e;var i=r.originalException.name||r.originalException.constructor.name,o=this._extractErrorData(r.originalException);if(o){var a=_t.__assign({},e.contexts),s=tr.normalize(o,this._options.depth);return tr.isPlainObject(s)&&(a=_t.__assign(_t.__assign({},e.contexts),(n={},n[i]=_t.__assign({},s),n))),_t.__assign(_t.__assign({},e),{contexts:a})}return e},t.prototype._extractErrorData=function(e){var r,n,i,o;try{var a=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};try{for(var u=_t.__values(Object.keys(e)),c=u.next();!c.done;c=u.next()){var l=c.value;if(a.indexOf(l)===-1){var d=e[l];s[l]=tr.isError(d)?d.toString():d}}}catch(T){r={error:T}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}if(typeof e.toJSON=="function"){var h=e.toJSON();try{for(var y=_t.__values(Object.keys(h)),S=y.next();!S.done;S=y.next()){var l=S.value,d=h[l];s[l]=tr.isError(d)?d.toString():d}}catch(T){i={error:T}}finally{try{S&&!S.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}return s}catch(T){tr.logger.error("Unable to extract extra data from the Error object:",T)}return null},t.id="ExtraErrorData",t}();Ma.ExtraErrorData=db});var gl=b((vl,ka)=>{(function(t){if(typeof vl=="object"&&typeof ka!="undefined")ka.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=t()}})(function(){var t,e,r;return function n(i,o,a){function s(l,d){if(!o[l]){if(!i[l]){var h=typeof require=="function"&&require;if(!d&&h)return h(l,!0);if(u)return u(l,!0);var y=new Error("Cannot find module '"+l+"'");throw y.code="MODULE_NOT_FOUND",y}var S=o[l]={exports:{}};i[l][0].call(S.exports,function(T){var C=i[l][1][T];return s(C||T)},S,S.exports,n,i,o,a)}return o[l].exports}for(var u=typeof require=="function"&&require,c=0;c<a.length;c++)s(a[c]);return s}({1:[function(n,i,o){(function(a){"use strict";var s=a.MutationObserver||a.WebKitMutationObserver,u;if(s){var c=0,l=new s(T),d=a.document.createTextNode("");l.observe(d,{characterData:!0}),u=function(){d.data=c=++c%2}}else if(!a.setImmediate&&typeof a.MessageChannel!="undefined"){var h=new a.MessageChannel;h.port1.onmessage=T,u=function(){h.port2.postMessage(0)}}else"document"in a&&"onreadystatechange"in a.document.createElement("script")?u=function(){var q=a.document.createElement("script");q.onreadystatechange=function(){T(),q.onreadystatechange=null,q.parentNode.removeChild(q),q=null},a.document.documentElement.appendChild(q)}:u=function(){setTimeout(T,0)};var y,S=[];function T(){y=!0;for(var q,U,k=S.length;k;){for(U=S,S=[],q=-1;++q<k;)U[q]();k=S.length}y=!1}i.exports=C;function C(q){S.push(q)===1&&!y&&u()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,i,o){"use strict";var a=n(1);function s(){}var u={},c=["REJECTED"],l=["FULFILLED"],d=["PENDING"];i.exports=h;function h(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,R!==s&&C(this,R)}h.prototype.catch=function(R){return this.then(null,R)},h.prototype.then=function(R,B){if(typeof R!="function"&&this.state===l||typeof B!="function"&&this.state===c)return this;var D=new this.constructor(s);if(this.state!==d){var V=this.state===l?R:B;S(D,V,this.outcome)}else this.queue.push(new y(D,R,B));return D};function y(R,B,D){this.promise=R,typeof B=="function"&&(this.onFulfilled=B,this.callFulfilled=this.otherCallFulfilled),typeof D=="function"&&(this.onRejected=D,this.callRejected=this.otherCallRejected)}y.prototype.callFulfilled=function(R){u.resolve(this.promise,R)},y.prototype.otherCallFulfilled=function(R){S(this.promise,this.onFulfilled,R)},y.prototype.callRejected=function(R){u.reject(this.promise,R)},y.prototype.otherCallRejected=function(R){S(this.promise,this.onRejected,R)};function S(R,B,D){a(function(){var V;try{V=B(D)}catch(re){return u.reject(R,re)}V===R?u.reject(R,new TypeError("Cannot resolve promise with itself")):u.resolve(R,V)})}u.resolve=function(R,B){var D=q(T,B);if(D.status==="error")return u.reject(R,D.value);var V=D.value;if(V)C(R,V);else{R.state=l,R.outcome=B;for(var re=-1,he=R.queue.length;++re<he;)R.queue[re].callFulfilled(B)}return R},u.reject=function(R,B){R.state=c,R.outcome=B;for(var D=-1,V=R.queue.length;++D<V;)R.queue[D].callRejected(B);return R};function T(R){var B=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof B=="function")return function(){B.apply(R,arguments)}}function C(R,B){var D=!1;function V(Te){D||(D=!0,u.reject(R,Te))}function re(Te){D||(D=!0,u.resolve(R,Te))}function he(){B(re,V)}var Ee=q(he);Ee.status==="error"&&V(Ee.value)}function q(R,B){var D={};try{D.value=R(B),D.status="success"}catch(V){D.status="error",D.value=V}return D}h.resolve=U;function U(R){return R instanceof this?R:u.resolve(new this(s),R)}h.reject=k;function k(R){var B=new this(s);return u.reject(B,R)}h.all=Se;function Se(R){var B=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=R.length,V=!1;if(!D)return this.resolve([]);for(var re=new Array(D),he=0,Ee=-1,Te=new this(s);++Ee<D;)Ue(R[Ee],Ee);return Te;function Ue(nr,Nr){B.resolve(nr).then(ei,function(Pt){V||(V=!0,u.reject(Te,Pt))});function ei(Pt){re[Nr]=Pt,++he===D&&!V&&(V=!0,u.resolve(Te,re))}}}h.race=et;function et(R){var B=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=R.length,V=!1;if(!D)return this.resolve([]);for(var re=-1,he=new this(s);++re<D;)Ee(R[re]);return he;function Ee(Te){B.resolve(Te).then(function(Ue){V||(V=!0,u.resolve(he,Ue))},function(Ue){V||(V=!0,u.reject(he,Ue))})}}},{"1":1}],3:[function(n,i,o){(function(a){"use strict";typeof a.Promise!="function"&&(a.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"2":2}],4:[function(n,i,o){"use strict";var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};function s(f,_){if(!(f instanceof _))throw new TypeError("Cannot call a class as a function")}function u(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch{return}}var c=u();function l(){try{if(!c||!c.open)return!1;var f=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),_=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!f||_)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch{return!1}}function d(f,_){f=f||[],_=_||{};try{return new Blob(f,_)}catch(v){if(v.name!=="TypeError")throw v;for(var p=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,g=new p,m=0;m<f.length;m+=1)g.append(f[m]);return g.getBlob(_.type)}}typeof Promise=="undefined"&&n(3);var h=Promise;function y(f,_){_&&f.then(function(p){_(null,p)},function(p){_(p)})}function S(f,_,p){typeof _=="function"&&f.then(_),typeof p=="function"&&f.catch(p)}function T(f){return typeof f!="string"&&(console.warn(f+" used as a key, but it is not a string."),f=String(f)),f}function C(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var q="local-forage-detect-blob-support",U=void 0,k={},Se=Object.prototype.toString,et="readonly",R="readwrite";function B(f){for(var _=f.length,p=new ArrayBuffer(_),g=new Uint8Array(p),m=0;m<_;m++)g[m]=f.charCodeAt(m);return p}function D(f){return new h(function(_){var p=f.transaction(q,R),g=d([""]);p.objectStore(q).put(g,"key"),p.onabort=function(m){m.preventDefault(),m.stopPropagation(),_(!1)},p.oncomplete=function(){var m=navigator.userAgent.match(/Chrome\/(\d+)/),v=navigator.userAgent.match(/Edge\//);_(v||!m||parseInt(m[1],10)>=43)}}).catch(function(){return!1})}function V(f){return typeof U=="boolean"?h.resolve(U):D(f).then(function(_){return U=_,U})}function re(f){var _=k[f.name],p={};p.promise=new h(function(g,m){p.resolve=g,p.reject=m}),_.deferredOperations.push(p),_.dbReady?_.dbReady=_.dbReady.then(function(){return p.promise}):_.dbReady=p.promise}function he(f){var _=k[f.name],p=_.deferredOperations.pop();if(p)return p.resolve(),p.promise}function Ee(f,_){var p=k[f.name],g=p.deferredOperations.pop();if(g)return g.reject(_),g.promise}function Te(f,_){return new h(function(p,g){if(k[f.name]=k[f.name]||Wa(),f.db)if(_)re(f),f.db.close();else return p(f.db);var m=[f.name];_&&m.push(f.version);var v=c.open.apply(c,m);_&&(v.onupgradeneeded=function(E){var O=v.result;try{O.createObjectStore(f.storeName),E.oldVersion<=1&&O.createObjectStore(q)}catch(w){if(w.name==="ConstraintError")console.warn('The database "'+f.name+'" has been upgraded from version '+E.oldVersion+" to version "+E.newVersion+', but the storage "'+f.storeName+'" already exists.');else throw w}}),v.onerror=function(E){E.preventDefault(),g(v.error)},v.onsuccess=function(){var E=v.result;E.onversionchange=function(O){O.target.close()},p(E),he(f)}})}function Ue(f){return Te(f,!1)}function nr(f){return Te(f,!0)}function Nr(f,_){if(!f.db)return!0;var p=!f.db.objectStoreNames.contains(f.storeName),g=f.version<f.db.version,m=f.version>f.db.version;if(g&&(f.version!==_&&console.warn('The database "'+f.name+`" can't be downgraded from version `+f.db.version+" to version "+f.version+"."),f.version=f.db.version),m||p){if(p){var v=f.db.version+1;v>f.version&&(f.version=v)}return!0}return!1}function ei(f){return new h(function(_,p){var g=new FileReader;g.onerror=p,g.onloadend=function(m){var v=btoa(m.target.result||"");_({__local_forage_encoded_blob:!0,data:v,type:f.type})},g.readAsBinaryString(f)})}function Pt(f){var _=B(atob(f.data));return d([_],{type:f.type})}function Va(f){return f&&f.__local_forage_encoded_blob}function Al(f){var _=this,p=_._initReady().then(function(){var g=k[_._dbInfo.name];if(g&&g.dbReady)return g.dbReady});return S(p,f,f),p}function Pl(f){re(f);for(var _=k[f.name],p=_.forages,g=0;g<p.length;g++){var m=p[g];m._dbInfo.db&&(m._dbInfo.db.close(),m._dbInfo.db=null)}return f.db=null,Ue(f).then(function(v){return f.db=v,Nr(f)?nr(f):v}).then(function(v){f.db=_.db=v;for(var E=0;E<p.length;E++)p[E]._dbInfo.db=v}).catch(function(v){throw Ee(f,v),v})}function Be(f,_,p,g){g===void 0&&(g=1);try{var m=f.db.transaction(f.storeName,_);p(null,m)}catch(v){if(g>0&&(!f.db||v.name==="InvalidStateError"||v.name==="NotFoundError"))return h.resolve().then(function(){if(!f.db||v.name==="NotFoundError"&&!f.db.objectStoreNames.contains(f.storeName)&&f.version<=f.db.version)return f.db&&(f.version=f.db.version+1),nr(f)}).then(function(){return Pl(f).then(function(){Be(f,_,p,g-1)})}).catch(p);p(v)}}function Wa(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ql(f){var _=this,p={db:null};if(f)for(var g in f)p[g]=f[g];var m=k[p.name];m||(m=Wa(),k[p.name]=m),m.forages.push(_),_._initReady||(_._initReady=_.ready,_.ready=Al);var v=[];function E(){return h.resolve()}for(var O=0;O<m.forages.length;O++){var w=m.forages[O];w!==_&&v.push(w._initReady().catch(E))}var x=m.forages.slice(0);return h.all(v).then(function(){return p.db=m.db,Ue(p)}).then(function(I){return p.db=I,Nr(p,_._defaultConfig.version)?nr(p):I}).then(function(I){p.db=m.db=I,_._dbInfo=p;for(var A=0;A<x.length;A++){var F=x[A];F!==_&&(F._dbInfo.db=p.db,F._dbInfo.version=p.version)}})}function Nl(f,_){var p=this;f=T(f);var g=new h(function(m,v){p.ready().then(function(){Be(p._dbInfo,et,function(E,O){if(E)return v(E);try{var w=O.objectStore(p._dbInfo.storeName),x=w.get(f);x.onsuccess=function(){var I=x.result;I===void 0&&(I=null),Va(I)&&(I=Pt(I)),m(I)},x.onerror=function(){v(x.error)}}catch(I){v(I)}})}).catch(v)});return y(g,_),g}function Ml(f,_){var p=this,g=new h(function(m,v){p.ready().then(function(){Be(p._dbInfo,et,function(E,O){if(E)return v(E);try{var w=O.objectStore(p._dbInfo.storeName),x=w.openCursor(),I=1;x.onsuccess=function(){var A=x.result;if(A){var F=A.value;Va(F)&&(F=Pt(F));var G=f(F,A.key,I++);G!==void 0?m(G):A.continue()}else m()},x.onerror=function(){v(x.error)}}catch(A){v(A)}})}).catch(v)});return y(g,_),g}function kl(f,_,p){var g=this;f=T(f);var m=new h(function(v,E){var O;g.ready().then(function(){return O=g._dbInfo,Se.call(_)==="[object Blob]"?V(O.db).then(function(w){return w?_:ei(_)}):_}).then(function(w){Be(g._dbInfo,R,function(x,I){if(x)return E(x);try{var A=I.objectStore(g._dbInfo.storeName);w===null&&(w=void 0);var F=A.put(w,f);I.oncomplete=function(){w===void 0&&(w=null),v(w)},I.onabort=I.onerror=function(){var G=F.error?F.error:F.transaction.error;E(G)}}catch(G){E(G)}})}).catch(E)});return y(m,p),m}function Dl(f,_){var p=this;f=T(f);var g=new h(function(m,v){p.ready().then(function(){Be(p._dbInfo,R,function(E,O){if(E)return v(E);try{var w=O.objectStore(p._dbInfo.storeName),x=w.delete(f);O.oncomplete=function(){m()},O.onerror=function(){v(x.error)},O.onabort=function(){var I=x.error?x.error:x.transaction.error;v(I)}}catch(I){v(I)}})}).catch(v)});return y(g,_),g}function Fl(f){var _=this,p=new h(function(g,m){_.ready().then(function(){Be(_._dbInfo,R,function(v,E){if(v)return m(v);try{var O=E.objectStore(_._dbInfo.storeName),w=O.clear();E.oncomplete=function(){g()},E.onabort=E.onerror=function(){var x=w.error?w.error:w.transaction.error;m(x)}}catch(x){m(x)}})}).catch(m)});return y(p,f),p}function jl(f){var _=this,p=new h(function(g,m){_.ready().then(function(){Be(_._dbInfo,et,function(v,E){if(v)return m(v);try{var O=E.objectStore(_._dbInfo.storeName),w=O.count();w.onsuccess=function(){g(w.result)},w.onerror=function(){m(w.error)}}catch(x){m(x)}})}).catch(m)});return y(p,f),p}function Hl(f,_){var p=this,g=new h(function(m,v){if(f<0){m(null);return}p.ready().then(function(){Be(p._dbInfo,et,function(E,O){if(E)return v(E);try{var w=O.objectStore(p._dbInfo.storeName),x=!1,I=w.openKeyCursor();I.onsuccess=function(){var A=I.result;if(!A){m(null);return}f===0||x?m(A.key):(x=!0,A.advance(f))},I.onerror=function(){v(I.error)}}catch(A){v(A)}})}).catch(v)});return y(g,_),g}function Ll(f){var _=this,p=new h(function(g,m){_.ready().then(function(){Be(_._dbInfo,et,function(v,E){if(v)return m(v);try{var O=E.objectStore(_._dbInfo.storeName),w=O.openKeyCursor(),x=[];w.onsuccess=function(){var I=w.result;if(!I){g(x);return}x.push(I.key),I.continue()},w.onerror=function(){m(w.error)}}catch(I){m(I)}})}).catch(m)});return y(p,f),p}function Ul(f,_){_=C.apply(this,arguments);var p=this.config();f=typeof f!="function"&&f||{},f.name||(f.name=f.name||p.name,f.storeName=f.storeName||p.storeName);var g=this,m;if(!f.name)m=h.reject("Invalid arguments");else{var v=f.name===p.name&&g._dbInfo.db,E=v?h.resolve(g._dbInfo.db):Ue(f).then(function(O){var w=k[f.name],x=w.forages;w.db=O;for(var I=0;I<x.length;I++)x[I]._dbInfo.db=O;return O});f.storeName?m=E.then(function(O){if(!!O.objectStoreNames.contains(f.storeName)){var w=O.version+1;re(f);var x=k[f.name],I=x.forages;O.close();for(var A=0;A<I.length;A++){var F=I[A];F._dbInfo.db=null,F._dbInfo.version=w}var G=new h(function(W,J){var $=c.open(f.name,w);$.onerror=function(Oe){var or=$.result;or.close(),J(Oe)},$.onupgradeneeded=function(){var Oe=$.result;Oe.deleteObjectStore(f.storeName)},$.onsuccess=function(){var Oe=$.result;Oe.close(),W(Oe)}});return G.then(function(W){x.db=W;for(var J=0;J<I.length;J++){var $=I[J];$._dbInfo.db=W,he($._dbInfo)}}).catch(function(W){throw(Ee(f,W)||h.resolve()).catch(function(){}),W})}}):m=E.then(function(O){re(f);var w=k[f.name],x=w.forages;O.close();for(var I=0;I<x.length;I++){var A=x[I];A._dbInfo.db=null}var F=new h(function(G,W){var J=c.deleteDatabase(f.name);J.onerror=function(){var $=J.result;$&&$.close(),W(J.error)},J.onblocked=function(){console.warn('dropInstance blocked for database "'+f.name+'" until all open connections are closed')},J.onsuccess=function(){var $=J.result;$&&$.close(),G($)}});return F.then(function(G){w.db=G;for(var W=0;W<x.length;W++){var J=x[W];he(J._dbInfo)}}).catch(function(G){throw(Ee(f,G)||h.resolve()).catch(function(){}),G})})}return y(m,_),m}var Bl={_driver:"asyncStorage",_initStorage:ql,_support:l(),iterate:Ml,getItem:Nl,setItem:kl,removeItem:Dl,clear:Fl,length:jl,key:Hl,keys:Ll,dropInstance:Ul};function Gl(){return typeof openDatabase=="function"}var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zl="~~local_forage_type~",Ya=/^~~local_forage_type~([^~]+)~/,Mr="__lfsc__:",ti=Mr.length,ri="arbf",ni="blob",$a="si08",Ka="ui08",Ja="uic8",Xa="si16",Qa="si32",Za="ur16",es="ui32",ts="fl32",rs="fl64",ns=ti+ri.length,is=Object.prototype.toString;function os(f){var _=f.length*.75,p=f.length,g,m=0,v,E,O,w;f[f.length-1]==="="&&(_--,f[f.length-2]==="="&&_--);var x=new ArrayBuffer(_),I=new Uint8Array(x);for(g=0;g<p;g+=4)v=tt.indexOf(f[g]),E=tt.indexOf(f[g+1]),O=tt.indexOf(f[g+2]),w=tt.indexOf(f[g+3]),I[m++]=v<<2|E>>4,I[m++]=(E&15)<<4|O>>2,I[m++]=(O&3)<<6|w&63;return x}function ii(f){var _=new Uint8Array(f),p="",g;for(g=0;g<_.length;g+=3)p+=tt[_[g]>>2],p+=tt[(_[g]&3)<<4|_[g+1]>>4],p+=tt[(_[g+1]&15)<<2|_[g+2]>>6],p+=tt[_[g+2]&63];return _.length%3===2?p=p.substring(0,p.length-1)+"=":_.length%3===1&&(p=p.substring(0,p.length-2)+"=="),p}function Vl(f,_){var p="";if(f&&(p=is.call(f)),f&&(p==="[object ArrayBuffer]"||f.buffer&&is.call(f.buffer)==="[object ArrayBuffer]")){var g,m=Mr;f instanceof ArrayBuffer?(g=f,m+=ri):(g=f.buffer,p==="[object Int8Array]"?m+=$a:p==="[object Uint8Array]"?m+=Ka:p==="[object Uint8ClampedArray]"?m+=Ja:p==="[object Int16Array]"?m+=Xa:p==="[object Uint16Array]"?m+=Za:p==="[object Int32Array]"?m+=Qa:p==="[object Uint32Array]"?m+=es:p==="[object Float32Array]"?m+=ts:p==="[object Float64Array]"?m+=rs:_(new Error("Failed to get type for BinaryArray"))),_(m+ii(g))}else if(p==="[object Blob]"){var v=new FileReader;v.onload=function(){var E=zl+f.type+"~"+ii(this.result);_(Mr+ni+E)},v.readAsArrayBuffer(f)}else try{_(JSON.stringify(f))}catch(E){console.error("Couldn't convert value into a JSON string: ",f),_(null,E)}}function Wl(f){if(f.substring(0,ti)!==Mr)return JSON.parse(f);var _=f.substring(ns),p=f.substring(ti,ns),g;if(p===ni&&Ya.test(_)){var m=_.match(Ya);g=m[1],_=_.substring(m[0].length)}var v=os(_);switch(p){case ri:return v;case ni:return d([v],{type:g});case $a:return new Int8Array(v);case Ka:return new Uint8Array(v);case Ja:return new Uint8ClampedArray(v);case Xa:return new Int16Array(v);case Za:return new Uint16Array(v);case Qa:return new Int32Array(v);case es:return new Uint32Array(v);case ts:return new Float32Array(v);case rs:return new Float64Array(v);default:throw new Error("Unkown type: "+p)}}var oi={serialize:Vl,deserialize:Wl,stringToBuffer:os,bufferToString:ii};function as(f,_,p,g){f.executeSql("CREATE TABLE IF NOT EXISTS "+_.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],p,g)}function Yl(f){var _=this,p={db:null};if(f)for(var g in f)p[g]=typeof f[g]!="string"?f[g].toString():f[g];var m=new h(function(v,E){try{p.db=openDatabase(p.name,String(p.version),p.description,p.size)}catch(O){return E(O)}p.db.transaction(function(O){as(O,p,function(){_._dbInfo=p,v()},function(w,x){E(x)})},E)});return p.serializer=oi,m}function rt(f,_,p,g,m,v){f.executeSql(p,g,m,function(E,O){O.code===O.SYNTAX_ERR?E.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[_.storeName],function(w,x){x.rows.length?v(w,O):as(w,_,function(){w.executeSql(p,g,m,v)},v)},v):v(E,O)},v)}function $l(f,_){var p=this;f=T(f);var g=new h(function(m,v){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(O){rt(O,E,"SELECT * FROM "+E.storeName+" WHERE key = ? LIMIT 1",[f],function(w,x){var I=x.rows.length?x.rows.item(0).value:null;I&&(I=E.serializer.deserialize(I)),m(I)},function(w,x){v(x)})})}).catch(v)});return y(g,_),g}function Kl(f,_){var p=this,g=new h(function(m,v){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(O){rt(O,E,"SELECT * FROM "+E.storeName,[],function(w,x){for(var I=x.rows,A=I.length,F=0;F<A;F++){var G=I.item(F),W=G.value;if(W&&(W=E.serializer.deserialize(W)),W=f(W,G.key,F+1),W!==void 0){m(W);return}}m()},function(w,x){v(x)})})}).catch(v)});return y(g,_),g}function ss(f,_,p,g){var m=this;f=T(f);var v=new h(function(E,O){m.ready().then(function(){_===void 0&&(_=null);var w=_,x=m._dbInfo;x.serializer.serialize(_,function(I,A){A?O(A):x.db.transaction(function(F){rt(F,x,"INSERT OR REPLACE INTO "+x.storeName+" (key, value) VALUES (?, ?)",[f,I],function(){E(w)},function(G,W){O(W)})},function(F){if(F.code===F.QUOTA_ERR){if(g>0){E(ss.apply(m,[f,w,p,g-1]));return}O(F)}})})}).catch(O)});return y(v,p),v}function Jl(f,_,p){return ss.apply(this,[f,_,p,1])}function Xl(f,_){var p=this;f=T(f);var g=new h(function(m,v){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(O){rt(O,E,"DELETE FROM "+E.storeName+" WHERE key = ?",[f],function(){m()},function(w,x){v(x)})})}).catch(v)});return y(g,_),g}function Ql(f){var _=this,p=new h(function(g,m){_.ready().then(function(){var v=_._dbInfo;v.db.transaction(function(E){rt(E,v,"DELETE FROM "+v.storeName,[],function(){g()},function(O,w){m(w)})})}).catch(m)});return y(p,f),p}function Zl(f){var _=this,p=new h(function(g,m){_.ready().then(function(){var v=_._dbInfo;v.db.transaction(function(E){rt(E,v,"SELECT COUNT(key) as c FROM "+v.storeName,[],function(O,w){var x=w.rows.item(0).c;g(x)},function(O,w){m(w)})})}).catch(m)});return y(p,f),p}function ed(f,_){var p=this,g=new h(function(m,v){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(O){rt(O,E,"SELECT key FROM "+E.storeName+" WHERE id = ? LIMIT 1",[f+1],function(w,x){var I=x.rows.length?x.rows.item(0).key:null;m(I)},function(w,x){v(x)})})}).catch(v)});return y(g,_),g}function td(f){var _=this,p=new h(function(g,m){_.ready().then(function(){var v=_._dbInfo;v.db.transaction(function(E){rt(E,v,"SELECT key FROM "+v.storeName,[],function(O,w){for(var x=[],I=0;I<w.rows.length;I++)x.push(w.rows.item(I).key);g(x)},function(O,w){m(w)})})}).catch(m)});return y(p,f),p}function rd(f){return new h(function(_,p){f.transaction(function(g){g.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(m,v){for(var E=[],O=0;O<v.rows.length;O++)E.push(v.rows.item(O).name);_({db:f,storeNames:E})},function(m,v){p(v)})},function(g){p(g)})})}function nd(f,_){_=C.apply(this,arguments);var p=this.config();f=typeof f!="function"&&f||{},f.name||(f.name=f.name||p.name,f.storeName=f.storeName||p.storeName);var g=this,m;return f.name?m=new h(function(v){var E;f.name===p.name?E=g._dbInfo.db:E=openDatabase(f.name,"","",0),f.storeName?v({db:E,storeNames:[f.storeName]}):v(rd(E))}).then(function(v){return new h(function(E,O){v.db.transaction(function(w){function x(G){return new h(function(W,J){w.executeSql("DROP TABLE IF EXISTS "+G,[],function(){W()},function($,Oe){J(Oe)})})}for(var I=[],A=0,F=v.storeNames.length;A<F;A++)I.push(x(v.storeNames[A]));h.all(I).then(function(){E()}).catch(function(G){O(G)})},function(w){O(w)})})}):m=h.reject("Invalid arguments"),y(m,_),m}var id={_driver:"webSQLStorage",_initStorage:Yl,_support:Gl(),iterate:Kl,getItem:$l,setItem:Jl,removeItem:Xl,clear:Ql,length:Zl,key:ed,keys:td,dropInstance:nd};function od(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function us(f,_){var p=f.name+"/";return f.storeName!==_.storeName&&(p+=f.storeName+"/"),p}function ad(){var f="_localforage_support_test";try{return localStorage.setItem(f,!0),localStorage.removeItem(f),!1}catch{return!0}}function sd(){return!ad()||localStorage.length>0}function ud(f){var _=this,p={};if(f)for(var g in f)p[g]=f[g];return p.keyPrefix=us(f,_._defaultConfig),sd()?(_._dbInfo=p,p.serializer=oi,h.resolve()):h.reject()}function cd(f){var _=this,p=_.ready().then(function(){for(var g=_._dbInfo.keyPrefix,m=localStorage.length-1;m>=0;m--){var v=localStorage.key(m);v.indexOf(g)===0&&localStorage.removeItem(v)}});return y(p,f),p}function fd(f,_){var p=this;f=T(f);var g=p.ready().then(function(){var m=p._dbInfo,v=localStorage.getItem(m.keyPrefix+f);return v&&(v=m.serializer.deserialize(v)),v});return y(g,_),g}function ld(f,_){var p=this,g=p.ready().then(function(){for(var m=p._dbInfo,v=m.keyPrefix,E=v.length,O=localStorage.length,w=1,x=0;x<O;x++){var I=localStorage.key(x);if(I.indexOf(v)===0){var A=localStorage.getItem(I);if(A&&(A=m.serializer.deserialize(A)),A=f(A,I.substring(E),w++),A!==void 0)return A}}});return y(g,_),g}function dd(f,_){var p=this,g=p.ready().then(function(){var m=p._dbInfo,v;try{v=localStorage.key(f)}catch{v=null}return v&&(v=v.substring(m.keyPrefix.length)),v});return y(g,_),g}function pd(f){var _=this,p=_.ready().then(function(){for(var g=_._dbInfo,m=localStorage.length,v=[],E=0;E<m;E++){var O=localStorage.key(E);O.indexOf(g.keyPrefix)===0&&v.push(O.substring(g.keyPrefix.length))}return v});return y(p,f),p}function hd(f){var _=this,p=_.keys().then(function(g){return g.length});return y(p,f),p}function _d(f,_){var p=this;f=T(f);var g=p.ready().then(function(){var m=p._dbInfo;localStorage.removeItem(m.keyPrefix+f)});return y(g,_),g}function vd(f,_,p){var g=this;f=T(f);var m=g.ready().then(function(){_===void 0&&(_=null);var v=_;return new h(function(E,O){var w=g._dbInfo;w.serializer.serialize(_,function(x,I){if(I)O(I);else try{localStorage.setItem(w.keyPrefix+f,x),E(v)}catch(A){(A.name==="QuotaExceededError"||A.name==="NS_ERROR_DOM_QUOTA_REACHED")&&O(A),O(A)}})})});return y(m,p),m}function gd(f,_){if(_=C.apply(this,arguments),f=typeof f!="function"&&f||{},!f.name){var p=this.config();f.name=f.name||p.name,f.storeName=f.storeName||p.storeName}var g=this,m;return f.name?m=new h(function(v){f.storeName?v(us(f,g._defaultConfig)):v(f.name+"/")}).then(function(v){for(var E=localStorage.length-1;E>=0;E--){var O=localStorage.key(E);O.indexOf(v)===0&&localStorage.removeItem(O)}}):m=h.reject("Invalid arguments"),y(m,_),m}var md={_driver:"localStorageWrapper",_initStorage:ud,_support:od(),iterate:ld,getItem:fd,setItem:vd,removeItem:_d,clear:cd,length:hd,key:dd,keys:pd,dropInstance:gd},yd=function(_,p){return _===p||typeof _=="number"&&typeof p=="number"&&isNaN(_)&&isNaN(p)},bd=function(_,p){for(var g=_.length,m=0;m<g;){if(yd(_[m],p))return!0;m++}return!1},cs=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"},ir={},fs={},qt={INDEXEDDB:Bl,WEBSQL:id,LOCALSTORAGE:md},Sd=[qt.INDEXEDDB._driver,qt.WEBSQL._driver,qt.LOCALSTORAGE._driver],kr=["dropInstance"],ai=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(kr),Ed={description:"",driver:Sd.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Td(f,_){f[_]=function(){var p=arguments;return f.ready().then(function(){return f[_].apply(f,p)})}}function si(){for(var f=1;f<arguments.length;f++){var _=arguments[f];if(_)for(var p in _)_.hasOwnProperty(p)&&(cs(_[p])?arguments[0][p]=_[p].slice():arguments[0][p]=_[p])}return arguments[0]}var Od=function(){function f(_){s(this,f);for(var p in qt)if(qt.hasOwnProperty(p)){var g=qt[p],m=g._driver;this[p]=m,ir[m]||this.defineDriver(g)}this._defaultConfig=si({},Ed),this._config=si({},this._defaultConfig,_),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return f.prototype.config=function(p){if((typeof p=="undefined"?"undefined":a(p))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var g in p){if(g==="storeName"&&(p[g]=p[g].replace(/\W/g,"_")),g==="version"&&typeof p[g]!="number")return new Error("Database version must be a number.");this._config[g]=p[g]}return"driver"in p&&p.driver?this.setDriver(this._config.driver):!0}else return typeof p=="string"?this._config[p]:this._config},f.prototype.defineDriver=function(p,g,m){var v=new h(function(E,O){try{var w=p._driver,x=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!p._driver){O(x);return}for(var I=ai.concat("_initStorage"),A=0,F=I.length;A<F;A++){var G=I[A],W=!bd(kr,G);if((W||p[G])&&typeof p[G]!="function"){O(x);return}}var J=function(){for(var or=function(Id){return function(){var Cd=new Error("Method "+Id+" is not implemented by the current driver"),ls=h.reject(Cd);return y(ls,arguments[arguments.length-1]),ls}},ui=0,xd=kr.length;ui<xd;ui++){var ci=kr[ui];p[ci]||(p[ci]=or(ci))}};J();var $=function(or){ir[w]&&console.info("Redefining LocalForage driver: "+w),ir[w]=p,fs[w]=or,E()};"_support"in p?p._support&&typeof p._support=="function"?p._support().then($,O):$(!!p._support):$(!0)}catch(Oe){O(Oe)}});return S(v,g,m),v},f.prototype.driver=function(){return this._driver||null},f.prototype.getDriver=function(p,g,m){var v=ir[p]?h.resolve(ir[p]):h.reject(new Error("Driver not found."));return S(v,g,m),v},f.prototype.getSerializer=function(p){var g=h.resolve(oi);return S(g,p),g},f.prototype.ready=function(p){var g=this,m=g._driverSet.then(function(){return g._ready===null&&(g._ready=g._initDriver()),g._ready});return S(m,p,p),m},f.prototype.setDriver=function(p,g,m){var v=this;cs(p)||(p=[p]);var E=this._getSupportedDrivers(p);function O(){v._config.driver=v.driver()}function w(A){return v._extend(A),O(),v._ready=v._initStorage(v._config),v._ready}function x(A){return function(){var F=0;function G(){for(;F<A.length;){var W=A[F];return F++,v._dbInfo=null,v._ready=null,v.getDriver(W).then(w).catch(G)}O();var J=new Error("No available storage method found.");return v._driverSet=h.reject(J),v._driverSet}return G()}}var I=this._driverSet!==null?this._driverSet.catch(function(){return h.resolve()}):h.resolve();return this._driverSet=I.then(function(){var A=E[0];return v._dbInfo=null,v._ready=null,v.getDriver(A).then(function(F){v._driver=F._driver,O(),v._wrapLibraryMethodsWithReady(),v._initDriver=x(E)})}).catch(function(){O();var A=new Error("No available storage method found.");return v._driverSet=h.reject(A),v._driverSet}),S(this._driverSet,g,m),this._driverSet},f.prototype.supports=function(p){return!!fs[p]},f.prototype._extend=function(p){si(this,p)},f.prototype._getSupportedDrivers=function(p){for(var g=[],m=0,v=p.length;m<v;m++){var E=p[m];this.supports(E)&&g.push(E)}return g},f.prototype._wrapLibraryMethodsWithReady=function(){for(var p=0,g=ai.length;p<g;p++)Td(this,ai[p])},f.prototype.createInstance=function(p){return new f(p)},f}(),wd=new Od;i.exports=wd},{"3":3}]},{},[4])(4)})});var ml=b(Da=>{Object.defineProperty(Da,"__esModule",{value:!0});var Me=N(),Qe=P(),pb=Me.__importDefault(gl()),hb=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this.global=Qe.getGlobalObject(),this.maxStoredEvents=e.maxStoredEvents||30,this.offlineEventStore=pb.default.createInstance({name:"sentry/offlineEventStore"})}return t.prototype.setupOnce=function(e,r){var n=this;this.hub=r(),"addEventListener"in this.global&&this.global.addEventListener("online",function(){n._sendEvents().catch(function(){Qe.logger.warn("could not send cached events")})}),e(function(i){return n.hub&&n.hub.getIntegration(t)&&"navigator"in n.global&&"onLine"in n.global.navigator&&!n.global.navigator.onLine?(n._cacheEvent(i).then(function(o){return n._enforceMaxEvents()}).catch(function(o){Qe.logger.warn("could not cache event while offline")}),null):i}),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch(function(){Qe.logger.warn("could not send cached events")})},t.prototype._cacheEvent=function(e){return Me.__awaiter(this,void 0,void 0,function(){return Me.__generator(this,function(r){return[2,this.offlineEventStore.setItem(Qe.uuid4(),Qe.normalize(e))]})})},t.prototype._enforceMaxEvents=function(){return Me.__awaiter(this,void 0,void 0,function(){var e,r=this;return Me.__generator(this,function(n){return e=[],[2,this.offlineEventStore.iterate(function(i,o,a){e.push({cacheKey:o,event:i})}).then(function(){return r._purgeEvents(e.sort(function(i,o){return(o.event.timestamp||0)-(i.event.timestamp||0)}).slice(r.maxStoredEvents<e.length?r.maxStoredEvents:e.length).map(function(i){return i.cacheKey}))}).catch(function(i){Qe.logger.warn("could not enforce max events")})]})})},t.prototype._purgeEvent=function(e){return Me.__awaiter(this,void 0,void 0,function(){return Me.__generator(this,function(r){return[2,this.offlineEventStore.removeItem(e)]})})},t.prototype._purgeEvents=function(e){return Me.__awaiter(this,void 0,void 0,function(){var r=this;return Me.__generator(this,function(n){return[2,Promise.all(e.map(function(i){return r._purgeEvent(i)})).then()]})})},t.prototype._sendEvents=function(){return Me.__awaiter(this,void 0,void 0,function(){var e=this;return Me.__generator(this,function(r){return[2,this.offlineEventStore.iterate(function(n,i,o){e.hub?(e.hub.captureEvent(n),e._purgeEvent(i).catch(function(a){Qe.logger.warn("could not purge event from cache")})):Qe.logger.warn("no hub found - could not send cached event")})]})})},t.id="Offline",t}();Da.Offline=hb});var bl=b(Fa=>{Object.defineProperty(Fa,"__esModule",{value:!0});var _b=N(),yl=P(),vb=function(){function t(e){e===void 0&&(e={types:["crash","deprecation","intervention"]}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,r){if(!!yl.supportsReportingObserver()){this._getCurrentHub=r;var n=new(yl.getGlobalObject()).ReportingObserver(this.handler.bind(this),{buffered:!0,types:this._options.types});n.observe()}},t.prototype.handler=function(e){var r,n,i=this._getCurrentHub&&this._getCurrentHub();if(!(!i||!i.getIntegration(t))){var o=function(c){i.withScope(function(l){l.setExtra("url",c.url);var d="ReportingObserver ["+c.type+"]",h="No details available";if(c.body){var y={};for(var S in c.body)y[S]=c.body[S];if(l.setExtra("body",y),c.type==="crash"){var T=c.body;h=[T.crashId||"",T.reason||""].join(" ").trim()||h}else{var T=c.body;h=T.message||h}}i.captureMessage(d+": "+h)})};try{for(var a=_b.__values(e),s=a.next();!s.done;s=a.next()){var u=s.value;o(u)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}},t.id="ReportingObserver",t}();Fa.ReportingObserver=vb});var El=b(ja=>{Object.defineProperty(ja,"__esModule",{value:!0});var Le=N(),Sl=P(),gb=function(){function t(e){var r=this;e===void 0&&(e={}),this.name=t.id,this._prefix="app:///",this._iteratee=function(n){if(!n.filename)return n;var i=/^[A-Z]:\\/.test(n.filename),o=/^\//.test(n.filename);if(i||o){var a=i?n.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):n.filename,s=r._root?Sl.relative(r._root,a):Sl.basename(a);n.filename=""+r._prefix+s}return n},e.root&&(this._root=e.root),e.prefix&&(this._prefix=e.prefix),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,r){e(function(n){var i=r().getIntegration(t);return i?i.process(n):n})},t.prototype.process=function(e){var r=e;return e.exception&&Array.isArray(e.exception.values)&&(r=this._processExceptionsEvent(r)),e.stacktrace&&(r=this._processStacktraceEvent(r)),r},t.prototype._processExceptionsEvent=function(e){var r=this;try{return Le.__assign(Le.__assign({},e),{exception:Le.__assign(Le.__assign({},e.exception),{values:e.exception.values.map(function(n){return Le.__assign(Le.__assign({},n),{stacktrace:r._processStacktrace(n.stacktrace)})})})})}catch{return e}},t.prototype._processStacktraceEvent=function(e){try{return Le.__assign(Le.__assign({},e),{stacktrace:this._processStacktrace(e.stacktrace)})}catch{return e}},t.prototype._processStacktrace=function(e){var r=this;return Le.__assign(Le.__assign({},e),{frames:e&&e.frames&&e.frames.map(function(n){return r._iteratee(n)})})},t.id="RewriteFrames",t}();ja.RewriteFrames=gb});var Tl=b(Ha=>{Object.defineProperty(Ha,"__esModule",{value:!0});var Xn=N(),mb=function(){function t(){this.name=t.id,this._startTime=Date.now()}return t.prototype.setupOnce=function(e,r){e(function(n){var i=r().getIntegration(t);return i?i.process(n):n})},t.prototype.process=function(e){var r,n=Date.now();return Xn.__assign(Xn.__assign({},e),{extra:Xn.__assign(Xn.__assign({},e.extra),(r={},r["session:start"]=this._startTime,r["session:duration"]=n-this._startTime,r["session:end"]=n,r))})},t.id="SessionTiming",t}();Ha.SessionTiming=mb});var Ol=b(La=>{Object.defineProperty(La,"__esModule",{value:!0});var yb=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){e(function(n){var i=r().getIntegration(t);return i?i.process(n):n})},t.prototype.process=function(e){for(var r=this._getFramesFromEvent(e),n=r.length-1;n>=0;n--){var i=r[n];if(i.in_app===!0){e.transaction=this._getTransaction(i);break}}return e},t.prototype._getFramesFromEvent=function(e){var r=e.exception&&e.exception.values&&e.exception.values[0];return r&&r.stacktrace&&r.stacktrace.frames||[]},t.prototype._getTransaction=function(e){return e.module||e.function?(e.module||"?")+"/"+(e.function||"?"):"<unknown>"},t.id="Transaction",t}();La.Transaction=yb});var Il=b(Zn=>{Object.defineProperty(Zn,"__esModule",{value:!0});var Qn=N(),Ze=P(),Ua={id:"Tracing"},bb={id:"BrowserTracing"},Ba="ui.vue",Sb={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},Eb=/(?:^|[-_/])(\w)/g,wl="root",Ga="anonymous component",Tb=function(){function t(e){var r=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(n,i){if(!n.$options.$_sentryPerfHook){n.$options.$_sentryPerfHook=!0;var o=r._getComponentName(n),a=o===wl,s={},u=function(l){var d=Ze.timestampWithMs();r._rootSpan?r._finishRootSpan(d,i):n.$once("hook:"+l,function(){var h=i().getIntegration(Ua);if(h){r._tracingActivity=h.constructor.pushActivity("Vue Application Render");var y=h.constructor.getTransaction();y&&(r._rootSpan=y.startChild({description:"Application Render",op:Ba}))}else{var S=xl(i());S&&(r._rootSpan=S.startChild({description:"Application Render",op:Ba}))}})},c=function(l,d){var h=Array.isArray(r._options.tracingOptions.trackComponents)?r._options.tracingOptions.trackComponents.indexOf(o)>-1:r._options.tracingOptions.trackComponents;if(!(!r._rootSpan||!h)){var y=Ze.timestampWithMs(),S=s[d];S?(S.finish(),r._finishRootSpan(y,i)):n.$once("hook:"+l,function(){r._rootSpan&&(s[d]=r._rootSpan.startChild({description:"Vue <"+o+">",op:Ba+"."+d}))})}};r._options.tracingOptions.hooks.forEach(function(l){var d=Sb[l];if(!d){Ze.logger.warn("Unknown hook: "+l);return}d.forEach(function(h){var y=a?u.bind(r,h):c.bind(r,h,l),S=n.$options[h];Array.isArray(S)?n.$options[h]=Qn.__spread([y],S):typeof S=="function"?n.$options[h]=[y,S]:n.$options[h]=[y]})})}},Ze.logger.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=Qn.__assign(Qn.__assign({Vue:Ze.getGlobalObject().Vue,attachProps:!0,logErrors:!1,tracing:!1},e),{tracingOptions:Qn.__assign({hooks:["mount","update"],timeout:2e3,trackComponents:!1},e.tracingOptions)})}return t.prototype.setupOnce=function(e,r){if(!this._options.Vue){Ze.logger.error("Vue integration is missing a Vue instance");return}this._attachErrorHandler(r),this._options.tracing&&this._startTracing(r)},t.prototype._getComponentName=function(e){if(!e)return Ga;if(e.$root===e)return wl;if(!e.$options)return Ga;if(e.$options.name)return e.$options.name;if(e.$options._componentTag)return e.$options._componentTag;if(e.$options.__file){var r=e.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),n=Ze.basename(r,".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(Eb,function(i,o){return o?o.toUpperCase():""}))}return Ga},t.prototype._finishRootSpan=function(e,r){var n=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(n._tracingActivity){var i=r().getIntegration(Ua);i&&i.constructor.popActivity(n._tracingActivity)}n._rootSpan&&n._rootSpan.finish(e)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(e){var r=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){e().getIntegration(Ua)||e().getIntegration(bb)?r(this,e):Ze.logger.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(e){var r=this,n=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(i,o,a){var s={};if(o)try{s.componentName=r._getComponentName(o),r._options.attachProps&&(s.propsData=o.$options.propsData)}catch{Ze.logger.warn("Unable to extract metadata from Vue component.")}a&&(s.lifecycleHook=a),e().getIntegration(t)&&setTimeout(function(){e().withScope(function(u){u.setContext("vue",s),e().captureException(i)})}),typeof n=="function"&&n.call(r._options.Vue,i,o,a),r._options.logErrors&&(r._options.Vue.util&&r._options.Vue.util.warn("Error in "+a+': "'+(i&&i.toString())+'"',o),console.error(i))}},t.id="Vue",t}();Zn.Vue=Tb;function xl(t){if(t&&t.getScope){var e=t.getScope();if(e)return e.getTransaction()}}Zn.getActiveTransaction=xl});var Cl=b(pe=>{Object.defineProperty(pe,"__esModule",{value:!0});var Ob=fl();pe.Angular=Ob.Angular;var wb=ll();pe.CaptureConsole=wb.CaptureConsole;var xb=dl();pe.Debug=xb.Debug;var Ib=pl();pe.Dedupe=Ib.Dedupe;var Cb=hl();pe.Ember=Cb.Ember;var Rb=_l();pe.ExtraErrorData=Rb.ExtraErrorData;var Ab=ml();pe.Offline=Ab.Offline;var Pb=bl();pe.ReportingObserver=Pb.ReportingObserver;var qb=El();pe.RewriteFrames=qb.RewriteFrames;var Nb=Tl();pe.SessionTiming=Nb.SessionTiming;var Mb=Ol();pe.Transaction=Mb.Transaction;var kb=Il();pe.Vue=kb.Vue});var za=li(gs());function ms(t){if(t.length==2)return t.toUpperCase().replace(/./g,e=>String.fromCodePoint(127397+e.charCodeAt(0)))}var rr=li(ul()),Rl=li(Cl());rr.init({dsn:"https://aec0873e750c49b082fe3594def15af1@o1116132.ingest.sentry.io/6149280",tracesSampleRate:1,integrations:[new Rl.RewriteFrames({root:global.__rootdir__})]});za.default.version("0.1.0").name("country-flag-cli").command("get <flag>").action(t=>{let e=rr.startTransaction({op:"get flag from 2 alpha code",name:"GET flag from 2 alpha code"});try{let r=ms(t);if(r===void 0)throw new Error(`Flag: ${t}
27
+ `)===-1){kr("have not received end of HTTP headers yet..."),o();return}let S=h.toString("ascii",0,h.indexOf(`\r
28
+ `)),T=+S.split(" ")[1];kr("got proxy server response: %o",S),e({statusCode:T,buffered:h})}t.on("error",c),t.on("close",a),t.on("end",u),o()})}Dr.default=cm});var xl=b(kt=>{"use strict";var lm=kt&&kt.__awaiter||function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})},ur=kt&&kt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kt,"__esModule",{value:!0});var wl=ur(require("net")),Ol=ur(require("tls")),fm=ur(require("url")),dm=ur(require("assert")),pm=ur($n()),hm=El(),vm=ur(Tl()),Lr=pm.default("https-proxy-agent:agent"),Cl=class extends hm.Agent{constructor(e){let r;if(typeof e=="string"?r=fm.default.parse(e):r=e,!r)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Lr("creating new HttpsProxyAgent instance: %o",r);super(r);let n=Object.assign({},r);this.secureProxy=r.secureProxy||mm(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(e,r){return lm(this,void 0,void 0,function*(){let{proxy:n,secureProxy:i}=this,o;i?(Lr("Creating `tls.Socket`: %o",n),o=Ol.default.connect(n)):(Lr("Creating `net.Socket`: %o",n),o=wl.default.connect(n));let s=Object.assign({},n.headers),u=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
29
+ `;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:c,port:l,secureEndpoint:d}=r;gm(l,d)||(c+=`:${l}`),s.Host=c,s.Connection="close";for(let R of Object.keys(s))u+=`${R}: ${s[R]}\r
30
+ `;let h=vm.default(o);o.write(`${u}\r
31
+ `);let{statusCode:_,buffered:S}=yield h;if(_===200){if(e.once("socket",_m),r.secureEndpoint){let R=r.servername||r.host;if(!R)throw new Error('Could not determine "servername"');return Lr("Upgrading socket connection to TLS"),Ol.default.connect(Object.assign(Object.assign({},ym(r,"host","hostname","path","port")),{socket:o,servername:R}))}return o}o.destroy();let T=new wl.default.Socket;return T.readable=!0,e.once("socket",R=>{Lr("replaying proxy buffer for failed request"),dm.default(R.listenerCount("data")>0),R.push(S),R.push(null)}),T})}};kt.default=Cl;function _m(t){t.resume()}function gm(t,e){return Boolean(!e&&t===80||e&&t===443)}function mm(t){return typeof t=="string"?/^https:?$/i.test(t):!1}function ym(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var is=b((ns,Rl)=>{"use strict";var bm=ns&&ns.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},ts=bm(xl());function rs(t){return new ts.default(t)}(function(t){t.HttpsProxyAgent=ts.default,t.prototype=ts.default.prototype})(rs||(rs={}));Rl.exports=rs});var Ml=b(os=>{Object.defineProperty(os,"__esModule",{value:!0});var Sm=q(),Il=ae(),Al=require("http"),Em=Bn(),Tm=function(t){Sm.__extends(e,t);function e(r){var n=t.call(this,r)||this;n.options=r;var i=n._getProxy("http");return n.module=Al,n.client=i?new(is())(i):new Al.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),n}return e.prototype.sendEvent=function(r){return this._send(Il.eventToSentryRequest(r,this._api),r)},e.prototype.sendSession=function(r){return this._send(Il.sessionToSentryRequest(r,this._api),r)},e}(Em.BaseTransport);os.HTTPTransport=Tm});var ql=b(ss=>{Object.defineProperty(ss,"__esModule",{value:!0});var wm=q(),Pl=ae(),Nl=require("https"),Om=Bn(),Cm=function(t){wm.__extends(e,t);function e(r){var n=t.call(this,r)||this;n.options=r;var i=n._getProxy("https");return n.module=Nl,n.client=i?new(is())(i):new Nl.Agent({keepAlive:!1,maxSockets:30,timeout:2e3}),n}return e.prototype.sendEvent=function(r){return this._send(Pl.eventToSentryRequest(r,this._api),r)},e.prototype.sendSession=function(r){return this._send(Pl.sessionToSentryRequest(r,this._api),r)},e}(Om.BaseTransport);ss.HTTPSTransport=Cm});var as=b(Fr=>{Object.defineProperty(Fr,"__esModule",{value:!0});var xm=Bn();Fr.BaseTransport=xm.BaseTransport;var Rm=Ml();Fr.HTTPTransport=Rm.HTTPTransport;var Im=ql();Fr.HTTPSTransport=Im.HTTPSTransport});var cs=b(us=>{Object.defineProperty(us,"__esModule",{value:!0});var gt=q(),kl=ae(),Am=se(),nt=N(),Kn=Go(),Dl=as(),Mm=function(t){gt.__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.eventFromException=function(r,n){var i=this,o=r,s=n&&n.data&&n.data.mechanism,a=s||{handled:!0,type:"generic"};if(!nt.isError(r)){if(nt.isPlainObject(r)){var u="Non-Error exception captured with keys: "+nt.extractExceptionKeysForMessage(r);kl.getCurrentHub().configureScope(function(c){c.setExtra("__serialized__",nt.normalizeToSize(r))}),o=n&&n.syntheticException||new Error(u),o.message=u}else o=n&&n.syntheticException||new Error(r),o.message=r;a.synthetic=!0}return new nt.SyncPromise(function(c,l){return Kn.parseError(o,i._options).then(function(d){nt.addExceptionTypeValue(d,void 0,void 0),nt.addExceptionMechanism(d,a),c(gt.__assign(gt.__assign({},d),{event_id:n&&n.event_id}))}).then(null,l)})},e.prototype.eventFromMessage=function(r,n,i){var o=this;n===void 0&&(n=Am.Severity.Info);var s={event_id:i&&i.event_id,level:n,message:r};return new nt.SyncPromise(function(a){if(o._options.attachStacktrace&&i&&i.syntheticException){var u=i.syntheticException?Kn.extractStackFromError(i.syntheticException):[];Kn.parseStack(u,o._options).then(function(c){s.stacktrace={frames:Kn.prepareFramesForEvent(c)},a(s)}).then(null,function(){a(s)})}else a(s)})},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var r=new nt.Dsn(this._options.dsn),n=gt.__assign(gt.__assign(gt.__assign(gt.__assign(gt.__assign({},this._options.transportOptions),this._options.httpProxy&&{httpProxy:this._options.httpProxy}),this._options.httpsProxy&&{httpsProxy:this._options.httpsProxy}),this._options.caCerts&&{caCerts:this._options.caCerts}),{dsn:this._options.dsn,tunnel:this._options.tunnel,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(n):r.protocol==="http"?new Dl.HTTPTransport(n):new Dl.HTTPSTransport(n)},e}(kl.BaseBackend);us.NodeBackend=Mm});var ds=b(fs=>{Object.defineProperty(fs,"__esModule",{value:!0});var Pm=q(),ls=ae(),Nm=Ee(),Jn=se(),Ll=N(),qm=cs(),km=function(t){Pm.__extends(e,t);function e(r){var n=this;return r._metadata=r._metadata||{},r._metadata.sdk=r._metadata.sdk||{name:"sentry.javascript.node",packages:[{name:"npm:@sentry/node",version:ls.SDK_VERSION}],version:ls.SDK_VERSION},n=t.call(this,qm.NodeBackend,r)||this,n}return e.prototype.captureException=function(r,n,i){if(this._options.autoSessionTracking&&this._sessionFlusher&&i){var o=i.getRequestSession();o&&o.status===Jn.RequestSessionStatus.Ok&&(o.status=Jn.RequestSessionStatus.Errored)}return t.prototype.captureException.call(this,r,n,i)},e.prototype.captureEvent=function(r,n,i){if(this._options.autoSessionTracking&&this._sessionFlusher&&i){var o=r.type||"exception",s=o==="exception"&&r.exception&&r.exception.values&&r.exception.values.length>0;if(s){var a=i.getRequestSession();a&&a.status===Jn.RequestSessionStatus.Ok&&(a.status=Jn.RequestSessionStatus.Errored)}}return t.prototype.captureEvent.call(this,r,n,i)},e.prototype.close=function(r){var n;return(n=this._sessionFlusher)===null||n===void 0||n.close(),t.prototype.close.call(this,r)},e.prototype.initSessionFlusher=function(){var r=this._options,n=r.release,i=r.environment;n?this._sessionFlusher=new Nm.SessionFlusher(this.getTransport(),{release:n,environment:i}):Ll.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")},e.prototype._prepareEvent=function(r,n,i){return r.platform=r.platform||"node",this.getOptions().serverName&&(r.server_name=this.getOptions().serverName),t.prototype._prepareEvent.call(this,r,n,i)},e.prototype._captureRequestSession=function(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():Ll.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")},e}(ls.BaseClient);fs.NodeClient=km});var Hl=b(ps=>{Object.defineProperty(ps,"__esModule",{value:!0});var Fl=q(),jl=ae(),jr=se(),Dm=N(),Lm=require("util"),Ul=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){var e,r;try{for(var n=Fl.__values(["debug","info","warn","error","log"]),i=n.next();!i.done;i=n.next()){var o=i.value;Dm.fill(console,o,Fm(o))}}catch(s){e={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.id="Console",t}();ps.Console=Ul;function Fm(t){return function(r){var n;switch(t){case"debug":n=jr.Severity.Debug;break;case"error":n=jr.Severity.Error;break;case"info":n=jr.Severity.Info;break;case"warn":n=jr.Severity.Warning;break;default:n=jr.Severity.Log}return function(){jl.getCurrentHub().getIntegration(Ul)&&jl.getCurrentHub().addBreadcrumb({category:"console",level:n,message:Lm.format.apply(void 0,arguments)},{input:Fl.__spread(arguments),level:t}),r.apply(this,arguments)}}}});var Vl=b(Dt=>{Object.defineProperty(Dt,"__esModule",{value:!0});var hs=q(),jm=ae(),Um=N(),Bl=require("url"),Gl=Um.parseSemver(process.versions.node);function Hm(t){var e,r=(e=jm.getCurrentHub().getClient())===null||e===void 0?void 0:e.getDsn();return r?t.includes(r.host):!1}Dt.isSentryRequest=Hm;function zl(t){var e=t.protocol||"",r=t.hostname||t.host||"",n=!t.port||t.port===80||t.port===443?"":":"+t.port,i=t.path?t.path:"/";return e+"//"+r+n+i}Dt.extractUrl=zl;function Bm(t,e,r){var n,i,o;if(!t)return t;var s=hs.__read(t.split(" "),2),a=s[0],u=s[1];return e.host&&!e.protocol&&(e.protocol=(i=(n=r)===null||n===void 0?void 0:n.agent)===null||i===void 0?void 0:i.protocol,u=zl(e)),((o=u)===null||o===void 0?void 0:o.startsWith("///"))&&(u=u.slice(2)),a+" "+u}Dt.cleanSpanDescription=Bm;function vs(t){var e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:""+(t.pathname||"")+(t.search||""),href:t.href};return t.port!==""&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=t.username+":"+t.password),e}Dt.urlToOptions=vs;function Gm(t,e){var r,n,i,o,s,a,u,c,l,d;return typeof e[e.length-1]=="function"&&(l=e.pop()),typeof e[0]=="string"?d=vs(new Bl.URL(e[0])):e[0]instanceof Bl.URL?d=vs(e[0]):d=e[0],e.length===2&&(d=hs.__assign(hs.__assign({},d),e[1])),d.protocol===void 0&&(Gl.major&&Gl.major>8?d.protocol=((n=(r=t)===null||r===void 0?void 0:r.globalAgent)===null||n===void 0?void 0:n.protocol)||((i=d.agent)===null||i===void 0?void 0:i.protocol)||((o=d._defaultAgent)===null||o===void 0?void 0:o.protocol):d.protocol=((s=d.agent)===null||s===void 0?void 0:s.protocol)||((a=d._defaultAgent)===null||a===void 0?void 0:a.protocol)||((c=(u=t)===null||u===void 0?void 0:u.globalAgent)===null||c===void 0?void 0:c.protocol)),l?[d,l]:[d]}Dt.normalizeRequestArgs=Gm});var Jl=b(gs=>{Object.defineProperty(gs,"__esModule",{value:!0});var Wl=q(),_s=ae(),cr=N(),Ur=Vl(),$l=cr.parseSemver(process.versions.node),Yl=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._breadcrumbs=typeof e.breadcrumbs=="undefined"?!0:e.breadcrumbs,this._tracing=typeof e.tracing=="undefined"?!1:e.tracing}return t.prototype.setupOnce=function(){if(!(!this._breadcrumbs&&!this._tracing)){var e=zm(this._breadcrumbs,this._tracing),r=require("http");if(cr.fill(r,"get",e),cr.fill(r,"request",e),$l.major&&$l.major>8){var n=require("https");cr.fill(n,"get",e),cr.fill(n,"request",e)}}},t.id="Http",t}();gs.Http=Yl;function zm(t,e){return function(n){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=this,u=Ur.normalizeRequestArgs(this,o),c=u[0],l=Ur.extractUrl(c);if(Ur.isSentryRequest(l))return n.apply(a,u);var d,h,_=_s.getCurrentHub().getScope();if(_&&e&&(h=_.getSpan(),h)){d=h.startChild({description:(c.method||"GET")+" "+l,op:"http.client"});var S=d.toTraceparent();cr.logger.log("[Tracing] Adding sentry-trace header "+S+" to outgoing request to "+l+": "),c.headers=Wl.__assign(Wl.__assign({},c.headers),{"sentry-trace":S})}return n.apply(a,u).once("response",function(T){var R=this;t&&Kl("response",l,R,T),e&&d&&(T.statusCode&&d.setHttpStatus(T.statusCode),d.description=Ur.cleanSpanDescription(d.description,c,R),d.finish())}).once("error",function(){var T=this;t&&Kl("error",l,T),e&&d&&(d.setHttpStatus(500),d.description=Ur.cleanSpanDescription(d.description,c,T),d.finish())})}}}function Kl(t,e,r,n){!_s.getCurrentHub().getIntegration(Yl)||_s.getCurrentHub().addBreadcrumb({category:"http",data:{method:r.method,status_code:n&&n.statusCode,url:e},type:"http"},{event:t,request:r,response:n})}});var bs=b(ys=>{Object.defineProperty(ys,"__esModule",{value:!0});var Vm=ae(),ms=N(),Wm=2e3;function $m(t){console.error(t&&t.stack?t.stack:t);var e=Vm.getCurrentHub().getClient();if(e===void 0){ms.logger.warn("No NodeClient was defined, we are exiting the process now."),global.process.exit(1);return}var r=e.getOptions(),n=r&&r.shutdownTimeout&&r.shutdownTimeout>0&&r.shutdownTimeout||Wm;ms.forget(e.close(n).then(function(i){i||ms.logger.warn("We reached the timeout for emptying the request buffer, still exiting now!"),global.process.exit(1)}))}ys.logAndExitProcess=$m});var Zl=b(Ss=>{Object.defineProperty(Ss,"__esModule",{value:!0});var Xl=ae(),Ym=se(),Km=N(),Ql=bs(),Jm=function(){function t(e){e===void 0&&(e={}),this._options=e,this.name=t.id,this.handler=this._makeErrorHandler()}return t.prototype.setupOnce=function(){global.process.on("uncaughtException",this.handler.bind(this))},t.prototype._makeErrorHandler=function(){var e=this,r=2e3,n=!1,i=!1,o=!1,s;return function(a){var u=Ql.logAndExitProcess,c=Xl.getCurrentHub().getClient();if(e._options.onFatalError?u=e._options.onFatalError:c&&c.getOptions().onFatalError&&(u=c.getOptions().onFatalError),n)o?(Km.logger.warn("uncaught exception after calling fatal error shutdown callback - this is bad! forcing shutdown"),Ql.logAndExitProcess(a)):i||(i=!0,setTimeout(function(){o||(o=!0,u(s,a))},r));else{var l=Xl.getCurrentHub();s=a,n=!0,l.getIntegration(t)?l.withScope(function(d){d.setLevel(Ym.Severity.Fatal),l.captureException(a,{originalException:a,data:{mechanism:{handled:!1,type:"onuncaughtexception"}}}),o||(o=!0,u(a))}):o||(o=!0,u(a))}}},t.id="OnUncaughtException",t}();Ss.OnUncaughtException=Jm});var tf=b(Es=>{Object.defineProperty(Es,"__esModule",{value:!0});var Xm=ae(),ef=N(),Qm=bs(),Zm=function(){function t(e){e===void 0&&(e={mode:"warn"}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){global.process.on("unhandledRejection",this.sendUnhandledPromise.bind(this))},t.prototype.sendUnhandledPromise=function(e,r){var n=Xm.getCurrentHub();if(!n.getIntegration(t)){this._handleRejection(e);return}var i=r.domain&&r.domain.sentryContext||{};n.withScope(function(o){o.setExtra("unhandledPromiseRejection",!0),i.user&&o.setUser(i.user),i.tags&&o.setTags(i.tags),i.extra&&o.setExtras(i.extra),n.captureException(e,{originalException:r,data:{mechanism:{handled:!1,type:"onunhandledrejection"}}})}),this._handleRejection(e)},t.prototype._handleRejection=function(e){var r="This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:";this._options.mode==="warn"?ef.consoleSandbox(function(){console.warn(r),console.error(e&&e.stack?e.stack:e)}):this._options.mode==="strict"&&(ef.consoleSandbox(function(){console.warn(r)}),Qm.logAndExitProcess(e))},t.id="OnUnhandledRejection",t}();Es.OnUnhandledRejection=Zm});var of=b(Ts=>{Object.defineProperty(Ts,"__esModule",{value:!0});var rf=q(),nf=ae(),lr=N(),ey=Go(),ty="cause",ry=5,ny=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._key=e.key||ty,this._limit=e.limit||ry}return t.prototype.setupOnce=function(){nf.addGlobalEventProcessor(function(e,r){var n=nf.getCurrentHub().getIntegration(t);if(n){var i=n._handler&&n._handler.bind(n);return typeof i=="function"?i(e,r):e}return e})},t.prototype._handler=function(e,r){var n=this;return!e.exception||!e.exception.values||!r||!lr.isInstanceOf(r.originalException,Error)?lr.SyncPromise.resolve(e):new lr.SyncPromise(function(i){n._walkErrorTree(r.originalException,n._key).then(function(o){e&&e.exception&&e.exception.values&&(e.exception.values=rf.__spread(o,e.exception.values)),i(e)}).then(null,function(){i(e)})})},t.prototype._walkErrorTree=function(e,r,n){var i=this;return n===void 0&&(n=[]),!lr.isInstanceOf(e[r],Error)||n.length+1>=this._limit?lr.SyncPromise.resolve(n):new lr.SyncPromise(function(o,s){ey.getExceptionFromError(e[r]).then(function(a){i._walkErrorTree(e[r],r,rf.__spread([a],n)).then(o).then(null,function(){s()})}).then(null,function(){s()})})},t.id="LinkedErrors",t}();Ts.LinkedErrors=ny});var cf=b(Os=>{Object.defineProperty(Os,"__esModule",{value:!0});var sf=q(),af=require("fs"),uf=require("path"),ws;function iy(){try{return require.cache?Object.keys(require.cache):[]}catch{return[]}}function oy(){var t=require.main&&require.main.paths||[],e=iy(),r={},n={};return e.forEach(function(i){var o=i,s=function(){var a=o;if(o=uf.dirname(a),!(!o||a===o||n[a])){if(t.indexOf(o)<0)return s();var u=uf.join(a,"package.json");if(n[a]=!0,!af.existsSync(u))return s();try{var c=JSON.parse(af.readFileSync(u,"utf8"));r[c.name]=c.version}catch{}}};s()}),r}var sy=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){var n=this;e(function(i){return r().getIntegration(t)?sf.__assign(sf.__assign({},i),{modules:n._getModules()}):i})},t.prototype._getModules=function(){return ws||(ws=oy()),ws},t.id="Modules",t}();Os.Modules=sy});var Cs=b(mt=>{Object.defineProperty(mt,"__esModule",{value:!0});var ay=Hl();mt.Console=ay.Console;var uy=Jl();mt.Http=uy.Http;var cy=Zl();mt.OnUncaughtException=cy.OnUncaughtException;var ly=tf();mt.OnUnhandledRejection=ly.OnUnhandledRejection;var fy=of();mt.LinkedErrors=fy.LinkedErrors;var dy=cf();mt.Modules=dy.Modules});var Rs=b(Ve=>{Object.defineProperty(Ve,"__esModule",{value:!0});var Hr=q(),yt=ae(),lf=Ee(),ff=se(),xs=N(),py=require("domain"),hy=ds(),Br=Cs();Ve.defaultIntegrations=[new yt.Integrations.InboundFilters,new yt.Integrations.FunctionToString,new Br.Console,new Br.Http,new Br.OnUncaughtException,new Br.OnUnhandledRejection,new Br.LinkedErrors];function vy(t){t===void 0&&(t={});var e,r=lf.getMainCarrier(),n=((e=r.__SENTRY__)===null||e===void 0?void 0:e.integrations)||[];if(t.defaultIntegrations=t.defaultIntegrations===!1?[]:Hr.__spread(Array.isArray(t.defaultIntegrations)?t.defaultIntegrations:Ve.defaultIntegrations,n),t.dsn===void 0&&process.env.SENTRY_DSN&&(t.dsn=process.env.SENTRY_DSN),t.tracesSampleRate===void 0&&process.env.SENTRY_TRACES_SAMPLE_RATE){var i=parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE);isFinite(i)&&(t.tracesSampleRate=i)}if(t.release===void 0){var o=df();o!==void 0?t.release=o:t.autoSessionTracking=!1}t.environment===void 0&&process.env.SENTRY_ENVIRONMENT&&(t.environment=process.env.SENTRY_ENVIRONMENT),t.autoSessionTracking===void 0&&t.dsn!==void 0&&(t.autoSessionTracking=!0),py.active&&lf.setHubOnCarrier(r,yt.getCurrentHub()),yt.initAndBind(hy.NodeClient,t),t.autoSessionTracking&&by()}Ve.init=vy;function _y(){return yt.getCurrentHub().lastEventId()}Ve.lastEventId=_y;function gy(t){return Hr.__awaiter(this,void 0,void 0,function(){var e;return Hr.__generator(this,function(r){return e=yt.getCurrentHub().getClient(),e?[2,e.flush(t)]:(xs.logger.warn("Cannot flush events. No client defined."),[2,Promise.resolve(!1)])})})}Ve.flush=gy;function my(t){return Hr.__awaiter(this,void 0,void 0,function(){var e;return Hr.__generator(this,function(r){return e=yt.getCurrentHub().getClient(),e?[2,e.close(t)]:(xs.logger.warn("Cannot flush events and disable SDK. No client defined."),[2,Promise.resolve(!1)])})})}Ve.close=my;function yy(t){if(t===void 0)return!1;var e=t&&t.getOptions();return e&&e.autoSessionTracking!==void 0?e.autoSessionTracking:!1}Ve.isAutoSessionTrackingEnabled=yy;function df(t){if(process.env.SENTRY_RELEASE)return process.env.SENTRY_RELEASE;var e=xs.getGlobalObject();return e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id?e.SENTRY_RELEASE.id:process.env.GITHUB_SHA||process.env.COMMIT_REF||process.env.VERCEL_GIT_COMMIT_SHA||process.env.VERCEL_GITHUB_COMMIT_SHA||process.env.VERCEL_GITLAB_COMMIT_SHA||process.env.VERCEL_BITBUCKET_COMMIT_SHA||process.env.ZEIT_GITHUB_COMMIT_SHA||process.env.ZEIT_GITLAB_COMMIT_SHA||process.env.ZEIT_BITBUCKET_COMMIT_SHA||t}Ve.getSentryRelease=df;function by(){var t=yt.getCurrentHub();t.startSession(),process.on("beforeExit",function(){var e,r=(e=t.getScope())===null||e===void 0?void 0:e.getSession(),n=[ff.SessionStatus.Exited,ff.SessionStatus.Crashed];r&&!n.includes(r.status)&&t.endSession()})}});var hf=b(As=>{Object.defineProperty(As,"__esModule",{value:!0});var pf=q(),Xn=require("fs"),Is=require("path");function Sy(t){var e=Is.resolve(t);if(!Xn.existsSync(e))throw new Error("Cannot read contents of "+e+". Directory does not exist.");if(!Xn.statSync(e).isDirectory())throw new Error("Cannot read contents of "+e+", because it is not a directory.");var r=function(n){return Xn.readdirSync(n).reduce(function(i,o){var s=Is.join(n,o);return Xn.statSync(s).isDirectory()?pf.__spread(i,r(s)):pf.__spread(i,[s])},[])};return r(e).map(function(n){return Is.relative(e,n)})}As.deepReadDirSync=Sy});var bt=b(fr=>{Object.defineProperty(fr,"__esModule",{value:!0});var vf;(function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"})(vf=fr.SpanStatus||(fr.SpanStatus={}));(function(t){function e(r){if(r<400&&r>=100)return t.Ok;if(r>=400&&r<500)switch(r){case 401:return t.Unauthenticated;case 403:return t.PermissionDenied;case 404:return t.NotFound;case 409:return t.AlreadyExists;case 413:return t.FailedPrecondition;case 429:return t.ResourceExhausted;default:return t.InvalidArgument}if(r>=500&&r<600)switch(r){case 501:return t.Unimplemented;case 503:return t.Unavailable;case 504:return t.DeadlineExceeded;default:return t.InternalError}return t.UnknownError}t.fromHttpCode=e})(vf=fr.SpanStatus||(fr.SpanStatus={}))});var St=b(We=>{Object.defineProperty(We,"__esModule",{value:!0});var _f=Ee();We.TRACEPARENT_REGEXP=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Ey(t){t===void 0&&(t=(e=_f.getCurrentHub().getClient())===null||e===void 0?void 0:e.getOptions());var e;return!!t&&("tracesSampleRate"in t||"tracesSampler"in t)}We.hasTracingEnabled=Ey;function Ty(t){var e=t.match(We.TRACEPARENT_REGEXP);if(e){var r=void 0;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}}We.extractTraceparentData=Ty;function wy(t){t===void 0&&(t=_f.getCurrentHub());var e,r;return(r=(e=t)===null||e===void 0?void 0:e.getScope())===null||r===void 0?void 0:r.getTransaction()}We.getActiveTransaction=wy;function Oy(t){return t/1e3}We.msToSec=Oy;function Cy(t){return t*1e3}We.secToMs=Cy;var xy=N();We.stripUrlQueryAndFragment=xy.stripUrlQueryAndFragment});var yf=b(Ps=>{Object.defineProperty(Ps,"__esModule",{value:!0});var Ms=N(),gf=bt(),Ry=St();function Iy(){Ms.addInstrumentationHandler({callback:mf,type:"error"}),Ms.addInstrumentationHandler({callback:mf,type:"unhandledrejection"})}Ps.registerErrorInstrumentation=Iy;function mf(){var t=Ry.getActiveTransaction();t&&(Ms.logger.log("[Tracing] Transaction: "+gf.SpanStatus.InternalError+" -> Global error occured"),t.setStatus(gf.SpanStatus.InternalError))}});var Ns=b(Qn=>{Object.defineProperty(Qn,"__esModule",{value:!0});Qn.FINISH_REASON_TAG="finishReason";Qn.IDLE_TRANSACTION_FINISH_REASONS=["heartbeatFailed","idleTimeout","documentHidden"]});var ei=b(Zn=>{Object.defineProperty(Zn,"__esModule",{value:!0});var dr=q(),Lt=N(),qs=bt(),Ay=function(){function t(e){e===void 0&&(e=1e3),this.spans=[],this._maxlen=e}return t.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},t}();Zn.SpanRecorder=Ay;var My=function(){function t(e){if(this.traceId=Lt.uuid4(),this.spanId=Lt.uuid4().substring(16),this.startTimestamp=Lt.timestampWithMs(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return t.prototype.child=function(e){return this.startChild(e)},t.prototype.startChild=function(e){var r=new t(dr.__assign(dr.__assign({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r),r.transaction=this.transaction,r},t.prototype.setTag=function(e,r){var n;return this.tags=dr.__assign(dr.__assign({},this.tags),(n={},n[e]=r,n)),this},t.prototype.setData=function(e,r){var n;return this.data=dr.__assign(dr.__assign({},this.data),(n={},n[e]=r,n)),this},t.prototype.setStatus=function(e){return this.status=e,this},t.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var r=qs.SpanStatus.fromHttpCode(e);return r!==qs.SpanStatus.UnknownError&&this.setStatus(r),this},t.prototype.isSuccess=function(){return this.status===qs.SpanStatus.Ok},t.prototype.finish=function(e){this.endTimestamp=typeof e=="number"?e:Lt.timestampWithMs()},t.prototype.toTraceparent=function(){var e="";return this.sampled!==void 0&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},t.prototype.toContext=function(){return Lt.dropUndefinedKeys({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(e){var r,n,i,o,s;return this.data=(r=e.data,r??{}),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(n=e.spanId,n??this.spanId),this.startTimestamp=(i=e.startTimestamp,i??this.startTimestamp),this.status=e.status,this.tags=(o=e.tags,o??{}),this.traceId=(s=e.traceId,s??this.traceId),this},t.prototype.getTraceContext=function(){return Lt.dropUndefinedKeys({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return Lt.dropUndefinedKeys({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}();Zn.Span=My});var ti=b(ks=>{Object.defineProperty(ks,"__esModule",{value:!0});var pr=q(),bf=Ee(),Py=se(),hr=N(),Sf=ei(),Ny=function(t){pr.__extends(e,t);function e(r,n){var i=t.call(this,r)||this;return i._measurements={},i._hub=bf.getCurrentHub(),hr.isInstanceOf(n,bf.Hub)&&(i._hub=n),i.name=r.name||"",i.metadata=r.metadata||{},i._trimEnd=r.trimEnd,i.transaction=i,i}return e.prototype.setName=function(r){this.name=r},e.prototype.initSpanRecorder=function(r){r===void 0&&(r=1e3),this.spanRecorder||(this.spanRecorder=new Sf.SpanRecorder(r)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(r){this._measurements=pr.__assign({},r)},e.prototype.setMetadata=function(r){this.metadata=pr.__assign(pr.__assign({},this.metadata),r)},e.prototype.finish=function(r){var n=this,i,o,s,a,u;if(this.endTimestamp===void 0){if(this.name||(hr.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,r),this.sampled!==!0){hr.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),(u=(s=(i=this._hub.getClient())===null||i===void 0?void 0:(o=i).getTransport)===null||s===void 0?void 0:(a=s.call(o)).recordLostEvent)===null||u===void 0||u.call(a,Py.Outcome.SampleRate,"transaction");return}var c=this.spanRecorder?this.spanRecorder.spans.filter(function(h){return h!==n&&h.endTimestamp}):[];this._trimEnd&&c.length>0&&(this.endTimestamp=c.reduce(function(h,_){return h.endTimestamp&&_.endTimestamp?h.endTimestamp>_.endTimestamp?h:_:h}).endTimestamp);var l={contexts:{trace:this.getTraceContext()},spans:c,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata},d=Object.keys(this._measurements).length>0;return d&&(hr.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),hr.logger.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(l)}},e.prototype.toContext=function(){var r=t.prototype.toContext.call(this);return hr.dropUndefinedKeys(pr.__assign(pr.__assign({},r),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(r){var n;return t.prototype.updateWithContext.call(this,r),this.name=(n=r.name,n??""),this._trimEnd=r.trimEnd,this},e}(Sf.Span);ks.Transaction=Ny});var ni=b(Et=>{Object.defineProperty(Et,"__esModule",{value:!0});var Ds=q(),de=N(),ri=Ns(),qy=ei(),Ef=bt(),ky=ti();Et.DEFAULT_IDLE_TIMEOUT=1e3;Et.HEARTBEAT_INTERVAL=5e3;var Tf=function(t){Ds.__extends(e,t);function e(r,n,i,o){i===void 0&&(i="");var s=t.call(this,o)||this;return s._pushActivity=r,s._popActivity=n,s.transactionSpanId=i,s}return e.prototype.add=function(r){var n=this;r.spanId!==this.transactionSpanId&&(r.finish=function(i){r.endTimestamp=typeof i=="number"?i:de.timestampWithMs(),n._popActivity(r.spanId)},r.endTimestamp===void 0&&this._pushActivity(r.spanId)),t.prototype.add.call(this,r)},e}(qy.SpanRecorder);Et.IdleTransactionSpanRecorder=Tf;var Dy=function(t){Ds.__extends(e,t);function e(r,n,i,o){i===void 0&&(i=Et.DEFAULT_IDLE_TIMEOUT),o===void 0&&(o=!1);var s=t.call(this,r,n)||this;return s._idleHub=n,s._idleTimeout=i,s._onScope=o,s.activities={},s._heartbeatCounter=0,s._finished=!1,s._beforeFinishCallbacks=[],n&&o&&(wf(n),de.logger.log("Setting idle transaction on scope. Span ID: "+s.spanId),n.configureScope(function(a){return a.setSpan(s)})),s._initTimeout=setTimeout(function(){s._finished||s.finish()},s._idleTimeout),s}return e.prototype.finish=function(r){var n,i,o=this;if(r===void 0&&(r=de.timestampWithMs()),this._finished=!0,this.activities={},this.spanRecorder){de.logger.log("[Tracing] finishing IdleTransaction",new Date(r*1e3).toISOString(),this.op);try{for(var s=Ds.__values(this._beforeFinishCallbacks),a=s.next();!a.done;a=s.next()){var u=a.value;u(this,r)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter(function(c){if(c.spanId===o.spanId)return!0;c.endTimestamp||(c.endTimestamp=r,c.setStatus(Ef.SpanStatus.Cancelled),de.logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(c,void 0,2)));var l=c.startTimestamp<r;return l||de.logger.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(c,void 0,2)),l}),de.logger.log("[Tracing] flushing IdleTransaction")}else de.logger.log("[Tracing] No active IdleTransaction");return this._onScope&&wf(this._idleHub),t.prototype.finish.call(this,r)},e.prototype.registerBeforeFinishCallback=function(r){this._beforeFinishCallbacks.push(r)},e.prototype.initSpanRecorder=function(r){var n=this;if(!this.spanRecorder){var i=function(s){n._finished||n._pushActivity(s)},o=function(s){n._finished||n._popActivity(s)};this.spanRecorder=new Tf(i,o,this.spanId,r),de.logger.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)},e.prototype._pushActivity=function(r){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),de.logger.log("[Tracing] pushActivity: "+r),this.activities[r]=!0,de.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(r){var n=this;if(this.activities[r]&&(de.logger.log("[Tracing] popActivity "+r),delete this.activities[r],de.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){var i=this._idleTimeout,o=de.timestampWithMs()+i/1e3;setTimeout(function(){n._finished||(n.setTag(ri.FINISH_REASON_TAG,ri.IDLE_TRANSACTION_FINISH_REASONS[1]),n.finish(o))},i)}},e.prototype._beat=function(){if(!this._finished){var r=Object.keys(this.activities).join("");r===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=r,this._heartbeatCounter>=3?(de.logger.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(Ef.SpanStatus.DeadlineExceeded),this.setTag(ri.FINISH_REASON_TAG,ri.IDLE_TRANSACTION_FINISH_REASONS[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var r=this;de.logger.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(function(){r._beat()},Et.HEARTBEAT_INTERVAL)},e}(ky.Transaction);Et.IdleTransaction=Dy;function wf(t){if(t){var e=t.getScope();if(e){var r=e.getTransaction();r&&e.setSpan(void 0)}}}});var oi=b((Gr,zr)=>{Object.defineProperty(Gr,"__esModule",{value:!0});var Ls=q(),Of=Ee(),ii=se(),qe=N(),Ly=yf(),Fy=ni(),jy=ti(),Uy=St();function Hy(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function Cf(t,e,r){if(!Uy.hasTracingEnabled(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setMetadata({transactionSampling:{method:ii.TransactionSamplingMethod.Explicit}}),t;var n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(r),t.setMetadata({transactionSampling:{method:ii.TransactionSamplingMethod.Sampler,rate:Number(n)}})):r.parentSampled!==void 0?(n=r.parentSampled,t.setMetadata({transactionSampling:{method:ii.TransactionSamplingMethod.Inheritance}})):(n=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:ii.TransactionSamplingMethod.Rate,rate:Number(n)}})),By(n)?n?(t.sampled=Math.random()<n,t.sampled?(qe.logger.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(qe.logger.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(n)+")"),t)):(qe.logger.log("[Tracing] Discarding transaction because "+(typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(qe.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function By(t){return isNaN(t)||!(typeof t=="number"||typeof t=="boolean")?(qe.logger.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1):t<0||t>1?(qe.logger.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1):!0}function Gy(t,e){var r,n,i=((r=this.getClient())===null||r===void 0?void 0:r.getOptions())||{},o=new jy.Transaction(t,this);return o=Cf(o,i,Ls.__assign({parentSampled:t.parentSampled,transactionContext:t},e)),o.sampled&&o.initSpanRecorder((n=i._experiments)===null||n===void 0?void 0:n.maxSpans),o}function zy(t,e,r,n,i){var o,s,a=((o=t.getClient())===null||o===void 0?void 0:o.getOptions())||{},u=new Fy.IdleTransaction(e,t,r,n);return u=Cf(u,a,Ls.__assign({parentSampled:e.parentSampled,transactionContext:e},i)),u.sampled&&u.initSpanRecorder((s=a._experiments)===null||s===void 0?void 0:s.maxSpans),u}Gr.startIdleTransaction=zy;function xf(){var t=Of.getMainCarrier();!t.__SENTRY__||(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Gy),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Hy))}Gr._addTracingExtensions=xf;function Vy(){var t=Of.getMainCarrier();if(!!t.__SENTRY__){var e={mongodb:function(){var n=qe.dynamicRequire(zr,"./integrations/node/mongo");return new n.Mongo},mongoose:function(){var n=qe.dynamicRequire(zr,"./integrations/node/mongo");return new n.Mongo({mongoose:!0})},mysql:function(){var n=qe.dynamicRequire(zr,"./integrations/node/mysql");return new n.Mysql},pg:function(){var n=qe.dynamicRequire(zr,"./integrations/node/postgres");return new n.Postgres}},r=Object.keys(e).filter(function(n){return!!qe.loadModule(n)}).map(function(n){try{return e[n]()}catch{return}}).filter(function(n){return n});r.length>0&&(t.__SENTRY__.integrations=Ls.__spread(t.__SENTRY__.integrations||[],r))}}function Wy(){xf(),qe.isNodeEnv()&&Vy(),Ly.registerErrorInstrumentation()}Gr.addExtensionMethods=Wy});var If=b(js=>{Object.defineProperty(js,"__esModule",{value:!0});var Fs=q(),$y=N(),Yy=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}return t.prototype.setupOnce=function(){if(!this._router){$y.logger.error("ExpressIntegration is missing an Express instance");return}Xy(this._router,this._methods)},t.id="Express",t}();js.Express=Yy;function Rf(t,e){var r=t.length;switch(r){case 2:return function(n,i){var o=i.__sentry_transaction;if(o){var s=o.startChild({description:t.name,op:"express.middleware."+e});i.once("finish",function(){s.finish()})}return t.call(this,n,i)};case 3:return function(n,i,o){var s,a=i.__sentry_transaction,u=(s=a)===null||s===void 0?void 0:s.startChild({description:t.name,op:"express.middleware."+e});t.call(this,n,i,function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var d;(d=u)===null||d===void 0||d.finish(),o.call.apply(o,Fs.__spread([this],c))})};case 4:return function(n,i,o,s){var a,u=o.__sentry_transaction,c=(a=u)===null||a===void 0?void 0:a.startChild({description:t.name,op:"express.middleware."+e});t.call(this,n,i,o,function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];var h;(h=c)===null||h===void 0||h.finish(),s.call.apply(s,Fs.__spread([this],l))})};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+r)}}function Ky(t,e){return t.map(function(r){return typeof r=="function"?Rf(r,e):Array.isArray(r)?r.map(function(n){return typeof n=="function"?Rf(n,e):n}):r})}function Jy(t,e){var r=t[e];return t[e]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return r.call.apply(r,Fs.__spread([this],Ky(n,e)))},t}function Xy(t,e){e===void 0&&(e=[]),e.forEach(function(r){return Jy(t,r)})}});var Af=b(Us=>{Object.defineProperty(Us,"__esModule",{value:!0});var Vr=N(),Qy=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._usePgNative=!!e.usePgNative}return t.prototype.setupOnce=function(e,r){var n,i=Vr.loadModule("pg");if(!i){Vr.logger.error("Postgres Integration was unable to require `pg` package.");return}if(this._usePgNative&&!((n=i.native)===null||n===void 0?void 0:n.Client)){Vr.logger.error("Postgres Integration was unable to access 'pg-native' bindings.");return}var o=(this._usePgNative?i.native:i).Client;Vr.fill(o.prototype,"query",function(s){return function(a,u,c){var l,d,h,_=r().getScope(),S=(l=_)===null||l===void 0?void 0:l.getSpan(),T=(d=S)===null||d===void 0?void 0:d.startChild({description:typeof a=="string"?a:a.text,op:"db"});if(typeof c=="function")return s.call(this,a,u,function(A,F){var k;(k=T)===null||k===void 0||k.finish(),c(A,F)});if(typeof u=="function")return s.call(this,a,function(A,F){var k;(k=T)===null||k===void 0||k.finish(),u(A,F)});var R=typeof u!="undefined"?s.call(this,a,u):s.call(this,a);return Vr.isThenable(R)?R.then(function(A){var F;return(F=T)===null||F===void 0||F.finish(),A}):((h=T)===null||h===void 0||h.finish(),R)}})},t.id="Postgres",t}();Us.Postgres=Qy});var Mf=b(Bs=>{Object.defineProperty(Bs,"__esModule",{value:!0});var Hs=N(),Zy=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){var n=Hs.loadModule("mysql/lib/Connection.js");if(!n){Hs.logger.error("Mysql Integration was unable to require `mysql` package.");return}Hs.fill(n,"createQuery",function(i){return function(o,s,a){var u,c,l=r().getScope(),d=(u=l)===null||u===void 0?void 0:u.getSpan(),h=(c=d)===null||c===void 0?void 0:c.startChild({description:typeof o=="string"?o:o.sql,op:"db"});return typeof a=="function"?i.call(this,o,s,function(_,S,T){var R;(R=h)===null||R===void 0||R.finish(),a(_,S,T)}):typeof s=="function"?i.call(this,o,function(_,S,T){var R;(R=h)===null||R===void 0||R.finish(),s(_,S,T)}):i.call(this,o,s,a)}})},t.id="Mysql",t}();Bs.Mysql=Zy});var Pf=b(zs=>{Object.defineProperty(zs,"__esModule",{value:!0});var Gs=q(),si=N(),eb=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],tb={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},rb=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:eb,this._describeOperations="describeOperations"in e?e.describeOperations:!0,this._useMongoose=!!e.useMongoose}return t.prototype.setupOnce=function(e,r){var n=this._useMongoose?"mongoose":"mongodb",i=si.loadModule(n);if(!i){si.logger.error("Mongo Integration was unable to require `"+n+"` package.");return}this._instrumentOperations(i.Collection,this._operations,r)},t.prototype._instrumentOperations=function(e,r,n){var i=this;r.forEach(function(o){return i._patchOperation(e,o,n)})},t.prototype._patchOperation=function(e,r,n){if(r in e.prototype){var i=this._getSpanContextFromOperationArguments.bind(this);si.fill(e.prototype,r,function(o){return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var u,c,l,d,h=s[s.length-1],_=n().getScope(),S=(u=_)===null||u===void 0?void 0:u.getSpan();if(typeof h!="function"||r==="mapReduce"&&s.length===2){var T=(c=S)===null||c===void 0?void 0:c.startChild(i(this,r,s)),R=o.call.apply(o,Gs.__spread([this],s));return si.isThenable(R)?R.then(function(F){var k;return(k=T)===null||k===void 0||k.finish(),F}):((l=T)===null||l===void 0||l.finish(),R)}var A=(d=S)===null||d===void 0?void 0:d.startChild(i(this,r,s.slice(0,-1)));return o.call.apply(o,Gs.__spread([this],s.slice(0,-1),[function(F,k){var xe;(xe=A)===null||xe===void 0||xe.finish(),h(F,k)}]))}})}},t.prototype._getSpanContextFromOperationArguments=function(e,r,n){var i={collectionName:e.collectionName,dbName:e.dbName,namespace:e.namespace},o={op:"db",description:r,data:i},s=tb[r],a=Array.isArray(this._describeOperations)?this._describeOperations.includes(r):this._describeOperations;if(!s||!a)return o;try{if(r==="mapReduce"){var u=Gs.__read(n,2),c=u[0],l=u[1];i[s[0]]=typeof c=="string"?c:c.name||"<anonymous>",i[s[1]]=typeof l=="string"?l:l.name||"<anonymous>"}else for(var d=0;d<s.length;d++)i[s[d]]=JSON.stringify(n[d])}catch{}return o},t.id="Mongo",t}();zs.Mongo=rb});var kf=b(Ws=>{Object.defineProperty(Ws,"__esModule",{value:!0});var Vs=N(),Nf=Ns(),qf=bt(),nb=St(),ai=Vs.getGlobalObject();function ib(){ai&&ai.document?ai.document.addEventListener("visibilitychange",function(){var t=nb.getActiveTransaction();ai.document.hidden&&t&&(Vs.logger.log("[Tracing] Transaction: "+qf.SpanStatus.Cancelled+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus(qf.SpanStatus.Cancelled),t.setTag("visibilitychange","document.hidden"),t.setTag(Nf.FINISH_REASON_TAG,Nf.IDLE_TRANSACTION_FINISH_REASONS[2]),t.finish())}):Vs.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}Ws.registerBackgroundTabDetection=ib});var ui=b($s=>{Object.defineProperty($s,"__esModule",{value:!0});$s.bindReporter=function(t,e,r){var n;return function(i){e.value>=0&&(i||r)&&(e.delta=e.value-(n||0),(e.delta||n===void 0)&&(n=e.value,t(e)))}}});var Df=b(Ys=>{Object.defineProperty(Ys,"__esModule",{value:!0});Ys.generateUniqueID=function(){return"v2-"+Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12)}});var ci=b(Ks=>{Object.defineProperty(Ks,"__esModule",{value:!0});var ob=Df();Ks.initMetric=function(t,e){return{name:t,value:e??-1,delta:0,entries:[],id:ob.generateUniqueID()}}});var li=b(Js=>{Object.defineProperty(Js,"__esModule",{value:!0});Js.observe=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if(t==="first-input"&&!("PerformanceEventTiming"in self))return;var r=new PerformanceObserver(function(n){return n.getEntries().map(e)});return r.observe({type:t,buffered:!0}),r}}catch{}}});var Wr=b(Xs=>{Object.defineProperty(Xs,"__esModule",{value:!0});var sb=N();Xs.onHidden=function(t,e){var r=function(n){(n.type==="pagehide"||sb.getGlobalObject().document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)}});var Lf=b(Qs=>{Object.defineProperty(Qs,"__esModule",{value:!0});var ab=ui(),ub=ci(),cb=li(),lb=Wr();Qs.getCLS=function(t,e){var r=ub.initMetric("CLS",0),n,i=0,o=[],s=function(u){if(u&&!u.hadRecentInput){var c=o[0],l=o[o.length-1];i&&o.length!==0&&u.startTime-l.startTime<1e3&&u.startTime-c.startTime<5e3?(i+=u.value,o.push(u)):(i=u.value,o=[u]),i>r.value&&(r.value=i,r.entries=o,n&&n())}},a=cb.observe("layout-shift",s);a&&(n=ab.bindReporter(t,r,e),lb.onHidden(function(){a.takeRecords().map(s),n(!0)}))}});var di=b(Zs=>{Object.defineProperty(Zs,"__esModule",{value:!0});var fb=N(),db=Wr(),fi=-1,pb=function(){return fb.getGlobalObject().document.visibilityState==="hidden"?0:1/0},hb=function(){db.onHidden(function(t){var e=t.timeStamp;fi=e},!0)};Zs.getVisibilityWatcher=function(){return fi<0&&(fi=pb(),hb()),{get firstHiddenTime(){return fi}}}});var Ff=b(ea=>{Object.defineProperty(ea,"__esModule",{value:!0});var vb=ui(),_b=di(),gb=ci(),mb=li(),yb=Wr();ea.getFID=function(t,e){var r=_b.getVisibilityWatcher(),n=gb.initMetric("FID"),i,o=function(a){i&&a.startTime<r.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),i(!0))},s=mb.observe("first-input",o);s&&(i=vb.bindReporter(t,n,e),yb.onHidden(function(){s.takeRecords().map(o),s.disconnect()},!0))}});var Uf=b(ta=>{Object.defineProperty(ta,"__esModule",{value:!0});var bb=ui(),Sb=di(),Eb=ci(),Tb=li(),wb=Wr(),jf={};ta.getLCP=function(t,e){var r=Sb.getVisibilityWatcher(),n=Eb.initMetric("LCP"),i,o=function(u){var c=u.startTime;c<r.firstHiddenTime&&(n.value=c,n.entries.push(u)),i&&i()},s=Tb.observe("largest-contentful-paint",o);if(s){i=bb.bindReporter(t,n,e);var a=function(){jf[n.id]||(s.takeRecords().map(o),s.disconnect(),jf[n.id]=!0,i(!0))};["keydown","click"].forEach(function(u){addEventListener(u,a,{once:!0,capture:!0})}),wb.onHidden(a,!0)}}});var Gf=b($r=>{Object.defineProperty($r,"__esModule",{value:!0});var Hf=q(),re=N(),ie=St(),Ob=Lf(),Cb=Ff(),xb=Uf(),Rb=di(),_e=re.getGlobalObject(),Ib=function(){function t(e){e===void 0&&(e=!1);var r,n;this._reportAllChanges=e,this._measurements={},this._performanceCursor=0,!re.isNodeEnv()&&((r=_e)===null||r===void 0?void 0:r.performance)&&((n=_e)===null||n===void 0?void 0:n.document)&&(_e.performance.mark&&_e.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return t.prototype.addPerformanceEntries=function(e){var r=this;if(!(!_e||!_e.performance||!_e.performance.getEntries||!re.browserPerformanceTimeOrigin)){re.logger.log("[Tracing] Adding & adjusting spans using Performance API");var n=ie.msToSec(re.browserPerformanceTimeOrigin),i;if(_e.document&&_e.document.scripts){for(var o=0;o<_e.document.scripts.length;o++)if(_e.document.scripts[o].dataset.entry==="true"){i=_e.document.scripts[o].src;break}}var s,a,u,c;if(_e.performance.getEntries().slice(this._performanceCursor).forEach(function(d){var h=ie.msToSec(d.startTime),_=ie.msToSec(d.duration);if(!(e.op==="navigation"&&n+h<e.startTimestamp))switch(d.entryType){case"navigation":{Ab(e,d,n),u=n+ie.msToSec(d.responseStart),c=n+ie.msToSec(d.requestStart);break}case"mark":case"paint":case"measure":{var S=Mb(e,d,h,_,n);a===void 0&&d.name==="sentry-tracing-init"&&(a=S);var T=Rb.getVisibilityWatcher(),R=d.startTime<T.firstHiddenTime;d.name==="first-paint"&&R&&(re.logger.log("[Measurements] Adding FP"),r._measurements.fp={value:d.startTime},r._measurements["mark.fp"]={value:S}),d.name==="first-contentful-paint"&&R&&(re.logger.log("[Measurements] Adding FCP"),r._measurements.fcp={value:d.startTime},r._measurements["mark.fcp"]={value:S});break}case"resource":{var A=d.name.replace(_e.location.origin,""),F=Bf(e,d,A,h,_,n);s===void 0&&(i||"").indexOf(A)>-1&&(s=F);break}default:}}),s!==void 0&&a!==void 0&&wt(e,{description:"evaluation",endTimestamp:a,op:"script",startTimestamp:s}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),e.op==="pageload"){var l=ie.msToSec(re.browserPerformanceTimeOrigin);typeof u=="number"&&(re.logger.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:(u-e.startTimestamp)*1e3},typeof c=="number"&&c<=u&&(this._measurements["ttfb.requestTime"]={value:(u-c)*1e3})),["fcp","fp","lcp"].forEach(function(d){if(!(!r._measurements[d]||l>=e.startTimestamp)){var h=r._measurements[d].value,_=l+ie.msToSec(h),S=Math.abs((_-e.startTimestamp)*1e3),T=S-h;re.logger.log("[Measurements] Normalized "+d+" from "+h+" to "+S+" ("+T+")"),r._measurements[d].value=S}}),this._measurements["mark.fid"]&&this._measurements.fid&&wt(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+ie.msToSec(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),this._tagMetricInfo(e),e.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._tagMetricInfo=function(e){this._lcpEntry&&(re.logger.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&e.setTag("lcp.element",re.htmlTreeAsString(this._lcpEntry.element)),this._lcpEntry.id&&e.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&e.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),e.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&this._clsEntry.sources&&(re.logger.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.forEach(function(r,n){return e.setTag("cls.source."+(n+1),re.htmlTreeAsString(r.node))}))},t.prototype._trackCLS=function(){var e=this;Ob.getCLS(function(r){var n=r.entries.pop();!n||(re.logger.log("[Measurements] Adding CLS"),e._measurements.cls={value:r.value},e._clsEntry=n)})},t.prototype._trackNavigator=function(e){var r=_e.navigator;if(!!r){var n=r.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),pi(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),pi(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),pi(r.deviceMemory)&&e.setTag("deviceMemory",String(r.deviceMemory)),pi(r.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(r.hardwareConcurrency))}},t.prototype._trackLCP=function(){var e=this;xb.getLCP(function(r){var n=r.entries.pop();if(!!n){var i=ie.msToSec(re.browserPerformanceTimeOrigin),o=ie.msToSec(n.startTime);re.logger.log("[Measurements] Adding LCP"),e._measurements.lcp={value:r.value},e._measurements["mark.lcp"]={value:i+o},e._lcpEntry=n}},this._reportAllChanges)},t.prototype._trackFID=function(){var e=this;Cb.getFID(function(r){var n=r.entries.pop();if(!!n){var i=ie.msToSec(re.browserPerformanceTimeOrigin),o=ie.msToSec(n.startTime);re.logger.log("[Measurements] Adding FID"),e._measurements.fid={value:r.value},e._measurements["mark.fid"]={value:i+o}}})},t}();$r.MetricsInstrumentation=Ib;function Ab(t,e,r){Tt({transaction:t,entry:e,event:"unloadEvent",timeOrigin:r}),Tt({transaction:t,entry:e,event:"redirect",timeOrigin:r}),Tt({transaction:t,entry:e,event:"domContentLoadedEvent",timeOrigin:r}),Tt({transaction:t,entry:e,event:"loadEvent",timeOrigin:r}),Tt({transaction:t,entry:e,event:"connect",timeOrigin:r}),Tt({transaction:t,entry:e,event:"secureConnection",timeOrigin:r,eventEnd:"connectEnd",description:"TLS/SSL"}),Tt({transaction:t,entry:e,event:"fetch",timeOrigin:r,eventEnd:"domainLookupStart",description:"cache"}),Tt({transaction:t,entry:e,event:"domainLookup",timeOrigin:r,description:"DNS"}),Pb(t,e,r)}function Mb(t,e,r,n,i){var o=i+r,s=o+n;return wt(t,{description:e.name,endTimestamp:s,op:e.entryType,startTimestamp:o}),o}function Bf(t,e,r,n,i,o){if(!(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")){var s={};"transferSize"in e&&(s["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(s["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(s["Decoded Body Size"]=e.decodedBodySize);var a=o+n,u=a+i;return wt(t,{description:r,endTimestamp:u,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:a,data:s}),u}}$r.addResourceSpans=Bf;function Tt(t){var e=t.transaction,r=t.entry,n=t.event,i=t.timeOrigin,o=t.eventEnd,s=t.description,a=o?r[o]:r[n+"End"],u=r[n+"Start"];!u||!a||wt(e,{op:"browser",description:s??n,startTimestamp:i+ie.msToSec(u),endTimestamp:i+ie.msToSec(a)})}function Pb(t,e,r){wt(t,{op:"browser",description:"request",startTimestamp:r+ie.msToSec(e.requestStart),endTimestamp:r+ie.msToSec(e.responseEnd)}),wt(t,{op:"browser",description:"response",startTimestamp:r+ie.msToSec(e.responseStart),endTimestamp:r+ie.msToSec(e.responseEnd)})}function wt(t,e){var r=e.startTimestamp,n=Hf.__rest(e,["startTimestamp"]);return r&&t.startTimestamp>r&&(t.startTimestamp=r),t.startChild(Hf.__assign({startTimestamp:r},n))}$r._startChild=wt;function pi(t){return typeof t=="number"&&isFinite(t)}});var ra=b(ot=>{Object.defineProperty(ot,"__esModule",{value:!0});var it=q(),Yr=N(),Nb=bt(),hi=St();ot.DEFAULT_TRACING_ORIGINS=["localhost",/^\//];ot.defaultRequestInstrumentationOptions={traceFetch:!0,traceXHR:!0,tracingOrigins:ot.DEFAULT_TRACING_ORIGINS};function qb(t){var e=it.__assign(it.__assign({},ot.defaultRequestInstrumentationOptions),t),r=e.traceFetch,n=e.traceXHR,i=e.tracingOrigins,o=e.shouldCreateSpanForRequest,s={},a=function(l){if(s[l])return s[l];var d=i;return s[l]=d.some(function(h){return Yr.isMatchingPattern(l,h)})&&!Yr.isMatchingPattern(l,"sentry_key"),s[l]},u=a;typeof o=="function"&&(u=function(l){return a(l)&&o(l)});var c={};r&&Yr.addInstrumentationHandler({callback:function(l){zf(l,u,c)},type:"fetch"}),n&&Yr.addInstrumentationHandler({callback:function(l){Vf(l,u,c)},type:"xhr"})}ot.instrumentOutgoingRequests=qb;function zf(t,e,r){if(!(!hi.hasTracingEnabled()||!(t.fetchData&&e(t.fetchData.url)))){if(t.endTimestamp&&t.fetchData.__span){var n=r[t.fetchData.__span];n&&(t.response?n.setHttpStatus(t.response.status):t.error&&n.setStatus(Nb.SpanStatus.InternalError),n.finish(),delete r[t.fetchData.__span]);return}var i=hi.getActiveTransaction();if(i){var n=i.startChild({data:it.__assign(it.__assign({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=n.spanId,r[n.spanId]=n;var o=t.args[0]=t.args[0],s=t.args[1]=t.args[1]||{},a=s.headers;Yr.isInstanceOf(o,Request)&&(a=o.headers),a?typeof a.append=="function"?a.append("sentry-trace",n.toTraceparent()):Array.isArray(a)?a=it.__spread(a,[["sentry-trace",n.toTraceparent()]]):a=it.__assign(it.__assign({},a),{"sentry-trace":n.toTraceparent()}):a={"sentry-trace":n.toTraceparent()},s.headers=a}}}ot.fetchCallback=zf;function Vf(t,e,r){var n,i;if(!(!hi.hasTracingEnabled()||((n=t.xhr)===null||n===void 0?void 0:n.__sentry_own_request__)||!(((i=t.xhr)===null||i===void 0?void 0:i.__sentry_xhr__)&&e(t.xhr.__sentry_xhr__.url)))){var o=t.xhr.__sentry_xhr__;if(t.endTimestamp&&t.xhr.__sentry_xhr_span_id__){var s=r[t.xhr.__sentry_xhr_span_id__];s&&(s.setHttpStatus(o.status_code),s.finish(),delete r[t.xhr.__sentry_xhr_span_id__]);return}var a=hi.getActiveTransaction();if(a){var s=a.startChild({data:it.__assign(it.__assign({},o.data),{type:"xhr",method:o.method,url:o.url}),description:o.method+" "+o.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=s.spanId,r[t.xhr.__sentry_xhr_span_id__]=s,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",s.toTraceparent())}catch{}}}}ot.xhrCallback=Vf});var Wf=b(na=>{Object.defineProperty(na,"__esModule",{value:!0});var vi=N(),Kr=vi.getGlobalObject();function kb(t,e,r){if(e===void 0&&(e=!0),r===void 0&&(r=!0),!Kr||!Kr.location){vi.logger.warn("Could not initialize routing instrumentation due to invalid location");return}var n=Kr.location.href,i;e&&(i=t({name:Kr.location.pathname,op:"pageload"})),r&&vi.addInstrumentationHandler({callback:function(o){var s=o.to,a=o.from;if(a===void 0&&n&&n.indexOf(s)!==-1){n=void 0;return}a!==s&&(n=void 0,i&&(vi.logger.log("[Tracing] Finishing current transaction with op: "+i.op),i.finish()),i=t({name:Kr.location.pathname,op:"navigation"}))},type:"history"})}na.instrumentRoutingWithDefaults=kb});var Jf=b(jt=>{Object.defineProperty(jt,"__esModule",{value:!0});var st=q(),Ft=N(),Db=oi(),Lb=ni(),Fb=bt(),$f=St(),jb=kf(),Ub=Gf(),_i=ra(),Hb=Wf();jt.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS=600;var Bb=st.__assign({idleTimeout:Lb.DEFAULT_IDLE_TIMEOUT,markBackgroundTransactions:!0,maxTransactionDuration:jt.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS,routingInstrumentation:Hb.instrumentRoutingWithDefaults,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},_i.defaultRequestInstrumentationOptions),Gb=function(){function t(e){this.name=t.id,this._emitOptionsWarning=!1,this._configuredIdleTimeout=void 0;var r=_i.defaultRequestInstrumentationOptions.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&e.tracingOrigins.length!==0?r=e.tracingOrigins:this._emitOptionsWarning=!0),this.options=st.__assign(st.__assign(st.__assign({},Bb),e),{tracingOrigins:r});var n=this.options._metricOptions;this._metrics=new Ub.MetricsInstrumentation(n&&n._reportAllChanges)}return t.prototype.setupOnce=function(e,r){var n=this;this._getCurrentHub=r,this._emitOptionsWarning&&(Ft.logger.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),Ft.logger.warn("[Tracing] We added a reasonable default for you: "+_i.defaultRequestInstrumentationOptions.tracingOrigins));var i=this.options,o=i.routingInstrumentation,s=i.startTransactionOnLocationChange,a=i.startTransactionOnPageLoad,u=i.markBackgroundTransactions,c=i.traceFetch,l=i.traceXHR,d=i.tracingOrigins,h=i.shouldCreateSpanForRequest;o(function(_){return n._createRouteTransaction(_)},a,s),u&&jb.registerBackgroundTabDetection(),_i.instrumentOutgoingRequests({traceFetch:c,traceXHR:l,tracingOrigins:d,shouldCreateSpanForRequest:h})},t.prototype._createRouteTransaction=function(e){var r=this;if(!this._getCurrentHub){Ft.logger.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.");return}var n=this.options,i=n.beforeNavigate,o=n.idleTimeout,s=n.maxTransactionDuration,a=e.op==="pageload"?Yf():void 0,u=st.__assign(st.__assign(st.__assign({},e),a),{trimEnd:!0}),c=typeof i=="function"?i(u):u,l=c===void 0?st.__assign(st.__assign({},u),{sampled:!1}):c;l.sampled===!1&&Ft.logger.log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate."),Ft.logger.log("[Tracing] Starting "+l.op+" transaction on scope");var d=this._getCurrentHub(),h=Ft.getGlobalObject().location,_=Db.startIdleTransaction(d,l,o,!0,{location:h});return _.registerBeforeFinishCallback(function(S,T){r._metrics.addPerformanceEntries(S),zb($f.secToMs(s),S,T)}),_.setTag("idleTimeout",this._configuredIdleTimeout),_},t.id="BrowserTracing",t}();jt.BrowserTracing=Gb;function Yf(){var t=Kf("sentry-trace");if(t)return $f.extractTraceparentData(t)}jt.getHeaderContext=Yf;function Kf(t){var e=Ft.getGlobalObject().document.querySelector("meta[name="+t+"]");return e?e.getAttribute("content"):null}jt.getMetaContent=Kf;function zb(t,e,r){var n=r-e.startTimestamp,i=r&&(n>t||n<0);i&&(e.setStatus(Fb.SpanStatus.DeadlineExceeded),e.setTag("maxTransactionDurationExceeded","true"))}});var gi=b(Jr=>{Object.defineProperty(Jr,"__esModule",{value:!0});var Vb=Jf();Jr.BrowserTracing=Vb.BrowserTracing;var Xf=ra();Jr.instrumentOutgoingRequests=Xf.instrumentOutgoingRequests;Jr.defaultRequestInstrumentationOptions=Xf.defaultRequestInstrumentationOptions});var Qf=b(Ut=>{Object.defineProperty(Ut,"__esModule",{value:!0});var Wb=If();Ut.Express=Wb.Express;var $b=Af();Ut.Postgres=$b.Postgres;var Yb=Mf();Ut.Mysql=Yb.Mysql;var Kb=Pf();Ut.Mongo=Kb.Mongo;var Jb=gi();Ut.BrowserTracing=Jb.BrowserTracing});var td=b(ce=>{Object.defineProperty(ce,"__esModule",{value:!0});var Zf=oi();ce.addExtensionMethods=Zf.addExtensionMethods;var Xb=Qf();ce.Integrations=Xb;var Qb=gi();ce.BrowserTracing=Qb.BrowserTracing;var Zb=ei();ce.Span=Zb.Span;var eS=ti();ce.Transaction=eS.Transaction;var ed=gi();ce.registerRequestInstrumentation=ed.instrumentOutgoingRequests;ce.defaultRequestInstrumentationOptions=ed.defaultRequestInstrumentationOptions;var tS=bt();ce.SpanStatus=tS.SpanStatus;var rS=ni();ce.IdleTransaction=rS.IdleTransaction;var nS=oi();ce.startIdleTransaction=nS.startIdleTransaction;Zf.addExtensionMethods();var Xr=St();ce.extractTraceparentData=Xr.extractTraceparentData;ce.getActiveTransaction=Xr.getActiveTransaction;ce.hasTracingEnabled=Xr.hasTracingEnabled;ce.stripUrlQueryAndFragment=Xr.stripUrlQueryAndFragment;ce.TRACEPARENT_REGEXP=Xr.TRACEPARENT_REGEXP});var rd=b(ia=>{"use strict";ia.parse=aS;ia.serialize=uS;var iS=decodeURIComponent,oS=encodeURIComponent,sS=/; */,mi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function aS(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var r={},n=e||{},i=t.split(sS),o=n.decode||iS,s=0;s<i.length;s++){var a=i[s],u=a.indexOf("=");if(!(u<0)){var c=a.substr(0,u).trim(),l=a.substr(++u,a.length).trim();l[0]=='"'&&(l=l.slice(1,-1)),r[c]==null&&(r[c]=cS(l,o))}}return r}function uS(t,e,r){var n=r||{},i=n.encode||oS;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!mi.test(t))throw new TypeError("argument name is invalid");var o=i(e);if(o&&!mi.test(o))throw new TypeError("argument val is invalid");var s=t+"="+o;if(n.maxAge!=null){var a=n.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(a)}if(n.domain){if(!mi.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain="+n.domain}if(n.path){if(!mi.test(n.path))throw new TypeError("option path is invalid");s+="; Path="+n.path}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function cS(t,e){try{return e(t)}catch{return t}}});var od=b(Bt=>{Object.defineProperty(Bt,"__esModule",{value:!0});var $e=q(),Ht=ae(),lS=td(),nd=se(),vr=N(),fS=rd(),dS=require("domain"),pS=require("os"),hS=require("url"),Qr=Rs();function vS(){return function(e,r,n){var i;e.headers&&vr.isString(e.headers["sentry-trace"])&&(i=lS.extractTraceparentData(e.headers["sentry-trace"]));var o=Ht.startTransaction($e.__assign({name:yi(e,{path:!0,method:!0}),op:"http.server"},i),{request:bi(e)});Ht.getCurrentHub().configureScope(function(s){s.setSpan(o)}),r.__sentry_transaction=o,r.once("finish",function(){setImmediate(function(){_S(o,e),o.setHttpStatus(r.statusCode),o.finish()})}),n()}}Bt.tracingHandler=vS;function _S(t,e){!t||(t.name=yi(e,{path:!0,method:!0}),t.setData("url",e.originalUrl),t.setData("baseUrl",e.baseUrl),t.setData("query",e.query))}function yi(t,e){e===void 0&&(e={});var r,n=(r=t.method)===null||r===void 0?void 0:r.toUpperCase(),i="";t.route?i=""+(t.baseUrl||"")+t.route.path:(t.originalUrl||t.url)&&(i=vr.stripUrlQueryAndFragment(t.originalUrl||t.url||""));var o="";return e.method&&n&&(o+=n),e.method&&e.path&&(o+=" "),e.path&&i&&(o+=i),o}function gS(t,e){var r;switch(e){case"path":return yi(t,{path:!0});case"handler":return((r=t.route)===null||r===void 0?void 0:r.stack[0].name)||"<anonymous>";case"methodPath":default:return yi(t,{path:!0,method:!0})}}var mS=["id","username","email"];function yS(t,e){var r={},n=Array.isArray(e)?e:mS;return n.forEach(function(i){t&&i in t&&(r[i]=t[i])}),r}var bS=["cookies","data","headers","method","query_string","url"];function bi(t,e){e===void 0&&(e=bS);var r={},n=t.headers||t.header||{},i=t.method,o=t.hostname||t.host||n.host||"<no host>",s=t.protocol==="https"||t.secure||(t.socket||{}).encrypted?"https":"http",a=t.originalUrl||t.url||"",u=s+"://"+o+a;return e.forEach(function(c){switch(c){case"headers":r.headers=n;break;case"method":r.method=i;break;case"url":r.url=u;break;case"cookies":r.cookies=t.cookies||fS.parse(n.cookie||"");break;case"query_string":r.query_string=t.query||hS.parse(a||"",!1).query;break;case"data":if(i==="GET"||i==="HEAD")break;t.body!==void 0&&(r.data=vr.isString(t.body)?t.body:JSON.stringify(vr.normalize(t.body)));break;default:({}).hasOwnProperty.call(t,c)&&(r[c]=t[c])}}),r}Bt.extractRequestData=bi;function id(t,e,r){if(r=$e.__assign({ip:!1,request:!0,serverName:!0,transaction:!0,user:!0,version:!0},r),r.version&&(t.contexts=$e.__assign($e.__assign({},t.contexts),{runtime:{name:"node",version:global.process.version}})),r.request){var n=Array.isArray(r.request)?bi(e,r.request):bi(e);t.request=$e.__assign($e.__assign({},t.request),n)}if(r.serverName&&!t.server_name&&(t.server_name=global.process.env.SENTRY_NAME||pS.hostname()),r.user){var i=e.user&&vr.isPlainObject(e.user)?yS(e.user,r.user):{};Object.keys(i)&&(t.user=$e.__assign($e.__assign({},t.user),i))}if(r.ip){var o=e.ip||e.connection&&e.connection.remoteAddress;o&&(t.user=$e.__assign($e.__assign({},t.user),{ip_address:o}))}return r.transaction&&!t.transaction&&(t.transaction=gS(e,r.transaction)),t}Bt.parseRequest=id;function SS(t){var e=Ht.getCurrentHub(),r=e.getClient();if(r&&Qr.isAutoSessionTrackingEnabled(r)){r.initSessionFlusher();var n=e.getScope();n&&n.getSession()&&n.setSession()}return function(o,s,a){if(t&&t.flushTimeout&&t.flushTimeout>0){var u=s.end;s.end=function(l,d,h){var _=this;Qr.flush(t.flushTimeout).then(function(){u.call(_,l,d,h)}).then(null,function(S){vr.logger.error(S)})}}var c=dS.create();c.add(o),c.add(s),c.on("error",a),c.run(function(){var l=Ht.getCurrentHub();l.configureScope(function(d){d.addEventProcessor(function(S){return id(S,o,t)});var h=l.getClient();if(Qr.isAutoSessionTrackingEnabled(h)){var _=l.getScope();_&&_.setRequestSession({status:nd.RequestSessionStatus.Ok})}}),s.once("finish",function(){var d=l.getClient();Qr.isAutoSessionTrackingEnabled(d)&&setImmediate(function(){d&&d._captureRequestSession&&d._captureRequestSession()})}),a()})}}Bt.requestHandler=SS;function ES(t){var e=t.status||t.statusCode||t.status_code||t.output&&t.output.statusCode;return e?parseInt(e,10):500}function TS(t){var e=ES(t);return e>=500}function wS(t){return function(r,n,i,o){var s=t&&t.shouldHandleError||TS;if(s(r)){Ht.withScope(function(a){var u=i.__sentry_transaction;u&&a.getSpan()===void 0&&a.setSpan(u);var c=Ht.getCurrentHub().getClient();if(c&&Qr.isAutoSessionTrackingEnabled(c)){var l=c._sessionFlusher!==void 0;if(l){var d=a.getRequestSession();d&&d.status!==void 0&&(d.status=nd.RequestSessionStatus.Crashed)}}var h=Ht.captureException(r);i.sentry=h,o(r)});return}o(r)}}Bt.errorHandler=wS});var ud=b(H=>{Object.defineProperty(H,"__esModule",{value:!0});var sd=q(),ad=se();H.Severity=ad.Severity;H.Status=ad.Status;var Z=ae();H.addGlobalEventProcessor=Z.addGlobalEventProcessor;H.addBreadcrumb=Z.addBreadcrumb;H.captureException=Z.captureException;H.captureEvent=Z.captureEvent;H.captureMessage=Z.captureMessage;H.configureScope=Z.configureScope;H.getHubFromCarrier=Z.getHubFromCarrier;H.getCurrentHub=Z.getCurrentHub;H.Hub=Z.Hub;H.makeMain=Z.makeMain;H.Scope=Z.Scope;H.startTransaction=Z.startTransaction;H.SDK_VERSION=Z.SDK_VERSION;H.setContext=Z.setContext;H.setExtra=Z.setExtra;H.setExtras=Z.setExtras;H.setTag=Z.setTag;H.setTags=Z.setTags;H.setUser=Z.setUser;H.withScope=Z.withScope;var OS=cs();H.NodeBackend=OS.NodeBackend;var CS=ds();H.NodeClient=CS.NodeClient;var _r=Rs();H.defaultIntegrations=_r.defaultIntegrations;H.init=_r.init;H.lastEventId=_r.lastEventId;H.flush=_r.flush;H.close=_r.close;H.getSentryRelease=_r.getSentryRelease;var xS=hf();H.deepReadDirSync=xS.deepReadDirSync;var RS=Vo();H.SDK_NAME=RS.SDK_NAME;var IS=ae(),AS=Ee(),MS=require("domain"),PS=od();H.Handlers=PS;var NS=Cs(),qS=as();H.Transports=qS;var kS=sd.__assign(sd.__assign({},IS.Integrations),NS);H.Integrations=kS;var Zr=AS.getMainCarrier();Zr.__SENTRY__&&(Zr.__SENTRY__.extensions=Zr.__SENTRY__.extensions||{},Zr.__SENTRY__.extensions.domain=Zr.__SENTRY__.extensions.domain||MS)});var ld=b(sa=>{Object.defineProperty(sa,"__esModule",{value:!0});var cd=q(),oa=N(),DS=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,LS=function(){function t(e){if(e===void 0&&(e={}),this.name=t.id,oa.logger.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=e.angular||oa.getGlobalObject().angular,!this._angular){oa.logger.error("AngularIntegration is missing an Angular instance");return}this._module=this._angular.module(t.moduleName,[])}return t.prototype.setupOnce=function(e,r){var n=this;!this._module||(this._getCurrentHub=r,this._module.config(["$provide",function(i){i.decorator("$exceptionHandler",["$delegate",n._$exceptionHandlerDecorator.bind(n)])}]))},t.prototype._$exceptionHandlerDecorator=function(e){var r=this;return function(n,i){var o=r._getCurrentHub&&r._getCurrentHub();o&&o.getIntegration(t)&&o.withScope(function(s){i&&s.setExtra("cause",i),s.addEventProcessor(function(a){var u=a.exception&&a.exception.values&&a.exception.values[0];if(u){var c=DS.exec(u.value||"");c&&(u.type=c[1],u.value=c[2],a.message=u.type+": "+u.value,a.extra=cd.__assign(cd.__assign({},a.extra),{angularDocs:c[3].substr(0,250)}))}return a}),o.captureException(n)}),e(n,i)}},t.id="AngularJS",t.moduleName="ngSentry",t}();sa.Angular=LS});var fd=b(aa=>{Object.defineProperty(aa,"__esModule",{value:!0});var FS=se(),Si=N(),Ei=Si.getGlobalObject(),jS=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return t.prototype.setupOnce=function(e,r){"console"in Ei&&this._levels.forEach(function(n){n in Ei.console&&Si.fill(Ei.console,n,function(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=r();a.getIntegration(t)&&a.withScope(function(u){u.setLevel(FS.Severity.fromString(n)),u.setExtra("arguments",o),u.addEventProcessor(function(l){return l.logger="console",l});var c=Si.safeJoin(o," ");n==="assert"?o[0]===!1&&(c="Assertion failed: "+(Si.safeJoin(o.slice(1)," ")||"console.assert"),u.setExtra("arguments",o.slice(1)),a.captureMessage(c)):n==="error"&&o[0]instanceof Error?a.captureException(o[0]):a.captureMessage(c)}),i&&Function.prototype.apply.call(i,Ei.console,o)}})})},t.id="CaptureConsole",t}();aa.CaptureConsole=jS});var dd=b(ua=>{Object.defineProperty(ua,"__esModule",{value:!0});var US=q(),HS=N(),BS=function(){function t(e){this.name=t.id,this._options=US.__assign({debugger:!1,stringify:!1},e)}return t.prototype.setupOnce=function(e,r){e(function(n,i){var o=r().getIntegration(t);if(o){if(o._options.debugger)debugger;HS.consoleSandbox(function(){o._options.stringify?(console.log(JSON.stringify(n,null,2)),i&&console.log(JSON.stringify(i,null,2))):(console.log(n),i&&console.log(i))})}return n})},t.id="Debug",t}();ua.Debug=BS});var pd=b(ca=>{Object.defineProperty(ca,"__esModule",{value:!0});var GS=N(),zS=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){e(function(n){var i=r().getIntegration(t);if(i){try{if(i._shouldDropEvent(n,i._previousEvent))return GS.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{return i._previousEvent=n}return i._previousEvent=n}return n})},t.prototype._shouldDropEvent=function(e,r){return r?!!(this._isSameMessageEvent(e,r)||this._isSameExceptionEvent(e,r)):!1},t.prototype._isSameMessageEvent=function(e,r){var n=e.message,i=r.message;return!(!n&&!i||n&&!i||!n&&i||n!==i||!this._isSameFingerprint(e,r)||!this._isSameStacktrace(e,r))},t.prototype._getFramesFromEvent=function(e){var r=e.exception;if(r)try{return r.values[0].stacktrace.frames}catch{return}else if(e.stacktrace)return e.stacktrace.frames},t.prototype._isSameStacktrace=function(e,r){var n=this._getFramesFromEvent(e),i=this._getFramesFromEvent(r);if(!n&&!i)return!0;if(n&&!i||!n&&i||(n=n,i=i,i.length!==n.length))return!1;for(var o=0;o<i.length;o++){var s=i[o],a=n[o];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return!1}return!0},t.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},t.prototype._isSameExceptionEvent=function(e,r){var n=this._getExceptionFromEvent(r),i=this._getExceptionFromEvent(e);return!(!n||!i||n.type!==i.type||n.value!==i.value||!this._isSameFingerprint(e,r)||!this._isSameStacktrace(e,r))},t.prototype._isSameFingerprint=function(e,r){var n=e.fingerprint,i=r.fingerprint;if(!n&&!i)return!0;if(n&&!i||!n&&i)return!1;n=n,i=i;try{return n.join("")===i.join("")}catch{return!1}},t.id="Dedupe",t}();ca.Dedupe=zS});var hd=b(fa=>{Object.defineProperty(fa,"__esModule",{value:!0});var la=N(),VS=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this._Ember=e.Ember||la.getGlobalObject().Ember}return t.prototype.setupOnce=function(e,r){var n=this;if(!this._Ember){la.logger.error("EmberIntegration is missing an Ember instance");return}var i=this._Ember.onerror;this._Ember.onerror=function(o){if(r().getIntegration(t)&&r().captureException(o,{originalException:o}),typeof i=="function")i.call(n._Ember,o);else if(n._Ember.testing)throw o},this._Ember.RSVP.on("error",function(o){r().getIntegration(t)&&r().withScope(function(s){la.isInstanceOf(o,Error)?(s.setExtra("context","Unhandled Promise error detected"),r().captureException(o,{originalException:o})):(s.setExtra("reason",o),r().captureMessage("Unhandled Promise error detected"))})})},t.id="Ember",t}();fa.Ember=VS});var vd=b(da=>{Object.defineProperty(da,"__esModule",{value:!0});var Ot=q(),gr=N(),WS=function(){function t(e){e===void 0&&(e={depth:3}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,r){e(function(n,i){var o=r().getIntegration(t);return o?o.enhanceEventWithErrorData(n,i):n})},t.prototype.enhanceEventWithErrorData=function(e,r){var n;if(!r||!r.originalException||!gr.isError(r.originalException))return e;var i=r.originalException.name||r.originalException.constructor.name,o=this._extractErrorData(r.originalException);if(o){var s=Ot.__assign({},e.contexts),a=gr.normalize(o,this._options.depth);return gr.isPlainObject(a)&&(s=Ot.__assign(Ot.__assign({},e.contexts),(n={},n[i]=Ot.__assign({},a),n))),Ot.__assign(Ot.__assign({},e),{contexts:s})}return e},t.prototype._extractErrorData=function(e){var r,n,i,o;try{var s=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};try{for(var u=Ot.__values(Object.keys(e)),c=u.next();!c.done;c=u.next()){var l=c.value;if(s.indexOf(l)===-1){var d=e[l];a[l]=gr.isError(d)?d.toString():d}}}catch(T){r={error:T}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}if(typeof e.toJSON=="function"){var h=e.toJSON();try{for(var _=Ot.__values(Object.keys(h)),S=_.next();!S.done;S=_.next()){var l=S.value,d=h[l];a[l]=gr.isError(d)?d.toString():d}}catch(T){i={error:T}}finally{try{S&&!S.done&&(o=_.return)&&o.call(_)}finally{if(i)throw i.error}}}return a}catch(T){gr.logger.error("Unable to extract extra data from the Error object:",T)}return null},t.id="ExtraErrorData",t}();da.ExtraErrorData=WS});var gd=b((_d,pa)=>{(function(t){if(typeof _d=="object"&&typeof pa!="undefined")pa.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=t()}})(function(){var t,e,r;return function n(i,o,s){function a(l,d){if(!o[l]){if(!i[l]){var h=typeof require=="function"&&require;if(!d&&h)return h(l,!0);if(u)return u(l,!0);var _=new Error("Cannot find module '"+l+"'");throw _.code="MODULE_NOT_FOUND",_}var S=o[l]={exports:{}};i[l][0].call(S.exports,function(T){var R=i[l][1][T];return a(R||T)},S,S.exports,n,i,o,s)}return o[l].exports}for(var u=typeof require=="function"&&require,c=0;c<s.length;c++)a(s[c]);return a}({1:[function(n,i,o){(function(s){"use strict";var a=s.MutationObserver||s.WebKitMutationObserver,u;if(a){var c=0,l=new a(T),d=s.document.createTextNode("");l.observe(d,{characterData:!0}),u=function(){d.data=c=++c%2}}else if(!s.setImmediate&&typeof s.MessageChannel!="undefined"){var h=new s.MessageChannel;h.port1.onmessage=T,u=function(){h.port2.postMessage(0)}}else"document"in s&&"onreadystatechange"in s.document.createElement("script")?u=function(){var A=s.document.createElement("script");A.onreadystatechange=function(){T(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},s.document.documentElement.appendChild(A)}:u=function(){setTimeout(T,0)};var _,S=[];function T(){_=!0;for(var A,F,k=S.length;k;){for(F=S,S=[],A=-1;++A<k;)F[A]();k=S.length}_=!1}i.exports=R;function R(A){S.push(A)===1&&!_&&u()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,i,o){"use strict";var s=n(1);function a(){}var u={},c=["REJECTED"],l=["FULFILLED"],d=["PENDING"];i.exports=h;function h(I){if(typeof I!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,I!==a&&R(this,I)}h.prototype.catch=function(I){return this.then(null,I)},h.prototype.then=function(I,G){if(typeof I!="function"&&this.state===l||typeof G!="function"&&this.state===c)return this;var L=new this.constructor(a);if(this.state!==d){var W=this.state===l?I:G;S(L,W,this.outcome)}else this.queue.push(new _(L,I,G));return L};function _(I,G,L){this.promise=I,typeof G=="function"&&(this.onFulfilled=G,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}_.prototype.callFulfilled=function(I){u.resolve(this.promise,I)},_.prototype.otherCallFulfilled=function(I){S(this.promise,this.onFulfilled,I)},_.prototype.callRejected=function(I){u.reject(this.promise,I)},_.prototype.otherCallRejected=function(I){S(this.promise,this.onRejected,I)};function S(I,G,L){s(function(){var W;try{W=G(L)}catch(oe){return u.reject(I,oe)}W===I?u.reject(I,new TypeError("Cannot resolve promise with itself")):u.resolve(I,W)})}u.resolve=function(I,G){var L=A(T,G);if(L.status==="error")return u.reject(I,L.value);var W=L.value;if(W)R(I,W);else{I.state=l,I.outcome=G;for(var oe=-1,ye=I.queue.length;++oe<ye;)I.queue[oe].callFulfilled(G)}return I},u.reject=function(I,G){I.state=c,I.outcome=G;for(var L=-1,W=I.queue.length;++L<W;)I.queue[L].callRejected(G);return I};function T(I){var G=I&&I.then;if(I&&(typeof I=="object"||typeof I=="function")&&typeof G=="function")return function(){G.apply(I,arguments)}}function R(I,G){var L=!1;function W(Ie){L||(L=!0,u.reject(I,Ie))}function oe(Ie){L||(L=!0,u.resolve(I,Ie))}function ye(){G(oe,W)}var Re=A(ye);Re.status==="error"&&W(Re.value)}function A(I,G){var L={};try{L.value=I(G),L.status="success"}catch(W){L.status="error",L.value=W}return L}h.resolve=F;function F(I){return I instanceof this?I:u.resolve(new this(a),I)}h.reject=k;function k(I){var G=new this(a);return u.reject(G,I)}h.all=xe;function xe(I){var G=this;if(Object.prototype.toString.call(I)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=I.length,W=!1;if(!L)return this.resolve([]);for(var oe=new Array(L),ye=0,Re=-1,Ie=new this(a);++Re<L;)Je(I[Re],Re);return Ie;function Je(wr,sn){G.resolve(wr).then(Pi,function($t){W||(W=!0,u.reject(Ie,$t))});function Pi($t){oe[sn]=$t,++ye===L&&!W&&(W=!0,u.resolve(Ie,oe))}}}h.race=lt;function lt(I){var G=this;if(Object.prototype.toString.call(I)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=I.length,W=!1;if(!L)return this.resolve([]);for(var oe=-1,ye=new this(a);++oe<L;)Re(I[oe]);return ye;function Re(Ie){G.resolve(Ie).then(function(Je){W||(W=!0,u.resolve(ye,Je))},function(Je){W||(W=!0,u.reject(ye,Je))})}}},{"1":1}],3:[function(n,i,o){(function(s){"use strict";typeof s.Promise!="function"&&(s.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"2":2}],4:[function(n,i,o){"use strict";var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};function a(f,v){if(!(f instanceof v))throw new TypeError("Cannot call a class as a function")}function u(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch{return}}var c=u();function l(){try{if(!c||!c.open)return!1;var f=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),v=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!f||v)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch{return!1}}function d(f,v){f=f||[],v=v||{};try{return new Blob(f,v)}catch(g){if(g.name!=="TypeError")throw g;for(var p=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,m=new p,y=0;y<f.length;y+=1)m.append(f[y]);return m.getBlob(v.type)}}typeof Promise=="undefined"&&n(3);var h=Promise;function _(f,v){v&&f.then(function(p){v(null,p)},function(p){v(p)})}function S(f,v,p){typeof v=="function"&&f.then(v),typeof p=="function"&&f.catch(p)}function T(f){return typeof f!="string"&&(console.warn(f+" used as a key, but it is not a string."),f=String(f)),f}function R(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",F=void 0,k={},xe=Object.prototype.toString,lt="readonly",I="readwrite";function G(f){for(var v=f.length,p=new ArrayBuffer(v),m=new Uint8Array(p),y=0;y<v;y++)m[y]=f.charCodeAt(y);return p}function L(f){return new h(function(v){var p=f.transaction(A,I),m=d([""]);p.objectStore(A).put(m,"key"),p.onabort=function(y){y.preventDefault(),y.stopPropagation(),v(!1)},p.oncomplete=function(){var y=navigator.userAgent.match(/Chrome\/(\d+)/),g=navigator.userAgent.match(/Edge\//);v(g||!y||parseInt(y[1],10)>=43)}}).catch(function(){return!1})}function W(f){return typeof F=="boolean"?h.resolve(F):L(f).then(function(v){return F=v,F})}function oe(f){var v=k[f.name],p={};p.promise=new h(function(m,y){p.resolve=m,p.reject=y}),v.deferredOperations.push(p),v.dbReady?v.dbReady=v.dbReady.then(function(){return p.promise}):v.dbReady=p.promise}function ye(f){var v=k[f.name],p=v.deferredOperations.pop();if(p)return p.resolve(),p.promise}function Re(f,v){var p=k[f.name],m=p.deferredOperations.pop();if(m)return m.reject(v),m.promise}function Ie(f,v){return new h(function(p,m){if(k[f.name]=k[f.name]||Wa(),f.db)if(v)oe(f),f.db.close();else return p(f.db);var y=[f.name];v&&y.push(f.version);var g=c.open.apply(c,y);v&&(g.onupgradeneeded=function(E){var w=g.result;try{w.createObjectStore(f.storeName),E.oldVersion<=1&&w.createObjectStore(A)}catch(O){if(O.name==="ConstraintError")console.warn('The database "'+f.name+'" has been upgraded from version '+E.oldVersion+" to version "+E.newVersion+', but the storage "'+f.storeName+'" already exists.');else throw O}}),g.onerror=function(E){E.preventDefault(),m(g.error)},g.onsuccess=function(){var E=g.result;E.onversionchange=function(w){w.target.close()},p(E),ye(f)}})}function Je(f){return Ie(f,!1)}function wr(f){return Ie(f,!0)}function sn(f,v){if(!f.db)return!0;var p=!f.db.objectStoreNames.contains(f.storeName),m=f.version<f.db.version,y=f.version>f.db.version;if(m&&(f.version!==v&&console.warn('The database "'+f.name+`" can't be downgraded from version `+f.db.version+" to version "+f.version+"."),f.version=f.db.version),y||p){if(p){var g=f.db.version+1;g>f.version&&(f.version=g)}return!0}return!1}function Pi(f){return new h(function(v,p){var m=new FileReader;m.onerror=p,m.onloadend=function(y){var g=btoa(y.target.result||"");v({__local_forage_encoded_blob:!0,data:g,type:f.type})},m.readAsBinaryString(f)})}function $t(f){var v=G(atob(f.data));return d([v],{type:f.type})}function Va(f){return f&&f.__local_forage_encoded_blob}function lp(f){var v=this,p=v._initReady().then(function(){var m=k[v._dbInfo.name];if(m&&m.dbReady)return m.dbReady});return S(p,f,f),p}function fp(f){oe(f);for(var v=k[f.name],p=v.forages,m=0;m<p.length;m++){var y=p[m];y._dbInfo.db&&(y._dbInfo.db.close(),y._dbInfo.db=null)}return f.db=null,Je(f).then(function(g){return f.db=g,sn(f)?wr(f):g}).then(function(g){f.db=v.db=g;for(var E=0;E<p.length;E++)p[E]._dbInfo.db=g}).catch(function(g){throw Re(f,g),g})}function Xe(f,v,p,m){m===void 0&&(m=1);try{var y=f.db.transaction(f.storeName,v);p(null,y)}catch(g){if(m>0&&(!f.db||g.name==="InvalidStateError"||g.name==="NotFoundError"))return h.resolve().then(function(){if(!f.db||g.name==="NotFoundError"&&!f.db.objectStoreNames.contains(f.storeName)&&f.version<=f.db.version)return f.db&&(f.version=f.db.version+1),wr(f)}).then(function(){return fp(f).then(function(){Xe(f,v,p,m-1)})}).catch(p);p(g)}}function Wa(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function dp(f){var v=this,p={db:null};if(f)for(var m in f)p[m]=f[m];var y=k[p.name];y||(y=Wa(),k[p.name]=y),y.forages.push(v),v._initReady||(v._initReady=v.ready,v.ready=lp);var g=[];function E(){return h.resolve()}for(var w=0;w<y.forages.length;w++){var O=y.forages[w];O!==v&&g.push(O._initReady().catch(E))}var C=y.forages.slice(0);return h.all(g).then(function(){return p.db=y.db,Je(p)}).then(function(x){return p.db=x,sn(p,v._defaultConfig.version)?wr(p):x}).then(function(x){p.db=y.db=x,v._dbInfo=p;for(var P=0;P<C.length;P++){var j=C[P];j!==v&&(j._dbInfo.db=p.db,j._dbInfo.version=p.version)}})}function pp(f,v){var p=this;f=T(f);var m=new h(function(y,g){p.ready().then(function(){Xe(p._dbInfo,lt,function(E,w){if(E)return g(E);try{var O=w.objectStore(p._dbInfo.storeName),C=O.get(f);C.onsuccess=function(){var x=C.result;x===void 0&&(x=null),Va(x)&&(x=$t(x)),y(x)},C.onerror=function(){g(C.error)}}catch(x){g(x)}})}).catch(g)});return _(m,v),m}function hp(f,v){var p=this,m=new h(function(y,g){p.ready().then(function(){Xe(p._dbInfo,lt,function(E,w){if(E)return g(E);try{var O=w.objectStore(p._dbInfo.storeName),C=O.openCursor(),x=1;C.onsuccess=function(){var P=C.result;if(P){var j=P.value;Va(j)&&(j=$t(j));var z=f(j,P.key,x++);z!==void 0?y(z):P.continue()}else y()},C.onerror=function(){g(C.error)}}catch(P){g(P)}})}).catch(g)});return _(m,v),m}function vp(f,v,p){var m=this;f=T(f);var y=new h(function(g,E){var w;m.ready().then(function(){return w=m._dbInfo,xe.call(v)==="[object Blob]"?W(w.db).then(function(O){return O?v:Pi(v)}):v}).then(function(O){Xe(m._dbInfo,I,function(C,x){if(C)return E(C);try{var P=x.objectStore(m._dbInfo.storeName);O===null&&(O=void 0);var j=P.put(O,f);x.oncomplete=function(){O===void 0&&(O=null),g(O)},x.onabort=x.onerror=function(){var z=j.error?j.error:j.transaction.error;E(z)}}catch(z){E(z)}})}).catch(E)});return _(y,p),y}function _p(f,v){var p=this;f=T(f);var m=new h(function(y,g){p.ready().then(function(){Xe(p._dbInfo,I,function(E,w){if(E)return g(E);try{var O=w.objectStore(p._dbInfo.storeName),C=O.delete(f);w.oncomplete=function(){y()},w.onerror=function(){g(C.error)},w.onabort=function(){var x=C.error?C.error:C.transaction.error;g(x)}}catch(x){g(x)}})}).catch(g)});return _(m,v),m}function gp(f){var v=this,p=new h(function(m,y){v.ready().then(function(){Xe(v._dbInfo,I,function(g,E){if(g)return y(g);try{var w=E.objectStore(v._dbInfo.storeName),O=w.clear();E.oncomplete=function(){m()},E.onabort=E.onerror=function(){var C=O.error?O.error:O.transaction.error;y(C)}}catch(C){y(C)}})}).catch(y)});return _(p,f),p}function mp(f){var v=this,p=new h(function(m,y){v.ready().then(function(){Xe(v._dbInfo,lt,function(g,E){if(g)return y(g);try{var w=E.objectStore(v._dbInfo.storeName),O=w.count();O.onsuccess=function(){m(O.result)},O.onerror=function(){y(O.error)}}catch(C){y(C)}})}).catch(y)});return _(p,f),p}function yp(f,v){var p=this,m=new h(function(y,g){if(f<0){y(null);return}p.ready().then(function(){Xe(p._dbInfo,lt,function(E,w){if(E)return g(E);try{var O=w.objectStore(p._dbInfo.storeName),C=!1,x=O.openKeyCursor();x.onsuccess=function(){var P=x.result;if(!P){y(null);return}f===0||C?y(P.key):(C=!0,P.advance(f))},x.onerror=function(){g(x.error)}}catch(P){g(P)}})}).catch(g)});return _(m,v),m}function bp(f){var v=this,p=new h(function(m,y){v.ready().then(function(){Xe(v._dbInfo,lt,function(g,E){if(g)return y(g);try{var w=E.objectStore(v._dbInfo.storeName),O=w.openKeyCursor(),C=[];O.onsuccess=function(){var x=O.result;if(!x){m(C);return}C.push(x.key),x.continue()},O.onerror=function(){y(O.error)}}catch(x){y(x)}})}).catch(y)});return _(p,f),p}function Sp(f,v){v=R.apply(this,arguments);var p=this.config();f=typeof f!="function"&&f||{},f.name||(f.name=f.name||p.name,f.storeName=f.storeName||p.storeName);var m=this,y;if(!f.name)y=h.reject("Invalid arguments");else{var g=f.name===p.name&&m._dbInfo.db,E=g?h.resolve(m._dbInfo.db):Je(f).then(function(w){var O=k[f.name],C=O.forages;O.db=w;for(var x=0;x<C.length;x++)C[x]._dbInfo.db=w;return w});f.storeName?y=E.then(function(w){if(!!w.objectStoreNames.contains(f.storeName)){var O=w.version+1;oe(f);var C=k[f.name],x=C.forages;w.close();for(var P=0;P<x.length;P++){var j=x[P];j._dbInfo.db=null,j._dbInfo.version=O}var z=new h(function($,Q){var J=c.open(f.name,O);J.onerror=function(Ae){var Cr=J.result;Cr.close(),Q(Ae)},J.onupgradeneeded=function(){var Ae=J.result;Ae.deleteObjectStore(f.storeName)},J.onsuccess=function(){var Ae=J.result;Ae.close(),$(Ae)}});return z.then(function($){C.db=$;for(var Q=0;Q<x.length;Q++){var J=x[Q];J._dbInfo.db=$,ye(J._dbInfo)}}).catch(function($){throw(Re(f,$)||h.resolve()).catch(function(){}),$})}}):y=E.then(function(w){oe(f);var O=k[f.name],C=O.forages;w.close();for(var x=0;x<C.length;x++){var P=C[x];P._dbInfo.db=null}var j=new h(function(z,$){var Q=c.deleteDatabase(f.name);Q.onerror=function(){var J=Q.result;J&&J.close(),$(Q.error)},Q.onblocked=function(){console.warn('dropInstance blocked for database "'+f.name+'" until all open connections are closed')},Q.onsuccess=function(){var J=Q.result;J&&J.close(),z(J)}});return j.then(function(z){O.db=z;for(var $=0;$<C.length;$++){var Q=C[$];ye(Q._dbInfo)}}).catch(function(z){throw(Re(f,z)||h.resolve()).catch(function(){}),z})})}return _(y,v),y}var Ep={_driver:"asyncStorage",_initStorage:dp,_support:l(),iterate:hp,getItem:pp,setItem:vp,removeItem:_p,clear:gp,length:mp,key:yp,keys:bp,dropInstance:Sp};function Tp(){return typeof openDatabase=="function"}var ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wp="~~local_forage_type~",$a=/^~~local_forage_type~([^~]+)~/,an="__lfsc__:",Ni=an.length,qi="arbf",ki="blob",Ya="si08",Ka="ui08",Ja="uic8",Xa="si16",Qa="si32",Za="ur16",eu="ui32",tu="fl32",ru="fl64",nu=Ni+qi.length,iu=Object.prototype.toString;function ou(f){var v=f.length*.75,p=f.length,m,y=0,g,E,w,O;f[f.length-1]==="="&&(v--,f[f.length-2]==="="&&v--);var C=new ArrayBuffer(v),x=new Uint8Array(C);for(m=0;m<p;m+=4)g=ft.indexOf(f[m]),E=ft.indexOf(f[m+1]),w=ft.indexOf(f[m+2]),O=ft.indexOf(f[m+3]),x[y++]=g<<2|E>>4,x[y++]=(E&15)<<4|w>>2,x[y++]=(w&3)<<6|O&63;return C}function Di(f){var v=new Uint8Array(f),p="",m;for(m=0;m<v.length;m+=3)p+=ft[v[m]>>2],p+=ft[(v[m]&3)<<4|v[m+1]>>4],p+=ft[(v[m+1]&15)<<2|v[m+2]>>6],p+=ft[v[m+2]&63];return v.length%3===2?p=p.substring(0,p.length-1)+"=":v.length%3===1&&(p=p.substring(0,p.length-2)+"=="),p}function Op(f,v){var p="";if(f&&(p=iu.call(f)),f&&(p==="[object ArrayBuffer]"||f.buffer&&iu.call(f.buffer)==="[object ArrayBuffer]")){var m,y=an;f instanceof ArrayBuffer?(m=f,y+=qi):(m=f.buffer,p==="[object Int8Array]"?y+=Ya:p==="[object Uint8Array]"?y+=Ka:p==="[object Uint8ClampedArray]"?y+=Ja:p==="[object Int16Array]"?y+=Xa:p==="[object Uint16Array]"?y+=Za:p==="[object Int32Array]"?y+=Qa:p==="[object Uint32Array]"?y+=eu:p==="[object Float32Array]"?y+=tu:p==="[object Float64Array]"?y+=ru:v(new Error("Failed to get type for BinaryArray"))),v(y+Di(m))}else if(p==="[object Blob]"){var g=new FileReader;g.onload=function(){var E=wp+f.type+"~"+Di(this.result);v(an+ki+E)},g.readAsArrayBuffer(f)}else try{v(JSON.stringify(f))}catch(E){console.error("Couldn't convert value into a JSON string: ",f),v(null,E)}}function Cp(f){if(f.substring(0,Ni)!==an)return JSON.parse(f);var v=f.substring(nu),p=f.substring(Ni,nu),m;if(p===ki&&$a.test(v)){var y=v.match($a);m=y[1],v=v.substring(y[0].length)}var g=ou(v);switch(p){case qi:return g;case ki:return d([g],{type:m});case Ya:return new Int8Array(g);case Ka:return new Uint8Array(g);case Ja:return new Uint8ClampedArray(g);case Xa:return new Int16Array(g);case Za:return new Uint16Array(g);case Qa:return new Int32Array(g);case eu:return new Uint32Array(g);case tu:return new Float32Array(g);case ru:return new Float64Array(g);default:throw new Error("Unkown type: "+p)}}var Li={serialize:Op,deserialize:Cp,stringToBuffer:ou,bufferToString:Di};function su(f,v,p,m){f.executeSql("CREATE TABLE IF NOT EXISTS "+v.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],p,m)}function xp(f){var v=this,p={db:null};if(f)for(var m in f)p[m]=typeof f[m]!="string"?f[m].toString():f[m];var y=new h(function(g,E){try{p.db=openDatabase(p.name,String(p.version),p.description,p.size)}catch(w){return E(w)}p.db.transaction(function(w){su(w,p,function(){v._dbInfo=p,g()},function(O,C){E(C)})},E)});return p.serializer=Li,y}function dt(f,v,p,m,y,g){f.executeSql(p,m,y,function(E,w){w.code===w.SYNTAX_ERR?E.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[v.storeName],function(O,C){C.rows.length?g(O,w):su(O,v,function(){O.executeSql(p,m,y,g)},g)},g):g(E,w)},g)}function Rp(f,v){var p=this;f=T(f);var m=new h(function(y,g){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(w){dt(w,E,"SELECT * FROM "+E.storeName+" WHERE key = ? LIMIT 1",[f],function(O,C){var x=C.rows.length?C.rows.item(0).value:null;x&&(x=E.serializer.deserialize(x)),y(x)},function(O,C){g(C)})})}).catch(g)});return _(m,v),m}function Ip(f,v){var p=this,m=new h(function(y,g){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(w){dt(w,E,"SELECT * FROM "+E.storeName,[],function(O,C){for(var x=C.rows,P=x.length,j=0;j<P;j++){var z=x.item(j),$=z.value;if($&&($=E.serializer.deserialize($)),$=f($,z.key,j+1),$!==void 0){y($);return}}y()},function(O,C){g(C)})})}).catch(g)});return _(m,v),m}function au(f,v,p,m){var y=this;f=T(f);var g=new h(function(E,w){y.ready().then(function(){v===void 0&&(v=null);var O=v,C=y._dbInfo;C.serializer.serialize(v,function(x,P){P?w(P):C.db.transaction(function(j){dt(j,C,"INSERT OR REPLACE INTO "+C.storeName+" (key, value) VALUES (?, ?)",[f,x],function(){E(O)},function(z,$){w($)})},function(j){if(j.code===j.QUOTA_ERR){if(m>0){E(au.apply(y,[f,O,p,m-1]));return}w(j)}})})}).catch(w)});return _(g,p),g}function Ap(f,v,p){return au.apply(this,[f,v,p,1])}function Mp(f,v){var p=this;f=T(f);var m=new h(function(y,g){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(w){dt(w,E,"DELETE FROM "+E.storeName+" WHERE key = ?",[f],function(){y()},function(O,C){g(C)})})}).catch(g)});return _(m,v),m}function Pp(f){var v=this,p=new h(function(m,y){v.ready().then(function(){var g=v._dbInfo;g.db.transaction(function(E){dt(E,g,"DELETE FROM "+g.storeName,[],function(){m()},function(w,O){y(O)})})}).catch(y)});return _(p,f),p}function Np(f){var v=this,p=new h(function(m,y){v.ready().then(function(){var g=v._dbInfo;g.db.transaction(function(E){dt(E,g,"SELECT COUNT(key) as c FROM "+g.storeName,[],function(w,O){var C=O.rows.item(0).c;m(C)},function(w,O){y(O)})})}).catch(y)});return _(p,f),p}function qp(f,v){var p=this,m=new h(function(y,g){p.ready().then(function(){var E=p._dbInfo;E.db.transaction(function(w){dt(w,E,"SELECT key FROM "+E.storeName+" WHERE id = ? LIMIT 1",[f+1],function(O,C){var x=C.rows.length?C.rows.item(0).key:null;y(x)},function(O,C){g(C)})})}).catch(g)});return _(m,v),m}function kp(f){var v=this,p=new h(function(m,y){v.ready().then(function(){var g=v._dbInfo;g.db.transaction(function(E){dt(E,g,"SELECT key FROM "+g.storeName,[],function(w,O){for(var C=[],x=0;x<O.rows.length;x++)C.push(O.rows.item(x).key);m(C)},function(w,O){y(O)})})}).catch(y)});return _(p,f),p}function Dp(f){return new h(function(v,p){f.transaction(function(m){m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(y,g){for(var E=[],w=0;w<g.rows.length;w++)E.push(g.rows.item(w).name);v({db:f,storeNames:E})},function(y,g){p(g)})},function(m){p(m)})})}function Lp(f,v){v=R.apply(this,arguments);var p=this.config();f=typeof f!="function"&&f||{},f.name||(f.name=f.name||p.name,f.storeName=f.storeName||p.storeName);var m=this,y;return f.name?y=new h(function(g){var E;f.name===p.name?E=m._dbInfo.db:E=openDatabase(f.name,"","",0),f.storeName?g({db:E,storeNames:[f.storeName]}):g(Dp(E))}).then(function(g){return new h(function(E,w){g.db.transaction(function(O){function C(z){return new h(function($,Q){O.executeSql("DROP TABLE IF EXISTS "+z,[],function(){$()},function(J,Ae){Q(Ae)})})}for(var x=[],P=0,j=g.storeNames.length;P<j;P++)x.push(C(g.storeNames[P]));h.all(x).then(function(){E()}).catch(function(z){w(z)})},function(O){w(O)})})}):y=h.reject("Invalid arguments"),_(y,v),y}var Fp={_driver:"webSQLStorage",_initStorage:xp,_support:Tp(),iterate:Ip,getItem:Rp,setItem:Ap,removeItem:Mp,clear:Pp,length:Np,key:qp,keys:kp,dropInstance:Lp};function jp(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function uu(f,v){var p=f.name+"/";return f.storeName!==v.storeName&&(p+=f.storeName+"/"),p}function Up(){var f="_localforage_support_test";try{return localStorage.setItem(f,!0),localStorage.removeItem(f),!1}catch{return!0}}function Hp(){return!Up()||localStorage.length>0}function Bp(f){var v=this,p={};if(f)for(var m in f)p[m]=f[m];return p.keyPrefix=uu(f,v._defaultConfig),Hp()?(v._dbInfo=p,p.serializer=Li,h.resolve()):h.reject()}function Gp(f){var v=this,p=v.ready().then(function(){for(var m=v._dbInfo.keyPrefix,y=localStorage.length-1;y>=0;y--){var g=localStorage.key(y);g.indexOf(m)===0&&localStorage.removeItem(g)}});return _(p,f),p}function zp(f,v){var p=this;f=T(f);var m=p.ready().then(function(){var y=p._dbInfo,g=localStorage.getItem(y.keyPrefix+f);return g&&(g=y.serializer.deserialize(g)),g});return _(m,v),m}function Vp(f,v){var p=this,m=p.ready().then(function(){for(var y=p._dbInfo,g=y.keyPrefix,E=g.length,w=localStorage.length,O=1,C=0;C<w;C++){var x=localStorage.key(C);if(x.indexOf(g)===0){var P=localStorage.getItem(x);if(P&&(P=y.serializer.deserialize(P)),P=f(P,x.substring(E),O++),P!==void 0)return P}}});return _(m,v),m}function Wp(f,v){var p=this,m=p.ready().then(function(){var y=p._dbInfo,g;try{g=localStorage.key(f)}catch{g=null}return g&&(g=g.substring(y.keyPrefix.length)),g});return _(m,v),m}function $p(f){var v=this,p=v.ready().then(function(){for(var m=v._dbInfo,y=localStorage.length,g=[],E=0;E<y;E++){var w=localStorage.key(E);w.indexOf(m.keyPrefix)===0&&g.push(w.substring(m.keyPrefix.length))}return g});return _(p,f),p}function Yp(f){var v=this,p=v.keys().then(function(m){return m.length});return _(p,f),p}function Kp(f,v){var p=this;f=T(f);var m=p.ready().then(function(){var y=p._dbInfo;localStorage.removeItem(y.keyPrefix+f)});return _(m,v),m}function Jp(f,v,p){var m=this;f=T(f);var y=m.ready().then(function(){v===void 0&&(v=null);var g=v;return new h(function(E,w){var O=m._dbInfo;O.serializer.serialize(v,function(C,x){if(x)w(x);else try{localStorage.setItem(O.keyPrefix+f,C),E(g)}catch(P){(P.name==="QuotaExceededError"||P.name==="NS_ERROR_DOM_QUOTA_REACHED")&&w(P),w(P)}})})});return _(y,p),y}function Xp(f,v){if(v=R.apply(this,arguments),f=typeof f!="function"&&f||{},!f.name){var p=this.config();f.name=f.name||p.name,f.storeName=f.storeName||p.storeName}var m=this,y;return f.name?y=new h(function(g){f.storeName?g(uu(f,m._defaultConfig)):g(f.name+"/")}).then(function(g){for(var E=localStorage.length-1;E>=0;E--){var w=localStorage.key(E);w.indexOf(g)===0&&localStorage.removeItem(w)}}):y=h.reject("Invalid arguments"),_(y,v),y}var Qp={_driver:"localStorageWrapper",_initStorage:Bp,_support:jp(),iterate:Vp,getItem:zp,setItem:Jp,removeItem:Kp,clear:Gp,length:Yp,key:Wp,keys:$p,dropInstance:Xp},Zp=function(v,p){return v===p||typeof v=="number"&&typeof p=="number"&&isNaN(v)&&isNaN(p)},eh=function(v,p){for(var m=v.length,y=0;y<m;){if(Zp(v[y],p))return!0;y++}return!1},cu=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"},Or={},lu={},Yt={INDEXEDDB:Ep,WEBSQL:Fp,LOCALSTORAGE:Qp},th=[Yt.INDEXEDDB._driver,Yt.WEBSQL._driver,Yt.LOCALSTORAGE._driver],un=["dropInstance"],Fi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(un),rh={description:"",driver:th.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function nh(f,v){f[v]=function(){var p=arguments;return f.ready().then(function(){return f[v].apply(f,p)})}}function ji(){for(var f=1;f<arguments.length;f++){var v=arguments[f];if(v)for(var p in v)v.hasOwnProperty(p)&&(cu(v[p])?arguments[0][p]=v[p].slice():arguments[0][p]=v[p])}return arguments[0]}var ih=function(){function f(v){a(this,f);for(var p in Yt)if(Yt.hasOwnProperty(p)){var m=Yt[p],y=m._driver;this[p]=y,Or[y]||this.defineDriver(m)}this._defaultConfig=ji({},rh),this._config=ji({},this._defaultConfig,v),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return f.prototype.config=function(p){if((typeof p=="undefined"?"undefined":s(p))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var m in p){if(m==="storeName"&&(p[m]=p[m].replace(/\W/g,"_")),m==="version"&&typeof p[m]!="number")return new Error("Database version must be a number.");this._config[m]=p[m]}return"driver"in p&&p.driver?this.setDriver(this._config.driver):!0}else return typeof p=="string"?this._config[p]:this._config},f.prototype.defineDriver=function(p,m,y){var g=new h(function(E,w){try{var O=p._driver,C=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!p._driver){w(C);return}for(var x=Fi.concat("_initStorage"),P=0,j=x.length;P<j;P++){var z=x[P],$=!eh(un,z);if(($||p[z])&&typeof p[z]!="function"){w(C);return}}var Q=function(){for(var Cr=function(ah){return function(){var uh=new Error("Method "+ah+" is not implemented by the current driver"),fu=h.reject(uh);return _(fu,arguments[arguments.length-1]),fu}},Ui=0,sh=un.length;Ui<sh;Ui++){var Hi=un[Ui];p[Hi]||(p[Hi]=Cr(Hi))}};Q();var J=function(Cr){Or[O]&&console.info("Redefining LocalForage driver: "+O),Or[O]=p,lu[O]=Cr,E()};"_support"in p?p._support&&typeof p._support=="function"?p._support().then(J,w):J(!!p._support):J(!0)}catch(Ae){w(Ae)}});return S(g,m,y),g},f.prototype.driver=function(){return this._driver||null},f.prototype.getDriver=function(p,m,y){var g=Or[p]?h.resolve(Or[p]):h.reject(new Error("Driver not found."));return S(g,m,y),g},f.prototype.getSerializer=function(p){var m=h.resolve(Li);return S(m,p),m},f.prototype.ready=function(p){var m=this,y=m._driverSet.then(function(){return m._ready===null&&(m._ready=m._initDriver()),m._ready});return S(y,p,p),y},f.prototype.setDriver=function(p,m,y){var g=this;cu(p)||(p=[p]);var E=this._getSupportedDrivers(p);function w(){g._config.driver=g.driver()}function O(P){return g._extend(P),w(),g._ready=g._initStorage(g._config),g._ready}function C(P){return function(){var j=0;function z(){for(;j<P.length;){var $=P[j];return j++,g._dbInfo=null,g._ready=null,g.getDriver($).then(O).catch(z)}w();var Q=new Error("No available storage method found.");return g._driverSet=h.reject(Q),g._driverSet}return z()}}var x=this._driverSet!==null?this._driverSet.catch(function(){return h.resolve()}):h.resolve();return this._driverSet=x.then(function(){var P=E[0];return g._dbInfo=null,g._ready=null,g.getDriver(P).then(function(j){g._driver=j._driver,w(),g._wrapLibraryMethodsWithReady(),g._initDriver=C(E)})}).catch(function(){w();var P=new Error("No available storage method found.");return g._driverSet=h.reject(P),g._driverSet}),S(this._driverSet,m,y),this._driverSet},f.prototype.supports=function(p){return!!lu[p]},f.prototype._extend=function(p){ji(this,p)},f.prototype._getSupportedDrivers=function(p){for(var m=[],y=0,g=p.length;y<g;y++){var E=p[y];this.supports(E)&&m.push(E)}return m},f.prototype._wrapLibraryMethodsWithReady=function(){for(var p=0,m=Fi.length;p<m;p++)nh(this,Fi[p])},f.prototype.createInstance=function(p){return new f(p)},f}(),oh=new ih;i.exports=oh},{"3":3}]},{},[4])(4)})});var md=b(ha=>{Object.defineProperty(ha,"__esModule",{value:!0});var He=q(),at=N(),$S=He.__importDefault(gd()),YS=function(){function t(e){e===void 0&&(e={}),this.name=t.id,this.global=at.getGlobalObject(),this.maxStoredEvents=e.maxStoredEvents||30,this.offlineEventStore=$S.default.createInstance({name:"sentry/offlineEventStore"})}return t.prototype.setupOnce=function(e,r){var n=this;this.hub=r(),"addEventListener"in this.global&&this.global.addEventListener("online",function(){n._sendEvents().catch(function(){at.logger.warn("could not send cached events")})}),e(function(i){return n.hub&&n.hub.getIntegration(t)&&"navigator"in n.global&&"onLine"in n.global.navigator&&!n.global.navigator.onLine?(n._cacheEvent(i).then(function(o){return n._enforceMaxEvents()}).catch(function(o){at.logger.warn("could not cache event while offline")}),null):i}),"navigator"in this.global&&"onLine"in this.global.navigator&&this.global.navigator.onLine&&this._sendEvents().catch(function(){at.logger.warn("could not send cached events")})},t.prototype._cacheEvent=function(e){return He.__awaiter(this,void 0,void 0,function(){return He.__generator(this,function(r){return[2,this.offlineEventStore.setItem(at.uuid4(),at.normalize(e))]})})},t.prototype._enforceMaxEvents=function(){return He.__awaiter(this,void 0,void 0,function(){var e,r=this;return He.__generator(this,function(n){return e=[],[2,this.offlineEventStore.iterate(function(i,o,s){e.push({cacheKey:o,event:i})}).then(function(){return r._purgeEvents(e.sort(function(i,o){return(o.event.timestamp||0)-(i.event.timestamp||0)}).slice(r.maxStoredEvents<e.length?r.maxStoredEvents:e.length).map(function(i){return i.cacheKey}))}).catch(function(i){at.logger.warn("could not enforce max events")})]})})},t.prototype._purgeEvent=function(e){return He.__awaiter(this,void 0,void 0,function(){return He.__generator(this,function(r){return[2,this.offlineEventStore.removeItem(e)]})})},t.prototype._purgeEvents=function(e){return He.__awaiter(this,void 0,void 0,function(){var r=this;return He.__generator(this,function(n){return[2,Promise.all(e.map(function(i){return r._purgeEvent(i)})).then()]})})},t.prototype._sendEvents=function(){return He.__awaiter(this,void 0,void 0,function(){var e=this;return He.__generator(this,function(r){return[2,this.offlineEventStore.iterate(function(n,i,o){e.hub?(e.hub.captureEvent(n),e._purgeEvent(i).catch(function(s){at.logger.warn("could not purge event from cache")})):at.logger.warn("no hub found - could not send cached event")})]})})},t.id="Offline",t}();ha.Offline=YS});var bd=b(va=>{Object.defineProperty(va,"__esModule",{value:!0});var KS=q(),yd=N(),JS=function(){function t(e){e===void 0&&(e={types:["crash","deprecation","intervention"]}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,r){if(!!yd.supportsReportingObserver()){this._getCurrentHub=r;var n=new(yd.getGlobalObject()).ReportingObserver(this.handler.bind(this),{buffered:!0,types:this._options.types});n.observe()}},t.prototype.handler=function(e){var r,n,i=this._getCurrentHub&&this._getCurrentHub();if(!(!i||!i.getIntegration(t))){var o=function(c){i.withScope(function(l){l.setExtra("url",c.url);var d="ReportingObserver ["+c.type+"]",h="No details available";if(c.body){var _={};for(var S in c.body)_[S]=c.body[S];if(l.setExtra("body",_),c.type==="crash"){var T=c.body;h=[T.crashId||"",T.reason||""].join(" ").trim()||h}else{var T=c.body;h=T.message||h}}i.captureMessage(d+": "+h)})};try{for(var s=KS.__values(e),a=s.next();!a.done;a=s.next()){var u=a.value;o(u)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}},t.id="ReportingObserver",t}();va.ReportingObserver=JS});var Ed=b(_a=>{Object.defineProperty(_a,"__esModule",{value:!0});var Ye=q(),Sd=N(),XS=function(){function t(e){var r=this;e===void 0&&(e={}),this.name=t.id,this._prefix="app:///",this._iteratee=function(n){if(!n.filename)return n;var i=/^[A-Z]:\\/.test(n.filename),o=/^\//.test(n.filename);if(i||o){var s=i?n.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):n.filename,a=r._root?Sd.relative(r._root,s):Sd.basename(s);n.filename=""+r._prefix+a}return n},e.root&&(this._root=e.root),e.prefix&&(this._prefix=e.prefix),e.iteratee&&(this._iteratee=e.iteratee)}return t.prototype.setupOnce=function(e,r){e(function(n){var i=r().getIntegration(t);return i?i.process(n):n})},t.prototype.process=function(e){var r=e;return e.exception&&Array.isArray(e.exception.values)&&(r=this._processExceptionsEvent(r)),e.stacktrace&&(r=this._processStacktraceEvent(r)),r},t.prototype._processExceptionsEvent=function(e){var r=this;try{return Ye.__assign(Ye.__assign({},e),{exception:Ye.__assign(Ye.__assign({},e.exception),{values:e.exception.values.map(function(n){return Ye.__assign(Ye.__assign({},n),{stacktrace:r._processStacktrace(n.stacktrace)})})})})}catch{return e}},t.prototype._processStacktraceEvent=function(e){try{return Ye.__assign(Ye.__assign({},e),{stacktrace:this._processStacktrace(e.stacktrace)})}catch{return e}},t.prototype._processStacktrace=function(e){var r=this;return Ye.__assign(Ye.__assign({},e),{frames:e&&e.frames&&e.frames.map(function(n){return r._iteratee(n)})})},t.id="RewriteFrames",t}();_a.RewriteFrames=XS});var Td=b(ga=>{Object.defineProperty(ga,"__esModule",{value:!0});var Ti=q(),QS=function(){function t(){this.name=t.id,this._startTime=Date.now()}return t.prototype.setupOnce=function(e,r){e(function(n){var i=r().getIntegration(t);return i?i.process(n):n})},t.prototype.process=function(e){var r,n=Date.now();return Ti.__assign(Ti.__assign({},e),{extra:Ti.__assign(Ti.__assign({},e.extra),(r={},r["session:start"]=this._startTime,r["session:duration"]=n-this._startTime,r["session:end"]=n,r))})},t.id="SessionTiming",t}();ga.SessionTiming=QS});var wd=b(ma=>{Object.defineProperty(ma,"__esModule",{value:!0});var ZS=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,r){e(function(n){var i=r().getIntegration(t);return i?i.process(n):n})},t.prototype.process=function(e){for(var r=this._getFramesFromEvent(e),n=r.length-1;n>=0;n--){var i=r[n];if(i.in_app===!0){e.transaction=this._getTransaction(i);break}}return e},t.prototype._getFramesFromEvent=function(e){var r=e.exception&&e.exception.values&&e.exception.values[0];return r&&r.stacktrace&&r.stacktrace.frames||[]},t.prototype._getTransaction=function(e){return e.module||e.function?(e.module||"?")+"/"+(e.function||"?"):"<unknown>"},t.id="Transaction",t}();ma.Transaction=ZS});var xd=b(Oi=>{Object.defineProperty(Oi,"__esModule",{value:!0});var wi=q(),ut=N(),ya={id:"Tracing"},eE={id:"BrowserTracing"},ba="ui.vue",tE={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},rE=/(?:^|[-_/])(\w)/g,Od="root",Sa="anonymous component",nE=function(){function t(e){var r=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(n,i){if(!n.$options.$_sentryPerfHook){n.$options.$_sentryPerfHook=!0;var o=r._getComponentName(n),s=o===Od,a={},u=function(l){var d=ut.timestampWithMs();r._rootSpan?r._finishRootSpan(d,i):n.$once("hook:"+l,function(){var h=i().getIntegration(ya);if(h){r._tracingActivity=h.constructor.pushActivity("Vue Application Render");var _=h.constructor.getTransaction();_&&(r._rootSpan=_.startChild({description:"Application Render",op:ba}))}else{var S=Cd(i());S&&(r._rootSpan=S.startChild({description:"Application Render",op:ba}))}})},c=function(l,d){var h=Array.isArray(r._options.tracingOptions.trackComponents)?r._options.tracingOptions.trackComponents.indexOf(o)>-1:r._options.tracingOptions.trackComponents;if(!(!r._rootSpan||!h)){var _=ut.timestampWithMs(),S=a[d];S?(S.finish(),r._finishRootSpan(_,i)):n.$once("hook:"+l,function(){r._rootSpan&&(a[d]=r._rootSpan.startChild({description:"Vue <"+o+">",op:ba+"."+d}))})}};r._options.tracingOptions.hooks.forEach(function(l){var d=tE[l];if(!d){ut.logger.warn("Unknown hook: "+l);return}d.forEach(function(h){var _=s?u.bind(r,h):c.bind(r,h,l),S=n.$options[h];Array.isArray(S)?n.$options[h]=wi.__spread([_],S):typeof S=="function"?n.$options[h]=[_,S]:n.$options[h]=[_]})})}},ut.logger.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=wi.__assign(wi.__assign({Vue:ut.getGlobalObject().Vue,attachProps:!0,logErrors:!1,tracing:!1},e),{tracingOptions:wi.__assign({hooks:["mount","update"],timeout:2e3,trackComponents:!1},e.tracingOptions)})}return t.prototype.setupOnce=function(e,r){if(!this._options.Vue){ut.logger.error("Vue integration is missing a Vue instance");return}this._attachErrorHandler(r),this._options.tracing&&this._startTracing(r)},t.prototype._getComponentName=function(e){if(!e)return Sa;if(e.$root===e)return Od;if(!e.$options)return Sa;if(e.$options.name)return e.$options.name;if(e.$options._componentTag)return e.$options._componentTag;if(e.$options.__file){var r=e.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),n=ut.basename(r,".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(rE,function(i,o){return o?o.toUpperCase():""}))}return Sa},t.prototype._finishRootSpan=function(e,r){var n=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(n._tracingActivity){var i=r().getIntegration(ya);i&&i.constructor.popActivity(n._tracingActivity)}n._rootSpan&&n._rootSpan.finish(e)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(e){var r=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){e().getIntegration(ya)||e().getIntegration(eE)?r(this,e):ut.logger.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(e){var r=this,n=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(i,o,s){var a={};if(o)try{a.componentName=r._getComponentName(o),r._options.attachProps&&(a.propsData=o.$options.propsData)}catch{ut.logger.warn("Unable to extract metadata from Vue component.")}s&&(a.lifecycleHook=s),e().getIntegration(t)&&setTimeout(function(){e().withScope(function(u){u.setContext("vue",a),e().captureException(i)})}),typeof n=="function"&&n.call(r._options.Vue,i,o,s),r._options.logErrors&&(r._options.Vue.util&&r._options.Vue.util.warn("Error in "+s+': "'+(i&&i.toString())+'"',o),console.error(i))}},t.id="Vue",t}();Oi.Vue=nE;function Cd(t){if(t&&t.getScope){var e=t.getScope();if(e)return e.getTransaction()}}Oi.getActiveTransaction=Cd});var Rd=b(me=>{Object.defineProperty(me,"__esModule",{value:!0});var iE=ld();me.Angular=iE.Angular;var oE=fd();me.CaptureConsole=oE.CaptureConsole;var sE=dd();me.Debug=sE.Debug;var aE=pd();me.Dedupe=aE.Dedupe;var uE=hd();me.Ember=uE.Ember;var cE=vd();me.ExtraErrorData=cE.ExtraErrorData;var lE=md();me.Offline=lE.Offline;var fE=bd();me.ReportingObserver=fE.ReportingObserver;var dE=Ed();me.RewriteFrames=dE.RewriteFrames;var pE=Td();me.SessionTiming=pE.SessionTiming;var hE=wd();me.Transaction=hE.Transaction;var vE=xd();me.Vue=vE.Vue});var Ad=b(Ea=>{var Id="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ea.encode=function(t){if(0<=t&&t<Id.length)return Id[t];throw new TypeError("Must be between 0 and 63: "+t)};Ea.decode=function(t){var e=65,r=90,n=97,i=122,o=48,s=57,a=43,u=47,c=26,l=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+c:o<=t&&t<=s?t-o+l:t==a?62:t==u?63:-1}});var Oa=b(wa=>{var Md=Ad(),Ta=5,Pd=1<<Ta,Nd=Pd-1,qd=Pd;function _E(t){return t<0?(-t<<1)+1:(t<<1)+0}function gE(t){var e=(t&1)===1,r=t>>1;return e?-r:r}wa.encode=function(e){var r="",n,i=_E(e);do n=i&Nd,i>>>=Ta,i>0&&(n|=qd),r+=Md.encode(n);while(i>0);return r};wa.decode=function(e,r,n){var i=e.length,o=0,s=0,a,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Md.decode(e.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(u&qd),u&=Nd,o=o+(u<<s),s+=Ta}while(a);n.value=gE(o),n.rest=r}});var br=b(pe=>{function mE(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}pe.getArg=mE;var kd=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,yE=/^data:.+\,.+$/;function en(t){var e=t.match(kd);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}pe.urlParse=en;function mr(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}pe.urlGenerate=mr;function Ca(t){var e=t,r=en(t);if(r){if(!r.path)return t;e=r.path}for(var n=pe.isAbsolute(e),i=e.split(/\/+/),o,s=0,a=i.length-1;a>=0;a--)o=i[a],o==="."?i.splice(a,1):o===".."?s++:s>0&&(o===""?(i.splice(a+1,s),s=0):(i.splice(a,2),s--));return e=i.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,mr(r)):e}pe.normalize=Ca;function Dd(t,e){t===""&&(t="."),e===""&&(e=".");var r=en(e),n=en(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),mr(r);if(r||e.match(yE))return e;if(n&&!n.host&&!n.path)return n.host=e,mr(n);var i=e.charAt(0)==="/"?e:Ca(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,mr(n)):i}pe.join=Dd;pe.isAbsolute=function(t){return t.charAt(0)==="/"||kd.test(t)};function bE(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}pe.relative=bE;var Ld=function(){var t=Object.create(null);return!("__proto__"in t)}();function Fd(t){return t}function SE(t){return jd(t)?"$"+t:t}pe.toSetString=Ld?Fd:SE;function EE(t){return jd(t)?t.slice(1):t}pe.fromSetString=Ld?Fd:EE;function jd(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function TE(t,e,r){var n=yr(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:yr(t.name,e.name)}pe.compareByOriginalPositions=TE;function wE(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=yr(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:yr(t.name,e.name)}pe.compareByGeneratedPositionsDeflated=wE;function yr(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function OE(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=yr(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:yr(t.name,e.name)}pe.compareByGeneratedPositionsInflated=OE;function CE(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}pe.parseSourceMapInput=CE;function xE(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=en(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=Dd(mr(n),e)}return Ca(e)}pe.computeSourceURL=xE});var Ia=b(Ud=>{var xa=br(),Ra=Object.prototype.hasOwnProperty,Gt=typeof Map!="undefined";function ct(){this._array=[],this._set=Gt?new Map:Object.create(null)}ct.fromArray=function(e,r){for(var n=new ct,i=0,o=e.length;i<o;i++)n.add(e[i],r);return n};ct.prototype.size=function(){return Gt?this._set.size:Object.getOwnPropertyNames(this._set).length};ct.prototype.add=function(e,r){var n=Gt?e:xa.toSetString(e),i=Gt?this.has(e):Ra.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(e),i||(Gt?this._set.set(e,o):this._set[n]=o)};ct.prototype.has=function(e){if(Gt)return this._set.has(e);var r=xa.toSetString(e);return Ra.call(this._set,r)};ct.prototype.indexOf=function(e){if(Gt){var r=this._set.get(e);if(r>=0)return r}else{var n=xa.toSetString(e);if(Ra.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};ct.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};ct.prototype.toArray=function(){return this._array.slice()};Ud.ArraySet=ct});var Gd=b(Bd=>{var Hd=br();function RE(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=i||Hd.compareByGeneratedPositionsInflated(t,e)<=0}function Ci(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ci.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};Ci.prototype.add=function(e){RE(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Ci.prototype.toArray=function(){return this._sorted||(this._array.sort(Hd.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Bd.MappingList=Ci});var Aa=b(zd=>{var tn=Oa(),ee=br(),xi=Ia().ArraySet,IE=Gd().MappingList;function ke(t){t||(t={}),this._file=ee.getArg(t,"file",null),this._sourceRoot=ee.getArg(t,"sourceRoot",null),this._skipValidation=ee.getArg(t,"skipValidation",!1),this._sources=new xi,this._names=new xi,this._mappings=new IE,this._sourcesContents=null}ke.prototype._version=3;ke.fromSourceMap=function(e){var r=e.sourceRoot,n=new ke({file:e.file,sourceRoot:r});return e.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=ee.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),e.sources.forEach(function(i){var o=i;r!==null&&(o=ee.relative(r,i)),n._sources.has(o)||n._sources.add(o);var s=e.sourceContentFor(i);s!=null&&n.setSourceContent(i,s)}),n};ke.prototype.addMapping=function(e){var r=ee.getArg(e,"generated"),n=ee.getArg(e,"original",null),i=ee.getArg(e,"source",null),o=ee.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})};ke.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=ee.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[ee.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[ee.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};ke.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var o=this._sourceRoot;o!=null&&(i=ee.relative(o,i));var s=new xi,a=new xi;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var c=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});c.source!=null&&(u.source=c.source,n!=null&&(u.source=ee.join(n,u.source)),o!=null&&(u.source=ee.relative(o,u.source)),u.originalLine=c.line,u.originalColumn=c.column,c.name!=null&&(u.name=c.name))}var l=u.source;l!=null&&!s.has(l)&&s.add(l);var d=u.name;d!=null&&!a.has(d)&&a.add(d)},this),this._sources=s,this._names=a,e.sources.forEach(function(u){var c=e.sourceContentFor(u);c!=null&&(n!=null&&(u=ee.join(n,u)),o!=null&&(u=ee.relative(o,u)),this.setSourceContent(u,c))},this)};ke.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i}))}};ke.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,o=0,s=0,a="",u,c,l,d,h=this._mappings.toArray(),_=0,S=h.length;_<S;_++){if(c=h[_],u="",c.generatedLine!==r)for(e=0;c.generatedLine!==r;)u+=";",r++;else if(_>0){if(!ee.compareByGeneratedPositionsInflated(c,h[_-1]))continue;u+=","}u+=tn.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(d=this._sources.indexOf(c.source),u+=tn.encode(d-s),s=d,u+=tn.encode(c.originalLine-1-i),i=c.originalLine-1,u+=tn.encode(c.originalColumn-n),n=c.originalColumn,c.name!=null&&(l=this._names.indexOf(c.name),u+=tn.encode(l-o),o=l)),a+=u}return a};ke.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=ee.relative(r,n));var i=ee.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};ke.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};ke.prototype.toString=function(){return JSON.stringify(this.toJSON())};zd.SourceMapGenerator=ke});var Vd=b(zt=>{zt.GREATEST_LOWER_BOUND=1;zt.LEAST_UPPER_BOUND=2;function Ma(t,e,r,n,i,o){var s=Math.floor((e-t)/2)+t,a=i(r,n[s],!0);return a===0?s:a>0?e-s>1?Ma(s,e,r,n,i,o):o==zt.LEAST_UPPER_BOUND?e<n.length?e:-1:s:s-t>1?Ma(t,s,r,n,i,o):o==zt.LEAST_UPPER_BOUND?s:t<0?-1:t}zt.search=function(e,r,n,i){if(r.length===0)return-1;var o=Ma(-1,r.length,e,r,n,i||zt.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o}});var $d=b(Wd=>{function Pa(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function AE(t,e){return Math.round(t+Math.random()*(e-t))}function Na(t,e,r,n){if(r<n){var i=AE(r,n),o=r-1;Pa(t,i,n);for(var s=t[n],a=r;a<n;a++)e(t[a],s)<=0&&(o+=1,Pa(t,o,a));Pa(t,o+1,a);var u=o+1;Na(t,e,r,u-1),Na(t,e,u+1,n)}}Wd.quickSort=function(t,e){Na(t,e,0,t.length-1)}});var Kd=b(Ri=>{var M=br(),qa=Vd(),Sr=Ia().ArraySet,ME=Oa(),rn=$d().quickSort;function Y(t,e){var r=t;return typeof t=="string"&&(r=M.parseSourceMapInput(t)),r.sections!=null?new Be(r,e):new le(r,e)}Y.fromSourceMap=function(t,e){return le.fromSourceMap(t,e)};Y.prototype._version=3;Y.prototype.__generatedMappings=null;Object.defineProperty(Y.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Y.prototype.__originalMappings=null;Object.defineProperty(Y.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Y.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};Y.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};Y.GENERATED_ORDER=1;Y.ORIGINAL_ORDER=2;Y.GREATEST_LOWER_BOUND=1;Y.LEAST_UPPER_BOUND=2;Y.prototype.eachMapping=function(e,r,n){var i=r||null,o=n||Y.GENERATED_ORDER,s;switch(o){case Y.GENERATED_ORDER:s=this._generatedMappings;break;case Y.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;s.map(function(u){var c=u.source===null?null:this._sources.at(u.source);return c=M.computeSourceURL(a,c,this._sourceMapURL),{source:c,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)};Y.prototype.allGeneratedPositionsFor=function(e){var r=M.getArg(e,"line"),n={source:M.getArg(e,"source"),originalLine:r,originalColumn:M.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",M.compareByOriginalPositions,qa.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var a=s.originalLine;s&&s.originalLine===a;)i.push({line:M.getArg(s,"generatedLine",null),column:M.getArg(s,"generatedColumn",null),lastColumn:M.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var u=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==u;)i.push({line:M.getArg(s,"generatedLine",null),column:M.getArg(s,"generatedColumn",null),lastColumn:M.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return i};Ri.SourceMapConsumer=Y;function le(t,e){var r=t;typeof t=="string"&&(r=M.parseSourceMapInput(t));var n=M.getArg(r,"version"),i=M.getArg(r,"sources"),o=M.getArg(r,"names",[]),s=M.getArg(r,"sourceRoot",null),a=M.getArg(r,"sourcesContent",null),u=M.getArg(r,"mappings"),c=M.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);s&&(s=M.normalize(s)),i=i.map(String).map(M.normalize).map(function(l){return s&&M.isAbsolute(s)&&M.isAbsolute(l)?M.relative(s,l):l}),this._names=Sr.fromArray(o.map(String),!0),this._sources=Sr.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(l){return M.computeSourceURL(s,l,e)}),this.sourceRoot=s,this.sourcesContent=a,this._mappings=u,this._sourceMapURL=e,this.file=c}le.prototype=Object.create(Y.prototype);le.prototype.consumer=Y;le.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=M.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};le.fromSourceMap=function(e,r){var n=Object.create(le.prototype),i=n._names=Sr.fromArray(e._names.toArray(),!0),o=n._sources=Sr.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(_){return M.computeSourceURL(n.sourceRoot,_,r)});for(var s=e._mappings.toArray().slice(),a=n.__generatedMappings=[],u=n.__originalMappings=[],c=0,l=s.length;c<l;c++){var d=s[c],h=new Yd;h.generatedLine=d.generatedLine,h.generatedColumn=d.generatedColumn,d.source&&(h.source=o.indexOf(d.source),h.originalLine=d.originalLine,h.originalColumn=d.originalColumn,d.name&&(h.name=i.indexOf(d.name)),u.push(h)),a.push(h)}return rn(n.__originalMappings,M.compareByOriginalPositions),n};le.prototype._version=3;Object.defineProperty(le.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Yd(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}le.prototype._parseMappings=function(e,r){for(var n=1,i=0,o=0,s=0,a=0,u=0,c=e.length,l=0,d={},h={},_=[],S=[],T,R,A,F,k;l<c;)if(e.charAt(l)===";")n++,l++,i=0;else if(e.charAt(l)===",")l++;else{for(T=new Yd,T.generatedLine=n,F=l;F<c&&!this._charIsMappingSeparator(e,F);F++);if(R=e.slice(l,F),A=d[R],A)l+=R.length;else{for(A=[];l<F;)ME.decode(e,l,h),k=h.value,l=h.rest,A.push(k);if(A.length===2)throw new Error("Found a source, but no line and column");if(A.length===3)throw new Error("Found a source and line, but no column");d[R]=A}T.generatedColumn=i+A[0],i=T.generatedColumn,A.length>1&&(T.source=a+A[1],a+=A[1],T.originalLine=o+A[2],o=T.originalLine,T.originalLine+=1,T.originalColumn=s+A[3],s=T.originalColumn,A.length>4&&(T.name=u+A[4],u+=A[4])),S.push(T),typeof T.originalLine=="number"&&_.push(T)}rn(S,M.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,rn(_,M.compareByOriginalPositions),this.__originalMappings=_};le.prototype._findMapping=function(e,r,n,i,o,s){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 qa.search(e,r,o,s)};le.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};le.prototype.originalPositionFor=function(e){var r={generatedLine:M.getArg(e,"line"),generatedColumn:M.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",M.compareByGeneratedPositionsDeflated,M.getArg(e,"bias",Y.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=M.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=M.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=M.getArg(i,"name",null);return s!==null&&(s=this._names.at(s)),{source:o,line:M.getArg(i,"originalLine",null),column:M.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};le.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};le.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=M.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=M.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};le.prototype.generatedPositionFor=function(e){var r=M.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:M.getArg(e,"line"),originalColumn:M.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",M.compareByOriginalPositions,M.getArg(e,"bias",Y.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:M.getArg(o,"generatedLine",null),column:M.getArg(o,"generatedColumn",null),lastColumn:M.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ri.BasicSourceMapConsumer=le;function Be(t,e){var r=t;typeof t=="string"&&(r=M.parseSourceMapInput(t));var n=M.getArg(r,"version"),i=M.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Sr,this._names=new Sr;var o={line:-1,column:0};this._sections=i.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var a=M.getArg(s,"offset"),u=M.getArg(a,"line"),c=M.getArg(a,"column");if(u<o.line||u===o.line&&c<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=a,{generatedOffset:{generatedLine:u+1,generatedColumn:c+1},consumer:new Y(M.getArg(s,"map"),e)}})}Be.prototype=Object.create(Y.prototype);Be.prototype.constructor=Y;Be.prototype._version=3;Object.defineProperty(Be.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});Be.prototype.originalPositionFor=function(e){var r={generatedLine:M.getArg(e,"line"),generatedColumn:M.getArg(e,"column")},n=qa.search(r,this._sections,function(o,s){var a=o.generatedLine-s.generatedOffset.generatedLine;return a||o.generatedColumn-s.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};Be.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};Be.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(e,!0);if(o)return o}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};Be.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(M.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}};Be.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var a=o[s],u=i.consumer._sources.at(a.source);u=M.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var c=null;a.name&&(c=i.consumer._names.at(a.name),this._names.add(c),c=this._names.indexOf(c));var l={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:c};this.__generatedMappings.push(l),typeof l.originalLine=="number"&&this.__originalMappings.push(l)}rn(this.__generatedMappings,M.compareByGeneratedPositionsDeflated),rn(this.__originalMappings,M.compareByOriginalPositions)};Ri.IndexedSourceMapConsumer=Be});var Xd=b(Jd=>{var PE=Aa().SourceMapGenerator,Ii=br(),NE=/(\r?\n)/,qE=10,Er="$$$isSourceNode$$$";function Ce(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[Er]=!0,n!=null&&this.add(n)}Ce.fromStringWithSourceMap=function(e,r,n){var i=new Ce,o=e.split(NE),s=0,a=function(){var h=S(),_=S()||"";return h+_;function S(){return s<o.length?o[s++]:void 0}},u=1,c=0,l=null;return r.eachMapping(function(h){if(l!==null)if(u<h.generatedLine)d(l,a()),u++,c=0;else{var _=o[s]||"",S=_.substr(0,h.generatedColumn-c);o[s]=_.substr(h.generatedColumn-c),c=h.generatedColumn,d(l,S),l=h;return}for(;u<h.generatedLine;)i.add(a()),u++;if(c<h.generatedColumn){var _=o[s]||"";i.add(_.substr(0,h.generatedColumn)),o[s]=_.substr(h.generatedColumn),c=h.generatedColumn}l=h},this),s<o.length&&(l&&d(l,a()),i.add(o.splice(s).join(""))),r.sources.forEach(function(h){var _=r.sourceContentFor(h);_!=null&&(n!=null&&(h=Ii.join(n,h)),i.setSourceContent(h,_))}),i;function d(h,_){if(h===null||h.source===void 0)i.add(_);else{var S=n?Ii.join(n,h.source):h.source;i.add(new Ce(h.originalLine,h.originalColumn,S,_,h.name))}}};Ce.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[Er]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ce.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[Er]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ce.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Er]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Ce.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};Ce.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[Er]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};Ce.prototype.setSourceContent=function(e,r){this.sourceContents[Ii.toSetString(e)]=r};Ce.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Er]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(Ii.fromSetString(i[r]),this.sourceContents[i[r]])};Ce.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};Ce.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new PE(e),i=!1,o=null,s=null,a=null,u=null;return this.walk(function(c,l){r.code+=c,l.source!==null&&l.line!==null&&l.column!==null?((o!==l.source||s!==l.line||a!==l.column||u!==l.name)&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name}),o=l.source,s=l.line,a=l.column,u=l.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var d=0,h=c.length;d<h;d++)c.charCodeAt(d)===qE?(r.line++,r.column=0,d+1===h?(o=null,i=!1):i&&n.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:r.line,column:r.column},name:l.name})):r.column++}),this.walkSourceContents(function(c,l){n.setSourceContent(c,l)}),{code:r.code,map:n}};Jd.SourceNode=Ce});var Qd=b(Ai=>{Ai.SourceMapGenerator=Aa().SourceMapGenerator;Ai.SourceMapConsumer=Kd().SourceMapConsumer;Ai.SourceNode=Xd().SourceNode});var ep=b((ww,Zd)=>{var kE=Object.prototype.toString,ka=typeof Buffer!="undefined"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function DE(t){return kE.call(t).slice(8,-1)==="ArrayBuffer"}function LE(t,e,r){e>>>=0;var n=t.byteLength-e;if(n<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=n;else if(r>>>=0,r>n)throw new RangeError("'length' is out of bounds");return ka?Buffer.from(t.slice(e,e+r)):new Buffer(new Uint8Array(t.slice(e,e+r)))}function FE(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return ka?Buffer.from(t,e):new Buffer(t,e)}function jE(t,e,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return DE(t)?LE(t,e,r):typeof t=="string"?FE(t,e):ka?Buffer.from(t):new Buffer(t)}Zd.exports=jE});var up=b((Wt,Ga)=>{var UE=Qd().SourceMapConsumer,Da=require("path"),Ke;try{Ke=require("fs"),(!Ke.existsSync||!Ke.readFileSync)&&(Ke=null)}catch{}var HE=ep();function tp(t,e){return t.require(e)}var rp=!1,np=!1,La=!1,nn="auto",Vt={},on={},BE=/^data:application\/json[^,]+base64,/,Ct=[],xt=[];function Fa(){return nn==="browser"?!0:nn==="node"?!1:typeof window!="undefined"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function GE(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function zE(){return typeof process=="object"&&process!==null?process.version:""}function VE(){if(typeof process=="object"&&process!==null)return process.stderr}function WE(t){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(t)}function Mi(t){return function(e){for(var r=0;r<t.length;r++){var n=t[r](e);if(n)return n}return null}}var ja=Mi(Ct);Ct.push(function(t){if(t=t.trim(),/^file:/.test(t)&&(t=t.replace(/file:\/\/\/(\w:)?/,function(n,i){return i?"":"/"})),t in Vt)return Vt[t];var e="";try{if(Ke)Ke.existsSync(t)&&(e=Ke.readFileSync(t,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",t,!1),r.send(null),r.readyState===4&&r.status===200&&(e=r.responseText)}}catch{}return Vt[t]=e});function Ua(t,e){if(!t)return e;var r=Da.dirname(t),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",o=r.slice(i.length);return i&&/^\/\w\:/.test(o)?(i+="/",i+Da.resolve(r.slice(i.length),e).replace(/\\/g,"/")):i+Da.resolve(r.slice(i.length),e)}function $E(t){var e;if(Fa())try{var r=new XMLHttpRequest;r.open("GET",t,!1),r.send(null),e=r.readyState===4?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch{}e=ja(t);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,o,s;s=i.exec(e);)o=s;return o?o[1]:null}var Ha=Mi(xt);xt.push(function(t){var e=$E(t);if(!e)return null;var r;if(BE.test(e)){var n=e.slice(e.indexOf(",")+1);r=HE(n,"base64").toString(),e=t}else e=Ua(t,e),r=ja(e);return r?{url:e,map:r}:null});function Ba(t){var e=on[t.source];if(!e){var r=Ha(t.source);r?(e=on[t.source]={url:r.url,map:new UE(r.map)},e.map.sourcesContent&&e.map.sources.forEach(function(i,o){var s=e.map.sourcesContent[o];if(s){var a=Ua(e.url,i);Vt[a]=s}})):e=on[t.source]={url:null,map:null}}if(e&&e.map&&typeof e.map.originalPositionFor=="function"){var n=e.map.originalPositionFor(t);if(n.source!==null)return n.source=Ua(e.url,n.source),n}return t}function ip(t){var e=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(t);if(e){var r=Ba({source:e[2],line:+e[3],column:e[4]-1});return"eval at "+e[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return e=/^eval at ([^(]+) \((.+)\)$/.exec(t),e?"eval at "+e[1]+" ("+ip(e[2])+")":t}function YE(){var t,e="";if(this.isNative())e="native";else{t=this.getScriptNameOrSourceURL(),!t&&this.isEval()&&(e=this.getEvalOrigin(),e+=", "),t?e+=t:e+="<anonymous>";var r=this.getLineNumber();if(r!=null){e+=":"+r;var n=this.getColumnNumber();n&&(e+=":"+n)}}var i="",o=this.getFunctionName(),s=!0,a=this.isConstructor(),u=!(this.isToplevel()||a);if(u){var c=this.getTypeName();c==="[object Object]"&&(c="null");var l=this.getMethodName();o?(c&&o.indexOf(c)!=0&&(i+=c+"."),i+=o,l&&o.indexOf("."+l)!=o.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"<anonymous>")}else a?i+="new "+(o||"<anonymous>"):o?i+=o:(i+=e,s=!1);return s&&(i+=" ("+e+")"),i}function op(t){var e={};return Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(r){e[r]=/^(?:is|get)/.test(r)?function(){return t[r].call(t)}:t[r]}),e.toString=YE,e}function sp(t,e){if(e===void 0&&(e={nextPosition:null,curPosition:null}),t.isNative())return e.curPosition=null,t;var r=t.getFileName()||t.getScriptNameOrSourceURL();if(r){var n=t.getLineNumber(),i=t.getColumnNumber()-1,o=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,s=o.test(zE())?0:62;n===1&&i>s&&!Fa()&&!t.isEval()&&(i-=s);var a=Ba({source:r,line:n,column:i});e.curPosition=a,t=op(t);var u=t.getFunctionName;return t.getFunctionName=function(){return e.nextPosition==null?u():e.nextPosition.name||u()},t.getFileName=function(){return a.source},t.getLineNumber=function(){return a.line},t.getColumnNumber=function(){return a.column+1},t.getScriptNameOrSourceURL=function(){return a.source},t}var c=t.isEval()&&t.getEvalOrigin();return c&&(c=ip(c),t=op(t),t.getEvalOrigin=function(){return c}),t}function KE(t,e){La&&(Vt={},on={});for(var r=t.name||"Error",n=t.message||"",i=r+": "+n,o={nextPosition:null,curPosition:null},s=[],a=e.length-1;a>=0;a--)s.push(`
32
+ at `+sp(e[a],o)),o.nextPosition=o.curPosition;return o.curPosition=o.nextPosition=null,i+s.reverse().join("")}function ap(t){var e=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(t.stack);if(e){var r=e[1],n=+e[2],i=+e[3],o=Vt[r];if(!o&&Ke&&Ke.existsSync(r))try{o=Ke.readFileSync(r,"utf8")}catch{o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[n-1];if(s)return r+":"+n+`
33
+ `+s+`
34
+ `+new Array(i).join(" ")+"^"}}return null}function JE(t){var e=ap(t),r=VE();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),e&&(console.error(),console.error(e)),console.error(t.stack),WE(1)}function XE(){var t=process.emit;process.emit=function(e){if(e==="uncaughtException"){var r=arguments[1]&&arguments[1].stack,n=this.listeners(e).length>0;if(r&&!n)return JE(arguments[1])}return t.apply(this,arguments)}}var QE=Ct.slice(0),ZE=xt.slice(0);Wt.wrapCallSite=sp;Wt.getErrorSource=ap;Wt.mapSourcePosition=Ba;Wt.retrieveSourceMap=Ha;Wt.install=function(t){if(t=t||{},t.environment&&(nn=t.environment,["node","browser","auto"].indexOf(nn)===-1))throw new Error("environment "+nn+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(Ct.length=0),Ct.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(xt.length=0),xt.unshift(t.retrieveSourceMap)),t.hookRequire&&!Fa()){var e=tp(Ga,"module"),r=e.prototype._compile;r.__sourceMapSupport||(e.prototype._compile=function(o,s){return Vt[s]=o,on[s]=void 0,r.call(this,o,s)},e.prototype._compile.__sourceMapSupport=!0)}if(La||(La="emptyCacheBetweenOperations"in t?t.emptyCacheBetweenOperations:!1),rp||(rp=!0,Error.prepareStackTrace=KE),!np){var n="handleUncaughtExceptions"in t?t.handleUncaughtExceptions:!0;try{var i=tp(Ga,"worker_threads");i.isMainThread===!1&&(n=!1)}catch{}n&&GE()&&(np=!0,XE())}};Wt.resetRetrieveHandlers=function(){Ct.length=0,xt.length=0,Ct=QE.slice(0),xt=ZE.slice(0),Ha=Mi(xt),ja=Mi(Ct)}});var za=Gi(gu());function mu(t){if(t.length==2)return t.toUpperCase().replace(/./g,e=>String.fromCodePoint(127397+e.charCodeAt(0)))}var Tr=Gi(ud()),cp=Gi(Rd());up().install();Tr.init({dsn:"https://aec0873e750c49b082fe3594def15af1@o1116132.ingest.sentry.io/6149280",tracesSampleRate:1,integrations:[new cp.RewriteFrames({root:global.__rootdir__})]});za.default.version("0.1.0").name("country-flag-cli").command("get <flag>").action(t=>{let e=Tr.startTransaction({op:"get flag from 2 alpha code",name:"GET flag from 2 alpha code"});try{let r=mu(t);if(r===void 0)throw new Error(`Flag: ${t}
32
35
  Result: ${r}
33
- `);console.log(r)}catch(r){rr.captureException(r)}finally{e.finish()}});za.default.parse(process.argv);
36
+ `);console.log(r)}catch(r){console.error(r),Tr.captureException(r)}finally{e.finish()}});za.default.parse(process.argv);
34
37
  /*!
35
38
  localForage -- Offline Storage, Improved
36
39
  Version 1.10.0