PageSourceSearch

https://getamplifylife.com/_next/static/chunks/pages/_app-c49e7cdf2f80c4ce.js

js getamplifylife.com collected 2026-10-07 20:48:34 UTC 360,471 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{8417:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(i){}}else n.appendChild(document.createTextNode(e));this.ctr++}
vendor: 6,716 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function u(e,t,n){return e.slice(t,n)}function d(e){return e.length}function h(e,t){return t.push(e),e}var p=1,f=1,m=0,g=0,y=0,v="";function _(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:p,column:f,length:a,return:""}}function b(e,t){return a(_("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return y=g<m?c(v,g++):0,f++,10===y&&(f=1,p++),y}function w(){return c(v,g)}function x(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function k(e){return p=f=1,m=d(v=e),g=0,[]}function E(e){var t,n;return(t=g-1,n=function e(t){for(;S();)switch(y){case t:return g;case 34:case 39:34!==t&&39!==t&&e(y);break;case 40:41===t&&e(t);break;case 92:S()}return g}(91===e?e+2:40===e?e+1:e),u(v,t,n)).trim()}var T="-ms-",I="-moz-",C="-webkit-",R="comm",A="rule",O="decl",M="@keyframes";function N(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function D(e,t,n,r){switch(e.type){case"@import":case O:return e.return=e.return||e.value;case R:return"";case M:return e.return=e.value+"{"+N(e.children,r)+"}";case A:e.value=e.props.join(",")}return d(n=N(e.children,r))?e.return=e.value+"{"+n+"}":""}function P(e,t,n,r,o,a,l,c,d,h,p){for(var f=o-1,m=0===o?a:[""],g=m.length,y=0,v=0,b=0;y<r;++y)for(var S=0,w=u(e,f+1,f=i(v=l[y])),x=e;S<g;++S)(x=(v>0?m[S]+" "+w:s(w,/&\f/g,m[S])).trim())&&(d[b++]=x);return _(e,t,n,0===o?A:c,d,h,p)}function j(e,t,n,r){return _(e,t,n,O,u(e,0,r),u(e,r+1,-1),r)}var L=function(e,t,n){for(var r=0,i=0;r=i,i=w(),38===r&&12===i&&(t[n]=1),!x(i);)S();return u(v,e,g)},F=function(e,t){var n=-1,r=44;do switch(x(r)){case 0:38===r&&12===w()&&(t[n]=1),e[n]+=L(g-1,t,n);break;case 2:e[n]+=E(r);break;case 4:if(44===r){e[++n]=58===w()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=S());return e},U=function(e,t){var n;return n=F(k(e),t),v="",n},B=new WeakMap,H=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(n))&&!r){B.set(e,!0);for(var i=[],o=U(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},z=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},W=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case O:e.return=function e(t,n){switch(45^c(t,0)?(((n<<2^c(t,0))<<2^c(t,1))<<2^c(t,2))<<2^c(t,3):0){case 5103:return C+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return C+t+I+t+T+t+t;case 6828:case 4268:return C+t+T+t+t;case 6165:return C+t+T+"flex-"+t+t;case 5187:return C+t+s(t,/(\w+).+(:[^]+)/,C+"box-$1$2"+T+"flex-$1$2")+t;case 5443:return C+t+T+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return C+t+T+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return C+t+T+s(t,"shrink","negative")+t;case 5292:return C+t+T+s(t,"basis","preferred-size")+t;case 6060:return C+"box-"+s(t,"-grow","")+C+t+T+s(t,"grow","positive")+t;case 4554:return C+s(t,/([^-])(transform)/g,"$1"+C+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,C+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(c(t,n+1)){case 109:if(45!==c(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+I+(108==c(t,n+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==c(t,n+1))break;case 6444:switch(c(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+C)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(45===c(t,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+T+"$2box$3")+t}break;case 5936:switch(c(t,n+11)){case 114:return C+t+T+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return C+t+T+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return C+t+T+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return C+t+T+t+t}return t}(e.value,e.length);break;case M:return N([b(e,{value:s(e.value,"@","@"+C)})],r);case A:if(e.length)return e.props.map(function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return N([b(e,{props:[s(t,/:(read-\w+)/,":"+I+"$1")]})],r);case"::placeholder":return N([b(e,{props:[s(t,/:(plac\w+)/,":"+C+"input-$1")]}),b(e,{props:[s(t,/:(plac\w+)/,":"+I+"$1")]}),b(e,{props:[s(t,/:(plac\w+)/,T+"input-$1")]})],r)}return""}).join("")}}],$=function(e){var t,n,i,a,m,b=e.key;if("css"===b){var T=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(T,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var I=e.stylisPlugins||W,C={},A=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+b+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)C[t[n]]=!0;A.push(e)});var O=(n=(t=[H,z].concat(I,[D,(i=function(e){m.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),M=function(e){var t,n;return N((n=function e(t,n,r,i,a,m,b,k,T){for(var I,C=0,A=0,O=b,M=0,N=0,D=0,L=1,F=1,U=1,B=0,H="",z=a,W=m,$=i,Z=H;F;)switch(D=B,B=S()){case 40:if(108!=D&&58==c(Z,O-1)){-1!=l(Z+=s(E(B),"&","&\f"),"&\f")&&(U=-1);break}case 34:case 39:case 91:Z+=E(B);break;case 9:case 10:case 13:case 32:Z+=function(e){for(;y=w();)if(y<33)S();else break;return x(e)>2||x(y)>3?"":" "}(D);break;case 92:Z+=function(e,t){for(var n;--t&&S()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>
170)||!(y<97)););return n=g+(t<6&&32==w()&&32==S()),u(v,e,n)}(g-1,7);continue;case 47:switch(w()){case 42:case 47:h(_(I=function(e,t){for(;S();)if(e+y===57)break;else if(e+y===84&&47===w())break;return"/*"+u(v,t,g-1)+"*"+o(47===e?e:S())}(S(),g),n,r,R,o(y),u(I,2,-2),0),T);break;default:Z+="/"}break;case 123*L:k[C++]=d(Z)*U;case 125*L:case 59:case 0:switch(B){case 0:case 125:F=0;case 59+A:N>0&&d(Z)-O&&h(N>32?j(Z+";",i,r,O-1):j(s(Z," ","")+";",i,r,O-2),T);break;case 59:Z+=";";default:if(h($=P(Z,n,r,C,A,a,k,H,z=[],W=[],O),m),123===B){if(0===A)e(Z,n,$,$,z,m,O,k,W);else switch(99===M&&110===c(Z,3)?100:M){case 100:case 109:case 115:e(t,$,$,i&&h(P(t,$,$,0,0,a,k,H,a,z=[],O),W),a,W,O,k,i?z:W);break;default:e(Z,$,$,$,[""],W,0,k,W)}}}C=A=N=0,L=U=1,H=Z="",O=b;break;case 58:O=1+d(Z),N=D;default:if(L<1){if(123==B)--L;else if(125==B&&0==L++&&125==(y=g>0?c(v,--g):0,f--,10===y&&(f=1,p--),y))continue}switch(Z+=o(B),B*L){case 38:U=A>0?1:(Z+="\f",-1);break;case 44:k[C++]=(d(Z)-1)*U,U=1;break;case 64:45===w()&&(Z+=E(S())),M=w(),A=O=d(H=Z+=function(e){for(;!x(w());)S();return u(v,e,g)}(g)),B++;break;case 45:45===D&&2==d(Z)&&(L=0)}}return m}("",null,null,null,[""],t=k(t=e),0,[0],t),v="",n),O)},L={key:b,sheet:new r({key:b,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:C,registered:{},insert:function(e,t,n,r){m=n,M(e?e+"{"+t.styles+"}":t.styles),r&&(L.inserted[t.name]=!0)}};return L.sheet.hydrate(A),L}},45042:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},52443:function(e,t,n){"use strict";n.d(t,{E:function(){return m},T:function(){return d},c:function(){return p},h:function(){return l},w:function(){return u}});var r=n(67294),i=n(8417),o=n(70444),a=n(48137),s=n(27278),l={}.hasOwnProperty,c=(0,r.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);c.Provider;var u=function(e){return(0,r.forwardRef)(function(t,n){return e(t,(0,r.useContext)(c),n)})},d=(0,r.createContext)({}),h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p=function(e,t){var n={};for(var r in t)l.call(t,r)&&(n[r]=t[r]);return n[h]=e,n},f=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,o.hC)(t,n,r),(0,s.L)(function(){return(0,o.My)(t,n,r)}),null},m=u(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var s=e[h],c=[i],u="";"string"==typeof e.className?u=(0,o.fp)(t.registered,c,e.className):null!=e.className&&(u=e.className+" ");var p=(0,a.O)(c,void 0,(0,r.useContext)(d));u+=t.key+"-"+p.name;var m={};for(var g in e)l.call(e,g)&&"css"!==g&&g!==h&&(m[g]=e[g]);return m.ref=n,m.className=u,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(f,{cache:t,serialized:p,isStringTag:"string"==typeof s}),(0,r.createElement)(s,m))})},48137:function(e,t,n){"use strict";n.d(t,{O:function(){return m}});var r,i=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(45042),s=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},d=(0,a.Z)(function(e){return c(e)?e:e.replace(s,"-$&").toLowerCase()}),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===o[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=p(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":u(a)&&(r+=d(o)+":"+h(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(r+=d(o)+":"+h(o,a[s])+";");else{var l=p(e,t,a);switch(o){case"animation":case"animationName":r+=d(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=r,a=n(e);return r=o,p(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var f=/label:\s*([^\s;\n{]+)\s*(;|$)/g,m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o,a=!0,s="";r=void 0;var l=e[0];null==l||void 0===l.raw?(a=!1,s+=p(n,t,l)):s+=l[0];for(var c=1;c<e.length;c++)s+=p(n,t,e[c]),a&&(s+=l[c]);f.lastIndex=0;for(var u="";null!==(o=f.exec(s));)u+="-"+o[1];return{name:i(s)+u,styles:s,next:r}}},27278:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return s}});var r,i=n(67294),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},70444:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},68239:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(87462),i=n(63366),o=n(71387),a=n(59766),s=n(66500),l=n(44920),c=n(86523),u=n(41796),d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};let _=["mode","contrastThreshold","tonalOffset"],b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackgroun
1d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},S={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){let i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.$n)(e.main,i):"dark"===t&&(e.dark=(0,u._j)(e.main,o)))}let x=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],k={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function T(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}let I=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)];var C=n(96067),R={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let A=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var O=function(e={},...t){var n;let{mixins:T={},palette:O={},transitions:M={},typography:N={}}=e,D=(0,i.Z)(e,A);if(e.vars)throw Error((0,o.Z)(18));let P=function(e){let{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,i.Z)(e,_),c=e.primary||function(e="light"){return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),x=e.secondary||function(e="light"){return"dark"===e?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),k=e.error||function(e="light"){return"dark"===e?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),E=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),T=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),I=e.warning||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function C(e){let t=(0,u.mi)(e,S.text.primary)>=n?S.text.primary:b.text.primary;return t}let R=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:a=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw Error((0,o.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw Error((0,o.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return w(e,"light",i,s),w(e,"dark",a,s),e.contrastText||(e.contrastText=C(e.main)),e},A=(0,a.Z)((0,r.Z)({common:(0,r.Z)({},d),mode:t,primary:R({color:c,name:"primary"}),secondary:R({color:x,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:k,name:"error"}),warning:R({color:I,name:"warning"}),info:R({color:E,name:"info"}),success:R({color:T,name:"success"}),grey:h,contrastThreshold:n,getContrastText:C,augmentColor:R,tonalOffset:s},{dark:S,light:b}[t]),l);return A}(O),j=(0,s.Z)(e),L=(0,a.Z)(j,{mixins:(n=j.breakpoints,(0,r.Z)({toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}}},T)),palette:P,shadows:I.slice(),typography:function(e,t){let n="function"==typeof t?t(e):t,{fontFamily:o=E,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:f}=n,m=(0,i.Z)(n,x),g=s/14,y=f||(e=>`${e/h*g}rem`),v=(e,t,n,i,a)=>(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:n},o===E?{letterSpacing:`${Math.round(1e5*(i/t))/1e5}em`}:{},a,p),_={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,k),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,k)};return(0,a.Z)((0,r.Z)({htmlFontSize:h,pxToRem:y,fontFamily:o,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},_),m,{clone:!1})}(P,N),transitions:(0,C.ZP)(M),zIndex:(0,r.Z)({},R)});return L=(0,a.Z)(L,D),(L=t.reduce((e,t)=>
1(0,a.Z)(e,t),L)).unstable_sxConfig=(0,r.Z)({},l.Z,null==D?void 0:D.unstable_sxConfig),L.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},L}},96067:function(e,t,n){"use strict";n.d(t,{ZP:function(){return u},x9:function(){return s}});var r=n(63366),i=n(87462);let o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function u(e){let t=(0,i.Z)({},a,e.easing),n=(0,i.Z)({},s,e.duration),u=(e=["all"],i={})=>{let{duration:a=n.standard,easing:s=t.easeInOut,delay:c=0}=i;return(0,r.Z)(i,o),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof a?a:l(a)} ${s} ${"string"==typeof c?c:l(c)}`).join(",")};return(0,i.Z)({getAutoHeightDuration:c,create:u},e,{easing:t,duration:n})}},44819:function(e,t,n){"use strict";var r=n(67294);let i=r.createContext(null);t.Z=i},56760:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294),i=n(44819);function o(){let e=r.useContext(i.Z);return e}},95408:function(e,t,n){"use strict";n.d(t,{L7:function(){return l},P$:function(){return u},VO:function(){return i},W8:function(){return s},dt:function(){return c},k9:function(){return a}});var r=n(59766);let i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function a(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let a=r.breakpoints||o;return t.reduce((e,r,i)=>(e[a.up(a.keys[i])]=n(t[i]),e),{})}if("object"==typeof t){let s=r.breakpoints||o;return Object.keys(t).reduce((e,r)=>{if(-1!==Object.keys(s.values||i).indexOf(r)){let o=s.up(r);e[o]=n(t[r],r)}else e[r]=t[r];return e},{})}let l=n(t);return l}function s(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function l(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}function c(e,...t){let n=s(e),i=[n,...t].reduce((e,t)=>(0,r.Z)(e,t),{});return l(Object.keys(n),i)}function u({values:e,breakpoints:t,base:n}){let r;let i=n||function(e,t){if("object"!=typeof e)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(i);return 0===o.length?e:o.reduce((t,n,i)=>(Array.isArray(e)?(t[n]=null!=e[i]?e[i]:e[r],r=i):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t),{})}},41796:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return c},_4:function(){return h},_j:function(){return u},mi:function(){return l}});var r=n(71387);function i(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function o(e){let t;if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),i=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw Error((0,r.Z)(9,e));let a=e.substring(n+1,e.length-1);if("color"===i){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,r.Z)(10,t))}else a=a.split(",");return a=a.map(e=>parseFloat(e)),{type:i,values:a,colorSpace:t}}function a(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function s(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){e=o(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=(e,t=(e+n/30)%12)=>i-s*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){let n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}
1function c(e,t){return e=o(e),t=i(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function u(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}function h(e,t=.15){return s(e)>.5?u(e,t):d(e,t)}},66500:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(87462),i=n(63366),o=n(59766);let a=["values","unit","step"],s=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,r.Z)({},e,{[t.key]:t.val}),{})};var l={borderRadius:4},c=n(98700),u=n(86523),d=n(44920);let h=["breakpoints","palette","spacing","shape"];var p=function(e={},...t){let{breakpoints:n={},palette:p={},spacing:f,shape:m={}}=e,g=(0,i.Z)(e,h),y=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,l=(0,i.Z)(e,a),c=s(t),u=Object.keys(c);function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function h(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-o/100}${n})`}function p(e,r){let i=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[u[i]]?t[u[i]]:r)-o/100}${n})`}return(0,r.Z)({keys:u,values:c,up:d,down:h,between:p,only:function(e){return u.indexOf(e)+1<u.length?p(e,u[u.indexOf(e)+1]):d(e)},not:function(e){let t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?h(u[t]):p(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}(n),v=function(e=8){if(e.mui)return e;let t=(0,c.hB)({spacing:e}),n=(...e)=>{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}(f),_=(0,o.Z)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},p),spacing:v,shape:(0,r.Z)({},l,m)},g);return(_=t.reduce((e,t)=>(0,o.Z)(e,t),_)).unstable_sxConfig=(0,r.Z)({},d.Z,null==g?void 0:g.unstable_sxConfig),_.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},_}},47730:function(e,t,n){"use strict";var r=n(59766);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},98700:function(e,t,n){"use strict";n.d(t,{hB:function(){return f},eI:function(){return p},NA:function(){return m},e6:function(){return y},o3:function(){return v}});var r=n(95408),i=n(54844),o=n(47730);let a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}let[t,n]=e.split(""),r=a[t],i=s[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[...u,...d];function p(e,t,n,r){var o;let a=null!=(o=(0,i.DW)(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function f(e){return p(e,"spacing",8,"spacing")}function m(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){let n=f(e.theme);return Object.keys(e).map(i=>(function(e,t,n,i){if(-1===t.indexOf(n))return null;let o=c(n),a=e=>o.reduce((t,n)=>(t[n]=m(i,e),t),{}),s=e[n];return(0,r.k9)(e,s,a)})(e,t,i,n)).reduce(o.Z,{})}function y(e){return g(e,u)}function v(e){return g(e,d)}function _(e){return g(e,h)}y.propTypes={},y.filterProps=u,v.propTypes={},v.filterProps=d,_.propTypes={},_.filterProps=h},54844:function(e,t,n){"use strict";n.d(t,{DW:function(){return o},Jq:function(){return a}});var r=n(28320),i=n(95408);function o(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((e,t)=>
1e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}t.ZP=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,d=o(u,s)||{},h=e=>{let i=a(d,l,e);return(e===i&&"string"==typeof e&&(i=a(d,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n)?i:{[n]:i}};return(0,i.k9)(e,c,h)};return c.propTypes={},c.filterProps=[t],c}},44920:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(98700),i=n(54844),o=n(47730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,o.Z)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n},s=n(95408);function l(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,i.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),h=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),p=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),f=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),v=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),_=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};_.propTypes={},_.filterProps=["borderRadius"],a(c,u,d,h,p,f,m,g,y,v,_);let b=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};b.propTypes={},b.filterProps=["gap"];let S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];let w=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};w.propTypes={},w.filterProps=["rowGap"];let x=(0,i.ZP)({prop:"gridColumn"}),k=(0,i.ZP)({prop:"gridRow"}),E=(0,i.ZP)({prop:"gridAutoFlow"}),T=(0,i.ZP)({prop:"gridAutoColumns"}),I=(0,i.ZP)({prop:"gridAutoRows"}),C=(0,i.ZP)({prop:"gridTemplateColumns"}),R=(0,i.ZP)({prop:"gridTemplateRows"}),A=(0,i.ZP)({prop:"gridTemplateAreas"}),O=(0,i.ZP)({prop:"gridArea"});function M(e,t){return"grey"===t?t:e}a(b,S,w,x,k,E,T,I,C,R,A,O);let N=(0,i.ZP)({prop:"color",themeKey:"palette",transform:M}),D=(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),P=(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:M});function j(e){return e<=1&&0!==e?`${100*e}%`:e}a(N,D,P);let L=(0,i.ZP)({prop:"width",transform:j}),F=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){let t=t=>{var n,r,i;let o=(null==(n=e.theme)?void 0:null==(r=n.breakpoints)?void 0:null==(i=r.values)?void 0:i[t])||s.VO[t];return{maxWidth:o||j(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};F.filterProps=["maxWidth"];let U=(0,i.ZP)({prop:"minWidth",transform:j}),B=(0,i.ZP)({prop:"height",transform:j}),H=(0,i.ZP)({prop:"maxHeight",transform:j}),z=(0,i.ZP)({prop:"minHeight",transform:j});(0,i.ZP)({prop:"size",cssProperty:"width",transform:j}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:j});let W=(0,i.ZP)({prop:"boxSizing"});a(L,F,U,B,H,z,W);let $={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3}
1,paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:b},rowGap:{style:w},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:j},maxWidth:{style:F},minWidth:{transform:j},height:{transform:j},maxHeight:{transform:j},minHeight:{transform:j},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var Z=$},86523:function(e,t,n){"use strict";var r=n(28320),i=n(47730),o=n(54844),a=n(95408),s=n(44920);let l=function(){function e(e,t,n,i){let s={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:d,style:h}=l;if(null==t)return null;let p=(0,o.DW)(n,u)||{};if(h)return h(s);let f=t=>{let n=(0,o.Jq)(p,d,t);return(t===n&&"string"==typeof t&&(n=(0,o.Jq)(p,d,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c)?n:{[c]:n}};return(0,a.k9)(s,t,f)}return function t(n){var r;let{sx:o,theme:l={}}=n||{};if(!o)return null;let c=null!=(r=l.unstable_sxConfig)?r:s.Z;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;let o=(0,a.W8)(l.breakpoints),s=Object.keys(o),u=o;return Object.keys(r).forEach(n=>{var o;let s="function"==typeof(o=r[n])?o(l):o;if(null!=s){if("object"==typeof s){if(c[n])u=(0,i.Z)(u,e(n,s,l,c));else{let d=(0,a.k9)({theme:l},s,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(d,s)?u[n]=t({sx:s,theme:l}):u=(0,i.Z)(u,d)}}else u=(0,i.Z)(u,e(n,s,l,c))}}),(0,a.L7)(s,u)}return Array.isArray(o)?o.map(u):u(o)}}();l.filterProps=["sx"],t.Z=l},96682:function(e,t,n){"use strict";var r=n(66500),i=n(34168);let o=(0,r.Z)();t.Z=function(e=o){return(0,i.Z)(e)}},34168:function(e,t,n){"use strict";var r=n(56760);t.Z=function(e=null){let t=(0,r.Z)();return t&&0!==Object.keys(t).length?t:e}},28320:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71387);function i(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},59766:function(e,t,n){"use strict";n.d(t,{P:function(){return i},Z:function(){return function e(t,n,o={clone:!0}){let a=o.clone?(0,r.Z)({},t):t;return i(t)&&i(n)&&Object.keys(n).forEach(r=>{"__proto__"!==r&&(i(n[r])&&r in t&&i(t[r])?a[r]=e(t[r],n[r],o):o.clone?a[r]=i(n[r])?function e(t){if(!i(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:a[r]=n[r])}),a}}});var r=n(87462);function i(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},71387:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),i=n(36026),o=n(4372),a=n(15327),s=n(94097),l=n(84109),c=n(67985),u=n(85061),d=n(456
155),h=n(65263);e.exports=function(e){return new Promise(function(t,n){var p,f=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(f)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+b)}var S=s(e.baseURL,e.url);function w(){if(v){var r="getAllResponseHeaders"in v?l(v.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v}),v=null}}if(v.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(w)},v.onabort=function(){v&&(n(u("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(u("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(S))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(m[e.xsrfHeaderName]=x)}"setRequestHeader"in v&&r.forEach(m,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),g&&"json"!==g&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){v&&(n(!e||e&&e.type?new h("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),f||(f=null),v.send(f)})}},51609:function(e,t,n){"use strict";var r=n(64867),i=n(91849),o=n(30321),a=n(47185),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(45655));s.Axios=o,s.Cancel=n(65263),s.CancelToken=n(14972),s.isCancel=n(26502),s.VERSION=n(97288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},65263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:function(e,t,n){"use strict";var r=n(65263);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,r=new Promise(function(e){n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},26502:function(e){"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),i=n(15327),o=n(80782),a=n(13572),s=n(47185),l=n(54875),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{}
1,!t.url)throw Error("Provided config url is not valid");(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n,r=t.transitional;void 0!==r&&l.assertOptions(r,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});var u=[];if(this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)}),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,i),d=d.concat(u),n=Promise.resolve(t);d.length;)n=n.then(d.shift(),d.shift());return n}for(var h=t;i.length;){var p=i.shift(),f=i.shift();try{h=p(h)}catch(m){f(m);break}}try{n=a(h)}catch(g){return Promise.reject(g)}for(;u.length;)n=n.then(u.shift(),u.shift());return n},u.prototype.getUri=function(e){if(!e.url)throw Error("Provided config url is not valid");return i((e=s(this.defaults,e)).url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=u},80782:function(e,t,n){"use strict";var r=n(64867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},94097:function(e,t,n){"use strict";var r=n(91793),i=n(7303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},85061:function(e,t,n){"use strict";var r=n(80481);e.exports=function(e,t,n,i,o){return r(Error(e),t,n,i,o)}},13572:function(e,t,n){"use strict";var r=n(64867),i=n(18527),o=n(26502),a=n(45655),s=n(65263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return!o(t)&&(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},80481:function(e){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)}),n}},36026:function(e,t,n){"use strict";var r=n(85061);e.exports=function(e,t,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},18527:function(e,t,n){"use strict";var r=n(64867),i=n(45655);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,function(n){e=n.call(o,e,t)}),e}},45655:function(e,t,n){"use strict";var r,i=n(83454),o=n(64867),a=n(16016),s=n(80481),l={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?r=n(55448):void 0!==i&&"[object process]"===Object.prototype.toString.call(i)&&(r=n(55448)),r),transformRequest:[function(e,t){return(a(t,"Accept"),a(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(0,JSON.parse)(e),o.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(i){if("SyntaxError"===a.name)throw s(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){u.headers[e]={}}),o.forEach(["post","put","patch"],function(e){u.headers[e]=o.merge(l)}),e.exports=u},97288:function(e){e.exports={version:"0.25.0"}},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var r=n(64867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var o,a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},16268:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},84109:function(e,t,n){"use strict";var r=n(64867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e&&r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&!(a[t]&&i.indexOf(t)>=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:function(e,t,n){"use strict";var r=n(97288).version,i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw TypeError("option "+o+" must be "+l);continue}if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},64867:function(e,t,n){"use strict";var r=n(91849),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function d(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}}
1e.exports={isArray:o,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,function(t,i){n&&"function"==typeof t?e[i]=r(t,n):e[i]=t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},19522:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.CookieStorage=void 0;var i=n(10015),o=n(55457),a=function(){var e,t;function n(e){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),this._defaultOptions=Object.assign({domain:null,expires:null,path:null,secure:!1},e),"undefined"!=typeof Proxy)return new Proxy(this,s)}return e=[{key:"clear",value:function(){var e=this;Object.keys(o.parseCookies(this._getCookie())).forEach(function(t){return e.removeItem(t)})}},{key:"getItem",value:function(e){var t=o.parseCookies(this._getCookie());return Object.prototype.hasOwnProperty.call(t,e)?t[e]:null}},{key:"key",value:function(e){var t=Object.keys(o.parseCookies(this._getCookie())).sort();return e<t.length?t[e]:null}},{key:"removeItem",value:function(e,t){var n=Object.assign(Object.assign(Object.assign({},this._defaultOptions),t),{expires:new Date(0)}),r=i.formatCookie(e,"",n);this._setCookie(r)}},{key:"setItem",value:function(e,t,n){var r=Object.assign(Object.assign({},this._defaultOptions),n),o=i.formatCookie(e,t,r);this._setCookie(o)}},{key:"_getCookie",value:function(){return"undefined"==typeof document?"":void 0===document.cookie?"":document.cookie}},{key:"_setCookie",value:function(e){document.cookie=e}},{key:"length",get:function(){return Object.keys(o.parseCookies(this._getCookie())).length}}],r(n.prototype,e),t&&r(n,t),n}();t.CookieStorage=a;var s={defineProperty:function(e,t,n){return e.setItem(t.toString(),String(n.value)),!0},deleteProperty:function(e,t){return e.removeItem(t.toString()),!0},get:function(e,t,n){if("string"==typeof t&&t in e)return e[t];var r=e.getItem(t.toString());return null!==r?r:void 0},getOwnPropertyDescriptor:function(e,t){if(!(t in e))return{configurable:!0,enumerable:!0,value:e.getItem(t.toString()),writable:!0}},has:function(e,t){return"string"==typeof t&&t in e||null!==e.getItem(t.toString())},ownKeys:function(e){for(var t=[],n=0;n<e.length;n++){var r=e.key(n);null!==r&&t.push(r)}return t},preventExtensions:function(e){throw TypeError("can't prevent extensions on this proxy object")},set:function(e,t,n,r){return e.setItem(t.toString(),String(n)),!0}}},10015:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatCookie=void 0;var n=function(e){var t=e.sameSite;return void 0===t?null:["none","lax","strict"].indexOf(t.toLowerCase())>=0?t:null},r=function(e){var t=e.path,r=e.domain,i=e.expires,o=e.secure,a=n(e);return[null==t?"":";path="+t,null==r?"":";domain="+r,null==i?"":";expires="+i.toUTCString(),void 0===o||!1===o?"":";secure",null===a?"":";SameSite="+a].join("")};t.formatCookie=function(e,t,n){return[encodeURIComponent(e),"=",encodeURIComponent(t),r(n)].join("")}},67509:function(e,t,n){"use strict";var r=n(19522);Object.defineProperty(t,"eR",{enumerable:!0,get:function(){return r.CookieStorage}}),n(10015),n(55457)},55457:function(e,t){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
1Object.defineProperty(t,"__esModule",{value:!0}),t.parseCookies=void 0,t.parseCookies=function(e){if(0===e.length)return{};var t={},r=RegExp("\\s*;\\s*");return e.split(r).forEach(function(e){var r,i=function(e){if(Array.isArray(e))return e}(r=e.split("="))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(r,2)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i[1],s=decodeURIComponent(o),l=decodeURIComponent(a);t[s]=l}),t}},83454:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(77663)},23837:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(2258)}])},421:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="production"},21606:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},73172:function(e,t,n){"use strict";n.d(t,{RP:function(){return function e(t,n,r){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new i.cW((i,c)=>{let u=t[l];if(null===n||"function"!=typeof u)i(n);else{let d=u({...n},r);s.X&&u.id&&null===d&&o.kg.log('Event processor "'.concat(u.id,'" dropped event')),(0,a.J8)(d)?d.then(n=>e(t,n,r,l+1).then(i)).then(null,c):e(t,d,r,l+1).then(i).then(null,c)}})}},cc:function(){return c},fH:function(){return l}});var r=n(33142),i=n(56497),o=n(68646),a=n(52334),s=n(21606);function l(){return(0,r.YO)("globalEventProcessors",()=>[])}function c(e){l().push(e)}},85237:function(e,t,n){"use strict";n.d(t,{$e:function(){return f},Tb:function(){return u},cg:function(){return S},eN:function(){return d},nZ:function(){return y},n_:function(){return h},s3:function(){return g},v:function(){return p},yj:function(){return v},yl:function(){return m}});var r=n(68646),i=n(33142),o=n(421),a=n(21606),s=n(62877),l=n(47600),c=n(15099);function u(e,t){return(0,s.Gd)().captureException(e,(0,c.U0)(t))}function d(e,t){return(0,s.Gd)().captureEvent(e,t)}function h(e,t){(0,s.Gd)().addBreadcrumb(e,t)}function p(e,t){(0,s.Gd)().setContext(e,t)}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=(0,s.Gd)();if(2===t.length){let[i,o]=t;return i?r.withScope(()=>(r.getStackTop().scope=i,o(i))):r.withScope(o)}return r.withScope(t[0])}async function m(e){let t=g();return t?t.flush(e):(a.X&&r.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function g(){return(0,s.Gd)().getClient()}function y(){return(0,s.Gd)().getScope()}function v(e){let t=g(),n=(0,s.aF)(),r=y(),{release:a,environment:c=o.J}=t&&t.getOptions()||{},{userAgent:u}=i.n2.navigator||{},d=(0,l.Hv)({release:a,environment:c,user:r.getUser()||n.getUser(),...u&&{userAgent:u},...e}),h=n.getSession();return h&&"ok"===h.status&&(0,l.CT)(h,{status:"exited"}),_(),n.setSession(d),r.setSession(d),d}function _(){let e=(0,s.aF)(),t=y(),n=t.getSession()||e.getSession();n&&(0,l.RJ)(n),b(),e.setSession(),t.setSession()}function b(){let e=(0,s.aF)(),t=y(),n=g(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function S(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){_();return}b()}},62877:function(e,t,n){"use strict";n.d(t,{Gd:function(){return y},aF:function(){return v},cu:function(){return m}});var r=n(52334),i=n(33260),o=n(60155),a=n(68646),s=n(33142),l=n(421),c=n(21606),u=n(2836),d=n(47600),h=n(19029);let p=parseFloat(h.J);class f{isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=this.getScope().clone();
1return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t;let n=this.pushScope();try{t=e(n)}catch(i){throw this.popScope(),i}return(0,r.J8)(t)?t.then(e=>(this.popScope(),e),e=>{throw this.popScope(),e}):(this.popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:(0,i.DM)(),r=Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:(0,i.DM)(),o=Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,i.DM)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=r.getOptions&&r.getOptions()||{};if(s<=0)return;let l=(0,o.yW)(),c={timestamp:l,...e},u=i?(0,a.Cf)(()=>i(c,t)):c;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,t),n.addBreadcrumb(u,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=g(this);try{e(this)}finally{g(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return c.X&&a.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);if(c.X&&!n){let r=this.getClient();r?a.kg.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):a.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop(),t=e.scope,n=t.getSession();n&&(0,d.RJ)(n),this._sendSessionUpdate(),t.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=l.J}=n&&n.getOptions()||{},{userAgent:o}=s.n2.navigator||{},a=(0,d.Hv)({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),c=t.getSession&&t.getSession();return c&&"ok"===c.status&&(0,d.CT)(c,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i=m(),o=i.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,n);c.X&&a.kg.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}constructor(e,t,n,r=p){let i,o;this._version=r,t?i=t:(i=new u.sX).setClient(e),n?o=n:(o=new u.sX).setClient(e),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}}function m(){return s.n2.__SENTRY__=s.n2.__SENTRY__||{extensions:{},hub:void 0},s.n2}function g(e){let t=m(),n=_(t);return b(t,e),n}function y(){let e=m();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m();return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||_(e).isOlderThan(p))&&b(e,new f),_(e)}(e)}function v(){return y().getIsolationScope()}function _(e){return(0,s.YO)("hub",()=>new f,e)}function b(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}},2836:function(e,t,n){"use strict";let r;n.d(t,{lW:function(){return h},sX:function(){return d}});var i=n(52334),o=n(60155),a=n(33260),s=n(68646),l=n(73172),c=n(47600),u=n(78944);class d{static clone(e){return e?e.clone():new d}clone(){let e=new d;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}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,segment:void 0,username:void 0},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}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}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e;if(t instanceof d){let n=t.getScopeData();this._tags={...this._tags,...n.tags},this._extra={...this._extra,...n.extra},this._contexts={...this._contexts,...n.contexts},n.user&&Object.keys(n.user).length&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint.length&&(this._fingerprint=n.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),n.propagationContext&&(this._propagationContext=n.propagationContext)}else(0,i.PO)(t)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext));return 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._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=p(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,o.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,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}getAttachments(){let e=this.getScopeData();return e.attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:h}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:h}}applyToEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];
1(0,u.gi)(e,this.getScopeData());let r=[...n,...(0,l.fH)(),...this._eventProcessors];return(0,l.RP)(r,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,a.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(s.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=p()}}function h(){return r||(r=new d),r}function p(){return{traceId:(0,a.DM)(),spanId:(0,a.DM)().substring(16)}}},47600:function(e,t,n){"use strict";n.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return l}});var r=n(60155),i=n(33260),o=n(3816);function a(e){let t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:"".concat(n.sid),init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?"".concat(n.did):void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&s(n,e),n}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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,r.ph)(),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.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(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{let n=e.timestamp-e.started;e.duration=n>=0?n: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 l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},29242:function(e,t,n){"use strict";n.d(t,{_:function(){return l},j:function(){return c}});var r=n(3816),i=n(421),o=n(85237),a=n(8072),s=n(91251);function l(e,t,n){let o=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},l=(0,r.Jr)({environment:o.environment||i.J,release:o.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",l),l}function c(e){let t=(0,o.s3)();if(!t)return{};let n=l((0,s.XU)(e).trace_id||"",t,(0,o.nZ)()),r=(0,a.G)(e);if(!r)return n;let i=r&&r._frozenDynamicSamplingContext;if(i)return i;let{sampleRate:c,source:u}=r.metadata;null!=c&&(n.sample_rate="".concat(c));let d=(0,s.XU)(r);return u&&"url"!==u&&(n.transaction=d.description),n.sampled=String((0,s.Tt)(r)),t.emit&&t.emit("createDsc",n),n}},78944:function(e,t,n){"use strict";n.d(t,{gi:function(){return l},yo:function(){return c}});var r=n(3816),i=n(33260),o=n(29242),a=n(8072),s=n(91251);function l(e,t){var n,l;let{fingerprint:c,span:u,breadcrumbs:d,sdkProcessingMetadata:h}=t;(function(e,t){let{extra:n,tags:i,user:o,contexts:a,level:s,transactionName:l}=t,c=(0,r.Jr)(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let u=(0,r.Jr)(i);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let d=(0,r.Jr)(o);d&&Object.keys(d).length&&(e.user={...d,...e.user});let h=(0,r.Jr)(a);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts}),s&&(e.level=s),l&&(e.transaction=l)})(e,t),u&&function(e,t){e.contexts={trace:(0,s.wy)(t),...e.contexts};let n=(0,a.G)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:(0,o.j)(t),...e.sdkProcessingMetadata};let r=(0,s.XU)(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,u),(n=e).fingerprint=n.fingerprint?(0,i.lE)(n.fingerprint):[],c&&(n.fingerprint=n.fingerprint.concat(c)),n.fingerprint&&!n.fingerprint.length&&delete n.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,d),(l=e).sdkProcessingMetadata={...l.sdkProcessingMetadata,...h}}function c(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:d,attachments:h,propagationContext:p,transactionName:f,span:m}=t;u(e,"extra",n),u(e,"tags",r),u(e,"user",i),u(e,"contexts",o),u(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),h.length&&(e.attachments=[...e.attachments,...h]
1),e.propagationContext={...e.propagationContext,...p}}function u(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}},8072:function(e,t,n){"use strict";function r(e){return e.transaction}n.d(t,{G:function(){return r}})},15099:function(e,t,n){"use strict";n.d(t,{R:function(){return p},U0:function(){return m}});var r=n(33260),i=n(60155),o=n(48634),a=n(33142),s=n(95269),l=n(421),c=n(73172),u=n(2836),d=n(78944),h=n(91251);function p(e,t,n,p,m,g){var y;let{normalizeDepth:v=3,normalizeMaxBreadth:_=1e3}=e,b={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,i.yW)()},S=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:l.J),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,o.$G)(e.message,a));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,a));let c=e.request;c&&c.url&&(c.url=(0,o.$G)(c.url,a))})(b,e),y=b,S.length>0&&(y.sdk=y.sdk||{},y.sdk.integrations=[...y.sdk.integrations||[],...S]),void 0===t.type&&function(e,t){let n;let r=a.n2._sentryDebugIds;if(!r)return;let i=f.get(t);i?n=i:(n=new Map,f.set(t,n));let o=Object.keys(r).reduce((e,i)=>{let o;let a=n.get(i);a?o=a:(o=t(i),n.set(i,o));for(let s=o.length-1;s>=0;s--){let l=o[s];if(l.filename){e[l.filename]=r[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(s){}}(b,e.stackParser);let w=function(e,t){if(!t)return e;let n=e?e.clone():new u.sX;return n.update(t),n}(p,n.captureContext);n.mechanism&&(0,r.EG)(b,n.mechanism);let x=m&&m.getEventProcessors?m.getEventProcessors():[],k=(0,u.lW)().getScopeData();if(g){let E=g.getScopeData();(0,d.yo)(k,E)}if(w){let T=w.getScopeData();(0,d.yo)(k,T)}let I=[...n.attachments||[],...k.attachments];I.length&&(n.attachments=I),(0,d.gi)(b,k);let C=[...x,...(0,c.fH)(),...k.eventProcessors],R=(0,c.RP)(C,b,n);return R.then(e=>(e&&function(e){let t={};try{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)})})}catch(n){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.keys(t).forEach(e=>{r.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof v&&v>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,s.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>{let r=(0,h.XU)(e).data;return r&&(e.data=(0,s.Fv)(r,t,n)),e})),r}(e,v,_):e)}let f=new WeakMap;function m(e){return e?e instanceof u.sX||"function"==typeof e||Object.keys(e).some(e=>g.includes(e))?{captureContext:e}:e:void 0}let g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},91251:function(e,t,n){"use strict";n.d(t,{$k:function(){return u},Hb:function(){return c},Tt:function(){return p},XU:function(){return h},i0:function(){return s},ve:function(){return a},wy:function(){return l}});var r=n(3816),i=n(83379),o=n(60155);let a=0,s=1;function l(e){let{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,tags:l,origin:c}=h(e);return(0,r.Jr)({data:i,op:o,parent_span_id:a,span_id:t,status:s,tags:l,trace_id:n,origin:c})}function c(e){let{traceId:t,spanId:n}=e.spanContext(),r=p(e);return(0,i.$p)(t,n,r)}function u(e){return"number"==typeof e?d(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?d(e.getTime()):(0,o.ph)()}function d(e){return e>9999999999?e/1e3:e}function h(e){return"function"==typeof e.getSpanJSON?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}function p(e){let{traceFlags:t}=e.spanContext();return Boolean(t&s)}},19029:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="7.112.1"},82089:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},52146:function(e,t,n){"use strict";let r,i,o,a,s,l,c,u,d,h,p,f,m,g,y,v,_,b,S,w,x,k,E;var T,I,C,R,A,O,M,N,D,P,j={};n.r(j),n.d(j,{FunctionToString:function(){return et},InboundFilters:function(){return es},LinkedErrors:function(){return em}});var L={};n.r(L),n.d(L,{Breadcrumbs:function(){return tm},Dedupe:function(){return tk},GlobalHandlers:function(){return e$},HttpContext:function(){return tS},LinkedErrors:function(){return tv},TryCatch:function(){return eJ}});var F=n(19029);function U(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",i=e._metadata||{};i.sdk||(i.sdk={name:"sentry.javascript.".concat(t),packages:n.map(e=>({name:"".concat(r,":@sentry/").concat(e),version:F.J})),version:F.J}),e._metadata=i}var B=n(85237);function H(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=(0,B.s3)(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}
1var z=n(3816),W=n(33260),$=n(68646),Z=n(21606),q=n(73172),X=n(62877);let V=[];function G(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function J(e,t,n){if(n[t.name]){Z.X&&$.kg.log("Integration skipped because it was already installed: ".concat(t.name));return}if(n[t.name]=t,-1===V.indexOf(t.name)&&(t.setupOnce(q.cc,X.Gd),V.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let i=t.processEvent.bind(t),o=Object.assign((t,n)=>i(t,n,e),{id:t.name});e.addEventProcessor(o)}Z.X&&$.kg.log("Integration installed: ".concat(t.name))}function K(e,t){return Object.assign(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t(...n)},{id:e})}let Y="FunctionToString",Q=new WeakMap,ee=()=>({name:Y,setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=(0,z.HK)(this),o=Q.has((0,B.s3)())&&void 0!==i?i:this;return r.apply(o,t)}}catch(e){}},setup(e){Q.set(e,!0)}}),et=K(Y,ee);var en=n(48634);let er=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],ei=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],eo="InboundFilters",ea=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:eo,setupOnce(){},processEvent(t,n,r){var i;let o=r.getOptions(),a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:er],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:ei],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return(a.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(t)?(Z.X&&$.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat((0,W.jH)(t))),0):(i=a.ignoreErrors,!t.type&&i&&i.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(r){}return t&&t.value&&(n.push(t.value),t.type&&n.push("".concat(t.type,": ").concat(t.value))),Z.X&&0===n.length&&$.kg.error("Could not extract message for event ".concat((0,W.jH)(e))),n})(t).some(e=>(0,en.U0)(e,i)))?(Z.X&&$.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,W.jH)(t))),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,en.U0)(n,t)}(t,a.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=el(e);return!!n&&(0,en.U0)(n,t)}(t,a.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=el(e);return!n||(0,en.U0)(n,t)}(t,a.allowUrls)||(Z.X&&$.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,W.jH)(t),".\nUrl: ").concat(el(t))),0):(Z.X&&$.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,W.jH)(t),".\nUrl: ").concat(el(t))),0):(Z.X&&$.kg.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat((0,W.jH)(t))),0))?t:null}}},es=K(eo,ea);function el(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(n){}return t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(r){return Z.X&&$.kg.error("Cannot extract url for event ".concat((0,W.jH)(e))),null}}var ec=n(52334);function eu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(!o.exception||!o.exception.values||!a||!(0,ec.V9)(a.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=(function e(t,n,r,i,o,a,s,l){if(a.length>=r+1)return a;let c=[...a];if((0,ec.V9)(i[o],Error)){ed(s,l);let u=t(n,i[o]),d=c.length;eh(u,o,d,l),c=e(t,n,r,i[o],o,[u,...c],u,d)}
1return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if((0,ec.V9)(i,Error)){ed(s,l);let u=t(n,i),d=c.length;eh(u,"errors[".concat(a,"]"),d,l),c=e(t,n,r,i,o,[u,...c],u,d)}}),c})(e,t,i,a.originalException,r,o.exception.values,s,0).map(e=>(e.value&&(e.value=(0,en.$G)(e.value,n)),e)))}function ed(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 eh(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function ep(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=e(t.stack||"",1);return r.length&&(n.stacktrace={frames:r}),n}let ef="LinkedErrors",em=K(ef,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit||5,n=e.key||"cause";return{name:ef,setupOnce(){},preprocessEvent(e,r,i){let o=i.getOptions();eu(ep,o.stackParser,o.maxValueLength,n,t,e,r)}}});var eg=n(33142);let ey=eg.n2,ev=0;function e_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!=typeof e)return e;try{let r=e.__sentry_wrapped__;if(r)return r;if((0,z.HK)(e))return e}catch(i){return e}let o=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>e_(e,t));return e.apply(this,i)}catch(o){throw ev++,setTimeout(()=>{ev--}),(0,B.$e)(e=>{e.addEventProcessor(e=>(t.mechanism&&((0,W.Db)(e,void 0,void 0),(0,W.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,B.Tb)(o)}),o}};try{for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a])}catch(s){}(0,z.$Q)(o,e),(0,z.xp)(e,"__sentry_wrapped__",o);try{let l=Object.getOwnPropertyDescriptor(o,"name");l.configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(c){}return o}var eb=n(15333),eS=n(22930);let ew={},ex={};function ek(e,t){ew[e]=ew[e]||[],ew[e].push(t)}function eE(e,t){ex[e]||(t(),ex[e]=!0)}function eT(e,t){let n=e&&ew[e];if(n)for(let r of n)try{r(t)}catch(i){eb.X&&$.kg.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat((0,eS.$P)(r),"\nError:"),i)}}let eI=null;function eC(e){let t="error";ek(t,e),eE(t,eR)}function eR(){eI=eg.n2.onerror,eg.n2.onerror=function(e,t,n,r,i){return eT("error",{column:r,error:i,line:n,msg:e,url:t}),!!eI&&!eI.__SENTRY_LOADER__&&eI.apply(this,arguments)},eg.n2.onerror.__SENTRY_INSTRUMENTED__=!0}let eA=null;function eO(e){let t="unhandledrejection";ek(t,e),eE(t,eM)}function eM(){eA=eg.n2.onunhandledrejection,eg.n2.onunhandledrejection=function(e){return eT("unhandledrejection",e),!eA||!!eA.__SENTRY_LOADER__||eA.apply(this,arguments)},eg.n2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var eN=n(39634),eD=n(95269),eP=n(56497);function ej(e,t){let n=eF(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function eL(e,t){return{exception:{values:[ej(e,t)]}}}function eF(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(eU.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(i){}return[]}let eU=/Minified React error #\d+;/i;function eB(e,t,n,r,i){let o;if((0,ec.VW)(t)&&t.error)return eL(e,t.error);if((0,ec.TX)(t)||(0,ec.fm)(t)){if("stack"in t)o=eL(e,t);else{let a=t.name||((0,ec.TX)(t)?"DOMError":"DOMException"),s=t.message?"".concat(a,": ").concat(t.message):a;o=eH(e,s,n,r),(0,W.Db)(o,s)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":"".concat(t.code)}),o}return(0,ec.VZ)(t)?eL(e,t):(0,ec.PO)(t)||(0,ec.cO)(t)?(o=function(e,t,n,r){let i=(0,B.s3)(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,ec.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,t){let{isUnhandledRejection:n}=t,r=(0,z.zf)(e),i=n?"promise rejection":"exception";if((0,ec.VW)(e))return"Event `ErrorEvent` captured as ".concat(i," with message `").concat(e.message,"`");
1if((0,ec.cO)(e)){let o=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(n){}}(e);return"Event `".concat(o,"` (type=").concat(e.type,") captured as ").concat(i)}return"Object captured as ".concat(i," with keys: ").concat(r)}(t,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,eD.Qy)(t,o)}};if(n){let s=eF(e,n);s.length&&(a.exception.values[0].stacktrace={frames:s})}return a}(e,t,n,i),(0,W.EG)(o,{synthetic:!0}),o):(o=eH(e,t,n,r),(0,W.Db)(o,"".concat(t),void 0),(0,W.EG)(o,{synthetic:!0}),o)}function eH(e,t,n,r){let i={};if(r&&n){let o=eF(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}if((0,ec.Le)(t)){let{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}let ez="GlobalHandlers",eW=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onerror:!0,onunhandledrejection:!0,...e};return{name:ez,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&eC(t=>{let{stackParser:n,attachStacktrace:r}=eq();if((0,B.s3)()!==e||ev>0)return;let{msg:i,url:o,line:a,column:s,error:l}=t,c=void 0===l&&(0,ec.HD)(i)?function(e,t,n,r){let i=(0,ec.VW)(e)?e.message:e,o="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(o=a[1],i=a[2]);let s={exception:{values:[{type:o,value:i}]}};return eZ(s,t,n,r)}(i,o,a,s):eZ(eB(n,l||i,void 0,r,!1),o,a,s);c.level="error",(0,B.eN)(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),t.onunhandledrejection&&eO(t=>{let{stackParser:n,attachStacktrace:r}=eq();if((0,B.s3)()!==e||ev>0)return;let i=function(e){if((0,ec.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return e}(t),o=(0,ec.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(i))}]}}:eB(n,i,void 0,r,!0);o.level="error",(0,B.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}},e$=K(ez,eW);function eZ(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=(0,ec.HD)(t)&&t.length>0?t:(0,eN.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function eq(){let e=(0,B.s3)(),t=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return t}let eX=["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"],eV="TryCatch",eG=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:eV,setupOnce(){t.setTimeout&&(0,z.hl)(ey,"setTimeout",eK),t.setInterval&&(0,z.hl)(ey,"setInterval",eK),t.requestAnimationFrame&&(0,z.hl)(ey,"requestAnimationFrame",eY),t.XMLHttpRequest&&"XMLHttpRequest"in ey&&(0,z.hl)(XMLHttpRequest.prototype,"send",eQ);let e=t.eventTarget;if(e){let n=Array.isArray(e)?e:eX;n.forEach(e0)}}}},eJ=K(eV,eG);function eK(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=n[0];return n[0]=e_(i,{mechanism:{data:{function:(0,eS.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,n)}}function eY(e){return function(t){return e.apply(this,[e_(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,eS.$P)(e)},handled:!1,type:"instrument"}})])}}function eQ(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
1=>{e in i&&"function"==typeof i[e]&&(0,z.hl)(i,e,function(t){let n={mechanism:{data:{function:e,handler:(0,eS.$P)(t)},handled:!1,type:"instrument"}},r=(0,z.HK)(t);return r&&(n.mechanism.data.handler=(0,eS.$P)(r)),e_(t,n)})}),e.apply(this,n)}}function e0(e){let t=ey[e]&&ey[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&((0,z.hl)(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=e_(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,eS.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(o){}return t.apply(this,[n,e_(r,{mechanism:{data:{function:"addEventListener",handler:(0,eS.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,z.hl)(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(o){}return e.call(this,t,n,r)}}))}function e1(){"console"in eg.n2&&$.RU.forEach(function(e){e in eg.n2.console&&(0,z.hl)(eg.n2.console,e,function(t){return $.LD[e]=t,function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];eT("console",{args:n,level:e});let i=$.LD[e];i&&i.apply(eg.n2.console,n)}})})}let e2=eg.n2;function e3(e){ek("dom",e),eE("dom",e5)}function e5(){if(!e2.document)return;let e=eT.bind(null,"dom"),t=e4(e,!0);e2.document.addEventListener("click",t,!1),e2.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=e2[t]&&e2[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,z.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[n]=a[n]||{refCount:0};if(!s.handler){let l=e4(e);s.handler=l,t.call(this,n,l,i)}s.refCount++}catch(c){}return t.call(this,n,r,i)}}),(0,z.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(a){}return e.call(this,t,n,r)}}))})}function e4(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(t){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,z.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,z.xp)(r,"_sentryId",(0,W.DM)());let s="keypress"===n.type?"input":n.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch(t){}return!0}(n)&&(e({event:n,name:s,global:t}),o=n.type,a=r?r._sentryId:void 0),clearTimeout(i),i=e2.setTimeout(()=>{a=void 0,o=void 0},1e3)}}let e6=eg.n2,e8="__sentry_xhr_v3__";function e7(e){ek("xhr",e),eE("xhr",e9)}function e9(){if(!e6.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;(0,z.hl)(e,"open",function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=Date.now(),o=(0,ec.HD)(n[0])?n[0].toUpperCase():void 0,a=function(e){if((0,ec.HD)(e))return e;try{return e.toString()}catch(t){}}(n[1]);if(!o||!a)return e.apply(this,n);this[e8]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let e=this[e8];if(e&&4===this.readyState){try{e.status_code=this.status}catch(t){}let n={args:[o,a],endTimestamp:Date.now(),startTimestamp:i,xhr:this};eT("xhr",n)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,z.hl)(this,"onreadystatechange",function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(),e.apply(this,n)}}):this.addEventListener("readystatechange",s),(0,z.hl)(this,"setRequestHeader",function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let[i,o]=n,a=this[e8];return a&&(0,ec.HD)(i)&&(0,ec.HD)(o)&&(a.request_headers[i.toLowerCase()]=o),e.apply(this,n)}}),e.apply(this,n)}}),(0,z.hl)(e,"send",function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=this[e8];if(!i)return e.apply(this,n);void 0!==n[0]&&(i.body=n[0]);let o={args:[i.method,i.url],startTimestamp:Date.now(),xhr:this};return eT("xhr",o),e.apply(this,n)}})}let te=(0,eg.Rf)();function tt(){if(!("fetch"in te))return!1;
1try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function tn(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tr(e){let t="fetch";ek(t,e),eE(t,ti)}function ti(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!tt())return!1;if(tn(te.fetch))return!0;let e=!1,t=te.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=tn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(r){eb.X&&$.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e})()&&(0,z.hl)(eg.n2,"fetch",function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:ta(t),method:to(n,"method")?String(n.method).toUpperCase():"GET"}}let r=e[0];return{url:ta(r),method:to(r,"method")?String(r.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:o},startTimestamp:Date.now()};return eT("fetch",{...a}),e.apply(eg.n2,n).then(e=>{let t={...a,endTimestamp:Date.now(),response:e};return eT("fetch",t),e},e=>{let t={...a,endTimestamp:Date.now(),error:e};throw eT("fetch",t),e})}})}function to(e,t){return!!e&&"object"==typeof e&&!!e[t]}function ta(e){return"string"==typeof e?e:e?to(e,"url")?e.url:e.toString?e.toString():"":""}let ts=(0,eg.Rf)(),tl=eg.n2;function tc(e){let t="history";ek(t,e),eE(t,tu)}function tu(){if(!function(){let e=ts.chrome,t=e&&e.app&&e.app.runtime,n="history"in ts&&!!ts.history.pushState&&!!ts.history.replaceState;return!t&&n}())return;let e=tl.onpopstate;function t(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=n.length>2?n[2]:void 0;if(i){let o=s,a=String(i);s=a,eT("history",{from:o,to:a})}return e.apply(this,n)}}tl.onpopstate=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=tl.location.href,o=s;if(s=i,eT("history",{from:o,to:i}),e)try{return e.apply(this,n)}catch(a){}},(0,z.hl)(tl.history,"pushState",t),(0,z.hl)(tl.history,"replaceState",t)}let td=["fatal","error","warning","log","info","debug"];function th(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}let tp="Breadcrumbs",tf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:tp,setupOnce(){},setup(e){var n;t.console&&function(e){let t="console";ek(t,e),eE(t,e1)}(function(t){var n;if((0,B.s3)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":td.includes(n)?n:"log",message:(0,en.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message="Assertion failed: ".concat((0,en.nK)(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1)}(0,B.n_)(r,{input:t.args,level:t.level})}),t.dom&&e3((n=t.dom,function(t){let r,i;if((0,B.s3)()!==e)return;let o="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(a=1024),"string"==typeof o&&(o=[o]);try{let s=t.event,l=s&&s.target?s.target:s;r=(0,eN.Rt)(l,{keyAttrs:o,maxStringLength:a}),i=(0,eN.iY)(l)}catch(c){r="<unknown>"}if(0===r.length)return;let u={category:"ui.".concat(t.name),message:r};i&&(u.data={"ui.component_name":i}),(0,B.n_)(u,{event:t.event,name:t.name,global:t.global})})),t.xhr&&e7(function(t){if((0,B.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[e8];if(!n||!r||!i)return;let{method:o,url:a,status_code:s,body:l}=i,c={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r};(0,B.n_)({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},c)}),t.fetch&&tr(function(t){if((0,B.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;
1if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,B.n_)({category:"fetch",data:i,level:"error",type:"http"},o)}else{let a=t.response,s={...t.fetchData,status_code:a&&a.status},l={input:t.args,response:a,startTimestamp:n,endTimestamp:r};(0,B.n_)({category:"fetch",data:s,type:"http"},l)}}}),t.history&&tc(function(t){if((0,B.s3)()!==e)return;let n=t.from,r=t.to,i=th(ey.location.href),o=n?th(n):void 0,a=th(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,B.n_)({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on&&e.on("beforeSendEvent",function(t){(0,B.s3)()===e&&(0,B.n_)({category:"sentry.".concat("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,W.jH)(t)},{event:t})})}}},tm=K(tp,tf),tg="LinkedErrors",ty=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit||5,n=e.key||"cause";return{name:tg,setupOnce(){},preprocessEvent(e,r,i){let o=i.getOptions();eu(ej,o.stackParser,o.maxValueLength,n,t,e,r)}}},tv=K(tg,ty),t_="HttpContext",tb=()=>({name:t_,setupOnce(){},preprocessEvent(e){if(!ey.navigator&&!ey.location&&!ey.document)return;let t=e.request&&e.request.url||ey.location&&ey.location.href,{referrer:n}=ey.document||{},{userAgent:r}=ey.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}),tS=K(t_,tb),tw="Dedupe",tx=()=>{let e;return{name:tw,setupOnce(){},processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&tT(e,t)&&tE(e,t))}(t,n)||function(e,t){let n=tI(t),r=tI(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&tT(e,t)&&tE(e,t))}(t,n)))return null}catch(r){}return e=t}}},tk=K(tw,tx);function tE(e,t){let n=tC(e),r=tC(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let i=0;i<r.length;i++){let o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function tT(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function tI(e){return e.exception&&e.exception.values&&e.exception.values[0]}function tC(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){}}let tR={};ey.Sentry&&ey.Sentry.Integrations&&(tR=ey.Sentry.Integrations);let tA={...tR,...j,...L},tO=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function tM(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return"".concat(s,"://").concat(l).concat(t&&i?":".concat(i):"")+"@".concat(n).concat(o?":".concat(o):"","/").concat(r?"".concat(r,"/"):r).concat(a)}function tN(e){let t=tO.exec(e);if(!t){(0,$.Cf)(()=>{console.error("Invalid Sentry Dsn: ".concat(e))});return}let[n,r,i="",o,a="",s]=t.slice(1),l="",c=s,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let d=c.match(/^\d+/);d&&(c=d[0])}return tD({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function tD(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tP(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function tj(e,t){let n=e[1];for(let r of n){let i=r[0].type,o=t(r,i);if(o)return!0}return!1}function tL(e,t){let n=t||new TextEncoder;return n.encode(e)}let tF={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function tU(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;
1return{name:t,version:n}}function tB(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:tM(r)},...i&&{trace:(0,z.Jr)({...i})}}}class tH extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var tz=n(47600),tW=n(29242),t$=n(15099);let tZ="Not capturing exception because it's already been captured.";class tq{captureException(e,t,n){if((0,W.YO)(e)){Z.X&&$.kg.log(tZ);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,o=(0,ec.Le)(e)?e:String(e),a=(0,ec.pt)(e)?this.eventFromMessage(o,t,n):this.eventFromException(e,n);return this._process(a.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,W.YO)(t.originalException)){Z.X&&$.kg.log(tZ);return}let r=t&&t.event_id,i=e.sdkProcessingMetadata||{},o=i.capturedSpanScope;return this._process(this._captureEvent(e,t,o||n).then(e=>{r=e})),r}captureSession(e){"string"!=typeof e.release?Z.X&&$.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,tz.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,eP.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Z.X&&$.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}addIntegration(e){let t=this._integrations[e.name];J(this,e,this._integrations),t||G(this,[e])}sendEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i,o;let a=tU(n),s=e.type&&"replay_event"!==e.type?e.type:"event";i=e,(o=n&&n.sdk)&&(i.sdk=i.sdk||{},i.sdk.name=i.sdk.name||o.name,i.sdk.version=i.sdk.version||o.version,i.sdk.integrations=[...i.sdk.integrations||[],...o.integrations||[]],i.sdk.packages=[...i.sdk.packages||[],...o.packages||[]]);let l=tB(e,a,r,t);delete e.sdkProcessingMetadata;let c=[{type:s},e];return tP(l,[c])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let r of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e,t){let n="string"==typeof e.data?tL(e.data,t):e.data;return[(0,z.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(r,this._options.transportOptions&&this._options.transportOptions.textEncoder));let i=this._sendEnvelope(n);i&&i.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=tU(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:tM(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return tP(o,[a])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r="".concat(e,":").concat(t);Z.X&&$.kg.log('Adding outcome: "'.concat(r,'"')),this._outcomes[r]=this._outcomes[r]+1||1}}captureAggregateMetrics(e){Z.X&&$.kg.log("Flushing aggregated metrics, number of metrics: ".concat(e.length));let t=function(e,t,n,r){let i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=tM(t));let o=function(e){let t=function(e){let t="";for(let n of e){let r=Object.entries(n.tags),i=r.length>0?"|#".concat(r.map(e=>{let[t,n]=e;return"".concat(t,":").concat(n)}).join(",")):"";t+="".concat(n.name,"@").concat(n.unit,":").concat(n.metric,"|").concat(n.metricType).
1concat(i,"|T").concat(n.timestamp,"\n")}return t}(e),n={type:"statsd",length:t.length};return[n,t]}(e);return tP(i,[o])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this._hooks[e]&&this._hooks[e].forEach(e=>e(...n))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&J(e,t,n)}),n}(this,e),G(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let o of(r=!0,i)){let a=o.mechanism;if(a&&!1===a.handled){n=!0;break}}let s="ok"===e.status,l=s&&0===e.errors||s&&n;l&&((0,tz.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new eP.cW(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(0,X.aF)(),i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),(0,t$.R)(i,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0},i=e.contexts&&e.contexts.trace;if(!i&&t){let{traceId:o,spanId:a,parentSpanId:s,dsc:l}=t;e.contexts={trace:{trace_id:o,span_id:a,parent_span_id:s},...e.contexts};let c=l||(0,tW._)(o,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:c,...e.sdkProcessingMetadata}}return e})}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then(e=>e.event_id,e=>{Z.X&&("log"===e.logLevel?$.kg.log(e.message):$.kg.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=tV(e),a=tX(e),s=e.type||"error",l="before send for type `".concat(s,"`");if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,eP.$2)(new tH("Discarding event because it's not included in the random sample (sampling rate = ".concat(i,")"),"log"));let c="replay_event"===s?"replay":s,u=e.sdkProcessingMetadata||{},d=u.capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new tH("An event processor returned `null`, will not send event.","log");let i=t.data&&!0===t.data.__sentry__;if(i)return n;let o=function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return tX(t)&&r?r(t,n):tV(t)&&i?i(t,n):t}(r,n,t);return function(e,t){let n="".concat(t," must return `null` or a valid event.");if((0,ec.J8)(e))return e.then(e=>{if(!(0,ec.PO)(e)&&null!==e)throw new tH(n);return e},e=>{throw new tH("".concat(t," rejected with ").concat(e))});if(!(0,ec.PO)(e)&&null!==e)throw new tH(n);return e}(o,l)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new tH("".concat(l," returned `null`, will not send event."),"log");let i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);let a=r.transaction_info;return o&&a&&r.transaction!==e.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof tH)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new tH("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,e=>{Z.X&&$.kg.error("Error while sending event:",e)});Z.X&&$.kg.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?tN(e):tD(e);if(t&&function(e){if(!eb.X)return!0;let{port:t,projectId:n,protocol:r}=e,i=["protocol","publicKey","host","projectId"].find(t=>!e[t]&&($.kg.error("Invalid Sentry Dsn: ".concat(t," missing")),!0));return!i&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||($.kg.error("Invalid Sentry Dsn: Invalid port ".concat(t)),!1):($.kg.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),!1):($.kg.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),!1))}(t))return t}(e.dsn):Z.X&&$.kg.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||"".concat("".concat(function(e){let t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}(e)).concat(e.projectId,"/envelope/"),"?").concat((0,z._j)({sentry_key:e.publicKey,sentry_version:"7",...r&&{sentry_client:"".concat(r.name,"/").concat(r.version)}}))}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}}function tX(e){return void 0===e.type}function tV(e){return"transaction"===e.type}var tG=n(60155),tJ=n(42969);class tK extends tq{eventFromException(e,t){return function(e,t,n,r){let i=n&&n.syntheticException||void 0,o=eB(e,t,i,r);return(0,W.EG)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,eP.WD)(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=r&&r.syntheticException||void 0,a=eH(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),(0,eP.WD)(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;let t=function(e,t){let{metadata:n,tunnel:r,dsn:i}=t,o={event_id:e.event_id,sent_at:new Date().toISOString(),...n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!i&&{dsn:tM(i)}};return tP(o,[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length||!this._dsn)return;let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,tG.yW)(),discarded_events:e}];return tP(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&tM(this._dsn));this._sendEnvelope(t)}constructor(e){let t=ey.SENTRY_SDK_SOURCE||(0,tJ.S)();U(e,"browser",["browser"],t),super(e),e.sendClientReports&&ey.document&&ey.document.addEventListener("visibilitychange",()=>{"hidden"===ey.document.visibilityState&&this._flushOutcomes()})}}
1function tY(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let tQ=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,t0=/\((\S*)(?::(\d+))(?::(\d+))\)/,t1=e=>{let t=tQ.exec(e);if(t){let n=t[2]&&0===t[2].indexOf("eval");if(n){let r=t0.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}let[i,o]=t7(t[1]||"?",t[2]);return tY(o,i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},t2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,t3=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t5=e=>{let t=t2.exec(e);if(t){let n=t[3]&&t[3].indexOf(" > eval")>-1;if(n){let r=t3.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}let i=t[3],o=t[1]||"?";return[o,i]=t7(o,i),tY(i,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},t4=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,t6=e=>{let t=t4.exec(e);return t?tY(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},t8=(0,eS.pE)(...[[30,t1],[50,t5],[40,t6]]),t7=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]};function t9(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return(e[t]||e.all||0)>n}function ne(e,t){let{statusCode:n,headers:r}=t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),o={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(let l of a.trim().split(",")){let[c,u,,,d]=l.split(":",5),h=parseInt(c,10),p=(isNaN(h)?60:h)*1e3;if(u)for(let f of u.split(";"))"metric_bucket"===f?(!d||d.split(";").includes("custom"))&&(o[f]=i+p):o[f]=i+p;else o.all=i+p}else s?o.all=i+function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;let r=Date.parse("".concat(e));return isNaN(r)?6e4:r-t}(s,i):429===n&&(o.all=i+6e4);return o}function nt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,eP.$2)(new tH("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new eP.cW((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,eP.WD)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||30),r={},i=e=>n.drain(e);function o(i){let o=[];if(tj(i,(t,n)=>{let i=tF[n];if(t9(r,i)){let a=nn(t,n);e.recordDroppedEvent("ratelimit_backoff",i,a)}else o.push(t)}),0===o.length)return(0,eP.WD)();let a=tP(i[0],o),s=t=>{tj(a,(n,r)=>{let i=nn(n,r);e.recordDroppedEvent(t,tF[r],i)})},l=()=>t({body:function(e,t){let[n,r]=e,i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[tL(i,t),e]:i.push("string"==typeof e?tL(e,t):e)}for(let a of r){let[s,l]=a;if(o("\n".concat(JSON.stringify(s),"\n")),"string"==typeof l||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch(u){c=JSON.stringify((0,eD.Fv)(l))}o(c)}}return"string"==typeof i?i:function(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}(i)}(a,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Z.X&&$.kg.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=ne(r,e),e),e=>{throw s("network_error"),e});return n.add(l).then(e=>e,e=>{if(e instanceof tH)return Z.X&&$.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,eP.WD)();throw e})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function nn(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function nr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){if(x)return x;if(tn(ey.fetch))return x=ey.fetch.bind(ey);let e=ey.document,t=ey.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(i){}return x=t.bind(ey)}(),n=0,r=0;return nt(e,function(i){let o=i.body.length;n+=o,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(s){return x=void 0,n-=o,r--,(0,eP.$2)(s)}})}function ni(e){return nt(e,function(t){return new eP.cW((n,r)=>{let i=new XMLHttpRequest;for(let o in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)})})}let no=[ea(),ee(),eG(),tf(),eW(),ty(),tx(),tb()];var na=n(83454);function ns(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)}),t=void 0)}return n}var nl=n(91251);function nc(e){let t=l?l.get(e):void 0;if(!t)return;let n={};for(let[,[r,i]]of t)n[r]||(n[r]=[]),n[r].push((0,z.Jr)(i));return n}let nu="sentry.source",nd="sentry.sample_rate",nh="sentry.op",np="sentry.origin";var nf=n(8072);function nm(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return"ok";if(e>
1=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);"unknown_error"!==n&&e.setStatus(n)}(T=N||(N={})).Ok="ok",T.DeadlineExceeded="deadline_exceeded",T.Unauthenticated="unauthenticated",T.PermissionDenied="permission_denied",T.NotFound="not_found",T.ResourceExhausted="resource_exhausted",T.InvalidArgument="invalid_argument",T.Unimplemented="unimplemented",T.Unavailable="unavailable",T.InternalError="internal_error",T.UnknownError="unknown_error",T.Cancelled="cancelled",T.AlreadyExists="already_exists",T.FailedPrecondition="failed_precondition",T.Aborted="aborted",T.OutOfRange="out_of_range",T.DataLoss="data_loss";class ng{add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}constructor(e=1e3){this._maxlen=e,this.spans=[]}}class ny{get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[nh]}set op(e){this.setAttribute(nh,e)}get origin(){return this._attributes[np]}set origin(e){this.setAttribute(np,e)}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?nl.i0:nl.ve}}startChild(e){let t=new ny({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);let n=(0,nf.G)(this);if(t.transaction=n,Z.X&&n){let r=e&&e.op||"< unknown op >",i=(0,nl.XU)(t).description||"< unknown name >",o=n.spanContext().spanId,a="[Tracing] Starting '".concat(r,"' span on transaction '").concat(i,"' (").concat(o,").");$.kg.log(a),this._logMessage=a}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return nm(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;let t=(0,nf.G)(this);if(Z.X&&t&&t.spanContext().spanId!==this._spanId){let n=this._logMessage;n&&$.kg.log(n.replace("Starting","Finishing"))}this._endTime=(0,nl.$k)(e)}toTraceparent(){return(0,nl.Hb)(this)}toContext(){return(0,z.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return(0,nl.wy)(this)}getSpanJSON(){return(0,z.Jr)({data:this._getData(),description:this._name,op:this._attributes[nh],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[np],_metrics_summary:nc(this),profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
1toJSON(){return this.getSpanJSON()}_getData(){let{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;return n||r?n&&r?{...e,...t}:n?e:t:void 0}constructor(e={}){this._traceId=e.traceId||(0,W.DM)(),this._spanId=e.spanId||(0,W.DM)().substring(16),this._startTime=e.startTimestamp||(0,tG.ph)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[np]:e.origin||"manual",[nh]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),void 0!==e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}}function nv(e){if(!H())return;let t=function(e){if(e.startTime){let t={...e};return t.startTimestamp=(0,nl.$k)(e.startTime),delete t.startTime,t}return e}(e),n=(0,X.Gd)(),r=e.scope?e.scope.getSpan():n_(),i=e.onlyIfParent&&!r;if(i)return;let o=e.scope||(0,B.nZ)(),a=o.clone();return function(e,t){var n;let r,{parentSpan:i,spanContext:o,forceTransaction:a,scope:s}=t;if(!H())return;let l=(0,X.aF)();if(i&&!a)r=i.startChild(o);else if(i){let c=(0,tW.j)(i),{traceId:u,spanId:d}=i.spanContext(),h=(0,nl.Tt)(i);r=e.startTransaction({traceId:u,parentSpanId:d,parentSampled:h,...o,metadata:{dynamicSamplingContext:c,...o.metadata}})}else{let{traceId:p,dsc:f,parentSpanId:m,sampled:g}={...l.getPropagationContext(),...s.getPropagationContext()};r=e.startTransaction({traceId:p,parentSpanId:m,parentSampled:g,...o,metadata:{dynamicSamplingContext:f,...o.metadata}})}return s.setSpan(r),(n=r)&&((0,z.xp)(n,nS,l),(0,z.xp)(n,nb,s)),r}(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:a})}function n_(){return(0,B.nZ)().getSpan()}let nb="_sentryScope",nS="_sentryIsolationScope";class nw extends ny{get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[nu]&&{source:this._attributes[nu]},...this._attributes[nd]&&{sampleRate:this._attributes[nd]}}}set metadata(e){this._metadata=e}setName(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";this._name=e,this.setAttribute(nu,t)}updateName(e){return this._name=e,this}initSpanRecorder(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new ng(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){let t=(0,nl.$k)(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){let e=super.toContext();return(0,z.Jr)({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return(0,tW.j)(this)}setHub(e){this._hub=e}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(Z.X&&$.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled){Z.X&&$.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&(0,nl.XU)(e).timestamp):[];if(this._trimEnd&&n.length>0){let r=n.map(e=>(0,nl.XU)(e).timestamp).filter(Boolean);this._endTime=r.reduce((e,t)=>e>t?e:t)}let{scope:i,isolationScope:o}={scope:this[nb],isolationScope:this[nS]},{metadata:a}=this,{source:s}=a,l={contexts:{...this._contexts,trace:(0,nl.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...a,capturedSpanScope:i,capturedSpanIsolationScope:o,...(0,z.Jr)({dynamicSamplingContext:(0,tW.j)(this)})},_metrics_summary:nc(this),...s&&{transaction_info:{source:s}}},c=Object.keys(this._measurements).length>0;return c&&(Z.X&&$.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),Z.X&&$.kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this._name,".")),l}constructor(e,t){super(e),this._contexts={},this._hub=t||(0,X.Gd)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;let n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}}let nx={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class nk extends ng{add(e){if(e.spanContext().spanId!==this.transactionSpanId){var t=this;let n=e.end;e.end=function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t._popActivity(e.spanContext().spanId),n.apply(e,i)},void 0===(0,nl.XU)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}}class nE extends nw{end(e){let t=(0,nl.$k)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){for(let n of(Z.X&&$.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;!(0,nl.XU)(e).timestamp&&(e.setStatus("cancelled"),e.end(t),Z.X&&$.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));let{start_timestamp:n,timestamp:r}=(0,nl.XU)(e),i=n&&n<t,o=(this._finalTimeout+this._idleTimeout)/1e3,a=r&&n&&r-n<o;if(Z.X){let s=JSON.stringify(e,void 0,2);i?a||$.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",s):$.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",s)}return i&&a}),Z.X&&$.kg.log("[Tracing] flushing IdleTransaction")}else Z.X&&$.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){let r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){let t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new nk(t,n,this.spanContext().spanId,e),Z.X&&$.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e){let{restartOnChildSpanChange:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{restartOnChildSpanChange:!0};this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(Z.X&&$.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.end(e))},this._idleTimeout)}
1_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Z.X&&$.kg.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,Z.X&&$.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(Z.X&&$.kg.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],Z.X&&$.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let t=(0,tG.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason="cancelled",this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Z.X&&$.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.end()):this._pingHeartbeat()}_pingHeartbeat(){Z.X&&$.kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout(()=>{this._beat()},this._heartbeatInterval)}constructor(e,t,n=nx.idleTimeout,r=nx.finalTimeout,i=nx.heartbeatInterval,o=!1,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",this._autoFinishAllowed=!a,o&&(Z.X&&$.kg.log("Setting idle transaction on scope. Span ID: ".concat(this.spanContext().spanId)),t.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.end())},this._finalTimeout)}}function nT(e){let t=e||(0,X.Gd)(),n=t.getScope();return n.getTransaction()}let nI=!1;function nC(){let e=nT();if(e){let t="internal_error";Z.X&&$.kg.log("[Tracing] Transaction: ".concat(t," -> Global error occured")),e.setStatus(t)}}function nR(e,t,n){let r;return H(t)?void 0!==e.sampled?(e.setAttribute(nd,Number(e.sampled)),e):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(nd,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(nd,Number(r))):(r=1,e.setAttribute(nd,r)),nA(r))?r?(e.sampled=Math.random()<r,e.sampled)?(Z.X&&$.kg.log("[Tracing] starting ".concat(e.op," transaction - ").concat((0,nl.XU)(e).description)),e):(Z.X&&$.kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(r),")")),e):(Z.X&&$.kg.log("[Tracing] Discarding transaction because ".concat("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(Z.X&&$.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e):(e.sampled=!1,e)}function nA(e){return(0,ec.i2)(e)||!("number"==typeof e||"boolean"==typeof e)?(Z.X&&$.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(e)," of type ").concat(JSON.stringify(typeof e),".")),!1):!(e<0)&&!(e>1)||(Z.X&&$.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(e,".")),!1)}function nO(){let e=this.getScope(),t=e.getSpan();return t?{"sentry-trace":(0,nl.Hb)(t)}:{}}function nM(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&(Z.X&&$.kg.error("A transaction was started with instrumenter=`".concat(o,"`, but the SDK is configured with the `").concat(i,"` instrumenter.\nThe transaction will not be sampled. Please use the ").concat(i," instrumentation to start transactions.")),e.sampled=!1);let a=new nw(e,this);return(a=nR(a,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t})).isRecording()&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function nN(e,t,n,r,i,o,a){let s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=e.getClient(),c=l&&l.getOptions()||{},u=new nE(t,e,n,r,a,i,s);return(u=nR(u,c,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...o})).isRecording()&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u}function nD(){let e=(0,X.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=nM),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=nO),nI||(nI=!0,eC(nC),eO(nC)))}nC.tag="sentry_tracingErrorCallback";var nP=n(83379);let nj=eg.n2;function nL(){nj.document&&nj.document.addEventListener("visibilitychange",()=>{let e=nT();if(nj.document.hidden&&e){let{op:t,status:n}=(0,nl.XU)(e);n||e.setStatus("cancelled"),e.setTag("visibilitychange","document.hidden"),e.end()}})}let nF=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},nU=()=>"v3-".concat(Date.now(),"-").concat(Math.floor(Math.random()*(9e12-1))+1e12),nB=()=>{let e=nj.performance.timing,t=nj.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},nH=()=>nj.__WEB_VITALS_POLYFILL__?nj.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||nB()):nj.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nz=()=>{let e=nH();return e&&e.activationStart||0},nW=(e,t)=>
1{let n=nH(),r="navigate";return n&&(r=nj.document&&nj.document.prerendering||nz()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:nU(),navigationType:r}},n$=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(i){}},nZ=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===nj.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};nj.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},nq=e=>{let t;let n=nW("CLS",0),r=0,i=[],o=e=>{e.forEach(e=>{if(!e.hadRecentInput){let o=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-o.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>n.value&&(n.value=r,n.entries=i,t&&t())}})},a=n$("layout-shift",o);if(a){t=nF(e,n);let s=()=>{o(a.takeRecords()),t(!0)};return nZ(s),s}},nX=-1,nV=()=>{nj.document&&nj.document.visibilityState&&(nX="hidden"!==nj.document.visibilityState||nj.document.prerendering?1/0:0)},nG=()=>{nZ(e=>{let{timeStamp:t}=e;nX=t},!0)},nJ=()=>(nX<0&&(nV(),nG()),{get firstHiddenTime(){return nX}}),nK=e=>{let t;let n=nJ(),r=nW("FID"),i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))},o=e=>{e.forEach(i)},a=n$("first-input",o);t=nF(e,r),a&&nZ(()=>{o(a.takeRecords()),a.disconnect()},!0)},nY=0,nQ=1/0,n0=0,n1=e=>{e.forEach(e=>{e.interactionId&&(nQ=Math.min(nQ,e.interactionId),nY=(n0=Math.max(n0,e.interactionId))?(n0-nQ)/7+1:0)})},n2=()=>c?nY:performance.interactionCount||0,n3=()=>{"interactionCount"in performance||c||(c=n$("event",n1,{type:"event",buffered:!0,durationThreshold:0}))},n5=()=>n2(),n4=[],n6={},n8=e=>{let t=n4[n4.length-1],n=n6[e.interactionId];if(n||n4.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let r={id:e.interactionId,latency:e.duration,entries:[e]};n6[r.id]=r,n4.push(r)}n4.sort((e,t)=>t.latency-e.latency),n4.splice(10).forEach(e=>{delete n6[e.id]})}},n7=()=>{let e=Math.min(n4.length-1,Math.floor(n5()/50));return n4[e]},n9=(e,t)=>{let n;t=t||{},n3();let r=nW("INP"),i=e=>{e.forEach(e=>{if(e.interactionId&&n8(e),"first-input"===e.entryType){let t=!n4.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime));t&&n8(e)}});let t=n7();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},o=n$("event",i,{durationThreshold:t.durationThreshold||40});n=nF(e,r,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),nZ(()=>{i(o.takeRecords()),r.value<0&&n5()>0&&(r.value=0,r.entries=[]),n(!0)}))},re={},rt=e=>{let t;let n=nJ(),r=nW("LCP"),i=e=>{let i=e[e.length-1];if(i){let o=Math.max(i.startTime-nz(),0);o<n.firstHiddenTime&&(r.value=o,r.entries=[i],t())}},o=n$("largest-contentful-paint",i);if(o){t=nF(e,r);let a=()=>{re[r.id]||(i(o.takeRecords()),o.disconnect(),re[r.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{nj.document&&addEventListener(e,a,{once:!0,capture:!0})}),nZ(a,!0),a}},rn=e=>{nj.document&&(nj.document.prerendering?addEventListener("prerenderingchange",()=>rn(e),!0):"complete"!==nj.document.readyState?addEventListener("load",()=>rn(e),!0):setTimeout(e,0))},rr=(e,t)=>{t=t||{};let n=nW("TTFB"),r=nF(e,n,t.reportAllChanges);rn(()=>{let e=nH();if(e){if(n.value=Math.max(e.responseStart-nz(),0),n.value<0||n.value>performance.now())return;n.entries=[e],r(!0)}})},ri={},ro={};function ra(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return rf("lcp",e,rd,h,t)}function rs(e,t){return rm(e,t),ro[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),n$(e,t=>{rl(e,{entries:t})},t)}(e),ro[e]=!0),rg(e,t)}function rl(e,t){let n=ri[e];if(n&&n.length)for(let r of n)try{r(t)}catch(i){}}function rc(){return nq(e=>{rl("cls",{metric:e}),u=e})}function ru(){return nK(e=>{rl("fid",{metric:e}),d=e})}function rd(){return rt(e=>{rl("lcp",{metric:e}),h=e})}function rh(){return rr(e=>{rl("ttfb",{metric:e}),p=e})}function rp(){return n9(e=>{rl("inp",{metric:e}),f=e})}function rf(e,t,n,r){let i,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return rm(e,t),ro[e]||(i=n(),ro[e]=!0),r&&t({metric:r}),rg(e,t,o?i:void 0)}function rm(e,t){ri[e]=ri[e]||[],ri[e].push(t)}function rg(e,t,n){return()=>{n&&n();let r=ri[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function ry(e){return[{type:"span"},e]}function rv(e){return"number"==typeof e&&isFinite(e)}function r_(e,t){let{startTimestamp:n,...r}=t;return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild({startTimestamp:n,...r})}function rb(e){return e/1e3}function rS(){return nj&&nj.addEventListener&&nj.performance}let rw=0,rx={};function rk(){let e=rS();if(e&&tG.Z1){e.mark&&nj.performance.mark("sentry-tracing-init");let t=rf("fid",e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];if(!n)return;let r=rb(tG.Z1),i=rb(n.startTime);rx.fid={value:t.value,unit:"millisecond"},rx["mark.fid"]={value:r+i,unit:"second"}},ru,d),n=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return rf("cls",e,rc,u,t)}(e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&(rx.cls={value:t.value,unit:""},g=n)},!0),r=ra(e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&(rx.lcp={value:t.value,unit:"millisecond"},m=n)},!0),i=rf("ttfb",e=>{let{metric:t}=e,n=t.entries[t.entries.length-1];n&&(rx.ttfb={value:t.value,unit:"millisecond"})},rh,p);return()=>{t(),n(),r(),i()}}return()=>void 0}function rE(){rs("longtask",e=>{let{entries:t}=e;for(let n of t){let r=nT();if(!r)return;let i=rb(tG.Z1+n.startTime),o=rb(n.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+o})}})}function rT(){rs("event",e=>{let{entries:t}=e;for(let n of t){let r=nT();if(!r)return;if("click"===n.name){let i=rb(tG.Z1+n.startTime),o=rb(n.duration),a={description:(0,eN.Rt)(n.target),op:"ui.interaction.".concat(n.name),origin:"auto.ui.browser.metrics",startTimestamp:i,endTimestamp:i+o},s=(0,eN.iY)(n.target);s&&(a.attributes={"ui.component_name":s}),r.startChild(a)}}})}function rI(e,t){let n=rS();if(n&&tG.Z1){let r=rf("inp",n=>{let r,{metric:i}=n;if(void 0===i.value)return;let o=i.entries.find(e=>e.duration===i.value&&void 0!==rC[e.name]),a=(0,B.s3)();if(!o||!a)return;let s=rC[o.name],l=a.getOptions(),c=rb(tG.Z1+o.startTime),u=rb(i.value),d=void 0!==o.interactionId?e[o.interactionId]:void 0;if(void 0===d)return;let{routeName:h,parentContext:p,activeTransaction:f,user:m,replayId:g}=d,y=void 0!==m?m.email||m.id||m.ip_address:void 0,v=void 0!==f?f.getProfileId():void 0,_=new ny({startTimestamp:c,endTimestamp:c+u,op:"ui.interaction.".concat(s),name:(0,eN.Rt)(o.target),attributes:{release:l.release,environment:l.environment,transaction:h,...void 0!==y&&""!==y?{user:y}:{},...void 0!==v?{profile_id:v}:{},...void 0!==g?{replay_id:g}:{}},exclusiveTime:i.value,measurements:{inp:{value:i.value,unit:"millisecond"}}}),b=!!H(l)&&!!nA(r=void 0!==p&&"function"==typeof l.tracesSampler?l.tracesSampler({transactionContext:p,name:p.name,parentSampled:p.parentSampled,attributes:{...p.data,...p.attributes},location:nj.location}):void 0!==p&&void 0!==p.sampled?p.sampled:void 0!==l.tracesSampleRate?l.tracesSampleRate:1)&&(!0===r?t:!1===r?0:r*t);if(b&&Math.random()<b){let S=_?function(e,t){let n={sent_at:new Date().toISOString()};t&&(n.dsn=tM(t));let r=e.map(ry);return tP(n,r)}([_],a.getDsn()):void 0,w=a&&a.getTransport();w&&S&&w.send(S).then(null,e=>{});return}},rp,f);return()=>{r()}}return()=>void 0}let rC={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 rR(e){let t=rS();if(!t||!nj.performance.getEntries||!tG.Z1)return;let n=rb(tG.Z1),r=t.getEntries(),{op:i,start_timestamp:o}=(0,nl.XU)(e);
1if(r.slice(rw).forEach(t=>{let r=rb(t.startTime),i=rb(t.duration);if("navigation"!==e.op||!o||!(n+r<o))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{rA(e,t,r,n)}),rA(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),rA(e,t,"fetch",n,"cache","domainLookupStart"),rA(e,t,"domainLookup",n,"DNS"),t.responseEnd&&(r_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+rb(t.requestStart),endTimestamp:n+rb(t.responseEnd)}),r_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+rb(t.responseStart),endTimestamp:n+rb(t.responseEnd)}));break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let o=i+n;r_(e,{description:t.name,endTimestamp:o+r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:o})})(e,t,r,i,n);let a=nJ(),s=t.startTime<a.firstHiddenTime;"first-paint"===t.name&&s&&(rx.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(rx.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a=th(n),s={};rO(s,t,"transferSize","http.response_transfer_size"),rO(s,t,"encodedBodySize","http.response_content_length"),rO(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop()),a.host&&(s["server.address"]=a.host),s["url.same_origin"]=n.includes(nj.location.origin);let l=o+r;r_(e,{description:n.replace(nj.location.origin,""),endTimestamp:l+i,op:t.initiatorType?"resource.".concat(t.initiatorType):"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:s})})(e,t,t.name,r,i,n)}}),rw=Math.max(r.length-1,0),function(e){let t=nj.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),rv(n.rtt)&&(rx["connection.rtt"]={value:n.rtt,unit:"millisecond"})),rv(t.deviceMemory)&&e.setTag("deviceMemory","".concat(t.deviceMemory," GB")),rv(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){(function(e){let t=nH();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(rx),["fcp","fp","lcp"].forEach(e=>{if(!rx[e]||!o||n>=o)return;let t=rx[e].value,r=n+rb(t);rx[e].value=Math.abs((r-o)*1e3)});let a=rx["mark.fid"];a&&rx.fid&&(r_(e,{description:"first input delay",endTimestamp:a.value+rb(rx.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:a.value}),delete rx["mark.fid"]),"fcp"in rx||delete rx.cls,Object.keys(rx).forEach(e=>{!function(e,t,n){let r=nT();r&&r.setMeasurement(e,t,n)}(e,rx[e].value,rx[e].unit)}),m&&(m.element&&e.setTag("lcp.element",(0,eN.Rt)(m.element)),m.id&&e.setTag("lcp.id",m.id),m.url&&e.setTag("lcp.url",m.url.trim().slice(0,200)),e.setTag("lcp.size",m.size)),g&&g.sources&&g.sources.forEach((t,n)=>e.setTag("cls.source.".concat(n+1),(0,eN.Rt)(t.node)))}m=void 0,g=void 0,rx={}}function rA(e,t,n,r,i,o){let a=o?t[o]:t["".concat(n,"End")],s=t["".concat(n,"Start")];s&&a&&r_(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+rb(s),endTimestamp:r+rb(a)})}function rO(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}var rM=n(34920);let rN=["localhost",/^\/(?!\/)/],rD={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:rN,tracePropagationTargets:rN};function rP(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a}={traceFetch:rD.traceFetch,traceXHR:rD.traceXHR,...e},s="function"==typeof o?o:e=>!0,l=e=>(0,en.U0)(e,r||i||rN),c={};t&&tr(e=>{let t=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto.http.browser";if(!H()||!e.fetchData)return;let o=t(e.fetchData.url);if(e.endTimestamp&&o){let a=e.fetchData.__span;if(!a)return;let s=r[a];s&&(function(e,t){if(t.response){nm(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}(s,e),delete r[a]);return}let l=(0,B.nZ)(),c=(0,B.s3)(),{method:u,url:d}=e.fetchData,h=function(e){try{let t=new URL(e);return t.href}catch(n){return}}(d),p=h?th(h).host:void 0,f=o?nv({name:"".concat(u," ").concat(d),onlyIfParent:!0,attributes:{url:d,type:"fetch","http.method":u,"http.url":h,"server.address":p,[np]:i},op:"http.client"}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f),n(e.fetchData.url)&&c){let m=e.args[0];e.args[1]=e.args[1]||{};let g=e.args[1];g.headers=function(e,t,n,r,i){let o=i||n.getSpan(),a=(0,X.aF)(),{traceId:s,spanId:l,sampled:c,dsc:u}={...a.getPropagationContext(),...n.getPropagationContext()},d=o?(0,nl.Hb)(o):(0,nP.$p)(s,l,c),h=(0,rM.IQ)(u||(o?(0,tW.j)(o):(0,tW._)(s,t,n))),p=r.headers||("undefined"!=typeof Request&&(0,ec.V9)(e,Request)?e.headers:void 0);if(!p)return{"sentry-trace":d,baggage:h};if("undefined"!=typeof Headers&&(0,ec.V9)(p,Headers)){let f=new Headers(p);return f.append("sentry-trace",d),h&&f.append(rM.bU,h),f}if(Array.isArray(p)){let m=[...p,["sentry-trace",d]];return h&&m.push([rM.bU,h]),m}{let g="baggage"in p?p.baggage:void 0,y=[];return Array.isArray(g)?y.push(...g):g&&y.push(g),h&&y.push(h),{...p,"sentry-trace":d,baggage:y.length>0?y.join(","):void 0}}}(m,c,l,g,f)}return f}(e,s,l,c);if(t){let n=rF(e.fetchData.url),r=n?th(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}a&&t&&rj(t)}),n&&e7(e=>{let t=function(e,t,n,r){let i=e.xhr,o=i&&i[e8];if(!H()||!i||i.__sentry_own_request__||!o)return;let a=t(o.url);if(e.endTimestamp&&a){let s=i.__sentry_xhr_span_id__;if(!s)return;let l=r[s];l&&void 0!==o.status_code&&(nm(l,o.status_code),l.end(),delete r[s]);return}let c=(0,B.nZ)(),u=(0,X.aF)(),d=rF(o.url),h=d?th(d).host:void 0,p=a?nv({name:"".concat(o.method," ").concat(o.url),onlyIfParent:!0,attributes:{type:"xhr","http.method":o.method,"http.url":d,url:o.url,"server.address":h,[np]:"auto.http.browser"},op:"http.client"}):void 0;p&&(i.__sentry_xhr_span_id__=p.spanContext().spanId,r[i.__sentry_xhr_span_id__]=p);let f=(0,B.s3)();if(i.setRequestHeader&&n(o.url)&&f){let{traceId:m,spanId:g,sampled:y,dsc:v}={...u.getPropagationContext(),...c.getPropagationContext()},_=p?(0,nl.Hb)(p):(0,nP.$p)(m,g,y),b=(0,rM.IQ)(v||(p?(0,tW.j)(p):(0,tW._)(m,f,c)));(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(rM.bU,n)}catch(r){}})(i,_,b)}return p}(e,s,l,c);a&&t&&rj(t)})}function rj(e){let{url:t}=(0,nl.XU)(e).data||{};if(!t||"string"!=typeof t)return;let n=rs("resource",r=>{let{entries:i}=r;
1i.forEach(r=>{if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)){let i=function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),tG.Z1)?[...r,["http.request.redirect_start",rL(e.redirectStart)],["http.request.fetch_start",rL(e.fetchStart)],["http.request.domain_lookup_start",rL(e.domainLookupStart)],["http.request.domain_lookup_end",rL(e.domainLookupEnd)],["http.request.connect_start",rL(e.connectStart)],["http.request.secure_connection_start",rL(e.secureConnectionStart)],["http.request.connection_end",rL(e.connectEnd)],["http.request.request_start",rL(e.requestStart)],["http.request.response_start",rL(e.responseStart)],["http.request.response_end",rL(e.responseEnd)]]:r}(r);i.forEach(t=>e.setAttribute(...t)),setTimeout(n)}})})}function rL(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((tG.Z1||performance.timeOrigin)+e)/1e3}function rF(e){try{let t=new URL(e,nj.location.origin);return t.href}catch(n){return}}let rU={...nx,markBackgroundTransactions:!0,routingInstrumentation:function(e){let t,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!nj||!nj.location)return;let i=nj.location.href;n&&(t=e({name:nj.location.pathname,startTimestamp:tG.Z1?tG.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&tc(n=>{let{to:r,from:o}=n;if(void 0===o&&i&&-1!==i.indexOf(r)){i=void 0;return}o!==r&&(i=void 0,t&&t.end(),t=e({name:nj.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rD};class rB{setupOnce(e,t){this._getCurrentHub=t;let n=t(),r=n.getClient(),i=r&&r.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:a,startTransactionOnPageLoad:s,markBackgroundTransactions:l,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:h,_experiments:p}=this.options,f=i&&i.tracePropagationTargets,m=f||this.options.tracePropagationTargets;o(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},s,a),l&&nL(),p.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),rP({traceFetch:c,traceXHR:u,tracePropagationTargets:m,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}_createRouteTransaction(e){let t;if(!this._getCurrentHub)return;let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:o,heartbeatInterval:a}=this.options,s="pageload"===e.op;if(s){let l=s?rH("sentry-trace"):"",c=s?rH("baggage"):void 0,{traceId:u,dsc:d,parentSpanId:h,sampled:p}=(0,nP.pT)(l,c);t={traceId:u,parentSpanId:h,parentSampled:p,...e,metadata:{...e.metadata,dynamicSamplingContext:d},trimEnd:!0}}else t={trimEnd:!0,...e};let f="function"==typeof r?r(t):t,m=void 0===f?{...t,sampled:!1}:f;m.metadata=m.name!==t.name?{...m.metadata,source:"custom"}:m.metadata,this._latestRoute.name=m.name,this._latestRoute.context=m,m.sampled;let{location:g}=nj,y=nN(n,m,i,o,!0,{location:g},a,s);return s&&nj.document&&(nj.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nj.document.readyState)&&y.sendAutoFinishSignal()}),["interactive","complete"].includes(nj.document.readyState)&&y.sendAutoFinishSignal()),y.registerBeforeFinishCallback(e=>{this._collectWebVitals(),rR(e)}),y}_registerInteractionListener(){let e;let t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i=nT();if(i&&i.op&&["navigation","pageload"].includes(i.op)||(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)||!this._latestRoute.name)return;let o=this._getCurrentHub(),{location:a}
1=nj,s={name:this._latestRoute.name,op:"ui.action.click",trimEnd:!0,data:{[nu]:this._latestRoute.context?function(e){let t=e.attributes&&e.attributes[nu],n=e.data&&e.data[nu],r=e.metadata&&e.metadata.source;return t||n||r}(this._latestRoute.context):"url"}};e=nN(o,s,t,n,!0,{location:a},r)};["click"].forEach(e=>{nj.document&&addEventListener(e,t,{once:!1,capture:!0})})}_registerInpInteractionListener(){let e=e=>{let{entries:t}=e,n=(0,B.s3)(),r=void 0!==n&&void 0!==n.getIntegrationByName?n.getIntegrationByName("Replay"):void 0,i=void 0!==r?r.getReplayId():void 0,o=nT(),a=(0,B.nZ)(),s=void 0!==a?a.getUser():void 0;t.forEach(e=>{if("duration"in e){let t=e.interactionId;if(void 0===t)return;let n=this._interactionIdToRouteNameMapping[t],r=e.duration,a=e.startTime,l=Object.keys(this._interactionIdToRouteNameMapping),c=l.length>0?l.reduce((e,t)=>this._interactionIdToRouteNameMapping[e].duration<this._interactionIdToRouteNameMapping[t].duration?e:t):void 0;if("first-input"===e.entryType){let u=l.map(e=>this._interactionIdToRouteNameMapping[e]).some(e=>e.duration===r&&e.startTime===a);if(u)return}if(t){if(n)n.duration=Math.max(n.duration,r);else if(l.length<10||void 0===c||r>this._interactionIdToRouteNameMapping[c].duration){let d=this._latestRoute.name,h=this._latestRoute.context;d&&h&&(c&&Object.keys(this._interactionIdToRouteNameMapping).length>=10&&delete this._interactionIdToRouteNameMapping[c],this._interactionIdToRouteNameMapping[t]={routeName:d,duration:r,parentContext:h,user:s,activeTransaction:o,replayId:i,startTime:a})}}}})};rs("event",e),rs("first-input",e)}constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,nD(),this.options={...rU,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=rk(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&rI(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&rE(),this.options._experiments.enableInteractions&&rT(),this._latestRoute={name:void 0,context:void 0}}}function rH(e){let t=(0,eN.qT)("meta[name=".concat(e,"]"));return t?t.getAttribute("content"):void 0}let rz={...nx,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...rD},rW=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nD(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);let t={...rz,...e},n=rk(),r={};t.enableInp&&rI(r,t.interactionsSampleRate),t.enableLongTask&&rE(),t._experiments.enableInteractions&&rT();let i={name:void 0,context:void 0};function o(e){let r;let o=(0,X.Gd)(),{beforeStartSpan:a,idleTimeout:s,finalTimeout:l,heartbeatInterval:c}=t,u="pageload"===e.op;if(u){let d=u?rq("sentry-trace"):"",h=u?rq("baggage"):void 0,{traceId:p,dsc:f,parentSpanId:m,sampled:g}=(0,nP.pT)(d,h);r={traceId:p,parentSpanId:m,parentSampled:g,...e,metadata:{...e.metadata,dynamicSamplingContext:f},trimEnd:!0}}else r={trimEnd:!0,...e};let y=a?a(r):r;y.metadata=y.name!==r.name?{...y.metadata,source:"custom"}:y.metadata,i.name=y.name,i.context=y,y.sampled;let{location:v}=nj,_=nN(o,y,s,l,!0,{location:v},c,u);return u&&nj.document&&(nj.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(nj.document.readyState)&&_.sendAutoFinishSignal()}),["interactive","complete"].includes(nj.document.readyState)&&_.sendAutoFinishSignal()),_.registerBeforeFinishCallback(e=>{n(),rR(e)}),_}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){let n;let a=e.getOptions(),{markBackgroundSpan:s,traceFetch:l,traceXHR:c,shouldCreateSpanForRequest:u,enableHTTPTimings:d,_experiments:h}=t,p=a&&a.tracePropagationTargets,f=p||t.tracePropagationTargets,m=nj.location&&nj.location.href;if(e.on&&(e.on("startNavigationSpan",e=>{n&&n.end(),n=o({op:"navigation",...e})}),e.on("startPageLoadSpan",e=>{n&&n.end(),n=o({op:"pageload",...e})})),t.instrumentPageLoad&&e.emit&&nj.location){let g={name:nj.location.pathname,startTimestamp:tG.Z1?tG.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[nu]:"url"}};r$(e,g)}t.instrumentNavigation&&e.emit&&nj.location&&tc(t=>{let{to:n,from:r}=t;if(void 0===r&&m&&-1!==m.indexOf(n)){m=void 0;return}if(r!==n){m=void 0;
1let i={name:nj.location.pathname,origin:"auto.navigation.browser",attributes:{[nu]:"url"}};rZ(e,i)}}),s&&nL(),h.enableInteractions&&function(e,t){let n;let r=()=>{let{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=e,a=nT();if(a&&a.op&&["navigation","pageload"].includes(a.op)||(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name))return;let{location:s}=nj,l={name:t.name,op:"ui.action.click",trimEnd:!0,data:{[nu]:t.context?function(e){let t=e.attributes&&e.attributes[nu],n=e.data&&e.data[nu],r=e.metadata&&e.metadata.source;return t||n||r}(t.context):"url"}};n=nN((0,X.Gd)(),l,r,i,!0,{location:s},o)};["click"].forEach(e=>{nj.document&&addEventListener(e,r,{once:!1,capture:!0})})}(t,i),t.enableInp&&function(e,t){let n=n=>{let{entries:r}=n,i=(0,B.s3)(),o=void 0!==i&&void 0!==i.getIntegrationByName?i.getIntegrationByName("Replay"):void 0,a=void 0!==o?o.getReplayId():void 0,s=nT(),l=(0,B.nZ)(),c=void 0!==l?l.getUser():void 0;r.forEach(n=>{if("duration"in n){let r=n.interactionId;if(void 0===r)return;let i=e[r],o=n.duration,l=n.startTime,u=Object.keys(e),d=u.length>0?u.reduce((t,n)=>e[t].duration<e[n].duration?t:n):void 0;if("first-input"===n.entryType){let h=u.map(t=>e[t]).some(e=>e.duration===o&&e.startTime===l);if(h)return}if(r){if(i)i.duration=Math.max(i.duration,o);else if(u.length<10||void 0===d||o>e[d].duration){let p=t.name,f=t.context;p&&f&&(d&&Object.keys(e).length>=10&&delete e[d],e[r]={routeName:p,duration:o,parentContext:f,user:c,activeTransaction:s,replayId:a,startTime:l})}}}})};rs("event",n),rs("first-input",n)}(r,i),rP({traceFetch:l,traceXHR:c,tracePropagationTargets:f,shouldCreateSpanForRequest:u,enableHTTPTimings:d})},options:t}};function r$(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);let n=n_(),r=n&&(0,nl.XU)(n).op;return"pageload"===r?n:void 0}function rZ(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);let n=n_(),r=n&&(0,nl.XU)(n).op;return"navigation"===r?n:void 0}function rq(e){let t=(0,eN.qT)("meta[name=".concat(e,"]"));return t?t.getAttribute("content"):void 0}let rX={"routing.instrumentation":"next-app-router"};var rV=n(11163),rG=n.n(rV),rJ=n(82089);let rK={"routing.instrumentation":"next-pages-router"},rY=(0,B.s3)();function rQ(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=!ey.document.getElementById("__NEXT_DATA__");o?function(e){let t,n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=ey.location.pathname;if(n){let s={name:a,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:rX,startTimestamp:tG.Z1?tG.Z1/1e3:void 0,metadata:{source:"url"}};t=e(s),i(s)}r&&tr(n=>{if(void 0!==n.endTimestamp||"GET"!==n.fetchData.method)return;let r=function(e){if(!e[0]||"object"!=typeof e[0]||void 0===e[0].searchParams||!e[1]||"object"!=typeof e[1]||!("headers"in e[1]))return null;try{let t=e[0],n=e[1].headers;if("1"!==n.RSC||"1"===n["Next-Router-Prefetch"])return null;return{targetPathname:t.pathname}}catch(r){return null}}(n.args);if(null===r)return;let i=r.targetPathname,s={...rX,from:a};a=i,t&&t.end();let l={name:i,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:s,metadata:{source:"url"}};e(l),o(l)})}(e,t,n,r||(()=>void 0),i||(()=>void 0)):function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,{route:o,params:a,sentryTrace:s,baggage:l}=function(){let e;let t=ey.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(n){rJ.X&&$.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:i,query:o,props:a}=e;return r.route=i,r.params=o,a&&a.pageProps&&(r.sentryTrace=a.pageProps._sentryTraceData,r.baggage=a.pageProps._sentryBaggage),r}(),{traceparentData:c,dynamicSamplingContext:u,propagationContext:d}=(0,nP.KA)(s,l);if((0,B.nZ)().setPropagationContext(d),E=o||ey.location.pathname,t){let h={name:E,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:rK,startTimestamp:tG.Z1?tG.Z1/1e3:void 0,...a&&rY&&rY.getOptions().sendDefaultPii&&{data:a},...c,metadata:{source:o?"route":"url",dynamicSamplingContext:c&&!u?{}:u}};k=e(h),r(h)}n&&rG().events.on("routeChangeStart",t=>{let n,r;
1let o=t.split(/[\?#]/,1)[0],a=function(e){let t=(ey.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp("^".concat(r).concat(n,"(?:/)?$"))}(t);return e.match(n)})}(o);a?(n=a,r="route"):(n=o,r="url");let s={...rK,from:E};E=n,k&&k.end();let l={name:n,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:s,metadata:{source:r}},c=e(l);if(i(l),c){let u=c.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),d=()=>{u.end(),rG().events.off("routeChangeComplete",d)};rG().events.on("routeChangeComplete",d)}})}(e,t,n,r||(()=>void 0),i||(()=>void 0))}class r0 extends rB{constructor(e){super({tracingOrigins:[...rD.tracingOrigins,/^(api\/)/],routingInstrumentation:rQ,...e})}}function r1(e){let t=rW({tracingOrigins:[...rD.tracingOrigins,/^(api\/)/],...e,instrumentNavigation:!1,instrumentPageLoad:!1});return{...t,afterAllSetup(n){let r=e=>{r$(n,e)},i=e=>{rZ(n,e)};rQ(()=>void 0,!1,ns([e,"optionalAccess",e=>e.instrumentNavigation]),r,i),t.afterAllSetup(n),rQ(()=>void 0,ns([e,"optionalAccess",e=>e.instrumentPageLoad]),!1,r,i)}}}let r2=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function r3(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r="",i=!1;for(let o=t.length-1;o>=-1&&!i;o--){let a=o>=0?t[o]:"/";a&&(r="".concat(a,"/").concat(r),i="/"===a.charAt(0))}return r=(function(e,t){let n=0;for(let r=e.length-1;r>=0;r--){let i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(r.split("/").filter(e=>!!e),!i).join("/"),(i?"/":"")+r||"."}function r5(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let r4="RewriteFrames",r6=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.root,n=e.prefix||"app:///",r=e.iteratee||(e=>{if(!e.filename)return e;let r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),i=/^\//.test(e.filename);if(r||i){var o;let a;let s=r?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,l=t?function(e,t){e=r3(e).slice(1),t=r3(t).slice(1);let n=r5(e.split("/")),r=r5(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let a=0;a<i;a++)if(n[a]!==r[a]){o=a;break}let s=[];for(let l=o;l<n.length;l++)s.push("..");return(s=s.concat(r.slice(o))).join("/")}(t,s):(a=function(e){let t=e.length>1024?"<truncated>".concat(e.slice(-1024)):e,n=r2.exec(t);return n?n.slice(1):[]}(s)[2],o&&a.slice(-1*o.length)===o&&(a=a.slice(0,a.length-o.length)),a);e.filename="".concat(n).concat(l)}return e});return{name:r4,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>r(e))}}}})}}}catch(t){return e}}(t)),t}}};K(r4,r6);let r8=eg.n2,r7=e=>{let t=r8.__rewriteFramesAssetPrefixPath__||"";return r6({iteratee:e=>{try{let{origin:n}=new URL(e.filename);e.filename=ns([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",e=>e(t,"")])}catch(r){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e},...e})},r9=eg.n2;function ie(e){let t=e.find(e=>"BrowserTracing"===e.name);if(!t)return e;if(t.afterAllSetup&&t.options){let{options:n}=t;e[e.indexOf(t)]=r1(n)}if(!(t instanceof r0)){let r=t.options;delete r.routingInstrumentation,delete r.tracingOrigins,e[e.indexOf(t)]=new r0(r)}return e}function it(e){return"/"===e[e.length-1]?e.slice(0,-1):e}({...tA});var ir=n(17813);function ii(){return!(0,ir.KV)()||void 0!==eg.n2.process&&"renderer"===eg.n2.process.type}let io=eg.n2,ia="sentryReplaySession",is="Unable to send Replay";function il(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)}),t=void 0)}return n}function ic(e){let t=il([e,"optionalAccess",e=>e.host]);
1return Boolean(il([t,"optionalAccess",e=>e.shadowRoot])===e)}function iu(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function id(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,ih).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(r){return null}}function ih(e){let t;if("styleSheet"in e)try{t=id(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import","url(".concat(JSON.stringify(e.href),")")];return""===e.layerName?n.push("layer"):e.layerName&&n.push("layer(".concat(e.layerName,")")),e.supportsText&&n.push("supports(".concat(e.supportsText,")")),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(n){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}(I=D||(D={}))[I.Document=0]="Document",I[I.DocumentType=1]="DocumentType",I[I.Element=2]="Element",I[I.Text=3]="Text",I[I.CDATA=4]="CDATA",I[I.Comment=5]="Comment";class ip{getId(e){if(!e)return -1;let t=il([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]);return()=>-1,null!=t?t:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function im(e){let{maskInputOptions:t,tagName:n,type:r}=e;return"OPTION"===n&&(n="SELECT"),Boolean(t[n.toLowerCase()]||r&&t[r]||"password"===r||"INPUT"===n&&!r&&t.text)}function ig(e){let{isMasked:t,element:n,value:r,maskInputFn:i}=e,o=r||"";return t?(i&&(o=i(o,n)),"*".repeat(o.length)):o}function iy(e){return e.toLowerCase()}function iv(e){return e.toUpperCase()}let i_="__rrweb_original__";function ib(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?iy(t):null}function iS(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}let iw=1,ix=RegExp("[^a-z0-9-_:]");function ik(){return iw++}let iE=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,iT=/^(?:[a-z+]+:)?\/\//i,iI=/^www\..*/i,iC=/^(data:)([^,]*),(.*)/i;function iR(e,t){return(e||"").replace(iE,(e,n,r,i,o,a)=>{let s=r||o||a,l=n||i||"";if(!s)return e;if(iT.test(s)||iI.test(s)||iC.test(s))return"url(".concat(l).concat(s).concat(l,")");if("/"===s[0])return"url(".concat(l).concat((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s).concat(l,")");let c=t.split("/"),u=s.split("/");for(let d of(c.pop(),u))"."!==d&&(".."===d?c.pop():c.push(d));return"url(".concat(l).concat(c.join("/")).concat(l,")")})}let iA=/^[^ \t\n\r\u000c]+/,iO=/^[, \t\n\r\u000c]+/;function iM(e,t){if(!t||""===t.trim())return t;let n=e.createElement("a");return n.href=t,n.href}function iN(){let e=document.createElement("a");return e.href="",e.href}function iD(e,t,n,r,i,o){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(iO),!(n>=t.length);){let o=r(iA);if(","===o.slice(-1))o=iM(e,o.substring(0,o.length-1)),i.push(o);else{let a="";o=iM(e,o);let s=!1;for(;;){let l=t.charAt(n);if(""===l){i.push((o+a).trim());break}if(s)")"===l&&(s=!1);else{if(","===l){n+=1,i.push((o+a).trim());break}"("===l&&(s=!0)}a+=l,n+=1}}}return i.join(", ")}(e,r):"style"===n?iR(r,iN()):"object"===t&&"data"===n?iM(e,r):"function"==typeof o?o(n,r,i):r:iM(e,r):r}function iP(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ij(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ij(e.parentNode,t,n,r+1)}function iL(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(".".concat(e)))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(r){return!1}}}function iF(e,t,n,r,i,o){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let s=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(s))return!0}let l=-1,c=-1;if(o){if((c=ij(a,iL(r,i)))<0)return!0;l=ij(a,iL(t,n),c>=0?c:1/0)}else{if((l=ij(a,iL(t,n)))<0)return!1;c=ij(a,iL(r,i),l>=0?l:1/0)}return l>=0?!(c>=0)||l<=c:!(c>=0)&&!!o}catch(u){}return!!o}function iU(e){return null==e?"":e.toLowerCase()}function iB(e,t){let n;let{doc:r,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:p=!1,inl
1ineStylesheet:f=!0,maskInputOptions:m={},maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w={},inlineImages:x=!1,recordCanvas:k=!1,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:I=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:O=!1}=t,{preserveWhiteSpace:M=!0}=t,N=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:x=!1}=t,k=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:D.Document,childNodes:[],compatMode:e.compatMode};return{type:D.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:D.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:h,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:m=!1,rootId:g,maskAllText:_,maskTextClass:b,unmaskTextClass:S,maskTextSelector:w,unmaskTextSelector:x}=t,k=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){let o=e.classList[i];if(t.test(o))return!0}if(n)return e.matches(n)}catch(a){}return!1}(e,i,o,a),E=function(e){if(e instanceof HTMLFormElement)return"form";let t=iy(e.tagName);return ix.test(t)?"div":t}(e),T={},I=e.attributes.length;for(let C=0;C<I;C++){let R=e.attributes[C];R.name&&!iP(E,R.name,R.value)&&(T[R.name]=iD(r,E,iy(R.name),R.value,e,c))}if("link"===E&&s){let A=Array.from(r.styleSheets).find(t=>t.href===e.href),O=null;A&&(O=id(A)),O&&(delete T.rel,delete T.href,T._cssText=iR(O,A.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let M=id(e.sheet);M&&(T._cssText=iR(M,iN()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){let N=ib(e),P=iS(e,iv(E),N),j=e.checked;if("submit"!==N&&"button"!==N&&P){let L=iF(e,b,w,S,x,im({type:N,tagName:iv(E),maskInputOptions:l}));T.value=ig({isMasked:L,element:e,value:P,maskInputFn:u})}j&&(T.checked=j)}if("option"===E&&(e.selected&&!l.select?T.selected=!0:delete T.selected),"canvas"===E&&p){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,o=i_ in i?i[i_]:i,a=new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer);if(a.some(e=>0!==e))return!1}return!0}(e)&&(T.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let F=e.toDataURL(d.type,d.quality),U=document.createElement("canvas");U.width=e.width,U.height=e.height;let B=U.toDataURL(d.type,d.quality);F!==B&&(T.rr_dataURL=F)}}if("img"===E&&h){y||(v=(y=r.createElement("canvas")).getContext("2d"));let H=e,z=H.crossOrigin;H.crossOrigin="anonymous";let W=()=>{H.removeEventListener("load",W);try{y.width=H.naturalWidth,y.height=H.naturalHeight,v.drawImage(H,0,0),T.rr_dataURL=y.toDataURL(d.type,d.quality)}catch(e){console.warn("Cannot inline img src=".concat(H.currentSrc,"! Error: ").concat(e))}z?T.crossOrigin=z:H.removeAttribute("crossorigin")};H.complete&&0!==H.naturalWidth?W():H.addEventListener("load",W)}if(("audio"===E||"video"===E)&&(T.rr_mediaState=e.paused?"paused":"played",T.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(T.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(T.rr_scrollTop=e.scrollTop)),k){let{width:$,height:Z}=e.getBoundingClientRect();T={class:T.class,rr_width:"".concat($,"px"),rr_height:"".concat(Z,"px")}}"iframe"!==E||f(T.src)||(e.contentDocument||(T.rr_src=T.src),delete T.src);try{customElements.get(E)&&(n=!0)}catch(q){}return{type:D.Element,tagName:E,attributes:T,childNodes:[],isSVG:Boolean("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:k,rootId:g,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:w,newlyAddedElement:x,rootId:k,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,h=e.textContent,p="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||il([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(h=id(e.parentNode.sheet))}catch(g){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(g),e)}h=iR(h,iN())}f&&(h="SCRIPT_PLACEHOLDER");let y=iF(e,r,o,i,a,n);if(p||f||m||!h||!y||(h=s?s(h):h.replace(/[\S]/g,"*")),m&&h&&(l.textarea||y)&&(h=c?c(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h){let v=im({type:null,tagName:d,maskInputOptions:l});h=ig({isMasked:iF(e,r,o,i,a,v),element:e,value:h,maskInputFn:c})}return{type:D.Text,textContent:h||"",isStyle:p,rootId:u}}(e,{maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:k});case e.CDATA_SECTION_NODE:return{type:D.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:D.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:r,mirror:i,blockClass:o,blockSelector:a,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,dataURLOptions:w,inlineImages:x,recordCanvas:k,keepIframeSrcFn:A,newlyAddedElement:O});if(!N)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===D.Comment)return!0;
1if(e.type===D.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js"))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(iU(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===iU(e.attributes.name)||"icon"===iU(e.attributes.rel)||"apple-touch-icon"===iU(e.attributes.rel)||"shortcut icon"===iU(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&iU(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(iU(e.attributes.property).match(/^(og|twitter|fb):/)||iU(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===iU(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===iU(e.attributes.name)||"googlebot"===iU(e.attributes.name)||"bingbot"===iU(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===iU(e.attributes.name)||"generator"===iU(e.attributes.name)||"framework"===iU(e.attributes.name)||"publisher"===iU(e.attributes.name)||"progid"===iU(e.attributes.name)||iU(e.attributes.property).match(/^article:/)||iU(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===iU(e.attributes.name)||"yandex-verification"===iU(e.attributes.name)||"csrf-token"===iU(e.attributes.name)||"p:domain_verify"===iU(e.attributes.name)||"verify-v1"===iU(e.attributes.name)||"verification"===iU(e.attributes.name)||"shopify-checkout-api-token"===iU(e.attributes.name)))return!0}}return!1}(N,S)&&(M||N.type!==D.Text||N.isStyle||N.textContent.replace(/^\s+|\s+$/gm,"").length)?ik():-2;let P=Object.assign(N,{id:n});if(i.add(e,P),-2===n)return null;E&&E(e);let j=!p;if(P.type===D.Element){j=j&&!P.needBlock,delete P.needBlock;let L=e.shadowRoot;L&&iu(L)&&(P.isShadowHost=!0)}if((P.type===D.Document||P.type===D.Element)&&j){S.headWhitespace&&P.type===D.Element&&"head"===P.tagName&&(M=!1);let F={doc:r,mirror:i,blockClass:o,blockSelector:a,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:p,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:x,recordCanvas:k,preserveWhiteSpace:M,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:A};for(let U of Array.from(e.childNodes)){let B=iB(U,F);B&&P.childNodes.push(B)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let H of Array.from(e.shadowRoot.childNodes)){let z=iB(H,F);z&&(iu(e.shadowRoot)&&(z.isShadow=!0),P.childNodes.push(z))}}return e.parentNode&&ic(e.parentNode)&&iu(e.parentNode)&&(P.isShadow=!0),P.type===D.Element&&"iframe"===P.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let o=!1;try{r=i.document.readyState}catch(a){return}if("complete"!==r){let s=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(s),o=!0,t()});return}let l="about:blank";if(i.location.href!==l||e.src===l||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&T){let n=iB(t,{doc:t,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:x,recordCanvas:k,preserveWhiteSpace:M,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:A});n&&T(e,n)}},I),P.type===D.Element&&"link"===P.tagName&&"stylesheet"===P.attributes.rel&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(o){return}if(r)return;let a=setTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}(e,()=>{if(C){let t=iB(e,{doc:r,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputOptions:m,maskAttributeFn:g,maskTextFn:_,maskInputFn:b,slimDOMOptions:S,dataURLOptions:w,inlineImages:x,recordCanvas:k,preserveWhiteSpace:M,onSerialize:E,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:C,stylesheetLoadTimeout:R,keepIframeSrcFn:A});t&&C(e,t)}},R),P}function iH(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)}),t=void 0)}return n}function iz(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let iW="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.",i$={map:{},getId:()=>(console.error(iW),-1),getNode:()=>(console.error(iW),null),removeNodeFromMap(){console.error(iW)},has:()=>(console.error(iW),!1),reset(){console.error(iW)}};function iZ(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=0;return function(){for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];let l=Date.now();i||!1!==n.leading||(i=l);let c=t-(l-i),u=this;c<=0||c>t?(r&&(clearTimeout(r),r=null),i=l,e.apply(u,a)):r||!1===n.trailing||(r=setTimeout(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(u,a)},c))}}function iq(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(o){return()=>{}}}window.Proxy&&window.Reflect&&(i$=new Proxy(i$,{get:(e,t,n)=>("map"===t&&console.error(iW),Reflect.get(e,t,n))}));let iX=Date.now;function iV(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:iH([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||iH([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||iH([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:iH([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||iH([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||iH([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function iG(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iJ(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iK(e,t,n,r,i){if(!e)return!1;let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!o)return!1;let a=iL(t,n);if(!i){let s=r&&o.matches(r);return a(o)&&!s}let l=ij(o,a),c=-1;return!(l<0)&&(r&&(c=ij(o,iL(null,r))),l>-1&&c<0||l<c)}function iY(e,t){return -2===t.getId(e)}function iQ(e){return Boolean(e.changedTouches)}
1function i0(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function i1(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function i2(e){return Boolean(iH([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(iX=()=>new Date().getTime());class i3{getId(e){var t;return t=this.styleIDMap.get(e),null!=t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}}function i5(e){let t=null;return iH([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function i4(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=i5(n);)n=t;return n}(e);return t.contains(n)}(e))}var i6=((C=i6||{})[C.DomContentLoaded=0]="DomContentLoaded",C[C.Load=1]="Load",C[C.FullSnapshot=2]="FullSnapshot",C[C.IncrementalSnapshot=3]="IncrementalSnapshot",C[C.Meta=4]="Meta",C[C.Custom=5]="Custom",C[C.Plugin=6]="Plugin",C),i8=((R=i8||{})[R.Mutation=0]="Mutation",R[R.MouseMove=1]="MouseMove",R[R.MouseInteraction=2]="MouseInteraction",R[R.Scroll=3]="Scroll",R[R.ViewportResize=4]="ViewportResize",R[R.Input=5]="Input",R[R.TouchMove=6]="TouchMove",R[R.MediaInteraction=7]="MediaInteraction",R[R.StyleSheetRule=8]="StyleSheetRule",R[R.CanvasMutation=9]="CanvasMutation",R[R.Font=10]="Font",R[R.Log=11]="Log",R[R.Drag=12]="Drag",R[R.StyleDeclaration=13]="StyleDeclaration",R[R.Selection=14]="Selection",R[R.AdoptedStyleSheet=15]="AdoptedStyleSheet",R[R.CustomElement=16]="CustomElement",R),i7=((A=i7||{})[A.MouseUp=0]="MouseUp",A[A.MouseDown=1]="MouseDown",A[A.Click=2]="Click",A[A.ContextMenu=3]="ContextMenu",A[A.DblClick=4]="DblClick",A[A.Focus=5]="Focus",A[A.Blur=6]="Blur",A[A.TouchStart=7]="TouchStart",A[A.TouchMove_Departed=8]="TouchMove_Departed",A[A.TouchEnd=9]="TouchEnd",A[A.TouchCancel=10]="TouchCancel",A),i9=((O=i9||{})[O.Mouse=0]="Mouse",O[O.Pen=1]="Pen",O[O.Touch=2]="Touch",O);class oe{get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)}),t=void 0)}return n}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}constructor(){this.length=0,this.head=null,this.tail=null}}let ot=(e,t)=>
1"".concat(e,"@").concat(t);class on{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()}constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],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;let e=[],t=new Set,n=new oe,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!i4(i))return;let o=ic(i.parentNode)?this.mirror.getId(i5(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===o||-1===a)return n.addNode(i);let s=iB(i,{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=>{i0(e,this.mirror)&&this.iframeManager.addIframe(e),i1(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),i2(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let o of this.movedSet)(!oi(this.removes,o,this.mirror)||this.movedSet.has(o.parentNode))&&i(o);for(let a of this.addedSet)oo(this.droppedSet,a)||oi(this.removes,a,this.mirror)?oo(this.movedSet,a)?i(a):this.droppedSet.add(a):i(a);let s=null;for(;n.length;){let l=null;if(s){let c=this.mirror.getId(s.value.parentNode),u=r(s.value);-1!==c&&-1!==u&&(l=s)}if(!l){let d=n.tail;for(;d;){let h=d;if(d=d.previous,h){let p=this.mirror.getId(h.value.parentNode),f=r(h.value);if(-1===f)continue;if(-1!==p){l=h;break}{let m=h.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let g=m.parentNode.host,y=this.mirror.getId(g);if(-1!==y){l=h;break}}}}}}if(!l){for(;n.head;)n.removeNode(n.head.value);break}s=l.previous,n.removeNode(l.value),i(l.value)}let v={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=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(v.texts.length||v.attributes.length||v.removes.length||v.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(v))},this.processMutation=e=>{let t;if(!iY(e.target,this.mirror)){try{t=document.implementation.createHTMLDocument()}catch(n){t=this.doc}switch(e.type){case"characterData":{let r=e.target.textContent;iK(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue||this.texts.push({value:iF(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{let i=e.target,o=e.attributeName,a=e.target.getAttribute(o);if("value"===o){let s=ib(i),l=i.tagName;a=iS(i,l,s);let c=im({maskInputOptions:this.maskInputOptions,tagName:l,type:s}),u=iF(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);a=ig({isMasked:u,element:i,value:a,maskInputFn:this.maskInputFn})}if(iK(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||a===e.oldValue)return;let d=this.attributes.find(t=>t.node===e.target);
1if("IFRAME"===i.tagName&&"src"===o&&!this.keepIframeSrcFn(a)){if(i.contentDocument)return;o="rr_src"}if(d||(d={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(d)),"type"===o&&"INPUT"===i.tagName&&"password"===(e.oldValue||"").toLowerCase()&&i.setAttribute("data-rr-is-password","true"),!iP(i.tagName,o)&&(d.attributes[o]=iD(this.doc,iy(i.tagName),iy(o),a,i,this.maskAttributeFn),"style"===o)){let h=t.createElement("span");for(let p of(e.oldValue&&h.setAttribute("style",e.oldValue),Array.from(i.style))){let f=i.style.getPropertyValue(p),m=i.style.getPropertyPriority(p);f!==h.style.getPropertyValue(p)||m!==h.style.getPropertyPriority(p)?""===m?d.styleDiff[p]=f:d.styleDiff[p]=[f,m]:d._unchangedStyles[p]=[f,m]}for(let g of Array.from(h.style))""===i.style.getPropertyValue(g)&&(d.styleDiff[g]=!1)}break}case"childList":if(iK(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=ic(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);iK(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||iY(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(or(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(ic(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[ot(n,r)]?or(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(ic(e.target)&&iu(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(iY(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[ot(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!iK(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),i2(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}}function or(e,t){e.delete(t),t.childNodes.forEach(t=>or(e,t))}function oi(e,t,n){return 0!==e.length&&function e(t,n,r){let{parentNode:i}=n;if(!i)return!1;let o=r.getId(i);return!!t.some(e=>e.id===o)||e(t,i,r)}(e,t,n)}function oo(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let oa=e=>b?function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];try{return e(...n)}catch(i){if(b&&!0===b(i))return()=>{};throw i}}:e;function os(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)}),t=void 0)}return n}let ol=[];function oc(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(n){}return e&&e.target}function ou(e,t){let n=new on;ol.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=os([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);let o=new r(oa(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function od(e){let{scrollCb:t,doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,sampling:s}=e,l=oa(iZ(oa(e=>{let s=oc(e);if(!s||iK(s,i,o,a,!0))return;let l=r.getId(s);if(s===n&&n.defaultView){let c=iV(n.defaultView);t({id:l,x:c.left,y:c.top})}else t({id:l,x:s.scrollLeft,y:s.scrollTop})}),s.scroll||100));return iz("scroll",l,n)}let oh=["INPUT","TEXTAREA","SELECT"],op=new WeakMap;function of(e){return function(e,t){if(ov("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ov("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ov("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ov("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules),r=n.indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let i=Array.from(e.parentStyleSheet.cssRules),o=i.indexOf(e);t.unshift(o)}return t}(e,[])}function om(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function og(e,t){let{mirror:n,stylesheetManager:r}=e,i=null;i="#document"===t.nodeName?n.getId(t):n.getId(t.host);let o="#document"===t.nodeName?os([t,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):os([t,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),a=os([o,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(os([o,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==i&&-1!==i&&o&&a?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return os([a,"access",e=>
1e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let t=os([a,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==i&&-1!==i)try{r.adoptStyleSheets(e,i)}catch(n){}return t}}),oa(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):()=>{}}function oy(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let t=e.doc.defaultView;if(!t)return()=>{};let n=ou(e,e.doc),r=function(e){let t,{mousemoveCb:n,sampling:r,doc:i,mirror:o}=e;if(!1===r.mousemove)return()=>{};let a="number"==typeof r.mousemove?r.mousemove:50,s="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,l=[],c=iZ(oa(e=>{let r=Date.now()-t;n(l.map(e=>(e.timeOffset-=r,e)),e),l=[],t=null}),s),u=oa(iZ(oa(e=>{let n=oc(e),{clientX:r,clientY:i}=iQ(e)?e.changedTouches[0]:e;t||(t=iX()),l.push({x:r,y:i,id:o.getId(n),timeOffset:iX()-t}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?i8.Drag:e instanceof MouseEvent?i8.MouseMove:i8.TouchMove)}),a,{trailing:!1})),d=[iz("mousemove",u,i),iz("touchmove",u,i),iz("drag",u,i)];return oa(()=>{d.forEach(e=>e())})}(e),i=function(e){let{mouseInteractionCb:t,doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,sampling:s}=e;if(!1===s.mouseInteraction)return()=>{};let l=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null,d=e=>n=>{let s=oc(n);if(iK(s,i,o,a,!0))return;let l=null,c=e;if("pointerType"in n){switch(n.pointerType){case"mouse":l=i9.Mouse;break;case"touch":l=i9.Touch;break;case"pen":l=i9.Pen}l===i9.Touch?i7[e]===i7.MouseDown?c="TouchStart":i7[e]===i7.MouseUp&&(c="TouchEnd"):i9.Pen}else iQ(n)&&(l=i9.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===i9.Touch||c.startsWith("Mouse")&&l===i9.Mouse)&&(l=null)):i7[e]===i7.Click&&(l=u,u=null);let d=iQ(n)?n.changedTouches[0]:n;if(!d)return;let h=r.getId(s),{clientX:p,clientY:f}=d;oa(t)({type:i7[c],id:h,x:p,y:f,...null!==l&&{pointerType:l}})};return Object.keys(i7).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==l[e]).forEac
1h(e=>{let t=iy(e),r=d(e);if(window.PointerEvent)switch(i7[e]){case i7.MouseDown:case i7.MouseUp:t=t.replace("mouse","pointer");break;case i7.TouchStart:case i7.TouchEnd:return}c.push(iz(t,r,n))}),oa(()=>{c.forEach(e=>e())})}(e),o=od(e),a=function(e,t){let{viewportResizeCb:n}=e,{win:r}=t,i=-1,o=-1,a=oa(iZ(oa(()=>{let e=iG(),t=iJ();(i!==e||o!==t)&&(n({width:Number(t),height:Number(e)}),i=e,o=t)}),200));return iz("resize",a,r)}(e,{win:t}),s=function(e){let{inputCb:t,doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,ignoreClass:s,ignoreSelector:l,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:h,maskTextClass:p,unmaskTextClass:f,maskTextSelector:m,unmaskTextSelector:g}=e;function y(e){let t=oc(e),r=e.isTrusted,d=t&&iv(t.tagName);if("OPTION"===d&&(t=t.parentElement),!t||!d||0>oh.indexOf(d)||iK(t,i,o,a,!0))return;let y=t;if(y.classList.contains(s)||l&&y.matches(l))return;let _=ib(t),b=iS(y,d,_),S=!1,w=im({maskInputOptions:c,tagName:d,type:_}),x=iF(t,p,m,f,g,w);("radio"===_||"checkbox"===_)&&(S=t.checked),b=ig({isMasked:x,element:t,value:b,maskInputFn:u}),v(t,h?{text:b,isChecked:S,userTriggered:r}:{text:b,isChecked:S});let k=t.name;"radio"===_&&k&&S&&n.querySelectorAll('input[type="radio"][name="'.concat(k,'"]')).forEach(e=>{if(e!==t){let n=ig({isMasked:x,element:e,value:iS(e,d,_),maskInputFn:u});v(e,h?{text:n,isChecked:!S,userTriggered:!1}:{text:n,isChecked:!S})}})}function v(e,n){let i=op.get(e);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){op.set(e,n);let o=r.getId(e);oa(t)({...n,id:o})}}let _="last"===d.input?["change"]:["input","change"],b=_.map(e=>iz(e,oa(y),n)),S=n.defaultView;if(!S)return()=>{b.forEach(e=>e())};let w=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),x=[[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 w&&w.set&&b.push(...x.map(e=>(function e(t,n,r,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,a=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,i?r:{set(e){setTimeout(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,n,a||{},!0)})(e[0],e[1],{set(){oa(y)({target:this,isTrusted:!1})}},!1,S))),oa(()=>{b.forEach(e=>e())})}(e),l=function(e){let{mediaInteractionCb:t,blockClass:n,blockSelector:r,unblockSelector:i,mirror:o,sampling:a,doc:s}=e,l=oa(e=>iZ(oa(a=>{let s=oc(a);if(!s||iK(s,n,r,i,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=s;t({type:e,id:o.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})}),a.media||500)),c=[iz("play",l(0),s),iz("pause",l(1),s),iz("seeked",l(2),s),iz("volumechange",l(3),s),iz("ratechange",l(4),s)];return oa(()=>{c.forEach(e=>e())})}(e),c=function(e,t){let n,r,{styleSheetRuleCb:i,mirror:o,stylesheetManager:a}=e,{win:s}=t;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return()=>{};let l=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(l,{apply:oa((e,t,n)=>{let[r,s]=n,{id:l,styleId:c}=om(t,o,a.styleMirror);return(l&&-1!==l||c&&-1!==c)&&i({id:l,styleId:c,adds:[{rule:r,index:s}]}),e.apply(t,n)})});let c=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:oa((e,t,n)=>{let[r]=n,{id:s,styleId:l}=om(t,o,a.styleMirror);return(s&&-1!==s||l&&-1!==l)&&i({id:s,styleId:l,removes:[{index:r}]}),e.apply(t,n)})}),s.CSSStyleSheet.prototype.replace&&(n=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:oa((e,t,n)=>{let[r]=n,{id:s,styleId:l}=om(t,o,a.styleMirror);return(s&&-1!==s||l&&-1!==l)&&i({id:s,styleId:l,replace:r}),e.apply(t,n)})})),s.CSSStyleSheet.prototype.replaceSync&&(r=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:oa((e,t,n)=>{let[r]=n,{id:s,styleId:l}=om(t,o,a.styleMirror);return(s&&-1!==s||l&&-1!==l)&&i({id:s,styleId:l,replaceSync:r}),e.apply(t,n)})}));let u={};o_("CSSGroupingRule")?u.CSSGroupingRule=s.CSSGroupingRule:(o_("CSSMediaRule")&&(u.CSSMediaRule=s.CSSMediaRule),o_("CSSConditionRule")&&(u.CSSConditionRule=s.CSSConditionRule),o_("CSSSupportsRule")&&(u.CSSSupportsRule=s.CSSSupportsRule));let d={};
1return Object.entries(u).forEach(e=>{let[t,n]=e;d[t]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule},n.prototype.insertRule=new Proxy(d[t].insertRule,{apply:oa((e,t,n)=>{let[r,s]=n,{id:l,styleId:c}=om(t.parentStyleSheet,o,a.styleMirror);return(l&&-1!==l||c&&-1!==c)&&i({id:l,styleId:c,adds:[{rule:r,index:[...of(t),s||0]}]}),e.apply(t,n)})}),n.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:oa((e,t,n)=>{let[r]=n,{id:s,styleId:l}=om(t.parentStyleSheet,o,a.styleMirror);return(s&&-1!==s||l&&-1!==l)&&i({id:s,styleId:l,removes:[{index:[...of(t),r]}]}),e.apply(t,n)})})}),oa(()=>{s.CSSStyleSheet.prototype.insertRule=l,s.CSSStyleSheet.prototype.deleteRule=c,n&&(s.CSSStyleSheet.prototype.replace=n),r&&(s.CSSStyleSheet.prototype.replaceSync=r),Object.entries(u).forEach(e=>{let[t,n]=e;n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule})})}(e,{win:t}),u=og(e,e.doc),d=function(e,t){let{styleDeclarationCb:n,mirror:r,ignoreCSSAttributes:i,stylesheetManager:o}=e,{win:a}=t,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:oa((e,t,a)=>{let[l,c,u]=a;if(i.has(l))return s.apply(t,[l,c,u]);let{id:d,styleId:h}=om(os([t,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),r,o.styleMirror);return(d&&-1!==d||h&&-1!==h)&&n({id:d,styleId:h,set:{property:l,value:c,priority:u},index:of(t.parentRule)}),e.apply(t,a)})});let l=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:oa((e,t,a)=>{let[s]=a;if(i.has(s))return l.apply(t,[s]);let{id:c,styleId:u}=om(os([t,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),r,o.styleMirror);return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,remove:{property:s},index:of(t.parentRule)}),e.apply(t,a)})}),oa(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=l})}(e,{win:t}),h=e.collectFonts?function(e){let{fontCb:t,doc:n}=e,r=n.defaultView;if(!r)return()=>{};let i=[],o=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,n){let r=new a(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let s=iq(n.fonts,"add",function(e){return function(n){return setTimeout(oa(()=>{let e=o.get(n);e&&(t(e),o.delete(n))}),0),e.apply(this,[n])}});return i.push(()=>{r.FontFace=a}),i.push(s),oa(()=>{i.forEach(e=>e())})}(e):()=>{},p=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:a}=e,s=!0,l=oa(()=>{let e=t.getSelection();if(!e||s&&os([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let u=0;u<c;u++){let d=e.getRangeAt(u),{startContainer:h,startOffset:p,endContainer:f,endOffset:m}=d,g=iK(h,r,i,o,!0)||iK(f,r,i,o,!0);g||l.push({start:n.getId(h),startOffset:p,end:n.getId(f),endOffset:m})}a({ranges:l})});return l(),iz("selectionchange",l)}(e),f=function(e){let{doc:t,customElementCb:n}=e,r=t.defaultView;if(!r||!r.customElements)return()=>{};let i=iq(r.customElements,"define",function(e){return function(t,r,i){try{n({define:{name:t}})}catch(o){}return e.apply(this,[t,r,i])}});return i}(e),m=[];for(let g of e.plugins)m.push(g.observer(g.callback,t,g.options));return oa(()=>{ol.forEach(e=>e.reset()),n.disconnect(),r(),i(),o(),a(),s(),l(),c(),u(),d(),h(),p(),f(),m.forEach(e=>e())})}function ov(e){return void 0!==window[e]}function o_(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ob{getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
1getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=r.get(t);return i||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}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}constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}}function oS(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o(function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.call(t,...r)}),t=void 0)}return n}class ow{addIframe(){}addLoadListener(){}attachIframe(){}constructor(){this.crossOriginIframeMirror=new ob(ik),this.crossOriginIframeRootIdMap=new WeakMap}}class ox{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}),oS([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;let t=e.source;if(!t)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case i6.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:i6.IncrementalSnapshot,data:{source:i8.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case i6.Meta:case i6.Load:case i6.DomContentLoaded:break;case i6.Plugin:return t;case i6.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case i6.IncrementalSnapshot:switch(t.data.source){case i8.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),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 i8.Drag:case i8.TouchMove:case i8.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case i8.ViewportResize:return!1;case i8.MediaInteraction:case i8.MouseInteraction:case i8.Scroll:case i8.CanvasMutation:case i8.Input:return this.replaceIds(t.data,e,["id"]),t;case i8.StyleSheetRule:case i8.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case i8.Font:return t;case i8.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case i8.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),oS([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===D.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ob(ik),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ob(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}}class ok{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class oE{init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!iu(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let n=ou({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(od({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(og({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(iq(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&i4(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}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()}}class oT{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class oI{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;let n={id:t,styleIds:[]},r=[];for(let i of e){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),r.push({styleId:o,rules:Array.from(i.rules||CSSRule,(e,t)=>({rule:ih(e),index:t}))})),n.styleIds.push(o)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new i3,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}}class oC{periodicallyClear(){!function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(function(){if(_)return _;let e=window.document,t=window.requestAnimationFrame;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.requestAnimationFrame&&(t=r.requestAnimationFrame),e.head.removeChild(n)}catch(i){}return _=t.bind(window)})()(...t)}(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}}function oR(e){let t=e;return t.timestamp=iX(),t}let oA=new ip;function oO(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:h=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:v,maskAttributeFn:_,maskInputFn:w,maskTextFn:x,maxCanvasSize:k=null,packFn:E,sampling:T={},dataURLOptions:I={},mousemoveWait:C,recordCanvas:R=!1,recordCrossOriginIframes:A=!1,recordAfter:O="DOMContentLoaded"===t.recordAfter?t.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:N=!1,inlineImages:D=!1,plugins:P,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:L=new Set([]),errorHandler:F,onMutation:U,getCanvasManager:B}=t;b=F;let H=!A||window.parent===window,z=!1;if(!H)try{window.parent.document&&(z=!1)}catch(W){z=!0}if(H&&!n)throw Error("emit function is required");void 0!==C&&void 0===T.mousemove&&(T.mousemove=C),oA.reset();let $=!0===g?{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:{},Z=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if("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){var t=this;Node.prototype.contains=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=n[0];if(!(0 in n))throw TypeError("1 argument is required");do if(t===i)return!0;while(i=i&&i.parentNode);return!1}}}();let q=0,X=e=>{for(let t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return E&&!z&&(e=E(e)),e},V=(t,o)=>{if(ns([ol,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&t.type!==i6.FullSnapshot&&!(t.type===i6.IncrementalSnapshot&&t.data.source===i8.Mutation)&&ol.forEach(e
1=>e.unfreeze()),H)ns([n,"optionalCall",e=>e(X(t),o)]);else if(z){let a={type:"rrweb",event:X(t),origin:window.location.origin,isCheckout:o};window.parent.postMessage(a,"*")}if(t.type===i6.FullSnapshot)e=t,q=0;else if(t.type===i6.IncrementalSnapshot){if(t.data.source===i8.Mutation&&t.data.isAttachIframe)return;q++;let s=i&&q>=i,l=r&&e&&t.timestamp-e.timestamp>r;(s||l)&&eo(!0)}},G=e=>{V(oR({type:i6.IncrementalSnapshot,data:{source:i8.Mutation,...e}}))},J=e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.Scroll,...e}})),K=e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.CanvasMutation,...e}})),Y=e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.AdoptedStyleSheet,...e}})),Q=new oI({mutationCb:G,adoptedStyleSheetCb:Y}),ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ow:new ox({mirror:oA,mutationCb:G,stylesheetManager:Q,recordCrossOriginIframes:A,wrappedEmit:V});for(let et of P||[])et.getMirror&&et.getMirror({nodeMirror:oA,crossOriginIframeMirror:ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:ee.crossOriginIframeStyleMirror});let en=new oC,er=function(e,t){try{return e?e(t):new oT}catch(n){return console.warn("Unable to initialize CanvasManager"),new oT}}(B,{mirror:oA,win:window,mutationCb:e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.CanvasMutation,...e}})),recordCanvas:R,blockClass:o,blockSelector:a,unblockSelector:s,maxCanvasSize:k,sampling:T.canvas,dataURLOptions:I,errorHandler:F}),ei="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ok:new oE({mutationCb:G,scrollCb:J,bypassOptions:{onMutation:U,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:$,dataURLOptions:I,maskAttributeFn:_,maskTextFn:x,maskInputFn:w,recordCanvas:R,inlineImages:D,sampling:T,slimDOMOptions:Z,iframeManager:ee,stylesheetManager:Q,canvasManager:er,keepIframeSrcFn:j,processedNodeManager:en},mirror:oA}),eo=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];V(oR({type:i6.Meta,data:{href:window.location.href,width:iJ(),height:iG()}}),e),Q.reset(),ei.init(),ol.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new ip,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:T=()=>!1}=t||{};return iB(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,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:_,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:T,newlyAddedElement:!1})}(document,{mirror:oA,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:m,maskAllInputs:$,maskAttributeFn:_,maskInputFn:w,maskTextFn:x,slimDOM:Z,dataURLOptions:I,recordCanvas:R,inlineImages:D,onSerialize:e=>{i0(e,oA)&&ee.addIframe(e),i1(e,oA)&&Q.trackLinkElement(e),i2(e)&&ei.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ee.attachIframe(e,t),ei.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},keepIframeSrcFn:j});if(!t)return console.warn("Failed to snapshot the document");V(oR({type:i6.FullSnapshot,data:{node:t,initialOffset:iV(window)}}
1)),ol.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,oA.getId(document))};S=eo;try{let ea=[],es=e=>oa(oy)({onMutation:U,mutationCb:G,mousemoveCb:(e,t)=>V(oR({type:i6.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.MouseInteraction,...e}})),scrollCb:J,viewportResizeCb:e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.ViewportResize,...e}})),inputCb:e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.Input,...e}})),mediaInteractionCb:e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.MediaInteraction,...e}})),styleSheetRuleCb:e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.StyleSheetRule,...e}})),styleDeclarationCb:e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.StyleDeclaration,...e}})),canvasMutationCb:K,fontCb:e=>V(oR({type:i6.IncrementalSnapshot,data:{source:i8.Font,...e}})),selectionCb:e=>{V(oR({type:i6.IncrementalSnapshot,data:{source:i8.Selection,...e}}))},customElementCb:e=>{V(oR({type:i6.IncrementalSnapshot,data:{source:i8.CustomElement,...e}}))},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:$,inlineStylesheet:m,sampling:T,recordCanvas:R,inlineImages:D,userTriggeredOnInput:M,collectFonts:N,doc:e,maskAttributeFn:_,maskInputFn:w,maskTextFn:x,keepIframeSrcFn:j,blockSelector:a,unblockSelector:s,slimDOMOptions:Z,dataURLOptions:I,mirror:oA,iframeManager:ee,stylesheetManager:Q,shadowDomManager:ei,processedNodeManager:en,canvasManager:er,ignoreCSSAttributes:L,plugins:ns([P,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>V(oR({type:i6.Plugin,data:{plugin:e.name,payload:t}}))}))])||[]},{});ee.addLoadListener(e=>{try{ea.push(es(e.contentDocument))}catch(t){console.warn(t)}});let el=()=>{eo(),ea.push(es(document))};return"interactive"===document.readyState||"complete"===document.readyState?el():(ea.push(iz("DOMContentLoaded",()=>{V(oR({type:i6.DomContentLoaded,data:{}})),"DOMContentLoaded"===O&&el()})),ea.push(iz("load",()=>{V(oR({type:i6.Load,data:{}})),"load"===O&&el()},window))),()=>{ea.forEach(e=>e()),en.destroy(),S=void 0,b=void 0}}catch(ec){console.warn(ec)}}function oM(e){return e>9999999999?e:1e3*e}function oN(e){return e>9999999999?e/1e3:e}function oD(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:i6.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,eD.Fv)(t,10,1e3)}}),"console"===t.category)))}function oP(e){let t=e.closest("button,a");return t||e}function oj(e){let t=oL(e);return t&&t instanceof Element?oP(t):t}function oL(e){return"object"==typeof e&&e&&"target"in e?e.target:e}oO.mirror=oA,oO.takeFullSnapshot=function(e){if(!S)throw Error("please take full snapshot after start recording");S(e)};class oF{addListeners(){var e;let t=(e=()=>{this._lastMutation=oB()},w||(w=[],(0,z.hl)(io,"open",function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(w)try{w.forEach(e=>e())}catch(i){}return e.apply(io,n)}})),w.push(e),()=>{let t=w?w.indexOf(e):-1;t>-1&&w.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!oU.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:oN(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>
1Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=oN(e)}registerScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=oN(e)}registerClick(e){let t=oP(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=oB();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let r=this._clicks.indexOf(n);r>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(r,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!n&&!r){let a=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),s=a<1e3*this._timeout?"mutation":"timeout",l={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:io.location.href,route:t.getCurrentRoute(),timeAfterClickMs:a,endReason:s,clickCount:i||1}};this._addBreadcrumbEvent(t,l);return}if(i>1){let c={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:io.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}constructor(e,t,n=oD){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}}let oU=["A","BUTTON","INPUT"];function oB(){return Date.now()/1e3}function oH(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(M=P||(P={}))[M.Document=0]="Document",M[M.DocumentType=1]="DocumentType",M[M.Element=2]="Element",M[M.Text=3]="Text",M[M.CDATA=4]="CDATA",M[M.Comment=5]="Comment";let oz=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),oW=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?oj(e.event):oL(e.event),t=(0,eN.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(i){t="<unknown>"}return{target:r,message:t}}(e);return oH({category:"ui.".concat(e.name),...o$(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,oj(t.event)),oD(e,n)};function o$(e,t){let n=oO.mirror.getId(e),r=n&&oO.mirror.getNode(n),i=r&&oO.mirror.getMeta(r),o=i&&i.type===P.Element?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===P.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in e)if(oz.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(o.attributes)}}:{}}}let oZ={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:"".concat(t,".").concat(n),start:oX(o),end:oX(i),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,o=oX(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:"".concat(t,".").concat(m),start:oX(p),end:oX(o),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function oq(e){return oZ[e.entryType]?oZ[e.entryType](e):null}function oX(e){return((tG.Z1||io.performance.timeOrigin)+e)/1e3}
1class oV extends Error{constructor(){super("Event buffer exceeded maximum size of ".concat(2e7,"."))}}class oG{get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new oV;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?oM(e):null}constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}}class oJ{ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",n=>{let{data:r}=n;r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let o=t=>{let{data:a}=t;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",o),!a.success){i(Error("Error in compression worker"));return}r(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}constructor(e){this._worker=e,this._id=0}}class oK{get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=oM(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new oV):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}constructor(e){this._worker=new oJ(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}}class oY{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}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}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let r of e)n.push(this._compression.addEvent(r));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(i){}}constructor(e){this._fallback=new oG,this._compression=new oK(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}}function oQ(){try{return"sessionStorage"in io&&!!io.sessionStorage}catch(e){return!1}}function o0(e){return void 0!==e&&Math.random()<e}function o1(e){let t=Date.now(),n=e.id||(0,W.DM)(),r=e.started||t,i=e.lastActivity||t,o=e.segmentId||0,a=e.sampled,s=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:a,previousSessionId:s}}function o2(e){if(oQ())try{io.sessionStorage.setItem(ia,JSON.stringify(e))}catch(t){}}function o3(e){let{sessionSampleRate:t,allowBuffering:n,stickySession:r=!1}=e,{previousSessionId:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=o0(t)?"session":!!n&&"buffer",a=o1({sampled:o,previousSessionId:i});return r&&o2(a),a}function o5(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=n}function o4(e,t){let{maxReplayDuration:n,sessionIdleExpire:r,targetTime:i=Date.now()}=t;return o5(e.started,n,i)||o5(e.lastActivity,r,i)}function o6(e,t){let{sessionIdleExpire:n,maxReplayDuration:r}=t;return!!o4(e,{sessionIdleExpire:n,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function o8(e,t){let{traceInternals:n,sessionIdleExpire:r,maxReplayDuration:i,previousSessionId:o}=e,a=t.stickySession&&function(e){if(!oQ())return null;try{let t=io.sessionStorage.getItem(ia);if(!t)return null;let n=JSON.parse(t);return o1(n)}catch(r){return null}}(0);return a?o6(a,{sessionIdleExpire:r,maxReplayDuration:i})?o3(t,{previousSessionId:a.id}):a:o3(t,{previousSessionId:o})}function o7(e,t,n){return!!ae(e,t)&&(o9(e,t,n),!0)}async function o9(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===i6.Custom)return t(e)}catch(n){return null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(a){await e.stop({reason:a&&a instanceof oV?"addEventSizeExceeded":"addEvent"});let o=(0,B.s3)();o&&o.recordDroppedEvent("internal_sdk_error","replay")}}
1function ae(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=oM(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(e.getOptions()._experiments.traceInternals,!1))}function at(e){return"transaction"===e.type}function an(e){return"feedback"===e.type}function ar(e){let t=function(){let e=(0,B.s3)();if(!e)return!1;let t=e.getTransport();return!!t&&(t.send.__sentry__baseTransport__||!1)}();return(n,r)=>{if(!e.isEnabled()||n.type&&!at(n))return;let i=r&&r.statusCode;if(!t||i&&!(i<200)&&!(i>=300)){if(at(n)){!function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n);return}!function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&setTimeout(()=>{e.sendBufferedReplayOrFlush()})}(e,n)}}}function ai(e,t){return t.map(t=>{let{type:n,start:r,end:i,name:o,data:a}=t,s=e.throttledAddEvent({type:i6.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:i,data:a}}});return"string"==typeof s?Promise.resolve(null):s})}function ao(e,t){e.isEnabled()&&null!==t&&!function(e,t){let n=t&&void 0!==t.getClient?t.getClient():t,r=n&&n.getDsn(),i=n&&n.getOptions().tunnel;return!!r&&e.includes(r.host)||!!i&&it(e)===it(i)}(t.name,(0,B.s3)())&&e.addUpdate(()=>(ai(e,[t]),!0))}function aa(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=af(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(r){}}function as(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function al(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[af(e)];if(!e)return[void 0]}catch(t){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function ac(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function au(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:l}=t,c={type:e,start:n/1e3,end:r/1e3,name:i,data:(0,z.Jr)({method:o,statusCode:a,request:s,response:l})};return c}function ad(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ah(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let r=e.slice(0,15e4);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:"".concat(r,"…"),warnings:["TEXT_TRUNCATED"]}}if(n)try{let i=JSON.parse(e);return{body:i}}catch(o){}return{body:e}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function ap(e,t){return Object.keys(e).reduce((n,r)=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function af(e){return new URLSearchParams(e).toString()}function am(e,t){let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:io.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(io.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,en.U0)(n,t)}async function ag(e,t,n){try{let r=await ay(e,t,n),i=au("resource.fetch",r);ao(n.replay,i)}catch(o){}}async function ay(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=am(a,n.networkDetailAllowUrls)&&!am(a,n.networkDetailDenyUrls),h=d?function(e,t,n){let{networkCaptureBodies:r,networkRequestHeaders:i}=e,o=t?1===t.length&&"string"!=typeof t[0]?aw(t[0],i):2===t.length?aw(t[1],i):{}:{};if(!r)return ah(o,n,void 0);let a=ab(t),[s,l]=al(a),c=ah(o,n,s);return l?ac(c,l):c}(n,t.input,c):ad(c),p=await av(d,n,t.response,u);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:l,request:h,response:p}}async function av(e,t,n,r){let{networkCaptureBodies:i,textEncoder:
1o,networkResponseHeaders:a}=t;if(!e&&void 0!==r)return ad(r);let s=n?aS(n.headers,a):{};if(!n||!i&&void 0!==r)return ah(s,r,void 0);let[l,c]=await a_(n),u=function(e,t){let{networkCaptureBodies:n,textEncoder:r,responseBodySize:i,captureDetails:o,headers:a}=t;try{let s=e&&e.length&&void 0===i?aa(e,r):i;if(!o)return ad(s);if(n)return ah(a,s,e);return ah(a,s,void 0)}catch(l){return ah(a,i,void 0)}}(l,{networkCaptureBodies:i,textEncoder:o,responseBodySize:r,captureDetails:e,headers:s});return c?ac(u,c):u}async function a_(e){let t=function(e){try{return e.clone()}catch(t){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{let n=await new Promise((e,n)=>{let r=setTimeout(()=>n(Error("Timeout while trying to read response body")),500);ax(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))});return[n]}catch(r){return[void 0,"BODY_PARSE_ERROR"]}}function ab(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===e.length&&"object"==typeof e[1])return e[1].body}function aS(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function aw(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?aS(n,t):Array.isArray(n)?{}:ap(n,t):{}}async function ax(e){return await e.text()}async function ak(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:h}=e.data;if(!l)return null;if(!s||!am(l,n.networkDetailAllowUrls)||am(l,n.networkDetailDenyUrls)){let p=ad(d),f=ad(h);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:p,response:f}}let m=s[e8],g=m?ap(m.request_headers,n.networkRequestHeaders):{},y=ap(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e},{}):{}}(s),n.networkResponseHeaders),[v,_]=n.networkCaptureBodies?al(a):[void 0],[b,S]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(n){t.push(n)}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(n){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(r){t.push(r)}return[void 0]}(s):[void 0],w=ah(g,d,v),x=ah(y,h,b);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:_?ac(w,_):w,response:S?ac(x,S):x}}(e,t,n),i=au("resource.xhr",r);ao(n.replay,i)}catch(o){}}let aE=null,aT=e=>t=>{if(!e.isEnabled())return;let n=function(e){let t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return aE!==t&&t?(aE=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return oH(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,"".concat(e.slice(0,5e3),"…")):e;if("object"==typeof e)try{let t=(0,eD.Fv)(e,7),r=JSON.stringify(t);if(r.length>5e3)return n=!0,"".concat(JSON.stringify(t,null,2).slice(0,5e3),"…");return t}catch(i){}return e});return oH({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):oH(t):null}(t);n&&oD(e,n)};async function aI(e){try{return Promise.all(ai(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(io.performance.memory)]))}catch(t){return[]}}async function aC(e){let{client:t,scope:n,replayId:r,event:i}=e,o="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),a={event_id:r,integrations:o};t.emit&&t.emit("preprocessEvent",i,a);let s=await (0,t$.R)(t.getOptions(),i,a,n,t,(0,X.aF)());if(!s)return null;s.platform=s.platform||"javascript";let l=t.getSdkMetadata&&t.getSdkMetadata(),{name:c,version:u}=l&&l.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function aR(e){var t;let n,{recordingData:r,replayId:i,segmentId:o,eventContext:a,timestamp:s,session:l}=e,c=function(e){let t,{recordingData:n,headers:r}=e,i="".concat(JSON.stringify(r),"\n");
1if("string"==typeof n)t="".concat(i).concat(n);else{let o=new TextEncoder,a=o.encode(i);(t=new Uint8Array(a.length+n.length)).set(a),t.set(n,a.length)}return t}({recordingData:r,headers:{segment_id:o}}),{urls:u,errorIds:d,traceIds:h,initialTimestamp:p}=a,f=(0,B.s3)(),m=(0,B.nZ)(),g=f&&f.getTransport(),y=f&&f.getDsn();if(!f||!g||!y||!l.sampled)return;let v={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:s/1e3,error_ids:d,trace_ids:h,urls:u,replay_id:i,segment_id:o,replay_type:l.sampled},_=await aC({scope:m,client:f,replayId:i,event:v});if(!_){f.recordDroppedEvent("event_processor","replay",v);return}delete _.sdkProcessingMetadata;let b=(t=f.getOptions().tunnel,tP(tB(_,tU(_),t,y),[[{type:"replay_event"},_],[{type:"replay_recording",length:"string"==typeof c?new TextEncoder().encode(c).length:c.length},c]]));try{n=await g.send(b)}catch(x){let S=Error(is);try{S.cause=x}catch(w){}throw S}if(!n)return n;if("number"==typeof n.statusCode&&(n.statusCode<200||n.statusCode>=300))throw new aA(n.statusCode);let k=ne({},n);if(t9(k,"replay"))throw new aO(k);return n}class aA extends Error{constructor(e){super("Transport returned status code ".concat(e))}}class aO extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function aM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3},{recordingData:n,options:r}=e;if(n.length)try{return await aR(e),!0}catch(a){if(a instanceof aA||a instanceof aO)throw a;if((0,B.v)("Replays",{_retryCount:t.count}),t.count>=3){let i=Error("".concat(is," - max retries exceeded"));
1try{i.cause=a}catch(o){}throw i}return t.interval*=++t.count,new Promise((n,r)=>{setTimeout(async()=>{try{await aM(e,t),n(!0)}catch(i){r(i)}},t.interval)})}}let aN="__THROTTLED";class aD{getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options;if(!(t<=0)||!(n<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this.recordingMode,this._options._experiments.traceInternals,this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");this._options._experiments.traceInternals;let e=o8({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");this._options._experiments.traceInternals;let e=o8({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let n=this._canvas;this._stopRecording=oO({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(n===i8.Mutation&&e.registerMutation(t.timestamp),n===i8.Scroll&&e.registerScroll(t.timestamp),t.data.source===i8.MouseInteraction){let{type:r,id:i}=t.data,o=oO.mirror.getNode(i);o instanceof HTMLElement&&r===i7.Click&&e.registerClick(o)}}catch(a){}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!o7(e,n,i))return!0;if(!i)return!1;if(i&&e.session&&0===e.session.segmentId&&o7(e,function(e){let t=e.getOptions();return{type:i6.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.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(e.getOptions()._experiments.traceInternals,e.session.started=t,e.getOptions().stickySession&&o2(e.session))}return"session"===e.recordingMode&&e.flush(),!0})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(r){this._handleException(r)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop(){let{forceFlush:e=!1,reason:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isEnabled){this._isEnabled=!1;try{var n;this._options._experiments.traceInternals,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,n=this,function(){if(oQ())try{io.sessionStorage.removeItem(ia)}catch(e){}}(),n.session=void 0}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),this._options._experiments.traceInternals)}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),this._options._experiments.traceInternals)}async sendBufferedReplayOrFlush(){let{continueRecording:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();this._options._experiments.traceInternals,await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}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&&this.session.id}
1checkAndHandleExpiredSession(){if(this._lastActivity&&o5(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e="".concat(io.location.pathname).concat(io.location.hash).concat(io.location.search),t="".concat(io.location.origin).concat(e);this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===aN){let r=oH({category:"replay.throttled"});this.addUpdate(()=>!o7(this,{type:5,timestamp:r.timestamp||0,data:{tag:"breadcrumb",payload:r,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastTransaction||(0,B.nZ)().getTransaction(),t=e&&(0,nl.XU)(e).data||{},n=t[nu];if(e&&n&&["route","custom"].includes(n))return(0,nl.XU)(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function(e){let{useCompression:t,workerUrl:n}=e;if(t&&window.Worker){let r=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let 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]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>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,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,465 bytes, line 1
1,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},A=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},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(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,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+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+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(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;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=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,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>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}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),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(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
1++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=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(L(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 a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),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(a),32768),this.s.z=n.length-a+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}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return 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&&O(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)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(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=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=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(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[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)}());if(!t)return;let n=new Worker(t);return new oY(n)}catch(r){}}(n);if(r)return r}return new oG}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=o8({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!o6(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{io.document.addEventListener("visibilitychange",this._handleVisibilityChange),io.addEventListener("blur",this._handleWindowBlur),io.addEventListener("focus",this._handleWindowFocus),io.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,B.nZ)(),n=(0,B.s3)();t.addScopeListener(aT(e)),e3(oW(e)),tc(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(ai(e,[n]),!1)))}),function(e){let t=(0,B.s3)();try{let n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:s}=e.getOptions(),l={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:o,networkRequestHeaders:a,networkResponseHeaders:s};t&&t.on?t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t,n){let{xhr:r,input:i}=t;if(!r)return;let o=aa(i,n.textEncoder),a=r.getResponseHeader("content-length")?as(r.getResponseHeader("content-length")):function(e,t,n){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return aa(r,n)}catch(i){return}}(r.response,r.responseType,n.textEncoder);void 0!==o&&(e.data.request_body_size=o),void 0!==a&&(e.data.response_body_size=a
1)}(t,n,e),ak(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t,n){let{input:r,response:i}=t,o=r?ab(r):void 0,a=aa(o,n.textEncoder),s=i?as(i.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==s&&(e.data.response_body_size=s)}(t,n,e),ag(t,n,e))}catch(o){}})(l,e,t)):(tr(t=>{if(!e.isEnabled())return;let n=function(e){let{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;let{method:o,url:a}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:a,data:{method:o,statusCode:i?i.status:void 0}}}(t);ao(e,n)}),e7(t=>{if(!e.isEnabled())return;let n=function(e){let{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[e8];if(!t||!n||!i)return null;let{method:o,url:a,status_code:s}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:t/1e3,end:n/1e3,data:{method:o,statusCode:s}}}(t);ao(e,n)}))}catch(c){}}(e);let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?ar(e):void 0;return Object.assign((t,r)=>{if(!e.isEnabled())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!at(t)&&!an(t))return t;let i=e.checkAndHandleExpiredSession();if(!i)return t;if(an(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:i6.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&r.originalException&&r.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let o="buffer"===e.recordingMode&&t.message!==is&&!!t.exception&&!t.type&&o0(e.getOptions().errorSampleRate),a=o||"session"===e.recordingMode;return a&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t},{id:"Replay"})}(e,!(n&&n.on));n&&n.addEventProcessor?n.addEventProcessor(r):function(e){let t=(0,B.s3)();t&&t.addEventProcessor&&t.addEventProcessor(e)}(r),n&&n.on&&(n.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0].value;if("string"==typeof n&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let r=oH({category:"replay.hydrate-error"});oD(e,r)}}(e,t)}),n.on("afterSendEvent",ar(e)),n.on("createDsc",t=>{let n=e.getSessionId();if(n&&e.isEnabled()&&"session"===e.recordingMode){let r=e.checkAndHandleExpiredSession();r&&(t.replay_id=n)}}),n.on("startTransaction",t=>{e.lastTransaction=t}),n.on("finishTransaction",t=>{e.lastTransaction=t}),n.on("beforeSendFeedback",(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n(e){let{entries:n}=e;n.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(rs(e,n))}),r.push(ra(t=>{let{metric:n}=t;e.replayPerformanceEntries.push(function(e){let t=e.entries,n=t[t.length-1],r=n?n.element:void 0,i=e.value,o=oX(i),a={type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:i,size:i,nodeId:r?oO.mirror.getId(r):void 0}};return a}(n))})),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{io.document.removeEventListener("visibilitychange",this._handleVisibilityChange),io.removeEventListener("blur",this._handleWindowBlur),io.removeEventListener("focus",this._handleWindowFocus),io.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===io.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
1dTasks()}}__init2(){this._handleWindowBlur=()=>{let e=oH({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=oH({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=1===a.length;if(!(n||i||o)&&l)return null;let c=(0,eN.Rt)(s,{maxStringLength:200})||"<unknown>",u=o$(s,c);return oH({category:"ui.keyDown",message:c,data:{...u.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a}})}(t);n&&oD(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;let t=o4(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});t||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;let t=this.checkAndHandleExpiredSession();t&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}_updateSessionActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:i6.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(oq).filter(Boolean).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ai(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
1_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await aI(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await aM({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(a){this._handleException(a),this.stop({reason:"sendReplay"});let o=(0,B.s3)();o&&o.recordDroppedEvent("send_error","replay")}}__init5(){var e=this;this._flush=async function(){let{force:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e._isEnabled&&!t||!e.checkAndHandleExpiredSession()||!e.session)return;let n=e.session.started,r=Date.now(),i=r-n;e._debouncedFlush.cancel();let o=i<e._options.minReplayDuration,a=i>e._options.maxReplayDuration+5e3;if(o||a){"[Replay] Session duration (".concat(Math.floor(i/1e3),"s) is too ").concat(o?"short":"long",", not sending replay."),e._options._experiments.traceInternals,o&&e._debouncedFlush();return}let s=e.eventBuffer;if(s&&0===e.session.segmentId&&!s.hasCheckout&&e._options._experiments.traceInternals,!e._flushLock){e._flushLock=e._runFlush(),await e._flushLock,e._flushLock=void 0;return}try{await e._flushLock}catch(l){}finally{e._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&o2(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let o=oH({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(o)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}constructor({options:e,recordingOptions:t}){aD.prototype.__init.call(this),aD.prototype.__init2.call(this),aD.prototype.__init3.call(this),aD.prototype.__init4.call(this),aD.prototype.__init5.call(this),aD.prototype.__init6.call(this),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._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,n){let r,i,o;let a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=setTimeout(s,t),a&&void 0===o&&(o=setTimeout(s,a)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==o?s():r},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},o=()=>[...r.values()].reduce((e,t)=>e+t,0),a=!1;return function(){for(var t=arguments.length,n=Array(t),s=0;s<t;s++)n[s]=arguments[s];let l=Math.floor(Date.now()/1e3);if(i(l),o()>=300){let c=a;return a=!0,c?"__SKIPPED":aN}a=!1;let u=r.get(l)||0;return r.set(l,u+1),e(...n)}}((e,t)=>ae(this,e)?o9(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new oF(this,i))}}function aP(e,t,n,r){let i="string"==typeof r?r.split(","):[],o=[...e,...i,...t];return void 0!==n&&("string"==typeof n&&o.push(".".concat(n)),(0,$.Cf)(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),o.join(",")}let aj='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',aL=["content-length","content-type","accept"],aF=!1;class aU{static __initStatic(){this.id="Replay"}get _isInitialized(){return aF}set _isInitialized(e){aF=e}setupOnce(){ii()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}
1startBuffering(){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):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){let e=function(e){let t=(0,B.s3)(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,z.Jr)(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&(0,$.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):((0,$.Cf)(()=>{console.warn("SDK client is not available.")}),r)}(this._initialOptions);this._replay=new aD({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let e=(0,B.s3)(),t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(n){}}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},sessionSampleRate:l,errorSampleRate:c,maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:h=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:m=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:v=[],networkCaptureBodies:_=!0,networkRequestHeaders:b=[],networkResponseHeaders:S=[],mask:w=[],maskAttributes:x=["title","placeholder"],unmask:k=[],block:E=[],unblock:T=[],ignore:I=[],maskFn:C,beforeAddRecordingEvent:R,beforeErrorSampling:A,blockClass:O,blockSelector:M,maskInputOptions:N,maskTextClass:D,maskTextSelector:P,ignoreClass:j}={}){this.name=aU.id;let L=function(e){let{mask:t,unmask:n,block:r,unblock:i,ignore:o,blockClass:a,blockSelector:s,maskTextClass:l,maskTextSelector:c,ignoreClass:u}=e,d=aP(t,[".sentry-mask","[data-sentry-mask]"],l,c),h=aP(n,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:d,unmaskTextSelector:h,blockSelector:aP(r,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,s),unblockSelector:aP(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:aP(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return a instanceof RegExp&&(p.blockClass=a),l instanceof RegExp&&(p.maskTextClass=l),p}({mask:w,unmask:k,block:E,unblock:T,ignore:I,blockClass:O,blockSelector:M,maskTextClass:D,maskTextSelector:P,ignoreClass:j});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{...N||{},password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>(function(e){let{el:t,key:n,maskAttributes:r,maskAllText:i,privacyOptions:o,value:a}=e;return!i||o.unmaskTextSelector&&t.matches(o.unmaskTextSelector)?a:r.includes(n)||"value"===n&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a})({maskAttributes:x,maskAllText:u,privacyOptions:L,key:e,value:t,el:n}),...L,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,3
16e5),stickySession:i,sessionSampleRate:l,errorSampleRate:c,useCompression:o,workerUrl:a,blockAllMedia:h,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:m,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:v,networkCaptureBodies:_,networkRequestHeaders:aB(b),networkResponseHeaders:aB(S),beforeAddRecordingEvent:R,beforeErrorSampling:A,_experiments:s},"number"==typeof l&&(console.warn("[Replay] You are passing `sessionSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysSessionSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ".concat(l," })")),this._initialOptions.sessionSampleRate=l),"number"==typeof c&&(console.warn("[Replay] You are passing `errorSampleRate` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure `replaysOnErrorSampleRate` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ".concat(c," })")),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?"".concat(this._recordingOptions.blockSelector,",").concat(aj):aj),this._isInitialized&&ii())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}}function aB(e){return[...aL,...e.map(e=>e.toLowerCase())]}aU.__initStatic();var aH=window;aH.__sentryRewritesTunnelPath__="/monitoring",aH.SENTRY_RELEASE={id:"vNBZyO3MFtGvUalm6MP3W"},aH.__sentryBasePath=void 0,aH.__rewriteFramesAssetPrefixPath__="",function(e){let t={environment:function(e){let t=e?na.env.NEXT_PUBLIC_VERCEL_ENV:na.env.VERCEL_ENV;return t?"vercel-".concat(t):void 0}(!0)||"production",defaultIntegrations:function(e){let t=[...no,r7()];return("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&H(e)&&t.push(r1()),t}(e),...e};(function(e){let{integrations:t}=e;t&&(Array.isArray(t)?e.integrations=ie(t):e.integrations=e=>{let n=t(e);return ie(n)})})(t),function(e){let t=r9.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=tN(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],a="".concat(t,"?o=").concat(i,"&p=").concat(n.projectId);o&&(a+="&r=".concat(o)),e.tunnel=a,rJ.X&&$.kg.info('Tunneling events to "'.concat(a,'"'))}else rJ.X&&$.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),U(t,"nextjs",["nextjs","react"]),function(e){let t={...e};U(t,"react"),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};void 0===e.defaultIntegrations&&(e.defaultIntegrations=[...no]),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),ey.SENTRY_RELEASE&&ey.SENTRY_RELEASE.id&&(e.release=ey.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);let t={...e,stackParser:(0,eS.Sq)(e.stackParser||t8),integrations:function(e){let t;let n=e.defaultIntegrations||[],r=e.integrations;n.forEach(e=>{e.isDefaultInstance=!0}),t=Array.isArray(r)?[...n,...r]:"function"==typeof r?(0,W.lE)(r(n)):n;let i=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(t),o=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(i,e=>"Debug"===e.name);if(-1!==o){let[a]=i.splice(o,1);i.push(a)}return i}(e),transport:e.transport||(tt()?nr:ni)};(function(e,t){!0===t.debug&&(Z.X?$.kg.enable():(0,$.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let n=(0,B.nZ)();n.update(t.initialScope);let r=new e(t);(function(e){let t=(0,X.Gd)(),n=t.getStackTop();n.client=e,n.scope.setClient(e)})(r),r.init?r.init():r.setupIntegrations&&r.setupIntegrations()})(tK,t),e.autoSessionTracking&&void 0!==ey.document&&((0,B.yj)({ignoreDuration:!0}),(0,B.cg)(),tc(e=>{let{from:t,to:n}=e;void 0!==t&&t!==n&&((0,B.yj)({ignoreDuration:!0}),(0,B.cg)())}))}(t)}(t);let n=(0,B.nZ)();n.setTag("runtime","browser");let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",n.addEventProcessor(r)}({environment:"prod",dsn:"https://[email protected]/4",tracesSampleRate:1,debug:!1,replaysOnErrorSampleRate:1,replaysSessionSampleRate:.1,integrations:[new aU({maskAllText:!0,blockAllMedia:!0})]})},34920:function(e,t,n){"use strict";n.d(t,{EN:function(){return c},IQ:function(){return u},bU:function(){return a}});var r=n(15333),i=n(52334),o=n(68646);let a="baggage",s="sentry-",l=/^sentry-/;function c(e){if(!(0,i.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>
1{let n=d(t);for(let r of Object.keys(n))e[r]=n[r];return e},{});else{if(!e)return;t=d(e)}let n=Object.entries(t).reduce((e,t)=>{let[n,r]=t;if(n.match(l)){let i=n.slice(s.length);e[i]=r}return e},{});return Object.keys(n).length>0?n:void 0}function u(e){if(!e)return;let t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r&&(e["".concat(s).concat(n)]=r),e},{});return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,t,n)=>{let[i,a]=t,s="".concat(encodeURIComponent(i),"=").concat(encodeURIComponent(a)),l=0===n?s:"".concat(e,",").concat(s);return l.length>8192?(r.X&&o.kg.warn("Not adding key: ".concat(i," with val: ").concat(a," to baggage header due to exceeding baggage size limits.")),e):l},"")}(t)}function d(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,t)=>{let[n,r]=t;return e[n]=r,e},{})}},39634:function(e,t,n){"use strict";n.d(t,{Rt:function(){return a},iY:function(){return c},l4:function(){return s},qT:function(){return l}});var r=n(52334),i=n(33142);let o=(0,i.Rf)();function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{let n,i=e,a=[],s=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&s++<5&&(n=function(e,t){let n,i,a,s,l;let c=[];if(!e||!e.tagName)return"";if(o.HTMLElement&&e instanceof HTMLElement&&e.dataset&&e.dataset.sentryComponent)return e.dataset.sentryComponent;c.push(e.tagName.toLowerCase());let u=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(u&&u.length)u.forEach(e=>{c.push("[".concat(e[0],'="').concat(e[1],'"]'))});else if(e.id&&c.push("#".concat(e.id)),(n=e.className)&&(0,r.HD)(n))for(l=0,i=n.split(/\s+/);l<i.length;l++)c.push(".".concat(i[l]));let d=["aria-label","type","name","title","alt"];for(l=0;l<d.length;l++)a=d[l],(s=e.getAttribute(a))&&c.push("[".concat(a,'="').concat(s,'"]'));return c.join("")}(i,c),"html"!==n&&(!(s>1)||!(l+3*a.length+n.length>=u)));)a.push(n),l+=n.length,i=i.parentNode;return a.reverse().join(" > ")}catch(d){return"<unknown>"}}function s(){try{return o.document.location.href}catch(e){return""}}function l(e){return o.document&&o.document.querySelector?o.document.querySelector(e):null}function c(e){if(!o.HTMLElement)return null;let t=e;for(let n=0;n<5&&t;n++){if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}},15333:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},42969:function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:function(){return i},n:function(){return r}})},52334:function(e,t,n){"use strict";n.d(t,{Cy:function(){return y},HD:function(){return c},J8:function(){return g},Kj:function(){return m},Le:function(){return u},PO:function(){return h},TX:function(){return s},V9:function(){return _},VW:function(){return a},VZ:function(){return i},cO:function(){return p},fm:function(){return l},i2:function(){return v},kK:function(){return f},pt:function(){return d},y1:function(){return b}});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function o(e,t){return r.call(e)==="[object ".concat(t,"]")}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&_(e,Event)}function f(e){return"undefined"!=typeof Element&&_(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"==typeof e.then)}
1function y(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(n){return!1}}function b(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},68646:function(e,t,n){"use strict";n.d(t,{Cf:function(){return s},LD:function(){return a},RU:function(){return o},kg:function(){return l}});var r=n(15333),i=n(33142);let o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.n2))return e();let t=i.n2.console,n={},r=Object.keys(a);r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let l=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?o.forEach(n=>{t[n]=function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];e&&s(()=>{i.n2.console[n]("".concat("Sentry Logger ","[").concat(n,"]:"),...r)})}}):o.forEach(e=>{t[e]=()=>void 0}),t}()},33260:function(e,t,n){"use strict";n.d(t,{DM:function(){return o},Db:function(){return l},EG:function(){return c},YO:function(){return u},jH:function(){return s},lE:function(){return d}});var r=n(3816),i=n(33142);function o(){let e=i.n2,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(r){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){let{message:t,event_id:n}=e;if(t)return t;let r=a(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function c(e,t){let n=a(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let i={...r&&r.data,...t.data};n.mechanism.data=i}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}function d(e){return Array.isArray(e)?e:[e]}},17813:function(e,t,n){"use strict";n.d(t,{KV:function(){return o}});var r=n(42969);e=n.hmd(e);var i=n(83454);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}},95269:function(e,t,n){"use strict";n.d(t,{Fv:function(){return a},Qy:function(){return function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=a(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}}});var r=n(52334),i=n(3816),o=n(22930);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity;try{return function e(t,a){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Infinity,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let r=0;r<t.length;r++){let i=t[r];if(i===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let r=0;r<t.length;r++)if(t[r]===n){t.splice(r,1);break}}]}(),[u,d]=c;if(null==a||["number","boolean","string"].includes(typeof a)&&!(0,r.i2)(a))return a;let h=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if(t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return"[Function: ".concat((0,o.$P)(t),"]");if("symbol"==typeof t)return"[".concat(String(t),"]");if("bigint"==typeof t)return"[BigInt: ".concat(String(t),"]");let i=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(i))return"[HTMLElement: ".concat(i,"]");return"[object ".concat(i,"]")}catch(a){return"**non-serializable** (".concat(a,")")}}(t,a);if(!h.startsWith("[object "))return h;if(a.__sentry_skip_normalization__)return a;let p="number"==typeof a.__sentry_override_normalization_depth__?a.__sentry_override_normalization_depth__:s;if(0===p)return h.replace("object ","");if(u(a))return"[Circular ~]";if(a&&"function"==typeof a.toJSON)try{let f=a.toJSON();return e("",f,p-1,l,c)}catch(m){}let g=Array.isArray(a)?[]:{},y=0,v=(0,i.Sh)(a);for(let _ in v){if(!Object.prototype.hasOwnProperty.call(v,_))continue;if(y>=l){g[_]="[MaxProperties ~]";break}let b=v[_];g[_]=e(_,b,p-1,l,c),y++}return d(a),g}("",e,t,a)}catch(s){return{ERROR:"**non-serializable** (".concat(s,")")}}}},3816:function(e,t,n){"use strict";n.d(t,{$Q:function(){return u},HK:function(){return d},Jr:function(){return y},Sh:function(){return p},_j:function(){return h},hl:function(){return l},xp:function(){return c},zf:function(){return g}});var r=n(39634),i=n(15333),o=n(52334),a=n(68646),s=n(48634);function l(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&u(i,r),e[t]=i}
1function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){i.X&&a.kg.log('Failed to add non-enumerable property "'.concat(t,'" to object'),e)}}function u(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(r){}}function d(e){return e.__sentry_original__}function h(e){return Object.keys(e).map(t=>"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))).join("&")}function p(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,o.cO)(e))return e;{let t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function f(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(n[0],t);for(let r=n.length;r>0;r--){let i=n.slice(0,r).join(", ");if(!(i.length>t)){if(r===n.length)return i;return(0,s.$G)(i,t)}}return""}function y(e){let t=new Map;return function e(t,n){if(function(e){if(!(0,o.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(n){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let a of(n.set(t,i),Object.keys(t)))void 0!==t[a]&&(i[a]=e(t[a],n));return i}if(Array.isArray(t)){let s=n.get(t);if(void 0!==s)return s;let l=[];return n.set(t,l),t.forEach(t=>{l.push(e(t,n))}),l}return t}(e,t)}},22930:function(e,t,n){"use strict";n.d(t,{$P:function(){return l},Sq:function(){return a},pE:function(){return o}});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let o=t.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],a=e.split("\n");for(let s=t;s<a.length;s++){let l=a[s];if(l.length>1024)continue;let c=r.test(l)?l.replace(r,"$1"):l;if(!c.match(/\S*Error: /)){for(let u of o){let d=u(c);if(d){n.push(d);break}}if(n.length>=50)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),i.test(t[t.length-1].function||"")&&(t.pop(),i.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(n)}}function a(e){return Array.isArray(e)?o(...e):e}let s="<anonymous>";function l(e){try{if(!e||"function"!=typeof e)return s;return e.name||s}catch(t){return s}}},48634:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return a},nK:function(){return o}});var r=n(52334);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t?e:e.length<=t?e:"".concat(e.slice(0,t),"...")}function o(e,t){if(!Array.isArray(e))return"";let n=[];for(let i=0;i<e.length;i++){let o=e[i];try{(0,r.y1)(o)?n.push("[VueViewModel]"):n.push(String(o))}catch(a){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.some(t=>(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},56497:function(e,t,n){"use strict";n.d(t,{$2:function(){return s},WD:function(){return a},cW:function(){return l}});var r,i,o=n(52334);function a(e){return new l(t=>{t(e)})}function s(e){return new l((t,n)=>{n(e)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class l{then(e,t){return new l((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>
1{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,o.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}constructor(e){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}}},60155:function(e,t,n){"use strict";n.d(t,{Z1:function(){return a},ph:function(){return o},yW:function(){return i}});var r=n(33142);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=r.n2;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),a=(()=>{let{performance:e}=r.n2;if(!e||!e.now)return;let t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-n):36e5;return i<36e5||a<36e5?i<=a?e.timeOrigin:o:n})()},83379:function(e,t,n){"use strict";n.d(t,{$p:function(){return c},KA:function(){return s},pT:function(){return l}});var r=n(34920),i=n(33260);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}function s(e,t){let n=a(e),o=(0,r.EN)(t),{traceId:s,parentSpanId:l,parentSampled:c}=n||{};return n?{traceparentData:n,dynamicSamplingContext:o||{},propagationContext:{traceId:s||(0,i.DM)(),parentSpanId:l||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:o||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:s||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}}function l(e,t){let n=a(e),o=(0,r.EN)(t),{traceId:s,parentSpanId:l,parentSampled:c}=n||{};return n?{traceId:s||(0,i.DM)(),parentSpanId:l||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:o||{}}:{traceId:s||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.DM)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.DM)().substring(16),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),"".concat(e,"-").concat(t).concat(r)}},33142:function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return o},YO:function(){return a},n2:function(){return i}});let i="object"==typeof globalThis&&r(globalThis)||r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(e,t,n){let r=n||i,o=r.__SENTRY__=r.__SENTRY__||{},a=o[e]||(o[e]=t());return a}},2258:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ep}});var r,i,o,a=n(85893);n(68924),n(74153);var s=n(67294),l=n(67509),c=n(9008),u=n.n(c),d=n(11163),h=n(1785),p=n.n(h);let f=()=>{let e=(0,d.useRouter)(),t=(0,s.useRef)({}),n=(0,s.useRef)(!1);(0,s.useEffect)(()=>{e.beforePopState(()=>(n.current=!0,!0));let r=()=>{let n=e.asPath;t.current[n]=window.scrollY},i=e=>{n.current&&t.current[e]&&window.scroll({top:t.current[e],behavior:"auto"}),n.current=!1};return e.events.on("routeChangeStart",r),e.events.on("routeChangeComplete",i),()=>{e.events.off("routeChangeStart",r),e.events.off("routeChangeComplete",i)}},[e])};var m=n(25934);(r||(r={})).routeChangeComplete="routeChangeComplete",(i||(i={})).routeChange="routeChange",(o||(o={})).commonEvent="common_event";let g=(e,t,n)=>{window.dataLayer.push({event:o.commonEvent,eventId:(0,m.Z)(),custom_category:e,custom_action:t,data_layer_payload:n})},y={staleTTL:6e4,cacheKey:"gbFeaturesCache",backgroundSync:!0},v={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};try{globalThis.localStorage&&(v.localStorage=globalThis.localStorage)}catch(_){}let b=new Map,S=!1,w=new Map,x=new Map,k=new Map,E=new Set;async function T(e,t,n,r,i){let o=await C(e,r,t,n);i&&o&&await M(e,o)}async function I(){try{if(!v.localStorage)return;await v.localStorage.setItem(y.cacheKey,JSON.stringify(Array.from(w.entries())))}catch(e){}}async function C(e,t,n,r){let[i]=R(e),o=new Date;await A();let a=w.get(i);if(a&&!r&&(t||a.staleAt>o))return a.staleAt<o?N(e):D(e),a.data;{var s;let l=await (s=N(e),new Promise(e=>{let t,r=!1,i=n=>{r||(r=!0,t&&clearTimeout(t),e(n||null))};n&&(t=setTimeout(()=>i(),n)),s.then(e=>i(e)).catch(()=>i())}));return l}}function R(e){let[t,n]=e.getApiInfo();return["".concat(t,"||").concat(n),t,n]}async function A(){if(!S){S=!0;try{if(v.localStorage){let e=await v.localStorage.getItem(y.cacheKey);if(e){let t=JSON.parse(e);
1t&&Array.isArray(t)&&t.forEach(e=>{let[t,n]=e;w.set(t,{...n,staleAt:new Date(n.staleAt)})})}}}catch(n){}}}function O(e,t){let n=t.dateUpdated||"",r=new Date(Date.now()+y.staleTTL),i=w.get(e);if(i&&n&&i.version===n){i.staleAt=r;return}w.set(e,{data:t,version:n,staleAt:r}),I();let o=b.get(e);o&&o.forEach(e=>M(e,t))}async function M(e,t){await (t.encryptedFeatures?e.setEncryptedFeatures(t.encryptedFeatures,void 0,v.SubtleCrypto):e.setFeatures(t.features||e.getFeatures()))}async function N(e){let[t,n,r]=R(e),i=x.get(t);return i||(i=v.fetch(n+"/api/features/"+r).then(e=>("enabled"===e.headers.get("x-sse-support")&&E.add(t),e.json())).then(n=>(O(t,n),D(e),x.delete(t),n)).catch(e=>(x.delete(t),Promise.resolve({}))),x.set(t,i)),await i}function D(e){let[t,n,r]=R(e);if(y.backgroundSync&&E.has(t)&&v.EventSource){if(k.has(t))return;let i={src:new v.EventSource("".concat(n,"/sub/").concat(r)),cb:e=>{try{let n=JSON.parse(e.data);O(t,n),i.errors=0}catch(r){P(i,t)}},errors:0};k.set(t,i),i.src.addEventListener("features",i.cb),i.src.onerror=()=>{P(i,t)}}}function P(e,t){var n;e.errors++,(e.errors>3||2===e.src.readyState)&&((n=e).src.onerror=null,n.src.close(),k.delete(t))}function j(e){let t=2166136261,n=e.length;for(let r=0;r<n;r++)t^=e.charCodeAt(r),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return t>>>0}function L(e,t,n){return 2===n?j(j(e+t)+"")%1e4/1e4:1===n?j(t+e)%1e3/1e3:-1}function F(e,t){return e>=t[0]&&e<t[1]}let U={};function B(e,t){if("$or"in t)return z(e,t.$or);if("$nor"in t)return!z(e,t.$nor);if("$and"in t)return function(e,t){for(let n=0;n<t.length;n++)if(!B(e,t[n]))return!1;return!0}(e,t.$and);if("$not"in t)return!B(e,t.$not);for(let[n,r]of Object.entries(t))if(!function e(t,n){if("string"==typeof t)return n+""===t;if("number"==typeof t)return 1*n===t;if("boolean"==typeof t)return!!n===t;if(Array.isArray(t)||!H(t))return JSON.stringify(n)===JSON.stringify(t);for(let r in t)if(!function(t,n,r){switch(t){case"$eq":return n===r;case"$ne":return n!==r;case"$lt":return n<r;case"$lte":return n<=r;case"$gt":return n>r;case"$gte":return n>=r;case"$exists":return r?null!==n:null===n;case"$in":return r.includes(n);case"$nin":return!r.includes(n);case"$not":return!e(r,n);case"$size":if(!Array.isArray(n))return!1;return e(r,n.length);case"$elemMatch":return function(t,n){if(!Array.isArray(t))return!1;let r=H(n)?t=>e(n,t):e=>B(e,n);for(let i=0;i<t.length;i++)if(t[i]&&r(t[i]))return!0;return!1}(n,r);case"$all":if(!Array.isArray(n))return!1;for(let i=0;i<r.length;i++){let o=!1;for(let a=0;a<n.length;a++)if(e(r[i],n[a])){o=!0;break}if(!o)return!1}return!0;case"$regex":try{return(U[r]||(U[r]=RegExp(r.replace(/([^\\])\//g,"$1\\/"))),U[r]).test(n)}catch(s){return!1}case"$type":return function(e){if(null===e)return"null";if(Array.isArray(e))return"array";let t=typeof e;return["string","number","boolean","object","undefined"].includes(t)?t:"unknown"}(n)===r;default:return console.error("Unknown operator: "+t),!1}}(r,n,t[r]))return!1;return!0}(r,function(e,t){let n=t.split("."),r=e;for(let i=0;i<n.length;i++){if(!r||"object"!=typeof r||!(n[i]in r))return null;r=r[n[i]]}return r}(e,n)))return!1;return!0}function H(e){let t=Object.keys(e);return t.length>0&&t.filter(e=>"$"===e[0]).length===t.length}function z(e,t){if(!t.length)return!0;for(let n=0;n<t.length;n++)if(B(e,t[n]))return!0;return!1}let W="undefined"!=typeof window&&"undefined"!=typeof document,$=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let q=s.createContext({}),X=e=>{let t=t=>s.createElement(q.Consumer,null,({growthbook:n})=>s.createElement(e,Z({},t,{runExperiment:e=>n?n.run(e):{featureId:null,value:e.variations[0],variationId:0,inExperiment:!1,hashUsed:!1,hashAttribute:e.hashAttribute||"id",hashValue:"",key:""}})));return t};X.displayName="WithRunExperiment";let V=({children:e,growthbook:t})=>{let[n,r]=s.useState(0);return s.useEffect(()=>{if(t&&t.setRenderer)return t.setRenderer(()=>{r(e=>e+1)}),()=>{t.setRenderer(()=>{})}},[t]),s.createElement(q.Provider,{value:{growthbook:t}},e)};var G=n(87462),J=n(44819),K=n(56760);let Y="function"==typeof Symbol&&Symbol.for;var Q=Y?Symbol.for("mui.nested"):"__THEME_NESTED__",ee=function(e){let{children:t,theme:n}=e,r=(0,K.Z)(),i=s.useMemo(()=>{let e=null===r?n:function(e,t){if("function"==typeof t){let n=t(e);return n}return(0,G.Z)({},e,t)}(r,n);return null!=e&&(e[Q]=null!==r),e},[n,r]);return(0,a.jsx)(J.Z.Provider,{value:i,children:t})},et=n(52443),en=n(96682);let er={};function ei(e){let t=(0,en.Z)();return(0,a.jsx)(et.T.Provider,{value:"object"==typeof t?t:er,children:e.children})}var eo=function(e){let{children:t,theme:n}=e;
1return(0,a.jsx)(ee,{theme:n,children:(0,a.jsx)(ei,{children:t})})},ea=n(84205),es=n(55790),el=n(83844),ec=n(59265),eu=n(83454);let ed=new class{constructor(e){e=e||{},this._ctx=this.context=e,this._renderer=null,this._trackedExperiments=new Set,this._trackedFeatures={},this.debug=!1,this._subscriptions=new Set,this._rtQueue=[],this._rtTimer=0,this.ready=!1,this._assigned=new Map,this._forcedFeatureValues=new Map,this._attributeOverrides={},e.features&&(this.ready=!0),W&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.clientKey&&this._refresh({},!0,!1)}async loadFeatures(e){await this._refresh(e,!0,!0),e&&e.autoRefresh&&function(e){let[t]=R(e),n=b.get(t)||new Set;n.add(e),b.set(t,n)}(this)}async refreshFeatures(e){await this._refresh(e,!1,!0)}getApiInfo(){return[(this._ctx.apiHost||"https://cdn.growthbook.io").replace(/\/*$/,""),this._ctx.clientKey||""]}async _refresh(e,t,n){if(e=e||{},!this._ctx.clientKey)throw Error("Missing clientKey");await T(this,e.timeout,e.skipCache||this._ctx.enableDevMode,t,n)}_render(){this._renderer&&this._renderer()}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,n){if(t=t||this._ctx.decryptionKey||"",!(n=n||globalThis.crypto&&globalThis.crypto.subtle))throw Error("No SubtleCrypto implementation found");try{let r=await n.importKey("raw",$(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),a=await n.decrypt({name:"AES-CBC",iv:$(i)},r,$(o));this.setFeatures(JSON.parse(new TextDecoder().decode(a)))}catch(s){throw Error("Failed to decrypt features")}}setAttributes(e){this._ctx.attributes=e,this._render()}setAttributeOverrides(e){this._attributeOverrides=e,this._render()}setForcedVariations(e){this._ctx.forcedVariations=e||{},this._render()}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getFeatures(){return this._ctx.features||{}}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._trackedFeatures={},this._rtQueue=[],this._rtTimer&&clearTimeout(this._rtTimer),e=this,b.forEach(t=>t.delete(e)),W&&window._growthbook===this&&delete window._growthbook}setRenderer(e){this._renderer=e}forceVariation(e,t){this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._render()}run(e){let t=this._run(e,null);return this._fireSubscriptions(e,t),t}_fireSubscriptions(e,t){let n=e.key,r=this._assigned.get(n);r&&r.result.inExperiment===t.inExperiment&&r.result.variationId===t.variationId||(this._assigned.set(n,{experiment:e,result:t}),this._subscriptions.forEach(n=>{try{n(e,t)}catch(r){console.error(r)}}))}_trackFeatureUsage(e,t){if("override"===t.source)return;let n=JSON.stringify(t.value);if(this._trackedFeatures[e]!==n){if(this._trackedFeatures[e]=n,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(r){}W&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout(()=>{this._rtTimer=0;let e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch(()=>{})},this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,n,r,i,o){let a={value:t,on:!!t,off:!t,source:n,ruleId:r||""};return i&&(a.experiment=i),o&&(a.experimentResult=o),this._trackFeatureUsage(e,a),a}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){let n=this.evalFeature(e).value;return null===n?t:n}feature(e){return this.evalFeature(e)}evalFeature(e){if(this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");let t=this._ctx.features[e];if(t.rules)for(let n of t.rules){if(n.condition&&!this._conditionPasses(n.condition)||n.filters&&this._isFilteredOut(n.filters))continue;if("force"in n){if(!this._isIncludedInRollout(n.seed||e,n.hashAttribute,n.range,n.coverage,n.hashVersion))continue;
1return n.tracks&&n.tracks.forEach(e=>{this._track(e.experiment,e.result)}),this._getFeatureResult(e,n.force,"force",n.id)}if(!n.variations)continue;let r={variations:n.variations,key:n.key||e};"coverage"in n&&(r.coverage=n.coverage),n.weights&&(r.weights=n.weights),n.hashAttribute&&(r.hashAttribute=n.hashAttribute),n.namespace&&(r.namespace=n.namespace),n.meta&&(r.meta=n.meta),n.ranges&&(r.ranges=n.ranges),n.name&&(r.name=n.name),n.phase&&(r.phase=n.phase),n.seed&&(r.seed=n.seed),n.hashVersion&&(r.hashVersion=n.hashVersion),n.filters&&(r.filters=n.filters);let i=this._run(r,e);if(this._fireSubscriptions(r,i),i.inExperiment&&!i.passthrough)return this._getFeatureResult(e,i.value,"experiment",n.id,r,i)}return this._getFeatureResult(e,void 0===t.defaultValue?null:t.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,n,r,i){if(!n&&void 0===r)return!0;let{hashValue:o}=this._getHashAttribute(t);if(!o)return!1;let a=L(e,o,i||1);return n?F(a,n):void 0===r||a<=r}_conditionPasses(e){return B(this.getAttributes(),e)}_isFilteredOut(e){return e.some(e=>{let{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;let n=L(e.seed,t,e.hashVersion||2);return!e.ranges.some(e=>F(n,e))})}_run(e,t){let n=e.key,r=e.variations.length;if(r<2||!1===this._ctx.enabled)return this._getResult(e,-1,!1,t);e=this._mergeOverrides(e);let i=function(e,t,n){if(!t)return null;let r=t.split("?")[1];if(!r)return null;let i=r.replace(/#.*/,"").split("&").map(e=>e.split("=",2)).filter(t=>{let[n]=t;return n===e}).map(e=>{let[,t]=e;return parseInt(t)});return i.length>0&&i[0]>=0&&i[0]<n?i[0]:null}(n,this._getContextUrl(),r);if(null!==i)return this._getResult(e,i,!1,t);if(this._ctx.forcedVariations&&n in this._ctx.forcedVariations){let o=this._ctx.forcedVariations[n];return this._getResult(e,o,!1,t)}if("draft"===e.status||!1===e.active)return this._getResult(e,-1,!1,t);let{hashValue:a}=this._getHashAttribute(e.hashAttribute);if(!a)return this._getResult(e,-1,!1,t);if(e.filters){if(this._isFilteredOut(e.filters))return this._getResult(e,-1,!1,t)}else if(e.namespace&&!function(e,t){let n=L("__"+t[0],e,1);return n>=t[1]&&n<t[2]}(a,e.namespace))return this._getResult(e,-1,!1,t);if(e.include&&!function(e){try{return e()}catch(t){return console.error(t),!1}}(e.include)||e.condition&&!this._conditionPasses(e.condition)||e.groups&&!this._hasGroupOverlap(e.groups)||e.url&&!this._urlIsValid(e.url))return this._getResult(e,-1,!1,t);let s=L(e.seed||n,a,e.hashVersion||1),l=e.ranges||function(e,t,n){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);let r=e<=0?[]:Array(e).fill(1/e);(n=n||r).length!==e&&(n=r);let i=n.reduce((e,t)=>t+e,0);(i<.99||i>1.01)&&(n=r);let o=0;return n.map(e=>{let n=o;return o+=e,[n,n+t*e]})}(r,void 0===e.coverage?1:e.coverage,e.weights),c=function(e,t){for(let n=0;n<t.length;n++)if(F(e,t[n]))return n;return -1}(s,l);if(c<0)return this._getResult(e,-1,!1,t);if("force"in e)return this._getResult(e,void 0===e.force?-1:e.force,!1,t);if(this._ctx.qaMode||"stopped"===e.status)return this._getResult(e,-1,!1,t);let u=this._getResult(e,c,!0,t,s);return this._track(e,u),u}log(e,t){this.debug&&(this._ctx.log?this._ctx.log(e,t):console.log(e,t))}_track(e,t){if(!this._ctx.trackingCallback)return;let n=e.key,r=t.hashAttribute+t.hashValue+n+t.variationId;if(!this._trackedExperiments.has(r)){this._trackedExperiments.add(r);try{this._ctx.trackingCallback(e,t)}catch(i){console.error(i)}}}_mergeOverrides(e){let t=e.key,n=this._ctx.overrides;return n&&n[t]&&"string"==typeof(e=Object.assign({},e,n[t])).url&&(e.url=function(e){try{let t=e.replace(/([^\\])\//g,"$1\\/");return RegExp(t)}catch(n){console.error(n);return}}(e.url)),e}_getHashAttribute(e){let t=e||"id",n="";return this._attributeOverrides[t]?n=this._attributeOverrides[t]:this._ctx.attributes?n=this._ctx.attributes[t]||"":this._ctx.user&&(n=this._ctx.user[t]||""),{hashAttribute:t,hashValue:n}}_getResult(e,t,n,r,i){let o=!0;(t<0||t>=e.variations.length)&&(t=0,o=!1);let{hashAttribute:a,hashValue:s}=this._getHashAttribute(e.hashAttribute),l=e.meta?e.meta[t]:{},c={key:l.key||""+t,featureId:r,inExperiment:o,hashUsed:n,variationId:t,value:e.variations[t],hashAttribute:a,hashValue:s};return l.name&&(c.name=l.name),void 0!==i&&(c.bucket=i),l.passthrough&&(c.passthrough=l.passthrough),c}_getContextUrl(){return this._ctx.url||(W?window.location.href:"")}_urlIsValid(e){let t=this._getContextUrl();if(!t)return!1;let n=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(e.test(t)||e.test(n))}_hasGroupOverlap(e){let t=this._ctx.groups||{};for(let n=0;n<e.length;n++)if(t[e[n]])return!0;return!1}}({apiHost:"https://cdn.growthbook.io",clientKey:eu.env.NEXT_PUBLIC_GROWTHBOOK_CLIENT_KEY||"sdk-uL88p7GRxAloXq4",enableDevMode:!1,trackingCallback:(e,t)=>{console.log("Viewed Experiment",{experimentId:e.key,variationId:t.key})}}),eh=e=>{let{Component:t,pageProps:n}=e;f();let o=(0,d.useRouter)(),c=new l.eR,h=c.getItem("amplifyUserUuid"),y=(0,s.useRef)(!1);if(!h){let v=(0,m.Z)();c.setItem("amplifyUserUuid",v,{path:"/",domain:".getamplifylife.com",secure:!0,sameSite:"None",expires:new Date(new Date().setFullYear(new Date().getFullYear()+1))}),h=v}async function _(){ed.setAttributes({...ed.getAttributes(),amplifyUserUuid:h}),await ed.loadFeatures({autoRefresh:!0})}return(0,s.useEffect)(()=>{let e=e=>{c.setItem("cookieBannerReviewed","true",{path:"/",domain:".getamplifylife.com",secure:!0,sameSite:"None",expires:new Date(new Date().setFullYear(new Date().getFullYear()+1))})};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[]),(0,s.useEffect)(()=>{window.dataLayer=window.dataLayer||[],p().initialize({gtmId:"GTM-W9M7DGM"}),g(r.routeChangeComplete,i.routeChange),o.events.on("routeChangeComplete",()=>{g(r.routeChangeComplete,i.routeChange)})},[]),(0,s.useEffect)(()=>{(async function(){await _(),window.dataLayer.push({new_home_page:ed.isOn("new-home-page")})})()},[o.events]),(0,s.useEffect)(()=>{y.current||(new ea.Y().logEvent("website-page-view",{pageviewed:o.asPath.includes("?")?o.asPath.split("?")[0]:o.asPath,params:Object.fromEntries(new URLSearchParams(window.location.search)),distinct_id:h},Object.fromEntries(new URLSearchParams(window.location.search))),y.current=!0)},[o.asPath]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u(),{children:(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})}),(0,a.jsx)(V,{growthbook:ed,children:(0,a.jsx)(eo,{theme:el.Z,children:(0,a.jsx)(es.i,{children:(0,a.jsx)(ec.D,{children:(0,a.jsx)(t,{...n})})})})})]})};var ep=eh},55790:function(e,t,n){"use strict";n.d(t,{I:function(){return a},i:function(){return s}});var r=n(85893),i=n(67294),o=n(11163);let a=(0,i.createContext)(),s=e=>{let{children:t}=e,[n,s]=(0,i.useState)(null),[l,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)([]),h=(0,o.useRouter)();return(0,i.useEffect)(()=>{let e=()=>{s(""),c(!1),d([])};return h.events.on("routeChangeStart",e),()=>{h.events.off("routeChangeStart",e)}},[h]),(0,r.jsx)(a.Provider,{value:{search:n,setSearch:s,pending:l,setPending:c,searchResult:u,setSearchResult:d},children:t})}},59265:function(e,t,n){"use strict";n.d(t,{Q:function(){return s},D:function(){return l}});var r=n(85893),i=n(67294),o=n(11163);let a=()=>{let[e,t]=(0,i.useState)(!1),n=(0,o.useRouter)();(0,i.useEffect)(()=>{let{banner:e,...r}=n.query;"reengagement-confirmation"===e&&(t(!0),n.replace({pathname:n.pathname,query:r},void 0,{shallow:!0}))},[n,n.query]);let r=()=>t(!1);return{openNotice:e,closeNotice:r}},s=(0,i.createContext)(),l=e=>{let{children:t}=e,{openNotice:n,closeNotice:i}=a();return(0,r.jsx)(s.Provider,{value:{isNoticeVisible:n,closeNotice:i},children:t})}},84205:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var r=n(14924),i=n(9669),o=n.n(i),a=n(25934),s=n(67509);class l{constructor(){(0,r.Z)(this,"axios",null),(0,r.Z)(this,"userId",null),(0,r.Z)(this,"source",""),(0,r.Z)(this,"origin",""),(0,r.Z)(this,"logLead",async(e,t,n,r,i)=>{if(this.source)try{await this.axios.post("/leads/".concat(this.source,"/").concat(this.userId,"/").concat(n),{userId:this.userId,action:n,distinct_id:this.userId,data:{utm_origin:this.source,utm_source:this.source,...i,...r}})}catch(o){console.error(o)}}),(0,r.Z)(this,"logWidgetEvent",async(e,t,n,r)=>{if(this.source)try{await this.axios.post("/log/widget/".concat(n),{userId:this.userId,action:n,distinct_id:this.userId,data:{utm_origin:this.origin,utm_source:this.source,...r}})}catch(i){console.error(i)}}),(0,r.Z)(this,"logEvent",async(e,t,n)=>{try{await this.axios.post("/log/walkthrough/".concat(e),{userId:this.userId,action:e,distinct_id:this.userId,data:{...t},params:n})}catch(r){console.error(r)}}),this.axios=o().create({baseURL:"https://api.getamplifylife.com"});let e=new s.eR,t=e.getItem("amplifyUserUuid"),n=new URLSearchParams(window.location.search);if(this.source=n.get("utm_source"),this.origin=n.get("utm_origin"),t)this.userId=t;else{let i=(0,a.Z)();e.setItem("amplifyUserUuid",i,{path:"/",domain:".getamplifylife.com",secure:!0,sameSite:"None",expires:new Date(new Date().setFullYear(new Date().getFullYear()+1))}),this.userId=i}}}},83844:function(e,t,n){"use strict";var r=n(45805);t.Z=r.Z},45805:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r,i,o,a,s,l,c,u=n(68239),d=n(37211),h=n.n(d);let p=e=>
1({MuiFilledInput:{defaultProps:{disableUnderline:!0},styleOverrides:{input:{position:"relative",outline:0,fontWeight:400,fontFamily:"inherit",boxShadow:"none",color:e.palette.text.black,borderRadius:"6px",padding:"16px",backgroundColor:"#d3f7dc",width:"100%",fontSize:"1.8rem",lineHeight:"140%","&:-webkit-autofill, &:-webkit-autofill:focus":{transition:"background-color 5000s ease-in-out 0s"},"&::placeholder":{opacity:1,color:"#828282",padding:0}},root:{outline:"none",width:"100%",borderRadius:"6px",padding:0,position:"relative"}}},MuiFormLabel:{styleOverrides:{root:{"&.MuiInputLabel-root":{color:e.palette.text.primary,fontFamily:h().style.fontFamily,fontWeight:400,fontSize:"18px"}}}},MuiOutlinedInput:{styleOverrides:{root:{height:"64px","& .MuiOutlinedInput-notchedOutline":{borderRadius:0},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderRadius:0,borderColor:e.palette.text.primary,borderWidth:1},borderRadius:0,fieldset:{borderColor:e.palette.text.primary,legend:{fontSize:"14px"}}},input:{fontFamily:h().style.fontFamily,fontSize:"18px",padding:"14px"}}},MuiFormHelperText:{styleOverrides:{root:{"&.Mui-error":{color:"#f6515b"}},contained:{borderRadius:0,marginLeft:0,padding:0,position:"absolute",bottom:"1em",textTransform:"none",fontSize:"1rem",width:"100%",lineHeight:1,fontWeight:400,marginBottom:"-24px"}}}});n(83844);var f=n(64156),m=n.n(f);let g=e=>({MuiAlert:{styleOverrides:{filledInfo:{padding:e.spacing(0),borderRadius:e.spacing(2),fontSize:"1.6rem",[e.breakpoints.up("md")]:{fontSize:"1.4rem"},width:"100%",boxShadow:"0px 0px 12px 0px #00000014",backgroundColor:"#F2FCFF","& .MuiAlert-message":{display:"flex",justifyContent:"center",flexDirection:"column",padding:e.spacing(12,0,10,6),fontWeight:400,lineHeight:"130%",color:"#5A5A5A",[e.breakpoints.up("md")]:{color:"#000000",padding:e.spacing(3,6)}},"& .MuiAlert-action":{padding:e.spacing(6,6,0,0),marginRight:0,[e.breakpoints.up("md")]:{margin:"auto",padding:e.spacing(0,6)},"& svg":{fontSize:"1.8rem"}},"& .MuiAlert-icon":{borderRadius:"8px 0 0 8px",display:"none",alignItems:"center",padding:e.spacing(7,3),backgroundColor:"#D9F5FF",color:"#00417D",marginRight:0,fontSize:"2.4rem",[e.breakpoints.up("md")]:{display:"flex"}}}}},MuiAlertTitle:{styleOverrides:{root:{fontWeight:500,color:"#333333",fontSize:"2.2rem",[e.breakpoints.up("md")]:{fontSize:"1.8rem"}}}}}),y=(0,u.Z)({spacing:4,palette:{primary:{lighter:"#EFFCF3",main:"#5AE288",dark:"#368852"},secondary:{lighter:"#EDFCF2",light:"#ADF1C3",dark:"#80DD90",main:"#cccccc",softYellow:"#F8DC6D"},text:{primary:"#174943",white:"#FFFFFF",black:"#000000",lighterGray:"#F3F5F5",lightGray:"#E8EDEC",softGray:"#8C8C8C",gray:"#5C5C5C",darkGray:"#2F2F2F"},info:{main:"#FBF9EE"}},breakpoints:{values:{xs:0,sm:600,md:768,mdLg:900,lg:1200,xl:1440,xxl:1752}}});y=(0,u.Z)(y,{typography:(r=y,{htmlFontSize:10,h0:{fontFamily:[m().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"10rem",lineHeight:"11rem",fontWeight:400,color:r.palette.text.primary},h1:{fontFamily:[m().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),lineHeight:"120%",fontWeight:400,fontSize:"3.2rem",scrollMargin:180,color:r.palette.text.primary,[r.breakpoints.up("sm")]:{fontSize:"6.4rem"},[r.breakpoints.up("xl")]:{fontSize:"7.2rem"}},h2:{fontFamily:[m().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"2.8rem",lineHeight:"120%",fontWeight:400,color:r.palette.text.primary,[r.breakpoints.up("xl")]:{fontSize:"5.4rem"}},h3:{fontFamily:[m().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"2.2rem",lineHeight:"120%",fontWeight:400,color:r.palette.text.primary,[r.breakpoints.up("lg")]:{fontSize:"4.8rem"}},h3Guide:{fontFamily:[m().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"2.8rem",lineHeight:"120%",fontWeight:400,fontStyle:"italic",scrollPaddingTop:200,scrollMargin:180,color:r.palette.text.primary,[r.breakpoints.up("lg")]:{fontSize:"4.4rem"}},h4:{fontFamily:[m().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"2.8rem",lineHeight:"120%",fontWeight:400,color:r.palette.text.primary,[r.breakpoints.up("xl")]:{fontSize:"2.8rem"}},h4Mobile:{fontFamily:[m().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontWeight:400,fontSize:"3.6rem",lineHeight:"120%",color:r.palette.text.primary},h5:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"1.6rem",lineHeight:"120%",fontWeight:500,color:r.palette.text.primary,[r.breakpoints.up("xl")]:{fontSize:"2.2rem"}},h5Guide:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"2.6rem",lineHeight:"39px",fontWeight:400,color:r.palette.text.primary,[r.breakpoints.up("xl")]:{fontSize:"2.6rem"}},h4MobileSecondary:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontWeight:400,fontSize:"3.6rem",lineHeight:"120%",color:r.palette.text.primary},body1:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"2.6rem",lineHeight:"120%",fontWeight:400,color:r.palette.text.primary,[r.breakpoints.up("md")]:{fontSize:"2.8rem"}},body2:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"1.8rem",lineHeight:"120%",fontWeight:400,color:r.palette.text.primary,[r.breakpoints.up("md")]:{fontSize:"2.4rem"}},body3:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"2rem",lineHeight:"120%",fontWeight:400,color:r.palette.text.primary},body4:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"1.8rem",lineHeight:"140%",fontWeight:400,color:r.palette.text.primary},body4Guide:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"1.8rem",lineHeight:"27px",fontWeight:400,color:r.palette.text.primary},caption1:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"1.4rem",lineHeight:"140%",letterSpacing:"0.16em",textTransform:"uppercase",fontWeight:500,color:r.palette.text.primary,[r.breakpoints.up("md")]:{fontSize:"1.6rem"}},caption2:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"1.4rem",lineHeight:"120%",textTransform:"uppercase",fontWeight:600,color:r.palette.text.primary},caption3:{fontFamily:[h().style.fontFamily,"-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontSize:"1.2rem",lineHeight:"120%",fontWeight:"normal",color:r.palette.text.primary}})});var v=y=(0,u.Z)(y,{components:{MuiButton:(i=y,{defaultProps:{disableElevation:!0},styleOverrides:{root:{fontSize:"1.4rem",lineHeight:"1.7rem",fontWeight:600,letterSpacing:"0.05em",minWidth:"149px",minHeight:"38px",display:"inline-flex",fontFamily:"".concat(h().style.fontFamily," !important"),outline:"none",color:i.palette.text.primary,padding:"20px",borderRadius:"100px",backgroundColor:i.palette.text.white,transition:"background-color 0.3s ease-out, border-color 0.3s ease-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.5)",color:i.palette.text.primary},"&.Mui-disabled":{borderWidth:2}},outlinedPrimary:{borderWidth:"2px",color:i.palette.text.primary,borderColor:i.palette.text.primary,backgroundColor:"transparent","&:hover, &.Mui-focusVisible":{borderWidth:"2px",borderColor:i.palette.text.primary,backgroundColor:i.palette.text.primary,color:i.palette.text.white}},outlinedSecondary:{borderColor:i.palette.text.white,color:i.palette.text.white,backgroundColor:"transparent","&:hover, &.Mui-focusVisible":{backgroundColor:i.palette.text.white,borderColor:i.palette.text.white,color:i.palette.text.black}},containedPrimary:{color:i.palette.text.primary,borderColor:i.palette.primary.main,backgroundColor:i.palette.primary.main,"&:hover, &.Mui-focusVisible":{backgroundColor:"#9
1CEDB7",borderColor:"#9CEDB7"}},containedSecondary:{color:i.palette.text.white,borderColor:i.palette.text.primary,backgroundColor:i.palette.text.primary,"&:hover, &.Mui-focusVisible":{color:i.palette.text.white,backgroundColor:"#8AA3A0",borderColor:"#8AA3A0"}},endIcon:{"& >*:nth-of-type(1)":{fontSize:"2.5rem","@media (min-width: 900px)":{fontSize:"3.2rem"}}}}}),MuiDrawer:{styleOverrides:{paper:{width:"100%",height:"100%",boxShadow:"none",overflowY:"hidden",backgroundColor:y.palette.text.primary}}},MuiFilledInput:p(y).MuiFilledInput,MuiOutlinedInput:p(y).MuiOutlinedInput,MuiFormLabel:p(y).MuiFormLabel,MuiFormHelperText:p(y),MuiSlider:{styleOverrides:{mark:{backgroundColor:(a=y).palette.text.white,border:"4px solid ".concat(a.palette.text.primary),borderRadius:"100%",height:"15px",width:"15px",zIndex:"10",markActive:{opacity:1,backgroundColor:"currentColor"}},root:{"@media (pointer: coarse)":{padding:"13px 0"}},rail:{opacity:1},thumb:{backgroundColor:a.palette.text.primary,border:"2px solid currentColor","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&:after,&:before":{display:"none"}},valueLabel:{background:"unset",color:a.palette.primary.main,padding:"12px 50px",fontWeight:600,fontSize:"1.6rem",lineHeight:"140%",letterSpacing:"0.2em",width:32,height:32,borderRadius:"2px",backgroundColor:a.palette.text.primary,transform:"translate(0, 0) rotate(0) !important",transformOrigin:"unset",top:"-45px","&:after":{display:"none"},"&:before":{width:20,height:20},valueLabelCircle:{valueLabelLabel:{"&:before":{content:"'$'"}}},"& > *":{transform:"rotate(0deg)"}}}},MuiTooltip:{defaultProps:{enterTouchDelay:50,enterNextDelay:500,enterDelay:200,leaveDelay:500},styleOverrides:{tooltip:{paddingTop:14,paddingBottom:14,paddingLeft:8,paddingRight:8,maxWidth:"320px",fontSize:"16px",backgroundColor:(s=y).palette.text.white,border:"2px solid ".concat(s.palette.primary.main),borderRadius:"16px",color:"rgba(0, 0, 0, 0.87)",boxShadow:"0px 0px 8px rgba(0, 0, 0, 0.25)",marginTop:"15px !important",marginBottom:"15px !important",marginLeft:"15px !important",marginRight:"15px !important"},arrow:{fontSize:"30px",color:"white","&:before":{outline:"2px solid ".concat(s.palette.primary.main)}}}},MuiListItemButton:{styleOverrides:{root:{padding:0,backgroundColor:"transparent","&: hover":{backgroundColor:"transparent"},"&.Mui-selected":{backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"}}}}},MuiContainer:(l=y,{defaultProps:{maxWidth:"xxl",component:"section"},styleOverrides:{root:e=>{let{ownerState:t}=e;return{margin:"0 auto",...(null==t?void 0:t.disableGutters)?{}:{padding:l.spacing(0,5),[l.breakpoints.up("md")]:{padding:l.spacing(0,4)},[l.breakpoints.up("xl")]:{padding:l.spacing(0,14)}}}}}}),MuiLink:{styleOverrides:{root:{"&:hover":{cursor:"pointer",color:y.palette.primary.main}}}},MuiAlert:g(y).MuiAlert,MuiAlertTitle:g(y).MuiAlertTitle}})},68924:function(){},74153:function(){},37211:function(e){e.exports={style:{fontFamily:"'__Fredoka_211382', '__Fredoka_Fallback_211382'",fontStyle:"normal"},className:"__className_211382"}},64156:function(e){e.exports={style:{fontFamily:"'__Lora_343c48', '__Lora_Fallback_343c48'"},className:"__className_343c48"}},77663:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(r){n=a}}();var l=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(r){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},9008:function(e,t,n){e.exports=n(83121)},11163:function(e,t,n){e.exports=n(80880)},56421:function(e,t,n){"use strict";var r,i=(r=n(96425))&&r.__esModule?r:{default:r};e.exports={tags:function(e){var t=e.id,n=e.events,r=e.dataLayer,o=e.dataLayerName,a=e.preview,s="&gtm_auth="+e.auth,l="&gtm_preview="+a;t||(0,i.default)("GTM Id is required");var c="\n      (function(w,d,s,l,i){w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', "+JSON.stringify(n).slice(1,-1)+"});\n        var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n        j.async=true;
1j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'"+s+l+"&gtm_cookies_win=x';\n        f.parentNode.insertBefore(j,f);\n      })(window,document,'script','"+o+"','"+t+"');";return{iframe:'\n      <iframe src="https://www.googletagmanager.com/ns.html?id='+t+s+l+'&gtm_cookies_win=x"\n        height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>',script:c,dataLayerVar:this.dataLayer(r,o)}},dataLayer:function(e,t){return"\n      window."+t+" = window."+t+" || [];\n      window."+t+".push("+JSON.stringify(e)+")"}}},58676:function(e,t,n){"use strict";var r,i=(r=n(56421))&&r.__esModule?r:{default:r};e.exports={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=i.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,n=e.events,r=e.dataLayer,i=e.dataLayerName,o=e.auth,a=e.preview,s=this.gtm({id:t,events:void 0===n?{}:n,dataLayer:r||void 0,dataLayerName:void 0===i?"dataLayer":i,auth:void 0===o?"":o,preview:void 0===a?"":a});r&&document.head.appendChild(s.dataScript),document.head.insertBefore(s.script(),document.head.childNodes[0]),document.body.insertBefore(s.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,n=e.dataLayerName,r=void 0===n?"dataLayer":n;if(window[r])return window[r].push(t);var o=i.default.dataLayer(t,r),a=this.dataScript(o);document.head.insertBefore(a,document.head.childNodes[0])}}},1785:function(e,t,n){"use strict";var r,i=(r=n(58676))&&r.__esModule?r:{default:r};e.exports=i.default},96425:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.warn("[react-gtm]",e)}},25934:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r,i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=[],l=0;l<256;++l)s.push((l+256).toString(16).substr(1));var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!("string"==typeof n&&a.test(n)))throw TypeError("Stringified UUID is invalid");return n},u=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return c(r)}},87462:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},14924:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(52146),t(23837),t(80880)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.