=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},(e,t)=>{"use strict";t.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=a(e),s=i[0],c=i[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,c)),l=0,p=c>0?s-4:s;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[l++]=255&t);1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=16383,a=0,u=n-o;au?u:a+s));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,s=[],a=t;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},(e,t)=>{
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */
t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,c=(1<>1,l=-7,p=r?o-1:0,d=r?-1:1,f=e[t+p];for(p+=d,i=f&(1<<-l)-1,f>>=-l,l+=a;l>0;i=256*i+e[t+p],p+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+p],p+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),i-=u}return(f?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,c,u=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(s++,c/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*c-1)*Math.pow(2,o),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,o),s=0));o>=8;e[r+f]=255&a,f+=h,a/=256,o-=8);for(s=s<0;e[r+f]=255&s,f+=h,s/=256,u-=8);e[r+f-h]|=128*m}},e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},(e,t,r)=>{var n=r(150),o=r(151).Buffer,i=64;function s(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(i)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function a(e,t,r,n,o,i){return((t=(t+e&4294967295)+(n+i&4294967295)&4294967295)<>>32-o)+r&4294967295}function c(e,t,r,n,o,i,s){return a(t&r|~t&n,e,t,o,i,s)}function u(e,t,r,n,o,i,s){return a(t&n|r&~n,e,t,o,i,s)}function l(e,t,r,n,o,i,s){return a(t^r^n,e,t,o,i,s)}function p(e,t,r,n,o,i,s){return a(r^(t|~n),e,t,o,i,s)}e.exports=s,s.BLOCK_SIZE=i,s.prototype.update=function(e){if(n.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=n.convertToBuffer(e),r=0,o=t.byteLength;for(this.bytesHashed+=o;o>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),o--,this.bufferLength===i&&(this.hashBuffer(),this.bufferLength=0);return this},s.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,n=t.bufferLength,s=8*t.bytesHashed;if(r.setUint8(this.bufferLength++,128),n%i>=56){for(var a=this.bufferLength;a>>0,!0),r.setUint32(60,Math.floor(s/4294967296),!0),this.hashBuffer(),this.finished=!0}var c=new DataView(new ArrayBuffer(16));for(a=0;a<4;a++)c.setUint32(4*a,this.state[a],!0);var u=new o(c.buffer,c.byteOffset,c.byteLength);return e?u.toString(e):u},s.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],i=t[3];r=c(r,n,o,i,e.getUint32(0,!0),7,3614090360),i=c(i,r,n,o,e.getUint32(4,!0),12,3905402710),o=c(o,i,r,n,e.getUint32(8,!0),17,606105819),n=c(n,o,i,r,e.getUint32(12,!0),22,3250441966),r=c(r,n,o,i,e.getUint32(16,!0),7,4118548399),i=c(i,r,n,o,e.getUint32(20,!0),12,1200080426),o=c(o,i,r,n,e.getUint32(24,!0),17,2821735955),n=c(n,o,i,r,e.getUint32(28,!0),22,4249261313),r=c(r,n,o,i,e.getUint32(32,!0),7,1770035416),i=c(i,r,n,o,e.getUint32(36,!0),12,2336552879),o=c(o,i,r,n,e.getUint32(40,!0),17,4294925233),n=c(n,o,i,r,e.getUint32(44,!0),22,2304563134),r=c(r,n,o,i,e.getUint32(48,!0),7,1804603682),i=c(i,r,n,o,e.getUint32(52,!0),12,4254626195),o=c(o,i,r,n,e.getUint32(56,!0),17,2792965006),r=u(r,n=c(n,o,i,r,e.getUint32(60,!0),22,1236535329),o,i,e.getUint32(4,!0),5,4129170786),i=u(i,r,n,o,e.getUint32(24,!0),9,3225465664),o=u(o,i,r,n,e.getUint32(44,!0),14,643717713),n=u(n,o,i,r,e.getUint32(0,!0),20,3921069994),r=u(r,n,o,i,e.getUint32(20,!0),5,3593408605),i=u(i,r,n,o,e.getUint32(40,!0),9,38016083),o=u(o,i,r,n,e.getUint32(60,!0),14,3634488961),n=u(n,o,i,r,e.getUint32(16,!0),20,3889429448),r=u(r,n,o,i,e.getUint32(36,!0),5,568446438),i=u(i,r,n,o,e.getUint32(56,!0),9,3275163606),o=u(o,i,r,n,e.getUint32(12,!0),14,4107603335),n=u(n,o,i,r,e.getUint32(32,!0),20,1163531501),r=u(r,n,o,i,e.getUint32(52,!0),5,2850285829),i=u(i,r,n,o,e.getUint32(8,!0),9,4243563512),o=u(o,i,r,n,e.getUint32(28,!0),14,1735328473),r=l(r,n=u(n,o,i,r,e.getUint32(48,!0),20,2368359562),o,i,e.getUint32(20,!0),4,4294588738),i=l(i,r,n,o,e.getUint32(32,!0),11,2272392833),o=l(o,i,r,n,e.getUint32(44,!0),16,1839030562),n=l(n,o,i,r,e.getUint32(56,!0),23,4259657740),r=l(r,n,o,i,e.getUint32(4,!0),4,2763975236),i=l(i,r,n,o,e.getUint32(16,!0),11,1272893353),o=l(o,i,r,n,e.getUint32(28,!0),16,4139469664),n=l(n,o,i,r,e.getUint32(40,!0),23,3200236656),r=l(r,n,o,i,e.getUint32(52,!0),4,681279174),i=l(i,r,n,o,e.getUint32(0,!0),11,3936430074),o=l(o,i,r,n,e.getUint32(12,!0),16,3572445317),n=l(n,o,i,r,e.getUint32(24,!0),23,76029189),r=l(r,n,o,i,e.getUint32(36,!0),4,3654602809),i=l(i,r,n,o,e.getUint32(48,!0),11,3873151461),o=l(o,i,r,n,e.getUint32(60,!0),16,530742520),r=p(r,n=l(n,o,i,r,e.getUint32(8,!0),23,3299628645),o,i,e.getUint32(0,!0),6,4096336452),i=p(i,r,n,o,e.getUint32(28,!0),10,1126891415),o=p(o,i,r,n,e.getUint32(56,!0),15,2878612391),n=p(n,o,i,r,e.getUint32(20,!0),21,4237533241),r=p(r,n,o,i,e.getUint32(48,!0),6,1700485571),i=p(i,r,n,o,e.getUint32(12,!0),10,2399980690),o=p(o,i,r,n,e.getUint32(40,!0),15,4293915773),n=p(n,o,i,r,e.getUint32(4,!0),21,2240044497),r=p(r,n,o,i,e.getUint32(32,!0),6,1873313359),i=p(i,r,n,o,e.getUint32(60,!0),10,4264355552),o=p(o,i,r,n,e.getUint32(24,!0),15,2734768916),n=p(n,o,i,r,e.getUint32(52,!0),21,1309151649),r=p(r,n,o,i,e.getUint32(16,!0),6,4149444226),i=p(i,r,n,o,e.getUint32(44,!0),10,3174756917),o=p(o,i,r,n,e.getUint32(8,!0),15,718787259),n=p(n,o,i,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=o+t[2]&4294967295,t[3]=i+t[3]&4294967295}},(e,t,r)=>{var n=r(151).Buffer,o=r(150);new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53);function i(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}e.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(o.isEmptyData(e))return this;var t=(e=o.convertToBuffer(e)).length;this.totalLength+=8*t;for(var r=0;r14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new n(20),o=new DataView(r.buffer);return o.setUint32(0,this.h0,!1),o.setUint32(4,this.h1,!1),o.setUint32(8,this.h2,!1),o.setUint32(12,this.h3,!1),o.setUint32(16,this.h4,!1),e?r.toString(e):r},i.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,o=this.h0,i=this.h1,s=this.h2,a=this.h3,c=this.h4;for(e=0;e<80;e++){e<20?(r=a^i&(s^a),n=1518500249):e<40?(r=i^s^a,n=1859775393):e<60?(r=i&s|a&(i|s),n=2400959708):(r=i^s^a,n=3395469782);var u=(o<<5|o>>>27)+r+c+n+(0|this.block[e]);c=a,a=s,s=i<<30|i>>>2,i=o,o=u}for(this.h0=this.h0+o|0,this.h1=this.h1+i|0,this.h2=this.h2+s|0,this.h3=this.h3+a|0,this.h4=this.h4+c|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},(e,t,r)=>{var n=r(151).Buffer,o=r(150),i=64,s=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=Math.pow(2,53)-1;function c(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}e.exports=c,c.BLOCK_SIZE=i,c.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(o.isEmptyData(e))return this;var t=0,r=(e=o.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>a)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===i&&(this.hashBuffer(),this.bufferLength=0);return this},c.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(r.setUint8(this.bufferLength++,128),o%i>=56){for(var s=this.bufferLength;s>>24&255,a[4*s+1]=this.state[s]>>>16&255,a[4*s+2]=this.state[s]>>>8&255,a[4*s+3]=this.state[s]>>>0&255;return e?a.toString(e):a},c.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],a=t[3],c=t[4],u=t[5],l=t[6],p=t[7],d=0;d>>17|f<<15)^(f>>>19|f<<13)^f>>>10,m=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(h+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var y=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&l)|0)+(p+(s[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&o^n&o)|0;p=l,l=u,u=c,c=a+y|0,a=o,o=n,n=r,r=y+g|0}t[0]+=r,t[1]+=n,t[2]+=o,t[3]+=a,t[4]+=c,t[5]+=u,t[6]+=l,t[7]+=p}},(e,t,r)=>{var n=r(159);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?g(e,!1,!0).resolveObject(t):t},t.format=function(e){v(e)&&(e=g(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(a),u=["%","/","?",";","#"].concat(c),l=["/","?","#"],p=/^[a-z0-9A-Z_-]{0,63}$/,d=/^([a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},h={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=r(160);function g(e,t,r){if(e&&S(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}function v(e){return"string"==typeof e}function S(e){return"object"==typeof e&&null!==e}function b(e){return null===e}o.prototype.parse=function(e,t,r){if(!v(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e;o=o.trim();var s=i.exec(o);if(s){var a=(s=s[0]).toLowerCase();this.protocol=a,o=o.substr(s.length)}if(r||s||o.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===o.substr(0,2);!g||s&&h[s]||(o=o.substr(2),this.slashes=!0)}if(!h[s]&&(g||s&&!m[s])){for(var S,b,_=-1,E=0;E127?C+="x":C+=k[x];if(!C.match(p)){var O=A.slice(0,E),P=A.slice(E+1),D=k.match(d);D&&(O.push(D[1]),P.unshift(D[2])),P.length&&(o="/"+P.join(".")+o),this.hostname=O.join(".");break}}}if(this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),!I){var N=this.hostname.split("."),M=[];for(E=0;E0)&&r.host.split("@"))&&(r.auth=_.shift(),r.host=r.hostname=_.shift());return r.search=e.search,r.query=e.query,b(r.pathname)&&b(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!p.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var f=p.slice(-1)[0],y=(r.host||e.host)&&("."===f||".."===f)||""===f,g=0,S=p.length;S>=0;S--)"."==(f=p[S])?p.splice(S,1):".."===f?(p.splice(S,1),g++):g&&(p.splice(S,1),g--);if(!u&&!l)for(;g--;g)p.unshift("..");!u||""===p[0]||p[0]&&"/"===p[0].charAt(0)||p.unshift(""),y&&"/"!==p.join("/").substr(-1)&&p.push("");var _,E=""===p[0]||p[0]&&"/"===p[0].charAt(0);d&&(r.hostname=r.host=E?"":p.length?p.shift():"",(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.host=r.hostname=_.shift()));return(u=u||r.host&&p.length)&&!E&&p.unshift(""),p.length?r.pathname=p.join("/"):(r.pathname=null,r.path=null),b(r.pathname)&&b(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){var n;/*! https://mths.be/punycode v1.3.2 by @mathias */e=r.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,a=36,c=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,f=String.fromCharCode;function h(e){throw RangeError(p[e])}function m(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+m((e=e.replace(l,".")).split("."),t).join(".")}function g(e){for(var t,r,n=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function S(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function b(e,t,r){var n=0;for(e=r?d(e/700):e>>1,e+=d(e/t);e>455;n+=a)e=d(e/35);return d(n+36*e/(e+38))}function _(e){var t,r,n,o,i,c,u,l,p,f,m,y=[],g=e.length,S=0,_=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&h("not-basic"),y.push(e.charCodeAt(n));for(o=r>0?r+1:0;o=g&&h("invalid-input"),((l=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:a)>=a||l>d((s-S)/c))&&h("overflow"),S+=l*c,!(l<(p=u<=E?1:u>=E+26?26:u-E));u+=a)c>d(s/(f=a-p))&&h("overflow"),c*=f;E=b(S-i,t=y.length+1,0==i),d(S/t)>s-_&&h("overflow"),_+=d(S/t),S%=t,y.splice(S++,0,_)}return v(y)}function E(e){var t,r,n,o,i,c,u,l,p,m,y,v,_,E,w,I=[];for(v=(e=g(e)).length,t=128,r=0,i=72,c=0;c=t&&yd((s-r)/(_=n+1))&&h("overflow"),r+=(u-t)*_,t=u,c=0;cs&&h("overflow"),y==t){for(l=r,p=a;!(l<(m=p<=i?1:p>=i+26?26:p-i));p+=a)w=l-m,E=a-m,I.push(f(S(m+w%E,0))),l=d(w/E);I.push(f(S(l,0))),i=b(r,_,n==o),r=0,++n}++r,++t}return I.join("")}i={version:"1.3.2",ucs2:{decode:g,encode:v},decode:_,encode:E,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return y(e,(function(e){return c.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},(e,t,r)=>{"use strict";t.decode=t.parse=r(161),t.encode=t.stringify=r(162)},e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var s=/\+/g;e=e.split(r);var a=1e3;o&&"number"==typeof o.maxKeys&&(a=o.maxKeys);var c=e.length;a>0&&c>a&&(c=a);for(var u=0;u=0?(l=h.substr(0,m),p=h.substr(m+1)):(l=h,p=""),d=decodeURIComponent(l),f=decodeURIComponent(p),t(i,d)?Array.isArray(i[d])?i[d].push(f):i[d]=[i[d],f]:i[d]=f}return i}},e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,o){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(o){var i=encodeURIComponent(t(o))+n;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(t(e))})).join(r):i+encodeURIComponent(t(e[o]))})).join(r):o?encodeURIComponent(t(o))+n+encodeURIComponent(t(e)):""}},e=>{e.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},(e,t,r)=>{var n=r(165).eventMessageChunker,o=r(166).parseEvent;e.exports={createEventStream:function(e,t,r){for(var i=n(e),s=[],a=0;a{e.exports={eventMessageChunker:function(e){for(var t=[],r=0;r{var n=r(167).parseMessage;e.exports={parseEvent:function(e,t,r){var o=n(t),i=o.headers[":message-type"];if(i){if("error"===i.value)throw function(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],n=new Error(r.value||r);return n.code=n.name=t.value||t,n}(o);if("event"!==i.value)return}var s=o.headers[":event-type"],a=r.members[s.value];if(a){var c={},u=a.eventPayloadMemberName;if(u){var l=a.members[u];"binary"===l.type?c[u]=o.body:c[u]=e.parse(o.body.toString(),l)}for(var p=a.eventHeaderMemberNames,d=0;d{var n=r(168).Int64,o=r(169).splitMessage,i="boolean";function s(e){for(var t={},r=0;r{var n=r(36).util,o=n.buffer.toBuffer;function i(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(e)||(e=o(e)),this.bytes=e}function s(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}i.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&s(t),new i(t)},i.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&s(e),parseInt(e.toString("hex"),16)*(t?-1:1)},i.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:i}},(e,t,r)=>{var n=r(36).util,o=n.buffer.toBuffer;e.exports={splitMessage:function(e){if(n.Buffer.isBuffer(e)||(e=o(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==n.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-4);if(r!==n.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+r);var i=12+e.readUInt32BE(4);return{headers:e.slice(12,i),body:e.slice(i,e.length-4)}}}},(e,t,r)=>{var n=r(36),o=r(171);n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get((function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))}))},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new o({params:this.params})}})},(e,t,r)=>{r(34);var n=r(36),o=n.Service,i=n.apiLoader;i.services.sts={},n.STS=o.defineService("sts",["2011-06-15"]),r(172),Object.defineProperty(i.services.sts,"2011-06-15",{get:function(){var e=r(174);return e.paginators=r(175).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.STS},(e,t,r)=>{var n=r(36),o=r(173);n.util.update(n.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new n.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=o(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=r.endpoint.indexOf(".amazonaws.com"),s=r.endpoint.substring(0,i)+"."+r.region+r.endpoint.substring(i);e.httpRequest.updateEndpoint(s),e.httpRequest.region=r.region}}})},(e,t,r)=>{var n=r(36);function o(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}e.exports=function(e,t){var r;if((e=e||{})[t.clientConfig]&&(r=o(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'})))return r;if(!n.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(r=o(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return r;var i={};try{i=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[process.env.AWS_PROFILE||n.util.defaultProfile]}catch(e){}return i&&Object.prototype.hasOwnProperty.call(i,t.sharedConfig)&&(r=o(i[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+i[t.sharedConfig]+'".'})),r}},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{},"ProvidedContexts":{"type":"list","member":{"type":"structure","members":{"ProviderArn":{},"ContextAssertion":{}}}}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{"type":"string","sensitive":true},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{"type":"string","sensitive":true},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sq"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Sl"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Sl"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sl":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{"type":"string","sensitive":true},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sq":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},e=>{"use strict";e.exports={pagination:{}}},(e,t,r)=>{var n=r(36),o=r(171);n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var r=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new o(r)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode((function(n,o){var i={};n?e(n):(o&&(i.TokenCode=o),t.service[r](i,(function(r,n){r||t.service.credentialsFrom(n,t),e(r)})))}))},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,(function(r,o){if(r){var i=r;return r instanceof Error&&(i=r.message),void e(n.util.error(new Error("Error fetching MFA token: "+i),{code:t.errorCode}))}e(null,o)})):e(null)}})},(e,t,r)=>{var n=r(36),o=r(171);n.WebIdentityCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=n.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity((function(r,n){t.data=null,r||(t.data=n,t.service.credentialsFrom(n,t)),e(r)}))},createClients:function(){if(!this.service){var e=n.util.merge({},this._clientConfig);e.params=this.params,this.service=new o(e)}}})},(e,t,r)=>{var n=r(36),o=r(179),i=r(171);n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId((function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)}))},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){"NotAuthorizedException"==e.code&&this.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId((function(r,n){!r&&n.IdentityId?(t.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(r)}))},loadCredentials:function(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity((function(r,n){r?t.clearIdOnNotAuthorized(r):(t.cacheId(n),t.data=n,t.loadCredentials(t.data,t)),e(r)}))},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken((function(r,n){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(n),t.params.WebIdentityToken=n.Token,t.webIdentityCredentials.refresh((function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)})))}))},loadCachedId:function(){var e=this;if(n.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter((function(e){return-1!==r.indexOf(e)})).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new n.WebIdentityCredentials(this.params,e),!this.cognito){var t=n.util.merge({},e);t.params=this.params,this.cognito=new o(t)}this.sts=this.sts||new i(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=n.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(e){return{}}}()})},(e,t,r)=>{r(34);var n=r(36),o=n.Service,i=n.apiLoader;i.services.cognitoidentity={},n.CognitoIdentity=o.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(i.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(180);return e.paginators=r(181).pagination,e},enumerable:!0,configurable:!0}),e.exports=n.CognitoIdentity},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","protocols":["json"],"serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30","auth":["aws.auth#sigv4"]},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none","auth":["smithy.api#noAuth"]},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none","auth":["smithy.api#noAuth"]},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},e=>{"use strict";e.exports=JSON.parse('{"pagination":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},(e,t,r)=>{var n=r(36),o=r(171);n.SAMLCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML((function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))},createClients:function(){this.service=this.service||new o({params:this.params})}})},(e,t,r)=>{var n=r(35),o=r(43);function i(){}function s(e,t){for(var r=e.getElementsByTagName(t),n=0,o=r.length;n{var n=r(36),o=r(185).EventEmitter;r(69),n.XHRClient=n.util.inherit({handleRequest:function(e,t,r,i){var s=this,a=e.endpoint,c=new o,u=a.protocol+"//"+a.hostname;80!==a.port&&443!==a.port&&(u+=":"+a.port),u+=e.path;var l=new XMLHttpRequest,p=!1;e.stream=l,l.addEventListener("readystatechange",(function(){try{if(0===l.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!p&&(c.statusCode=l.status,c.headers=s.parseHeaders(l.getAllResponseHeaders()),c.emit("headers",c.statusCode,c.headers,l.statusText),p=!0),this.readyState===this.DONE&&s.finishRequest(l,c)}),!1),l.upload.addEventListener("progress",(function(e){c.emit("sendProgress",e)})),l.addEventListener("progress",(function(e){c.emit("receiveProgress",e)}),!1),l.addEventListener("timeout",(function(){i(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))}),!1),l.addEventListener("error",(function(){i(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))}),!1),l.addEventListener("abort",(function(){i(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))}),!1),r(c),l.open(e.method,u,!1!==t.xhrAsync),n.util.each(e.headers,(function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&l.setRequestHeader(e,t)})),t.timeout&&!1!==t.xhrAsync&&(l.timeout=t.timeout),t.xhrWithCredentials&&(l.withCredentials=!0);try{l.responseType="arraybuffer"}catch(e){}try{e.body?l.send(e.body):l.send()}catch(t){if(!e.body||"object"!=typeof e.body.buffer)throw t;l.send(e.body.buffer)}return c},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),(function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)})),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var o=e.response;r=new n.util.Buffer(o.byteLength);for(var i=new Uint8Array(o),s=0;s{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,s,a,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(n(i))for(a=Array.prototype.slice.call(arguments,1),s=(u=i.slice()).length,c=0;c0&&this._events[e].length>s&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(e,o),n||(n=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},t.prototype.removeListener=function(e,t){var o,i,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(o=this._events[e]).length,i=-1,o===t||r(o.listener)&&o.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(o)){for(a=s;a-- >0;)if(o[a]===t||o[a].listener&&o[a].listener===t){i=a;break}if(i<0)return this;1===o.length?(o.length=0,delete this._events[e]):o.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2015-08-04","endpointPrefix":"firehose","jsonVersion":"1.1","protocol":"json","protocols":["json"],"serviceAbbreviation":"Firehose","serviceFullName":"Amazon Kinesis Firehose","serviceId":"Firehose","signatureVersion":"v4","targetPrefix":"Firehose_20150804","uid":"firehose-2015-08-04","auth":["aws.auth#sigv4"]},"operations":{"CreateDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"DeliveryStreamType":{},"KinesisStreamSourceConfiguration":{"type":"structure","required":["KinesisStreamARN","RoleARN"],"members":{"KinesisStreamARN":{},"RoleARN":{}}},"DeliveryStreamEncryptionConfigurationInput":{"shape":"S7"},"S3DestinationConfiguration":{"shape":"Sa","deprecated":true},"ExtendedS3DestinationConfiguration":{"type":"structure","required":["RoleARN","BucketARN"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupConfiguration":{"shape":"Sa"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationConfiguration":{"type":"structure","required":["RoleARN","ClusterJDBCURL","CopyCommand","S3Configuration"],"members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"Password":{"shape":"S20"},"RetryOptions":{"shape":"S21"},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupConfiguration":{"shape":"Sa"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationConfiguration":{"type":"structure","required":["HECEndpoint","HECEndpointType","S3Configuration"],"members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationConfiguration":{"type":"structure","required":["EndpointConfiguration","S3Configuration"],"members":{"EndpointConfiguration":{"shape":"S3b"},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"}}},"Tags":{"shape":"S3r"},"AmazonOpenSearchServerlessDestinationConfiguration":{"type":"structure","required":["RoleARN","IndexName","S3Configuration"],"members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfiguration":{"shape":"S2i"}}},"MSKSourceConfiguration":{"type":"structure","required":["MSKClusterARN","TopicName","AuthenticationConfiguration"],"members":{"MSKClusterARN":{},"TopicName":{},"AuthenticationConfiguration":{"shape":"S47"},"ReadFromTimestamp":{"type":"timestamp"}}},"SnowflakeDestinationConfiguration":{"type":"structure","required":["AccountUrl","Database","Schema","Table","RoleARN","S3Configuration"],"members":{"AccountUrl":{"shape":"S4b"},"PrivateKey":{"shape":"S4c"},"KeyPassphrase":{"shape":"S4d"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"SnowflakeVpcConfiguration":{"shape":"S4n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3Configuration":{"shape":"Sa"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"IcebergDestinationConfiguration":{"type":"structure","required":["RoleARN","CatalogConfiguration","S3Configuration"],"members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3Configuration":{"shape":"Sa"}}}}},"output":{"type":"structure","members":{"DeliveryStreamARN":{}}}},"DeleteDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"AllowForceDelete":{"type":"boolean"}}},"output":{"type":"structure","members":{}}},"DescribeDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"Limit":{"type":"integer"},"ExclusiveStartDestinationId":{}}},"output":{"type":"structure","required":["DeliveryStreamDescription"],"members":{"DeliveryStreamDescription":{"type":"structure","required":["DeliveryStreamName","DeliveryStreamARN","DeliveryStreamStatus","DeliveryStreamType","VersionId","Destinations","HasMoreDestinations"],"members":{"DeliveryStreamName":{},"DeliveryStreamARN":{},"DeliveryStreamStatus":{},"FailureDescription":{"shape":"S5b"},"DeliveryStreamEncryptionConfiguration":{"type":"structure","members":{"KeyARN":{},"KeyType":{},"Status":{},"FailureDescription":{"shape":"S5b"}}},"DeliveryStreamType":{},"VersionId":{},"CreateTimestamp":{"type":"timestamp"},"LastUpdateTimestamp":{"type":"timestamp"},"Source":{"type":"structure","members":{"KinesisStreamSourceDescription":{"type":"structure","members":{"KinesisStreamARN":{},"RoleARN":{},"DeliveryStartTimestamp":{"type":"timestamp"}}},"MSKSourceDescription":{"type":"structure","members":{"MSKClusterARN":{},"TopicName":{},"AuthenticationConfiguration":{"shape":"S47"},"DeliveryStartTimestamp":{"type":"timestamp"},"ReadFromTimestamp":{"type":"timestamp"}}}}},"Destinations":{"type":"list","member":{"type":"structure","required":["DestinationId"],"members":{"DestinationId":{},"S3DestinationDescription":{"shape":"S5n"},"ExtendedS3DestinationDescription":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5n"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationDescription":{"type":"structure","required":["RoleARN","ClusterJDBCURL","CopyCommand","S3DestinationDescription"],"members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"RetryOptions":{"shape":"S21"},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupDescription":{"shape":"S5n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationDescription":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationDescription":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationDescription":{"type":"structure","members":{"EndpointConfiguration":{"type":"structure","members":{"Url":{"shape":"S3c"},"Name":{}}},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"SecretsManagerConfiguration":{"shape":"S24"}}},"SnowflakeDestinationDescription":{"type":"structure","members":{"AccountUrl":{"shape":"S4b"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"SnowflakeVpcConfiguration":{"shape":"S4n"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"AmazonOpenSearchServerlessDestinationDescription":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3BackupMode":{},"S3DestinationDescription":{"shape":"S5n"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"VpcConfigurationDescription":{"shape":"S5r"}}},"IcebergDestinationDescription":{"type":"structure","members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3DestinationDescription":{"shape":"S5n"}}}}}},"HasMoreDestinations":{"type":"boolean"}}}}}},"ListDeliveryStreams":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"DeliveryStreamType":{},"ExclusiveStartDeliveryStreamName":{}}},"output":{"type":"structure","required":["DeliveryStreamNames","HasMoreDeliveryStreams"],"members":{"DeliveryStreamNames":{"type":"list","member":{}},"HasMoreDeliveryStreams":{"type":"boolean"}}}},"ListTagsForDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"ExclusiveStartTagKey":{},"Limit":{"type":"integer"}}},"output":{"type":"structure","required":["Tags","HasMoreTags"],"members":{"Tags":{"type":"list","member":{"shape":"S3s"}},"HasMoreTags":{"type":"boolean"}}}},"PutRecord":{"input":{"type":"structure","required":["DeliveryStreamName","Record"],"members":{"DeliveryStreamName":{},"Record":{"shape":"S68"}}},"output":{"type":"structure","required":["RecordId"],"members":{"RecordId":{},"Encrypted":{"type":"boolean"}}}},"PutRecordBatch":{"input":{"type":"structure","required":["DeliveryStreamName","Records"],"members":{"DeliveryStreamName":{},"Records":{"type":"list","member":{"shape":"S68"}}}},"output":{"type":"structure","required":["FailedPutCount","RequestResponses"],"members":{"FailedPutCount":{"type":"integer"},"Encrypted":{"type":"boolean"},"RequestResponses":{"type":"list","member":{"type":"structure","members":{"RecordId":{},"ErrorCode":{},"ErrorMessage":{}}}}}}},"StartDeliveryStreamEncryption":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{},"DeliveryStreamEncryptionConfigurationInput":{"shape":"S7"}}},"output":{"type":"structure","members":{}}},"StopDeliveryStreamEncryption":{"input":{"type":"structure","required":["DeliveryStreamName"],"members":{"DeliveryStreamName":{}}},"output":{"type":"structure","members":{}}},"TagDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName","Tags"],"members":{"DeliveryStreamName":{},"Tags":{"shape":"S3r"}}},"output":{"type":"structure","members":{}}},"UntagDeliveryStream":{"input":{"type":"structure","required":["DeliveryStreamName","TagKeys"],"members":{"DeliveryStreamName":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateDestination":{"input":{"type":"structure","required":["DeliveryStreamName","CurrentDeliveryStreamVersionId","DestinationId"],"members":{"DeliveryStreamName":{},"CurrentDeliveryStreamVersionId":{},"DestinationId":{},"S3DestinationUpdate":{"shape":"S6t","deprecated":true},"ExtendedS3DestinationUpdate":{"type":"structure","members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6t"},"DataFormatConversionConfiguration":{"shape":"Sz"},"DynamicPartitioningConfiguration":{"shape":"S1o"},"FileExtension":{},"CustomTimeZone":{}}},"RedshiftDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"ClusterJDBCURL":{},"CopyCommand":{"shape":"S1v"},"Username":{"shape":"S1z"},"Password":{"shape":"S20"},"RetryOptions":{"shape":"S21"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"S3BackupUpdate":{"shape":"S6t"},"CloudWatchLoggingOptions":{"shape":"Sl"},"SecretsManagerConfiguration":{"shape":"S24"}}},"ElasticsearchDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2c"},"RetryOptions":{"shape":"S2f"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"DocumentIdOptions":{"shape":"S2l"}}},"AmazonopensearchserviceDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"DomainARN":{},"ClusterEndpoint":{},"IndexName":{},"TypeName":{},"IndexRotationPeriod":{},"BufferingHints":{"shape":"S2t"},"RetryOptions":{"shape":"S2w"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"DocumentIdOptions":{"shape":"S2l"}}},"SplunkDestinationUpdate":{"type":"structure","members":{"HECEndpoint":{},"HECEndpointType":{},"HECToken":{},"HECAcknowledgmentTimeoutInSeconds":{"type":"integer"},"RetryOptions":{"shape":"S34"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"},"BufferingHints":{"shape":"S37"},"SecretsManagerConfiguration":{"shape":"S24"}}},"HttpEndpointDestinationUpdate":{"type":"structure","members":{"EndpointConfiguration":{"shape":"S3b"},"BufferingHints":{"shape":"S3f"},"CloudWatchLoggingOptions":{"shape":"Sl"},"RequestConfiguration":{"shape":"S3i"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S3o"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"SecretsManagerConfiguration":{"shape":"S24"}}},"AmazonOpenSearchServerlessDestinationUpdate":{"type":"structure","members":{"RoleARN":{},"CollectionEndpoint":{},"IndexName":{},"BufferingHints":{"shape":"S3y"},"RetryOptions":{"shape":"S41"},"S3Update":{"shape":"S6t"},"ProcessingConfiguration":{"shape":"Sq"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"SnowflakeDestinationUpdate":{"type":"structure","members":{"AccountUrl":{"shape":"S4b"},"PrivateKey":{"shape":"S4c"},"KeyPassphrase":{"shape":"S4d"},"User":{"shape":"S4e"},"Database":{"shape":"S4f"},"Schema":{"shape":"S4g"},"Table":{"shape":"S4h"},"SnowflakeRoleConfiguration":{"shape":"S4i"},"DataLoadingOption":{},"MetaDataColumnName":{"shape":"S4l"},"ContentColumnName":{"shape":"S4m"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"RoleARN":{},"RetryOptions":{"shape":"S4p"},"S3BackupMode":{},"S3Update":{"shape":"S6t"},"SecretsManagerConfiguration":{"shape":"S24"},"BufferingHints":{"shape":"S4s"}}},"IcebergDestinationUpdate":{"type":"structure","members":{"DestinationTableConfigurationList":{"shape":"S4w"},"BufferingHints":{"shape":"Se"},"CloudWatchLoggingOptions":{"shape":"Sl"},"ProcessingConfiguration":{"shape":"Sq"},"S3BackupMode":{},"RetryOptions":{"shape":"S1p"},"RoleARN":{},"CatalogConfiguration":{"shape":"S4z"},"S3Configuration":{"shape":"Sa"}}}}},"output":{"type":"structure","members":{}}}},"shapes":{"S7":{"type":"structure","required":["KeyType"],"members":{"KeyARN":{},"KeyType":{}}},"Sa":{"type":"structure","required":["RoleARN","BucketARN"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"Se":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"Si":{"type":"structure","members":{"NoEncryptionConfig":{},"KMSEncryptionConfig":{"type":"structure","required":["AWSKMSKeyARN"],"members":{"AWSKMSKeyARN":{}}}}},"Sl":{"type":"structure","members":{"Enabled":{"type":"boolean"},"LogGroupName":{},"LogStreamName":{}}},"Sq":{"type":"structure","members":{"Enabled":{"type":"boolean"},"Processors":{"type":"list","member":{"type":"structure","required":["Type"],"members":{"Type":{},"Parameters":{"type":"list","member":{"type":"structure","required":["ParameterName","ParameterValue"],"members":{"ParameterName":{},"ParameterValue":{}}}}}}}}},"Sz":{"type":"structure","members":{"SchemaConfiguration":{"type":"structure","members":{"RoleARN":{},"CatalogId":{},"DatabaseName":{},"TableName":{},"Region":{},"VersionId":{}}},"InputFormatConfiguration":{"type":"structure","members":{"Deserializer":{"type":"structure","members":{"OpenXJsonSerDe":{"type":"structure","members":{"ConvertDotsInJsonKeysToUnderscores":{"type":"boolean"},"CaseInsensitive":{"type":"boolean"},"ColumnToJsonKeyMappings":{"type":"map","key":{},"value":{}}}},"HiveJsonSerDe":{"type":"structure","members":{"TimestampFormats":{"type":"list","member":{}}}}}}}},"OutputFormatConfiguration":{"type":"structure","members":{"Serializer":{"type":"structure","members":{"ParquetSerDe":{"type":"structure","members":{"BlockSizeBytes":{"type":"integer"},"PageSizeBytes":{"type":"integer"},"Compression":{},"EnableDictionaryCompression":{"type":"boolean"},"MaxPaddingBytes":{"type":"integer"},"WriterVersion":{}}},"OrcSerDe":{"type":"structure","members":{"StripeSizeBytes":{"type":"integer"},"BlockSizeBytes":{"type":"integer"},"RowIndexStride":{"type":"integer"},"EnablePadding":{"type":"boolean"},"PaddingTolerance":{"type":"double"},"Compression":{},"BloomFilterColumns":{"shape":"S1m"},"BloomFilterFalsePositiveProbability":{"type":"double"},"DictionaryKeyThreshold":{"type":"double"},"FormatVersion":{}}}}}}},"Enabled":{"type":"boolean"}}},"S1m":{"type":"list","member":{}},"S1o":{"type":"structure","members":{"RetryOptions":{"shape":"S1p"},"Enabled":{"type":"boolean"}}},"S1p":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S1v":{"type":"structure","required":["DataTableName"],"members":{"DataTableName":{},"DataTableColumns":{},"CopyOptions":{}}},"S1z":{"type":"string","sensitive":true},"S20":{"type":"string","sensitive":true},"S21":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S24":{"type":"structure","required":["Enabled"],"members":{"SecretARN":{},"RoleARN":{},"Enabled":{"type":"boolean"}}},"S2c":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S2f":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S2i":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"}}},"S2j":{"type":"list","member":{}},"S2k":{"type":"list","member":{}},"S2l":{"type":"structure","required":["DefaultDocumentIdFormat"],"members":{"DefaultDocumentIdFormat":{}}},"S2t":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S2w":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S34":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S37":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S3b":{"type":"structure","required":["Url"],"members":{"Url":{"shape":"S3c"},"Name":{},"AccessKey":{"type":"string","sensitive":true}}},"S3c":{"type":"string","sensitive":true},"S3f":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"S3i":{"type":"structure","members":{"ContentEncoding":{},"CommonAttributes":{"type":"list","member":{"type":"structure","required":["AttributeName","AttributeValue"],"members":{"AttributeName":{"type":"string","sensitive":true},"AttributeValue":{"type":"string","sensitive":true}}}}}},"S3o":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S3r":{"type":"list","member":{"shape":"S3s"}},"S3s":{"type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}},"S3y":{"type":"structure","members":{"IntervalInSeconds":{"type":"integer"},"SizeInMBs":{"type":"integer"}}},"S41":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S47":{"type":"structure","required":["RoleARN","Connectivity"],"members":{"RoleARN":{},"Connectivity":{}}},"S4b":{"type":"string","sensitive":true},"S4c":{"type":"string","sensitive":true},"S4d":{"type":"string","sensitive":true},"S4e":{"type":"string","sensitive":true},"S4f":{"type":"string","sensitive":true},"S4g":{"type":"string","sensitive":true},"S4h":{"type":"string","sensitive":true},"S4i":{"type":"structure","members":{"Enabled":{"type":"boolean"},"SnowflakeRole":{"type":"string","sensitive":true}}},"S4l":{"type":"string","sensitive":true},"S4m":{"type":"string","sensitive":true},"S4n":{"type":"structure","required":["PrivateLinkVpceId"],"members":{"PrivateLinkVpceId":{"type":"string","sensitive":true}}},"S4p":{"type":"structure","members":{"DurationInSeconds":{"type":"integer"}}},"S4s":{"type":"structure","members":{"SizeInMBs":{"type":"integer"},"IntervalInSeconds":{"type":"integer"}}},"S4w":{"type":"list","member":{"type":"structure","required":["DestinationTableName","DestinationDatabaseName"],"members":{"DestinationTableName":{},"DestinationDatabaseName":{},"UniqueKeys":{"shape":"S1m"},"S3ErrorOutputPrefix":{}}}},"S4z":{"type":"structure","members":{"CatalogARN":{}}},"S5b":{"type":"structure","required":["Type","Details"],"members":{"Type":{},"Details":{}}},"S5n":{"type":"structure","required":["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],"members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}},"S5r":{"type":"structure","required":["SubnetIds","RoleARN","SecurityGroupIds","VpcId"],"members":{"SubnetIds":{"shape":"S2j"},"RoleARN":{},"SecurityGroupIds":{"shape":"S2k"},"VpcId":{}}},"S68":{"type":"structure","required":["Data"],"members":{"Data":{"type":"blob"}}},"S6t":{"type":"structure","members":{"RoleARN":{},"BucketARN":{},"Prefix":{},"ErrorOutputPrefix":{},"BufferingHints":{"shape":"Se"},"CompressionFormat":{},"EncryptionConfiguration":{"shape":"Si"},"CloudWatchLoggingOptions":{"shape":"Sl"}}}}}')},e=>{"use strict";e.exports={pagination:{}}},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,s.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,a,d,f,h,m,y,g;if(y=e.split("#"),e=y.shift(),y=e.split("?"),e=y.shift(),(y=e.split("://")).length>1){if(r=y.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(r))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;y[0]=e.slice(2)}}if(""===(e=y.join("://")))return!1;if(y=e.split("/"),""===(e=y.shift())&&!t.require_host)return!0;if((y=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===y[0])return!1;if((a=y.shift()).indexOf(":")>=0&&a.split(":").length>2)return!1;var v=a.split(":"),S=(w=2,function(e){if(Array.isArray(e))return e}(E=v)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(E,w)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(E,w)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=S[0],_=S[1];if(""===b&&""===_)return!1}var E,w;f=y.join("@"),m=null,g=null;var I=f.match(l);I?(d="",g=I[1],m=I[2]||null):(d=(y=f.split(":")).shift(),y.length&&(m=y.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return p(d,t.host_whitelist);if(""===d&&!t.require_host)return!0;if(!((0,i.default)(d)||(0,o.default)(d,t)||g&&(0,i.default)(g,6)))return!1;if(d=d||g,t.host_blacklist&&p(d,t.host_blacklist))return!1;return!0};var n=a(r(189)),o=a(r(190)),i=a(r(192)),s=a(r(191));function a(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=r(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),(t=(0,o.default)(t,s)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),i=r[r.length-1];if(t.require_tld){if(r.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return r.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=i(r(189)),o=i(r(191));function i(e){return e&&e.__esModule?e:{default:e}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(r=String(r)))return e(t,4)||e(t,6);if("4"===r)return a.test(t);if("6"===r)return u.test(t);return!1};var n,o=(n=r(189))&&n.__esModule?n:{default:n};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(i,"[.]){3}").concat(i),a=new RegExp("^".concat(s,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(s,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(s,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(s,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(s,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(s,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(s,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(s,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={get(e){const t=document.cookie.split("; ");for(let r=0;r{"use strict";r.r(t),r.d(t,{hasPreferences:()=>o,isAnalyticsAllowed:()=>a,loadPreferences:()=>s,savePreferences:()=>i});const n="cookie-policy",o=()=>!!localStorage.getItem(n),i=e=>{localStorage.setItem(n,JSON.stringify(e))},s=()=>{let e=!1,t=!1;try{const r=localStorage.getItem(n),o=r?JSON.parse(r):{};"boolean"==typeof o.analytics&&({analytics:e}=o),"boolean"==typeof o.marketing&&({marketing:t}=o)}catch{}return{analytics:e,marketing:t}},a=()=>s().analytics},(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(196),o=r(285),i=r(310),s=r(199),a=r(328);const c=({sentry:e})=>{if(!e)return;if(window.navigator.userAgent.match(/jsdom/))return;const{user:t=null,tags:r={},environment:c,...u}=e,l="development"===c;(0,n.init)({integrations:[(0,o.replayIntegration)({maskAllText:!l,maskAllInputs:!l}),(0,i.browserTracingIntegration)({beforeStartSpan:e=>({...e,name:location.pathname.replace(/\/[a-f0-9]{8}-[a-f0-9]{4}-[0-5][a-f0-9]{3}-[089ab][a-f0-9]{3}-[a-f0-9]{12}/gi,"/").replace(/\/[a-f0-9]{32}/g,"/").replace(/\/\d+/g,"/").replace(/\/type\/(domain|alias)/,"/type/")})})],beforeSend:(e,t)=>{const r=t.originalException;if(r&&r.stack){const e=/global code@|@debugger/.test(r.stack),t=r.stack.split("\n"),n=2===t.length&&/:1:(\d+)$/.test(t.at(-1));if(e||n)return null}return e},beforeBreadcrumb:(0,a.withoutGraphQLFetch)((e=>{if("xhr"===e.category||"fetch"===e.category){const t=e.data?.url??"";if(t.includes("firehose.us-west-2.amazonaws.com"))return null;if(t.includes("/cp/locale")){return{type:"http",category:"plesk.locale",data:{sections:new URLSearchParams(t.split("?")[1]).getAll("sections[]")}}}}return e})),ignoreErrors:["ResizeObserver loop","ApiFetchError:","whmcs_user_id is not defined","__renderMessageNode is not defined","Module build failed","jQuery is not defined","safari-extension://","moz-extension://","chrome-extension://","Object Not Found Matching Id:","Script error for","loadAndDisplayNotifications"],denyUrls:[/extensions\//i,/^chrome:\/\//i,"/modules/help-center/global.js","/modules/baqend/script.js","/modules/addendio-wordpress/global.js","/modules/revisium-antivirus/js/ra_domain.js","/modules/wp-toolkit/js/domain-page.js"],sampleRate:l?1:.05,replaysSessionSampleRate:0,replaysOnErrorSampleRate:l?1:0,tracesSampleRate:l?.001:0,environment:c,...u});const p=(0,s.getCurrentScope)();p.setUser(t);for(const e in r)p.setTag(e,r[e])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyDefaultOptions:()=>k,forceLoad:()=>O,getDefaultIntegrations:()=>T,init:()=>x,onLoad:()=>P,showReportDialog:()=>R});var n=r(281),o=r(282),i=r(283),s=r(209),a=r(212),c=r(260),u=r(220),l=r(244),p=r(284),d=r(199),f=r(223),h=r(240),m=r(197),y=r(252),g=r(222),v=r(253),S=r(266),b=r(267),_=r(268),E=r(271),w=r(272),I=r(274),A=r(275);function T(e){return[(0,n.inboundFiltersIntegration)(),(0,o.functionToStringIntegration)(),(0,S.browserApiErrorsIntegration)(),(0,v.breadcrumbsIntegration)(),(0,_.globalHandlersIntegration)(),(0,w.linkedErrorsIntegration)(),(0,i.dedupeIntegration)(),(0,E.httpContextIntegration)(),(0,b.browserSessionIntegration)()]}function k(e={}){return{...{defaultIntegrations:T(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:g.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0},...C(e)}}function C(e){const t={};for(const r of Object.getOwnPropertyNames(e)){const n=r;void 0!==e[n]&&(t[n]=e[n])}return t}function x(e={}){const t=k(e);if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==g.WINDOW.window&&g.WINDOW;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],r=t?.runtime?.id,n=(0,s.getLocationHref)()||"",o=!!r&&g.WINDOW===g.WINDOW.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>n.startsWith(`${e}//`))),i=void 0!==e.nw;return!!r&&!o&&!i}())return void(y.DEBUG_BUILD&&(0,a.consoleSandbox)((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})));y.DEBUG_BUILD&&!(0,c.supportsFetch)()&&a.logger.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");const r={...t,stackParser:(0,u.stackParserFromStackParserOptions)(t.stackParser||I.defaultStackParser),integrations:(0,l.getIntegrationsToSetup)(t),transport:t.transport||A.makeFetchTransport};return(0,p.initAndBind)(m.BrowserClient,r)}function R(e={}){if(!g.WINDOW.document)return void(y.DEBUG_BUILD&&a.logger.error("Global document not defined in showReportDialog call"));const t=(0,d.getCurrentScope)(),r=t.getClient(),n=r?.getDsn();if(!n)return void(y.DEBUG_BUILD&&a.logger.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=(0,f.lastEventId)();t&&(e.eventId=t)}const o=g.WINDOW.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=(0,h.getReportDialogEndpoint)(n,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:i}=e;if(i){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{i()}finally{g.WINDOW.removeEventListener("message",e)}};g.WINDOW.addEventListener("message",e)}const s=g.WINDOW.document.head||g.WINDOW.document.body;s?s.appendChild(o):y.DEBUG_BUILD&&a.logger.error("Not injecting report dialog. No injection point found in HTML")}function O(){}function P(e){e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BrowserClient:()=>u});var n=r(239),o=r(249),i=r(250),s=r(251),a=r(198),c=r(222);class u extends n.Client{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e},r=c.WINDOW.SENTRY_SDK_SOURCE||(0,o.getSDKSource)();(0,i.applySdkMetadata)(t,"browser",["browser"],r),super(t),t.sendClientReports&&c.WINDOW.document&&c.WINDOW.document.addEventListener("visibilitychange",(()=>{"hidden"===c.WINDOW.document.visibilityState&&this._flushOutcomes()})),this._options.sendDefaultPii&&(this.on("postprocessEvent",s.addAutoIpAddressToUser),this.on("beforeSendSession",s.addAutoIpAddressToSession))}eventFromException(e,t){return(0,a.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,a.eventFromMessage)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFromException:()=>g,eventFromMessage:()=>v,eventFromUnknownInput:()=>S,exceptionFromError:()=>u,extractMessage:()=>y,extractType:()=>m});var n=r(199),o=r(219),i=r(210),s=r(215),a=r(221),c=r(208);function u(e,t){const r=d(e,t),n={type:m(t),value:y(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function l(e,t,r,s){const a=(0,n.getClient)(),c=a?.getOptions().normalizeDepth,l=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];if(r instanceof Error)return r}return}(t),p={__serialized__:(0,o.normalizeToSize)(t,c)};if(l)return{exception:{values:[u(e,l)]},extra:p};const f={exception:{values:[{type:(0,i.isEvent)(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:_(t,{isUnhandledRejection:s})}]},extra:p};if(r){const t=d(e,r);t.length&&(f.exception.values[0].stacktrace={frames:t})}return f}function p(e,t){return{exception:{values:[u(e,t)]}}}function d(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e&&f.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(r,n,o)}catch(e){}return[]}const f=/Minified React error #\d+;/i;function h(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function m(e){const t=e?.name;if(!t&&h(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function y(e){const t=e?.message;return h(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function g(e,t,r,n){const o=S(e,t,r?.syntheticException||void 0,n);return(0,s.addExceptionMechanism)(o),o.level="error",r?.event_id&&(o.event_id=r.event_id),(0,a.resolvedSyncPromise)(o)}function v(e,t,r="info",n,o){const i=b(e,t,n?.syntheticException||void 0,o);return i.level=r,n?.event_id&&(i.event_id=n.event_id),(0,a.resolvedSyncPromise)(i)}function S(e,t,r,n,o){let a;if((0,i.isErrorEvent)(t)&&t.error){return p(e,t.error)}if((0,i.isDOMError)(t)||(0,i.isDOMException)(t)){const o=t;if("stack"in t)a=p(e,t);else{const t=o.name||((0,i.isDOMError)(o)?"DOMError":"DOMException"),c=o.message?`${t}: ${o.message}`:t;a=b(e,c,r,n),(0,s.addExceptionTypeValue)(a,c)}return"code"in o&&(a.tags={...a.tags,"DOMException.code":`${o.code}`}),a}if((0,i.isError)(t))return p(e,t);if((0,i.isPlainObject)(t)||(0,i.isEvent)(t)){return a=l(e,t,r,o),(0,s.addExceptionMechanism)(a,{synthetic:!0}),a}return a=b(e,t,r,n),(0,s.addExceptionTypeValue)(a,`${t}`,void 0),(0,s.addExceptionMechanism)(a,{synthetic:!0}),a}function b(e,t,r,n){const o={};if(n&&r){const n=d(e,r);n.length&&(o.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,s.addExceptionMechanism)(o,{synthetic:!0})}if((0,i.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:r}=t;return o.logentry={message:e,params:r},o}return o.message=t,o}function _(e,{isUnhandledRejection:t}){const r=(0,c.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,i.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,i.isEvent)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getClient:()=>f,getCurrentScope:()=>c,getGlobalScope:()=>l,getIsolationScope:()=>u,getTraceContextFromScope:()=>h,withIsolationScope:()=>d,withScope:()=>p});var n=r(200),o=r(201),i=r(206),s=r(208),a=r(216);function c(){const e=(0,o.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getCurrentScope()}function u(){const e=(0,o.getMainCarrier)();return(0,n.getAsyncContextStrategy)(e).getIsolationScope()}function l(){return(0,o.getGlobalSingleton)("globalScope",(()=>new i.Scope))}function p(...e){const t=(0,o.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function d(...e){const t=(0,o.getMainCarrier)(),r=(0,n.getAsyncContextStrategy)(t);if(2===e.length){const[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])}function f(){return c().getClient()}function h(e){const t=e.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:o}=t;return(0,s.dropUndefinedKeys)({trace_id:r,span_id:o||(0,a.generateSpanId)(),parent_span_id:n})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getAsyncContextStrategy:()=>s,setAsyncContextStrategy:()=>i});var n=r(201),o=r(204);function i(e){const t=(0,n.getMainCarrier)();(0,n.getSentryCarrier)(t).acs=e}function s(e){const t=(0,n.getSentryCarrier)(e);return t.acs?t.acs:(0,o.getStackAsyncContextStrategy)()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getGlobalSingleton:()=>a,getMainCarrier:()=>i,getSentryCarrier:()=>s});var n=r(202),o=r(203);function i(){return s(o.GLOBAL_OBJ),o.GLOBAL_OBJ}function s(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.SDK_VERSION,t[n.SDK_VERSION]=t[n.SDK_VERSION]||{}}function a(e,t,r=o.GLOBAL_OBJ){const i=r.__SENTRY__=r.__SENTRY__||{},s=i[n.SDK_VERSION]=i[n.SDK_VERSION]||{};return s[e]||(s[e]=t())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SDK_VERSION:()=>n});const n="9.6.0"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{GLOBAL_OBJ:()=>n});const n=globalThis},(e,t,r)=>{"use strict";r.r(t),r.d(t,{AsyncContextStack:()=>a,getStackAsyncContextStrategy:()=>d});var n=r(205),o=r(206),i=r(210),s=r(201);class a{constructor(e,t){let r,n;r=e||new o.Scope,n=t||new o.Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(e){throw this._popScope(),e}return(0,i.isThenable)(r)?r.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){const e=(0,s.getMainCarrier)(),t=(0,s.getSentryCarrier)(e);return t.stack=t.stack||new a((0,n.getDefaultCurrentScope)(),(0,n.getDefaultIsolationScope)())}function u(e){return c().withScope(e)}function l(e,t){const r=c();return r.withScope((()=>(r.getStackTop().scope=e,t(e))))}function p(e){return c().withScope((()=>e(c().getIsolationScope())))}function d(){return{withIsolationScope:p,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>p(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDefaultCurrentScope:()=>i,getDefaultIsolationScope:()=>s});var n=r(201),o=r(206);function i(){return(0,n.getGlobalSingleton)("defaultCurrentScope",(()=>new o.Scope))}function s(){return(0,n.getGlobalSingleton)("defaultIsolationScope",(()=>new o.Scope))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{Scope:()=>p});var n=r(207),o=r(210),i=r(212),s=r(215),a=r(216),c=r(214),u=r(217),l=r(218);class p{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,a.generateTraceId)(),sampleRand:Math.random()}}clone(){const e=new p;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,l._setSpanForScope)(e,(0,l._getSpanForScope)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,n.updateSession)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,r=t instanceof p?t.getScopeData():(0,o.isPlainObject)(t)?e:void 0,{tags:n,extra:i,user:s,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=r||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,(0,l._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,a.generateTraceId)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,c.dateTimestampInSeconds)(),...e};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,l._getSpanForScope)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,u.merge)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=t?.event_id||(0,s.uuid4)();if(!this._client)return i.logger.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){const n=r?.event_id||(0,s.uuid4)();if(!this._client)return i.logger.warn("No client configured on scope - will not capture message!"),n;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:n},this),n}captureEvent(e,t){const r=t?.event_id||(0,s.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(i.logger.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{closeSession:()=>c,makeSession:()=>s,updateSession:()=>a});var n=r(208),o=r(214),i=r(215);function s(e){const t=(0,o.timestampInSeconds)(),r={sid:(0,i.uuid4)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,n.dropUndefinedKeys)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&a(r,e),r}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.timestampInSeconds)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.uuid4)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addNonEnumerableProperty:()=>u,convertToPlainObject:()=>d,dropUndefinedKeys:()=>y,extractExceptionKeysForMessage:()=>m,fill:()=>c,getOriginalFunction:()=>p,markFunctionWrapped:()=>l,objectify:()=>v});var n=r(209),o=r(211),i=r(210),s=r(212),a=r(213);function c(e,t,r){if(!(t in e))return;const n=e[t];if("function"!=typeof n)return;const i=r(n);"function"==typeof i&&l(i,n);try{e[t]=i}catch{o.DEBUG_BUILD&&s.logger.log(`Failed to replace method "${t}" in object`,e)}}function u(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){o.DEBUG_BUILD&&s.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{const r=t.prototype||{};e.prototype=t.prototype=r,u(e,"__sentry_original__",t)}catch(e){}}function p(e){return e.__sentry_original__}function d(e){if((0,i.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...h(e)};if((0,i.isEvent)(e)){const t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...h(e)};return"undefined"!=typeof CustomEvent&&(0,i.isInstanceOf)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function f(e){try{return(0,i.isElement)(e)?(0,n.htmlTreeAsString)(e):Object.prototype.toString.call(e)}catch(e){return""}}function h(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function m(e,t=40){const r=Object.keys(d(e));r.sort();const n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,a.truncate)(n,t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:(0,a.truncate)(n,t)}return""}function y(e){return g(e,new Map)}function g(e,t){if(function(e){if(!(0,i.isPlainObject)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}(e)){const r=t.get(e);if(void 0!==r)return r;const n={};t.set(e,n);for(const r of Object.getOwnPropertyNames(e))void 0!==e[r]&&(n[r]=g(e[r],t));return n}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(g(e,t))})),n}return e}function v(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case(0,i.isPrimitive)(e):t=new e.constructor(e);break;default:t=e}return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getComponentName:()=>u,getLocationHref:()=>c,htmlTreeAsString:()=>s});var n=r(210);const o=r(203).GLOBAL_OBJ,i=80;function s(e,t={}){if(!e)return"";try{let r=e;const n=5,o=[];let s=0,c=0;const u=" > ",l=u.length;let p;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||i;for(;r&&s++1&&c+o.length*l+p.length>=f));)o.push(p),c+=p.length,r=r.parentNode;return o.reverse().join(u)}catch(e){return""}}function a(e,t){const r=e,i=[];if(!r?.tagName)return"";if(o.HTMLElement&&r instanceof HTMLElement&&r.dataset){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}i.push(r.tagName.toLowerCase());const s=t?.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(s?.length)s.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else{r.id&&i.push(`#${r.id}`);const e=r.className;if(e&&(0,n.isString)(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}const a=["aria-label","type","name","title","alt"];for(const e of a){const t=r.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}function c(){try{return o.document.location.href}catch(e){return""}}function u(e){if(!o.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isDOMError:()=>a,isDOMException:()=>c,isElement:()=>h,isError:()=>o,isErrorEvent:()=>s,isEvent:()=>f,isInstanceOf:()=>v,isParameterizedString:()=>l,isPlainObject:()=>d,isPrimitive:()=>p,isRegExp:()=>m,isString:()=>u,isSyntheticEvent:()=>g,isThenable:()=>y,isVueViewModel:()=>S});const n=Object.prototype.toString;function o(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function i(e,t){return n.call(e)===`[object ${t}]`}function s(e){return i(e,"ErrorEvent")}function a(e){return i(e,"DOMError")}function c(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function p(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return i(e,"Object")}function f(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return i(e,"RegExp")}function y(e){return Boolean(e?.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch(e){return!1}}function S(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CONSOLE_LEVELS:()=>s,consoleSandbox:()=>c,logger:()=>u,originalConsoleMethods:()=>a});var n=r(201),o=r(211),i=r(203);const s=["debug","info","warn","error","log","assert","trace"],a={};function c(e){if(!("console"in i.GLOBAL_OBJ))return e();const t=i.GLOBAL_OBJ.console,r={},n=Object.keys(a);n.forEach((e=>{const n=a[e];r[e]=t[e],t[e]=n}));try{return e()}finally{n.forEach((e=>{t[e]=r[e]}))}}const u=(0,n.getGlobalSingleton)("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return o.DEBUG_BUILD?s.forEach((r=>{t[r]=(...t)=>{e&&c((()=>{i.GLOBAL_OBJ.console[r](`Sentry Logger [${r}]:`,...t)}))}})):s.forEach((e=>{t[e]=()=>{}})),t}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMatchingPattern:()=>a,safeJoin:()=>s,snipLine:()=>i,stringMatchesSomePattern:()=>c,truncate:()=>o});var n=r(210);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function i(e,t){let r=e;const n=r.length;if(n<=150)return r;t>n&&(t=n);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,n);return i>n-5&&(i=n),i===n&&(o=Math.max(i-140,0)),r=r.slice(o,i),o>0&&(r=`'{snip} ${r}`),ia(e,t,r)))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserPerformanceTimeOrigin:()=>c,dateTimestampInSeconds:()=>i,timestampInSeconds:()=>s});var n=r(203);const o=1e3;function i(){return Date.now()/o}const s=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e?.now)return i;const t=Date.now()-e.now(),r=null==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/o}();let a;function c(){return a||(a=function(){const{performance:e}=n.GLOBAL_OBJ;if(!e?.now)return[void 0,"none"];const t=36e5,r=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+r-o):t,s=i{"use strict";r.r(t),r.d(t,{addContextToFrame:()=>h,addExceptionMechanism:()=>l,addExceptionTypeValue:()=>u,checkOrSetAlreadyCaught:()=>m,getEventDescription:()=>c,parseSemver:()=>f,uuid4:()=>s});var n=r(208),o=r(213),i=r(203);function s(e=function(){const e=i.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&t())>>e/4).toString(16)))}function a(e){return e.exception?.values?.[0]}function c(e){const{message:t,event_id:r}=e;if(t)return t;const n=a(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function u(e,t,r){const n=e.exception=e.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=r||"Error")}function l(e,t){const r=a(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n?.data,...t.data};r.mechanism.data=e}}const p=/^(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 d(e){return parseInt(e||"",10)}function f(e){const t=e.match(p)||[],r=d(t[1]),n=d(t[2]),o=d(t[3]);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(o)?void 0:o,prerelease:t[4]}}function h(e,t,r=5){if(void 0===t.lineno)return;const n=e.length,i=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-r),i).map((e=>(0,o.snipLine)(e,0)));const s=Math.min(n-1,i);t.context_line=(0,o.snipLine)(e[s],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map((e=>(0,o.snipLine)(e,0)))}function m(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,n.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch(e){}return!1}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateSpanId:()=>i,generateTraceId:()=>o});var n=r(215);function o(){return(0,n.uuid4)()}function i(){return(0,n.uuid4)().substring(16)}},(e,t,r)=>{"use strict";function n(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;const o={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=n(o[e],t[e],r-1));return o}r.r(t),r.d(t,{merge:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_getSpanForScope:()=>s,_setSpanForScope:()=>i});var n=r(208);const o="_sentrySpan";function i(e,t){t?(0,n.addNonEnumerableProperty)(e,o,t):delete e[o]}function s(e){return e[o]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{normalize:()=>s,normalizeToSize:()=>a,normalizeUrlToBase:()=>u});var n=r(210),o=r(208),i=r(220);function s(e,t=100,r=1/0){try{return c("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function a(e,t=3,r=102400){const n=s(e,t);return o=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>r?a(e,t-1,r):n;var o}function c(e,t,r=1/0,s=1/0,a=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function r(t){e.delete(t)}return[t,r]}()){const[u,l]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const p=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.isVueViewModel)(t))return"[VueViewModel]";if((0,n.isSyntheticEvent)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,i.getFunctionName)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!p.startsWith("[object "))return p;if(t.__sentry_skip_normalization__)return t;const d="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===d)return p.replace("object ","");if(u(t))return"[Circular ~]";const f=t;if(f&&"function"==typeof f.toJSON)try{return c("",f.toJSON(),d-1,s,a)}catch(e){}const h=Array.isArray(t)?[]:{};let m=0;const y=(0,o.convertToPlainObject)(t);for(const e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(m>=s){h[e]="[MaxProperties ~]";break}const t=y[e];h[e]=c(e,t,d-1,s,a),m++}return l(t),h}function u(e,t){const r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let n=e;try{n=decodeURI(e)}catch(e){}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{UNKNOWN_FUNCTION:()=>o,createStackParser:()=>a,getFramesFromEvent:()=>f,getFunctionName:()=>d,stackParserFromStackParserOptions:()=>c,stripSentryFramesAndReverse:()=>u});const n=50,o="?",i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0,o=0)=>{const s=[],a=e.split("\n");for(let e=r;e1024)continue;const c=i.test(r)?r.replace(i,"$1"):r;if(!c.match(/\S*Error: /)){for(const e of t){const t=e(c);if(t){s.push(t);break}}if(s.length>=n+o)break}}return u(s.slice(o))}}function c(e){return Array.isArray(e)?a(...e):e}function u(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),s.test(l(t).function||"")&&(t.pop(),s.test(l(t).function||"")&&t.pop()),t.slice(0,n).map((e=>({...e,filename:e.filename||l(t).filename,function:e.function||o})))}function l(e){return e[e.length-1]||{}}const p="";function d(e){try{return e&&"function"==typeof e&&e.name||p}catch(e){return p}}function f(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SyncPromise:()=>a,rejectedSyncPromise:()=>s,resolvedSyncPromise:()=>i});var n,o=r(210);function i(e){return new a((t=>{t(e)}))}function s(e){return new a(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class a{constructor(e){this._state=n.PENDING,this._handlers=[],this._runExecutor(e)}then(e,t){return new a(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new a(((t,r)=>{let n,o;return this.then((t=>{o=!1,n=t,e&&e()}),(t=>{o=!0,n=t,e&&e()})).then((()=>{o?r(n):t(n)}))}))}_executeHandlers(){if(this._state===n.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}_runExecutor(e){const t=(e,t)=>{this._state===n.PENDING&&((0,o.isThenable)(t)?t.then(r,i):(this._state=e,this._value=t,this._executeHandlers()))},r=e=>{t(n.RESOLVED,e)},i=e=>{t(n.REJECTED,e)};try{e(r,i)}catch(e){i(e)}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>c,ignoreNextOnError:()=>p,shouldIgnoreOnError:()=>l,wrap:()=>d});var n=r(203),o=r(208),i=r(199),s=r(215),a=r(223);const c=n.GLOBAL_OBJ;let u=0;function l(){return u>0}function p(){u++,setTimeout((()=>{u--}))}function d(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,o.getOriginalFunction)(e))return e}catch(t){return e}const r=function(...r){try{const n=r.map((e=>d(e,t)));return e.apply(this,n)}catch(e){throw p(),(0,i.withScope)((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,s.addExceptionTypeValue)(e,void 0,void 0),(0,s.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),(0,a.captureException)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,o.markFunctionWrapped)(r,e),(0,o.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addEventProcessor:()=>C,captureCheckIn:()=>E,captureEvent:()=>h,captureException:()=>d,captureMessage:()=>f,captureSession:()=>P,close:()=>A,endSession:()=>R,flush:()=>I,isEnabled:()=>k,isInitialized:()=>T,lastEventId:()=>_,setContext:()=>m,setExtra:()=>g,setExtras:()=>y,setTag:()=>S,setTags:()=>v,setUser:()=>b,startSession:()=>x,withMonitor:()=>w});var n=r(199),o=r(224),i=r(207),s=r(210),a=r(212),c=r(215),u=r(214),l=r(203),p=r(225);function d(e,t){return(0,n.getCurrentScope)().captureException(e,(0,p.parseEventHintOrCaptureContext)(t))}function f(e,t){const r="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return(0,n.getCurrentScope)().captureMessage(e,r,o)}function h(e,t){return(0,n.getCurrentScope)().captureEvent(e,t)}function m(e,t){(0,n.getIsolationScope)().setContext(e,t)}function y(e){(0,n.getIsolationScope)().setExtras(e)}function g(e,t){(0,n.getIsolationScope)().setExtra(e,t)}function v(e){(0,n.getIsolationScope)().setTags(e)}function S(e,t){(0,n.getIsolationScope)().setTag(e,t)}function b(e){(0,n.getIsolationScope)().setUser(e)}function _(){return(0,n.getIsolationScope)().lastEventId()}function E(e,t){const r=(0,n.getCurrentScope)(),i=(0,n.getClient)();if(i){if(i.captureCheckIn)return i.captureCheckIn(e,t,r);o.DEBUG_BUILD&&a.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else o.DEBUG_BUILD&&a.logger.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function w(e,t,r){const o=E({monitorSlug:e,status:"in_progress"},r),i=(0,u.timestampInSeconds)();function a(t){E({monitorSlug:e,status:t,checkInId:o,duration:(0,u.timestampInSeconds)()-i})}return(0,n.withIsolationScope)((()=>{let e;try{e=t()}catch(e){throw a("error"),e}return(0,s.isThenable)(e)?Promise.resolve(e).then((()=>{a("ok")}),(e=>{throw a("error"),e})):a("ok"),e}))}async function I(e){const t=(0,n.getClient)();return t?t.flush(e):(o.DEBUG_BUILD&&a.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function A(e){const t=(0,n.getClient)();return t?t.close(e):(o.DEBUG_BUILD&&a.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function T(){return!!(0,n.getClient)()}function k(){const e=(0,n.getClient)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function C(e){(0,n.getIsolationScope)().addEventProcessor(e)}function x(e){const t=(0,n.getIsolationScope)(),r=(0,n.getCurrentScope)(),{userAgent:o}=l.GLOBAL_OBJ.navigator||{},s=(0,i.makeSession)({user:r.getUser()||t.getUser(),...o&&{userAgent:o},...e}),a=t.getSession();return"ok"===a?.status&&(0,i.updateSession)(a,{status:"exited"}),R(),t.setSession(s),s}function R(){const e=(0,n.getIsolationScope)(),t=(0,n.getCurrentScope)().getSession()||e.getSession();t&&(0,i.closeSession)(t),O(),e.setSession()}function O(){const e=(0,n.getIsolationScope)(),t=(0,n.getClient)(),r=e.getSession();r&&t&&t.captureSession(r)}function P(e=!1){e?R():O()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyClientOptions:()=>h,applyDebugIds:()=>m,applyDebugMeta:()=>y,parseEventHintOrCaptureContext:()=>g,prepareEvent:()=>f});var n=r(226),o=r(199),i=r(227),s=r(206),a=r(228),c=r(215),u=r(219),l=r(213),p=r(214),d=r(229);function f(e,t,r,n,a,l){const{normalizeDepth:f=3,normalizeMaxBreadth:g=1e3}=e,v={...t,event_id:t.event_id||r.event_id||(0,c.uuid4)(),timestamp:t.timestamp||(0,p.dateTimestampInSeconds)()},S=r.integrations||e.integrations.map((e=>e.name));h(v,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(v,S),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&m(v,e.stackParser);const b=function(e,t){if(!t)return e;const r=e?e.clone():new s.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&(0,c.addExceptionMechanism)(v,r.mechanism);const _=a?a.getEventProcessors():[],E=(0,o.getGlobalScope)().getScopeData();if(l){const e=l.getScopeData();(0,d.mergeScopeData)(E,e)}if(b){const e=b.getScopeData();(0,d.mergeScopeData)(E,e)}const w=[...r.attachments||[],...E.attachments];w.length&&(r.attachments=w),(0,d.applyScopeDataToEvent)(v,E);const I=[..._,...E.eventProcessors];return(0,i.notifyEventProcessors)(I,v,r).then((e=>(e&&y(e),"number"==typeof f&&f>0?function(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,u.normalize)(e.data,t,r)}})))},...e.user&&{user:(0,u.normalize)(e.user,t,r)},...e.contexts&&{contexts:(0,u.normalize)(e.contexts,t,r)},...e.extra&&{extra:(0,u.normalize)(e.extra,t,r)}};e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,u.normalize)(e.contexts.trace.data,t,r)));e.spans&&(n.spans=e.spans.map((e=>({...e,...e.data&&{data:(0,u.normalize)(e.data,t,r)}}))));e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,u.normalize)(e.contexts.flags,3,r));return n}(e,f,g):e)))}function h(e,t){const{environment:r,release:o,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||r||n.DEFAULT_ENVIRONMENT,!e.release&&o&&(e.release=o),!e.dist&&i&&(e.dist=i),e.message&&(e.message=(0,l.truncate)(e.message,s));const a=e.exception?.values?.[0];a?.value&&(a.value=(0,l.truncate)(a.value,s));const c=e.request;c?.url&&(c.url=(0,l.truncate)(c.url,s))}function m(e,t){const r=(0,a.getFilenameToDebugIdMap)(t);e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.filename&&(e.debug_id=r[e.filename])}))}))}function y(e){const t={};if(e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))})),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})}))}function g(e){if(e)return function(e){return e instanceof s.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>v.includes(e)))}(e)?{captureContext:e}:e}const v=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_ENVIRONMENT:()=>n});const n="production"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{notifyEventProcessors:()=>a});var n=r(224),o=r(210),i=r(212),s=r(221);function a(e,t,r,c=0){return new s.SyncPromise(((s,u)=>{const l=e[c];if(null===t||"function"!=typeof l)s(t);else{const p=l({...t},r);n.DEBUG_BUILD&&l.id&&null===p&&i.logger.log(`Event processor "${l.id}" dropped event`),(0,o.isThenable)(p)?p.then((t=>a(e,t,r,c+1).then(s))).then(null,u):a(e,p,r,c+1).then(s).then(null,u)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getDebugImagesForResources:()=>c,getFilenameToDebugIdMap:()=>a});var n=r(203);let o,i,s;function a(e){const t=n.GLOBAL_OBJ._sentryDebugIds;if(!t)return{};const r=Object.keys(t);return s&&r.length===i||(i=r.length,s=r.reduce(((r,n)=>{o||(o={});const i=o[n];if(i)r[i[0]]=i[1];else{const i=e(n);for(let e=i.length-1;e>=0;e--){const s=i[e],a=s?.filename,c=t[n];if(a&&c){r[a]=c,o[n]=[a,c];break}}}return r}),{})),s}function c(e,t){const r=a(e);if(!r)return[];const n=[];for(const e of t)e&&r[e]&&n.push({type:"sourcemap",code_file:e,debug_id:r[e]});return n}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyScopeDataToEvent:()=>a,mergeAndOverwriteScopeData:()=>u,mergeScopeData:()=>c});var n=r(230),o=r(208),i=r(217),s=r(234);function a(e,t){const{fingerprint:r,span:i,breadcrumbs:a,sdkProcessingMetadata:c}=t;!function(e,t){const{extra:r,tags:n,user:i,contexts:s,level:a,transactionName:c}=t,u=(0,o.dropUndefinedKeys)(r);Object.keys(u).length&&(e.extra={...u,...e.extra});const l=(0,o.dropUndefinedKeys)(n);Object.keys(l).length&&(e.tags={...l,...e.tags});const p=(0,o.dropUndefinedKeys)(i);Object.keys(p).length&&(e.user={...p,...e.user});const d=(0,o.dropUndefinedKeys)(s);Object.keys(d).length&&(e.contexts={...d,...e.contexts});a&&(e.level=a);c&&"transaction"!==e.type&&(e.transaction=c)}(e,t),i&&function(e,t){e.contexts={trace:(0,s.spanToTraceContext)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,n.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const r=(0,s.getRootSpan)(t),o=(0,s.spanToJSON)(r).description;o&&!e.transaction&&"transaction"===e.type&&(e.transaction=o)}(e,i),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,r),function(e,t){const r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,a),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,c)}function c(e,t){const{extra:r,tags:n,user:o,contexts:s,level:a,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:p,eventProcessors:d,attachments:f,propagationContext:h,transactionName:m,span:y}=t;u(e,"extra",r),u(e,"tags",n),u(e,"user",o),u(e,"contexts",s),e.sdkProcessingMetadata=(0,i.merge)(e.sdkProcessingMetadata,c,2),a&&(e.level=a),m&&(e.transactionName=m),y&&(e.span=y),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function u(e,t,r){e[t]=(0,i.merge)(e[t],r,1)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{freezeDscOnSpan:()=>d,getDynamicSamplingContextFromClient:()=>f,getDynamicSamplingContextFromScope:()=>h,getDynamicSamplingContextFromSpan:()=>m,spanToBaggageHeader:()=>y});var n=r(226),o=r(199),i=r(231),s=r(232),a=r(208),c=r(233),u=r(234),l=r(236);const p="_frozenDsc";function d(e,t){const r=e;(0,a.addNonEnumerableProperty)(r,p,t)}function f(e,t){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},i=(0,a.dropUndefinedKeys)({environment:r.environment||n.DEFAULT_ENVIRONMENT,release:r.release,public_key:o,trace_id:e});return t.emit("createDsc",i),i}function h(e,t){const r=t.getPropagationContext();return r.dsc||f(r.traceId,e)}function m(e){const t=(0,o.getClient)();if(!t)return{};const r=(0,u.getRootSpan)(e),n=(0,u.spanToJSON)(r),a=n.data,d=r.spanContext().traceState,h=d?.get("sentry.sample_rate")??a[i.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];function m(e){return"number"!=typeof h&&"string"!=typeof h||(e.sample_rate=`${h}`),e}const y=r[p];if(y)return m(y);const g=d?.get("sentry.dsc"),v=g&&(0,s.baggageHeaderToDynamicSamplingContext)(g);if(v)return m(v);const S=f(e.spanContext().traceId,t),b=a[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],_=n.description;return"url"!==b&&_&&(S.transaction=_),(0,c.hasSpansEnabled)()&&(S.sampled=String((0,u.spanIsSampled)(r)),S.sample_rand=d?.get("sentry.sample_rand")??(0,l.getCapturedScopesOnSpan)(r).scope?.getPropagationContext().sampleRand.toString()),m(S),t.emit("createDsc",S,r),S}function y(e){const t=m(e);return(0,s.dynamicSamplingContextToSentryBaggageHeader)(t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SEMANTIC_ATTRIBUTE_CACHE_HIT:()=>f,SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE:()=>m,SEMANTIC_ATTRIBUTE_CACHE_KEY:()=>h,SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME:()=>d,SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD:()=>y,SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>p,SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME:()=>l,SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT:()=>c,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE:()=>u,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>n,SEMANTIC_ATTRIBUTE_URL_FULL:()=>g});const n="sentry.source",o="sentry.sample_rate",i="sentry.op",s="sentry.origin",a="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",l="sentry.custom_span_name",p="sentry.profile_id",d="sentry.exclusive_time",f="cache.hit",h="cache.key",m="cache.item_size",y="http.request.method",g="url.full"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{MAX_BAGGAGE_STRING_LENGTH:()=>c,SENTRY_BAGGAGE_KEY_PREFIX:()=>s,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>a,baggageHeaderToDynamicSamplingContext:()=>u,dynamicSamplingContextToSentryBaggageHeader:()=>l,objectToBaggageHeader:()=>f,parseBaggageHeader:()=>p});var n=r(211),o=r(210),i=r(212);const s="sentry-",a=/^sentry-/,c=8192;function u(e){const t=p(e);if(!t)return;const r=Object.entries(t).reduce(((e,[t,r])=>{if(t.match(a)){e[t.slice(s.length)]=r}return e}),{});return Object.keys(r).length>0?r:void 0}function l(e){if(!e)return;return f(Object.entries(e).reduce(((e,[t,r])=>(r&&(e[`${s}${t}`]=r),e)),{}))}function p(e){if(e&&((0,o.isString)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const r=d(t);return Object.entries(r).forEach((([t,r])=>{e[t]=r})),e}),{}):d(e)}function d(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,r])=>(t&&r&&(e[t]=r),e)),{})}function f(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,r],o)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,a=0===o?s:`${e},${s}`;return a.length>c?(n.DEBUG_BUILD&&i.logger.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a}),"")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{hasSpansEnabled:()=>o,hasTracingEnabled:()=>i});var n=r(199);function o(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,n.getClient)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}const i=o},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACE_FLAG_NONE:()=>m,TRACE_FLAG_SAMPLED:()=>y,addChildSpanToSpan:()=>x,convertSpanLinksForEnvelope:()=>_,getActiveSpan:()=>D,getRootSpan:()=>P,getSpanDescendants:()=>O,getStatusMessage:()=>T,removeChildSpanFromSpan:()=>R,showSpanDropWarning:()=>N,spanIsSampled:()=>A,spanTimeInputToSeconds:()=>E,spanToJSON:()=>I,spanToTraceContext:()=>S,spanToTraceHeader:()=>b,spanToTransactionTraceContext:()=>v,updateSpanName:()=>M});var n=r(200),o=r(201),i=r(199),s=r(231),a=r(235),c=r(236),u=r(212),l=r(208),p=r(216),d=r(214),f=r(237),h=r(218);const m=0,y=1;let g=!1;function v(e){const{spanId:t,traceId:r}=e.spanContext(),{data:n,op:o,parent_span_id:i,status:s,origin:a,links:c}=I(e);return(0,l.dropUndefinedKeys)({parent_span_id:i,span_id:t,trace_id:r,data:n,op:o,status:s,origin:a,links:c})}function S(e){const{spanId:t,traceId:r,isRemote:n}=e.spanContext(),o=n?t:I(e).parent_span_id,i=(0,c.getCapturedScopesOnSpan)(e).scope,s=n?i?.getPropagationContext().propagationSpanId||(0,p.generateSpanId)():t;return(0,l.dropUndefinedKeys)({parent_span_id:o,span_id:s,trace_id:r})}function b(e){const{traceId:t,spanId:r}=e.spanContext(),n=A(e);return(0,f.generateSentryTraceHeader)(t,r,n)}function _(e){return e&&e.length>0?e.map((({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:o})=>({span_id:e,trace_id:t,sampled:r===y,attributes:o,...n}))):void 0}function E(e){return"number"==typeof e?w(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?w(e.getTime()):(0,d.timestampInSeconds)()}function w(e){return e>9999999999?e/1e3:e}function I(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:r}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:n,startTime:o,name:i,endTime:a,parentSpanId:c,status:u,links:p}=e;return(0,l.dropUndefinedKeys)({span_id:t,trace_id:r,data:n,description:i,parent_span_id:c,start_timestamp:E(o),timestamp:E(a)||void 0,status:T(u),op:n[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:n[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:_(p)})}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function A(e){const{traceFlags:t}=e.spanContext();return t===y}function T(e){if(e&&e.code!==a.SPAN_STATUS_UNSET)return e.code===a.SPAN_STATUS_OK?"ok":e.message||"unknown_error"}const k="_sentryChildSpans",C="_sentryRootSpan";function x(e,t){const r=e[C]||e;(0,l.addNonEnumerableProperty)(t,C,r),e[k]?e[k].add(t):(0,l.addNonEnumerableProperty)(e,k,new Set([t]))}function R(e,t){e[k]&&e[k].delete(t)}function O(e){const t=new Set;return function e(r){if(!t.has(r)&&A(r)){t.add(r);const n=r[k]?Array.from(r[k]):[];for(const t of n)e(t)}}(e),Array.from(t)}function P(e){return e[C]||e}function D(){const e=(0,o.getMainCarrier)(),t=(0,n.getAsyncContextStrategy)(e);return t.getActiveSpan?t.getActiveSpan():(0,h._getSpanForScope)((0,i.getCurrentScope)())}function N(){g||((0,u.consoleSandbox)((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),g=!0)}function M(e,t){e.updateName(t),e.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SPAN_STATUS_ERROR:()=>i,SPAN_STATUS_OK:()=>o,SPAN_STATUS_UNSET:()=>n,getSpanStatusFromHttpCode:()=>s,setHttpStatus:()=>a});const n=0,o=1,i=2;function s(e){if(e<400&&e>=100)return{code:o};if(e>=400&&e<500)switch(e){case 401:return{code:i,message:"unauthenticated"};case 403:return{code:i,message:"permission_denied"};case 404:return{code:i,message:"not_found"};case 409:return{code:i,message:"already_exists"};case 413:return{code:i,message:"failed_precondition"};case 429:return{code:i,message:"resource_exhausted"};case 499:return{code:i,message:"cancelled"};default:return{code:i,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:i,message:"unimplemented"};case 503:return{code:i,message:"unavailable"};case 504:return{code:i,message:"deadline_exceeded"};default:return{code:i,message:"internal_error"}}return{code:i,message:"unknown_error"}}function a(e,t){e.setAttribute("http.response.status_code",t);const r=s(t);"unknown_error"!==r.message&&e.setStatus(r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getCapturedScopesOnSpan:()=>a,setCapturedScopesOnSpan:()=>s});var n=r(208);const o="_sentryScope",i="_sentryIsolationScope";function s(e,t,r){e&&((0,n.addNonEnumerableProperty)(e,i,r),(0,n.addNonEnumerableProperty)(e,o,t))}function a(e){return{scope:e[o],isolationScope:e[i]}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACEPARENT_REGEXP:()=>s,extractTraceparentData:()=>a,generateSentryTraceHeader:()=>u,propagationContextFromHeaders:()=>c});var n=r(238),o=r(232),i=r(216);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){if(!e)return;const t=e.match(s);if(!t)return;let r;return"1"===t[3]?r=!0:"0"===t[3]&&(r=!1),{traceId:t[1],parentSampled:r,parentSpanId:t[2]}}function c(e,t){const r=a(e),s=(0,o.baggageHeaderToDynamicSamplingContext)(t);if(!r?.traceId)return{traceId:(0,i.generateTraceId)(),sampleRand:Math.random()};const c=function(e,t){const r=(0,n.parseSampleRate)(t?.sample_rand);if(void 0!==r)return r;const o=(0,n.parseSampleRate)(t?.sample_rate);return o&&void 0!==e?.parentSampled?e.parentSampled?Math.random()*o:o+Math.random()*(1-o):Math.random()}(r,s);s&&(s.sample_rand=c.toString());const{traceId:u,parentSpanId:l,parentSampled:p}=r;return{traceId:u,parentSpanId:l,sampled:p,dsc:s||{},sampleRand:c}}function u(e=(0,i.generateTraceId)(),t=(0,i.generateSpanId)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},(e,t,r)=>{"use strict";function n(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}r.r(t),r.d(t,{parseSampleRate:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BaseClient:()=>C,Client:()=>k});var n=r(240),o=r(226),i=r(199),s=r(224),a=r(242),c=r(244),u=r(207),l=r(230),p=r(245),d=r(241),f=r(243),h=r(246),m=r(210),y=r(212),g=r(215),v=r(221),S=r(247),b=r(217),_=r(238),E=r(225),w=r(234),I=r(248);const A="Not capturing exception because it's already been captured.",T="Discarded session because of missing or non-string release";class k{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,d.makeDsn)(e.dsn):s.DEBUG_BUILD&&y.logger.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,n.getEnvelopeEndpointWithUrlEncodedAuth)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,r){const n=(0,g.uuid4)();if((0,g.checkOrSetAlreadyCaught)(e))return s.DEBUG_BUILD&&y.logger.log(A),n;const o={event_id:n,...t};return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,r)))),o.event_id}captureMessage(e,t,r,n){const o={event_id:(0,g.uuid4)(),...r},i=(0,m.isParameterizedString)(e)?e:String(e),s=(0,m.isPrimitive)(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then((e=>this._captureEvent(e,o,n)))),o.event_id}captureEvent(e,t,r){const n=(0,g.uuid4)();if(t?.originalException&&(0,g.checkOrSetAlreadyCaught)(t.originalException))return s.DEBUG_BUILD&&y.logger.log(A),n;const o={event_id:n,...t},i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,a||r,c)),o.event_id}captureSession(e){this.sendSession(e),(0,u.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e))))):(0,v.resolvedSyncPromise)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];(0,c.setupIntegration)(this,e,this._integrations),t||(0,c.afterSetupIntegrations)(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=(0,a.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=(0,f.addItemToEnvelope)(r,(0,f.createAttachmentEnvelopeItem)(e));const n=this.sendEnvelope(r);n&&n.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const{release:t,environment:r=o.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const n=e.attrs||{};if(!n.release&&!t)return void(s.DEBUG_BUILD&&y.logger.warn(T));n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t)return void(s.DEBUG_BUILD&&y.logger.warn(T));e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const n=(0,a.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const n=`${e}:${t}`;s.DEBUG_BUILD&&y.logger.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(s.DEBUG_BUILD&&y.logger.error("Error while sending envelope:",e),e))):(s.DEBUG_BUILD&&y.logger.error("Transport disabled"),(0,v.resolvedSyncPromise)({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=(0,c.setupIntegrations)(this,e),(0,c.afterSetupIntegrations)(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1;const o=t.exception?.values;if(o){n=!0;for(const e of o){const t=e.mechanism;if(!1===t?.handled){r=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&r)&&((0,u.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new v.SyncPromise((t=>{let r=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){const o=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s?.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,E.prepareEvent)(o,e,t,r,this,n).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:(0,i.getTraceContextFromScope)(r),...e.contexts};const n=(0,l.getDynamicSamplingContextFromScope)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},r=(0,i.getCurrentScope)(),n=(0,i.getIsolationScope)()){return s.DEBUG_BUILD&&x(e)&&y.logger.log(`Captured error event \`${(0,S.getPossibleEventMessages)(e)[0]||""}\``),this._processEvent(e,t,r,n).then((e=>e.event_id),(e=>{s.DEBUG_BUILD&&(e instanceof h.SentryError&&"log"===e.logLevel?y.logger.log(e.message):y.logger.warn(e))}))}_processEvent(e,t,r,n){const o=this.getOptions(),{sampleRate:i}=o,s=R(e),a=x(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===i?void 0:(0,_.parseSampleRate)(i);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),(0,v.rejectedSyncPromise)(new h.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const p="replay_event"===c?"replay":c;return this._prepareEvent(e,t,r,n).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",p),new h.SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return e;const r=function(e,t,r,n){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;let a=r;if(x(a)&&o)return o(a,n);if(R(a)){if(s){const e=s((0,I.convertTransactionEventToSpanJson)(a));if(e?a=(0,b.merge)(r,(0,I.convertSpanJsonToTransactionEvent)(e)):(0,w.showSpanDropWarning)(),a.spans){const e=[];for(const t of a.spans){const r=s(t);r?e.push(r):((0,w.showSpanDropWarning)(),e.push(t))}a.spans=e}}if(i){if(a.spans){const e=a.spans.length;a.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(a,n)}}return a}(0,o,e,t);return function(e,t){const r=`${t} must return \`null\` or a valid event.`;if((0,m.isThenable)(e))return e.then((e=>{if(!(0,m.isPlainObject)(e)&&null!==e)throw new h.SentryError(r);return e}),(e=>{throw new h.SentryError(`${t} rejected with ${e}`)}));if(!(0,m.isPlainObject)(e)&&null!==e)throw new h.SentryError(r);return e}(r,u)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",p),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new h.SentryError(`${u} returned \`null\`, will not send event.`,"log")}const i=r.getSession()||n.getSession();if(a&&i&&this._updateSessionFromEvent(i,o),s){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=o.transaction_info;if(s&&c&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...c,source:e}}return this.sendEvent(o,t),o})).then(null,(e=>{if(e instanceof h.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new h.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[r,n]=e.split(":");return{reason:r,category:n,quantity:t}}))}_flushOutcomes(){s.DEBUG_BUILD&&y.logger.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(s.DEBUG_BUILD&&y.logger.log("No outcomes to send"));if(!this._dsn)return void(s.DEBUG_BUILD&&y.logger.log("No dsn provided, will not send outcomes"));s.DEBUG_BUILD&&y.logger.log("Sending outcomes:",e);const t=(0,p.createClientReportEnvelope)(e,this._options.tunnel&&(0,d.dsnToString)(this._dsn));this.sendEnvelope(t)}}const C=k;function x(e){return void 0===e.type}function R(e){return"transaction"===e.type}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getEnvelopeEndpointWithUrlEncodedAuth:()=>s,getReportDialogEndpoint:()=>a});var n=r(241);const o="7";function i(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function s(e,t,r){return t||`${function(e){return`${i(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const r={sentry_version:o};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(e,r)}`}function a(e,t){const r=(0,n.makeDsn)(e);if(!r)return"";const o=`${i(r)}embed/error-page/`;let s=`dsn=${(0,n.dsnToString)(r)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(s+=`&name=${encodeURIComponent(e.name)}`),e.email&&(s+=`&email=${encodeURIComponent(e.email)}`)}else s+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${o}?${s}`}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{dsnFromString:()=>a,dsnToString:()=>s,makeDsn:()=>u});var n=r(211),o=r(212);const i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){const{host:r,path:n,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${r}${i?`:${i}`:""}/${n?`${n}/`:n}${s}`}function a(e){const t=i.exec(e);if(!t)return void(0,o.consoleSandbox)((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[r,n,s="",a="",u="",l=""]=t.slice(1);let p="",d=l;const f=d.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return c({host:a,pass:s,path:p,projectId:d,port:u,protocol:r,publicKey:n})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t="string"==typeof e?a(e):c(e);if(t&&function(e){if(!n.DEBUG_BUILD)return!0;const{port:t,projectId:r,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(o.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(r.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(o.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(o.logger.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(o.logger.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),1)))}(t))return t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createEventEnvelope:()=>c,createSessionEnvelope:()=>a,createSpanEnvelope:()=>u});var n=r(230),o=r(241),i=r(243),s=r(234);function a(e,t,r,n){const s=(0,i.getSdkMetadataForEnvelopeHeader)(r),a={sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!n&&t&&{dsn:(0,o.dsnToString)(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,i.createEnvelope)(a,[c])}function c(e,t,r,n){const o=(0,i.getSdkMetadataForEnvelopeHeader)(r),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,r?.sdk);const a=(0,i.createEventEnvelopeHeaders)(e,o,n,t);delete e.sdkProcessingMetadata;const c=[{type:s},e];return(0,i.createEnvelope)(a,[c])}function u(e,t){const r=(0,n.getDynamicSamplingContextFromSpan)(e[0]),a=t?.getDsn(),c=t?.getOptions().tunnel,u={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(r)&&{trace:r},...!!c&&a&&{dsn:(0,o.dsnToString)(a)}},l=t?.getOptions().beforeSendSpan,p=l?e=>{const t=(0,s.spanToJSON)(e),r=l(t);return r||((0,s.showSpanDropWarning)(),t)}:s.spanToJSON,d=[];for(const t of e){const e=p(t);e&&d.push((0,i.createSpanEnvelopeItem)(e))}return(0,i.createEnvelope)(u,d)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addItemToEnvelope:()=>u,createAttachmentEnvelopeItem:()=>y,createEnvelope:()=>c,createEventEnvelopeHeaders:()=>b,createSpanEnvelopeItem:()=>m,envelopeContainsItemType:()=>p,envelopeItemTypeToDataCategory:()=>v,forEachEnvelopeItem:()=>l,getSdkMetadataForEnvelopeHeader:()=>S,parseEnvelope:()=>h,serializeEnvelope:()=>f});var n=r(201),o=r(241),i=r(219),s=r(208),a=r(203);function c(e,t=[]){return[e,t]}function u(e,t){const[r,n]=e;return[r,[...n,t]]}function l(e,t){const r=e[1];for(const e of r){if(t(e,e[0].type))return!0}return!1}function p(e,t){return l(e,((e,r)=>t.includes(r)))}function d(e){const t=(0,n.getSentryCarrier)(a.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function f(e){const[t,r]=e;let n=JSON.stringify(t);function o(e){"string"==typeof n?n="string"==typeof e?n+e:[d(n),e]:n.push("string"==typeof e?d(e):e)}for(const e of r){const[t,r]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)o(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,i.normalize)(r))}o(e)}}return"string"==typeof n?n:function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}(n)}function h(e){let t="string"==typeof e?d(e):e;function r(e){const r=t.subarray(0,e);return t=t.subarray(e+1),r}function o(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=(0,n.getSentryCarrier)(a.GLOBAL_OBJ);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(r(e)))}const i=o(),s=[];for(;t.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?r(t):o()])}return[i,s]}function m(e){return[{type:"span"},e]}function y(e){const t="string"==typeof e.data?d(e.data):e.data;return[(0,s.dropUndefinedKeys)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const g={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",otel_log:"log_item"};function v(e){return g[e]}function S(e){if(!e?.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function b(e,t,r,n){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,o.dsnToString)(n)},...i&&{trace:(0,s.dropUndefinedKeys)({...i})}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addIntegration:()=>p,afterSetupIntegrations:()=>u,defineIntegration:()=>d,getIntegrationsToSetup:()=>a,installedIntegrations:()=>s,setupIntegration:()=>l,setupIntegrations:()=>c});var n=r(199),o=r(224),i=r(212);const s=[];function a(e){const t=e.defaultIntegrations||[],r=e.integrations;let n;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(r))n=[...t,...r];else if("function"==typeof r){const e=r(t);n=Array.isArray(e)?e:[e]}else n=t;return function(e){const t={};return e.forEach((e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.values(t)}(n)}function c(e,t){const r={};return t.forEach((t=>{t&&l(e,t,r)})),r}function u(e,t){for(const r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function l(e,t,r){if(r[t.name])o.DEBUG_BUILD&&i.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(r[t.name]=t,-1===s.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),s.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,n)=>r(t,n,e)))}if("function"==typeof t.processEvent){const r=t.processEvent.bind(t),n=Object.assign(((t,n)=>r(t,n,e)),{id:t.name});e.addEventProcessor(n)}o.DEBUG_BUILD&&i.logger.log(`Integration installed: ${t.name}`)}}function p(e){const t=(0,n.getClient)();t?t.addIntegration(e):o.DEBUG_BUILD&&i.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function d(e){return e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{createClientReportEnvelope:()=>i});var n=r(243),o=r(214);function i(e,t,r){const i=[{type:"client_report"},{timestamp:r||(0,o.dateTimestampInSeconds)(),discarded_events:e}];return(0,n.createEnvelope)(t?{dsn:t}:{},[i])}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryError:()=>n});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}},(e,t,r)=>{"use strict";function n(e){const t=[];e.message&&t.push(e.message);try{const r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch(e){}return t}r.r(t),r.d(t,{getPossibleEventMessages:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{convertSpanJsonToTransactionEvent:()=>s,convertTransactionEventToSpanJson:()=>i});var n=r(231),o=r(208);function i(e){const{trace_id:t,parent_span_id:r,span_id:i,status:s,origin:a,data:c,op:u}=e.contexts?.trace??{};return(0,o.dropUndefinedKeys)({data:c??{},description:e.transaction,op:u,parent_span_id:r,span_id:i??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:c?.[n.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:c?.[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0})}function s(e){const t={type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[n.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements};return(0,o.dropUndefinedKeys)(t)}},(e,t,r)=>{"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}r.r(t),r.d(t,{getSDKSource:()=>o,isBrowserBundle:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applySdkMetadata:()=>o});var n=r(202);function o(e,t,r=[t],o="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map((e=>({name:`${o}:@sentry/${e}`,version:n.SDK_VERSION}))),version:n.SDK_VERSION}),e._metadata=i}},(e,t,r)=>{"use strict";function n(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function o(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}r.r(t),r.d(t,{addAutoIpAddressToSession:()=>o,addAutoIpAddressToUser:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{breadcrumbsIntegration:()=>_});var n=r(256),o=r(258),i=r(261),s=r(254),a=r(259),c=r(244),u=r(199),l=r(262),p=r(215),d=r(212),f=r(209),h=r(263),m=r(213),y=r(264),g=r(265),v=r(252),S=r(222);const b=1024,_=(0,c.defineIntegration)(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&(0,s.addConsoleInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:(0,h.severityLevelFromString)(t.level),message:(0,m.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,m.safeJoin)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}(0,l.addBreadcrumb)(r,{input:t.args,level:t.level})}}(e)),t.dom&&(0,n.addClickKeypressInstrumentationHandler)(function(e,t){return function(r){if((0,u.getClient)()!==e)return;let n,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>b&&(v.DEBUG_BUILD&&d.logger.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=b),"string"==typeof i&&(i=[i]);try{const e=r.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;n=(0,f.htmlTreeAsString)(t,{keyAttrs:i,maxStringLength:s}),o=(0,f.getComponentName)(t)}catch(e){n=""}if(0===n.length)return;const a={category:`ui.${r.name}`,message:n};o&&(a.data={"ui.component_name":o}),(0,l.addBreadcrumb)(a,{event:r.event,name:r.name,global:r.global})}}(e,t.dom)),t.xhr&&(0,o.addXhrInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[o.SENTRY_XHR_DATA_KEY];if(!r||!n||!i)return;const{method:s,url:a,status_code:c,body:p}=i,d={method:s,url:a,status_code:c},f={xhr:t.xhr,input:p,startTimestamp:r,endTimestamp:n},h={category:"xhr",data:d,type:"http",level:(0,y.getBreadcrumbLogLevelFromHttpStatusCode)(c)};e.emit("beforeOutgoingRequestBreadcrumb",h,f),(0,l.addBreadcrumb)(h,f)}}(e)),t.fetch&&(0,a.addFetchInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;const{startTimestamp:r,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const o=t.fetchData,i={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n},s={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,i),(0,l.addBreadcrumb)(s,i)}else{const o=t.response,i={...t.fetchData,status_code:o?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const s={input:t.args,response:o,startTimestamp:r,endTimestamp:n},a={category:"fetch",data:i,type:"http",level:(0,y.getBreadcrumbLogLevelFromHttpStatusCode)(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),(0,l.addBreadcrumb)(a,s)}}}(e)),t.history&&(0,i.addHistoryInstrumentationHandler)(function(e){return function(t){if((0,u.getClient)()!==e)return;let r=t.from,n=t.to;const o=(0,g.parseUrl)(S.WINDOW.location.href);let i=r?(0,g.parseUrl)(r):void 0;const s=(0,g.parseUrl)(n);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),(0,l.addBreadcrumb)({category:"navigation",data:{from:r,to:n}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,u.getClient)()===e&&(0,l.addBreadcrumb)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,p.getEventDescription)(t)},{event:t})}}(e))}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addConsoleInstrumentationHandler:()=>a});var n=r(212),o=r(208),i=r(203),s=r(255);function a(e){const t="console";(0,s.addHandler)(t,e),(0,s.maybeInstrument)(t,c)}function c(){"console"in i.GLOBAL_OBJ&&n.CONSOLE_LEVELS.forEach((function(e){e in i.GLOBAL_OBJ.console&&(0,o.fill)(i.GLOBAL_OBJ.console,e,(function(t){return n.originalConsoleMethods[e]=t,function(...t){const r={args:t,level:e};(0,s.triggerHandlers)("console",r);const o=n.originalConsoleMethods[e];o?.apply(i.GLOBAL_OBJ.console,t)}}))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHandler:()=>c,maybeInstrument:()=>l,resetInstrumentationHandlers:()=>u,triggerHandlers:()=>p});var n=r(211),o=r(212),i=r(220);const s={},a={};function c(e,t){s[e]=s[e]||[],s[e].push(t)}function u(){Object.keys(s).forEach((e=>{s[e]=void 0}))}function l(e,t){if(!a[e]){a[e]=!0;try{t()}catch(t){n.DEBUG_BUILD&&o.logger.error(`Error while instrumenting ${e}`,t)}}}function p(e,t){const r=e&&s[e];if(r)for(const s of r)try{s(t)}catch(t){n.DEBUG_BUILD&&o.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.getFunctionName)(s)}\nError:`,t)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClickKeypressInstrumentationHandler:()=>p,instrumentDOM:()=>d});var n=r(255),o=r(208),i=r(215),s=r(257);const a=1e3;let c,u,l;function p(e){(0,n.addHandler)("dom",e),(0,n.maybeInstrument)("dom",d)}function d(){if(!s.WINDOW.document)return;const e=n.triggerHandlers.bind(null,"dom"),t=f(e,!0);s.WINDOW.document.addEventListener("click",t,!1),s.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=s.WINDOW,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,o.fill)(n,"addEventListener",(function(t){return function(r,n,o){if("click"===r||"keypress"==r)try{const n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=n[r]=n[r]||{refCount:0};if(!i.handler){const n=f(e);i.handler=n,t.call(this,r,n,o)}i.refCount++}catch(e){}return t.call(this,r,n,o)}})),(0,o.fill)(n,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this.__sentry_instrumentation_handlers__||{},o=r[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,n),o.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}})))}))}function f(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;const n=function(e){try{return e.target}catch(e){return null}}(r);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(r.type,n))return;(0,o.addNonEnumerableProperty)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,o.addNonEnumerableProperty)(n,"_sentryId",(0,i.uuid4)());const p="keypress"===r.type?"input":r.type;if(!function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==l)return!1}catch(e){}return!0}(r)){e({event:r,name:p,global:t}),u=r.type,l=n?n._sentryId:void 0}clearTimeout(c),c=s.WINDOW.setTimeout((()=>{l=void 0,u=void 0}),a)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{WINDOW:()=>n});const n=r(203).GLOBAL_OBJ},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SENTRY_XHR_DATA_KEY:()=>a,addXhrInstrumentationHandler:()=>c,instrumentXHR:()=>u});var n=r(255),o=r(214),i=r(210),s=r(257);const a="__sentry_xhr_v3__";function c(e){(0,n.addHandler)("xhr",e),(0,n.maybeInstrument)("xhr",u)}function u(){if(!s.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){const s=new Error,c=1e3*(0,o.timestampInSeconds)(),u=(0,i.isString)(r[0])?r[0].toUpperCase():void 0,l=function(e){if((0,i.isString)(e))return e;try{return e.toString()}catch{}return}(r[1]);if(!u||!l)return e.apply(t,r);t[a]={method:u,url:l,request_headers:{}},"POST"===u&&l.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const p=()=>{const e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}const r={endTimestamp:1e3*(0,o.timestampInSeconds)(),startTimestamp:c,xhr:t,virtualError:s};(0,n.triggerHandlers)("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(p(),e.apply(t,r))}):t.addEventListener("readystatechange",p),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){const[n,o]=r,s=t[a];return s&&(0,i.isString)(n)&&(0,i.isString)(o)&&(s.request_headers[n.toLowerCase()]=o),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){const i=t[a];if(!i)return e.apply(t,r);void 0!==r[0]&&(i.body=r[0]);const s={startTimestamp:1e3*(0,o.timestampInSeconds)(),xhr:t};return(0,n.triggerHandlers)("xhr",s),e.apply(t,r)}})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addFetchEndInstrumentationHandler:()=>l,addFetchInstrumentationHandler:()=>u,parseFetchArgs:()=>m});var n=r(210),o=r(208),i=r(260),s=r(214),a=r(203),c=r(255);function u(e,t){const r="fetch";(0,c.addHandler)(r,e),(0,c.maybeInstrument)(r,(()=>p(void 0,t)))}function l(e){const t="fetch-body-resolved";(0,c.addHandler)(t,e),(0,c.maybeInstrument)(t,(()=>p(d)))}function p(e,t=!1){t&&!(0,i.supportsNativeFetch)()||(0,o.fill)(a.GLOBAL_OBJ,"fetch",(function(t){return function(...r){const i=new Error,{method:u,url:l}=m(r),p={args:r,fetchData:{method:u,url:l},startTimestamp:1e3*(0,s.timestampInSeconds)(),virtualError:i};return e||(0,c.triggerHandlers)("fetch",{...p}),t.apply(a.GLOBAL_OBJ,r).then((async t=>(e?e(t):(0,c.triggerHandlers)("fetch",{...p,endTimestamp:1e3*(0,s.timestampInSeconds)(),response:t}),t)),(e=>{throw(0,c.triggerHandlers)("fetch",{...p,endTimestamp:1e3*(0,s.timestampInSeconds)(),error:e}),(0,n.isError)(e)&&void 0===e.stack&&(e.stack=i.stack,(0,o.addNonEnumerableProperty)(e,"framesToPop",1)),e}))}}))}function d(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const r=e.body,n=r.getReader(),o=setTimeout((()=>{r.cancel().then(null,(()=>{}))}),9e4);let i=!0;for(;i;){let e;try{e=setTimeout((()=>{r.cancel().then(null,(()=>{}))}),5e3);const{done:o}=await n.read();clearTimeout(e),o&&(t(),i=!1)}catch(e){i=!1}finally{clearTimeout(e)}}clearTimeout(o),n.releaseLock(),r.cancel().then(null,(()=>{}))}}(t,(()=>{(0,c.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,s.timestampInSeconds)(),response:e})}))}function f(e,t){return!!e&&"object"==typeof e&&!!e[t]}function h(e){return"string"==typeof e?e:e?f(e,"url")?e.url:e.toString?e.toString():"":""}function m(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,r]=e;return{url:h(t),method:f(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:h(t),method:f(t,"method")?String(t.method).toUpperCase():"GET"}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNativeFunction:()=>p,supportsDOMError:()=>a,supportsDOMException:()=>c,supportsErrorEvent:()=>s,supportsFetch:()=>l,supportsHistory:()=>u,supportsNativeFetch:()=>d,supportsReferrerPolicy:()=>h,supportsReportingObserver:()=>f});var n=r(211),o=r(212);const i=r(203).GLOBAL_OBJ;function s(){try{return new ErrorEvent(""),!0}catch(e){return!1}}function a(){try{return new DOMError(""),!0}catch(e){return!1}}function c(){try{return new DOMException(""),!0}catch(e){return!1}}function u(){return"history"in i&&!!i.history}function l(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function p(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function d(){if("string"==typeof EdgeRuntime)return!0;if(!l())return!1;if(p(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=p(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.DEBUG_BUILD&&o.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function f(){return"ReportingObserver"in i}function h(){if(!l())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addHistoryInstrumentationHandler:()=>c,instrumentHistory:()=>u});var n=r(255),o=r(260),i=r(208),s=r(257);let a;function c(e){const t="history";(0,n.addHandler)(t,e),(0,n.maybeInstrument)(t,u)}function u(){function e(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const o=a,i=String(r);if(a=i,o===i)return e.apply(this,t);const s={from:o,to:i};(0,n.triggerHandlers)("history",s)}return e.apply(this,t)}}s.WINDOW.addEventListener("popstate",(()=>{const e=s.WINDOW.location.href,t=a;if(a=e,t===e)return;const r={from:t,to:e};(0,n.triggerHandlers)("history",r)})),(0,o.supportsHistory)()&&((0,i.fill)(s.WINDOW.history,"pushState",e),(0,i.fill)(s.WINDOW.history,"replaceState",e))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addBreadcrumb:()=>a});var n=r(199),o=r(212),i=r(214);const s=100;function a(e,t){const r=(0,n.getClient)(),a=(0,n.getIsolationScope)();if(!r)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=s}=r.getOptions();if(u<=0)return;const l={timestamp:(0,i.dateTimestampInSeconds)(),...e},p=c?(0,o.consoleSandbox)((()=>c(l,t))):l;null!==p&&(r.emit&&r.emit("beforeAddBreadcrumb",p,t),a.addBreadcrumb(p,u))}},(e,t,r)=>{"use strict";function n(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}r.r(t),r.d(t,{severityLevelFromString:()=>n})},(e,t,r)=>{"use strict";function n(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}r.r(t),r.d(t,{getBreadcrumbLogLevelFromHttpStatusCode:()=>n})},(e,t,r)=>{"use strict";function n(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function o(e){return e.split(/[?#]/,1)[0]}function i(e){const{protocol:t,host:r,path:n}=e;return`${t?`${t}://`:""}${r?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${n}`}r.r(t),r.d(t,{getSanitizedUrlString:()=>i,parseUrl:()=>n,stripUrlQueryAndFragment:()=>o})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserApiErrorsIntegration:()=>c});var n=r(208),o=r(244),i=r(220),s=r(222);const a=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],c=(0,o.defineIntegration)(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,n.fill)(s.WINDOW,"setTimeout",u),t.setInterval&&(0,n.fill)(s.WINDOW,"setInterval",u),t.requestAnimationFrame&&(0,n.fill)(s.WINDOW,"requestAnimationFrame",l),t.XMLHttpRequest&&"XMLHttpRequest"in s.WINDOW&&(0,n.fill)(XMLHttpRequest.prototype,"send",p);const e=t.eventTarget;if(e){(Array.isArray(e)?e:a).forEach(d)}}}}));function u(e){return function(...t){const r=t[0];return t[0]=(0,s.wrap)(r,{mechanism:{data:{function:(0,i.getFunctionName)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function l(e){return function(t){return e.apply(this,[(0,s.wrap)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,i.getFunctionName)(e)},handled:!1,type:"instrument"}})])}}function p(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&(0,n.fill)(r,e,(function(t){const r={mechanism:{data:{function:e,handler:(0,i.getFunctionName)(t)},handled:!1,type:"instrument"}},o=(0,n.getOriginalFunction)(t);return o&&(r.mechanism.data.handler=(0,i.getFunctionName)(o)),(0,s.wrap)(t,r)}))})),e.apply(this,t)}}function d(e){const t=s.WINDOW,r=t[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,n.fill)(r,"addEventListener",(function(t){return function(r,n,o){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,s.wrap)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,i.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[r,(0,s.wrap)(n,{mechanism:{data:{function:"addEventListener",handler:(0,i.getFunctionName)(n),target:e},handled:!1,type:"instrument"}}),o])}})),(0,n.fill)(r,"removeEventListener",(function(e){return function(t,r,n){try{const o=r.__sentry_wrapped__;o&&e.call(this,t,o,n)}catch(e){}return e.call(this,t,r,n)}})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{browserSessionIntegration:()=>u});var n=r(261),o=r(244),i=r(212),s=r(223),a=r(252),c=r(222);const u=(0,o.defineIntegration)((()=>({name:"BrowserSession",setupOnce(){void 0!==c.WINDOW.document?((0,s.startSession)({ignoreDuration:!0}),(0,s.captureSession)(),(0,n.addHistoryInstrumentationHandler)((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,s.startSession)({ignoreDuration:!0}),(0,s.captureSession)())}))):a.DEBUG_BUILD&&i.logger.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{globalHandlersIntegration:()=>m});var n=r(244),o=r(269),i=r(199),s=r(223),a=r(270),c=r(210),u=r(209),l=r(220),p=r(212),d=r(252),f=r(198),h=r(222);const m=(0,n.defineIntegration)(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){(0,o.addGlobalErrorInstrumentationHandler)((t=>{const{stackParser:r,attachStacktrace:n}=g();if((0,i.getClient)()!==e||(0,h.shouldIgnoreOnError)())return;const{msg:o,url:a,line:p,column:d,error:m}=t,y=function(e,t,r,n){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},p=a.frames=a.frames||[],d=n,f=r,h=(0,c.isString)(t)&&t.length>0?t:(0,u.getLocationHref)();0===p.length&&p.push({colno:d,filename:h,function:l.UNKNOWN_FUNCTION,in_app:!0,lineno:f});return e}((0,f.eventFromUnknownInput)(r,m||o,void 0,n,!1),a,p,d);y.level="error",(0,s.captureEvent)(y,{originalException:m,mechanism:{handled:!1,type:"onerror"}})}))}(e),y("onerror")),t.onunhandledrejection&&(!function(e){(0,a.addGlobalUnhandledRejectionInstrumentationHandler)((t=>{const{stackParser:r,attachStacktrace:n}=g();if((0,i.getClient)()!==e||(0,h.shouldIgnoreOnError)())return;const o=function(e){if((0,c.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),a=(0,c.isPrimitive)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:(0,f.eventFromUnknownInput)(r,o,void 0,n,!0);a.level="error",(0,s.captureEvent)(a,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),y("onunhandledrejection"))}}}));function y(e){d.DEBUG_BUILD&&p.logger.log(`Global Handler attached: ${e}`)}function g(){const e=(0,i.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalErrorInstrumentationHandler:()=>s});var n=r(203),o=r(255);let i=null;function s(e){const t="error";(0,o.addHandler)(t,e),(0,o.maybeInstrument)(t,a)}function a(){i=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(e,t,r,n,s){const a={column:n,error:s,line:r,msg:e,url:t};return(0,o.triggerHandlers)("error",a),!!i&&i.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addGlobalUnhandledRejectionInstrumentationHandler:()=>s});var n=r(203),o=r(255);let i=null;function s(e){const t="unhandledrejection";(0,o.addHandler)(t,e),(0,o.maybeInstrument)(t,a)}function a(){i=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return(0,o.triggerHandlers)("unhandledrejection",t),!i||i.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{httpContextIntegration:()=>s});var n=r(244),o=r(209),i=r(222);const s=(0,n.defineIntegration)((()=>({name:"HttpContext",preprocessEvent(e){if(!i.WINDOW.navigator&&!i.WINDOW.location&&!i.WINDOW.document)return;const t=e.request?.url||(0,o.getLocationHref)(),{referrer:r}=i.WINDOW.document||{},{userAgent:n}=i.WINDOW.navigator||{},s={...e.request?.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...e.request,...t&&{url:t},headers:s};e.request=a}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{linkedErrorsIntegration:()=>s});var n=r(273),o=r(244),i=r(198);const s=(0,o.defineIntegration)(((e={})=>{const t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,o,s){const a=s.getOptions();(0,n.applyAggregateErrorsToEvent)(i.exceptionFromError,a.stackParser,a.maxValueLength,r,t,e,o)}}}))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{applyAggregateErrorsToEvent:()=>i});var n=r(210),o=r(213);function i(e,t,r=250,i,a,c,u){if(!c.exception?.values||!u||!(0,n.isInstanceOf)(u.originalException,Error))return;const l=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;var p,d;l&&(c.exception.values=(p=s(e,t,a,u.originalException,i,c.exception.values,l,0),d=r,p.map((e=>(e.value&&(e.value=(0,o.truncate)(e.value,d)),e)))))}function s(e,t,r,o,i,u,l,p){if(u.length>=r+1)return u;let d=[...u];if((0,n.isInstanceOf)(o[i],Error)){a(l,p);const n=e(t,o[i]),u=d.length;c(n,i,u,p),d=s(e,t,r,o[i],i,[n,...d],n,u)}return Array.isArray(o.errors)&&o.errors.forEach(((o,u)=>{if((0,n.isInstanceOf)(o,Error)){a(l,p);const n=e(t,o),f=d.length;c(n,`errors[${u}]`,f,p),d=s(e,t,r,o,i,[n,...d],n,f)}})),d}function a(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function c(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{chromeStackLineParser:()=>c,defaultStackLineParsers:()=>v,defaultStackParser:()=>S,geckoStackLineParser:()=>p,opera10StackLineParser:()=>m,opera11StackLineParser:()=>g,winjsStackLineParser:()=>f});var n=r(220);function o(e,t,r,o){const i={filename:e,function:""===t?n.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==o&&(i.colno=o),i}const i=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,s=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=[30,e=>{const t=i.exec(e);if(t){const[,e,r,i]=t;return o(e,n.UNKNOWN_FUNCTION,+r,+i)}const r=s.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=a.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=b(r[1]||n.UNKNOWN_FUNCTION,r[2]);return o(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,p=[50,e=>{const t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=l.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||n.UNKNOWN_FUNCTION;return[r,e]=b(r,e),o(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=[40,e=>{const t=d.exec(e);return t?o(t[2],t[1]||n.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],h=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,m=[10,e=>{const t=h.exec(e);return t?o(t[2],t[3]||n.UNKNOWN_FUNCTION,+t[1]):void 0}],y=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[20,e=>{const t=y.exec(e);return t?o(t[5],t[3]||t[4]||n.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],v=[c,p],S=(0,n.createStackParser)(...v),b=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return r||o?[-1!==e.indexOf("@")?e.split("@")[0]:n.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makeFetchTransport:()=>s});var n=r(276),o=r(221),i=r(278);function s(e,t=(0,n.getNativeImplementation)("fetch")){let r=0,s=0;return(0,i.createTransport)(e,(function(i){const a=i.body.length;r+=a,s++;const c={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&s<15,...e.fetchOptions};if(!t)return(0,n.clearCachedImplementation)("fetch"),(0,o.rejectedSyncPromise)("No fetch implementation available");try{return t(e.url,c).then((e=>(r-=a,s--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return(0,n.clearCachedImplementation)("fetch"),r-=a,s--,(0,o.rejectedSyncPromise)(e)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearCachedImplementation:()=>u,fetch:()=>l,getNativeImplementation:()=>c,setTimeout:()=>p});var n=r(260),o=r(212),i=r(277),s=r(257);const a={};function c(e){const t=a[e];if(t)return t;let r=s.WINDOW[e];if((0,n.isNativeFunction)(r))return a[e]=r.bind(s.WINDOW);const c=s.WINDOW.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t);const n=t.contentWindow;n?.[e]&&(r=n[e]),c.head.removeChild(t)}catch(t){i.DEBUG_BUILD&&o.logger.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?a[e]=r.bind(s.WINDOW):r}function u(e){a[e]=void 0}function l(...e){return c("fetch")(...e)}function p(...e){return c("setTimeout")(...e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEBUG_BUILD:()=>n});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>l,createTransport:()=>p});var n=r(224),o=r(243),i=r(246),s=r(212),a=r(279),c=r(280),u=r(221);const l=64;function p(e,t,r=(0,a.makePromiseBuffer)(e.bufferSize||l)){let p={};return{send:function(a){const l=[];if((0,o.forEachEnvelopeItem)(a,((t,r)=>{const n=(0,o.envelopeItemTypeToDataCategory)(r);(0,c.isRateLimited)(p,n)?e.recordDroppedEvent("ratelimit_backoff",n):l.push(t)})),0===l.length)return(0,u.resolvedSyncPromise)({});const d=(0,o.createEnvelope)(a[0],l),f=t=>{(0,o.forEachEnvelopeItem)(d,((r,n)=>{e.recordDroppedEvent(t,(0,o.envelopeItemTypeToDataCategory)(n))}))};return r.add((()=>t({body:(0,o.serializeEnvelope)(d)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&n.DEBUG_BUILD&&s.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),p=(0,c.updateRateLimits)(p,e),e)),(e=>{throw f("network_error"),e})))).then((e=>e),(e=>{if(e instanceof i.SentryError)return n.DEBUG_BUILD&&s.logger.error("Skipped sending event because buffer is full."),f("queue_overflow"),(0,u.resolvedSyncPromise)({});throw e}))},flush:e=>r.drain(e)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{makePromiseBuffer:()=>i});var n=r(246),o=r(221);function i(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(i){if(!(void 0===e||t.lengthr(s))).then(null,(()=>r(s).then(null,(()=>{})))),s},drain:function(e){return new o.SyncPromise(((r,n)=>{let i=t.length;if(!i)return r(!0);const s=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{(0,o.resolvedSyncPromise)(e).then((()=>{--i||(clearTimeout(s),r(!0))}),n)}))}))}}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_RETRY_AFTER:()=>n,disabledUntil:()=>i,isRateLimited:()=>s,parseRetryAfterHeader:()=>o,updateRateLimits:()=>a});const n=6e4;function o(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const o=Date.parse(`${e}`);return isNaN(o)?n:o-t}function i(e,t){return e[t]||e.all||0}function s(e,t,r=Date.now()){return i(e,t)>r}function a(e,{statusCode:t,headers:r},n=Date.now()){const i={...e},s=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,r,,,o]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(r)for(const e of r.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=n+a);else i.all=n+a}else a?i.all=n+o(a,n):429===t&&(i.all=n+6e4);return i}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{eventFiltersIntegration:()=>l,inboundFiltersIntegration:()=>p});var n=r(224),o=r(244),i=r(212),s=r(215),a=r(213),c=r(247);const u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],l=(0,o.defineIntegration)(((e={})=>({name:"EventFilters",processEvent(t,r,o){const l=o.getOptions(),p=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,l);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return(0,c.getPossibleEventMessages)(e).some((e=>(0,a.stringMatchesSomePattern)(e,t)))}(e,t.ignoreErrors))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const r=e.transaction;return!!r&&(0,a.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const r=d(e);return!!r&&(0,a.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${d(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const r=d(e);return!r||(0,a.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return n.DEBUG_BUILD&&i.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${d(e)}`),!0;return!1}(t,p)?null:t}}))),p=(0,o.defineIntegration)(((e={})=>({...l(e),name:"InboundFilters"})));function d(e){try{const t=[...e.exception?.values??[]].reverse().find((e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length)),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch(t){return n.DEBUG_BUILD&&i.logger.error(`Cannot extract url for event ${(0,s.getEventDescription)(e)}`),null}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{functionToStringIntegration:()=>c});var n=r(199),o=r(244),i=r(208);let s;const a=new WeakMap,c=(0,o.defineIntegration)((()=>({name:"FunctionToString",setupOnce(){s=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,i.getOriginalFunction)(this),r=a.has((0,n.getClient)())&&void 0!==t?t:this;return s.apply(r,e)}}catch{}},setup(e){a.set(e,!0)}})))},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_shouldDropEvent:()=>c,dedupeIntegration:()=>a});var n=r(244),o=r(224),i=r(212),s=r(220);const a=(0,n.defineIntegration)((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(c(t,e))return o.DEBUG_BUILD&&i.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}));function c(e,t){return!!t&&(!!function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!l(e,t))return!1;if(!u(e,t))return!1;return!0}(e,t)||!!function(e,t){const r=p(t),n=p(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!l(e,t))return!1;if(!u(e,t))return!1;return!0}(e,t))}function u(e,t){let r=(0,s.getFramesFromEvent)(e),n=(0,s.getFramesFromEvent)(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e{"use strict";r.r(t),r.d(t,{initAndBind:()=>s,setCurrentClient:()=>a});var n=r(199),o=r(224),i=r(212);function s(e,t){!0===t.debug&&(o.DEBUG_BUILD?i.logger.enable():(0,i.consoleSandbox)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,n.getCurrentScope)().update(t.initialScope);const r=new e(t);return a(r),r.init(),r}function a(e){(0,n.getCurrentScope)().setClient(e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getReplay:()=>Bn,replayIntegration:()=>Mn});var n=r(203),o=r(219),i=r(208),s=r(209),a=r(214),c=r(262),u=r(212),l=r(263),p=r(223),d=r(215),f=r(199),h=r(234),m=r(230),y=r(306),g=r(213),v=r(243),S=r(225),b=r(221),_=r(280),E=r(231),w=r(308),I=r(238),A=r(276),T=r(286),k=r(307),C=r(258),x=r(256),R=r(261);const O=n.GLOBAL_OBJ,P="sentryReplaySession",D="Unable to send Replay",N=15e4,M=5e3,L=2e7,U=36e5;var B=Object.defineProperty,j=(e,t,r)=>((e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),F=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(F||{});function q(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function W(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function H(e){try{const r=e.rules||e.cssRules;return r?((t=Array.from(r,z).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function z(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=H(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;rthis.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){const r=this.getNode(e);if(r){const e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function G({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function V({isMasked:e,element:t,value:r,maskInputFn:n}){let o=r||"";return e?(n&&(o=n(o,t)),"*".repeat(o.length)):o}function K(e){return e.toLowerCase()}function J(e){return e.toUpperCase()}const Y="__rrweb_original__";function X(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?K(t):null}function Q(e,t,r){return"INPUT"!==t||"radio"!==r&&"checkbox"!==r?e.value:e.getAttribute("value")||""}function Z(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}const n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}const ee={};function te(e){const t=ee[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(e){}return ee[e]=n.bind(window)}function re(...e){return te("setTimeout")(...e)}function ne(...e){return te("clearTimeout")(...e)}function oe(e){try{return e.contentDocument}catch(e){}}let ie=1;const se=new RegExp("[^a-z0-9-_:]");function ae(){return ie++}let ce,ue;const le=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pe=/^(?:[a-z+]+:)?\/\//i,de=/^www\..*/i,fe=/^(data:)([^,]*),(.*)/i;function he(e,t){return(e||"").replace(le,((e,r,n,o,i,s)=>{const a=n||i||s,c=r||o||"";if(!a)return e;if(pe.test(a)||de.test(a))return`url(${c}${a}${c})`;if(fe.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const me=/^[^ \t\n\r\u000c]+/,ye=/^[, \t\n\r\u000c]+/;const ge=new WeakMap;function ve(e,t){return t&&""!==t.trim()?be(e,t):t}function Se(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function be(e,t){let r=ge.get(e);if(r||(r=e.createElement("a"),ge.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function _e(e,t,r,n,o,i){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ve(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n;const o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}const o=[];for(;n(ye),!(r>=t.length);){let i=n(me);if(","===i.slice(-1))i=ve(e,i.substring(0,i.length-1)),o.push(i);else{let n="";i=ve(e,i);let s=!1;for(;;){const e=t.charAt(r);if(""===e){o.push((i+n).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){r+=1,o.push((i+n).trim());break}"("===e&&(s=!0)}n+=e,r+=1}}}return o.join(", ")}(e,n):"style"===r?he(n,be(e)):"object"===t&&"data"===r?ve(e,n):"function"==typeof i?i(r,n,o):n:ve(e,n):n}function Ee(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function we(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}function Ie(e,t,r=1/0,n=0){return e?e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:Ie(e.parentNode,t,r,n+1):-1}function Ae(e,t){return r=>{const n=r;if(null===n)return!1;try{if(e)if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){const n=e.classList[r];if(t.test(n))return!0}return!1}(n,e))return!0;return!(!t||!n.matches(t))}catch{return!1}}}function Te(e,t,r,n,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=Ie(s,Ae(n,o)),c<0)return!0;a=Ie(s,Ae(t,r),c>=0?c:1/0)}else{if(a=Ie(s,Ae(t,r)),a<0)return!1;c=Ie(s,Ae(n,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!i}catch(e){}return!!i}function ke(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:_=!1}=t,E=function(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:F.Document,childNodes:[],compatMode:e.compatMode}:{type:F.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:F.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){const{doc:r,blockClass:n,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:p,recordCanvas:d,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskTextClass:y,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:S}=t,b=we(e,n,o,i),_=function(e){if(e instanceof HTMLFormElement)return"form";const t=K(e.tagName);return se.test(t)?"div":t}(e);let E={};const w=e.attributes.length;for(let t=0;tt.href===e.href));let n=null;t&&(n=H(t)),n&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=he(n,t.href))}if("style"===_&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=H(e.sheet);t&&(E._cssText=he(t,be(r)))}if("input"===_||"textarea"===_||"select"===_||"option"===_){const t=e,r=X(t),n=Q(t,J(_),r),o=t.checked;if("submit"!==r&&"button"!==r&&n){const e=Te(t,y,v,g,S,G({type:r,tagName:J(_),maskInputOptions:a}));E.value=V({isMasked:e,element:t,value:n,maskInputFn:u})}o&&(E.checked=o)}"option"===_&&(e.selected&&!a.select?E.selected=!0:delete E.selected);if("canvas"===_&&d)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let r=0;r0!==e)))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(E.rr_dataURL=t)}if("img"===_&&p){ce||(ce=r.createElement("canvas"),ue=ce.getContext("2d"));const t=e,n=t.currentSrc||t.getAttribute("src")||"",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{ce.width=t.naturalWidth,ce.height=t.naturalHeight,ue.drawImage(t,0,0),E.rr_dataURL=ce.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${n}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?E.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==_&&"video"!==_||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:r}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==_||f(E.src)||(b||oe(e)||(E.rr_src=E.src),delete E.src);let I;try{customElements.get(_)&&(I=!0)}catch(e){}return{type:F.Element,tagName:_,attributes:E,childNodes:[],isSVG:Se(e)||void 0,needBlock:b,rootId:m,isCustom:I}}(e,{doc:r,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:y,dataURLOptions:g,inlineImages:v,recordCanvas:S,keepIframeSrcFn:b,newlyAddedElement:_,rootId:E,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){const{maskAllText:r,maskTextClass:n,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,p=e.parentNode&&e.parentNode.tagName;let d=e.textContent;const f="STYLE"===p||void 0,h="SCRIPT"===p||void 0,m="TEXTAREA"===p||void 0;if(f&&d){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(d=H(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=he(d,be(t.doc))}h&&(d="SCRIPT_PLACEHOLDER");const y=Te(e,n,i,o,s,r);f||h||m||!d||!y||(d=a?a(d,e.parentElement):d.replace(/[\S]/g,"*"));m&&d&&(c.textarea||y)&&(d=u?u(d,e.parentNode):d.replace(/[\S]/g,"*"));if("OPTION"===p&&d){d=V({isMasked:Te(e,n,i,o,s,G({type:null,tagName:p,maskInputOptions:c})),element:e,value:d,maskInputFn:u})}return{type:F.Text,textContent:d||"",isStyle:f,rootId:l}}(e,{doc:r,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:d,maskTextFn:m,maskInputOptions:h,maskInputFn:y,rootId:E});case e.CDATA_SECTION_NODE:return{type:F.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:F.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function Ce(e){return null==e?"":e.toLowerCase()}function xe(e,t){const{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:d=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:S={},inlineImages:b=!1,recordCanvas:_=!1,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:I=5e3,onStylesheetLoad:A,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:C=!1}=t;let{preserveWhiteSpace:x=!0}=t;const R=ke(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,dataURLOptions:S,inlineImages:b,recordCanvas:_,keepIframeSrcFn:k,newlyAddedElement:C});if(!R)return console.warn(e,"not serialized"),null;let O;O=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===F.Comment)return!0;if(e.type===F.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Z(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Ce(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ce(e.attributes.name)||"icon"===Ce(e.attributes.rel)||"apple-touch-icon"===Ce(e.attributes.rel)||"shortcut icon"===Ce(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Ce(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ce(e.attributes.property).match(/^(og|twitter|fb):/)||Ce(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ce(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Ce(e.attributes.name)||"googlebot"===Ce(e.attributes.name)||"bingbot"===Ce(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Ce(e.attributes.name)||"generator"===Ce(e.attributes.name)||"framework"===Ce(e.attributes.name)||"publisher"===Ce(e.attributes.name)||"progid"===Ce(e.attributes.name)||Ce(e.attributes.property).match(/^article:/)||Ce(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Ce(e.attributes.name)||"yandex-verification"===Ce(e.attributes.name)||"csrf-token"===Ce(e.attributes.name)||"p:domain_verify"===Ce(e.attributes.name)||"verify-v1"===Ce(e.attributes.name)||"verification"===Ce(e.attributes.name)||"shopify-checkout-api-token"===Ce(e.attributes.name)))return!0}}return!1}(R,v)&&(x||R.type!==F.Text||R.isStyle||R.textContent.replace(/^\s+|\s+$/gm,"").length)?ae():-2;const P=Object.assign(R,{id:O});if(n.add(e,P),-2===O)return null;E&&E(e);let D=!d;if(P.type===F.Element){D=D&&!P.needBlock,delete P.needBlock;const t=e.shadowRoot;t&&W(t)&&(P.isShadowHost=!0)}if((P.type===F.Document||P.type===F.Element)&&D){v.headWhitespace&&P.type===F.Element&&"head"===P.tagName&&(x=!1);const t={doc:r,mirror:n,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:S,inlineImages:b,recordCanvas:_,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:k};for(const r of Array.from(e.childNodes)){const e=xe(r,t);e&&P.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const r of Array.from(e.shadowRoot.childNodes)){const n=xe(r,t);n&&(W(e.shadowRoot)&&(n.isShadow=!0),P.childNodes.push(n))}}return e.parentNode&&q(e.parentNode)&&W(e.parentNode)&&(P.isShadow=!0),P.type!==F.Element||"iframe"!==P.tagName||we(e,o,i,s)||function(e,t,r){const n=e.contentWindow;if(!n)return;let o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"!==o){const n=re((()=>{i||(t(),i=!0)}),r);return void e.addEventListener("load",(()=>{ne(n),i=!0,t()}))}const s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return re(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=oe(e);if(t&&w){const r=xe(t,{doc:t,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:S,inlineImages:b,recordCanvas:_,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:k});r&&w(e,r)}}),I),P.type===F.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===Z(P.attributes.href))&&function(e,t,r){let n,o=!1;try{n=e.sheet}catch(e){return}if(n)return;const i=re((()=>{o||(t(),o=!0)}),r);e.addEventListener("load",(()=>{ne(i),o=!0,t()}))}(e,(()=>{if(A){const t=xe(e,{doc:r,mirror:n,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:S,inlineImages:b,recordCanvas:_,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:w,iframeLoadTimeout:I,onStylesheetLoad:A,stylesheetLoadTimeout:T,keepIframeSrcFn:k});t&&A(e,t)}}),T),P}function Re(e,t,r=document){const n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}const Oe="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Pe={map:{},getId:()=>(console.error(Oe),-1),getNode:()=>(console.error(Oe),null),removeNodeFromMap(){console.error(Oe)},has:()=>(console.error(Oe),!1),reset(){console.error(Oe)}};function De(e,t,r={}){let n=null,o=0;return function(...i){const s=Date.now();o||!1!==r.leading||(o=s);const a=t-(s-o),c=this;a<=0||a>t?(n&&(!function(...e){Ze("clearTimeout")(...e)}(n),n=null),o=s,e.apply(c,i)):n||!1===r.trailing||(n=et((()=>{o=!1===r.leading?0:Date.now(),n=null,e.apply(c,i)}),a))}}function Ne(e,t,r,n,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set(e){et((()=>{r.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Ne(e,t,i||{},!0)}function Me(e,t,r){try{if(!(t in e))return()=>{};const n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,()=>{e[t]=n}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Pe=new Proxy(Pe,{get:(e,t,r)=>("map"===t&&console.error(Oe),Reflect.get(e,t,r))}));let Le=Date.now;function Ue(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Be(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function je(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Fe(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function qe(e,t,r,n,o){if(!e)return!1;const i=Fe(e);if(!i)return!1;const s=Ae(t,r);if(!o){const e=n&&i.matches(n);return s(i)&&!e}const a=Ie(i,s);let c=-1;return!(a<0)&&(n&&(c=Ie(i,Ae(null,n))),a>-1&&c<0||a(new Date).getTime());class Ke{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Je(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ye(e){const t=e.ownerDocument;if(!t)return!1;const r=function(e){let t,r=e;for(;t=Je(r);)r=t;return r}(e);return t.contains(r)}function Xe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Ye(e))}const Qe={};function Ze(e){const t=Qe[e];if(t)return t;const r=window.document;let n=window[e];if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(e){}return Qe[e]=n.bind(window)}function et(...e){return Ze("setTimeout")(...e)}var tt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(tt||{}),rt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(rt||{}),nt=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(nt||{}),ot=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ot||{}),it=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(it||{});function st(e){try{return e.contentDocument}catch(e){}}function at(e){return"__ln"in e}class ct{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r`${e}@${t}`;class lt{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,r=new ct,n=e=>{let t=e,r=-2;for(;-2===r;)t=t&&t.nextSibling,r=t&&this.mirror.getId(t);return r},o=o=>{if(!o.parentNode||!Xe(o))return;const i=q(o.parentNode)?this.mirror.getId(Je(o)):this.mirror.getId(o.parentNode),s=n(o);if(-1===i||-1===s)return r.addNode(o);const a=xe(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{$e(e,this.mirror)&&!qe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ge(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ve(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{qe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:i,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)dt(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)ft(this.droppedSet,e)||dt(this.removes,e,this.mirror)?ft(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;r.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e){let t=r.tail;for(;t;){const r=t;if(t=t.previous,r){const t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{const t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}i=e.previous,r.removeNode(e.value),o(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!We(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;qe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Te(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Fe(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){const r=X(t),o=t.tagName;n=Q(t,o,r);const i=G({maskInputOptions:this.maskInputOptions,tagName:o,type:r});n=V({isMasked:Te(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:n,maskInputFn:this.maskInputFn})}if(qe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(st(t))return;r="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Ee(t.tagName,r)&&(o.attributes[r]=_e(this.doc,K(t.tagName),K(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const r=this.unattachedDoc.createElement("span");e.oldValue&&r.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const n=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);n!==r.style.getPropertyValue(e)||i!==r.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?n:[n,i]:o._unchangedStyles[e]=[n,i]}for(const e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(qe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const r=this.mirror.getId(t),n=q(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);qe(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||We(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(pt(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||He(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ut(r,n)]?pt(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!(!q(e.target)||!W(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(We(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[ut(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);qe(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Ve(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function pt(e,t){e.delete(t),t.childNodes.forEach((t=>pt(e,t)))}function dt(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){const t=r.getId(n);if(e.some((e=>e.id===t)))return!0;n=n.parentNode}return!1}(e,t,r)}function ft(e,t){return 0!==e.size&&ht(e,t)}function ht(e,t){const{parentNode:r}=t;return!!r&&(!!e.has(r)||ht(e,r))}let mt;const yt=e=>{if(!mt)return e;return(...t)=>{try{return e(...t)}catch(e){if(mt&&!0===mt(e))return()=>{};throw e}}},gt=[];function vt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function St(e,t){const r=new lt;gt.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(n=window[o]);const i=new n(yt((t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function bt({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(nt).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((s=>{let a=K(s);const l=(t=>s=>{const a=vt(s);if(qe(a,n,o,i,!0))return;let c=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=ot.Mouse;break;case"touch":c=ot.Touch;break;case"pen":c=ot.Pen}c===ot.Touch?nt[t]===nt.MouseDown?l="TouchStart":nt[t]===nt.MouseUp&&(l="TouchEnd"):ot.Pen}else ze(s)&&(c=ot.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===ot.Touch||l.startsWith("Mouse")&&c===ot.Mouse)&&(c=null)):nt[t]===nt.Click&&(c=u,u=null);const p=ze(s)?s.changedTouches[0]:s;if(!p)return;const d=r.getId(a),{clientX:f,clientY:h}=p;yt(e)({type:nt[l],id:d,x:f,y:h,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(nt[s]){case nt.MouseDown:case nt.MouseUp:a=a.replace("mouse","pointer");break;case nt.TouchStart:case nt.TouchEnd:return}c.push(Re(a,l,t))})),yt((()=>{c.forEach((e=>e()))}))}function _t({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,sampling:s}){return Re("scroll",yt(De(yt((s=>{const a=vt(s);if(!a||qe(a,n,o,i,!0))return;const c=r.getId(a);if(a===t&&t.defaultView){const r=Ue(t.defaultView);e({id:c,x:r.left,y:r.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),t)}const Et=["INPUT","TEXTAREA","SELECT"],wt=new WeakMap;function It({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:p,maskTextClass:d,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function y(e){let r=vt(e);const l=e.isTrusted,y=r&&J(r.tagName);if("OPTION"===y&&(r=r.parentElement),!r||!y||Et.indexOf(y)<0||qe(r,n,o,i,!0))return;const v=r;if(v.classList.contains(s)||a&&v.matches(a))return;const S=X(r);let b=Q(v,y,S),_=!1;const E=G({maskInputOptions:c,tagName:y,type:S}),w=Te(r,d,h,f,m,E);"radio"!==S&&"checkbox"!==S||(_=r.checked),b=V({isMasked:w,element:r,value:b,maskInputFn:u}),g(r,p?{text:b,isChecked:_,userTriggered:l}:{text:b,isChecked:_});const I=r.name;"radio"===S&&I&&_&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach((e=>{if(e!==r){const t=V({isMasked:w,element:e,value:Q(e,y,S),maskInputFn:u});g(e,p?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}}))}function g(t,n){const o=wt.get(t);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){wt.set(t,n);const o=r.getId(t);yt(e)({...n,id:o})}}const v=("last"===l.input?["change"]:["input","change"]).map((e=>Re(e,yt(y),t))),S=t.defaultView;if(!S)return()=>{v.forEach((e=>e()))};const b=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),_=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(..._.map((e=>Ne(e[0],e[1],{set(){yt(y)({target:this,isTrusted:!1})}},!1,S)))),yt((()=>{v.forEach((e=>e()))}))}function At(e){return function(e,t){if(xt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||xt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||xt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||xt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){const r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}(e,[])}function Tt(e,t,r){let n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function kt({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);const o="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&o&&i?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){const r=i.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),yt((()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function Ct(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};let n;e.recordDOM&&(n=St(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=De(yt((t=>{const r=Date.now()-s;e(a.map((e=>(e.timeOffset-=r,e))),t),a=[],s=null})),i),u=yt(De(yt((e=>{const t=vt(e),{clientX:r,clientY:o}=ze(e)?e.changedTouches[0]:e;s||(s=Le()),a.push({x:r,y:o,id:n.getId(t),timeOffset:Le()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?rt.Drag:e instanceof MouseEvent?rt.MouseMove:rt.TouchMove)})),o,{trailing:!1})),l=[Re("mousemove",u,r),Re("touchmove",u,r),Re("drag",u,r)];return yt((()=>{l.forEach((e=>e()))}))}(e),i=bt(e),s=_t(e),a=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return Re("resize",yt(De(yt((()=>{const t=Be(),o=je();r===t&&n===o||(e({width:Number(o),height:Number(t)}),r=t,n=o)})),200)),t)}(e,{win:r}),c=It(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:o,sampling:i,doc:s}){const a=yt((s=>De(yt((i=>{const a=vt(i);if(!a||qe(a,t,r,n,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:p}=a;e({type:s,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:p})})),i.media||500))),c=[Re("play",a(it.Play),s),Re("pause",a(it.Pause),s),Re("seeked",a(it.Seeked),s),Re("volumechange",a(it.VolumeChange),s),Re("ratechange",a(it.RateChange),s)];return yt((()=>{c.forEach((e=>e()))}))}(e);let l=()=>{},p=()=>{},d=()=>{},f=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:yt(((n,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Tt(o,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),n.apply(o,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;let s,a;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:yt(((n,o,i)=>{const[s]=i,{id:a,styleId:c}=Tt(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),n.apply(o,i)}))}),n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:yt(((n,o,i)=>{const[s]=i,{id:a,styleId:c}=Tt(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),n.apply(o,i)}))})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:yt(((n,o,i)=>{const[s]=i,{id:a,styleId:c}=Tt(o,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),n.apply(o,i)}))}));const c={};Rt("CSSGroupingRule")?c.CSSGroupingRule=n.CSSGroupingRule:(Rt("CSSMediaRule")&&(c.CSSMediaRule=n.CSSMediaRule),Rt("CSSConditionRule")&&(c.CSSConditionRule=n.CSSConditionRule),Rt("CSSSupportsRule")&&(c.CSSSupportsRule=n.CSSSupportsRule));const u={};return Object.entries(c).forEach((([n,o])=>{u[n]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[n].insertRule,{apply:yt(((n,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Tt(o.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...At(o),a||0]}]}),n.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:yt(((n,o,i)=>{const[s]=i,{id:a,styleId:c}=Tt(o.parentStyleSheet,t,r.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...At(o),s]}]}),n.apply(o,i)}))})})),yt((()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=i,s&&(n.CSSStyleSheet.prototype.replace=s),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:r}),p=kt(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:yt(((o,s,a)=>{const[c,u,l]=a;if(r.has(c))return i.apply(s,[c,u,l]);const{id:p,styleId:d}=Tt(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(p&&-1!==p||d&&-1!==d)&&e({id:p,styleId:d,set:{property:c,value:u,priority:l},index:At(s.parentRule)}),o.apply(s,a)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:yt(((o,i,a)=>{const[c]=a;if(r.has(c))return s.apply(i,[c]);const{id:u,styleId:l}=Tt(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:At(i.parentRule)}),o.apply(i,a)}))}),yt((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const n=[],o=new WeakMap,i=r.FontFace;r.FontFace=function(e,t,r){const n=new i(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};const s=Me(t.fonts,"add",(function(t){return function(r){return et(yt((()=>{const t=o.get(r);t&&(e(t),o.delete(r))})),0),t.apply(this,[r])}}));return n.push((()=>{r.FontFace=i})),n.push(s),yt((()=>{n.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=yt((()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t{}}(e),y=[];for(const t of e.plugins)y.push(t.observer(t.callback,r,t.options));return yt((()=>{gt.forEach((e=>e.reset())),n?.disconnect(),o(),i(),s(),a(),c(),u(),l(),p(),d(),f(),h(),m(),y.forEach((e=>e()))}))}function xt(e){return void 0!==window[e]}function Rt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ot{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){const o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(e,t){const r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,r,n)))}getRemoteId(e,t,r){const n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=n.get(t);return o||-1}getRemoteIds(e,t){const r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,r)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class Pt{constructor(){this.crossOriginIframeMirror=new Ot(ae),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Dt{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ot(ae),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ot(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const r=st(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const r=this.crossOriginIframeMap.get(e.source);if(!r)return;const n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case tt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:tt.IncrementalSnapshot,data:{source:rt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case tt.Meta:case tt.Load:case tt.DomContentLoaded:return!1;case tt.Plugin:return t;case tt.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case tt.IncrementalSnapshot:switch(t.data.source){case rt.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case rt.Drag:case rt.TouchMove:case rt.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case rt.ViewportResize:return!1;case rt.MediaInteraction:case rt.MouseInteraction:case rt.Scroll:case rt.CanvasMutation:case rt.Input:return this.replaceIds(t.data,e,["id"]),t;case rt.StyleSheetRule:case rt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case rt.Font:return t;case rt.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case rt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,r,n){for(const o of n)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(r,t[o]):t[o]=e.getId(r,t[o]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===F.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Nt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Mt{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!W(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=St({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>r.disconnect())),this.restoreHandlers.push(_t({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),et((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(kt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=st(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){const r=this;this.restoreHandlers.push(Me(e.prototype,"attachShadow",(function(e){return function(n){const o=e.call(this,n);return this.shadowRoot&&Xe(this)&&r.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ut="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Bt=0;Bt<64;Bt++)Ut[Lt.charCodeAt(Bt)]=Bt;class jt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ft{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ke,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:z(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class qt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(...e){Ze("requestAnimationFrame")(...e)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Wt,Ht;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const zt=new $;function $t(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:p=null,maskTextSelector:d=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:y,slimDOMOptions:g,maskAttributeFn:v,maskInputFn:S,maskTextFn:b,maxCanvasSize:_=null,packFn:E,sampling:w={},dataURLOptions:I={},mousemoveWait:A,recordDOM:T=!0,recordCanvas:k=!1,recordCrossOriginIframes:C=!1,recordAfter:x=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:O=!1,inlineImages:P=!1,plugins:D,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:M=new Set([]),errorHandler:L,onMutation:U,getCanvasManager:B}=e;mt=L;const j=!C||window.parent===window;let F=!1;if(!j)try{window.parent.document&&(F=!1)}catch(e){F=!0}if(j&&!t)throw new Error("emit function is required");if(!j&&!F)return()=>{};void 0!==A&&void 0===w.mousemove&&(w.mousemove=A),zt.reset();const q=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},W=!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===g,headMetaDescKeywords:"all"===g}:g||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let z=0;const G=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!F&&(e=E(e)),e};Wt=(e,o)=>{const i=e;if(i.timestamp=Le(),!gt[0]?.isFrozen()||i.type===tt.FullSnapshot||i.type===tt.IncrementalSnapshot&&i.data.source===rt.Mutation||gt.forEach((e=>e.unfreeze())),j)t?.(G(i),o);else if(F){const e={type:"rrweb",event:G(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===tt.FullSnapshot)H=i,z=0;else if(i.type===tt.IncrementalSnapshot){if(i.data.source===rt.Mutation&&i.data.isAttachIframe)return;z++;const e=n&&z>=n,t=r&&H&&i.timestamp-H.timestamp>r;(e||t)&&te(!0)}};const V=e=>{Wt({type:tt.IncrementalSnapshot,data:{source:rt.Mutation,...e}})},K=e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.Scroll,...e}}),J=e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...e}}),Y=new Ft({mutationCb:V,adoptedStyleSheetCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Pt:new Dt({mirror:zt,mutationCb:V,stylesheetManager:Y,recordCrossOriginIframes:C,wrappedEmit:Wt});for(const e of D||[])e.getMirror&&e.getMirror({nodeMirror:zt,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Q=new qt,Z=function(e,t){try{return e?e(t):new jt}catch{return console.warn("Unable to initialize CanvasManager"),new jt}}(B,{mirror:zt,win:window,mutationCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...e}}),recordCanvas:k,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:_,sampling:w.canvas,dataURLOptions:I,errorHandler:L}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Nt:new Mt({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:U,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:q,dataURLOptions:I,maskAttributeFn:v,maskTextFn:b,maskInputFn:S,recordCanvas:k,inlineImages:P,sampling:w,slimDOMOptions:W,iframeManager:X,stylesheetManager:Y,canvasManager:Z,keepIframeSrcFn:N,processedNodeManager:Q},mirror:zt}),te=(e=!1)=>{if(!T)return;Wt({type:tt.Meta,data:{href:window.location.href,width:je(),height:Be()}},e),Y.reset(),ee.init(),gt.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new $,blockClass:n="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:p=!0,inlineImages:d=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOM:v=!1,dataURLOptions:S,preserveWhiteSpace:b,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:I,stylesheetLoadTimeout:A,keepIframeSrcFn:T=()=>!1}=t;return xe(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:p,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:S,inlineImages:d,recordCanvas:f,preserveWhiteSpace:b,onSerialize:_,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:I,stylesheetLoadTimeout:A,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:zt,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:q,maskAttributeFn:v,maskInputFn:S,maskTextFn:b,slimDOM:W,dataURLOptions:I,recordCanvas:k,inlineImages:P,onSerialize:e=>{$e(e,zt)&&X.addIframe(e),Ge(e,zt)&&Y.trackLinkElement(e),Ve(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:N});if(!t)return console.warn("Failed to snapshot the document");Wt({type:tt.FullSnapshot,data:{node:t,initialOffset:Ue(window)}}),gt.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,zt.getId(document))};Ht=te;try{const e=[],t=e=>yt(Ct)({onMutation:U,mutationCb:V,mousemoveCb:(e,t)=>Wt({type:tt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.ViewportResize,...e}}),inputCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.Input,...e}}),mediaInteractionCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.MediaInteraction,...e}}),styleSheetRuleCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.StyleSheetRule,...e}}),styleDeclarationCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.StyleDeclaration,...e}}),canvasMutationCb:J,fontCb:e=>Wt({type:tt.IncrementalSnapshot,data:{source:rt.Font,...e}}),selectionCb:e=>{Wt({type:tt.IncrementalSnapshot,data:{source:rt.Selection,...e}})},customElementCb:e=>{Wt({type:tt.IncrementalSnapshot,data:{source:rt.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:p,maskTextSelector:d,unmaskTextSelector:f,maskInputOptions:q,inlineStylesheet:h,sampling:w,recordDOM:T,recordCanvas:k,inlineImages:P,userTriggeredOnInput:R,collectFonts:O,doc:e,maskAttributeFn:v,maskInputFn:S,maskTextFn:b,keepIframeSrcFn:N,blockSelector:i,unblockSelector:s,slimDOMOptions:W,dataURLOptions:I,mirror:zt,iframeManager:X,stylesheetManager:Y,shadowDomManager:ee,processedNodeManager:Q,canvasManager:Z,ignoreCSSAttributes:M,plugins:D?.filter((e=>e.observer))?.map((e=>({observer:e.observer,options:e.options,callback:t=>Wt({type:tt.Plugin,data:{plugin:e.name,payload:t}})})))||[]},{});X.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(Re("DOMContentLoaded",(()=>{Wt({type:tt.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&r()}))),e.push(Re("load",(()=>{Wt({type:tt.Load,data:{}}),"load"===x&&r()}),window))),()=>{e.forEach((e=>e())),Q.destroy(),Ht=void 0,mt=void 0}}catch(e){console.warn(e)}}var Gt,Vt;$t.mirror=zt,$t.takeFullSnapshot=function(e){if(!Ht)throw new Error("please take full snapshot after start recording");Ht(e)},(Vt=Gt||(Gt={}))[Vt.NotStarted=0]="NotStarted",Vt[Vt.Running=1]="Running",Vt[Vt.Stopped=2]="Stopped";function Kt(e){return e>9999999999?e:1e3*e}function Jt(e){return e>9999999999?e/1e3:e}function Yt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:tt.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,o.normalize)(t,10,1e3)}}),"console"===t.category))))}function Xt(e){return e.closest("button,a")||e}function Qt(e){const t=Zt(e);return t&&t instanceof Element?Xt(t):t}function Zt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let er;function tr(e){return er||(er=[],(0,i.fill)(O,"open",(function(e){return function(...t){if(er)try{er.forEach((e=>e()))}catch(e){}return e.apply(O,t)}}))),er.push(e),()=>{const t=er?er.indexOf(e):-1;t>-1&&er.splice(t,1)}}const rr=new Set([rt.Mutation,rt.StyleSheetRule,rt.StyleDeclaration,rt.AdoptedStyleSheet,rt.CanvasMutation,rt.Selection,rt.MediaInteraction]);class nr{constructor(e,t,r=Yt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=tr((()=>{this._lastMutation=ir()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!or.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const r={timestamp:Jt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===r.node&&Math.abs(e.timestamp-r.timestamp)<1))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Jt(e)}registerScroll(e=Date.now()){this._lastScroll=Jt(e)}registerClick(e){const t=Xt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=ir();this._clicks.forEach((r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!r&&!n,{clickCount:i,clickBreadcrumb:s}=e;if(o){const r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:O.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:O.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,A.setTimeout)((()=>this._checkClicks()),1e3)}}const or=["A","BUTTON","INPUT"];function ir(){return Date.now()/1e3}function sr(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:r}=t.data;if(rr.has(r)&&e.registerMutation(t.timestamp),r===rt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===rt.MouseInteraction}(t)){const{type:r,id:n}=t.data,o=$t.mirror.getNode(n);o instanceof HTMLElement&&r===nt.Click&&e.registerClick(o)}}catch{}}function ar(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var cr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(cr||{});const ur=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function lr(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const r in e)if(ur.has(r)){let n=r;"data-testid"!==r&&"data-test-id"!==r||(n="testId"),t[n]=e[r]}return t}const pr=e=>t=>{if(!e.isEnabled())return;const r=function(e){const{target:t,message:r}=function(e){const t="click"===e.name;let r,n=null;try{n=t?Qt(e.event):Zt(e.event),r=(0,s.htmlTreeAsString)(n,{maxStringLength:200})||""}catch(e){r=""}return{target:n,message:r}}(e);return ar({category:`ui.${e.name}`,...dr(t,r)})}(t);if(!r)return;const n="click"===t.name,o=n?t.event:void 0;var i,a,c;!(n&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(i=e.clickDetector,a=r,c=Qt(t.event),i.handleClick(a,c)),Yt(e,r)};function dr(e,t){const r=$t.mirror.getId(e),n=r&&$t.mirror.getNode(r),o=n&&$t.mirror.getMeta(n),i=o&&function(e){return e.type===cr.Element}(o)?o:null;return{message:t,data:i?{nodeId:r,node:{id:r,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===cr.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:lr(i.attributes)}}:{}}}function fr(e,t){if(!e.isEnabled())return;e.updateUserActivity();const r=function(e){const{metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:i,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!i)return null;const c=t||n||o,u=1===i.length;if(!c&&u)return null;const l=(0,s.htmlTreeAsString)(a,{maxStringLength:200})||"",p=dr(a,l);return ar({category:"ui.keyDown",message:l,data:{...p.data,metaKey:t,shiftKey:r,ctrlKey:n,altKey:o,key:i}})}(t);r&&Yt(e,r)}const hr={resource:function(e){const{entryType:t,initiatorType:r,name:n,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(r))return null;return{type:`${t}.${r}`,start:gr(i),end:gr(o),name:n,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:r,name:n,startTime:o}=e,i=gr(o);return{type:r,name:n,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:r,decodedBodySize:n,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:p,redirectCount:d,startTime:f,transferSize:h,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:gr(f),end:gr(i),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:p,domComplete:i,redirectCount:d}}}};function mr(e,t){return({metric:r})=>{t.replayPerformanceEntries.push(e(r))}}function yr(e){const t=hr[e.entryType];return t?t(e):null}function gr(e){return(((0,a.browserPerformanceTimeOrigin)()||O.performance.timeOrigin)+e)/1e3}function vr(e){const t=e.entries[e.entries.length-1];return wr(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Sr(e){return void 0!==e.sources}function br(e){const t=[],r=[];for(const n of e.entries)if(Sr(n)){const e=[];for(const t of n.sources)if(t.node){r.push(t.node);const n=$t.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return wr(e,"cumulative-layout-shift",r,t)}function _r(e){const t=e.entries[e.entries.length-1];return wr(e,"first-input-delay",t?.target?[t.target]:void 0)}function Er(e){const t=e.entries[e.entries.length-1];return wr(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function wr(e,t,r,n){const o=e.value,i=e.rating,s=gr(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:r?r.map((e=>$t.mirror.getId(e))):void 0,attributions:n}}}const Ir="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Ar=["info","warn","error","log"],Tr="[Replay] ";function kr(e,t="info"){(0,c.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${Tr}${e}`},{level:t})}const Cr=function(){let e=!1,t=!1;const r={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return Ir?(Ar.forEach((e=>{r[e]=(...r)=>{u.logger[e](Tr,...r),t&&kr(r.join(""),(0,l.severityLevelFromString)(e))}})),r.exception=(n,...o)=>{o.length&&r.error&&r.error(...o),u.logger.error(Tr,n),e?(0,p.captureException)(n):t&&kr(n,"error")},r.infoTick=(...e)=>{u.logger.info(Tr,...e),t&&setTimeout((()=>kr(e[0])),0)}):Ar.forEach((e=>{r[e]=()=>{}})),r}();class xr extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Rr{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>L)throw new xr;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Kt(e):null}}class Or{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:r})=>{r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Ir&&Cr.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const r=this._getAndIncrementId();return new Promise(((n,o)=>{const i=({data:t})=>{const s=t;if(s.method===e&&s.id===r){if(this._worker.removeEventListener("message",i),!s.success)return Ir&&Cr.error("Error in compression worker: ",s.response),void o(new Error("Error in compression worker"));n(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Pr{constructor(e){this._worker=new Or(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Kt(e.timestamp);(!this._earliestTimestamp||tL?Promise.reject(new xr):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Ir&&Cr.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Dr{constructor(e){this._fallback=new Rr,this._compression=new Pr(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Ir&&Cr.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){Ir&&Cr.exception(e,"Failed to add events when switching buffers.")}}}function Nr({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s>f]=l}else for(o=new n(i),s=0;s>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;sd&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<e))break;w+=m-(1<>=y;w>0;){var M=o[s].s;p[M]=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){G.prototype.flush.call(this)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;oi.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}();return""}();if(!t)return;Ir&&Cr.info("Using compression worker"+(e?` from ${e}`:""));const r=new Worker(t);return new Dr(r)}catch(e){Ir&&Cr.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return Ir&&Cr.info("Using simple buffer"),new Rr}function Mr(){try{return"sessionStorage"in O&&!!O.sessionStorage}catch{return!1}}function Lr(e){!function(){if(!Mr())return;try{O.sessionStorage.removeItem(P)}catch{}}(),e.session=void 0}function Ur(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Ir&&Cr.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function Kr(e){return!e.type}function Jr(e){return"transaction"===e.type}function Yr(e){return"feedback"===e.type}function Xr(e){return(t,r)=>{if(!e.isEnabled()||!Kr(t)&&!Jr(t))return;const n=r?.statusCode;!n||n<200||n>=300||(Jr(t)?function(e,t){const r=e.getContext();t.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const r=e.getContext();t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:n}=e.getOptions();if("function"==typeof n&&!n(t))return;(0,A.setTimeout)((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}(e,t))}}function Qr(e){return t=>{e.isEnabled()&&Kr(t)&&function(e,t){const r=t.exception?.values?.[0]?.value;if("string"!=typeof r)return;if(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Yt(e,ar({category:"replay.hydrate-error",data:{url:(0,s.getLocationHref)()}}))}}(e,t)}}function Zr(e){const t=(0,f.getClient)();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!en(t))return;const r=function(e){if(!en(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return ar(e);let r=!1;const n=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>M?(r=!0,`${e.slice(0,M)}…`):e;if("object"==typeof e)try{const t=(0,o.normalize)(e,7);return JSON.stringify(t).length>M?(r=!0,`${JSON.stringify(t,null,2).slice(0,M)}…`):t}catch{}return e}));return ar({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return ar(e)}(t);r&&Yt(e,r)}(e,t)))}function en(e){return!!e.category}function tn(){const e=(0,f.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,h.getActiveSpan)();if(t){delete(0,m.getDynamicSamplingContextFromSpan)(t).replay_id}}function rn(e){return Object.assign(((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Kr(t)&&!Jr(t)&&!Yr(t))return t;if(!e.checkAndHandleExpiredSession())return tn(),t;if(Yr(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:tt.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException?.__rrweb__)}(t,r)&&!e.getOptions()._experiments.captureExceptions)return Ir&&Cr.log("Ignoring error from rrweb internals",t),null;const n=function(e,t){return"buffer"===e.recordingMode&&t.message!==D&&!(!t.exception||t.type)&&Ur(e.getOptions().errorSampleRate)}(e,t);return(n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function nn(e,t){return t.map((({type:t,start:r,end:n,name:o,data:i})=>{const s=e.throttledAddEvent({type:tt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:r,endTimestamp:n,data:i}}});return"string"==typeof s?Promise.resolve(null):s}))}function on(e){return t=>{if(!e.isEnabled())return;const r=function(e){const{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate((()=>(nn(e,[r]),!1))))}}function sn(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Ir||!e.getOptions()._experiments.traceInternals)&&(0,y.isSentryRequestUrl)(t,(0,f.getClient)())}(e,t.name)||e.addUpdate((()=>(nn(e,[t]),!0))))}function an(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const r=(0,k.serializeFormData)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function cn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function un(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function ln(e,t){if(!t)return null;const{startTimestamp:r,endTimestamp:n,url:o,method:s,statusCode:a,request:c,response:u}=t;return{type:e,start:r/1e3,end:n/1e3,name:o,data:(0,i.dropUndefinedKeys)({method:s,statusCode:a,request:c,response:u})}}function pn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function dn(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};const n={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>N,r=function(e){const t=e[0],r=e[e.length-1];return"["===t&&"]"===r||"{"===t&&"}"===r}(e);if(t){const t=e.slice(0,N);return r?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=o,i?.length&&(n._meta={warnings:i}),n}function fn(e,t){return Object.entries(e).reduce(((r,[n,o])=>{const i=n.toLowerCase();return t.includes(i)&&e[n]&&(r[i]=o),r}),{})}function hn(e,t){const r=function(e,t=O.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(O.location.origin))return e;const r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;const n=r.href;if(!e.endsWith("/")&&n.endsWith("/"))return n.slice(0,-1);return n}(e);return(0,g.stringMatchesSomePattern)(r,t)}async function mn(e,t,r){try{const n=await async function(e,t,r){const n=Date.now(),{startTimestamp:o=n,endTimestamp:i=n}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,p=hn(s,r.networkDetailAllowUrls)&&!hn(s,r.networkDetailDenyUrls),d=p?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){const o=r?function(e,t){if(1===e.length&&"string"!=typeof e[0])return gn(e[0],t);if(2===e.length)return gn(e[1],t);return{}}(r,t):{};if(!e)return dn(o,n,void 0);const i=(0,k.getFetchRequestArgBody)(r),[s,a]=(0,k.getBodyString)(i,Cr),c=dn(o,n,s);if(a)return un(c,a);return c}(r,t.input,u):pn(u),f=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,o){if(!e&&void 0!==o)return pn(o);const i=n?yn(n.headers,r):{};if(!n||!t&&void 0!==o)return dn(i,o,void 0);const[s,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Ir&&Cr.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,r)=>{const n=(0,A.setTimeout)((()=>r(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>r(e))).finally((()=>clearTimeout(n)))}))}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Ir&&Cr.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Ir&&Cr.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(n),c=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:o}){try{const i=e?.length&&void 0===r?an(e):r;return n?dn(o,i,t?e:void 0):pn(i)}catch(e){return Ir&&Cr.exception(e,"Failed to serialize response body"),dn(o,r,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});if(a)return un(c,a);return c}(p,r,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:d,response:f}}(e,t,r),o=ln("resource.fetch",n);sn(r.replay,o)}catch(e){Ir&&Cr.exception(e,"Failed to capture fetch breadcrumb")}}function yn(e,t){const r={};return t.forEach((t=>{e.get(t)&&(r[t]=e.get(t))})),r}function gn(e,t){if(!e)return{};const r=e.headers;return r?r instanceof Headers?yn(r,t):Array.isArray(r)?{}:fn(r,t):{}}async function vn(e,t,r){try{const n=function(e,t,r){const n=Date.now(),{startTimestamp:o=n,endTimestamp:i=n,input:s,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:p,response_body_size:d}=e.data;if(!c)return null;if(!a||!hn(c,r.networkDetailAllowUrls)||hn(c,r.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:pn(p),response:pn(d)}}const f=a[C.SENTRY_XHR_DATA_KEY],h=f?fn(f.request_headers,r.networkRequestHeaders):{},m=fn(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e}),{})}(a),r.networkResponseHeaders),[y,g]=r.networkCaptureBodies?(0,k.getBodyString)(s,Cr):[void 0],[v,S]=r.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Ir&&Cr.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ir&&Cr.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Ir&&Cr.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=dn(h,p,y),_=dn(m,d,v);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:g?un(b,g):b,response:S?un(_,S):_}}(e,t,r),o=ln("resource.xhr",n);sn(r.replay,o)}catch(e){Ir&&Cr.exception(e,"Failed to capture xhr breadcrumb")}}function Sn(e,t){const{xhr:r,input:n}=t;if(!r)return;const o=an(n),i=r.getResponseHeader("content-length")?cn(r.getResponseHeader("content-length")):function(e,t){try{return an("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(r.response,r.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}function bn(e){const t=(0,f.getClient)();try{const{networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:r,networkDetailDenyUrls:n,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,r){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(r)&&(Sn(t,r),vn(t,r,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(r)&&(!function(e,t){const{input:r,response:n}=t,o=an(r?(0,k.getFetchRequestArgBody)(r):void 0),i=n?cn(n.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,r),mn(t,r,e))}catch(e){Ir&&Cr.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch{}}function _n(e){const{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}const En=n.GLOBAL_OBJ.navigator;function wn(e){let t=!1;return(r,n)=>{if(!e.checkAndHandleExpiredSession())return void(Ir&&Cr.warn("Received replay event after session expired."));const o=n||!t;t=!0,e.clickDetector&&sr(e.clickDetector,r),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!$r(e,r,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;$r(e,function(e){const t=e.getOptions();return{type:tt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const r=e.eventBuffer.getEarliestTimestamp();r&&(Ir&&Cr.info(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&jr(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}async function In({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:o,session:i}){const s=function({recordingData:e,headers:t}){let r;const n=`${JSON.stringify(t)}\n`;if("string"==typeof e)r=`${n}${e}`;else{const t=(new TextEncoder).encode(n);r=new Uint8Array(t.length+e.length),r.set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=n,p=(0,f.getClient)(),d=(0,f.getCurrentScope)(),h=p?.getTransport(),m=p?.getDsn();if(!(p&&h&&m&&i.sampled))return(0,b.resolvedSyncPromise)({});const y={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:r,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:r,event:n}){const o={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,o);const i=await(0,S.prepareEvent)(e.getOptions(),n,o,t,e,(0,f.getIsolationScope)());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const s=e.getSdkMetadata(),{name:a,version:c}=s?.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},i}({scope:d,client:p,replayId:t,event:y});if(!g)return p.recordDroppedEvent("event_processor","replay"),Ir&&Cr.info("An event processor returned `null`, will not send event."),(0,b.resolvedSyncPromise)({});delete g.sdkProcessingMetadata;const E=function(e,t,r,n){return(0,v.createEnvelope)((0,v.createEventEnvelopeHeaders)(e,(0,v.getSdkMetadataForEnvelopeHeader)(e),n,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,s,m,p.getOptions().tunnel);let w;try{w=await h.send(E)}catch(e){const t=new Error(D);try{t.cause=e}catch{}throw t}if("number"==typeof w.statusCode&&(w.statusCode<200||w.statusCode>=300))throw new An(w.statusCode);const I=(0,_.updateRateLimits)({},w);if((0,_.isRateLimited)(I,"replay"))throw new Tn(I);return w}class An extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Tn extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function kn(e,t={count:0,interval:5e3}){const{recordingData:r,onError:n}=e;if(r.length)try{return await In(e),!0}catch(r){if(r instanceof An||r instanceof Tn)throw r;if((0,p.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){const e=new Error(`${D} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise(((r,n)=>{(0,A.setTimeout)((async()=>{try{await kn(e,t),r(!0)}catch(e){n(e)}}),t.interval)}))}}const Cn="__THROTTLED";function xn(e,t,r){const n=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-r;n.forEach(((e,r)=>{re+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":Cn}o=!1;const a=n.get(s)||0;return n.set(s,a+1),e(...i)}}class Rn{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){let n,o,i;const s=r?.maxWait?Math.max(r.maxWait,t):0;function a(){return c(),n=e(),n}function c(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function u(){return o&&clearTimeout(o),o=(0,A.setTimeout)(a,t),s&&void 0===i&&(i=(0,A.setTimeout)(a,s)),n}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==i?a():n},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=xn(((e,t)=>function(e,t,r){return Vr(e,t)?Gr(e,t,r):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),o=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(o&&(this.clickDetector=new nr(this,o)),Ir){const t=e._experiments;Cr.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===O.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=ar({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=ar({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{fr(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Ir&&Cr.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Ir&&Cr.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Ir&&Cr.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Ir&&Cr.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Ir&&Cr.info("Buffering is in progress, call `flush()` to save the replay"));Ir&&Cr.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=zr({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Ir&&Cr.info("Buffering is in progress, call `flush()` to save the replay"));Ir&&Cr.infoTick("Starting replay in buffer mode");const e=zr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=$t({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:wn(this),.../iPhone|iPad|iPod/i.test(En?.userAgent??"")||/Macintosh/i.test(En?.userAgent??"")&&En?.maxTouchPoints&&En?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Ir&&Cr.info("Stopping Replay"+(t?` triggered by ${t}`:"")),tn(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Lr(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Ir&&Cr.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Ir&&Cr.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Ir&&Cr.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&qr(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${O.location.pathname}${O.location.hash}${O.location.search}`,t=`${O.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const r=this._throttledAddEvent(e,t);if(r===Cn){const e=ar({category:"replay.throttled"});this.addUpdate((()=>!$r(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return r}getCurrentRoute(){const e=this.lastActiveSpan||(0,h.getActiveSpan)(),t=e&&(0,h.getRootSpan)(e),r=(t&&(0,h.spanToJSON)(t).data||{})[E.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,h.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Nr({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,r=zr({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return!Hr(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{O.document.addEventListener("visibilitychange",this._handleVisibilityChange),O.addEventListener("blur",this._handleWindowBlur),O.addEventListener("focus",this._handleWindowFocus),O.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e,{autoFlushOnFeedback:t}){const r=(0,f.getClient)();(0,x.addClickKeypressInstrumentationHandler)(pr(e)),(0,R.addHistoryInstrumentationHandler)(on(e)),Zr(e),bn(e);const n=rn(e);(0,p.addEventProcessor)(n),r&&(r.on("beforeSendEvent",Qr(e)),r.on("afterSendEvent",Xr(e)),r.on("createDsc",(t=>{const r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)})),r.on("spanStart",(t=>{e.lastActiveSpan=t})),r.on("spanEnd",(t=>{e.lastActiveSpan=t})),r.on("beforeSendFeedback",(async(r,n)=>{const o=e.getSessionId();n?.includeReplay&&e.isEnabled()&&o&&r.contexts?.feedback&&("api"===r.contexts.feedback.source&&t&&await e.flush(),r.contexts.feedback.replay_id=o)})),t&&r.on("openFeedbackWidget",(async()=>{await e.flush()})))}(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}const n=[];return["navigation","paint","resource"].forEach((e=>{n.push((0,T.addPerformanceInstrumentationHandler)(e,r))})),n.push((0,T.addLcpInstrumentationHandler)(mr(vr,e)),(0,T.addClsInstrumentationHandler)(mr(br,e)),(0,T.addFidInstrumentationHandler)(mr(_r,e)),(0,T.addInpInstrumentationHandler)(mr(Er,e))),()=>{n.forEach((e=>e()))}}(this)}_removeListeners(){try{O.document.removeEventListener("visibilitychange",this._handleVisibilityChange),O.removeEventListener("blur",this._handleWindowBlur),O.removeEventListener("focus",this._handleWindowFocus),O.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Wr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Ir&&Cr.info("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:tt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(yr).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(nn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const r=t.getEarliestTimestamp();r&&rthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await kn({replayId:e,recordingData:o,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=(0,f.getClient)();if(t){const r=e instanceof Tn?"ratelimit_backoff":"send_error";t.recordDroppedEvent(r,"replay")}}}else Ir&&Cr.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Ir&&Cr.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();const n=rthis._options.maxReplayDuration+5e3;if(n||o)return Ir&&Cr.info(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),void(n&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&Ir&&Cr.info("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&jr(this.session)}_onMutationHandler(e){const t=e.length,r=this._options.mutationLimit,n=r&&t>r;if(t>this._options.mutationBreadcrumbLimit||n){const e=ar({category:"replay.mutations",data:{count:t,limit:n}});this._createCustomBreadcrumb(e)}return!n||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function On(e,t){return[...e,...t].join(",")}const Pn='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Dn=["content-length","content-type","accept"];let Nn=!1;const Mn=e=>new Ln(e);class Ln{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:d=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:S=[],mask:b=[],maskAttributes:_=["title","placeholder"],unmask:E=[],block:I=[],unblock:A=[],ignore:T=[],maskFn:k,beforeAddRecordingEvent:C,beforeErrorSampling:x,onError:R}={}){this.name="Replay";const O=function({mask:e,unmask:t,block:r,unblock:n,ignore:o}){return{maskTextSelector:On(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:On(t,[]),blockSelector:On(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:On(n,[]),ignoreSelector:On(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:I,unblock:A,ignore:T});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(e,t,r)=>function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:o,value:i}){return n?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:_,maskAllText:c,privacyOptions:O,key:e,value:t,el:r}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(n,U),stickySession:o,useCompression:i,workerUrl:s,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:p,mutationLimit:d,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:Un(v),networkResponseHeaders:Un(S),beforeAddRecordingEvent:C,beforeErrorSampling:x,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Pn}`:Pn),this._isInitialized&&(0,w.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Nn}set _isInitialized(e){Nn=e}afterAllSetup(e){(0,w.isBrowser)()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const r=t.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...(0,i.dropUndefinedKeys)(e)},o=(0,I.parseSampleRate)(r.replaysSessionSampleRate),s=(0,I.parseSampleRate)(r.replaysOnErrorSampleRate);null==o&&null==s&&(0,u.consoleSandbox)((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=o&&(n.sessionSampleRate=o);null!=s&&(n.errorSampleRate=s);return n}(this._initialOptions,e);this._replay=new Rn({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Un(e){return[...Dn,...e.map((e=>e.toLowerCase()))]}function Bn(){const e=(0,f.getClient)();return e?.getIntegrationByName("Replay")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{addClsInstrumentationHandler:()=>S,addFidInstrumentationHandler:()=>_,addInpInstrumentationHandler:()=>w,addLcpInstrumentationHandler:()=>b,addPerformanceInstrumentationHandler:()=>I,addTtfbInstrumentationHandler:()=>E,isPerformanceEventTiming:()=>N});var n=r(212),o=r(220),i=r(277),s=r(287),a=r(299),c=r(300),u=r(304),l=r(293),p=r(305);const d={},f={};let h,m,y,g,v;function S(e,t=!1){return O("cls",e,T,h,t)}function b(e,t=!1){return O("lcp",e,C,y,t)}function _(e){return O("fid",e,k,m)}function E(e){return O("ttfb",e,x,g)}function w(e){return O("inp",e,R,v)}function I(e,t){return P(e,t),f[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,l.observe)(e,(t=>{A(e,{entries:t})}),t)}(e),f[e]=!0),D(e,t)}function A(e,t){const r=d[e];if(r?.length)for(const s of r)try{s(t)}catch(t){i.DEBUG_BUILD&&n.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.getFunctionName)(s)}\nError:`,t)}}function T(){return(0,s.onCLS)((e=>{A("cls",{metric:e}),h=e}),{reportAllChanges:!0})}function k(){return(0,a.onFID)((e=>{A("fid",{metric:e}),m=e}))}function C(){return(0,u.onLCP)((e=>{A("lcp",{metric:e}),y=e}),{reportAllChanges:!0})}function x(){return(0,p.onTTFB)((e=>{A("ttfb",{metric:e}),g=e}))}function R(){return(0,c.onINP)((e=>{A("inp",{metric:e}),v=e}))}function O(e,t,r,n,o=!1){let i;return P(e,t),f[e]||(i=r(),f[e]=!0),n&&t({metric:n}),D(e,t,o?i:void 0)}function P(e,t){d[e]=d[e]||[],d[e].push(t)}function D(e,t,r){return()=>{r&&r();const n=d[e];if(!n)return;const o=n.indexOf(t);-1!==o&&n.splice(o,1)}}function N(e){return"duration"in e}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{CLSThresholds:()=>u,onCLS:()=>l});var n=r(288),o=r(289),i=r(293),s=r(294),a=r(295),c=r(296);const u=[.1,.25],l=(e,t={})=>{(0,c.onFCP)((0,a.runOnce)((()=>{const r=(0,o.initMetric)("CLS",0);let a,c=0,l=[];const p=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=l[0],r=l[l.length-1];c&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(c+=e.value,l.push(e)):(c=e.value,l=[e])}})),c>r.value&&(r.value=c,r.entries=l,a())},d=(0,i.observe)("layout-shift",p);d&&(a=(0,n.bindReporter)(e,r,u,t.reportAllChanges),(0,s.onHidden)((()=>{p(d.takeRecords()),a(!0)})),setTimeout(a,0))})))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{bindReporter:()=>n});const n=(e,t,r,n)=>{let o,i;return s=>{t.value>=0&&(s||n)&&(i=t.value-(o||0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,r),e(t)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{initMetric:()=>a});var n=r(257),o=r(290),i=r(291),s=r(292);const a=(e,t)=>{const r=(0,s.getNavigationEntry)();let a="navigate";r&&(n.WINDOW.document?.prerendering||(0,i.getActivationStart)()>0?a="prerender":n.WINDOW.document?.wasDiscarded?a="restore":r.type&&(a=r.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:(0,o.generateUniqueID)(),navigationType:a}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{generateUniqueID:()=>n});const n=()=>`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getActivationStart:()=>o});var n=r(292);const o=()=>{const e=(0,n.getNavigationEntry)();return e?.activationStart||0}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getNavigationEntry:()=>o});var n=r(257);const o=(e=!0)=>{const t=n.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart{"use strict";r.r(t),r.d(t,{observe:()=>n});const n=(e,t,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{onHidden:()=>o});var n=r(257);const o=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==n.WINDOW.document?.visibilityState||e(t)};n.WINDOW.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{runOnce:()=>n});const n=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FCPThresholds:()=>u,onFCP:()=>l});var n=r(288),o=r(291),i=r(297),s=r(289),a=r(293),c=r(298);const u=[1800,3e3],l=(e,t={})=>{(0,c.whenActivated)((()=>{const r=(0,i.getVisibilityWatcher)(),c=(0,s.initMetric)("FCP");let l;const p=(0,a.observe)("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(p.disconnect(),e.startTime{"use strict";r.r(t),r.d(t,{getVisibilityWatcher:()=>a});var n=r(257);let o=-1;const i=e=>{"hidden"===n.WINDOW.document.visibilityState&&o>-1&&(o="visibilitychange"===e.type?e.timeStamp:0,s())},s=()=>{removeEventListener("visibilitychange",i,!0),removeEventListener("prerenderingchange",i,!0)},a=()=>(n.WINDOW.document&&o<0&&(o="hidden"!==n.WINDOW.document.visibilityState||n.WINDOW.document.prerendering?1/0:0,addEventListener("visibilitychange",i,!0),addEventListener("prerenderingchange",i,!0)),{get firstHiddenTime(){return o}})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenActivated:()=>o});var n=r(257);const o=e=>{n.WINDOW.document?.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{FIDThresholds:()=>l,onFID:()=>p});var n=r(288),o=r(297),i=r(289),s=r(293),a=r(294),c=r(295),u=r(298);const l=[100,300],p=(e,t={})=>{(0,u.whenActivated)((()=>{const r=(0,o.getVisibilityWatcher)(),u=(0,i.initMetric)("FID");let p;const d=e=>{e.startTime{e.forEach(d)},h=(0,s.observe)("first-input",f);p=(0,n.bindReporter)(e,u,l,t.reportAllChanges),h&&(0,a.onHidden)((0,c.runOnce)((()=>{f(h.takeRecords()),h.disconnect()})))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{INPThresholds:()=>d,onINP:()=>f});var n=r(257),o=r(288),i=r(289),s=r(301),a=r(293),c=r(294),u=r(302),l=r(298),p=r(303);const d=[200,500],f=(e,t={})=>{"PerformanceEventTiming"in n.WINDOW&&"interactionId"in PerformanceEventTiming.prototype&&(0,l.whenActivated)((()=>{(0,u.initInteractionCountPolyfill)();const r=(0,i.initMetric)("INP");let n;const l=e=>{(0,p.whenIdle)((()=>{e.forEach(s.processInteractionEntry);const t=(0,s.estimateP98LongestInteraction)();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())}))},f=(0,a.observe)("event",l,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:s.DEFAULT_DURATION_THRESHOLD});n=(0,o.bindReporter)(e,r,d,t.reportAllChanges),f&&(f.observe({type:"first-input",buffered:!0}),(0,c.onHidden)((()=>{l(f.takeRecords()),n(!0)})))}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{DEFAULT_DURATION_THRESHOLD:()=>s,entryPreProcessingCallbacks:()=>c,estimateP98LongestInteraction:()=>a,longestInteractionList:()=>o,longestInteractionMap:()=>i,processInteractionEntry:()=>u});var n=r(302);const o=[],i=new Map,s=40;const a=()=>{const e=Math.min(o.length-1,Math.floor(((0,n.getInteractionCount)()-0)/50));return o[e]},c=[],u=e=>{if(c.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=o[o.length-1],r=i.get(e.interactionId);if(r||o.length<10||t&&e.duration>t.latency){if(r)e.duration>r.latency?(r.entries=[e],r.latency=e.duration):e.duration===r.latency&&e.startTime===r.entries[0]?.startTime&&r.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};i.set(t.id,t),o.push(t)}o.sort(((e,t)=>t.latency-e.latency)),o.length>10&&o.splice(10).forEach((e=>i.delete(e.id)))}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getInteractionCount:()=>u,initInteractionCountPolyfill:()=>l});var n=r(293);let o=0,i=1/0,s=0;const a=e=>{e.forEach((e=>{e.interactionId&&(i=Math.min(i,e.interactionId),s=Math.max(s,e.interactionId),o=s?(s-i)/7+1:0)}))};let c;const u=()=>c?o:performance.interactionCount||0,l=()=>{"interactionCount"in performance||c||(c=(0,n.observe)("event",a,{type:"event",buffered:!0,durationThreshold:0}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{whenIdle:()=>s});var n=r(257),o=r(294),i=r(295);const s=e=>{const t=n.WINDOW.requestIdleCallback||n.WINDOW.setTimeout;let r=-1;return e=(0,i.runOnce)(e),"hidden"===n.WINDOW.document?.visibilityState?e():(r=t(e),(0,o.onHidden)(e)),r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{LCPThresholds:()=>f,onLCP:()=>m});var n=r(257),o=r(288),i=r(291),s=r(297),a=r(289),c=r(293),u=r(294),l=r(295),p=r(298),d=r(303);const f=[2500,4e3],h={},m=(e,t={})=>{(0,p.whenActivated)((()=>{const r=(0,s.getVisibilityWatcher)(),p=(0,a.initMetric)("LCP");let m;const y=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime{h[p.id]||(y(g.takeRecords()),g.disconnect(),h[p.id]=!0,m(!0))}));["keydown","click"].forEach((e=>{n.WINDOW.document&&addEventListener(e,(()=>(0,d.whenIdle)(r)),{once:!0,capture:!0})})),(0,u.onHidden)(r)}}))}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TTFBThresholds:()=>u,onTTFB:()=>p});var n=r(257),o=r(288),i=r(291),s=r(292),a=r(289),c=r(298);const u=[800,1800],l=e=>{n.WINDOW.document?.prerendering?(0,c.whenActivated)((()=>l(e))):"complete"!==n.WINDOW.document?.readyState?addEventListener("load",(()=>l(e)),!0):setTimeout(e,0)},p=(e,t={})=>{const r=(0,a.initMetric)("TTFB"),n=(0,o.bindReporter)(e,r,u,t.reportAllChanges);l((()=>{const e=(0,s.getNavigationEntry)();e&&(r.value=Math.max(e.responseStart-(0,i.getActivationStart)(),0),r.entries=[e],n(!0))}))}},(e,t,r)=>{"use strict";function n(e,t){const r=t?.getDsn(),n=t?.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,r)||function(e,t){if(!t)return!1;return o(e)===o(t)}(e,n)}function o(e){return"/"===e[e.length-1]?e.slice(0,-1):e}r.r(t),r.d(t,{isSentryRequestUrl:()=>n})},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getBodyString:()=>s,getFetchRequestArgBody:()=>a,serializeFormData:()=>i});var n=r(212),o=r(277);function i(e){return new URLSearchParams(e).toString()}function s(e,t=n.logger){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[i(e)];if(!e)return[void 0]}catch(r){return o.DEBUG_BUILD&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return o.DEBUG_BUILD&&t.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function a(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isBrowser:()=>i});var n=r(309),o=r(203);function i(){return"undefined"!=typeof window&&(!(0,n.isNodeEnv)()||function(){const e=o.GLOBAL_OBJ.process;return"renderer"===e?.type}())}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{isNodeEnv:()=>o,loadModule:()=>s});var n=r(249);function o(){return!(0,n.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}function s(e,t=module){let r;try{r=i(t,e)}catch(e){}if(!r)try{const{cwd:n}=i(t,"process");r=i(t,`${n()}/node_modules/${e}`)}catch(e){}return r}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>w,browserTracingIntegration:()=>A,getMetaContent:()=>C,startBrowserTracingNavigationSpan:()=>k,startBrowserTracingPageLoadSpan:()=>T});var n=r(325),o=r(327),i=r(261),s=r(323),a=r(324),c=r(203),u=r(231),l=r(199),p=r(234),d=r(230),f=r(209),h=r(212),m=r(216),y=r(237),g=r(214),v=r(208),S=r(252),b=r(222),_=r(311),E=r(312);const w="BrowserTracing",I={...s.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...E.defaultRequestInstrumentationOptions},A=(e={})=>{const t=b.WINDOW.document;(0,a.registerSpanErrorInstrumentation)();const{enableInp:r,enableLongTask:v,enableLongAnimationFrame:A,_experiments:{enableInteractions:x,enableStandaloneClsSpans:P},beforeStartSpan:D,idleTimeout:N,finalTimeout:M,childSpanTimeout:L,markBackgroundSpan:U,traceFetch:B,traceXHR:j,trackFetchStreamPerformance:F,shouldCreateSpanForRequest:q,enableHTTPTimings:W,instrumentPageLoad:H,instrumentNavigation:z}={...I,...e},$=(0,n.startTrackingWebVitals)({recordClsStandaloneSpans:P||!1});r&&(0,o.startTrackingINP)(),A&&c.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?(0,n.startTrackingLongAnimationFrames)():v&&(0,n.startTrackingLongTasks)(),x&&(0,n.startTrackingInteractions)();const G={name:void 0,source:void 0};function V(e,r){const o="pageload"===r.op,i=D?D(r):r,a=i.attributes||{};r.name!==i.name&&(a[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",i.attributes=a),G.name=i.name,G.source=a[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const c=(0,s.startIdleSpan)(i,{idleTimeout:N,finalTimeout:M,childSpanTimeout:L,disableAutoFinish:o,beforeSpanEnd:t=>{$(),(0,n.addPerformanceEntries)(t,{recordClsOnPageloadSpan:!P}),O(e,void 0);const r=(0,l.getCurrentScope)(),o=r.getPropagationContext();r.setPropagationContext({...o,traceId:c.spanContext().traceId,sampled:(0,p.spanIsSampled)(c),dsc:(0,d.getDynamicSamplingContextFromSpan)(t)})}});function f(){t&&["interactive","complete"].includes(t.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}O(e,c),o&&t&&(t.addEventListener("readystatechange",(()=>{f()})),f())}return{name:w,afterAllSetup(e){let t=(0,f.getLocationHref)();function n(){const t=R(e);t&&!(0,p.spanToJSON)(t).timestamp&&(S.DEBUG_BUILD&&h.logger.log(`[Tracing] Finishing current active span with op: ${(0,p.spanToJSON)(t).op}`),t.end())}if(e.on("startNavigationSpan",(t=>{(0,l.getClient)()===e&&(n(),(0,l.getIsolationScope)().setPropagationContext({traceId:(0,m.generateTraceId)(),sampleRand:Math.random()}),(0,l.getCurrentScope)().setPropagationContext({traceId:(0,m.generateTraceId)(),sampleRand:Math.random()}),V(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if((0,l.getClient)()!==e)return;n();const o=r.sentryTrace||C("sentry-trace"),i=r.baggage||C("baggage"),s=(0,y.propagationContextFromHeaders)(o,i);(0,l.getCurrentScope)().setPropagationContext(s),V(e,{op:"pageload",...t})})),b.WINDOW.location){if(H){const t=(0,g.browserPerformanceTimeOrigin)();T(e,{name:b.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}z&&(0,i.addHistoryInstrumentationHandler)((({to:r,from:n})=>{void 0!==n||-1===t?.indexOf(r)?n!==r&&(t=void 0,k(e,{name:b.WINDOW.location.pathname,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}})):t=void 0}))}U&&(0,_.registerBackgroundTabDetection)(),x&&function(e,t,r,n,o){const i=b.WINDOW.document;let a;const c=()=>{const i="ui.action.click",c=R(e);if(c){const e=(0,p.spanToJSON)(c).op;if(["navigation","pageload"].includes(e))return void(S.DEBUG_BUILD&&h.logger.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}a&&(a.setAttribute(u.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),a.end(),a=void 0),o.name?a=(0,s.startIdleSpan)({name:o.name,op:i,attributes:{[u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n}):S.DEBUG_BUILD&&h.logger.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)};i&&addEventListener("click",c,{once:!1,capture:!0})}(e,N,M,L,G),r&&(0,o.registerInpInteractionListener)(),(0,E.instrumentOutgoingRequests)(e,{traceFetch:B,traceXHR:j,trackFetchStreamPerformance:F,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:q,enableHTTPTimings:W})}}};function T(e,t,r){return e.emit("startPageLoadSpan",t,r),(0,l.getCurrentScope)().setTransactionName(t.name),R(e)}function k(e,t){return e.emit("startNavigationSpan",t),(0,l.getCurrentScope)().setTransactionName(t.name),R(e)}function C(e){const t=b.WINDOW.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}const x="_sentry_idleSpan";function R(e){return e[x]}function O(e,t){(0,v.addNonEnumerableProperty)(e,x,t)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerBackgroundTabDetection:()=>c});var n=r(234),o=r(212),i=r(235),s=r(252),a=r(222);function c(){a.WINDOW.document?a.WINDOW.document.addEventListener("visibilitychange",(()=>{const e=(0,n.getActiveSpan)();if(!e)return;const t=(0,n.getRootSpan)(e);if(a.WINDOW.document.hidden&&t){const e="cancelled",{op:r,status:a}=(0,n.spanToJSON)(t);s.DEBUG_BUILD&&o.logger.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),a||t.setStatus({code:i.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):s.DEBUG_BUILD&&o.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{defaultRequestInstrumentationOptions:()=>w,instrumentOutgoingRequests:()=>I,shouldAttachHeaders:()=>k,xhrCallback:()=>C});var n=r(258),o=r(286),i=r(322),s=r(259),a=r(313),c=r(265),u=r(234),l=r(214),p=r(209),d=r(213),f=r(233),h=r(235),m=r(315),y=r(231),g=r(314),v=r(199),S=r(321),b=r(222);const _=new WeakMap,E=new Map,w={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function I(e,t){const{traceFetch:r,traceXHR:o,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:u,enableHTTPTimings:l,tracePropagationTargets:p}={traceFetch:w.traceFetch,traceXHR:w.traceXHR,trackFetchStreamPerformance:w.trackFetchStreamPerformance,...t},d="function"==typeof u?u:e=>!0,f=e=>k(e,p),h={};r&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=E.get(e.span_id);t&&(e.timestamp=t/1e3,E.delete(e.span_id))}})),e))),i&&(0,s.addFetchEndInstrumentationHandler)((e=>{if(e.response){const t=_.get(e.response);t&&e.endTimestamp&&E.set(t,e.endTimestamp)}})),(0,s.addFetchInstrumentationHandler)((e=>{const t=(0,a.instrumentFetchRequest)(e,d,f,h);if(e.response&&e.fetchData.__span&&_.set(e.response,e.fetchData.__span),t){const r=x(e.fetchData.url),n=r?(0,c.parseUrl)(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n})}l&&t&&A(t)}))),o&&(0,n.addXhrInstrumentationHandler)((e=>{const t=C(e,d,f,h);l&&t&&A(t)}))}function A(e){const{url:t}=(0,u.spanToJSON)(e).data;if(!t||"string"!=typeof t)return;const r=(0,o.addPerformanceInstrumentationHandler)("resource",(({entries:n})=>{n.forEach((n=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(n)&&n.name.endsWith(t)){(function(e){const{name:t,version:r}=(0,i.extractNetworkProtocol)(e.nextHopProtocol),n=[];if(n.push(["network.protocol.version",r],["network.protocol.name",t]),!(0,l.browserPerformanceTimeOrigin)())return n;return[...n,["http.request.redirect_start",T(e.redirectStart)],["http.request.fetch_start",T(e.fetchStart)],["http.request.domain_lookup_start",T(e.domainLookupStart)],["http.request.domain_lookup_end",T(e.domainLookupEnd)],["http.request.connect_start",T(e.connectStart)],["http.request.secure_connection_start",T(e.secureConnectionStart)],["http.request.connection_end",T(e.connectEnd)],["http.request.request_start",T(e.requestStart)],["http.request.response_start",T(e.responseStart)],["http.request.response_end",T(e.responseEnd)]]})(n).forEach((t=>e.setAttribute(...t))),setTimeout(r)}}))}))}function T(e=0){return(((0,l.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3}function k(e,t){const r=(0,p.getLocationHref)();if(r){let n,o;try{n=new URL(e,r),o=new URL(r).origin}catch(e){return!1}const i=n.origin===o;return t?(0,d.stringMatchesSomePattern)(n.toString(),t)||i&&(0,d.stringMatchesSomePattern)(n.pathname,t):i}{const r=!!e.match(/^\/(?!\/)/);return t?(0,d.stringMatchesSomePattern)(e,t):r}}function C(e,t,r,o){const i=e.xhr,s=i?.[n.SENTRY_XHR_DATA_KEY];if(!i||i.__sentry_own_request__||!s)return;const{url:a,method:l}=s,p=(0,f.hasSpansEnabled)()&&t(a);if(e.endTimestamp&&p){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=o[e];return void(t&&void 0!==s.status_code&&((0,h.setHttpStatus)(t,s.status_code),t.end(),delete o[e]))}const d=x(a),b=d?(0,c.parseUrl)(d):(0,c.parseUrl)(a),_=(0,c.stripUrlQueryAndFragment)(a),E=!!(0,u.getActiveSpan)(),w=p&&E?(0,m.startInactiveSpan)({name:`${l} ${_}`,attributes:{url:a,type:"xhr","http.method":l,"http.url":d,"server.address":b?.host,[y.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[y.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...b?.search&&{"http.query":b?.search},...b?.hash&&{"http.fragment":b?.hash}}}):new g.SentryNonRecordingSpan;i.__sentry_xhr_span_id__=w.spanContext().spanId,o[i.__sentry_xhr_span_id__]=w,r(a)&&function(e,t){const{"sentry-trace":r,baggage:n}=(0,S.getTraceData)({span:t});r&&function(e,t,r){try{e.setRequestHeader("sentry-trace",t),r&&e.setRequestHeader("baggage",r)}catch(e){}}(e,r,n)}(i,(0,f.hasSpansEnabled)()&&E?w:void 0);const I=(0,v.getClient)();return I&&I.emit("beforeOutgoingRequestSpan",w,e),w}function x(e){try{return new URL(e,b.WINDOW.location.origin).href}catch{return}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{instrumentFetchRequest:()=>h});var n=r(199),o=r(231),i=r(210),s=r(233),a=r(234),c=r(232),u=r(314),l=r(235),p=r(315),d=r(265),f=r(321);function h(e,t,r,c,h="auto.http.browser"){if(!e.fetchData)return;const{method:y,url:g}=e.fetchData,v=(0,s.hasSpansEnabled)()&&t(g);if(e.endTimestamp&&v){const t=e.fetchData.__span;if(!t)return;const r=c[t];return void(r&&(!function(e,t){if(t.response){(0,l.setHttpStatus)(e,t.response.status);const r=t.response?.headers&&t.response.headers.get("content-length");if(r){const t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:l.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),delete c[t]))}const S=function(e){try{return new URL(e).href}catch{return}}(g),b=S?(0,d.parseUrl)(S):(0,d.parseUrl)(g),_=!!(0,a.getActiveSpan)(),E=v&&_?(0,p.startInactiveSpan)({name:`${y} ${(0,d.stripUrlQueryAndFragment)(g)}`,attributes:{url:g,type:"fetch","http.method":y,"http.url":S,"server.address":b?.host,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:h,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...b?.search&&{"http.query":b?.search},...b?.hash&&{"http.fragment":b?.hash}}}):new u.SentryNonRecordingSpan;if(e.fetchData.__span=E.spanContext().spanId,c[E.spanContext().spanId]=E,r(e.fetchData.url)){const t=e.args[0],r=e.args[1]||{},n=function(e,t,r){const n=(0,f.getTraceData)({span:r}),o=n["sentry-trace"],s=n.baggage;if(!o)return;const a=t.headers||(function(e){return"undefined"!=typeof Request&&(0,i.isInstanceOf)(e,Request)}(e)?e.headers:void 0);if(a){if(function(e){return"undefined"!=typeof Headers&&(0,i.isInstanceOf)(e,Headers)}(a)){const e=new Headers(a);if(e.set("sentry-trace",o),s){const t=e.get("baggage");if(t){const r=m(t);e.set("baggage",r?`${r},${s}`:s)}else e.set("baggage",s)}return e}if(Array.isArray(a)){const e=[...a.filter((e=>!(Array.isArray(e)&&"sentry-trace"===e[0]))).map((e=>{if(Array.isArray(e)&&"baggage"===e[0]&&"string"==typeof e[1]){const[t,r,...n]=e;return[t,m(r),...n]}return e})),["sentry-trace",o]];return s&&e.push(["baggage",s]),e}{const e="baggage"in a?a.baggage:void 0;let t=[];return Array.isArray(e)?t=e.map((e=>"string"==typeof e?m(e):e)).filter((e=>""===e)):e&&t.push(m(e)),s&&t.push(s),{...a,"sentry-trace":o,baggage:t.length>0?t.join(","):void 0}}}return{...n}}(t,r,(0,s.hasSpansEnabled)()&&_?E:void 0);n&&(e.args[1]=r,r.headers=n)}const w=(0,n.getClient)();if(w){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};w.emit("beforeOutgoingRequestSpan",E,t)}return E}function m(e){return e.split(",").filter((e=>!e.split("=")[0].startsWith(c.SENTRY_BAGGAGE_KEY_PREFIX))).join(",")}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{SentryNonRecordingSpan:()=>i});var n=r(216),o=r(234);class i{constructor(e={}){this._traceId=e.traceId||(0,n.generateTraceId)(),this._spanId=e.spanId||(0,n.generateSpanId)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:o.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{continueTrace:()=>k,startInactiveSpan:()=>T,startNewTrace:()=>R,startSpan:()=>I,startSpanManual:()=>A,suppressTracing:()=>x,withActiveSpan:()=>C});var n=r(201),o=r(199),i=r(200),s=r(224),a=r(231),c=r(212),u=r(216),l=r(237),p=r(316),d=r(233),f=r(238),h=r(218),m=r(234),y=r(230),g=r(317),v=r(318),S=r(314),b=r(319),_=r(235),E=r(236);const w="__SENTRY_SUPPRESS_TRACING__";function I(e,t){const r=D();if(r.startSpan)return r.startSpan(e,t);const n=P(e),{forceTransaction:i,parentSpan:s,scope:a}=e,c=a?.clone();return(0,o.withScope)(c,(()=>L(s)((()=>{const r=(0,o.getCurrentScope)(),s=M(r),a=e.onlyIfParent&&!s?new S.SentryNonRecordingSpan:O({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return(0,h._setSpanForScope)(r,a),(0,p.handleCallbackErrors)((()=>t(a)),(()=>{const{status:e}=(0,m.spanToJSON)(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})}),(()=>{a.end()}))}))))}function A(e,t){const r=D();if(r.startSpanManual)return r.startSpanManual(e,t);const n=P(e),{forceTransaction:i,parentSpan:s,scope:a}=e,c=a?.clone();return(0,o.withScope)(c,(()=>L(s)((()=>{const r=(0,o.getCurrentScope)(),s=M(r),a=e.onlyIfParent&&!s?new S.SentryNonRecordingSpan:O({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return(0,h._setSpanForScope)(r,a),(0,p.handleCallbackErrors)((()=>t(a,(()=>a.end()))),(()=>{const{status:e}=(0,m.spanToJSON)(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})}))}))))}function T(e){const t=D();if(t.startInactiveSpan)return t.startInactiveSpan(e);const r=P(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,o.withScope)(e.scope,t):void 0!==i?e=>C(i,e):e=>e())((()=>{const t=(0,o.getCurrentScope)(),i=M(t);return e.onlyIfParent&&!i?new S.SentryNonRecordingSpan:O({parentSpan:i,spanArguments:r,forceTransaction:n,scope:t})}))}const k=(e,t)=>{const r=(0,n.getMainCarrier)(),s=(0,i.getAsyncContextStrategy)(r);if(s.continueTrace)return s.continueTrace(e,t);const{sentryTrace:a,baggage:c}=e;return(0,o.withScope)((e=>{const r=(0,l.propagationContextFromHeaders)(a,c);return e.setPropagationContext(r),t()}))};function C(e,t){const r=D();return r.withActiveSpan?r.withActiveSpan(e,t):(0,o.withScope)((r=>((0,h._setSpanForScope)(r,e||void 0),t(r))))}function x(e){const t=D();return t.suppressTracing?t.suppressTracing(e):(0,o.withScope)((t=>(t.setSDKProcessingMetadata({[w]:!0}),e())))}function R(e){return(0,o.withScope)((t=>(t.setPropagationContext({traceId:(0,u.generateTraceId)(),sampleRand:Math.random()}),s.DEBUG_BUILD&&c.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),C(null,e))))}function O({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){if(!(0,d.hasSpansEnabled)()){const n=new S.SentryNonRecordingSpan;if(r||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,y.getDynamicSamplingContextFromSpan)(n)};(0,y.freezeDscOnSpan)(n,e)}return n}const i=(0,o.getIsolationScope)();let s;if(e&&!r)s=function(e,t,r){const{spanId:n,traceId:i}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[w]&&(0,m.spanIsSampled)(e),a=s?new b.SentrySpan({...r,parentSpanId:n,traceId:i,sampled:s}):new S.SentryNonRecordingSpan({traceId:i});(0,m.addChildSpanToSpan)(e,a);const c=(0,o.getClient)();c&&(c.emit("spanStart",a),r.endTimestamp&&c.emit("spanEnd",a));return a}(e,n,t),(0,m.addChildSpanToSpan)(e,s);else if(e){const r=(0,y.getDynamicSamplingContextFromSpan)(e),{traceId:o,spanId:i}=e.spanContext(),a=(0,m.spanIsSampled)(e);s=N({traceId:o,parentSpanId:i,...t},n,a),(0,y.freezeDscOnSpan)(s,r)}else{const{traceId:e,dsc:r,parentSpanId:o,sampled:a}={...i.getPropagationContext(),...n.getPropagationContext()};s=N({traceId:e,parentSpanId:o,...t},n,a),r&&(0,y.freezeDscOnSpan)(s,r)}return(0,g.logSpanStart)(s),(0,E.setCapturedScopesOnSpan)(s,n,i),s}function P(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...t};return r.startTimestamp=(0,m.spanTimeInputToSeconds)(e.startTime),delete r.startTime,r}return t}function D(){const e=(0,n.getMainCarrier)();return(0,i.getAsyncContextStrategy)(e)}function N(e,t,r){const n=(0,o.getClient)(),i=n?.getOptions()||{},{name:u="",attributes:l}=e,p=t.getPropagationContext(),[d,h,m]=t.getScopeData().sdkProcessingMetadata[w]?[!1]:(0,v.sampleSpan)(i,{name:u,parentSampled:r,attributes:l,parentSampleRate:(0,f.parseSampleRate)(p.dsc?.sample_rate)},p.sampleRand),y=new b.SentrySpan({...e,attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==h&&m?h:void 0,...e.attributes},sampled:d});return!d&&n&&(s.DEBUG_BUILD&&c.logger.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",y),y}function M(e){const t=(0,h._getSpanForScope)(e);if(!t)return;const r=(0,o.getClient)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,m.getRootSpan)(t):t}function L(e){return void 0!==e?t=>C(e,t):e=>e()}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{handleCallbackErrors:()=>o});var n=r(210);function o(e,t,r=()=>{}){let o;try{o=e()}catch(e){throw t(e),r(),e}return function(e,t,r){if((0,n.isThenable)(e))return e.then((e=>(r(),e)),(e=>{throw t(e),r(),e}));return r(),e}(o,t,r)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{logSpanEnd:()=>a,logSpanStart:()=>s});var n=r(224),o=r(212),i=r(234);function s(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:s}=(0,i.spanToJSON)(e),{spanId:a}=e.spanContext(),c=(0,i.spanIsSampled)(e),u=(0,i.getRootSpan)(e),l=u===e,p=`[Tracing] Starting ${c?"sampled":"unsampled"} ${l?"root ":""}span`,d=[`op: ${r}`,`name: ${t}`,`ID: ${a}`];if(s&&d.push(`parent ID: ${s}`),!l){const{op:e,description:t}=(0,i.spanToJSON)(u);d.push(`root ID: ${u.spanContext().spanId}`),e&&d.push(`root op: ${e}`),t&&d.push(`root description: ${t}`)}o.logger.log(`${p}\n ${d.join("\n ")}`)}function a(e){if(!n.DEBUG_BUILD)return;const{description:t="< unknown name >",op:r="< unknown op >"}=(0,i.spanToJSON)(e),{spanId:s}=e.spanContext(),a=`[Tracing] Finishing "${r}" ${(0,i.getRootSpan)(e)===e?"root ":""}span "${t}" with ID ${s}`;o.logger.log(a)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{sampleSpan:()=>a});var n=r(224),o=r(212),i=r(233),s=r(238);function a(e,t,r){if(!(0,i.hasSpansEnabled)(e))return[!1];let a,c;"function"==typeof e.tracesSampler?(c=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),a=!0):void 0!==t.parentSampled?c=t.parentSampled:void 0!==e.tracesSampleRate&&(c=e.tracesSampleRate,a=!0);const u=(0,s.parseSampleRate)(c);if(void 0===u)return n.DEBUG_BUILD&&o.logger.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(c)} of type ${JSON.stringify(typeof c)}.`),[!1];if(!u)return n.DEBUG_BUILD&&o.logger.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,u,a];const l=r{"use strict";r.r(t),r.d(t,{SentrySpan:()=>y});var n=r(199),o=r(224),i=r(242),s=r(231),a=r(212),c=r(208),u=r(216),l=r(214),p=r(234),d=r(230),f=r(317),h=r(320),m=r(236);class y{constructor(e={}){this._traceId=e.traceId||(0,u.generateTraceId)(),this._spanId=e.spanId||(0,u.generateSpanId)(),this._startTime=e.startTimestamp||(0,l.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?p.TRACE_FLAG_SAMPLED:p.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=(0,p.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,p.spanTimeInputToSeconds)(e),(0,f.logSpanEnd)(this),this._onSpanEnded())}getSpanJSON(){return(0,c.dropUndefinedKeys)({data:this._attributes,description:this._name,op:this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,p.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[s.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[s.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:(0,h.timedEventsToMeasurements)(this._events),is_segment:this._isStandaloneSpan&&(0,p.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,p.getRootSpan)(this).spanContext().spanId:void 0,links:(0,p.convertSpanLinksForEnvelope)(this._links)})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){o.DEBUG_BUILD&&a.logger.log("[Tracing] Adding an event to span:",e);const n=g(t)?t:r||(0,l.timestampInSeconds)(),i=g(t)?{}:t||{},s={name:e,time:(0,p.spanTimeInputToSeconds)(n),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,n.getClient)();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===(0,p.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,n.getClient)();if(!t)return;const r=e[1];if(!r||0===r.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,i.createSpanEnvelope)([this],e)):(o.DEBUG_BUILD&&a.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){((0,m.getCapturedScopesOnSpan)(this).scope||(0,n.getCurrentScope)()).captureEvent(t)}}_convertSpanToTransaction(){if(!v((0,p.spanToJSON)(this)))return;this._name||(o.DEBUG_BUILD&&a.logger.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=(0,m.getCapturedScopesOnSpan)(this);if(!0!==this._sampled)return;const r=(0,p.getSpanDescendants)(this).filter((e=>e!==this&&!function(e){return e instanceof y&&e.isStandaloneSpan()}(e))).map((e=>(0,p.spanToJSON)(e))).filter(v),n=this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],r.forEach((e=>{delete e.data[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]}));const i={contexts:{trace:(0,p.spanToTransactionTraceContext)(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,c.dropUndefinedKeys)({dynamicSamplingContext:(0,d.getDynamicSamplingContextFromSpan)(this)})},...n&&{transaction_info:{source:n}}},u=(0,h.timedEventsToMeasurements)(this._events);return u&&Object.keys(u).length&&(o.DEBUG_BUILD&&a.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),i.measurements=u),i}}function g(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function v(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{setMeasurement:()=>a,timedEventsToMeasurements:()=>c});var n=r(224),o=r(231),i=r(212),s=r(234);function a(e,t,r,a=(0,s.getActiveSpan)()){const c=a&&(0,s.getRootSpan)(a);c&&(n.DEBUG_BUILD&&i.logger.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),c.addEvent(e,{[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))}function c(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const r=e.attributes||{},n=r[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=r[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})})),t}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{getTraceData:()=>d});var n=r(200),o=r(201),i=r(199),s=r(223),a=r(212),c=r(234),u=r(230),l=r(237),p=r(232);function d(e={}){const t=(0,i.getClient)();if(!(0,s.isEnabled)()||!t)return{};const r=(0,o.getMainCarrier)(),d=(0,n.getAsyncContextStrategy)(r);if(d.getTraceData)return d.getTraceData(e);const f=(0,i.getCurrentScope)(),h=e.span||(0,c.getActiveSpan)(),m=h?(0,c.spanToTraceHeader)(h):function(e){const{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,l.generateSentryTraceHeader)(t,n,r)}(f),y=h?(0,u.getDynamicSamplingContextFromSpan)(h):(0,u.getDynamicSamplingContextFromScope)(t,f),g=(0,p.dynamicSamplingContextToSentryBaggageHeader)(y);return l.TRACEPARENT_REGEXP.test(m)?{"sentry-trace":m,baggage:g}:(a.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{extractNetworkProtocol:()=>d,getBrowserPerformanceAPI:()=>l,isMeasurementValue:()=>a,msToSec:()=>p,startAndEndSpan:()=>c,startStandaloneWebVitalSpan:()=>u});var n=r(234),o=r(315),i=r(199),s=r(257);function a(e){return"number"==typeof e&&isFinite(e)}function c(e,t,r,{...i}){const s=(0,n.spanToJSON)(e).start_timestamp;return s&&s>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,o.withActiveSpan)(e,(()=>{const e=(0,o.startInactiveSpan)({startTime:t,...i});return e&&e.end(r),e}))}function u(e){const t=(0,i.getClient)();if(!t)return;const{name:r,transaction:n,attributes:a,startTime:c}=e,{release:u,environment:l,sendDefaultPii:p}=t.getOptions(),d=t.getIntegrationByName("Replay"),f=d?.getReplayId(),h=(0,i.getCurrentScope)(),m=h.getUser(),y=void 0!==m?m.email||m.id||m.ip_address:void 0;let g;try{g=h.getScopeData().contexts.profile.profile_id}catch{}const v={release:u,environment:l,user:y||void 0,profile_id:g||void 0,replay_id:f||void 0,transaction:n,"user_agent.original":s.WINDOW.navigator?.userAgent,"client.address":p?"{{auto}}":void 0,...a};return(0,o.startInactiveSpan)({name:r,attributes:v,startTime:c,experimental:{standalone:!0}})}function l(){return s.WINDOW.addEventListener&&s.WINDOW.performance}function p(e){return e/1e3}function d(e){let t="unknown",r="unknown",n="";for(const o of e){if("/"===o){[t,r]=e.split("/");break}if(!isNaN(Number(o))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=o}return n===e&&(t=n),{name:t,version:r}}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{TRACING_DEFAULTS:()=>m,startIdleSpan:()=>b});var n=r(199),o=r(224),i=r(231),s=r(212),a=r(214),c=r(233),u=r(218),l=r(234),p=r(230),d=r(314),f=r(235),h=r(315);const m={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},y="heartbeatFailed",g="idleTimeout",v="finalTimeout",S="externalFinish";function b(e,t={}){const r=new Map;let b,_=!1,E=S,w=!t.disableAutoFinish;const I=[],{idleTimeout:A=m.idleTimeout,finalTimeout:T=m.finalTimeout,childSpanTimeout:k=m.childSpanTimeout,beforeSpanEnd:C}=t,x=(0,n.getClient)();if(!x||!(0,c.hasSpansEnabled)()){const e=new d.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...(0,p.getDynamicSamplingContextFromSpan)(e)};return(0,p.freezeDscOnSpan)(e,t),e}const R=(0,n.getCurrentScope)(),O=(0,l.getActiveSpan)(),P=function(e){const t=(0,h.startInactiveSpan)(e);return(0,u._setSpanForScope)((0,n.getCurrentScope)(),t),o.DEBUG_BUILD&&s.logger.log("[Tracing] Started span is an idle span"),t}(e);function D(){b&&(clearTimeout(b),b=void 0)}function N(e){D(),b=setTimeout((()=>{!_&&0===r.size&&w&&(E=g,P.end(e))}),A)}function M(e){b=setTimeout((()=>{!_&&w&&(E=y,P.end(e))}),k)}function L(e){_=!0,r.clear(),I.forEach((e=>e())),(0,u._setSpanForScope)(R,O);const t=(0,l.spanToJSON)(P),{start_timestamp:n}=t;if(!n)return;t.data[i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||P.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,E),s.logger.log(`[Tracing] Idle span "${t.op}" finished`);const a=(0,l.getSpanDescendants)(P).filter((e=>e!==P));let c=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:f.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),o.DEBUG_BUILD&&s.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const r=(0,l.spanToJSON)(t),{timestamp:n=0,start_timestamp:i=0}=r,a=i<=e,u=n-i<=(T+A)/1e3;if(o.DEBUG_BUILD){const e=JSON.stringify(t,void 0,2);a?u||s.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",e):s.logger.log("[Tracing] Discarding span since it happened after idle span was finished",e)}u&&a||((0,l.removeChildSpanFromSpan)(P,t),c++)})),c>0&&P.setAttribute("sentry.idle_span_discarded_spans",c)}return P.end=new Proxy(P.end,{apply(e,t,r){if(C&&C(P),t instanceof d.SentryNonRecordingSpan)return;const[n,...o]=r,i=n||(0,a.timestampInSeconds)(),s=(0,l.spanTimeInputToSeconds)(i),c=(0,l.getSpanDescendants)(P).filter((e=>e!==P));if(!c.length)return L(s),Reflect.apply(e,t,[s,...o]);const u=c.map((e=>(0,l.spanToJSON)(e).timestamp)).filter((e=>!!e)),p=u.length?Math.max(...u):void 0,f=(0,l.spanToJSON)(P).start_timestamp,h=Math.min(f?f+T/1e3:1/0,Math.max(f||-1/0,Math.min(s,p||1/0)));return L(h),Reflect.apply(e,t,[h,...o])}}),I.push(x.on("spanStart",(e=>{if(_||e===P||(0,l.spanToJSON)(e).timestamp)return;var t;(0,l.getSpanDescendants)(P).includes(e)&&(t=e.spanContext().spanId,D(),r.set(t,!0),M((0,a.timestampInSeconds)()+k/1e3))}))),I.push(x.on("spanEnd",(e=>{var t;_||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&N((0,a.timestampInSeconds)()+A/1e3))}))),I.push(x.on("idleSpanEnableAutoFinish",(e=>{e===P&&(w=!0,N(),r.size&&M())}))),t.disableAutoFinish||N(),setTimeout((()=>{_||(P.setStatus({code:f.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),E=v,P.end())}),T),P}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerSpanErrorInstrumentation:()=>l});var n=r(224),o=r(269),i=r(270),s=r(212),a=r(234),c=r(235);let u=!1;function l(){u||(u=!0,(0,o.addGlobalErrorInstrumentationHandler)(p),(0,i.addGlobalUnhandledRejectionInstrumentationHandler)(p))}function p(){const e=(0,a.getActiveSpan)(),t=e&&(0,a.getRootSpan)(e);if(t){const e="internal_error";n.DEBUG_BUILD&&s.logger.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:c.SPAN_STATUS_ERROR,message:e})}}p.tag="sentry_tracingErrorCallback"},(e,t,r)=>{"use strict";r.r(t),r.d(t,{_addMeasureSpans:()=>T,_addResourceSpans:()=>C,addPerformanceEntries:()=>A,startTrackingInteractions:()=>I,startTrackingLongAnimationFrames:()=>w,startTrackingLongTasks:()=>E,startTrackingWebVitals:()=>_});var n=r(214),o=r(234),i=r(231),s=r(209),a=r(320),c=r(265),u=r(257),l=r(326),p=r(286),d=r(322),f=r(291),h=r(292),m=r(297);const y=2147483647;let g,v,S=0,b={};function _({recordClsStandaloneSpans:e}){const t=(0,d.getBrowserPerformanceAPI)();if(t&&(0,n.browserPerformanceTimeOrigin)()){t.mark&&u.WINDOW.performance.mark("sentry-tracing-init");const r=(0,p.addFidInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const r=(0,d.msToSec)((0,n.browserPerformanceTimeOrigin)()),o=(0,d.msToSec)(t.startTime);b.fid={value:e.value,unit:"millisecond"},b["mark.fid"]={value:r+o,unit:"second"}})),o=(0,p.addLcpInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(b.lcp={value:e.value,unit:"millisecond"},g=t)}),!0),i=(0,p.addTtfbInstrumentationHandler)((({metric:e})=>{e.entries[e.entries.length-1]&&(b.ttfb={value:e.value,unit:"millisecond"})})),s=e?(0,l.trackClsAsStandaloneSpan)():(0,p.addClsInstrumentationHandler)((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(b.cls={value:e.value,unit:""},v=t)}),!0);return()=>{r(),o(),i(),s?.()}}return()=>{}}function E(){(0,p.addPerformanceInstrumentationHandler)("longtask",(({entries:e})=>{const t=(0,o.getActiveSpan)();if(!t)return;const{op:r,start_timestamp:s}=(0,o.spanToJSON)(t);for(const o of e){const e=(0,d.msToSec)((0,n.browserPerformanceTimeOrigin)()+o.startTime),a=(0,d.msToSec)(o.duration);"navigation"===r&&s&&e{const t=(0,o.getActiveSpan)();if(t)for(const r of e.getEntries()){if(!r.scripts[0])continue;const e=(0,d.msToSec)((0,n.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:s,op:a}=(0,o.spanToJSON)(t);if("navigation"===a&&s&&e{const t=(0,o.getActiveSpan)();if(t)for(const r of e)if("click"===r.name){const e=(0,d.msToSec)((0,n.browserPerformanceTimeOrigin)()+r.startTime),o=(0,d.msToSec)(r.duration),a={name:(0,s.htmlTreeAsString)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},c=(0,s.getComponentName)(r.target);c&&(a.attributes["ui.component_name"]=c),(0,d.startAndEndSpan)(t,e,e+o,a)}}))}function A(e,t){const r=(0,d.getBrowserPerformanceAPI)(),c=(0,n.browserPerformanceTimeOrigin)();if(!r?.getEntries||!c)return;const l=(0,d.msToSec)(c),p=r.getEntries(),{op:y,start_timestamp:_}=(0,o.spanToJSON)(e);if(p.slice(S).forEach((t=>{const r=(0,d.msToSec)(t.startTime),n=(0,d.msToSec)(Math.max(0,t.duration));if(!("navigation"===y&&_&&l+r<_))switch(t.entryType){case"navigation":!function(e,t,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{k(e,t,n,r)})),k(e,t,"secureConnection",r,"TLS/SSL"),k(e,t,"fetch",r,"cache"),k(e,t,"domainLookup",r,"DNS"),function(e,t,r){const n=r+(0,d.msToSec)(t.requestStart),o=r+(0,d.msToSec)(t.responseEnd),s=r+(0,d.msToSec)(t.responseStart);t.responseEnd&&((0,d.startAndEndSpan)(e,n,o,{op:"browser.request",name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),(0,d.startAndEndSpan)(e,s,o,{op:"browser.response",name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,r)}(e,t,l);break;case"mark":case"paint":case"measure":{T(e,t,r,n,l);const o=(0,m.getVisibilityWatcher)(),i=t.startTime{(0,a.setMeasurement)(e,t.value,t.unit)})),e.setAttribute("performance.timeOrigin",l),e.setAttribute("performance.activationStart",(0,f.getActivationStart)()),function(e){g&&(g.element&&e.setAttribute("lcp.element",(0,s.htmlTreeAsString)(g.element)),g.id&&e.setAttribute("lcp.id",g.id),g.url&&e.setAttribute("lcp.url",g.url.trim().slice(0,200)),null!=g.loadTime&&e.setAttribute("lcp.loadTime",g.loadTime),null!=g.renderTime&&e.setAttribute("lcp.renderTime",g.renderTime),e.setAttribute("lcp.size",g.size));v?.sources&&v.sources.forEach(((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,s.htmlTreeAsString)(t.node))))}(e)}g=void 0,v=void 0,b={}}function T(e,t,r,n,o){const s=(0,h.getNavigationEntry)(!1),a=(0,d.msToSec)(s?s.requestStart:0),c=o+Math.max(r,a),u=o+r,l=u+n,p={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};c!==u&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=c),c<=l&&(0,d.startAndEndSpan)(e,c,l,{name:t.name,op:t.entryType,attributes:p})}function k(e,t,r,n,o=r){const s=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(r),a=t[s],c=t[`${r}Start`];c&&a&&(0,d.startAndEndSpan)(e,n+(0,d.msToSec)(c),n+(0,d.msToSec)(a),{op:`browser.${o}`,name:t.name,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}function C(e,t,r,n,o,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=(0,c.parseUrl)(r),l={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};x(l,t,"transferSize","http.response_transfer_size"),x(l,t,"encodedBodySize","http.response_content_length"),x(l,t,"decodedBodySize","http.decoded_response_content_length");const p=t.deliveryType;null!=p&&(l["http.response_delivery_type"]=p);const f=t.renderBlockingStatus;f&&(l["resource.render_blocking_status"]=f),a.protocol&&(l["url.scheme"]=a.protocol.split(":").pop()),a.host&&(l["server.address"]=a.host),l["url.same_origin"]=r.includes(u.WINDOW.location.origin);const{name:h,version:m}=(0,d.extractNetworkProtocol)(t.nextHopProtocol);l["network.protocol.name"]=h,l["network.protocol.version"]=m;const y=s+n,g=y+o;(0,d.startAndEndSpan)(e,y,g,{name:r.replace(u.WINDOW.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:l})}function x(e,t,r,n){const o=t[r];null!=o&&o{"use strict";r.r(t),r.d(t,{trackClsAsStandaloneSpan:()=>h});var n=r(199),o=r(234),i=r(212),s=r(214),a=r(209),c=r(208),u=r(231),l=r(277),p=r(286),d=r(322),f=r(294);function h(){let e,t,r=0;if(!function(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}())return;let h=!1;function m(){h||(h=!0,t&&function(e,t,r){l.DEBUG_BUILD&&i.logger.log(`Sending CLS span (${e})`);const o=(0,d.msToSec)(((0,s.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),p=(0,n.getCurrentScope)().getScopeData().transactionName,f=t?(0,a.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",h=(0,c.dropUndefinedKeys)({[u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[u.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[u.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t?.duration||0,"sentry.pageload.span_id":r}),m=(0,d.startStandaloneWebVitalSpan)({name:f,transaction:p,attributes:h,startTime:o});m&&(m.addEvent("cls",{[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[u.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),m.end(o))}(r,e,t),y())}const y=(0,p.addClsInstrumentationHandler)((({metric:t})=>{const n=t.entries[t.entries.length-1];n&&(r=t.value,e=n)}),!0);(0,f.onHidden)((()=>{m()})),setTimeout((()=>{const e=(0,n.getClient)();if(!e)return;const r=e.on("startNavigationSpan",(()=>{m(),r?.()})),i=(0,o.getActiveSpan)();if(i){const e=(0,o.getRootSpan)(i);"pageload"===(0,o.spanToJSON)(e).op&&(t=e.spanContext().spanId)}}),0)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{registerInpInteractionListener:()=>m,startTrackingINP:()=>f});var n=r(214),o=r(234),i=r(199),s=r(209),a=r(208),c=r(231),u=r(286),l=r(322);const p=[],d=new Map;function f(){if((0,l.getBrowserPerformanceAPI)()&&(0,n.browserPerformanceTimeOrigin)()){const e=(0,u.addInpInstrumentationHandler)((({metric:e})=>{if(null==e.value)return;const t=e.entries.find((t=>t.duration===e.value&&h[t.name]));if(!t)return;const{interactionId:r}=t,u=h[t.name],p=(0,l.msToSec)((0,n.browserPerformanceTimeOrigin)()+t.startTime),f=(0,l.msToSec)(e.value),m=(0,o.getActiveSpan)(),y=m?(0,o.getRootSpan)(m):void 0,g=(null!=r?d.get(r):void 0)||y,v=g?(0,o.spanToJSON)(g).description:(0,i.getCurrentScope)().getScopeData().transactionName,S=(0,s.htmlTreeAsString)(t.target),b=(0,a.dropUndefinedKeys)({[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${u}`,[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration}),_=(0,l.startStandaloneWebVitalSpan)({name:S,transaction:v,attributes:b,startTime:p});_&&(_.addEvent("inp",{[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[c.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),_.end(p+f))}));return()=>{e()}}return()=>{}}const h={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function m(){const e=({entries:e})=>{const t=(0,o.getActiveSpan)(),r=t&&(0,o.getRootSpan)(t);e.forEach((e=>{if(!(0,u.isPerformanceEventTiming)(e)||!r)return;const t=e.interactionId;if(null!=t&&!d.has(t)){if(p.length>10){const e=p.shift();d.delete(e)}p.push(t),d.set(t,r)}}))};(0,u.addPerformanceInstrumentationHandler)("event",e),(0,u.addPerformanceInstrumentationHandler)("first-input",e)}},(e,t,r)=>{"use strict";r.r(t),r.d(t,{excludeGraphQLFetch:()=>n,withoutGraphQLFetch:()=>o});const n=e=>{if("fetch"===e.category){if((e.data?.url??"").includes("/graphql"))return null}return e};function o(e){return(t,r)=>{const o=n(t,r);return null===o?null:e(o,r)}}},e=>{"use strict";e.exports=JSON.parse('{"App":{"title":"Repair Kit","rebootServerSuccess":"Server was restarted successefully.","diskCleanUpSuccess":"Plesk freed up %%size%% of disk space.","diskCleanUpNothing":"Plesk could not free up any disk space. We recommend connecting to the server via SSH or RDP and cleaning up some disk space manually.","memoryCleanUpSuccess":"Plesk freed up %%size%% of RAM. If you continue experiencing issues caused by a lack of memory, we recommend stopping some non-essential processes or adding more RAM to the server.","memoryCleanUpNothing":"Plesk could not free up any RAM. We recommend stopping some non-essential processes or adding more RAM to the server.","restartServiceSuccess":"Plesk has restarted %%serviceName%% service it needs to operate. Try logging in now. If any services stop or become unresponsive again, try troubleshooting the issue or contact support."},"Overview":{"description":"Is Plesk unavailable? This may be caused by technical issues or by a shortage of resources, such as memory or disk space. You can try bringing Plesk back online by following the suggestions found on this page.","loginDescription":"If you believe you have resolved the issues, you can try logging in to Plesk.","loginButton":"Log In to Plesk","helpCenterDescription":"Could not resolve the issue on your own? Visit our %%link%%.","helpCenter":"Help Center","terminalDescription":"You can use %%link%% to resolve the issue","terminalLink":"the SSH terminal"},"RestartServer":{"description":"Sometimes, restarting the server is enough to bring things back to normal.","button":"Restart the Server","dialogText":"Note that after you restart the server, both Plesk and hosted websites will become unavailable for a short time. Keep refreshing the page until you see the Plesk login page."},"Disk":{"title":"Disk Space","description":"Both Plesk and Plesk services need sufficient disk space to operate properly. If you have run out of free disk space on the disk where Plesk is installed, try freeing some up.","loadingError":"Can not retrieve information about disks usage:","volume":"Disk","volumeFormat":"%%name%% on %%mount_point%%","directories":"Important directories","free":"Free disk space","recommend":"Plesk can try freeing up some disk space by removing temporary files.","recommend2":"If you are permanently experiencing issues with insufficient disk space, consider %%limitingBackupsLink%% on the server. You can also use the %%duExtensionLink%% extension by Plesk to get the detailed analysis of disk space usage.","limitingBackups":"limiting the number of full backups","duExtension":"Diskspace Usage Viewer","cleanUp":"Free Up Disk Space"},"Memory":{"title":"RAM","description":"Hosted websites consume memory. Plesk can malfunction if there is not enough memory for it to operate. You can try freeing up some memory by resetting active connections to hosted websites. If this does not help, we suggest logging in to the server via SSH or RDP and investigating which processes consume the most memory.","loadingError":"Can not retrieve information about memory usage:","free":"Available","recommend":"Plesk can try freeing up some memory by restarting the web server processes.","cleanUp":"Free Up Memory"},"Services":{"PleskSQLServer.title":"MariaDB/MySQL server","PleskSQLServer.description":"Plesk can operate properly only if database server service is running without issues.","SwEngine.title":"Plesk service","SwEngine.description":"Plesk can operate properly only if Plesk service is running without issues.","name":"Service","status":"Status","responding":"Responding","notResponding":"Not Responding","PleskSQLServer.fix":"Restart","SwEngine.fix":"Restart","InnoDB.fix":"Repair","InnoDB.check":"Check","InnoDB.name":"InnoDB files","MysqlFilesPermissions.fix":"Repair","MysqlFilesPermissions.check":"Check","MysqlFilesPermissions.name":"File permissions"},"ServiceStatus":{"PleskSQLServer":{"invalid":"Invalid","disabled":"Disabled","starting":"Starting","running":"Running","stopping":"Stopping","stopped":"Stopped","pausing":"Pausing","paused":"Paused","continuing":"Continuing"},"SwEngine":{"invalid":"Invalid","disabled":"Disabled","starting":"Starting","running":"Running","stopping":"Stopping","stopped":"Stopped","pausing":"Pausing","paused":"Paused","continuing":"Continuing"},"InnoDB":{"ok":"No corrupted tablespace files","corrupted":"Corrupted tablespace files","failed":"Something went wrong","error":"Something went wrong","inactive":"Not checked yet"},"MysqlFilesPermissions":{"ok":"No issues detected","corrupted":"Incorrect permissions detected","failed":"Something went wrong","error":"Something went wrong","inactive":"Not checked yet"}},"Available":{"format":"%%percent%% (%%free%% of %%total%% total)"},"Bytes":{"suffix":"B","kilo":"K","mega":"M","giga":"G","tera":"T"},"SubmitPopover":{"checkDescription":"InnoDB tablespace files check operation requires time to execute. During this time MariaDB/MySQL server will be stopped and websites that rely on it will not be available.","repairList":"Automatic repair of corrupted InnoDB tablespace files:","repairListOption1":"Consumes disk space because Plesk attempts to back up the data.","repairListOption2":"May cause data loss because corrupted databases are dropped before the repair attempt. If automatic repair fails, you may try to restore the data from the backup.","repairTroubleshootingArticleText":"You can also try to manually repair corrupted InnoDB tablespace files by following the steps from the %%troubleshootingArticle%%.","repairConfirmationText":"Continue automatic repair?","repairTroubleshootingArticle":"KB article","ok":"Continue","cancel":"Cancel"}}')}],t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0;var n={};(()=>{"use strict";r.r(n);var e=r(1),t=r(4),o=r(2);(0,e.createRoot)(document.getElementById("app")).render((0,o.jsx)(t.default,{}))})()})();
//# sourceMappingURL=app.js.map?06a8c869b14aa40626c2