-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemos.d54ba0ac.async.js
42 lines (42 loc) · 329 KB
/
demos.d54ba0ac.async.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
!(function(){var ha=Object.defineProperty,ma=Object.defineProperties;var ga=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var Dr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable;var xr=(Z,G,I)=>G in Z?ha(Z,G,{enumerable:!0,configurable:!0,writable:!0,value:I}):Z[G]=I,$=(Z,G)=>{for(var I in G||(G={}))Dr.call(G,I)&&xr(Z,I,G[I]);if(He)for(var I of He(G))Cr.call(G,I)&&xr(Z,I,G[I]);return Z},mt=(Z,G)=>ma(Z,ga(G));var kr=(Z,G)=>{var I={};for(var M in Z)Dr.call(Z,M)&&G.indexOf(M)<0&&(I[M]=Z[M]);if(Z!=null&&He)for(var M of He(Z))G.indexOf(M)<0&&Cr.call(Z,M)&&(I[M]=Z[M]);return I};var un=(Z,G,I)=>new Promise((M,P)=>{var S=h=>{try{f(I.next(h))}catch(o){P(o)}},T=h=>{try{f(I.throw(h))}catch(o){P(o)}},f=h=>h.done?M(h.value):Promise.resolve(h.value).then(S,T);f((I=I.apply(Z,G)).next())});(self.webpackChunk_dext7r_docs=self.webpackChunk_dext7r_docs||[]).push([[433],{77603:function(Z,G,I){"use strict";I.d(G,{U:function(){return o},h:function(){return e}});var M=I(69039),P=I(46854);const S="7";function T(r){const c=r.protocol?`${r.protocol}:`:"",a=r.port?`:${r.port}`:"";return`${c}//${r.host}${a}${r.path?`/${r.path}`:""}/api/`}function f(r){return`${T(r)}${r.projectId}/envelope/`}function h(r,c){return(0,M._j)($({sentry_key:r.publicKey,sentry_version:S},c&&{sentry_client:`${c.name}/${c.version}`}))}function o(r,c={}){const a=typeof c=="string"?c:c.tunnel,p=typeof c=="string"||!c._metadata?void 0:c._metadata.sdk;return a||`${f(r)}?${h(r,p)}`}function e(r,c){const a=(0,P.vK)(r);if(!a)return"";const p=`${T(a)}embed/error-page/`;let _=`dsn=${(0,P.RA)(a)}`;for(const i in c)if(i!=="dsn"&&i!=="onClose")if(i==="user"){const u=c.user;if(!u)continue;u.name&&(_+=`&name=${encodeURIComponent(u.name)}`),u.email&&(_+=`&email=${encodeURIComponent(u.email)}`)}else _+=`&${encodeURIComponent(i)}=${encodeURIComponent(c[i])}`;return`${p}?${_}`}},99652:function(Z,G,I){"use strict";I.d(G,{W:function(){return X},Q:function(){return ft}});var M=I(46854),P=I(87016),S=I(89102),T=I(84644),f=I(2610),h=I(44631),o=I(62069),e=I(77603),r=I(56301);function c(z,F){return F&&(z.sdk=z.sdk||{},z.sdk.name=z.sdk.name||F.name,z.sdk.version=z.sdk.version||F.version,z.sdk.integrations=[...z.sdk.integrations||[],...F.integrations||[]],z.sdk.packages=[...z.sdk.packages||[],...F.packages||[]]),z}function a(z,F,J,nt){const rt=(0,h.HY)(J),ot=$($({sent_at:new Date().toISOString()},rt&&{sdk:rt}),!!nt&&F&&{dsn:(0,M.RA)(F)}),yt="aggregates"in z?[{type:"sessions"},z]:[{type:"session"},z.toJSON()];return(0,h.Jd)(ot,[yt])}function p(z,F,J,nt){const rt=(0,h.HY)(J),ot=z.type&&z.type!=="replay_event"?z.type:"event";c(z,J&&J.sdk);const yt=(0,h.Cd)(z,rt,nt,F);delete z.sdkProcessingMetadata;const Et=[{type:ot},z];return(0,h.Jd)(yt,[Et])}var _=I(60663),i=I(96722),u=I(15069);function s(z,F,J,nt){const rt=Object.entries(dropUndefinedKeys(nt)).sort((ot,yt)=>ot[0].localeCompare(yt[0]));return`${z}${F}${J}${rt}`}function l(z){let F=0;for(let J=0;J<z.length;J++){const nt=z.charCodeAt(J);F=(F<<5)-F+nt,F&=F}return F>>>0}function y(z){let F="";for(const J of z){const nt=Object.entries(J.tags),rt=nt.length>0?`|#${nt.map(([ot,yt])=>`${ot}:${yt}`).join(",")}`:"";F+=`${J.name}@${J.unit}:${J.metric}|${J.metricType}${rt}|T${J.timestamp}
`}return F}function v(z){return z.replace(/[^\w]+/gi,"_")}function b(z){return z.replace(/[^\w\-.]+/gi,"_")}function E(z){return z.replace(/[^\w\-./]+/gi,"")}const O=null;function d(z){for(const[F,J]of O)if(z===F)return J;return z}function m(z){return[...z].reduce((F,J)=>F+d(J),"")}function x(z){const F={};for(const J in z)if(Object.prototype.hasOwnProperty.call(z,J)){const nt=E(J);F[nt]=m(String(z[J]))}return F}function w(z,F,J,nt){const rt={sent_at:new Date().toISOString()};J&&J.sdk&&(rt.sdk={name:J.sdk.name,version:J.sdk.version}),nt&&F&&(rt.dsn=(0,M.RA)(F));const ot=C(z);return(0,h.Jd)(rt,[ot])}function C(z){const F=y(z);return[{type:"statsd",length:F.length},F]}var k=I(80321),N=I(84920),L=I(7350);const U="Not capturing exception because it's already been captured.";class X{constructor(F){if(this._options=F,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],F.dsn?this._dsn=(0,M.vK)(F.dsn):r.X&&P.kg.warn("No DSN provided, client will not send events."),this._dsn){const J=(0,e.U)(this._dsn,F);this._transport=F.transport(mt($({recordDroppedEvent:this.recordDroppedEvent.bind(this)},F.transportOptions),{url:J}))}}captureException(F,J,nt){if((0,S.YO)(F)){r.X&&P.kg.log(U);return}let rt=J&&J.event_id;return this._process(this.eventFromException(F,J).then(ot=>this._captureEvent(ot,J,nt)).then(ot=>{rt=ot})),rt}captureMessage(F,J,nt,rt){let ot=nt&&nt.event_id;const yt=(0,T.Le)(F)?F:String(F),Et=(0,T.pt)(F)?this.eventFromMessage(yt,J,nt):this.eventFromException(F,nt);return this._process(Et.then(wt=>this._captureEvent(wt,nt,rt)).then(wt=>{ot=wt})),ot}captureEvent(F,J,nt){if(J&&J.originalException&&(0,S.YO)(J.originalException)){r.X&&P.kg.log(U);return}let rt=J&&J.event_id;const yt=(F.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(F,J,yt||nt).then(Et=>{rt=Et})),rt}captureSession(F){typeof F.release!="string"?r.X&&P.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(F),(0,k.CT)(F,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(F){const J=this._transport;return J?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(F).then(nt=>J.flush(F).then(rt=>nt&&rt))):(0,f.WD)(!0)}close(F){return this.flush(F).then(J=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),J))}getEventProcessors(){return this._eventProcessors}addEventProcessor(F){this._eventProcessors.push(F)}setupIntegrations(F){(F&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(F){return this.getIntegrationByName(F)}getIntegrationByName(F){return this._integrations[F]}getIntegration(F){try{return this._integrations[F.id]||null}catch(J){return r.X&&P.kg.warn(`Cannot retrieve integration ${F.id} from the current Client`),null}}addIntegration(F){const J=this._integrations[F.name];(0,u.m7)(this,F,this._integrations),J||(0,u.uf)(this,[F])}sendEvent(F,J={}){this.emit("beforeSendEvent",F,J);let nt=p(F,this._dsn,this._options._metadata,this._options.tunnel);for(const ot of J.attachments||[])nt=(0,h.BO)(nt,(0,h.zQ)(ot,this._options.transportOptions&&this._options.transportOptions.textEncoder));const rt=this._sendEnvelope(nt);rt&&rt.then(ot=>this.emit("afterSendEvent",F,ot),null)}sendSession(F){const J=a(F,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(J)}recordDroppedEvent(F,J,nt){if(this._options.sendClientReports){const rt=`${F}:${J}`;r.X&&P.kg.log(`Adding outcome: "${rt}"`),this._outcomes[rt]=this._outcomes[rt]+1||1}}captureAggregateMetrics(F){r.X&&P.kg.log(`Flushing aggregated metrics, number of metrics: ${F.length}`);const J=w(F,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(J)}on(F,J){this._hooks[F]||(this._hooks[F]=[]),this._hooks[F].push(J)}emit(F,...J){this._hooks[F]&&this._hooks[F].forEach(nt=>nt(...J))}_setupIntegrations(){const{integrations:F}=this._options;this._integrations=(0,u.q4)(this,F),(0,u.uf)(this,F),this._integrationsInitialized=!0}_updateSessionFromEvent(F,J){let nt=!1,rt=!1;const ot=J.exception&&J.exception.values;if(ot){rt=!0;for(const wt of ot){const Qt=wt.mechanism;if(Qt&&Qt.handled===!1){nt=!0;break}}}const yt=F.status==="ok";(yt&&F.errors===0||yt&&nt)&&((0,k.CT)(F,mt($({},nt&&{status:"crashed"}),{errors:F.errors||Number(rt||nt)})),this.captureSession(F))}_isClientDoneProcessing(F){return new f.cW(J=>{let nt=0;const rt=1,ot=setInterval(()=>{this._numProcessing==0?(clearInterval(ot),J(!0)):(nt+=rt,F&&nt>=F&&(clearInterval(ot),J(!1)))},rt)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(F,J,nt,rt=(0,i.aF)()){const ot=this.getOptions(),yt=Object.keys(this._integrations);return!J.integrations&&yt.length>0&&(J.integrations=yt),this.emit("preprocessEvent",F,J),(0,L.R)(ot,F,J,nt,this,rt).then(Et=>{if(Et===null)return Et;const wt=$($({},rt.getPropagationContext()),nt?nt.getPropagationContext():void 0);if(!(Et.contexts&&Et.contexts.trace)&&wt){const{traceId:Jt,spanId:ue,parentSpanId:Vt,dsc:q}=wt;Et.contexts=$({trace:{trace_id:Jt,span_id:ue,parent_span_id:Vt}},Et.contexts);const St=q||(0,N._)(Jt,this,nt);Et.sdkProcessingMetadata=$({dynamicSamplingContext:St},Et.sdkProcessingMetadata)}return Et})}_captureEvent(F,J={},nt){return this._processEvent(F,J,nt).then(rt=>rt.event_id,rt=>{if(r.X){const ot=rt;ot.logLevel==="log"?P.kg.log(ot.message):P.kg.warn(ot)}})}_processEvent(F,J,nt){const rt=this.getOptions(),{sampleRate:ot}=rt,yt=it(F),Et=W(F),wt=F.type||"error",Qt=`before send for type \`${wt}\``;if(Et&&typeof ot=="number"&&Math.random()>ot)return this.recordDroppedEvent("sample_rate","error",F),(0,f.$2)(new o.b(`Discarding event because it's not included in the random sample (sampling rate = ${ot})`,"log"));const Jt=wt==="replay_event"?"replay":wt,Vt=(F.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(F,J,nt,Vt).then(q=>{if(q===null)throw this.recordDroppedEvent("event_processor",Jt,F),new o.b("An event processor returned `null`, will not send event.","log");if(J.data&&J.data.__sentry__===!0)return q;const Ft=Y(rt,q,J);return B(Ft,Qt)}).then(q=>{if(q===null)throw this.recordDroppedEvent("before_send",Jt,F),new o.b(`${Qt} returned \`null\`, will not send event.`,"log");const St=nt&&nt.getSession();!yt&&St&&this._updateSessionFromEvent(St,q);const Ft=q.transaction_info;if(yt&&Ft&&q.transaction!==F.transaction){const ht="custom";q.transaction_info=mt($({},Ft),{source:ht})}return this.sendEvent(q,J),q}).then(null,q=>{throw q instanceof o.b?q:(this.captureException(q,{data:{__sentry__:!0},originalException:q}),new o.b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${q}`))})}_process(F){this._numProcessing++,F.then(J=>(this._numProcessing--,J),J=>(this._numProcessing--,J))}_sendEnvelope(F){if(this.emit("beforeEnvelope",F),this._isEnabled()&&this._transport)return this._transport.send(F).then(null,J=>{r.X&&P.kg.error("Error while sending event:",J)});r.X&&P.kg.error("Transport disabled")}_clearOutcomes(){const F=this._outcomes;return this._outcomes={},Object.keys(F).map(J=>{const[nt,rt]=J.split(":");return{reason:nt,category:rt,quantity:F[J]}})}}function B(z,F){const J=`${F} must return \`null\` or a valid event.`;if((0,T.J8)(z))return z.then(nt=>{if(!(0,T.PO)(nt)&&nt!==null)throw new o.b(J);return nt},nt=>{throw new o.b(`${F} rejected with ${nt}`)});if(!(0,T.PO)(z)&&z!==null)throw new o.b(J);return z}function Y(z,F,J){const{beforeSend:nt,beforeSendTransaction:rt}=z;return W(F)&&nt?nt(F,J):it(F)&&rt?rt(F,J):F}function W(z){return z.type===void 0}function it(z){return z.type==="transaction"}function ft(z){const F=(0,_.s3)();!F||!F.addEventProcessor||F.addEventProcessor(z)}},94352:function(Z,G,I){"use strict";I.d(G,{J:function(){return M}});const M="production"},56301:function(Z,G,I){"use strict";I.d(G,{X:function(){return M}});const M=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__},156:function(Z,G,I){"use strict";I.d(G,{RP:function(){return e},cc:function(){return o},fH:function(){return h}});var M=I(35074),P=I(2610),S=I(87016),T=I(84644),f=I(56301);function h(){return(0,M.Y)("globalEventProcessors",()=>[])}function o(r){h().push(r)}function e(r,c,a,p=0){return new P.cW((_,i)=>{const u=r[p];if(c===null||typeof u!="function")_(c);else{const s=u($({},c),a);f.X&&u.id&&s===null&&S.kg.log(`Event processor "${u.id}" dropped event`),(0,T.J8)(s)?s.then(l=>e(r,l,a,p+1).then(_)).then(null,i):e(r,s,a,p+1).then(_).then(null,i)}})}},60663:function(Z,G,I){"use strict";I.d(G,{$e:function(){return l},Tb:function(){return h},cg:function(){return X},eN:function(){return e},nZ:function(){return k},n_:function(){return c},s3:function(){return w},v:function(){return a},yj:function(){return N}});var M=I(35074),P=I(94352),S=I(96722),T=I(80321),f=I(7350);function h(B,Y){return(0,S.Gd)().captureException(B,(0,f.U0)(Y))}function o(B,Y){const W=typeof Y=="string"?Y:void 0,it=typeof Y!="string"?{captureContext:Y}:void 0;return getCurrentHub().captureMessage(B,W,it)}function e(B,Y){return(0,S.Gd)().captureEvent(B,Y)}function r(B){getCurrentHub().configureScope(B)}function c(B,Y){(0,S.Gd)().addBreadcrumb(B,Y)}function a(B,Y){(0,S.Gd)().setContext(B,Y)}function p(B){getCurrentHub().setExtras(B)}function _(B,Y){getCurrentHub().setExtra(B,Y)}function i(B){getCurrentHub().setTags(B)}function u(B,Y){getCurrentHub().setTag(B,Y)}function s(B){getCurrentHub().setUser(B)}function l(...B){const Y=(0,S.Gd)();if(B.length===2){const[W,it]=B;return W?Y.withScope(()=>(Y.getStackTop().scope=W,it(W))):Y.withScope(it)}return Y.withScope(B[0])}function y(B){return runWithAsyncContext(()=>B(getIsolationScope()))}function v(B,Y){return l(W=>(W.setSpan(B),Y(W)))}function b(B,Y){return getCurrentHub().startTransaction($({},B),Y)}function E(B,Y){const W=k(),it=w();if(!it)DEBUG_BUILD&&logger.warn("Cannot capture check-in. No client defined.");else if(!it.captureCheckIn)DEBUG_BUILD&&logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return it.captureCheckIn(B,Y,W);return uuid4()}function O(B,Y,W){const it=E({monitorSlug:B,status:"in_progress"},W),ft=timestampInSeconds();function z(J){E({monitorSlug:B,status:J,checkInId:it,duration:timestampInSeconds()-ft})}let F;try{F=Y()}catch(J){throw z("error"),J}return isThenable(F)?Promise.resolve(F).then(()=>{z("ok")},()=>{z("error")}):z("ok"),F}function d(B){return un(this,null,function*(){const Y=w();return Y?Y.flush(B):(DEBUG_BUILD&&logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))})}function m(B){return un(this,null,function*(){const Y=w();return Y?Y.close(B):(DEBUG_BUILD&&logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))})}function x(){return getCurrentHub().lastEventId()}function w(){return(0,S.Gd)().getClient()}function C(){return!!w()}function k(){return(0,S.Gd)().getScope()}function N(B){const Y=w(),W=(0,S.aF)(),it=k(),{release:ft,environment:z=P.J}=Y&&Y.getOptions()||{},{userAgent:F}=M.GLOBAL_OBJ.navigator||{},J=(0,T.Hv)($($({release:ft,environment:z,user:it.getUser()||W.getUser()},F&&{userAgent:F}),B)),nt=W.getSession();return nt&&nt.status==="ok"&&(0,T.CT)(nt,{status:"exited"}),L(),W.setSession(J),it.setSession(J),J}function L(){const B=(0,S.aF)(),Y=k(),W=Y.getSession()||B.getSession();W&&(0,T.RJ)(W),U(),B.setSession(),Y.setSession()}function U(){const B=(0,S.aF)(),Y=k(),W=w(),it=Y.getSession()||B.getSession();it&&W&&W.captureSession&&W.captureSession(it)}function X(B=!1){if(B){L();return}U()}},96722:function(Z,G,I){"use strict";I.d(G,{Gd:function(){return s},aF:function(){return l},cu:function(){return i}});var M=I(84644),P=I(89102),S=I(89285),T=I(87016),f=I(35074),h=I(94352),o=I(56301),e=I(63557),r=I(80321),c=I(61160);const a=parseFloat(c.J),p=100;class _{constructor(w,C,k,N=a){this._version=N;let L;C?L=C:(L=new e.sX,L.setClient(w));let U;k?U=k:(U=new e.sX,U.setClient(w)),this._stack=[{scope:L}],w&&this.bindClient(w),this._isolationScope=U}isOlderThan(w){return this._version<w}bindClient(w){const C=this.getStackTop();C.client=w,C.scope.setClient(w),w&&w.setupIntegrations&&w.setupIntegrations()}pushScope(){const w=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:w}),w}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(w){const C=this.pushScope();let k;try{k=w(C)}catch(N){throw this.popScope(),N}return(0,M.J8)(k)?k.then(N=>(this.popScope(),N),N=>{throw this.popScope(),N}):(this.popScope(),k)}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(w,C){const k=this._lastEventId=C&&C.event_id?C.event_id:(0,P.DM)(),N=new Error("Sentry syntheticException");return this.getScope().captureException(w,mt($({originalException:w,syntheticException:N},C),{event_id:k})),k}captureMessage(w,C,k){const N=this._lastEventId=k&&k.event_id?k.event_id:(0,P.DM)(),L=new Error(w);return this.getScope().captureMessage(w,C,mt($({originalException:w,syntheticException:L},k),{event_id:N})),N}captureEvent(w,C){const k=C&&C.event_id?C.event_id:(0,P.DM)();return w.type||(this._lastEventId=k),this.getScope().captureEvent(w,mt($({},C),{event_id:k})),k}lastEventId(){return this._lastEventId}addBreadcrumb(w,C){const{scope:k,client:N}=this.getStackTop();if(!N)return;const{beforeBreadcrumb:L=null,maxBreadcrumbs:U=p}=N.getOptions&&N.getOptions()||{};if(U<=0)return;const X=(0,S.yW)(),B=$({timestamp:X},w),Y=L?(0,T.Cf)(()=>L(B,C)):B;Y!==null&&(N.emit&&N.emit("beforeAddBreadcrumb",Y,C),k.addBreadcrumb(Y,U))}setUser(w){this.getScope().setUser(w),this.getIsolationScope().setUser(w)}setTags(w){this.getScope().setTags(w),this.getIsolationScope().setTags(w)}setExtras(w){this.getScope().setExtras(w),this.getIsolationScope().setExtras(w)}setTag(w,C){this.getScope().setTag(w,C),this.getIsolationScope().setTag(w,C)}setExtra(w,C){this.getScope().setExtra(w,C),this.getIsolationScope().setExtra(w,C)}setContext(w,C){this.getScope().setContext(w,C),this.getIsolationScope().setContext(w,C)}configureScope(w){const{scope:C,client:k}=this.getStackTop();k&&w(C)}run(w){const C=u(this);try{w(this)}finally{u(C)}}getIntegration(w){const C=this.getClient();if(!C)return null;try{return C.getIntegration(w)}catch(k){return o.X&&T.kg.warn(`Cannot retrieve integration ${w.id} from the current Hub`),null}}startTransaction(w,C){const k=this._callExtensionMethod("startTransaction",w,C);return o.X&&!k&&(this.getClient()?T.kg.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):T.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),k}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(w=!1){if(w)return this.endSession();this._sendSessionUpdate()}endSession(){const C=this.getStackTop().scope,k=C.getSession();k&&(0,r.RJ)(k),this._sendSessionUpdate(),C.setSession()}startSession(w){const{scope:C,client:k}=this.getStackTop(),{release:N,environment:L=h.J}=k&&k.getOptions()||{},{userAgent:U}=f.GLOBAL_OBJ.navigator||{},X=(0,r.Hv)($($({release:N,environment:L,user:C.getUser()},U&&{userAgent:U}),w)),B=C.getSession&&C.getSession();return B&&B.status==="ok"&&(0,r.CT)(B,{status:"exited"}),this.endSession(),C.setSession(X),X}shouldSendDefaultPii(){const w=this.getClient(),C=w&&w.getOptions();return!!(C&&C.sendDefaultPii)}_sendSessionUpdate(){const{scope:w,client:C}=this.getStackTop(),k=w.getSession();k&&C&&C.captureSession&&C.captureSession(k)}_callExtensionMethod(w,...C){const N=i().__SENTRY__;if(N&&N.extensions&&typeof N.extensions[w]=="function")return N.extensions[w].apply(this,C);o.X&&T.kg.warn(`Extension method ${w} couldn't be found, doing nothing.`)}}function i(){return f.GLOBAL_OBJ.__SENTRY__=f.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},f.GLOBAL_OBJ}function u(x){const w=i(),C=d(w);return m(w,x),C}function s(){const x=i();if(x.__SENTRY__&&x.__SENTRY__.acs){const w=x.__SENTRY__.acs.getCurrentHub();if(w)return w}return y(x)}function l(){return s().getIsolationScope()}function y(x=i()){return(!O(x)||d(x).isOlderThan(a))&&m(x,new _),d(x)}function v(x,w=y()){if(!O(x)||d(x).isOlderThan(a)){const C=w.getClient(),k=w.getScope(),N=w.getIsolationScope();m(x,new _(C,k.clone(),N.clone()))}}function b(x){const w=i();w.__SENTRY__=w.__SENTRY__||{},w.__SENTRY__.acs=x}function E(x,w={}){const C=i();return C.__SENTRY__&&C.__SENTRY__.acs?C.__SENTRY__.acs.runWithAsyncContext(x,w):x()}function O(x){return!!(x&&x.__SENTRY__&&x.__SENTRY__.hub)}function d(x){return(0,f.Y)("hub",()=>new _,x)}function m(x,w){if(!x)return!1;const C=x.__SENTRY__=x.__SENTRY__||{};return C.hub=w,!0}},15069:function(Z,G,I){"use strict";I.d(G,{RN:function(){return i},_I:function(){return u},m7:function(){return a},m8:function(){return e},q4:function(){return r},uf:function(){return c}});var M=I(89102),P=I(87016),S=I(56301),T=I(156),f=I(96722);const h=[];function o(s){const l={};return s.forEach(y=>{const{name:v}=y,b=l[v];b&&!b.isDefaultInstance&&y.isDefaultInstance||(l[v]=y)}),Object.keys(l).map(y=>l[y])}function e(s){const l=s.defaultIntegrations||[],y=s.integrations;l.forEach(O=>{O.isDefaultInstance=!0});let v;Array.isArray(y)?v=[...l,...y]:typeof y=="function"?v=(0,M.lE)(y(l)):v=l;const b=o(v),E=_(b,O=>O.name==="Debug");if(E!==-1){const[O]=b.splice(E,1);b.push(O)}return b}function r(s,l){const y={};return l.forEach(v=>{v&&a(s,v,y)}),y}function c(s,l){for(const y of l)y&&y.afterAllSetup&&y.afterAllSetup(s)}function a(s,l,y){if(y[l.name]){S.X&&P.kg.log(`Integration skipped because it was already installed: ${l.name}`);return}if(y[l.name]=l,h.indexOf(l.name)===-1&&(l.setupOnce(T.cc,f.Gd),h.push(l.name)),l.setup&&typeof l.setup=="function"&&l.setup(s),s.on&&typeof l.preprocessEvent=="function"){const v=l.preprocessEvent.bind(l);s.on("preprocessEvent",(b,E)=>v(b,E,s))}if(s.addEventProcessor&&typeof l.processEvent=="function"){const v=l.processEvent.bind(l),b=Object.assign((E,O)=>v(E,O,s),{id:l.name});s.addEventProcessor(b)}S.X&&P.kg.log(`Integration installed: ${l.name}`)}function p(s){const l=getClient();if(!l||!l.addIntegration){DEBUG_BUILD&&logger.warn(`Cannot add integration "${s.name}" because no SDK Client is available.`);return}l.addIntegration(s)}function _(s,l){for(let y=0;y<s.length;y++)if(l(s[y])===!0)return y;return-1}function i(s,l){return Object.assign(function(...v){return l(...v)},{id:s})}function u(s){return s}},63557:function(Z,G,I){"use strict";I.d(G,{lW:function(){return a},sX:function(){return c}});var M=I(84644),P=I(89285),S=I(89102),T=I(87016),f=I(156),h=I(80321),o=I(37137);const e=100;let r;class c{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=_()}static clone(u){return u?u.clone():new c}clone(){const u=new c;return u._breadcrumbs=[...this._breadcrumbs],u._tags=$({},this._tags),u._extra=$({},this._extra),u._contexts=$({},this._contexts),u._user=this._user,u._level=this._level,u._span=this._span,u._session=this._session,u._transactionName=this._transactionName,u._fingerprint=this._fingerprint,u._eventProcessors=[...this._eventProcessors],u._requestSession=this._requestSession,u._attachments=[...this._attachments],u._sdkProcessingMetadata=$({},this._sdkProcessingMetadata),u._propagationContext=$({},this._propagationContext),u._client=this._client,u}setClient(u){this._client=u}getClient(){return this._client}addScopeListener(u){this._scopeListeners.push(u)}addEventProcessor(u){return this._eventProcessors.push(u),this}setUser(u){return this._user=u||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,h.CT)(this._session,{user:u}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(u){return this._requestSession=u,this}setTags(u){return this._tags=$($({},this._tags),u),this._notifyScopeListeners(),this}setTag(u,s){return this._tags=mt($({},this._tags),{[u]:s}),this._notifyScopeListeners(),this}setExtras(u){return this._extra=$($({},this._extra),u),this._notifyScopeListeners(),this}setExtra(u,s){return this._extra=mt($({},this._extra),{[u]:s}),this._notifyScopeListeners(),this}setFingerprint(u){return this._fingerprint=u,this._notifyScopeListeners(),this}setLevel(u){return this._level=u,this._notifyScopeListeners(),this}setTransactionName(u){return this._transactionName=u,this._notifyScopeListeners(),this}setContext(u,s){return s===null?delete this._contexts[u]:this._contexts[u]=s,this._notifyScopeListeners(),this}setSpan(u){return this._span=u,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const u=this._span;return u&&u.transaction}setSession(u){return u?this._session=u:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(u){if(!u)return this;const s=typeof u=="function"?u(this):u;if(s instanceof c){const l=s.getScopeData();this._tags=$($({},this._tags),l.tags),this._extra=$($({},this._extra),l.extra),this._contexts=$($({},this._contexts),l.contexts),l.user&&Object.keys(l.user).length&&(this._user=l.user),l.level&&(this._level=l.level),l.fingerprint.length&&(this._fingerprint=l.fingerprint),s.getRequestSession()&&(this._requestSession=s.getRequestSession()),l.propagationContext&&(this._propagationContext=l.propagationContext)}else if((0,M.PO)(s)){const l=u;this._tags=$($({},this._tags),l.tags),this._extra=$($({},this._extra),l.extra),this._contexts=$($({},this._contexts),l.contexts),l.user&&(this._user=l.user),l.level&&(this._level=l.level),l.fingerprint&&(this._fingerprint=l.fingerprint),l.requestSession&&(this._requestSession=l.requestSession),l.propagationContext&&(this._propagationContext=l.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=_(),this}addBreadcrumb(u,s){const l=typeof s=="number"?s:e;if(l<=0)return this;const y=$({timestamp:(0,P.yW)()},u),v=this._breadcrumbs;return v.push(y),this._breadcrumbs=v.length>l?v.slice(-l):v,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(u){return this._attachments.push(u),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:u,_attachments:s,_contexts:l,_tags:y,_extra:v,_user:b,_level:E,_fingerprint:O,_eventProcessors:d,_propagationContext:m,_sdkProcessingMetadata:x,_transactionName:w,_span:C}=this;return{breadcrumbs:u,attachments:s,contexts:l,tags:y,extra:v,user:b,level:E,fingerprint:O||[],eventProcessors:d,propagationContext:m,sdkProcessingMetadata:x,transactionName:w,span:C}}applyToEvent(u,s={},l=[]){(0,o.gi)(u,this.getScopeData());const y=[...l,...(0,f.fH)(),...this._eventProcessors];return(0,f.RP)(y,u,s)}setSDKProcessingMetadata(u){return this._sdkProcessingMetadata=$($({},this._sdkProcessingMetadata),u),this}setPropagationContext(u){return this._propagationContext=u,this}getPropagationContext(){return this._propagationContext}captureException(u,s){const l=s&&s.event_id?s.event_id:(0,S.DM)();if(!this._client)return T.kg.warn("No client configured on scope - will not capture exception!"),l;const y=new Error("Sentry syntheticException");return this._client.captureException(u,mt($({originalException:u,syntheticException:y},s),{event_id:l}),this),l}captureMessage(u,s,l){const y=l&&l.event_id?l.event_id:(0,S.DM)();if(!this._client)return T.kg.warn("No client configured on scope - will not capture message!"),y;const v=new Error(u);return this._client.captureMessage(u,s,mt($({originalException:u,syntheticException:v},l),{event_id:y}),this),y}captureEvent(u,s){const l=s&&s.event_id?s.event_id:(0,S.DM)();return this._client?(this._client.captureEvent(u,mt($({},s),{event_id:l}),this),l):(T.kg.warn("No client configured on scope - will not capture event!"),l)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(u=>{u(this)}),this._notifyingListeners=!1)}}function a(){return r||(r=new c),r}function p(i){r=i}function _(){return{traceId:(0,S.DM)(),spanId:(0,S.DM)().substring(16)}}},20328:function(Z,G,I){"use strict";I.d(G,{$J:function(){return S},S3:function(){return T},TE:function(){return P},Zj:function(){return M},p6:function(){return f}});const M="sentry.source",P="sentry.sample_rate",S="sentry.op",T="sentry.origin",f="profile_id"},80321:function(Z,G,I){"use strict";I.d(G,{CT:function(){return f},Hv:function(){return T},RJ:function(){return h}});var M=I(89285),P=I(89102),S=I(69039);function T(e){const r=(0,M.ph)(),c={sid:(0,P.DM)(),init:!0,timestamp:r,started:r,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>o(c)};return e&&f(c,e),c}function f(e,r={}){if(r.user&&(!e.ipAddress&&r.user.ip_address&&(e.ipAddress=r.user.ip_address),!e.did&&!r.did&&(e.did=r.user.id||r.user.email||r.user.username)),e.timestamp=r.timestamp||(0,M.ph)(),r.abnormal_mechanism&&(e.abnormal_mechanism=r.abnormal_mechanism),r.ignoreDuration&&(e.ignoreDuration=r.ignoreDuration),r.sid&&(e.sid=r.sid.length===32?r.sid:(0,P.DM)()),r.init!==void 0&&(e.init=r.init),!e.did&&r.did&&(e.did=`${r.did}`),typeof r.started=="number"&&(e.started=r.started),e.ignoreDuration)e.duration=void 0;else if(typeof r.duration=="number")e.duration=r.duration;else{const c=e.timestamp-e.started;e.duration=c>=0?c:0}r.release&&(e.release=r.release),r.environment&&(e.environment=r.environment),!e.ipAddress&&r.ipAddress&&(e.ipAddress=r.ipAddress),!e.userAgent&&r.userAgent&&(e.userAgent=r.userAgent),typeof r.errors=="number"&&(e.errors=r.errors),r.status&&(e.status=r.status)}function h(e,r){let c={};r?c={status:r}:e.status==="ok"&&(c={status:"exited"}),f(e,c)}function o(e){return(0,S.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}},84920:function(Z,G,I){"use strict";I.d(G,{_:function(){return h},j:function(){return o}});var M=I(69039),P=I(94352),S=I(60663),T=I(28920),f=I(53460);function h(e,r,c){const a=r.getOptions(),{publicKey:p}=r.getDsn()||{},{segment:_}=c&&c.getUser()||{},i=(0,M.Jr)({environment:a.environment||P.J,release:a.release,user_segment:_,public_key:p,trace_id:e});return r.emit&&r.emit("createDsc",i),i}function o(e){const r=(0,S.s3)();if(!r)return{};const c=h((0,f.XU)(e).trace_id||"",r,(0,S.nZ)()),a=(0,T.G)(e);if(!a)return c;const p=a&&a._frozenDynamicSamplingContext;if(p)return p;const{sampleRate:_,source:i}=a.metadata;_!=null&&(c.sample_rate=`${_}`);const u=(0,f.XU)(a);return i&&i!=="url"&&(c.transaction=u.description),c.sampled=String((0,f.Tt)(a)),r.emit&&r.emit("createDsc",c),c}},37137:function(Z,G,I){"use strict";I.d(G,{gi:function(){return h},yo:function(){return o}});var M=I(69039),P=I(89102),S=I(84920),T=I(28920),f=I(53460);function h(i,u){const{fingerprint:s,span:l,breadcrumbs:y,sdkProcessingMetadata:v}=u;r(i,u),l&&p(i,l),_(i,s),c(i,y),a(i,v)}function o(i,u){const{extra:s,tags:l,user:y,contexts:v,level:b,sdkProcessingMetadata:E,breadcrumbs:O,fingerprint:d,eventProcessors:m,attachments:x,propagationContext:w,transactionName:C,span:k}=u;e(i,"extra",s),e(i,"tags",l),e(i,"user",y),e(i,"contexts",v),e(i,"sdkProcessingMetadata",E),b&&(i.level=b),C&&(i.transactionName=C),k&&(i.span=k),O.length&&(i.breadcrumbs=[...i.breadcrumbs,...O]),d.length&&(i.fingerprint=[...i.fingerprint,...d]),m.length&&(i.eventProcessors=[...i.eventProcessors,...m]),x.length&&(i.attachments=[...i.attachments,...x]),i.propagationContext=$($({},i.propagationContext),w)}function e(i,u,s){if(s&&Object.keys(s).length){i[u]=$({},i[u]);for(const l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[u][l]=s[l])}}function r(i,u){const{extra:s,tags:l,user:y,contexts:v,level:b,transactionName:E}=u,O=(0,M.Jr)(s);O&&Object.keys(O).length&&(i.extra=$($({},O),i.extra));const d=(0,M.Jr)(l);d&&Object.keys(d).length&&(i.tags=$($({},d),i.tags));const m=(0,M.Jr)(y);m&&Object.keys(m).length&&(i.user=$($({},m),i.user));const x=(0,M.Jr)(v);x&&Object.keys(x).length&&(i.contexts=$($({},x),i.contexts)),b&&(i.level=b),E&&(i.transaction=E)}function c(i,u){const s=[...i.breadcrumbs||[],...u];i.breadcrumbs=s.length?s:void 0}function a(i,u){i.sdkProcessingMetadata=$($({},i.sdkProcessingMetadata),u)}function p(i,u){i.contexts=$({trace:(0,f.wy)(u)},i.contexts);const s=(0,T.G)(u);if(s){i.sdkProcessingMetadata=$({dynamicSamplingContext:(0,S.j)(u)},i.sdkProcessingMetadata);const l=(0,f.XU)(s).description;l&&(i.tags=$({transaction:l},i.tags))}}function _(i,u){i.fingerprint=i.fingerprint?(0,P.lE)(i.fingerprint):[],u&&(i.fingerprint=i.fingerprint.concat(u)),i.fingerprint&&!i.fingerprint.length&&delete i.fingerprint}},28920:function(Z,G,I){"use strict";I.d(G,{G:function(){return M}});function M(P){return P.transaction}},32939:function(Z,G,I){"use strict";I.d(G,{W:function(){return M}});function M(h,o){const e=o&&f(o)?o.getClient():o,r=e&&e.getDsn(),c=e&&e.getOptions().tunnel;return S(h,r)||P(h,c)}function P(h,o){return o?T(h)===T(o):!1}function S(h,o){return o?h.includes(o.host):!1}function T(h){return h[h.length-1]==="/"?h.slice(0,-1):h}function f(h){return h.getClient!==void 0}},7350:function(Z,G,I){"use strict";I.d(G,{R:function(){return a},U0:function(){return v}});var M=I(89102),P=I(89285),S=I(79225),T=I(35074),f=I(58114),h=I(94352),o=I(156),e=I(63557),r=I(37137),c=I(53460);function a(d,m,x,w,C,k){const{normalizeDepth:N=3,normalizeMaxBreadth:L=1e3}=d,U=mt($({},m),{event_id:m.event_id||x.event_id||(0,M.DM)(),timestamp:m.timestamp||(0,P.yW)()}),X=x.integrations||d.integrations.map(F=>F.name);p(U,d),s(U,X),m.type===void 0&&i(U,d.stackParser);const B=y(w,x.captureContext);x.mechanism&&(0,M.EG)(U,x.mechanism);const Y=C&&C.getEventProcessors?C.getEventProcessors():[],W=(0,e.lW)().getScopeData();if(k){const F=k.getScopeData();(0,r.yo)(W,F)}if(B){const F=B.getScopeData();(0,r.yo)(W,F)}const it=[...x.attachments||[],...W.attachments];it.length&&(x.attachments=it),(0,r.gi)(U,W);const ft=[...Y,...(0,o.fH)(),...W.eventProcessors];return(0,o.RP)(ft,U,x).then(F=>(F&&u(F),typeof N=="number"&&N>0?l(F,N,L):F))}function p(d,m){const{environment:x,release:w,dist:C,maxValueLength:k=250}=m;"environment"in d||(d.environment="environment"in m?x:h.J),d.release===void 0&&w!==void 0&&(d.release=w),d.dist===void 0&&C!==void 0&&(d.dist=C),d.message&&(d.message=(0,S.$G)(d.message,k));const N=d.exception&&d.exception.values&&d.exception.values[0];N&&N.value&&(N.value=(0,S.$G)(N.value,k));const L=d.request;L&&L.url&&(L.url=(0,S.$G)(L.url,k))}const _=new WeakMap;function i(d,m){const x=T.GLOBAL_OBJ._sentryDebugIds;if(!x)return;let w;const C=_.get(m);C?w=C:(w=new Map,_.set(m,w));const k=Object.keys(x).reduce((N,L)=>{let U;const X=w.get(L);X?U=X:(U=m(L),w.set(L,U));for(let B=U.length-1;B>=0;B--){const Y=U[B];if(Y.filename){N[Y.filename]=x[L];break}}return N},{});try{d.exception.values.forEach(N=>{N.stacktrace.frames.forEach(L=>{L.filename&&(L.debug_id=k[L.filename])})})}catch(N){}}function u(d){const m={};try{d.exception.values.forEach(w=>{w.stacktrace.frames.forEach(C=>{C.debug_id&&(C.abs_path?m[C.abs_path]=C.debug_id:C.filename&&(m[C.filename]=C.debug_id),delete C.debug_id)})})}catch(w){}if(Object.keys(m).length===0)return;d.debug_meta=d.debug_meta||{},d.debug_meta.images=d.debug_meta.images||[];const x=d.debug_meta.images;Object.keys(m).forEach(w=>{x.push({type:"sourcemap",code_file:w,debug_id:m[w]})})}function s(d,m){m.length>0&&(d.sdk=d.sdk||{},d.sdk.integrations=[...d.sdk.integrations||[],...m])}function l(d,m,x){if(!d)return null;const w=$($($($($({},d),d.breadcrumbs&&{breadcrumbs:d.breadcrumbs.map(C=>$($({},C),C.data&&{data:(0,f.Fv)(C.data,m,x)}))}),d.user&&{user:(0,f.Fv)(d.user,m,x)}),d.contexts&&{contexts:(0,f.Fv)(d.contexts,m,x)}),d.extra&&{extra:(0,f.Fv)(d.extra,m,x)});return d.contexts&&d.contexts.trace&&w.contexts&&(w.contexts.trace=d.contexts.trace,d.contexts.trace.data&&(w.contexts.trace.data=(0,f.Fv)(d.contexts.trace.data,m,x))),d.spans&&(w.spans=d.spans.map(C=>{const k=(0,c.XU)(C).data;return k&&(C.data=(0,f.Fv)(k,m,x)),C})),w}function y(d,m){if(!m)return d;const x=d?d.clone():new e.sX;return x.update(m),x}function v(d){if(d)return b(d)?{captureContext:d}:O(d)?{captureContext:d}:d}function b(d){return d instanceof e.sX||typeof d=="function"}const E=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function O(d){return Object.keys(d).some(m=>E.includes(m))}},53460:function(Z,G,I){"use strict";I.d(G,{$k:function(){return e},Hb:function(){return o},Tt:function(){return p},XU:function(){return c},i0:function(){return f},ve:function(){return T},wy:function(){return h}});var M=I(69039),P=I(82295),S=I(89285);const T=0,f=1;function h(_){const{spanId:i,traceId:u}=_.spanContext(),{data:s,op:l,parent_span_id:y,status:v,tags:b,origin:E}=c(_);return(0,M.Jr)({data:s,op:l,parent_span_id:y,span_id:i,status:v,tags:b,trace_id:u,origin:E})}function o(_){const{traceId:i,spanId:u}=_.spanContext(),s=p(_);return(0,P.$p)(i,u,s)}function e(_){return typeof _=="number"?r(_):Array.isArray(_)?_[0]+_[1]/1e9:_ instanceof Date?r(_.getTime()):(0,S.ph)()}function r(_){return _>9999999999?_/1e3:_}function c(_){return a(_)?_.getSpanJSON():typeof _.toJSON=="function"?_.toJSON():{}}function a(_){return typeof _.getSpanJSON=="function"}function p(_){const{traceFlags:i}=_.spanContext();return!!(i&f)}},61160:function(Z,G,I){"use strict";I.d(G,{J:function(){return M}});const M="7.110.0"},51648:function(Z,G,I){"use strict";I.d(G,{EN:function(){return e},IQ:function(){return r},bU:function(){return T}});var M=I(60790),P=I(84644),S=I(87016);const T="baggage",f="sentry-",h=/^sentry-/,o=8192;function e(p){if(!(0,P.HD)(p)&&!Array.isArray(p))return;let _={};if(Array.isArray(p))_=p.reduce((u,s)=>{const l=c(s);for(const y of Object.keys(l))u[y]=l[y];return u},{});else{if(!p)return;_=c(p)}const i=Object.entries(_).reduce((u,[s,l])=>{if(s.match(h)){const y=s.slice(f.length);u[y]=l}return u},{});if(Object.keys(i).length>0)return i}function r(p){if(!p)return;const _=Object.entries(p).reduce((i,[u,s])=>(s&&(i[`${f}${u}`]=s),i),{});return a(_)}function c(p){return p.split(",").map(_=>_.split("=").map(i=>decodeURIComponent(i.trim()))).reduce((_,[i,u])=>(_[i]=u,_),{})}function a(p){if(Object.keys(p).length!==0)return Object.entries(p).reduce((_,[i,u],s)=>{const l=`${encodeURIComponent(i)}=${encodeURIComponent(u)}`,y=s===0?l:`${_},${l}`;return y.length>o?(M.X&&S.kg.warn(`Not adding key: ${i} with val: ${u} to baggage header due to exceeding baggage size limits.`),_):y},"")}},69505:function(Z,G,I){"use strict";I.d(G,{Rt:function(){return f},iY:function(){return r},l4:function(){return o},qT:function(){return e}});var M=I(84644),P=I(35074);const S=(0,P.R)(),T=80;function f(c,a={}){if(!c)return"<unknown>";try{let p=c;const _=5,i=[];let u=0,s=0;const l=" > ",y=l.length;let v;const b=Array.isArray(a)?a:a.keyAttrs,E=!Array.isArray(a)&&a.maxStringLength||T;for(;p&&u++<_&&(v=h(p,b),!(v==="html"||u>1&&s+i.length*y+v.length>=E));)i.push(v),s+=v.length,p=p.parentNode;return i.reverse().join(l)}catch(p){return"<unknown>"}}function h(c,a){const p=c,_=[];let i,u,s,l,y;if(!p||!p.tagName)return"";if(S.HTMLElement&&p instanceof HTMLElement&&p.dataset&&p.dataset.sentryComponent)return p.dataset.sentryComponent;_.push(p.tagName.toLowerCase());const v=a&&a.length?a.filter(E=>p.getAttribute(E)).map(E=>[E,p.getAttribute(E)]):null;if(v&&v.length)v.forEach(E=>{_.push(`[${E[0]}="${E[1]}"]`)});else if(p.id&&_.push(`#${p.id}`),i=p.className,i&&(0,M.HD)(i))for(u=i.split(/\s+/),y=0;y<u.length;y++)_.push(`.${u[y]}`);const b=["aria-label","type","name","title","alt"];for(y=0;y<b.length;y++)s=b[y],l=p.getAttribute(s),l&&_.push(`[${s}="${l}"]`);return _.join("")}function o(){try{return S.document.location.href}catch(c){return""}}function e(c){return S.document&&S.document.querySelector?S.document.querySelector(c):null}function r(c){if(!S.HTMLElement)return null;let a=c;const p=5;for(let _=0;_<p;_++){if(!a)return null;if(a instanceof HTMLElement&&a.dataset.sentryComponent)return a.dataset.sentryComponent;a=a.parentNode}return null}},24858:function(Z,G,I){"use strict";I.d(G,{h:function(){return M}});function M(P,S){return P!=null?P:S()}},82973:function(Z,G,I){"use strict";I.d(G,{x:function(){return M}});function M(P){let S,T=P[0],f=1;for(;f<P.length;){const h=P[f],o=P[f+1];if(f+=2,(h==="optionalAccess"||h==="optionalCall")&&T==null)return;h==="access"||h==="optionalAccess"?(S=T,T=o(T)):(h==="call"||h==="optionalCall")&&(T=o((...e)=>T.call(S,...e)),S=void 0)}return T}},60790:function(Z,G,I){"use strict";I.d(G,{X:function(){return M}});const M=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__},46854:function(Z,G,I){"use strict";I.d(G,{RA:function(){return f},vK:function(){return r}});var M=I(60790),P=I(87016);const S=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function T(c){return c==="http"||c==="https"}function f(c,a=!1){const{host:p,path:_,pass:i,port:u,projectId:s,protocol:l,publicKey:y}=c;return`${l}://${y}${a&&i?`:${i}`:""}@${p}${u?`:${u}`:""}/${_&&`${_}/`}${s}`}function h(c){const a=S.exec(c);if(!a){(0,P.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${c}`)});return}const[p,_,i="",u,s="",l]=a.slice(1);let y="",v=l;const b=v.split("/");if(b.length>1&&(y=b.slice(0,-1).join("/"),v=b.pop()),v){const E=v.match(/^\d+/);E&&(v=E[0])}return o({host:u,pass:i,path:y,projectId:v,port:s,protocol:p,publicKey:_})}function o(c){return{protocol:c.protocol,publicKey:c.publicKey||"",pass:c.pass||"",host:c.host,port:c.port||"",path:c.path||"",projectId:c.projectId}}function e(c){if(!M.X)return!0;const{port:a,projectId:p,protocol:_}=c;return["protocol","publicKey","host","projectId"].find(s=>c[s]?!1:(P.kg.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:p.match(/^\d+$/)?T(_)?a&&isNaN(parseInt(a,10))?(P.kg.error(`Invalid Sentry Dsn: Invalid port ${a}`),!1):!0:(P.kg.error(`Invalid Sentry Dsn: Invalid protocol ${_}`),!1):(P.kg.error(`Invalid Sentry Dsn: Invalid projectId ${p}`),!1)}function r(c){const a=typeof c=="string"?h(c):o(c);if(!(!a||!e(a)))return a}},10772:function(Z,G,I){"use strict";I.d(G,{S:function(){return P},n:function(){return M}});function M(){return typeof __SENTRY_BROWSER_BUNDLE__!="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function P(){return"npm"}},44631:function(Z,G,I){"use strict";I.d(G,{BO:function(){return f},Cd:function(){return s},HY:function(){return u},Jd:function(){return T},V$:function(){return r},gv:function(){return h},mL:function(){return i},zQ:function(){return p}});var M=I(46854),P=I(58114),S=I(69039);function T(l,y=[]){return[l,y]}function f(l,y){const[v,b]=l;return[v,[...b,y]]}function h(l,y){const v=l[1];for(const b of v){const E=b[0].type;if(y(b,E))return!0}return!1}function o(l,y){return h(l,(v,b)=>y.includes(b))}function e(l,y){return(y||new TextEncoder).encode(l)}function r(l,y){const[v,b]=l;let E=JSON.stringify(v);function O(d){typeof E=="string"?E=typeof d=="string"?E+d:[e(E,y),d]:E.push(typeof d=="string"?e(d,y):d)}for(const d of b){const[m,x]=d;if(O(`
${JSON.stringify(m)}
`),typeof x=="string"||x instanceof Uint8Array)O(x);else{let w;try{w=JSON.stringify(x)}catch(C){w=JSON.stringify((0,P.Fv)(x))}O(w)}}return typeof E=="string"?E:c(E)}function c(l){const y=l.reduce((E,O)=>E+O.length,0),v=new Uint8Array(y);let b=0;for(const E of l)v.set(E,b),b+=E.length;return v}function a(l,y,v){let b=typeof l=="string"?y.encode(l):l;function E(x){const w=b.subarray(0,x);return b=b.subarray(x+1),w}function O(){let x=b.indexOf(10);return x<0&&(x=b.length),JSON.parse(v.decode(E(x)))}const d=O(),m=[];for(;b.length;){const x=O(),w=typeof x.length=="number"?x.length:void 0;m.push([x,w?E(w):O()])}return[d,m]}function p(l,y){const v=typeof l.data=="string"?e(l.data,y):l.data;return[(0,S.Jr)({type:"attachment",length:v.length,filename:l.filename,content_type:l.contentType,attachment_type:l.attachmentType}),v]}const _={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 i(l){return _[l]}function u(l){if(!l||!l.sdk)return;const{name:y,version:v}=l.sdk;return{name:y,version:v}}function s(l,y,v,b){const E=l.sdkProcessingMetadata&&l.sdkProcessingMetadata.dynamicSamplingContext;return $($($({event_id:l.event_id,sent_at:new Date().toISOString()},y&&{sdk:y}),!!v&&b&&{dsn:(0,M.RA)(b)}),E&&{trace:(0,S.Jr)($({},E))})}},62069:function(Z,G,I){"use strict";I.d(G,{b:function(){return M}});class M extends Error{constructor(S,T="warn"){super(S),this.message=S,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=T}}},5370:function(Z,G,I){"use strict";I.d(G,{D2:function(){return e},Hj:function(){return h},rK:function(){return r}});var M=I(60790),P=I(87016),S=I(65769);const T={},f={};function h(c,a){T[c]=T[c]||[],T[c].push(a)}function o(){Object.keys(T).forEach(c=>{T[c]=void 0})}function e(c,a){f[c]||(a(),f[c]=!0)}function r(c,a){const p=c&&T[c];if(p)for(const _ of p)try{_(a)}catch(i){M.X&&P.kg.error(`Error while triggering instrumentation handler.
Type: ${c}
Name: ${(0,S.$P)(_)}
Error:`,i)}}},45641:function(Z,G,I){"use strict";I.d(G,{O:function(){return c}});var M=I(89102),P=I(69039),S=I(35074),T=I(5370);const f=S.GLOBAL_OBJ,h=1e3;let o,e,r;function c(s){const l="dom";(0,T.Hj)(l,s),(0,T.D2)(l,a)}function a(){if(!f.document)return;const s=T.rK.bind(null,"dom"),l=i(s,!0);f.document.addEventListener("click",l,!1),f.document.addEventListener("keypress",l,!1),["EventTarget","Node"].forEach(y=>{const v=f[y]&&f[y].prototype;!v||!v.hasOwnProperty||!v.hasOwnProperty("addEventListener")||((0,P.hl)(v,"addEventListener",function(b){return function(E,O,d){if(E==="click"||E=="keypress")try{const m=this,x=m.__sentry_instrumentation_handlers__=m.__sentry_instrumentation_handlers__||{},w=x[E]=x[E]||{refCount:0};if(!w.handler){const C=i(s);w.handler=C,b.call(this,E,C,d)}w.refCount++}catch(m){}return b.call(this,E,O,d)}}),(0,P.hl)(v,"removeEventListener",function(b){return function(E,O,d){if(E==="click"||E=="keypress")try{const m=this,x=m.__sentry_instrumentation_handlers__||{},w=x[E];w&&(w.refCount--,w.refCount<=0&&(b.call(this,E,w.handler,d),w.handler=void 0,delete x[E]),Object.keys(x).length===0&&delete m.__sentry_instrumentation_handlers__)}catch(m){}return b.call(this,E,O,d)}}))})}function p(s){if(s.type!==e)return!1;try{if(!s.target||s.target._sentryId!==r)return!1}catch(l){}return!0}function _(s,l){return s!=="keypress"?!1:!l||!l.tagName?!0:!(l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.isContentEditable)}function i(s,l=!1){return y=>{if(!y||y._sentryCaptured)return;const v=u(y);if(_(y.type,v))return;(0,P.xp)(y,"_sentryCaptured",!0),v&&!v._sentryId&&(0,P.xp)(v,"_sentryId",(0,M.DM)());const b=y.type==="keypress"?"input":y.type;p(y)||(s({event:y,name:b,global:l}),e=y.type,r=v?v._sentryId:void 0),clearTimeout(o),o=f.setTimeout(()=>{r=void 0,e=void 0},h)}}function u(s){try{return s.target}catch(l){return null}}},75165:function(Z,G,I){"use strict";I.d(G,{U:function(){return f}});var M=I(69039),P=I(47695),S=I(35074),T=I(5370);function f(c){const a="fetch";(0,T.Hj)(a,c),(0,T.D2)(a,h)}function h(){(0,P.t$)()&&(0,M.hl)(S.GLOBAL_OBJ,"fetch",function(c){return function(...a){const{method:p,url:_}=r(a),i={args:a,fetchData:{method:p,url:_},startTimestamp:Date.now()};return(0,T.rK)("fetch",$({},i)),c.apply(S.GLOBAL_OBJ,a).then(u=>{const s=mt($({},i),{endTimestamp:Date.now(),response:u});return(0,T.rK)("fetch",s),u},u=>{const s=mt($({},i),{endTimestamp:Date.now(),error:u});throw(0,T.rK)("fetch",s),u})}})}function o(c,a){return!!c&&typeof c=="object"&&!!c[a]}function e(c){return typeof c=="string"?c:c?o(c,"url")?c.url:c.toString?c.toString():"":""}function r(c){if(c.length===0)return{method:"GET",url:""};if(c.length===2){const[p,_]=c;return{url:e(p),method:o(_,"method")?String(_.method).toUpperCase():"GET"}}const a=c[0];return{url:e(a),method:o(a,"method")?String(a.method).toUpperCase():"GET"}}},15462:function(Z,G,I){"use strict";I.d(G,{a:function(){return e}});var M=I(69039),P=I(35074);const S=(0,P.R)();function T(){const c=S.chrome,a=c&&c.app&&c.app.runtime,p="history"in S&&!!S.history.pushState&&!!S.history.replaceState;return!a&&p}var f=I(5370);const h=P.GLOBAL_OBJ;let o;function e(c){const a="history";(0,f.Hj)(a,c),(0,f.D2)(a,r)}function r(){if(!T())return;const c=h.onpopstate;h.onpopstate=function(...p){const _=h.location.href,i=o;o=_;const u={from:i,to:_};if((0,f.rK)("history",u),c)try{return c.apply(this,p)}catch(s){}};function a(p){return function(..._){const i=_.length>2?_[2]:void 0;if(i){const u=o,s=String(i);o=s;const l={from:u,to:s};(0,f.rK)("history",l)}return p.apply(this,_)}}(0,M.hl)(h.history,"pushState",a),(0,M.hl)(h.history,"replaceState",a)}},47954:function(Z,G,I){"use strict";I.d(G,{UK:function(){return o},xU:function(){return h}});var M=I(84644),P=I(69039),S=I(35074),T=I(5370);const f=S.GLOBAL_OBJ,h="__sentry_xhr_v3__";function o(c){const a="xhr";(0,T.Hj)(a,c),(0,T.D2)(a,e)}function e(){if(!f.XMLHttpRequest)return;const c=XMLHttpRequest.prototype;(0,P.hl)(c,"open",function(a){return function(...p){const _=Date.now(),i=(0,M.HD)(p[0])?p[0].toUpperCase():void 0,u=r(p[1]);if(!i||!u)return a.apply(this,p);this[h]={method:i,url:u,request_headers:{}},i==="POST"&&u.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const l=this[h];if(l&&this.readyState===4){try{l.status_code=this.status}catch(v){}const y={args:[i,u],endTimestamp:Date.now(),startTimestamp:_,xhr:this};(0,T.rK)("xhr",y)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?(0,P.hl)(this,"onreadystatechange",function(l){return function(...y){return s(),l.apply(this,y)}}):this.addEventListener("readystatechange",s),(0,P.hl)(this,"setRequestHeader",function(l){return function(...y){const[v,b]=y,E=this[h];return E&&(0,M.HD)(v)&&(0,M.HD)(b)&&(E.request_headers[v.toLowerCase()]=b),l.apply(this,y)}}),a.apply(this,p)}}),(0,P.hl)(c,"send",function(a){return function(...p){const _=this[h];if(!_)return a.apply(this,p);p[0]!==void 0&&(_.body=p[0]);const i={args:[_.method,_.url],startTimestamp:Date.now(),xhr:this};return(0,T.rK)("xhr",i),a.apply(this,p)}})}function r(c){if((0,M.HD)(c))return c;try{return c.toString()}catch(a){}}},84644:function(Z,G,I){"use strict";I.d(G,{Cy:function(){return u},HD:function(){return o},J8:function(){return i},Kj:function(){return _},Le:function(){return e},PO:function(){return c},TX:function(){return f},V9:function(){return l},VW:function(){return T},VZ:function(){return P},cO:function(){return a},fm:function(){return h},i2:function(){return s},kK:function(){return p},pt:function(){return r},y1:function(){return y}});const M=Object.prototype.toString;function P(v){switch(M.call(v)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return l(v,Error)}}function S(v,b){return M.call(v)===`[object ${b}]`}function T(v){return S(v,"ErrorEvent")}function f(v){return S(v,"DOMError")}function h(v){return S(v,"DOMException")}function o(v){return S(v,"String")}function e(v){return typeof v=="object"&&v!==null&&"__sentry_template_string__"in v&&"__sentry_template_values__"in v}function r(v){return v===null||e(v)||typeof v!="object"&&typeof v!="function"}function c(v){return S(v,"Object")}function a(v){return typeof Event!="undefined"&&l(v,Event)}function p(v){return typeof Element!="undefined"&&l(v,Element)}function _(v){return S(v,"RegExp")}function i(v){return!!(v&&v.then&&typeof v.then=="function")}function u(v){return c(v)&&"nativeEvent"in v&&"preventDefault"in v&&"stopPropagation"in v}function s(v){return typeof v=="number"&&v!==v}function l(v,b){try{return v instanceof b}catch(E){return!1}}function y(v){return!!(typeof v=="object"&&v!==null&&(v.__isVue||v._isVue))}},66378:function(Z,G,I){"use strict";I.d(G,{j:function(){return S}});var M=I(72676),P=I(35074);function S(){return typeof window!="undefined"&&(!(0,M.KV)()||T())}function T(){return P.GLOBAL_OBJ.process!==void 0&&P.GLOBAL_OBJ.process.type==="renderer"}},87016:function(Z,G,I){"use strict";I.d(G,{Cf:function(){return h},LD:function(){return f},RU:function(){return T},kg:function(){return e}});var M=I(60790),P=I(35074);const S="Sentry Logger ",T=["debug","info","warn","error","log","assert","trace"],f={};function h(r){if(!("console"in P.GLOBAL_OBJ))return r();const c=P.GLOBAL_OBJ.console,a={},p=Object.keys(f);p.forEach(_=>{const i=f[_];a[_]=c[_],c[_]=i});try{return r()}finally{p.forEach(_=>{c[_]=a[_]})}}function o(){let r=!1;const c={enable:()=>{r=!0},disable:()=>{r=!1},isEnabled:()=>r};return M.X?T.forEach(a=>{c[a]=(...p)=>{r&&h(()=>{P.GLOBAL_OBJ.console[a](`${S}[${a}]:`,...p)})}}):T.forEach(a=>{c[a]=()=>{}}),c}const e=o()},89102:function(Z,G,I){"use strict";I.d(G,{DM:function(){return S},Db:function(){return h},EG:function(){return o},YO:function(){return a},jH:function(){return f},lE:function(){return p}});var M=I(69039),P=I(35074);function S(){const _=P.GLOBAL_OBJ,i=_.crypto||_.msCrypto;let u=()=>Math.random()*16;try{if(i&&i.randomUUID)return i.randomUUID().replace(/-/g,"");i&&i.getRandomValues&&(u=()=>{const s=new Uint8Array(1);return i.getRandomValues(s),s[0]})}catch(s){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,s=>(s^(u()&15)>>s/4).toString(16))}function T(_){return _.exception&&_.exception.values?_.exception.values[0]:void 0}function f(_){const{message:i,event_id:u}=_;if(i)return i;const s=T(_);return s?s.type&&s.value?`${s.type}: ${s.value}`:s.type||s.value||u||"<unknown>":u||"<unknown>"}function h(_,i,u){const s=_.exception=_.exception||{},l=s.values=s.values||[],y=l[0]=l[0]||{};y.value||(y.value=i||""),y.type||(y.type=u||"Error")}function o(_,i){const u=T(_);if(!u)return;const s={type:"generic",handled:!0},l=u.mechanism;if(u.mechanism=$($($({},s),l),i),i&&"data"in i){const y=$($({},l&&l.data),i.data);u.mechanism.data=y}}const e=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function r(_){const i=_.match(e)||[],u=parseInt(i[1],10),s=parseInt(i[2],10),l=parseInt(i[3],10);return{buildmetadata:i[5],major:isNaN(u)?void 0:u,minor:isNaN(s)?void 0:s,patch:isNaN(l)?void 0:l,prerelease:i[4]}}function c(_,i,u=5){if(i.lineno===void 0)return;const s=_.length,l=Math.max(Math.min(s-1,i.lineno-1),0);i.pre_context=_.slice(Math.max(0,l-u),l).map(y=>snipLine(y,0)),i.context_line=snipLine(_[Math.min(s-1,l)],i.colno||0),i.post_context=_.slice(Math.min(l+1,s),l+1+u).map(y=>snipLine(y,0))}function a(_){if(_&&_.__sentry_captured__)return!0;try{(0,M.xp)(_,"__sentry_captured__",!0)}catch(i){}return!1}function p(_){return Array.isArray(_)?_:[_]}},72676:function(Z,G,I){"use strict";I.d(G,{KV:function(){return S}});var M=I(10772);Z=I.hmd(Z);var P=I(73656);function S(){return!(0,M.n)()&&Object.prototype.toString.call(typeof P!="undefined"?P:0)==="[object process]"}function T(h,o){return h.require(o)}function f(h){let o;try{o=T(Z,h)}catch(e){}try{const{cwd:e}=T(Z,"process");o=T(Z,`${e()}/node_modules/${h}`)}catch(e){}return o}},58114:function(Z,G,I){"use strict";I.d(G,{Fv:function(){return f},Qy:function(){return h}});var M=I(84644);function P(){const _=typeof WeakSet=="function",i=_?new WeakSet:[];function u(l){if(_)return i.has(l)?!0:(i.add(l),!1);for(let y=0;y<i.length;y++)if(i[y]===l)return!0;return i.push(l),!1}function s(l){if(_)i.delete(l);else for(let y=0;y<i.length;y++)if(i[y]===l){i.splice(y,1);break}}return[u,s]}var S=I(69039),T=I(65769);function f(_,i=100,u=1/0){try{return o("",_,i,u)}catch(s){return{ERROR:`**non-serializable** (${s})`}}}function h(_,i=3,u=100*1024){const s=f(_,i);return a(s)>u?h(_,i-1,u):s}function o(_,i,u=1/0,s=1/0,l=P()){const[y,v]=l;if(i==null||["number","boolean","string"].includes(typeof i)&&!(0,M.i2)(i))return i;const b=e(_,i);if(!b.startsWith("[object "))return b;if(i.__sentry_skip_normalization__)return i;const E=typeof i.__sentry_override_normalization_depth__=="number"?i.__sentry_override_normalization_depth__:u;if(E===0)return b.replace("object ","");if(y(i))return"[Circular ~]";const O=i;if(O&&typeof O.toJSON=="function")try{const w=O.toJSON();return o("",w,E-1,s,l)}catch(w){}const d=Array.isArray(i)?[]:{};let m=0;const x=(0,S.Sh)(i);for(const w in x){if(!Object.prototype.hasOwnProperty.call(x,w))continue;if(m>=s){d[w]="[MaxProperties ~]";break}const C=x[w];d[w]=o(w,C,E-1,s,l),m++}return v(i),d}function e(_,i){try{if(_==="domain"&&i&&typeof i=="object"&&i._events)return"[Domain]";if(_==="domainEmitter")return"[DomainEmitter]";if(typeof I.g!="undefined"&&i===I.g)return"[Global]";if(typeof window!="undefined"&&i===window)return"[Window]";if(typeof document!="undefined"&&i===document)return"[Document]";if((0,M.y1)(i))return"[VueViewModel]";if((0,M.Cy)(i))return"[SyntheticEvent]";if(typeof i=="number"&&i!==i)return"[NaN]";if(typeof i=="function")return`[Function: ${(0,T.$P)(i)}]`;if(typeof i=="symbol")return`[${String(i)}]`;if(typeof i=="bigint")return`[BigInt: ${String(i)}]`;const u=r(i);return/^HTML(\w*)Element$/.test(u)?`[HTMLElement: ${u}]`:`[object ${u}]`}catch(u){return`**non-serializable** (${u})`}}function r(_){const i=Object.getPrototypeOf(_);return i?i.constructor.name:"null prototype"}function c(_){return~-encodeURI(_).split(/%..|./).length}function a(_){return c(JSON.stringify(_))}function p(_,i){const u=i.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let s=_;try{s=decodeURI(_)}catch(l){}return s.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${u}/*`,"ig"),"app:///")}},69039:function(Z,G,I){"use strict";I.d(G,{$Q:function(){return e},HK:function(){return r},Jr:function(){return u},Sh:function(){return a},_j:function(){return c},hl:function(){return h},xp:function(){return o},zf:function(){return i}});var M=I(69505),P=I(60790),S=I(84644),T=I(87016),f=I(79225);function h(v,b,E){if(!(b in v))return;const O=v[b],d=E(O);typeof d=="function"&&e(d,O),v[b]=d}function o(v,b,E){try{Object.defineProperty(v,b,{value:E,writable:!0,configurable:!0})}catch(O){P.X&&T.kg.log(`Failed to add non-enumerable property "${b}" to object`,v)}}function e(v,b){try{const E=b.prototype||{};v.prototype=b.prototype=E,o(v,"__sentry_original__",b)}catch(E){}}function r(v){return v.__sentry_original__}function c(v){return Object.keys(v).map(b=>`${encodeURIComponent(b)}=${encodeURIComponent(v[b])}`).join("&")}function a(v){if((0,S.VZ)(v))return $({message:v.message,name:v.name,stack:v.stack},_(v));if((0,S.cO)(v)){const b=$({type:v.type,target:p(v.target),currentTarget:p(v.currentTarget)},_(v));return typeof CustomEvent!="undefined"&&(0,S.V9)(v,CustomEvent)&&(b.detail=v.detail),b}else return v}function p(v){try{return(0,S.kK)(v)?(0,M.Rt)(v):Object.prototype.toString.call(v)}catch(b){return"<unknown>"}}function _(v){if(typeof v=="object"&&v!==null){const b={};for(const E in v)Object.prototype.hasOwnProperty.call(v,E)&&(b[E]=v[E]);return b}else return{}}function i(v,b=40){const E=Object.keys(a(v));if(E.sort(),!E.length)return"[object has no keys]";if(E[0].length>=b)return(0,f.$G)(E[0],b);for(let O=E.length;O>0;O--){const d=E.slice(0,O).join(", ");if(!(d.length>b))return O===E.length?d:(0,f.$G)(d,b)}return""}function u(v){return s(v,new Map)}function s(v,b){if(l(v)){const E=b.get(v);if(E!==void 0)return E;const O={};b.set(v,O);for(const d of Object.keys(v))typeof v[d]!="undefined"&&(O[d]=s(v[d],b));return O}if(Array.isArray(v)){const E=b.get(v);if(E!==void 0)return E;const O=[];return b.set(v,O),v.forEach(d=>{O.push(s(d,b))}),O}return v}function l(v){if(!(0,S.PO)(v))return!1;try{const b=Object.getPrototypeOf(v).constructor.name;return!b||b==="Object"}catch(b){return!0}}function y(v){let b;switch(!0){case v==null:b=new String(v);break;case(typeof v=="symbol"||typeof v=="bigint"):b=Object(v);break;case isPrimitive(v):b=new v.constructor(v);break;default:b=v;break}return b}},89603:function(Z,G,I){"use strict";I.d(G,{Q:function(){return T},WG:function(){return f}});const M=60*1e3;function P(h,o=Date.now()){const e=parseInt(`${h}`,10);if(!isNaN(e))return e*1e3;const r=Date.parse(`${h}`);return isNaN(r)?M:r-o}function S(h,o){return h[o]||h.all||0}function T(h,o,e=Date.now()){return S(h,o)>e}function f(h,{statusCode:o,headers:e},r=Date.now()){const c=$({},h),a=e&&e["x-sentry-rate-limits"],p=e&&e["retry-after"];if(a)for(const _ of a.trim().split(",")){const[i,u,,,s]=_.split(":",5),l=parseInt(i,10),y=(isNaN(l)?60:l)*1e3;if(!u)c.all=r+y;else for(const v of u.split(";"))v==="metric_bucket"?(!s||s.split(";").includes("custom"))&&(c[v]=r+y):c[v]=r+y}else p?c.all=r+P(p,r):o===429&&(c.all=r+60*1e3);return c}},65769:function(Z,G,I){"use strict";I.d(G,{$P:function(){return e},Sq:function(){return f},pE:function(){return T}});const M=50,P=/\(error: (.*)\)/,S=/captureMessage|captureException/;function T(...c){const a=c.sort((p,_)=>p[0]-_[0]).map(p=>p[1]);return(p,_=0)=>{const i=[],u=p.split(`
`);for(let s=_;s<u.length;s++){const l=u[s];if(l.length>1024)continue;const y=P.test(l)?l.replace(P,"$1"):l;if(!y.match(/\S*Error: /)){for(const v of a){const b=v(y);if(b){i.push(b);break}}if(i.length>=M)break}}return h(i)}}function f(c){return Array.isArray(c)?T(...c):c}function h(c){if(!c.length)return[];const a=Array.from(c);return/sentryWrapped/.test(a[a.length-1].function||"")&&a.pop(),a.reverse(),S.test(a[a.length-1].function||"")&&(a.pop(),S.test(a[a.length-1].function||"")&&a.pop()),a.slice(0,M).map(p=>mt($({},p),{filename:p.filename||a[a.length-1].filename,function:p.function||"?"}))}const o="<anonymous>";function e(c){try{return!c||typeof c!="function"?o:c.name||o}catch(a){return o}}function r(c){return[90,node(c)]}},79225:function(Z,G,I){"use strict";I.d(G,{$G:function(){return P},U0:function(){return h},nK:function(){return T}});var M=I(84644);function P(o,e=0){return typeof o!="string"||e===0||o.length<=e?o:`${o.slice(0,e)}...`}function S(o,e){let r=o;const c=r.length;if(c<=150)return r;e>c&&(e=c);let a=Math.max(e-60,0);a<5&&(a=0);let p=Math.min(a+140,c);return p>c-5&&(p=c),p===c&&(a=Math.max(p-140,0)),r=r.slice(a,p),a>0&&(r=`'{snip} ${r}`),p<c&&(r+=" {snip}"),r}function T(o,e){if(!Array.isArray(o))return"";const r=[];for(let c=0;c<o.length;c++){const a=o[c];try{(0,M.y1)(a)?r.push("[VueViewModel]"):r.push(String(a))}catch(p){r.push("[value cannot be serialized]")}}return r.join(e)}function f(o,e,r=!1){return(0,M.HD)(o)?(0,M.Kj)(e)?e.test(o):(0,M.HD)(e)?r?o===e:o.includes(e):!1:!1}function h(o,e=[],r=!1){return e.some(c=>f(o,c,r))}},47695:function(Z,G,I){"use strict";I.d(G,{Ak:function(){return e},Du:function(){return r},t$:function(){return c}});var M=I(60790),P=I(87016),S=I(35074);const T=(0,S.R)();function f(){try{return new ErrorEvent(""),!0}catch(_){return!1}}function h(){try{return new DOMError(""),!0}catch(_){return!1}}function o(){try{return new DOMException(""),!0}catch(_){return!1}}function e(){if(!("fetch"in T))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(_){return!1}}function r(_){return _&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(_.toString())}function c(){if(typeof EdgeRuntime=="string")return!0;if(!e())return!1;if(r(T.fetch))return!0;let _=!1;const i=T.document;if(i&&typeof i.createElement=="function")try{const u=i.createElement("iframe");u.hidden=!0,i.head.appendChild(u),u.contentWindow&&u.contentWindow.fetch&&(_=r(u.contentWindow.fetch)),i.head.removeChild(u)}catch(u){M.X&&P.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",u)}return _}function a(){return"ReportingObserver"in T}function p(){if(!e())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(_){return!1}}},2610:function(Z,G,I){"use strict";I.d(G,{$2:function(){return T},WD:function(){return S},cW:function(){return f}});var M=I(84644),P;(function(h){h[h.PENDING=0]="PENDING";const e=1;h[h.RESOLVED=e]="RESOLVED";const r=2;h[h.REJECTED=r]="REJECTED"})(P||(P={}));function S(h){return new f(o=>{o(h)})}function T(h){return new f((o,e)=>{e(h)})}class f{constructor(o){f.prototype.__init.call(this),f.prototype.__init2.call(this),f.prototype.__init3.call(this),f.prototype.__init4.call(this),this._state=P.PENDING,this._handlers=[];try{o(this._resolve,this._reject)}catch(e){this._reject(e)}}then(o,e){return new f((r,c)=>{this._handlers.push([!1,a=>{if(!o)r(a);else try{r(o(a))}catch(p){c(p)}},a=>{if(!e)c(a);else try{r(e(a))}catch(p){c(p)}}]),this._executeHandlers()})}catch(o){return this.then(e=>e,o)}finally(o){return new f((e,r)=>{let c,a;return this.then(p=>{a=!1,c=p,o&&o()},p=>{a=!0,c=p,o&&o()}).then(()=>{if(a){r(c);return}e(c)})})}__init(){this._resolve=o=>{this._setResult(P.RESOLVED,o)}}__init2(){this._reject=o=>{this._setResult(P.REJECTED,o)}}__init3(){this._setResult=(o,e)=>{if(this._state===P.PENDING){if((0,M.J8)(e)){e.then(this._resolve,this._reject);return}this._state=o,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===P.PENDING)return;const o=this._handlers.slice();this._handlers=[],o.forEach(e=>{e[0]||(this._state===P.RESOLVED&&e[1](this._value),this._state===P.REJECTED&&e[2](this._value),e[0]=!0)})}}}},89285:function(Z,G,I){"use strict";I.d(G,{Z1:function(){return e},ph:function(){return f},yW:function(){return S}});var M=I(35074);const P=1e3;function S(){return Date.now()/P}function T(){const{performance:r}=M.GLOBAL_OBJ;if(!r||!r.now)return S;const c=Date.now()-r.now(),a=r.timeOrigin==null?c:r.timeOrigin;return()=>(a+r.now())/P}const f=T(),h=null;let o;const e=(()=>{const{performance:r}=M.GLOBAL_OBJ;if(!r||!r.now){o="none";return}const c=3600*1e3,a=r.now(),p=Date.now(),_=r.timeOrigin?Math.abs(r.timeOrigin+a-p):c,i=_<c,u=r.timing&&r.timing.navigationStart,l=typeof u=="number"?Math.abs(u+a-p):c,y=l<c;return i||y?_<=l?(o="timeOrigin",r.timeOrigin):(o="navigationStart",u):(o="dateNow",p)})()},82295:function(Z,G,I){"use strict";I.d(G,{$p:function(){return o},pT:function(){return h}});var M=I(51648),P=I(89102);const S=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function T(e){if(!e)return;const r=e.match(S);if(!r)return;let c;return r[3]==="1"?c=!0:r[3]==="0"&&(c=!1),{traceId:r[1],parentSampled:c,parentSpanId:r[2]}}function f(e,r){const c=T(e),a=baggageHeaderToDynamicSamplingContext(r),{traceId:p,parentSpanId:_,parentSampled:i}=c||{};return c?{traceparentData:c,dynamicSamplingContext:a||{},propagationContext:{traceId:p||uuid4(),parentSpanId:_||uuid4().substring(16),spanId:uuid4().substring(16),sampled:i,dsc:a||{}}}:{traceparentData:c,dynamicSamplingContext:void 0,propagationContext:{traceId:p||uuid4(),spanId:uuid4().substring(16)}}}function h(e,r){const c=T(e),a=(0,M.EN)(r),{traceId:p,parentSpanId:_,parentSampled:i}=c||{};return c?{traceId:p||(0,P.DM)(),parentSpanId:_||(0,P.DM)().substring(16),spanId:(0,P.DM)().substring(16),sampled:i,dsc:a||{}}:{traceId:p||(0,P.DM)(),spanId:(0,P.DM)().substring(16)}}function o(e=(0,P.DM)(),r=(0,P.DM)().substring(16),c){let a="";return c!==void 0&&(a=c?"-1":"-0"),`${e}-${r}${a}`}},35074:function(Z,G,I){"use strict";I.d(G,{GLOBAL_OBJ:function(){return P},R:function(){return S},Y:function(){return T}});function M(f){return f&&f.Math==Math?f:void 0}const P=typeof globalThis=="object"&&M(globalThis)||typeof window=="object"&&M(window)||typeof self=="object"&&M(self)||typeof I.g=="object"&&M(I.g)||function(){return this}()||{};function S(){return P}function T(f,h,o){const e=o||P,r=e.__SENTRY__=e.__SENTRY__||{};return r[f]||(r[f]=h())}},38638:function(Z,G,I){"use strict";I.d(G,{PR:function(){return J},to:function(){return ot},YF:function(){return yt},$A:function(){return nt},_j:function(){return Et},_4:function(){return rt}});var M=I(87016),P=I(65769),S=I(22394);const T=(et,at,ut)=>{let dt,vt;return Lt=>{at.value>=0&&(Lt||ut)&&(vt=at.value-(dt||0),(vt||dt===void 0)&&(dt=at.value,at.delta=vt,et(at)))}};var f=I(75571);const h=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;var o=I(75241);const e=()=>{const et=(0,o.W)();return et&&et.activationStart||0},r=(et,at)=>{const ut=(0,o.W)();let dt="navigate";return ut&&(f.WINDOW.document.prerendering||e()>0?dt="prerender":dt=ut.type.replace(/_/g,"-")),{name:et,value:typeof at=="undefined"?-1:at,rating:"good",delta:0,entries:[],id:h(),navigationType:dt}},c=(et,at,ut)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(et)){const dt=new PerformanceObserver(vt=>{at(vt.getEntries())});return dt.observe(Object.assign({type:et,buffered:!0},ut||{})),dt}}catch(dt){}};var a=I(32621);const p=et=>{const at=r("CLS",0);let ut,dt=0,vt=[];const Lt=Ct=>{Ct.forEach(jt=>{if(!jt.hadRecentInput){const Te=vt[0],ve=vt[vt.length-1];dt&&vt.length!==0&&jt.startTime-ve.startTime<1e3&&jt.startTime-Te.startTime<5e3?(dt+=jt.value,vt.push(jt)):(dt=jt.value,vt=[jt]),dt>at.value&&(at.value=dt,at.entries=vt,ut&&ut())}})},Ht=c("layout-shift",Lt);if(Ht){ut=T(et,at);const Ct=()=>{Lt(Ht.takeRecords()),ut(!0)};return(0,a.u)(Ct),Ct}};var _=I(19804);const i=et=>{const at=(0,_.Y)(),ut=r("FID");let dt;const vt=Ct=>{Ct.startTime<at.firstHiddenTime&&(ut.value=Ct.processingStart-Ct.startTime,ut.entries.push(Ct),dt(!0))},Lt=Ct=>{Ct.forEach(vt)},Ht=c("first-input",Lt);dt=T(et,ut),Ht&&(0,a.u)(()=>{Lt(Ht.takeRecords()),Ht.disconnect()},!0)};let u=0,s=1/0,l=0;const y=et=>{et.forEach(at=>{at.interactionId&&(s=Math.min(s,at.interactionId),l=Math.max(l,at.interactionId),u=l?(l-s)/7+1:0)})};let v;const b=()=>v?u:performance.interactionCount||0,E=()=>{"interactionCount"in performance||v||(v=c("event",y,{type:"event",buffered:!0,durationThreshold:0}))},O=()=>b(),d=10,m=[],x={},w=et=>{const at=m[m.length-1],ut=x[et.interactionId];if(ut||m.length<d||et.duration>at.latency){if(ut)ut.entries.push(et),ut.latency=Math.max(ut.latency,et.duration);else{const dt={id:et.interactionId,latency:et.duration,entries:[et]};x[dt.id]=dt,m.push(dt)}m.sort((dt,vt)=>vt.latency-dt.latency),m.splice(d).forEach(dt=>{delete x[dt.id]})}},C=()=>{const et=Math.min(m.length-1,Math.floor(O()/50));return m[et]},k=(et,at)=>{at=at||{},E();const ut=r("INP");let dt;const vt=Ht=>{Ht.forEach(jt=>{jt.interactionId&&w(jt),jt.entryType==="first-input"&&!m.some(ve=>ve.entries.some(Oe=>jt.duration===Oe.duration&&jt.startTime===Oe.startTime))&&w(jt)});const Ct=C();Ct&&Ct.latency!==ut.value&&(ut.value=Ct.latency,ut.entries=Ct.entries,dt())},Lt=c("event",vt,{durationThreshold:at.durationThreshold||40});dt=T(et,ut,at.reportAllChanges),Lt&&(Lt.observe({type:"first-input",buffered:!0}),(0,a.u)(()=>{vt(Lt.takeRecords()),ut.value<0&&O()>0&&(ut.value=0,ut.entries=[]),dt(!0)}))},N={},L=et=>{const at=(0,_.Y)(),ut=r("LCP");let dt;const vt=Ht=>{const Ct=Ht[Ht.length-1];if(Ct){const jt=Math.max(Ct.startTime-e(),0);jt<at.firstHiddenTime&&(ut.value=jt,ut.entries=[Ct],dt())}},Lt=c("largest-contentful-paint",vt);if(Lt){dt=T(et,ut);const Ht=()=>{N[ut.id]||(vt(Lt.takeRecords()),Lt.disconnect(),N[ut.id]=!0,dt(!0))};return["keydown","click"].forEach(Ct=>{addEventListener(Ct,Ht,{once:!0,capture:!0})}),(0,a.u)(Ht,!0),Ht}},U=et=>{f.WINDOW.document&&(f.WINDOW.document.prerendering?addEventListener("prerenderingchange",()=>U(et),!0):f.WINDOW.document.readyState!=="complete"?addEventListener("load",()=>U(et),!0):setTimeout(et,0))},X=(et,at)=>{at=at||{};const ut=r("TTFB"),dt=T(et,ut,at.reportAllChanges);U(()=>{const vt=(0,o.W)();if(vt){if(ut.value=Math.max(vt.responseStart-e(),0),ut.value<0||ut.value>performance.now())return;ut.entries=[vt],dt(!0)}})},B={},Y={};let W,it,ft,z,F;function J(et,at=!1){return St("cls",et,Qt,W,at)}function nt(et,at=!1){return St("lcp",et,ue,ft,at)}function rt(et){return St("ttfb",et,Vt,z)}function ot(et){return St("fid",et,Jt,it)}function yt(et){return St("inp",et,q,F)}function Et(et,at){return ht(et,at),Y[et]||(Ft(et),Y[et]=!0),At(et,at)}function wt(et,at){const ut=B[et];if(!(!ut||!ut.length))for(const dt of ut)try{dt(at)}catch(vt){S.X&&M.kg.error(`Error while triggering instrumentation handler.
Type: ${et}
Name: ${(0,P.$P)(dt)}
Error:`,vt)}}function Qt(){return p(et=>{wt("cls",{metric:et}),W=et})}function Jt(){return i(et=>{wt("fid",{metric:et}),it=et})}function ue(){return L(et=>{wt("lcp",{metric:et}),ft=et})}function Vt(){return X(et=>{wt("ttfb",{metric:et}),z=et})}function q(){return k(et=>{wt("inp",{metric:et}),F=et})}function St(et,at,ut,dt,vt=!1){ht(et,at);let Lt;return Y[et]||(Lt=ut(),Y[et]=!0),dt&&at({metric:dt}),At(et,at,vt?Lt:void 0)}function Ft(et){const at={};et==="event"&&(at.durationThreshold=0),c(et,ut=>{wt(et,{entries:ut})},at)}function ht(et,at){B[et]=B[et]||[],B[et].push(at)}function At(et,at,ut){return()=>{ut&&ut();const dt=B[et];if(!dt)return;const vt=dt.indexOf(at);vt!==-1&&dt.splice(vt,1)}}},75571:function(Z,G,I){"use strict";I.d(G,{WINDOW:function(){return P}});var M=I(35074);const P=M.GLOBAL_OBJ},75241:function(Z,G,I){"use strict";I.d(G,{W:function(){return S}});var M=I(75571);const P=()=>{const T=M.WINDOW.performance.timing,f=M.WINDOW.performance.navigation.type,h={entryType:"navigation",startTime:0,type:f==2?"back_forward":f===1?"reload":"navigate"};for(const o in T)o!=="navigationStart"&&o!=="toJSON"&&(h[o]=Math.max(T[o]-T.navigationStart,0));return h},S=()=>M.WINDOW.__WEB_VITALS_POLYFILL__?M.WINDOW.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||P()):M.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},19804:function(Z,G,I){"use strict";I.d(G,{Y:function(){return h}});var M=I(75571),P=I(32621);let S=-1;const T=()=>M.WINDOW.document.visibilityState==="hidden"&&!M.WINDOW.document.prerendering?0:1/0,f=()=>{(0,P.u)(({timeStamp:o})=>{S=o},!0)},h=()=>(S<0&&(S=T(),f()),{get firstHiddenTime(){return S}})},32621:function(Z,G,I){"use strict";I.d(G,{u:function(){return P}});var M=I(75571);const P=(S,T)=>{const f=h=>{(h.type==="pagehide"||M.WINDOW.document.visibilityState==="hidden")&&(S(h),T&&(removeEventListener("visibilitychange",f,!0),removeEventListener("pagehide",f,!0)))};addEventListener("visibilitychange",f,!0),addEventListener("pagehide",f,!0)}},22394:function(Z,G,I){"use strict";I.d(G,{X:function(){return M}});const M=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__},76236:function(Z,G,I){"use strict";I.r(G),I.d(G,{default:function(){return f}});var M=I(72344),P=I(52983),S=I(97458);function T(){return(0,S.jsx)(M.zx,{children:"Click"})}var f=T},66513:function(Z,G,I){"use strict";I.r(G),I.d(G,{default:function(){return v}});var M=I(72344);function P(b="\u661F\u671F"){const E=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],O=new Date().getDay();return b+E[O]}function S(b){const E=new Date(b),O=E.getFullYear(),d=E.getMonth()+1;return new Date(O,d,0).getDate()}function T(b){const E=new Date().getFullYear(),O=[];for(let d=E;d>=b;d--)O.push(d);return O}function f(b){const{type:E=1,prefix:O="\u661F\u671F"}=b||{},d=new Date,m=d.getFullYear(),x=String(d.getMonth()+1).padStart(2,"0"),w=String(d.getDate()).padStart(2,"0"),C=String(d.getHours()).padStart(2,"0"),k=String(d.getMinutes()).padStart(2,"0"),N=String(d.getSeconds()).padStart(2,"0"),L=O+"\u65E5\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D"[d.getDay()];let U;switch(E){case 2:U=`${m}-${x}-${w}`;break;case 3:U=`${m}/${x}/${w}`;break;default:U=`${m}\u5E74${x}\u6708${w}\u65E5`}const X=`${C}:${k}:${N}`;return{ymd:U,hms:X,week:L}}function h(b){const E=new Date,O=E.getFullYear(),d=String(E.getMonth()+1).padStart(2,"0"),m=String(E.getDate()).padStart(2,"0"),x=String(E.getHours()).padStart(2,"0"),w=String(E.getMinutes()).padStart(2,"0"),C=String(E.getSeconds()).padStart(2,"0");return b.replace("YYYY",String(O)).replace("MM",d).replace("DD",m).replace("HH",x).replace("mm",w).replace("ss",C)}function o(b,E=!0){const O=Math.floor(b/3600),d=Math.floor(b%3600/60),m=Math.floor(b%60);return{h:E?String(O).padStart(2,"0"):O,m:E?String(d).padStart(2,"0"):d,s:E?String(m).padStart(2,"0"):m}}function e(b){return b==="win32"||b==="darwin"||b==="freebsd"||b==="openbsd"}function r(b,E,O){let d=O;for(let m=1;m<=b;m++)d=E(d,m);return d}function c(b,E){return Math.floor(Math.random()*(E-b+1)+b)}function a(b){const E=b.length;if(E===0)return null;const O=c(0,E-1);return b[O]}function p(b){return b.map(E=>({rand:Math.random(),value:E})).sort((E,O)=>E.rand-O.rand).map(E=>E.value)}function _(b=6,E=""){const O=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789${E}`;return r(b,d=>d+O.charAt(c(0,O.length-1)),"")}var i=I(27860),u=I.n(i),s=I(52983),l=I(97458);function y(){var b=f({type:2}),E=b.ymd;return(0,l.jsx)("div",{className:"App",style:{background:"#fff"},children:(0,l.jsx)(M.f,{value:u()(E)})})}var v=y},63259:function(Z,G,I){"use strict";I.r(G);var M=I(72344),P=I(52983),S=I(97458);function T(){return(0,S.jsx)("div",{className:"App",children:(0,S.jsx)(M.iz,{})})}G.default=T},14732:function(Z,G,I){"use strict";I.r(G);var M=I(72344),P=I(52983),S=I(97458);function T(){return(0,S.jsx)(M.AL,{children:(0,S.jsxs)(M.ug,{config:{rollbarKey:"23b8e46f18bd4eecaee8855d44148de4",rollbarEnv:"testenv",debug:!0,fundebugKey:"021cb0b41feaa3c55598f98729163e115a4f5c53c8c6943fb7edec6d9900cec8",sentryOptions:{dsn:"https://[email protected]/4507003679145984"}},children:[(0,S.jsx)(M.iz,{}),"monitor"]})})}G.default=T},9881:function(Z,G,I){"use strict";I.r(G);var M=I(72344),P=I(52983),S=I(97458);function T(){return(0,S.jsx)("div",{className:"App",children:(0,S.jsx)(M.Y7,{height:"200px",showControls:!0,src:"https://www.w3schools.com/html/mov_bbb.mp4",autoPlay:!0})})}G.default=T},27860:function(Z){(function(G,I){Z.exports=I()})(this,function(){"use strict";var G=1e3,I=6e4,M=36e5,P="millisecond",S="second",T="minute",f="hour",h="day",o="week",e="month",r="quarter",c="year",a="date",p="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,i=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var k=["th","st","nd","rd"],N=C%100;return"["+C+(k[(N-20)%10]||k[N]||k[0])+"]"}},s=function(C,k,N){var L=String(C);return!L||L.length>=k?C:""+Array(k+1-L.length).join(N)+C},l={s,z:function(C){var k=-C.utcOffset(),N=Math.abs(k),L=Math.floor(N/60),U=N%60;return(k<=0?"+":"-")+s(L,2,"0")+":"+s(U,2,"0")},m:function C(k,N){if(k.date()<N.date())return-C(N,k);var L=12*(N.year()-k.year())+(N.month()-k.month()),U=k.clone().add(L,e),X=N-U<0,B=k.clone().add(L+(X?-1:1),e);return+(-(L+(N-U)/(X?U-B:B-U))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:e,y:c,w:o,d:h,D:a,h:f,m:T,s:S,ms:P,Q:r}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},y="en",v={};v[y]=u;var b="$isDayjsObject",E=function(C){return C instanceof x||!(!C||!C[b])},O=function C(k,N,L){var U;if(!k)return y;if(typeof k=="string"){var X=k.toLowerCase();v[X]&&(U=X),N&&(v[X]=N,U=X);var B=k.split("-");if(!U&&B.length>1)return C(B[0])}else{var Y=k.name;v[Y]=k,U=Y}return!L&&U&&(y=U),U||!L&&y},d=function(C,k){if(E(C))return C.clone();var N=typeof k=="object"?k:{};return N.date=C,N.args=arguments,new x(N)},m=l;m.l=O,m.i=E,m.w=function(C,k){return d(C,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var x=function(){function C(N){this.$L=O(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[b]=!0}var k=C.prototype;return k.parse=function(N){this.$d=function(L){var U=L.date,X=L.utc;if(U===null)return new Date(NaN);if(m.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var B=U.match(_);if(B){var Y=B[2]-1||0,W=(B[7]||"0").substring(0,3);return X?new Date(Date.UTC(B[1],Y,B[3]||1,B[4]||0,B[5]||0,B[6]||0,W)):new Date(B[1],Y,B[3]||1,B[4]||0,B[5]||0,B[6]||0,W)}}return new Date(U)}(N),this.init()},k.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},k.$utils=function(){return m},k.isValid=function(){return this.$d.toString()!==p},k.isSame=function(N,L){var U=d(N);return this.startOf(L)<=U&&U<=this.endOf(L)},k.isAfter=function(N,L){return d(N)<this.startOf(L)},k.isBefore=function(N,L){return this.endOf(L)<d(N)},k.$g=function(N,L,U){return m.u(N)?this[L]:this.set(U,N)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(N,L){var U=this,X=!!m.u(L)||L,B=m.p(N),Y=function(rt,ot){var yt=m.w(U.$u?Date.UTC(U.$y,ot,rt):new Date(U.$y,ot,rt),U);return X?yt:yt.endOf(h)},W=function(rt,ot){return m.w(U.toDate()[rt].apply(U.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(ot)),U)},it=this.$W,ft=this.$M,z=this.$D,F="set"+(this.$u?"UTC":"");switch(B){case c:return X?Y(1,0):Y(31,11);case e:return X?Y(1,ft):Y(0,ft+1);case o:var J=this.$locale().weekStart||0,nt=(it<J?it+7:it)-J;return Y(X?z-nt:z+(6-nt),ft);case h:case a:return W(F+"Hours",0);case f:return W(F+"Minutes",1);case T:return W(F+"Seconds",2);case S:return W(F+"Milliseconds",3);default:return this.clone()}},k.endOf=function(N){return this.startOf(N,!1)},k.$set=function(N,L){var U,X=m.p(N),B="set"+(this.$u?"UTC":""),Y=(U={},U[h]=B+"Date",U[a]=B+"Date",U[e]=B+"Month",U[c]=B+"FullYear",U[f]=B+"Hours",U[T]=B+"Minutes",U[S]=B+"Seconds",U[P]=B+"Milliseconds",U)[X],W=X===h?this.$D+(L-this.$W):L;if(X===e||X===c){var it=this.clone().set(a,1);it.$d[Y](W),it.init(),this.$d=it.set(a,Math.min(this.$D,it.daysInMonth())).$d}else Y&&this.$d[Y](W);return this.init(),this},k.set=function(N,L){return this.clone().$set(N,L)},k.get=function(N){return this[m.p(N)]()},k.add=function(N,L){var U,X=this;N=Number(N);var B=m.p(L),Y=function(ft){var z=d(X);return m.w(z.date(z.date()+Math.round(ft*N)),X)};if(B===e)return this.set(e,this.$M+N);if(B===c)return this.set(c,this.$y+N);if(B===h)return Y(1);if(B===o)return Y(7);var W=(U={},U[T]=I,U[f]=M,U[S]=G,U)[B]||1,it=this.$d.getTime()+N*W;return m.w(it,this)},k.subtract=function(N,L){return this.add(-1*N,L)},k.format=function(N){var L=this,U=this.$locale();if(!this.isValid())return U.invalidDate||p;var X=N||"YYYY-MM-DDTHH:mm:ssZ",B=m.z(this),Y=this.$H,W=this.$m,it=this.$M,ft=U.weekdays,z=U.months,F=U.meridiem,J=function(ot,yt,Et,wt){return ot&&(ot[yt]||ot(L,X))||Et[yt].slice(0,wt)},nt=function(ot){return m.s(Y%12||12,ot,"0")},rt=F||function(ot,yt,Et){var wt=ot<12?"AM":"PM";return Et?wt.toLowerCase():wt};return X.replace(i,function(ot,yt){return yt||function(Et){switch(Et){case"YY":return String(L.$y).slice(-2);case"YYYY":return m.s(L.$y,4,"0");case"M":return it+1;case"MM":return m.s(it+1,2,"0");case"MMM":return J(U.monthsShort,it,z,3);case"MMMM":return J(z,it);case"D":return L.$D;case"DD":return m.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return J(U.weekdaysMin,L.$W,ft,2);case"ddd":return J(U.weekdaysShort,L.$W,ft,3);case"dddd":return ft[L.$W];case"H":return String(Y);case"HH":return m.s(Y,2,"0");case"h":return nt(1);case"hh":return nt(2);case"a":return rt(Y,W,!0);case"A":return rt(Y,W,!1);case"m":return String(W);case"mm":return m.s(W,2,"0");case"s":return String(L.$s);case"ss":return m.s(L.$s,2,"0");case"SSS":return m.s(L.$ms,3,"0");case"Z":return B}return null}(ot)||B.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(N,L,U){var X,B=this,Y=m.p(L),W=d(N),it=(W.utcOffset()-this.utcOffset())*I,ft=this-W,z=function(){return m.m(B,W)};switch(Y){case c:X=z()/12;break;case e:X=z();break;case r:X=z()/3;break;case o:X=(ft-it)/6048e5;break;case h:X=(ft-it)/864e5;break;case f:X=ft/M;break;case T:X=ft/I;break;case S:X=ft/G;break;default:X=ft}return U?X:m.a(X)},k.daysInMonth=function(){return this.endOf(e).$D},k.$locale=function(){return v[this.$L]},k.locale=function(N,L){if(!N)return this.$L;var U=this.clone(),X=O(N,L,!0);return X&&(U.$L=X),U},k.clone=function(){return m.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},C}(),w=x.prototype;return d.prototype=w,[["$ms",P],["$s",S],["$m",T],["$H",f],["$W",h],["$M",e],["$y",c],["$D",a]].forEach(function(C){w[C[1]]=function(k){return this.$g(k,C[0],C[1])}}),d.extend=function(C,k){return C.$i||(C(k,x,d),C.$i=!0),d},d.locale=O,d.isDayjs=E,d.unix=function(C){return d(1e3*C)},d.en=v[y],d.Ls=v,d.p={},d})},39447:function(Z,G){var I,M,P,S=["documentElement","location","statusText","monitorHttpResponse","monitorHttpBody","addBreadcrumb","silentBehavior","ifReportHttpError","parse","[Fundebug]: JSON.parse fails","stringify","method","apply","getOwnPropertyDescriptor","warning","exports","fundebug.com","pushState","url","title","silentConsole","addEventListener","silentPerformance","releasestage","sensitives","object","apikey","getBreadcrumbs","name","userAgent","length","getEntriesByType","test","match","previousSibling","nodeType"];(function(f,h){(function(o){for(;--o;)f.push(f.shift())})(++h)})(S,205);var T=function(f,h){return S[f-=0]};(function(f,h){T("0x0")==typeof G?Z.exports=h():(M=[],I=h,P=typeof I=="function"?I.apply(G,M):I,P!==void 0&&(Z.exports=P))})(window,function(){return function(f){var h={};function o(e){if(h[e])return h[e].exports;var r=h[e]={i:e,l:!1,exports:{}};return f[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=f,o.c=h,o.d=function(e,r,c){o.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:c})},o.r=function(e){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,r){if(1&r&&(e=o(e)),8&r||4&r&&typeof e=="object"&&e&&e.__esModule)return e;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&r&&typeof e!="string")for(var a in e)o.d(c,a,function(p){return e[p]}.bind(null,a));return c},o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,"a",r),r},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.p="",o(o.s=0)}([function(f,h,o){var e=o(1),r=o(8),c=o(10),a=o(11),p=o(14),_=o(15),i=o(16),u=o(17),s=o(18),l=o(19),y=o(20),v=o(21),b=o(22),E=o(23),O=o(24),d=E.getConfig(),m=o(25);e(d,O),r(d,O),c(d,O),a(d,O),p(d,O),_(d,O),i(d),u(d,O),s(d,O),l(d,O),m(d,O),y(d,O),v(d,O),b(d,O),window.fundebug=d,f.exports=d},function(f,h,o){var e=o(2);f.exports=function(r,c){"addEventListener"in window&&window.addEventListener("unhandledrejection",function(a){try{if(r.silentPromise)return;var p={type:"unhandledrejection",name:"unhandledrejection",message:a.reason};e(p,r,c)}catch(_){}})}},function(f,h,o){var e=o(3),r=o(4),c=o(5),a=o(6),p=o(7);function _(i,u,s){var l=u[T("0x1")];if(r.verifyApiKey(l)&&u.maxEventNumber&&!u.silent&&!c(u.silentDev)){var y;u.maxEventNumber-=1,y=u.revideo&&u.revideo.fetchSequence&&u.revideo.fetchSequence();var v,b=s[T("0x2")]();u.silentPerformance||(v=a.getPerformance());var E={notifierVersion:"2.8.7",userAgent:window.navigator.userAgent,locale:window.navigator.language||window.navigator.userLanguage,url:window.location.href,title:document.title,appVersion:u.appversion,apiKey:u[T("0x1")],releaseStage:u.releasestage,metaData:i.metaData||u.metaData,user:i.user||u.user,name:i[T("0x3")],time:new Date().getTime(),message:i.message,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,stacktrace:i.stacktrace,type:i.type,severity:i.severity,target:i.target,req:i.req,res:i.res,httpTimeout:i.httpTimeout,breadcrumbs:b,redo:y,performance:v};E[T("0x4")]&&E.userAgent.match(/Googlebot/)||(u.callback&&u.callback(E),e.isFiltered(E,u.filters)||r.isSampled(u.sampleRate)&&function(O,d){var m=function(w){var C;try{C=p(w)}catch(k){delete w.metaData;try{C=p(w)}catch(N){return}}return C}(O);if(m)if(window.XMLHttpRequest&&window.atob){var x=new XMLHttpRequest;x.sendByFundebug=!0,x.open("POST",d),x.setRequestHeader("Content-Type","application/json"),x.send(m)}else new Image().src=d+"?event="+encodeURIComponent(m)}(E,u.notifierUrl))}}f.exports=function(i,u,s){u.revideo?setTimeout(function(){_(i,u,s)},1e3):_(i,u,s)}},function(f,h){function o(e,r){if(!e||!r||Object.keys&&!Object.keys(r)[T("0x5")])return!1;for(var c in r)if(r.hasOwnProperty(c)){if(r[c].constructor===RegExp){if(!r[c].test(e[c]))return!1}else if(r[c].constructor===Object){if(!o(e[c],r[c]))return!1}else if(r[c].constructor!==String||r[c]!=="inexistence"||e.hasOwnProperty(c))return!1}return!0}h.isFiltered=function(e,r){if(!r||!r.length)return!1;for(var c=0;c<r.length;c++)if(o(e,r[c]))return!0;return!1}},function(f,h){h.isSampled=function(o){return!o&&o!==0||(o=parseFloat(o),!!isNaN(o)||Math.random()<=o)},h.verifyApiKey=function(o,e){return o?!!o.match(/^[0-9a-z]{64}$/i)||(e||console.error("Fundebug: apikey\u683C\u5F0F\u9519\u8BEF"),!1):(e||console.error("Fundebug: \u8BF7\u914D\u7F6Eapikey"),!1)}},function(f,h){f.exports=function(o){return!(!o||!(e=window.location.href)||!/^http:\/\/localhost/.test(e)&&!/^http:\/\/(\d{1,3}\.){3}\d{1,3}/.test(e));var e}},function(f,h){h.getPerformance=function(){if("performance"in window&&T("0x6")in performance)return{navigation:performance.getEntriesByType("navigation")}}},function(f,h){f.exports=function(u,s,l,y){var v,b,E,O,d=y&&y.redactedKeys?y.redactedKeys:[],m=y&&y.redactedPaths?y.redactedPaths:[];return JSON.stringify((v=d,b=m,O=0,function x(w,C,k,N){function L(){return C.length>r&&e<O}if(O++,C.length>o||L())return c;if(!N&&k&&w===void 0)return"fundebug: undefined";if(N&&(N=!1),w===null||typeof w!="object")return w;if(function(J,nt){for(var rt=0,ot=J.length;rt<ot;rt++)if(J[rt]===nt)return!0;return!1}(E,w))return"[Circular]";if(E.push(w),typeof w.toJSON=="function")try{O--;var U=x(w.toJSON(),C,k,N);return E.pop(),U}catch(J){return a(J)}var X,B;if((X=w)instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(X))){O--;var Y=x({name:w.name,message:w.message},C,k,N);return E.pop(),Y}if(B=w,Object.prototype.toString.call(B)==="[object Array]"){for(var W=[],it=0,ft=w.length;it<ft;it++){if(L()){W.push(c);break}W.push(x(w[it],C.concat("[]"),k,N))}return E.pop(),W}var z={};try{for(var F in w)if(Object.prototype.hasOwnProperty.call(w,F))if(p(b,C.join("."))&&_(v,F))z[F]="[REDACTED]";else{if(L()){z[F]=c;break}z[F]=F=="metaData"?x(i(w,F),C.concat(F),!0,!0):x(i(w,F),C.concat(F),k,N)}}catch(J){}return E.pop(),z}(u,[],!(E=[]),!1)),s,l)};var o=20,e=25e3,r=8,c="...";function a(u){return"[Throws: "+(u?u.message:"?")+"]"}function p(u,s){for(var l=0,y=u.length;l<y;l++)if(s.indexOf(u[l])===0)return!0;return!1}function _(u,s){for(var l=0,y=u.length;l<y;l++)if(typeof u[l]=="string"&&u[l].toLowerCase()===s.toLowerCase()||u[l]&&typeof u[l].test=="function"&&u[l][T("0x7")](s))return!0;return!1}function i(u,s){try{return u[s]}catch(l){return a(l)}}},function(f,h,o){var e=o(2),r=o(9);f.exports=function(c,a){window.onerror=function(p,_,i,u,s){var l;u===void 0&&window.event&&(u=window.event.errorCharacter),l=_&&_!==window.location.href?_:null;var y=r(s),v={message:p,lineNumber:i,columnNumber:u,fileName:l||y&&y.fileName,name:y&&y.name||"uncaught error",stacktrace:s&&s.stack||function(){var b,E,O=[];try{E=arguments.callee.caller.caller}catch(m){E=""}for(;E&&O.length<10;){var d=E.toString()[T("0x8")](/function\s*([\w\_$]+)?\s*\(/i);b=d&&d[1]||"[anonymous]",O.push(b),E=E.caller}return`generated-stack:
`+O.join(`
`)}(),severity:"error",type:"uncaught"};return e(v,c,a),!1}}},function(f,h){f.exports=function(o){if(!o)return null;var e={};return window.XMLHttpRequest?e=typeof o=="string"?{message:o}:{name:o.name,message:o.message,fileName:o.fileName||o.sourceURL,lineNumber:o.lineNumber||o.line,columnNumber:o.columnNumber||o.column}:e.message=o.message,e}},function(f,h,o){var e=o(2);f.exports=function(r,c){window.addEventListener&&window.addEventListener("error",function(a){try{if(r.silentResource||a.message)return;var p,_=(p=a.target?a.target:a.srcElement)&&p.outerHTML;_&&200<_.length&&(_=_.slice(0,200));var i={type:"resourceError",target:{outerHTML:_,src:p&&p.src,tagName:p&&p.tagName,id:p&&p.id,className:p&&p.className,name:p&&p.name,type:p&&p.type,XPath:function(s){for(var l=[];s&&s.nodeType===Node.ELEMENT_NODE;s=s.parentNode){var y,v=0,b=!1;for(y=s[T("0x9")];y;y=y.previousSibling)y[T("0xa")]!==Node.DOCUMENT_TYPE_NODE&&y.nodeName===s.nodeName&&++v;for(y=s.nextSibling;y&&!b;y=y.nextSibling)y.nodeName===s.nodeName&&(b=!0);var E=(s.prefix?s.prefix+":":"")+s.localName,O=v||b?"["+(v+1)+"]":"";l.splice(0,0,E+O)}return l.length?"/"+l.join("/"):null}(p),selector:function(s){for(var l=[];s.parentNode;){if(s.id){l.unshift("#"+s.id);break}if(s===s.ownerDocument[T("0xb")])l.unshift(s.tagName);else{for(var y=1,v=s;v.previousElementSibling;v=v.previousElementSibling,y++);l.unshift(s.tagName+":nth-child("+y+")")}s=s.parentNode}return l.join(" > ")}(p),timeStamp:a.timeStamp}};if(p.src===window[T("0xc")].href||p.src&&p.src.match(/.*\/(.*)$/)&&!p.src.match(/.*\/(.*)$/)[1])return;if(i.target.src&&window.XMLHttpRequest){var u=new XMLHttpRequest;u.sendByFundebug=!0,u.open("HEAD",i.target.src),u.send(),u.onload=function(s){s.target.status!==200&&(i.target.status=s.target.status,i.target[T("0xd")]=s.target.statusText,e(i,r,c))}}}catch(s){}},!0)}},function(f,h,o){var e=o(12),r=o(13),c=o(7);f.exports=function(a,p){if(window.fetch){var _=window.fetch;window.fetch=function(s,l){var y=new Date().getTime();return _.apply(this,arguments).then(function(v){return function(b){try{var E=new Date().getTime()-y,O=l&&l.method||"GET",d=b.url,m=b.status,x=b.statusText,w=void 0;a.monitorHttpBody&&(w=r.copyWithoutPrivacy(l&&l.body,a.sensitives));var C=b.headers.get("content-type");C.startsWith("application/json;")?b.json().then(function(k){var N=void 0;a.monitorHttpResponse&&4e4<(N=c(k)).length&&(N.response=N.substring(0,4e4)),u(O,d,m,x,E,w,N),i(O,d,m,x,E,y,w,N)}):C.startsWith("text/")?b.text().then(function(k){a[T("0xe")]?4e4<k.length&&(k=k.substring(0,4e4)):k=void 0,u(O,d,m,x,E,w,k),i(O,d,m,x,E,y,w,k)}):(u(O,d,m,x,E,w,void 0),i(O,d,m,x,E,y,w,void 0))}catch(k){}}(v.clone()),v})}}function i(s,l,y,v,b,E,O,d){if(!a.silentBehavior){var m={type:"fetch",page:{url:window.location.href,title:document.title},detail:{method:s,url:l,status:y,statusText:v},elapsedTime:b,time:E};a[T("0xf")]&&(m.detail.body=O),a.monitorHttpResponse&&(m.detail.response=d),p[T("0x10")](m,a[T("0x11")],a.breadcrumbSize)}}function u(s,l,y,v,b,E,O){if(!a.silentHttp&&(e.ifReportHttpError(y,l)||e.ifReportHttpTimout(b,a.httpTimeout))){var d={method:s,url:l};a[T("0xf")]&&(d.body=E);var m,x={status:y,statusText:v,elapsedTime:b};a[T("0xe")]&&(x.response=O),m=e[T("0x12")](y,l)?"httpError":"httpTimeout",e.sendHttpErrorToFundebug(m,d,x,a,p)}}}},function(f,h,o){var e=o(2);h.ifReportHttpTimout=function(r,c){return typeof c=="number"&&c<r},h.ifReportHttpError=function(r,c){return!(r===0&&/^file:\/\/\//.test(c)||/^2\d\d$/.test(r))},h.sendHttpErrorToFundebug=function(r,c,a,p,_){var i={type:r,req:c,res:a};typeof p.httpTimeout=="number"&&(i.httpTimeout=p.httpTimeout),e(i,p,_)}},function(f,h){function o(e,r,c){if(e===void 0||!e||-1<["string","number","boolean"].indexOf(typeof e))return e;try{var a={};return Object.entries(e).forEach(function(p){var _=p[0],i=p[1];typeof i=="object"&&i!==null?r.has(i)?a[_]="property removed because of circular structure":10<r.size?a[_]="property removed to avoid deep recursion":(r.add(i),a[_]=o(i,r,c)):-1<c.indexOf(_)?a[_]="property removed for protecting privacy":a[_]=i}),a}catch(p){return{notice:"[Fundebug]: deep copy failed"}}}h.copyWithoutPrivacy=function(e,r){try{return typeof e=="string"&&(e=JSON[T("0x13")](e)),r.indexOf("password")==-1&&r.push("password"),"entries"in Object?o(e,new Set([e]),r):{notice:"[Fundebug]: IE 11 not supported"}}catch(c){return{notice:T("0x14")}}},h.copyWithoutCircle=function(e){return e&&typeof e=="object"&&function(r){try{JSON[T("0x15")](r)}catch(c){return!!(c.message.includes("Converting circular structure to JSON")||c.message.includes("JSON.stringify cannot serialize cyclic structures")||c.message.includes("cyclic object value")||c.message.includes("Circular reference in value argument not supported")||c.message.includes("\u5FAA\u73AF\u5F15\u7528"))}return!1}(e)?"entries"in Object?o(e,new Set([e]),[]):{}:e}},function(f,h,o){var e=o(13),r=o(12),c=o(7);f.exports=function(a,p){if(window.XMLHttpRequest&&window.XMLHttpRequest.prototype){var _=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(u,s){try{this.fundebugTemp={method:u,url:s,startTime:new Date().getTime()}}catch(l){}_&&_.apply(this,arguments)};var i=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(u){try{if(!this.sendByFundebug){var s=this;s.fundebugTemp.fundebugHttpRecorded=!1;var l=s.onloadend;s.isOnloadendInjectedByFundebug?l&&l.apply(this,arguments):(s.isOnloadendInjectedByFundebug=!0,s.onloadend=function(){(function(y,v){try{var b,E=new Date().getTime(),O=y.fundebugTemp.startTime,d=E-O,m=y.fundebugTemp[T("0x16")],x=y.responseURL||y.fundebugTemp.url,w=y.status,C=y.statusText,k=y.response;a.monitorHttpBody&&(b=e.copyWithoutPrivacy(v,a.sensitives)),y.fundebugTemp.fundebugHttpRecorded||(function(N,L,U,X,B,Y,W){if(!a.silentHttp&&(r.ifReportHttpError(X,L)||r.ifReportHttpTimout(W,a.httpTimeout))){var it={method:N,url:L};a.monitorHttpBody&&(it.body=U);var ft,z={status:X,statusText:B,elapsedTime:W};a.monitorHttpResponse&&(z.response=Y),ft=r.ifReportHttpError(X,L)?"httpError":"httpTimeout",r.sendHttpErrorToFundebug(ft,it,z,a,p)}}(m,x,b,w,C,k,d),function(N,L,U,X,B,Y,W,it){if(!a.silentBehavior){var ft={type:"XMLHttpRequest",page:{url:window.location.href},detail:{method:N,url:L,status:U,statusText:X},elapsedTime:B,time:Y};if(a.monitorHttpResponse)try{var z=c(W);4e4<z.length?ft.detail.response=z.substring(0,4e4):ft.detail.response=W}catch(F){ft.detail.response="[Fundebug] response's size exceeds limitation"}a.monitorHttpBody&&(ft.detail.body=it),p.addBreadcrumb(ft,a.silentBehavior,a.breadcrumbSize)}}(m,x,w,C,d,O,k,b),y.fundebugTemp.fundebugHttpRecorded=!0)}catch(N){}})(s,u),l&&l.apply(this,arguments)})}}catch(y){}i&&i[T("0x17")](this,arguments)}}}},function(f,h,o){var e=o(2);f.exports=function(r,c){try{if(r.silentWebsocket||!("WebSocket"in window))return;var a=Object[T("0x18")](WebSocket.prototype,"onerror");if(!a||!a.configurable)return;Object.defineProperty(WebSocket.prototype,"onerror",{set:function(){if(r.silentWebsocket)return a.set.apply(this,arguments);try{var p=arguments[0];return a.set.apply(this,[function(_){try{var i={type:"websocketError",target:{type:"onerror",url:_.target.url,timeStamp:_.timeStamp}};e(i,r,c),typeof p=="function"&&p.apply(this,arguments)}catch(u){typeof p=="function"&&p.apply(this,arguments)}}])}catch(_){return a.set.apply(this,arguments)}}})}catch(p){}}},function(f,h){f.exports=function(o){o.init=function(e){for(var r=0,c=["apikey","appversion","releasestage","user","metaData","callback","monitorHttpBody","httpTimeout","filters","silent","silentDev","silentResource","silentHttp","silentWebsocket","silentConsole","silentPerformance","sampleRate","domain","notifierUrl","breadcrumbSize","silentPromise","maxRevideoSizeInByte","maxEventNumber","monitorHttpResponse","sensitives"];r<c.length;r++){var a=c[r];e[a]&&(o[a]=e[a])}o.sensitives==null&&(o.sensitives=[])}}},function(f,h,o){var e=o(2),r=o(9);f.exports=function(c,a){c.notifyError=function(p,_){if(p){window.console&&console.error(p);var i=r(p),u={name:i.name||_&&_.name||"caught error",message:i.message||_&&_.message,stacktrace:p.stack,fileName:i.fileName,lineNumber:i.lineNumber,columnNumber:i.columnNumber,severity:_&&_.severity||"error",type:"caught",user:_&&_.user,metaData:_&&_.metaData};e(u,c,a)}}}},function(f,h,o){var e=o(2),r=o(4);f.exports=function(c,a){c.notify=function(p,_,i){if(p){var u={message:_||i&&i.message,name:p||i&&i.name,severity:i&&i.message||T("0x19"),stacktrace:function(){var l;try{throw new Error("")}catch(y){l=y.stack}if(l)return`generated-stack:
`+(l=l.replace(/(.*?)fundebug(.*?)\.js(.*)\n?/gm,"")).replace(/^Error\n/g,"")}(),type:"notification",user:i&&i.user,metaData:i&&i.metaData},s=c.apikey;return r.verifyApiKey(s,!0)?(e(u,c,a),location.host==="fundebug.com"||location.host==="www.fundebug.com"?"\u4EB2\uFF0C\u4E0D\u8981\u5728Fundebug\u7F51\u7AD9\u6D4B\u8BD5\u54E6\uFF1B\u8BF7\u5C06Fundebug\u63D2\u4EF6\u96C6\u6210\u5230\u60A8\u7684\u7F51\u7AD9\uFF0C\u7136\u540E\u8FDB\u884C\u6D4B\u8BD5!":"\u8BF7\u67E5\u770B\u90AE\u7BB1\u4EE5\u53CAFundebug\u63A7\u5236\u53F0!"):s?"apikey\u683C\u5F0F\u9519\u8BEF":"\u8BF7\u914D\u7F6Eapikey"}}}},function(f,h,o){var e=o(2),r=o(4);f[T("0x1a")]=function(c,a){c.test=function(p,_){var i={name:p||"Test",message:_||"Hello, Fundebug!",severity:"test",type:"test"},u=c.apikey;return r.verifyApiKey(u,!0)?(e(i,c,a),T("0x1b")===location.host||location.host==="www.fundebug.com"?"\u4EB2\uFF0C\u4E0D\u8981\u5728Fundebug\u7F51\u7AD9\u6D4B\u8BD5\u54E6\uFF1B\u8BF7\u5C06Fundebug\u63D2\u4EF6\u96C6\u6210\u5230\u60A8\u7684\u7F51\u7AD9\uFF0C\u7136\u540E\u8FDB\u884C\u6D4B\u8BD5!":"\u8BF7\u67E5\u770B\u90AE\u7BB1\u4EE5\u53CAFundebug\u63A7\u5236\u53F0!"):u?"apikey\u683C\u5F0F\u9519\u8BEF":"\u8BF7\u914D\u7F6Eapikey"}}},function(f,h){f.exports=function(o,e){function r(c){var a,p=(a=c.target?c.target:c.srcElement)&&a.outerHTML;p&&200<p.length&&(p=p.slice(0,200));var _={type:"click",page:{url:window.location.href,title:document.title},detail:{outerHTML:p,tagName:a&&a.tagName,id:a&&a.id,className:a&&a.className,name:a&&a.name},time:new Date().getTime()};e[T("0x10")](_,o.silentBehavior,o.breadcrumbSize)}window.addEventListener?window.addEventListener("click",r,!0):document.attachEvent("onclick",r)}},function(f,h){f.exports=function(o,e){var r={url:window.location.href,title:""};document.addEventListener?document.addEventListener("DOMContentLoaded",function(){r={url:window.location.href,title:document.title}}):document.attachEvent("onreadystatechange",function(){r={url:window.location.href,title:document.title}});var c=window.onpopstate;window.onpopstate=function(){var i={url:window.location.href};if(r.title||(r.title=document.title),r.url!==i.url&&_(r,i),c)return c.apply(this,arguments)};var a=window.history[T("0x1c")];a&&(window.history.pushState=function(){r={url:window.location.href,title:document.title};var i={};if(arguments.length===3&&(i.url=arguments[2]),r[T("0x1d")]!==i.url&&_(r,i),a)return a.apply(this,arguments)});var p=window.onhashchange;function _(i,u){var s={type:"navigation",detail:{from:i,to:r=u},time:new Date().getTime()};JSON.stringify(s,null,4),e.addBreadcrumb(s,o.silentBehavior,o.breadcrumbSize)}window.onhashchange,window.onhashchange=function(){var i={url:window.location.href,title:document[T("0x1e")]};if(r.url!==i.url&&_(r,i),p)return p.apply(this,arguments)}}},function(f,h,o){var e=o(13);f.exports=function(r,c){function a(u){var s=console[u];console[u]=function(){try{var l={type:"console",page:{url:window.location.href,title:document.title},detail:{level:u,arguments:(y=arguments,y[0]instanceof Error?[].slice.apply(y).join(" "):e.copyWithoutCircle(y))},time:new Date().getTime()};r.silentConsole||c.addBreadcrumb(l,r.silentBehavior,r.breadcrumbSize)}catch(b){}var y;if(typeof s=="function")if(s[T("0x17")])s[T("0x17")](console,arguments);else{var v=Array.prototype.slice[T("0x17")](arguments).join(" ");s(v)}}}for(var p=["log","warn","debug","info"],_={},i=0;i<p.length;i++)window.console&&(_[p[i]]=console[p[i]],r[T("0x1f")]||a(p[i]));document[T("0x20")]&&document.addEventListener("DOMContentLoaded",function(){for(var u=0;u<p.length;u++)window.console&&r.silentConsole&&_[p[u]]&&(console[p[u]]=_[p[u]])})}},function(f,h){var o=function(){var e=document.currentScript;if(!e){var r=document.scripts;e=r[r.length-1]}return e}();h.getConfig=function(){var e={};return e.silent=o.getAttribute("silent")||!1,e.silent==="false"&&(e.silent=!1),e.maxEventNumber=o.getAttribute("maxEventNumber")||o.getAttribute("maxeventnumber")||10,e.monitorHttpBody=o.getAttribute("monitorHttpBody")||o.getAttribute("monitorhttpbody")||!1,e.monitorHttpBody==="false"&&(e.monitorHttpBody=!1),e.silentResource=o.getAttribute("silentResource")||o.getAttribute("silentresource")||!1,e.silentResource==="false"&&(e.silentResource=!1),e.silentWebsocket=o.getAttribute("silentWebsocket")||o.getAttribute("silentWebsocket")||!1,e.silentWebsocket==="false"&&(e.silentWebsocket=!1),e.silentHttp=o.getAttribute("silentHttp")||o.getAttribute("silenthttp")||!1,e.silentHttp==="false"&&(e.silentHttp=!1),e.silentConsole=o.getAttribute("silentConsole")||o.getAttribute("silentconsole")||!1,e.silentConsole==="false"&&(e.silentConsole=!1),e.sampleRate=o.getAttribute("sampleRate")||o.getAttribute("samplerate"),e.silentBehavior=o.getAttribute("silentBehavior")||o.getAttribute("silentbehavior")||!1,e.silentBehavior==="false"&&(e.silentBehavior=!1),e.silentPerformance=o.getAttribute("silentPerformance")||o.getAttribute("silentperformance")||!1,e[T("0x21")]==="false"&&(e.silentPerformance=!1),e.silentDev=o.getAttribute("silentDev")||o.getAttribute("silentdev")||!1,e.silentDev==="false"&&(e.silentDev=!1),e.apikey=o.getAttribute("apikey"),e.appversion=o.getAttribute("appversion"),e.releasestage=o.getAttribute(T("0x22")),e.notifierUrl=o.getAttribute("notifierUrl")||"https://web.fundebug.net/event/",o.getAttribute("breadcrumbSize")&&(e.breadcrumbSize=parseInt(o.getAttribute("breadcrumbSize"))),e.silentPromise=o.getAttribute("silentPromise")||o.getAttribute("silentPromise")||!1,e.silentPromise==="false"&&(e.silentPromise=!1),e.monitorHttpResponse=o.getAttribute("monitorHttpResponse")||!1,e.monitorHttpResponse==="false"&&(e.monitorHttpResponse=!1),e[T("0x23")]=[],e}},function(f,h){var o=20,e=[],r=0;function c(a,p,_){p||(e[r]=a,_&&_<100&&(o=_),++r===o&&(r=0))}h.getBreadcrumbs=function(){return e},h.addBreadcrumb=c,h.leaveBreadcrumb=function(a){c({type:"userDefined",detail:{userdefined:a},time:new Date().getTime()},!1,o)}},function(f,h){f.exports=function(o,e){o.leaveBreadcrumb=function(r){e.leaveBreadcrumb(r)}}}])})},59197:function(Z){var G=["previousElementSibling","input","getInput","defineProperty","call","target","fun_recording_start","isRecording","getVedio","left","innerHeight","emit","scrollTop","parentNode","pushNewFrame","slice","value","key","Super expression must either be null or a function"," listeners added. Use emitter.setMaxListeners() to increase limit","removeListener","listener","addListener","once","_events","removeAllListeners","eventNames","symbol","writable","scrollY","scene","rootOpts","setFrames","frames","timestamp","width","Cannot call a class as a function","vedio","status","charCodeAt","_decompress","pow","val","amd","__esModule","DOMContentLoaded","fromList","init","addInputListenterToNodeList","default","radio","timeSpanCount","length","calculateSequenceLen","redoIntervalId","nodes","values","node","characterData","attributeOldValues","removedNodes","oldValue","getIsReachable","treeChanges","STAYED_IN","set","keys","added","getOldParentNode","prototype","toLowerCase","reachabilityChange","getOldCharacterData","delete","maybeMoved","has","tagName","Invalid or unsupported selector syntax.","attrName","match","function","createQueryValidator","reconnect","attributeList","queries","element","elementFilter","checkpointQueryValidators","connected","map","removed","selfSelector","isSmallContent","concat","-->","enumerable","actionType","nextElementSibling","funId","push","index","selector","type","name","changedAttributeList"];(function(M,P){(function(S){for(;--S;)M.push(M.shift())})(++P)})(G,358);var I=function(M,P){return G[M-=0]};(function(M,P){Z.exports=P()})(window,function(){return function(M){var P={};function S(T){if(P[T])return P[T].exports;var f=P[T]={i:T,l:!1,exports:{}};return M[T].call(f.exports,f,f.exports,S),f.l=!0,f.exports}return S.m=M,S.c=P,S.d=function(T,f,h){S.o(T,f)||Object.defineProperty(T,f,{enumerable:!0,get:h})},S.r=function(T){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(T,"__esModule",{value:!0})},S.t=function(T,f){if(1&f&&(T=S(T)),8&f||4&f&&typeof T=="object"&&T&&T.__esModule)return T;var h=Object.create(null);if(S.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:T}),2&f&&typeof T!="string")for(var o in T)S.d(h,o,function(e){return T[e]}.bind(null,o));return h},S.n=function(T){var f=T&&T[I("0x1")]?function(){return T.default}:function(){return T};return S.d(f,"a",f),f},S.o=function(T,f){return Object.prototype.hasOwnProperty.call(T,f)},S.p="",S(S.s=0)}([function(M,P,S){"use strict";S.r(P);var T=S(1),f=S(3);function h(){var o=new f.default;o.init(),fundebug&&(fundebug.revideo=o)}document.documentMode,document.documentMode==null&&fundebug&&!fundebug.silentVideo&&document.addEventListener&&(T.initConfig(),/comp|inter|loaded/.test(document.readyState)?h():document.addEventListener(I("0x2"),h))},function(M,P,S){"use strict";S.r(P),S.d(P,"initConfig",function(){return f});var T=S(2),f=function(){var h=T.getCurrentScript(),o=h.getAttribute("domain");fundebug.domain=o||document.location.origin,fundebug.maxRevideoSizeInByte=fundebug.maxRevideoSizeInByte||h.getAttribute("maxRevideoSizeInByte"),fundebug.maxRevideoSizeInByte||(fundebug.maxRevideoSizeInByte=150)}},function(M,P,S){"use strict";S.r(P),S.d(P,"isEmptyObject",function(){return T}),S.d(P,I("0x3"),function(){return f}),S.d(P,"uniqueID",function(){return h}),S.d(P,"extractNodeName",function(){return o}),S.d(P,"isSafari",function(){return e}),S.d(P,"isSafariOrWKWebview",function(){return r}),S.d(P,"getCurrentScript",function(){return c}),S.d(P,"knuthMorrisPratt",function(){return a});var T=function(p){var _;for(_ in p)if(p.hasOwnProperty(_))return!1;return!0},f=function(p){for(var _=new Array(p.length),i=0,u=p.length;i<u;i++)_[i]=p[i];return _},h=function(){function p(){return Math.random().toString(16).slice(-4)}return p()+p()+"-"+p()+"-"+p()+"-"+p()+"-"+p()+p()+p()},o=function(p){return p&&p.nodeName?p.nodeName.toLowerCase():null},e=function(){return!!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/)},r=function(){return e()||(p=!1,navigator.platform.substr(0,2)==="iP"&&window.webkit&&window.webkit.messageHandlers&&(p=!0),p);var p},c=function(){var p=document.currentScript;if(!p){var _=document.scripts;p=_[_.length-1]}return p},a=function(p,_){if(_.length===0)return 0;for(var i=0,u=0,s=function(l){for(var y=[0],v=0,b=1;b<l.length;)l[v]===l[b]?(y[b]=v+1,b+=1,v+=1):v===0?(y[b]=0,b+=1):v=y[v-1];return y}(_);i<p.length;)if(p[i]===_[u]){if(u===_.length-1)return i-_.length+1;u+=1,i+=1}else 0<u?u=s[u-1]:(u=0,i+=1);return-1}},function(M,P,S){"use strict";S.r(P);var T=S(4),f=S.n(T),h=S(5),o=S(13),e=S(7),r=S(14),c=S(15),a=S(21),p=S(2),_=S(6),i=S(22),u=S(23),s=S.n(u);function l(v,b){for(var E=0;E<b.length;E++){var O=b[E];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(v,O.key,O)}}var y=function(){function v(){(function(O,d){if(!(O instanceof v))throw new TypeError("Cannot call a class as a function")})(this),this.revideoVersion="0.8.0",this.url="http://localhost:3000/summary",this.MAX_SEQUENCE_FULL_SIZE_BY_LENGTH=1024e4,this.MAX_SINGLE_FRAGMENT_LENGTH=1e3,this.MAX_TOTAL_FRAGMENT_LENGTH=1e4,this.MAX_TOTAL_LENGTH=1e4,this.MAX_TIME_SPAN_PER_FRAGMENT=20,this.timeSpanCount=0,this.lengthOverflowCheckTimeSpan=5e3,this.recorder=null,this.redoIntervalId=null,this.observer=null,this.vedio=null,this.inputInterValIds=[],this.sequence=[],this.actions=[],this.isStop=!1}var b,E;return b=v,E=[{key:"send",value:function(){var O=this.fetchSequence(),d=JSON.stringify(O);i.sendToServer(this.url,d)}},{key:"fetchSequence",value:function(){this.pushFragmentToSequence(0);var O=this.calculateSequenceSize();O>this.MAX_SEQUENCE_FULL_SIZE_BY_LENGTH&&(1<this.calculateSequenceLen()?(this.shiftFragment(),O=this.calculateSequenceSize()):this.sequence=[]),O>this.MAX_SEQUENCE_FULL_SIZE_BY_LENGTH&&(this.sequence=[]);var d=[];try{d=JSON.stringify(this.sequence)}catch(x){this.sequence}var m="";try{m=p.isSafariOrWKWebview()?s.a.compressToBase64(d):s.a.compress(d)}catch(x){}return{domain:fundebug.domain,isSafariOrWKWebview:p.isSafariOrWKWebview(),sequence:m,revideoVersion:this.revideoVersion}}},{key:"getSequence",value:function(){return this.sequence}},{key:"calculateSequenceSize",value:function(){return this.sequence.reduce(function(O,d){var m=d.actions.reduce(function(x,w){var C=0;return w.actionData.outerHTML?C=w.actionData.outerHTML.length:w.actionData.redoableElement&&w.actionData.redoableElement.outerHTML&&(C=w.actionData.redoableElement.outerHTML.len),x+C},0);return d.vedio.scene?O+d.vedio.scene.length+m:O+m},0)}},{key:I("0x4"),value:function(){this.initRecorder(),this.initAction(),this.monitorRedo()}},{key:"stop",value:function(){var O=this;this.isStop=!0,this.recorder&&this.recorder.stop(),this.observer&&this.observer.disconnect(),setTimeout(function(){O.inputInterValIds.map(function(d){clearInterval(d)}),O.inputInterValIds=[]},0)}},{key:"initRecorder",value:function(){if(this.vedio=null,this.recorder)this.recorder.restart();else{this.recorder=new c.default({target:document.documentElement});var O=this;this.recorder.on("fun_recording",function(){O.vedio=O.recorder.getVedio()}),this.recorder.start()}}},{key:"initAction",value:function(){this.actions=[],this.initMutationObserver(),this.initInput()}},{key:"initMutationObserver",value:function(){this.observer&&this.observer.disconnect();var O=this;try{this.observer=new f.a({callback:function(d){O[I("0x5")](d);var m=h.parseMutations(d);O.actions=O.actions.concat(m)},queries:[{all:!0}],oldPreviousSibling:!0})}catch(d){return this.stop(),null}}},{key:"initInput",value:function(){this.injectAllInputIn(document)}},{key:"injectAllInputIn",value:function(O){var d=this;["input","textarea","select"].map(function(m){function x(X,B,Y,W){var it=W.actions.length;if(0<it){var ft=W.actions[it-1];if(ft.getActionType()===4&&ft.getActionData().getInput().getValue()===Y)return}var z=new o[I("0x6")](B,X.type,Y),F=new _.default,J=new _.default,nt=new r.default(X,z,F,J),rt=new e.default(4,nt);W.actions.push(rt)}if(O&&O.querySelectorAll){var w,C,k,N,L=O.querySelectorAll(m),U=p.fromList(L);U.length!==0&&(w=m,C=U,k={},N=setInterval(function(){(C=C.filter(function(X){return X.funRemoved&&delete k[X.funId],!X.funRemoved})).length===0&&(clearInterval(N),d.inputInterValIds.splice(d.inputInterValIds.indexOf(N),1)),C.map(function(X){var B;B=X&&X.type==="password"?X.value?"XXXXXXXX":X.value:I("0x7")===X.type||X.type==="checkbox"?X.checked:X.value;var Y=X.funId;if(Y){if(k[Y]===B)return;k[X.funId]=B,x(X,w,B,d)}else X.funId=p.uniqueID(),k[X.funId]=B,x(X,w,B,d)})},100),d.inputInterValIds.push(N))}})}},{key:"addInputListenterToNodeList",value:function(O){var d=this;O.map(function(m){var x=h.extractCleanNodes(m.added);(m.added=x).map(function(w){d.injectAllInputIn(w)})})}},{key:"monitorRedo",value:function(){if(this.redoIntervalId&&window.clearInterval(this.redoIntervalId),!this.isStop){var O=this;this.redoIntervalId=setInterval(function(){if(O.timeSpanCount++,2<=O[I("0x8")])return O.timeSpanCount=0,100<O.calculateSequenceLen()&&this.shiftFragment(),void O.pushFragmentToSequence(0);(O.vedio&&O.vedio.getFramesLength())+O.actions.length>O.MAX_SINGLE_FRAGMENT_LENGTH&&O.pushFragmentToSequence(0)},this.lengthOverflowCheckTimeSpan)}}},{key:"shiftFragment",value:function(){this.sequence.shift()}},{key:"pushFragmentToSequence",value:function(O){this.vedio=this.recorder.getVedio();var d=new a.default(O,this.vedio,this.actions);this.sequence.push(d),this.mergeSequence(),this.init()}},{key:"mergeSequence",value:function(){for(var O=[],d=this.sequence[0],m=1;m<this.sequence.length;m++){var x=this.sequence[m];if(d.type===0&&d.type===x.type){var w=d.vedio.frames;d.vedio.frames=w.concat(x.vedio.frames),d.actions=d.actions.concat(x.actions)}else O.push(d),d=x}O.push(d),this.sequence=O}},{key:"calculateTotalLength",value:function(){return this.sequence.reduce(function(O,d){return O+d.getVedioFrameLength()+d.getActionsLength()},0)}},{key:"calculateSequenceLen",value:function(){return this.sequence[I("0x9")]}},{key:"calculateTotalLastTime",value:function(){var O=this[I("0xa")]();if(O===0)return 0;var d=this.sequence[0].getVedioTimestamp(),m=this.sequence[O-1];return((m.getLastActionTimestamp()||m.getVedioTimestamp())-d)/1e3}},{key:"clear",value:function(){window.clearInterval(this.redoIntervalId),this.sequence=[],this.vedio=null,this.actions=[],this.recorder=null,this[I("0xb")]=null}}],l(b.prototype,E),v}();P.default=y},function(M,P){var S,T=this.__extends||function(O,d){for(var m in d)d.hasOwnProperty(m)&&(O[m]=d[m]);function x(){this.constructor=O}x.prototype=d.prototype,O.prototype=new x};if(typeof WebKitMutationObserver!="undefined"?S=WebKitMutationObserver:document.all||(S=MutationObserver),S===void 0)throw Error("MutationObserver is undefined");var f,h,o=function(){function O(){this.nodes=[],this.values=[]}return O.prototype.isIndex=function(d){return+d==d>>>0},O.prototype.nodeId=function(d){var m=d[O.ID_PROP];return m||(m=d[O.ID_PROP]=O.nextId_++),m},O.prototype.set=function(d,m){var x=this.nodeId(d);this.nodes[x]=d,this.values[x]=m},O.prototype.get=function(d){var m=this.nodeId(d);return this.values[m]},O.prototype.has=function(d){return this.nodeId(d)in this[I("0xc")]},O.prototype.delete=function(d){var m=this.nodeId(d);delete this.nodes[m],this[I("0xd")][m]=void 0},O.prototype.keys=function(){var d=[];for(var m in this[I("0xc")])this.isIndex(m)&&d.push(this.nodes[m]);return d},O.ID_PROP="__mutation_summary_node_map_id__",O.nextId_=1,O}();(h=f||(f={}))[h.STAYED_OUT=0]="STAYED_OUT",h[h.ENTERED=1]="ENTERED",h[h.STAYED_IN=2]="STAYED_IN",h[h.REPARENTED=3]="REPARENTED",h[h.REORDERED=4]="REORDERED",h[h.EXITED=5]="EXITED";var e=function(){function O(d,m,x,w,C,k,N,L){m===void 0&&(m=!1),x===void 0&&(x=!1),w===void 0&&(w=!1),C===void 0&&(C=null),k===void 0&&(k=!1),N===void 0&&(N=null),L===void 0&&(L=null),this[I("0xe")]=d,this.childList=m,this.attributes=x,this[I("0xf")]=w,this.oldParentNode=C,this.added=k,this.attributeOldValues=N,this.characterDataOldValue=L,this.isCaseInsensitive=this.node.nodeType===Node.ELEMENT_NODE&&this.node instanceof HTMLElement&&this.node.ownerDocument instanceof HTMLDocument}return O.prototype.getAttributeOldValue=function(d){if(this.attributeOldValues)return this.isCaseInsensitive&&(d=d.toLowerCase()),this.attributeOldValues[d]},O.prototype.getAttributeNamesMutated=function(){var d=[];if(!this.attributeOldValues)return d;for(var m in this.attributeOldValues)d.push(m);return d},O.prototype.attributeMutated=function(d,m){this.attributes=!0,this.attributeOldValues=this[I("0x10")]||{},d in this.attributeOldValues||(this.attributeOldValues[d]=m)},O.prototype.characterDataMutated=function(d){this.characterData||(this.characterData=!0,this.characterDataOldValue=d)},O.prototype.removedFromParent=function(d){this.childList=!0,this.added||this.oldParentNode?this.added=!1:this.oldParentNode=d},O.prototype.insertedIntoParent=function(){this.childList=!0,this.added=!0},O.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode)return this.oldParentNode;if(this.added)return null}return this.node.parentNode},O}(),r=function(){this.added=new o,this.removed=new o,this.maybeMoved=new o,this.oldPrevious=new o,this.moved=void 0},c=function(O){function d(m,x){O.call(this),this.rootNode=m,this.reachableCache=void 0,this.wasReachableCache=void 0,this.anyParentsChanged=!1,this.anyAttributesChanged=!1,this.anyCharacterDataChanged=!1;for(var w=0;w<x.length;w++){var C=x[w];switch(C.type){case"childList":this.anyParentsChanged=!0;for(var k=0;k<C[I("0x11")].length;k++){var N=C.removedNodes[k];this.getChange(N).removedFromParent(C.target)}for(k=0;k<C.addedNodes.length;k++)N=C.addedNodes[k],this.getChange(N).insertedIntoParent();break;case"attributes":this.anyAttributesChanged=!0,this.getChange(C.target).attributeMutated(C.attributeName,C[I("0x12")]);break;case"characterData":this.anyCharacterDataChanged=!0,this.getChange(C.target).characterDataMutated(C.oldValue)}}}return T(d,O),d.prototype.getChange=function(m){var x=this.get(m);return x||(x=new e(m),this.set(m,x)),x},d.prototype.getOldParent=function(m){var x=this.get(m);return x?x.getOldParent():m.parentNode},d.prototype[I("0x13")]=function(m){if(m===this.rootNode)return!0;if(!m)return!1;this.reachableCache=this.reachableCache||new o;var x=this.reachableCache.get(m);return x===void 0&&(x=this.getIsReachable(m.parentNode),this.reachableCache.set(m,x)),x},d.prototype.getWasReachable=function(m,x){if(200<=++x)return!1;if(m===this.rootNode)return!0;if(!m)return!1;this.wasReachableCache=this.wasReachableCache||new o;var w=this.wasReachableCache.get(m);return w===void 0&&(w=this.getWasReachable(this.getOldParent(m),x),this.wasReachableCache.set(m,w)),w},d.prototype.reachabilityChange=function(m){return this.getIsReachable(m)?this.getWasReachable(m,0)?f.STAYED_IN:f.ENTERED:this.getWasReachable(m,0)?f.EXITED:f.STAYED_OUT},d}(o),a=function(){function O(d,m,x,w,C){this.rootNode=d,this.mutations=m,this.selectors=x,this.calcReordered=w,this.calcOldPreviousSibling=C,this.treeChanges=new c(d,m),this.entered=[],this.exited=[],this.stayedIn=new o,this.visited=new o,this.childListChangeMap=void 0,this.characterDataOnly=void 0,this.matchCache=void 0,this.processMutations()}return O.prototype.processMutations=function(){if(this.treeChanges.anyParentsChanged||this.treeChanges.anyAttributesChanged)for(var d=this[I("0x14")].keys(),m=0;m<d.length;m++)this.visitNode(d[m],void 0)},O.prototype.visitNode=function(d,m){if(!this.visited.has(d)){this.visited.set(d,!0);var x=this.treeChanges.get(d),w=m;if((x&&x.childList||w==null)&&(w=this.treeChanges.reachabilityChange(d)),w!==f.STAYED_OUT){if(this.matchabilityChange(d),w===f.ENTERED)this.entered.push(d);else if(w===f.EXITED)this.exited.push(d),this.ensureHasOldPreviousSiblingIfNeeded(d);else if(w===f[I("0x15")]){var C=f.STAYED_IN;x&&x.childList&&(x.oldParentNode!==d.parentNode?(C=f.REPARENTED,this.ensureHasOldPreviousSiblingIfNeeded(d)):this.calcReordered&&this.wasReordered(d)&&(C=f.REORDERED)),this.stayedIn[I("0x16")](d,C)}if(w!==f.STAYED_IN)for(var k=d.firstChild;k;k=k.nextSibling)this.visitNode(k,w)}}},O.prototype.ensureHasOldPreviousSiblingIfNeeded=function(d){if(this.calcOldPreviousSibling){this.processChildlistChanges();var m=d.parentNode,x=this.treeChanges.get(d);x&&x.oldParentNode&&(m=x.oldParentNode);var w=this.childListChangeMap.get(m);w||(w=new r,this.childListChangeMap.set(m,w)),w.oldPrevious.has(d)||w.oldPrevious.set(d,d.previousSibling)}},O.prototype.getChanged=function(d,m,x){this.selectors=m,this.characterDataOnly=x;for(var w=0;w<this.entered.length;w++){var C=this.entered[w];(L=this.matchabilityChange(C))!==f.ENTERED&&L!==f.STAYED_IN||d.added.push(C)}var k=this.stayedIn[I("0x17")]();for(w=0;w<k.length;w++)if(C=k[w],(L=this.matchabilityChange(C))===f.ENTERED)d[I("0x18")].push(C);else if(L===f.EXITED)d.removed.push(C);else if(L===f.STAYED_IN&&(d.reparented||d.reordered)){var N=this.stayedIn.get(C);d.reparented&&N===f.REPARENTED?d.reparented.push(C):d.reordered&&N===f.REORDERED&&d.reordered.push(C)}for(w=0;w<this.exited.length;w++){var L;C=this.exited[w],(L=this.matchabilityChange(C))!==f.EXITED&&L!==f.STAYED_IN||d.removed.push(C)}},O.prototype[I("0x19")]=function(d){var m=this.treeChanges.get(d);if(m&&m.childList)return m.oldParentNode?m.oldParentNode:null;var x=this.treeChanges.reachabilityChange(d);if(x===f.STAYED_OUT||x===f.ENTERED)throw Error("getOldParentNode requested on invalid node.");return d.parentNode},O.prototype.getOldPreviousSibling=function(d){var m=d.parentNode,x=this.treeChanges.get(d);x&&x.oldParentNode&&(m=x.oldParentNode);var w=this.childListChangeMap.get(m);if(!w)throw Error("getOldPreviousSibling requested on invalid node.");return w.oldPrevious.get(d)},O[I("0x1a")].getOldAttribute=function(d,m){var x=this.treeChanges.get(d);if(!x||!x.attributes)throw Error("getOldAttribute requested on invalid node.");var w=x.getAttributeOldValue(m);if(w===void 0)throw Error("getOldAttribute requested for unchanged attribute name.");return w},O[I("0x1a")].attributeChangedNodes=function(d){if(!this.treeChanges.anyAttributesChanged)return{};var m,x;if(d){m={},x={};for(var w=0;w<d.length;w++)m[Y=d[w]]=!0,x[Y[I("0x1b")]()]=Y}var C={},k=this.treeChanges.keys();for(w=0;w<k.length;w++){var N=k[w],L=this.treeChanges.get(N);if(L.attributes&&f.STAYED_IN===this.treeChanges[I("0x1c")](N)&&f[I("0x15")]===this.matchabilityChange(N))for(var U=N,X=L.getAttributeNamesMutated(),B=0;B<X.length;B++){var Y=X[B];(!m||m[Y]||L.isCaseInsensitive&&x[Y])&&L.getAttributeOldValue(Y)!==U.getAttribute(Y)&&(x&&L.isCaseInsensitive&&(Y=x[Y]),C[Y]=C[Y]||[],C[Y].push(U))}}return C},O.prototype[I("0x1d")]=function(d){var m=this[I("0x14")].get(d);if(!m||!m.characterData)throw Error("getOldCharacterData requested on invalid node.");return m.characterDataOldValue},O.prototype.getCharacterDataChanged=function(){if(!this.treeChanges.anyCharacterDataChanged)return[];for(var d=this.treeChanges.keys(),m=[],x=0;x<d.length;x++){var w=d[x];if(f.STAYED_IN===this.treeChanges.reachabilityChange(w)){var C=this.treeChanges.get(w);C.characterData&&w.textContent!=C.characterDataOldValue&&m.push(w)}}return m},O.prototype.computeMatchabilityChange=function(d,m){this.matchCache||(this.matchCache=[]),this.matchCache[d.uid]||(this.matchCache[d.uid]=new o);var x=this.matchCache[d.uid],w=x.get(m);return w===void 0&&(w=d.matchabilityChange(m,this.treeChanges.get(m)),x.set(m,w)),w},O.prototype.matchabilityChange=function(d){var m=this;if(this.characterDataOnly)switch(d.nodeType){case Node.COMMENT_NODE:case Node.TEXT_NODE:return f.STAYED_IN;default:return f.STAYED_OUT}if(!this.selectors)return f.STAYED_IN;if(d.nodeType!==Node.ELEMENT_NODE)return f.STAYED_OUT;for(var x=d,w=this.selectors.map(function(N){return m.computeMatchabilityChange(N,x)}),C=f.STAYED_OUT,k=0;C!==f.STAYED_IN&&k<w.length;){switch(w[k]){case f.STAYED_IN:C=f.STAYED_IN;break;case f.ENTERED:C=C===f.EXITED?f.STAYED_IN:f.ENTERED;break;case f.EXITED:C=C===f.ENTERED?f.STAYED_IN:f.EXITED}k++}return C},O.prototype.getChildlistChange=function(d){var m=this.childListChangeMap.get(d);return m||(m=new r,this.childListChangeMap.set(d,m)),m},O.prototype.processChildlistChanges=function(){if(!this.childListChangeMap){this.childListChangeMap=new o;for(var d=0;d<this.mutations.length;d++){let L=function(U,X){!U||x.oldPrevious.has(U)||x.added.has(U)||x[I("0x1f")].has(U)||X&&(x[I("0x18")].has(X)||x.maybeMoved.has(X))||x.oldPrevious.set(U,X)};var N=L,m=this.mutations[d];if(m.type=="childList"&&(this.treeChanges.reachabilityChange(m.target)===f.STAYED_IN||this.calcOldPreviousSibling)){for(var x=this.getChildlistChange(m.target),w=m.previousSibling,C=0;C<m.removedNodes.length;C++)L(k=m.removedNodes[C],w),x.added.has(k)?x.added.delete(k):(x.removed.set(k,!0),x.maybeMoved[I("0x1e")](k)),w=k;for(L(m.nextSibling,w),C=0;C<m.addedNodes.length;C++){var k=m.addedNodes[C];x.removed.has(k)?(x.removed.delete(k),x[I("0x1f")].set(k,!0)):x.added.set(k,!0)}}}}},O.prototype.wasReordered=function(d){if(!this.treeChanges.anyParentsChanged)return!1;this.processChildlistChanges();var m=d.parentNode,x=this.treeChanges.get(d);x&&x.oldParentNode&&(m=x.oldParentNode);var w=this.childListChangeMap.get(m);if(!w)return!1;if(w.moved)return w.moved.get(d);w.moved=new o;var C=new o,k=new o,N=new o;return w.maybeMoved.keys().forEach(function L(U){if(!U||!w.maybeMoved.has(U))return!1;var X=w.moved.get(U);return X!==void 0||(C.has(U)?X=!0:(C.set(U,!0),X=function(B){if(N.has(B))return N.get(B);for(var Y=B.previousSibling;Y&&(w.added[I("0x20")](Y)||L(Y));)Y=Y.previousSibling;return N[I("0x16")](B,Y),Y}(U)!==function B(Y){var W=k.get(Y);if(W!==void 0)return W;for(W=w.oldPrevious.get(Y);W&&(w.removed.has(W)||L(W));)W=B(W);return W===void 0&&(W=Y.previousSibling),k.set(Y,W),W}(U)),C.has(U)?(C.delete(U),w.moved.set(U,X)):X=w.moved.get(U)),X}),w.moved.get(d)},O}(),p=function(){function O(d,m){var x=this;if(this.projection=d,this.added=[],this.removed=[],this.reparented=m.all||m.element||m.characterData?[]:void 0,this.reordered=m.all?[]:void 0,d.getChanged(this,m.elementFilter,m.characterData),m.all||m.attribute||m.attributeList){var w=m.attribute?[m.attribute]:m.attributeList,C=d.attributeChangedNodes(w);m.attribute?this.valueChanged=C[m.attribute]||[]:(this.attributeChanged=C,m.attributeList&&m.attributeList.forEach(function(N){x.attributeChanged.hasOwnProperty(N)||(x.attributeChanged[N]=[])}))}if(m.all||m.characterData){var k=d.getCharacterDataChanged();m.characterData?this.valueChanged=k:this.characterDataChanged=k}this.reordered&&(this.getOldPreviousSibling=d.getOldPreviousSibling.bind(d))}return O.prototype.getOldParentNode=function(d){return this.projection.getOldParentNode(d)},O[I("0x1a")].getOldAttribute=function(d,m){return this.projection.getOldAttribute(d,m)},O.prototype.getOldCharacterData=function(d){return this.projection.getOldCharacterData(d)},O.prototype.getOldPreviousSibling=function(d){return this.projection.getOldPreviousSibling(d)},O}(),_=/[a-zA-Z_]+/,i=/[a-zA-Z0-9_\-]+/;function u(O){return'"'+O.replace(/"/,'\\"')+'"'}var s=function(){function O(){}return O.prototype.matches=function(d){if(d===null)return!1;if(this.attrValue===void 0)return!0;if(!this.contains)return this.attrValue==d;for(var m=d.split(" "),x=0;x<m.length;x++)if(this.attrValue===m[x])return!0;return!1},O.prototype.toString=function(){return this.attrName==="class"&&this.contains?"."+this.attrValue:this.attrName!=="id"||this.contains?this.contains?"["+this.attrName+"~="+u(this.attrValue)+"]":"attrValue"in this?"["+this.attrName+"="+u(this.attrValue)+"]":"["+this.attrName+"]":"#"+this.attrValue},O}(),l=function(){function O(){this.uid=O.nextUid++,this.qualifiers=[]}var d;return Object.defineProperty(O.prototype,"caseInsensitiveTagName",{get:function(){return this[I("0x21")].toUpperCase()},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"selectorString",{get:function(){return this.tagName+this.qualifiers.join("")},enumerable:!0,configurable:!0}),O.prototype.isMatching=function(m){return m[O.matchesSelector](this.selectorString)},O.prototype.wasMatching=function(m,x,w){if(!x||!x.attributes)return w;var C=x.isCaseInsensitive?this.caseInsensitiveTagName:this.tagName;if(C!=="*"&&C!==m.tagName)return!1;for(var k=[],N=!1,L=0;L<this.qualifiers.length;L++){var U=this.qualifiers[L],X=x.getAttributeOldValue(U.attrName);k.push(X),N=N||X!==void 0}if(!N)return w;for(L=0;L<this.qualifiers.length;L++)if(U=this.qualifiers[L],(X=k[L])===void 0&&(X=m.getAttribute(U.attrName)),!U.matches(X))return!1;return!0},O.prototype.matchabilityChange=function(m,x){var w=this.isMatching(m);return w?this.wasMatching(m,x,w)?f.STAYED_IN:f.ENTERED:this.wasMatching(m,x,w)?f.EXITED:f.STAYED_OUT},O.parseSelectors=function(m){var x,w,C=[];function k(){x&&(w&&(x.qualifiers.push(w),w=void 0),C.push(x)),x=new O}function N(){w&&x.qualifiers.push(w),w=new s}for(var L,U=/\s/,X=I("0x22"),B=1,Y=0;Y<m.length;){var W=m[Y++];switch(B){case 1:if(W.match(_)){k(),x.tagName=W,B=2;break}if(W=="*"){k(),x.tagName="*",B=3;break}if(W=="."){k(),N(),x.tagName="*",w[I("0x23")]="class",w.contains=!0,B=4;break}if(W=="#"){k(),N(),x.tagName="*",w.attrName="id",B=4;break}if(W=="["){k(),N(),x.tagName="*",w.attrName="",B=6;break}if(W.match(U))break;throw Error(X);case 2:if(W[I("0x24")](i)){x.tagName+=W;break}if(W=="."){N(),w.attrName="class",w.contains=!0,B=4;break}if(W=="#"){N(),w.attrName="id",B=4;break}if(W=="["){N(),w.attrName="",B=6;break}if(W.match(U)){B=14;break}if(W==","){B=1;break}throw Error(X);case 3:if(W=="."){N(),w.attrName="class",w.contains=!0,B=4;break}if(W=="#"){N(),w.attrName="id",B=4;break}if(W=="["){N(),w.attrName="",B=6;break}if(W[I("0x24")](U)){B=14;break}if(W==","){B=1;break}throw Error(X);case 4:if(W.match(_)){w.attrValue=W,B=5;break}throw Error(X);case 5:if(W.match(i)){w.attrValue+=W;break}if(W=="."){N(),w.attrName="class",w.contains=!0,B=4;break}if(W=="#"){N(),w.attrName="id",B=4;break}if(W=="["){N(),B=6;break}if(W.match(U)){B=14;break}if(W==","){B=1;break}throw Error(X);case 6:if(W.match(_)){w.attrName=W,B=7;break}if(W.match(U))break;throw Error(X);case 7:if(W.match(i)){w.attrName+=W;break}if(W.match(U)){B=8;break}if(W=="~"){w.contains=!0,B=9;break}if(W=="="){w.attrValue="",B=11;break}if(W=="]"){B=3;break}throw Error(X);case 8:if(W=="~"){w.contains=!0,B=9;break}if(W=="="){w.attrValue="",B=11;break}if(W=="]"){B=3;break}if(W.match(U))break;throw Error(X);case 9:if(W=="="){w.attrValue="",B=11;break}throw Error(X);case 10:if(W=="]"){B=3;break}if(W.match(U))break;throw Error(X);case 11:if(W.match(U))break;if(W=='"'||W=="'"){L=W,B=13;break}w.attrValue+=W,B=12;break;case 12:if(W.match(U)){B=10;break}if(W=="]"){B=3;break}if(W=="'"||W=='"')throw Error(X);w.attrValue+=W;break;case 13:if(W==L){B=10;break}w.attrValue+=W;break;case 14:if(W.match(U))break;if(W==","){B=1;break}throw Error(X)}}switch(B){case 1:case 2:case 3:case 5:case 14:k();break;default:throw Error(X)}if(!C.length)throw Error(X);return C},O.nextUid=1,O.matchesSelector=I("0x25")==typeof(d=document.createElement("div")).webkitMatchesSelector?"webkitMatchesSelector":typeof d.mozMatchesSelector=="function"?"mozMatchesSelector":typeof d.msMatchesSelector=="function"?"msMatchesSelector":"matchesSelector",O}(),y=/^([a-zA-Z:_]+[a-zA-Z0-9_\-:\.]*)$/;function v(O){if(typeof O!="string"||!(O=O.trim()))throw Error("Invalid request opion. attribute must be a non-zero length string.");if(!O.match(y))throw Error("Invalid request option. invalid attribute name: "+O);return O}function b(O){if(!O.trim().length)throw Error("Invalid request option: elementAttributes must contain at least one attribute.");for(var d={},m={},x=O.split(/\s+/),w=0;w<x.length;w++)if(C=x[w]){var C,k=(C=v(C))[I("0x1b")]();if(d[k])throw Error("Invalid request option: observing multiple case variations of the same attribute is not supported.");m[C]=!0,d[k]=!0}return Object.keys(m)}var E=function(){function O(d){if(S===void 0)throw new Error("No Engine");var m=this;this.connected=!1,this.options=O.validateOptions(d),this.observerOptions=O.createObserverOptions(this.options.queries),this.root=this.options.rootNode,this.callback=this.options.callback,this.elementFilter=Array.prototype.concat.apply([],this.options.queries.map(function(x){return x.elementFilter?x.elementFilter:[]})),this.elementFilter.length||(this.elementFilter=void 0),this.calcReordered=this.options.queries.some(function(x){return x.all}),this.queryValidators=[],O.createQueryValidator&&(this.queryValidators=this.options.queries.map(function(x){return O[I("0x26")](m.root,x)})),this.observer=new S(function(x){m.observerCallback(x)}),this[I("0x27")]()}return O.createObserverOptions=function(d){var m,x={childList:!0,subtree:!0};function w(C){x.attributes&&!m||(x.attributes=!0,x.attributeOldValue=!0,C?(m=m||{},C.forEach(function(k){m[k]=!0,m[k.toLowerCase()]=!0})):m=void 0)}return d.forEach(function(C){if(C.characterData)return x.characterData=!0,void(x.characterDataOldValue=!0);if(C.all)return w(),x.characterData=!0,void(x.characterDataOldValue=!0);if(C.attribute)w([C.attribute.trim()]);else{var k,N,L=(k=C.elementFilter,N={},k.forEach(function(U){U.qualifiers.forEach(function(X){N[X.attrName]=!0})}),Object.keys(N)).concat(C[I("0x28")]||[]);L.length&&w(L)}}),m&&(x.attributeFilter=Object.keys(m)),x},O.validateOptions=function(d){for(var m in d)if(!(m in O.optionKeys))throw Error("Invalid option: "+m);if(I("0x25")!=typeof d.callback)throw Error("Invalid options: callback is required and must be a function");if(!d.queries||!d.queries.length)throw Error("Invalid options: queries must contain at least one query request object.");for(var x={callback:d.callback,rootNode:d.rootNode||document,observeOwnChanges:!!d.observeOwnChanges,oldPreviousSibling:!!d.oldPreviousSibling,queries:[]},w=0;w<d[I("0x29")].length;w++){var C=d.queries[w];if(C.all){if(1<Object.keys(C).length)throw Error("Invalid request option. all has no options.");x.queries.push({all:!0})}else if("attribute"in C){if((N={attribute:v(C.attribute)}).elementFilter=l.parseSelectors("*["+N.attribute+"]"),1<Object.keys(C)[I("0x9")])throw Error("Invalid request option. attribute has no options.");x.queries.push(N)}else if("element"in C){var k=Object.keys(C).length,N={element:C.element,elementFilter:l.parseSelectors(C[I("0x2a")])};if(C.hasOwnProperty("elementAttributes")&&(N.attributeList=b(C.elementAttributes),k--),1<k)throw Error("Invalid request option. element only allows elementAttributes option.");x.queries.push(N)}else{if(!C.characterData)throw Error("Invalid request option. Unknown query request.");if(1<Object.keys(C).length)throw Error("Invalid request option. characterData has no options.");x.queries.push({characterData:!0})}}return x},O.prototype.createSummaries=function(d){if(!d||!d[I("0x9")])return[];for(var m=new a(this.root,d,this[I("0x2b")],this.calcReordered,this.options.oldPreviousSibling),x=[],w=0;w<this.options.queries.length;w++)x.push(new p(m,this.options.queries[w]));return x},O.prototype.checkpointQueryValidators=function(){this.queryValidators.forEach(function(d){d&&d.recordPreviousState()})},O.prototype.runQueryValidators=function(d){this.queryValidators.forEach(function(m,x){m&&m.validate(d[x])})},O.prototype.changesToReport=function(d){return d.some(function(m){return!![I("0x18"),"removed","reordered","reparented","valueChanged","characterDataChanged"].some(function(x){return m[x]&&m[x].length})||!(!m.attributeChanged||!Object.keys(m.attributeChanged).some(function(x){return!!m.attributeChanged[x].length}))})},O.prototype.observerCallback=function(d){this.options.observeOwnChanges||this.observer.disconnect();var m=this.createSummaries(d);if(this.runQueryValidators(m),this.options.observeOwnChanges&&this.checkpointQueryValidators(),this.changesToReport(m)&&this.callback(m),!this.options.observeOwnChanges&&this.connected){this[I("0x2c")]();try{this.observer.observe(this.root,this.observerOptions)}catch(x){}}},O.prototype.reconnect=function(){if(this.connected)throw Error("Already connected");try{this.observer.observe(this.root,this.observerOptions),this.connected=!0,this.checkpointQueryValidators()}catch(d){}},O.prototype.takeSummaries=function(){if(!this[I("0x2d")])throw Error("Not connected");var d=this.createSummaries(this.observer.takeRecords());return this.changesToReport(d)?d:void 0},O.prototype.disconnect=function(){var d=this.takeSummaries();return this.observer.disconnect(),this.connected=!1,d},O.NodeMap=o,O.parseElementFilter=l.parseSelectors,O.optionKeys={callback:!0,queries:!0,rootNode:!0,oldPreviousSibling:!0,observeOwnChanges:!0},O}();M.exports=E},function(M,P,S){"use strict";S.r(P),S.d(P,"parseMutations",function(){return c}),S.d(P,"extractCleanNodes",function(){return a});var T=S(2),f=S(6),h=S(7),o=S(8),e=S(11),r=S(12),c=function(u){return u[I("0x2e")](function(s){var l,y=s[I("0x2f")];(l=y).map(function(w){w.funRemoved=!0});var v=p(s,1,y=l),b=p(s,0,s.added);b=function(w){var C=w.length;if(C<=1)return w;w.map(function(W){W.actionData.nodeType===3?W.funContent="No-SelfSelector":W.funContent=W.actionData.selfSelector?W.actionData[I("0x30")].parentSelector+" > "+W.actionData.selfSelector.localSelector:"No-SelfSelector"});for(var k=0;k<C;k++)if(!w[k].isSmallContent){var N=0;t:for(var L=k+1;L<C;L++)if(!w[L][I("0x31")]){var U=w[k].funContent,X=w[L].funContent;if(U==="No-SelfSelector"||X==="No-SelfSelector")break t;if(U&&U.indexOf(X)===0){w[k].isSmallContent=!0;break t}if(X&&X.indexOf(U)===0&&(w[L].isSmallContent=!0),300<++N)break t}}for(var B=[],Y=0;Y<C;Y++)w[Y].isSmallContent||B.push(w[Y]),delete w[Y].isSmallContent,delete w[Y].funContent;return B}(b);var E,O,d,m=function(w){var C=new f.default,k=new f.default;if(T.isEmptyObject(w))return[];var N=[],L=function(X){var B=w[X].map(function(Y){var W=new o.default(2,Y,C,k),it=function(z,F){for(var J=Y.attributes,nt="",rt=J[I("0x9")],ot=0;ot<rt;ot++){var yt=J[ot];if(yt.name===z){nt=yt.value;break}}return new e.default(z,nt)}(X),ft=new r.default(W,[it]);return new h.default(2,ft)});N=N.concat(B)};for(var U in w)L(U);return N}(s.attributeChanged),x=(E=s.characterDataChanged,O=new f.default,d=new f.default,E.map(function(w){var C=new o.default(3,w,O,d);return new h.default(3,C)}));return[].concat(v).concat(b).concat(m).concat(x)}).reduce(function(s,l){return s.concat(l)},[])};function a(u){return function(s){var l=s.length;if(l<=1)return s;s.map(function(w){w.funContent=i(w)});var y=0;s.map(function(w,C){if(C!==0){var k=s[y].funContent,N=s[C-1].funContent,L=w.funContent;N!==L&&k!==L?k&&k.indexOf(L)!=-1?w.isSmallContent=!0:(L&&L.indexOf(k)!=-1&&(s[y].isSmallContent=!0),y=C):y=C}}),l=(s=s.filter(function(w){return w.isSmallContent!=1})).length;for(var v=0;v<l;v++)if(!s[v].isSmallContent){var b=0;t:for(var E=v+1;E<l;E++)if(!s[E].isSmallContent){var O=s[v].funContent,d=s[E].funContent;if(O!==d){if(O&&O.indexOf(d)!=-1)s[E].isSmallContent=!0;else if(d&&d.indexOf(O)!=-1){s[v],s[E];break t}if(300<++b)break t}}}for(var m=[],x=0;x<l;x++)s[x].isSmallContent||m.push(s[x]),s[x].isSmallContent=!1;return m}(u)}function p(u,s,l){return l.length===0?[]:(s!=0&&(l=a(l)),s===1&&l.map(function(y){var v=u.getOldPreviousSibling(y);y.oldPreviousSibling=v;var b=u.getOldParentNode(y);y.oldParentNode=b,y.isRemovedNode=!0}),function(y,v,b){for(var E=new f.default,O=new f.default,d=[];0<b.length;){var m=b.shift(),x=new o.default(v,m,E,O);if(x.getPinpoint()||v!==0){var w=new h.default(v,x);d.push(w)}else{var C=m.parentNode,k=new h.default(1,new o.default(1,C,E,O));b=_(C,b),b=[C][I("0x32")](b),d.push(k)}}return v===1&&d.reverse(),d}(0,s,l))}function _(u,s){if(!u)return s;for(var l=i(u),y=s.length,v=0;v<y;v++){var b=s[v].funContent;if(!l||l.indexOf(b)==-1)break;s[v].isSmallContent=!0}return s.filter(function(E){return E.isSmallContent!=1})}function i(u){var s=u.outerHTML||u.textContent;return u.nodeType===8&&(s="<!--"+s+I("0x33")),s.replace(/&/g,"&")}},function(M,P,S){"use strict";function T(h,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}S.r(P),S.d(P,"default",function(){return f});var f=function(){function h(){(function(o,e){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")})(this),this.cache={}}return T(h.prototype,[{key:"clearCache",value:function(){this.cache={}}},{key:"hasId",value:function(o){return this.cache[o]!=null}},{key:"getValue",value:function(o){return this.cache[o]}},{key:"push",value:function(o,e){this.cache[o]=e}},{key:"getCache",value:function(){return this.cache}}]),h}()},function(M,P,S){"use strict";function T(h,o){for(var e=0;e<o.length;e++){var r=o[e];r[I("0x34")]=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}S.r(P),S.d(P,"default",function(){return f});var f=function(){function h(o,e){(function(c,a){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this),this.actionType=o,this.actionData=e;var r=new Date;this.timestamp=r.getTime()}return T(h.prototype,[{key:"getActionType",value:function(){return this[I("0x35")]}},{key:"getActionData",value:function(){return this.actionData}},{key:"show",value:function(){this.actionType,this.actionData}}]),h}()},function(M,P,S){"use strict";S.r(P),S.d(P,"default",function(){return h});var T=S(9);function f(o,e){for(var r=0;r<e.length;r++){var c=e[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}var h=function(){function o(e,r,c,a){(function(u,s){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")})(this),this.nodeType=r.nodeType,e!==0&&e!==3||(this.outerHTML=r.outerHTML||r.textContent);var p=e!=1?r.previousSibling:r.oldPreviousSibling,_=r.parentNode;_||(_=r.oldParentNode||p&&p.parentNode);var i={selfNode:r,parentNode:_,previousElementSibling:r.previousElementSibling,previousSibling:p,nextElementSibling:r[I("0x36")],nextSibling:r.nextSibling};try{this.selfSelector=T.calculateSelfSelector(i,c,a)}catch(u){this.selfSelector=null}try{this.pinpoint=T.calculatePinpoint(i,c,a)}catch(u){this.pinpoint=null}}return f(o.prototype,[{key:"getPinpoint",value:function(){return this.pinpoint}},{key:"show",value:function(){this.selfSelector,this.pinpoint.show(),this.outerHTML}}]),o}()},function(M,P,S){"use strict";S.r(P),S.d(P,"calculatePinpoint",function(){return o}),S.d(P,"calculateSelfSelector",function(){return r});var T=S(10),f=S(2),h=1e4,o=function(y,v,b){var E=y.nextSibling||y.nextElementSibling;if(E){var O=f.extractNodeName(E);return O==="#comment"||O==="#text"&&E.textContent.trim()===""?e(y,E,v,b):c(y,v,b)}var d=_(y.parentNode,v,b);return new T.default(d,2)},e=function(y,v,b,E){return y[I("0x36")]=v.nextElementSibling,y.nextSibling=v.nextSibling,o(y,b,E)},r=function(y,v,b){return{parentSelector:_(y.parentNode,v,b),localSelector:function(E,O,d){E.funLocalSelector||(E.funLocalSelector=p(E));var m=u(O,E.funLocalSelector,0,d);if(E.funId||(E.funId=f.uniqueID()),d.push(E.funId,{funLocalSelector:E.funLocalSelector,index:m}),h<=m)throw new Error("too deep for calculateElementLocalSelector");return E.funLocalSelector+":eq("+m+")"}(y.selfNode,y.previousSibling,b)}};function c(y,v,b){var E=s(y);if(E){var O=f.extractNodeName(E);if(O==="#comment")return a(y,E,v,b);if(O==="#text"){if(E.textContent.trim()==="")return a(y,E,v,b);var d=_(y.parentNode,v,b),m={textContent:C=(w=E).textContent.trim(),textIndex:function N(L,U,X){var B=s(L);return B?N(B,U,f.extractNodeName(B)==="#text"&&B.textContent.trim()===U?X+1:X):X}(w,C,0)};return new T.default(d,5,m)}var x=_(y.parentNode,v,b)+" > "+i(E,b);return new T.default(x,3)}var w,C,k=_(y.parentNode,v,b);return new T.default(k,1)}function a(y,v,b,E){return y.previousElementSibling=v.previousElementSibling,y.previousSibling=v.previousSibling,c(y,b,E)}function p(y){return y&&y?""+y.nodeName.toLowerCase():""}function _(y,v,b){if(!y)return"";var E=y.funId;if(E){if(v.hasId(E))return v.getValue(E)}else y[I("0x37")]=f.uniqueID();var O=i(y,b),d=y.nodeName;if(d==="BODY"||d==="HEAD")return O;if(O){var m=y.parentNode;m||(m=y.oldParentNode);var x=_(m,v,b),w=x?x+" > "+O:O;return v[I("0x38")](y.funId,w),w}throw new Error("current node has no selector..")}function i(y,v){y.funLocalSelector||(y.funLocalSelector=p(y));var b=u(s(y),y.funLocalSelector,0,v);if(y.funId||(y[I("0x37")]=f.uniqueID()),v.push(y.funId,{funLocalSelector:y.funLocalSelector,index:b}),h<=b)throw new Error("too deep for calculateElementLocalSelector");return y.funLocalSelector+":eq("+b+")"}function u(y,v,b,E){var O=0;if(!y)return O;if(y.funId&&E.hasId(y.funId)){var d=E.getValue(y.funId);if(l(d.funLocalSelector,v))return d[I("0x39")]+1}if(h<=b)return O;y.funId||(y.funId=f.uniqueID()),y.funLocalSelector||(y.funLocalSelector=p(y));var m=s(y);return m&&(O+=u(m,v,++b,E)),l(y.funLocalSelector,v)&&(E.push(y.funId,{funLocalSelector:y.funLocalSelector,index:O}),O++),O}function s(y){if(!y)return y;var v=y.previousSibling||y.previousElementSibling;return y.isRemovedNode&&(v=y.oldPreviousSibling),v}function l(y,v){var b=/[#\.]/,E=y.split(b),O=v.split(b);return O[I("0x9")]!==0&&E[I("0x9")]!==0&&O.map(function(d){return E.indexOf(d)!==-1}).reduce(function(d,m){return d&&m},!0)}},function(M,P,S){"use strict";function T(h,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r[I("0x34")]||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}S.r(P),S.d(P,"default",function(){return f});var f=function(){function h(o,e,r){(function(c,a){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this),this.type=e,this[I("0x3a")]=o,e===5&&(this.textNode=r)}return T(h.prototype,[{key:"show",value:function(){this.type,this.selector,this[I("0x3b")]===5&&this.textNode}},{key:"getSelector",value:function(){return this.selector}},{key:"getTextNode",value:function(){return this.textNode}},{key:"getType",value:function(){return this.type}}]),h}()},function(M,P,S){"use strict";function T(h,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}S.r(P),S.d(P,"default",function(){return f});var f=function(){function h(o,e){(function(r,c){if(!(r instanceof h))throw new TypeError("Cannot call a class as a function")})(this),this.name=o,this.value=e}return T(h.prototype,[{key:"getName",value:function(){return this[I("0x3c")]}},{key:"getValue",value:function(){return this.value}},{key:"show",value:function(){this.name,this.value}}]),h}()},function(M,P,S){"use strict";function T(h,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}S.r(P),S.d(P,"default",function(){return f});var f=function(){function h(o,e){(function(r,c){if(!(r instanceof h))throw new TypeError("Cannot call a class as a function")})(this),this.redoableElement=o,this.changedAttributeList=e}return T(h.prototype,[{key:"setElement",value:function(o){this.redoableElement=o}},{key:"setAttributeList",value:function(o){this.changedAttributeList=o}},{key:"appendAttribute",value:function(o){this.changedAttributeList=this.changedAttributeList.concat([o])}},{key:"show",value:function(){this.redoableElement.show(),this[I("0x3d")].map(function(o){o.show()})}}]),h}()},function(M,P,S){"use strict";function T(h,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}S.r(P),S.d(P,"default",function(){return f});var f=function(){function h(o,e,r){(function(c,a){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")})(this),this.inputType=o,this.eleType=e,this.value=r}return T(h.prototype,[{key:"getEleType",value:function(){return this.eleType}},{key:"getInputType",value:function(){return this.inputType}},{key:"getValue",value:function(){return this.value}}]),h}()},function(M,P,S){"use strict";S.r(P),S.d(P,"default",function(){return h});var T=S(9);function f(o,e){for(var r=0;r<e.length;r++){var c=e[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}var h=function(){function o(c,a,p,_){(function(u,s){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")})(this);var i={selfNode:c,parentNode:c.parentNode,previousElementSibling:c[I("0x3e")],previousSibling:c.previousSibling,nextElementSibling:c.nextElementSibling,nextSibling:c.nextSibling};try{this.selfSelector=T.calculateSelfSelector(i,p,_)}catch(u){this.selfSelector=null}this[I("0x3f")]=a}var e,r;return e=o,r=[{key:"getSelfSelector",value:function(){return this.selfSelector}},{key:I("0x40"),value:function(){return this.input}},{key:"show",value:function(){this.selfSelector,this.pinpoint.show(),this.outerHTML}}],f(e.prototype,r),o}()},function(M,P,S){"use strict";S.r(P);var T=S(16);P.default=T.default},function(M,P,S){"use strict";S.r(P),S.d(P,"default",function(){return a});var T=S(17),f=S(19),h=S(9),o=S(6),e=S(2);function r(p){return(r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(p)}function c(p,_){for(var i=0;i<_.length;i++){var u=_[i];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object[I("0x41")](p,u.key,u)}}var a=function(p){function _(){var s,l,y,v,b=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return function(E,O){if(!(E instanceof _))throw new TypeError("Cannot call a class as a function")}(this),(l=this,y=(v=_,(Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(v))[I("0x42")](this,b),s=!y||r(y)!=="object"&&typeof y!="function"?function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(l):y).events=["mousemove","click","scroll","resize"],s.eventHandlers=[],s.vedio=null,s.isRecording=!1,s.mousemoveSamplingFrequence=0,s.MaxMousemoveSamplingFrequence=5,s[I("0x43")]instanceof window.HTMLHtmlElement&&(s.listeners={scroll:window,resize:window}),s.on(I("0x44"),function(){s.isRecording=!0}),s.on("fun_recording_stop",function(){s[I("0x45")]=!1}),s.on("fun_recording",function(){}),s}var i,u;return function(s,l){if(I("0x25")!=typeof l&&l!==null)throw new TypeError("Super expression must either be null or a function");var y,v;s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),l&&(y=s,v=l,(Object.setPrototypeOf||function(b,E){return b.__proto__=E,b})(y,v))}(_,T.default),i=_,u=[{key:I("0x46"),value:function(){return this.vedio}},{key:"getListener",value:function(s){return this.listeners[s]||this.getTarget()}},{key:"restart",value:function(){this.init(),this.emit("fun_recording_start")}},{key:"start",value:function(){var s=this;this.init(),this.emit("fun_recording_start");for(var l=function(v){var b=s.events[v],E=s.onEvents[b];E||(E=s.defaultEventCallback);var O=function(d){s.onEventCallback(E,d)};s.eventHandlers.splice(v,0,O),b==="scroll"?s.getListener(b).addEventListener(b,O,!0):s.getListener(b).addEventListener(b,O)},y=0;y<this.events.length;y++)l(y)}},{key:"stop",value:function(){for(var s=0;s<this.events.length;s++){var l=this.events[s],y=this.eventHandlers[s];y&&this.getListener(l).removeEventListener(l,y)}return this.emit("fun_recording_stop"),this.vedio}},{key:"init",value:function(){var s=this.getTarget(),l=this.getTargetPosition(),y=new f.default;y.top=l.top,y.left=l[I("0x47")];var v=s.innerHTML,b=this.removeHideElement(v);b="<!DOCTYPE html>"+b,y.scene=b,y.rootOpts={style:s.getAttribute("style"),class:s.getAttribute("class")},y.scrollX=s.scrollLeft,y.scrollY=s.scrollTop;var E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,O=window[I("0x48")]||document.documentElement.clientHeight||document.body.clientHeight;return y.width=E,y.height=O,this.vedio=y,this.vedio}},{key:"getTargetPosition",value:function(){var s=this.getTarget().getBoundingClientRect(),l=document.documentElement,y=window.pageYOffset||l.scrollTop||0,v=window.pageXOffset||l.scrollLeft||0;return{top:s.top+y,left:s.left+v}}},{key:"onEventCallback",value:function(s,l){this.emit("fun_recording",l),this[I("0x49")](l.type,l),s(this,this.vedio,l)}},{key:"defaultEventCallback",value:function(s,l,y){if(y.type==="mousemove"){if(!(s.mousemoveSamplingFrequence>=s.MaxMousemoveSamplingFrequence))return void s.mousemoveSamplingFrequence++;s.mousemoveSamplingFrequence=0}var v=y.target,b=v.body,E={scrollY:b?b.parentNode.scrollTop||b[I("0x4a")]:v.scrollTop,scrollX:b?b.parentNode.scrollLeft||b.scrollLeft:v.scrollLeft,cursorX:y.pageX,cursorY:y.pageY,width:s.target.clientWidth,height:s.target.clientHeight,eventType:y.type};if(y.type==="scroll"){var O={selfNode:v,parentNode:v[I("0x4b")],previousElementSibling:v.previousElementSibling,previousSibling:v.previousSibling,nextElementSibling:v.nextElementSibling,nextSibling:v.nextSibling};try{E.selfSelector=h.calculateSelfSelector(O,new o.default,new o.default)}catch(d){E.selfSelector=null}}l[I("0x4c")](E)}},{key:"removeHideElement",value:function(s){if(e.knuthMorrisPratt(s,"_fun-hide")<=0)return s;try{for(var l=new DOMParser().parseFromString(s,"text/html"),y=l.getElementsByClassName("_fun-hide"),v=[][I("0x4d")].call(y),b=0;b<v.length;b++)v[b].remove();return l.documentElement.innerHTML}catch(E){return s}}}],c(i.prototype,u),_}()},function(M,P,S){"use strict";S.r(P),S.d(P,"default",function(){return o});var T=S(18);function f(e){return(f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(e)}function h(e,r){for(var c=0;c<r.length;c++){var a=r[c];a.enumerable=a.enumerable||!1,a.configurable=!0,I("0x4e")in a&&(a.writable=!0),Object.defineProperty(e,a[I("0x4f")],a)}}var o=function(e){function r(){var c,a,p,_,i=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return function(u,s){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}(this),a=this,c=!(p=(_=r,(Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)})(_)).call(this))||f(p)!=="object"&&typeof p!="function"?function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(a):p,i[I("0x43")]?c.setTarget(i.target):c.target=null,c.onEvents=i.onEvents||c.onEvents(),c}return function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError(I("0x50"));var p,_;c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),a&&(p=c,_=a,(Object.setPrototypeOf||function(i,u){return i.__proto__=u,i})(p,_))}(r,T.EventEmitter),h(r.prototype,[{key:"onEvents",value:function(){return{}}},{key:"setTarget",value:function(c){if(!(c instanceof window.HTMLElement))throw new Error("Target\u4E0D\u662FHTMLElement\u7C7B\u578B");this.target=c}},{key:"getTarget",value:function(){if(!this.target)throw new Error("\u672A\u5B9A\u4E49\u8981\u76D1\u542C\u7684Target");return this.target}}]),r}()},function(M,P,S){"use strict";var T,f=typeof Reflect=="object"?Reflect:null,h=f&&typeof f.apply=="function"?f.apply:function(s,l,y){return Function.prototype.apply.call(s,l,y)};T=f&&typeof f.ownKeys=="function"?f.ownKeys:Object.getOwnPropertySymbols?function(s){return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s))}:function(s){return Object.getOwnPropertyNames(s)};var o=Number.isNaN||function(s){return s!=s};function e(){e.init.call(this)}((M.exports=e).EventEmitter=e).prototype._events=void 0,e.prototype._eventsCount=0,e.prototype._maxListeners=void 0;var r=10;function c(s){return s._maxListeners===void 0?e.defaultMaxListeners:s._maxListeners}function a(s,l,y,v){var b,E,O;if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y);if((E=s._events)===void 0?(E=s._events=Object.create(null),s._eventsCount=0):(E.newListener!==void 0&&(s.emit("newListener",l,y.listener?y.listener:y),E=s._events),O=E[l]),O===void 0)O=E[l]=y,++s._eventsCount;else if(typeof O=="function"?O=E[l]=v?[y,O]:[O,y]:v?O.unshift(y):O.push(y),0<(b=c(s))&&O[I("0x9")]>b&&!O.warned){O.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+O.length+" "+String(l)+I("0x51"));d.name="MaxListenersExceededWarning",d.emitter=s,d.type=l,d.count=O.length}return s}function p(s,l,y){var v={fired:!1,wrapFn:void 0,target:s,type:l,listener:y},b=function(){for(var E=[],O=0;O<arguments.length;O++)E.push(arguments[O]);this.fired||(this.target[I("0x52")](this.type,this.wrapFn),this.fired=!0,h(this.listener,this.target,E))}.bind(v);return b.listener=y,v.wrapFn=b}function _(s,l,y){var v=s._events;if(v===void 0)return[];var b=v[l];return b===void 0?[]:typeof b=="function"?y?[b[I("0x53")]||b]:[b]:y?function(E){for(var O=new Array(E.length),d=0;d<O.length;++d)O[d]=E[d].listener||E[d];return O}(b):u(b,b.length)}function i(s){var l=this._events;if(l!==void 0){var y=l[s];if(typeof y=="function")return 1;if(y!==void 0)return y.length}return 0}function u(s,l){for(var y=new Array(l),v=0;v<l;++v)y[v]=s[v];return y}Object.defineProperty(e,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(s){if(typeof s!="number"||s<0||o(s))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+s+".");r=s}}),e.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},e.prototype.setMaxListeners=function(s){if(typeof s!="number"||s<0||o(s))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+s+".");return this._maxListeners=s,this},e.prototype.getMaxListeners=function(){return c(this)},e.prototype.emit=function(s){for(var l=[],y=1;y<arguments.length;y++)l.push(arguments[y]);var v=s==="error",b=this._events;if(b!==void 0)v=v&&b.error===void 0;else if(!v)return!1;if(v){var E;if(0<l.length&&(E=l[0]),E instanceof Error)throw E;var O=new Error("Unhandled error."+(E?" ("+E.message+")":""));throw O.context=E,O}var d=b[s];if(d===void 0)return!1;if(typeof d=="function")h(d,this,l);else{var m=d.length,x=u(d,m);for(y=0;y<m;++y)h(x[y],this,l)}return!0},e.prototype.on=e.prototype[I("0x54")]=function(s,l){return a(this,s,l,!1)},e.prototype.prependListener=function(s,l){return a(this,s,l,!0)},e.prototype[I("0x55")]=function(s,l){if(typeof l!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof l);return this.on(s,p(this,s,l)),this},e.prototype.prependOnceListener=function(s,l){if(typeof l!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof l);return this.prependListener(s,p(this,s,l)),this},e.prototype.off=e.prototype.removeListener=function(s,l){var y,v,b,E,O;if(typeof l!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof l);if((v=this._events)===void 0)return this;if((y=v[s])===void 0)return this;if(y===l||y.listener===l)--this._eventsCount==0?this._events=Object.create(null):(delete v[s],v.removeListener&&this.emit("removeListener",s,y.listener||l));else if(typeof y!="function"){for(b=-1,E=y.length-1;0<=E;E--)if(y[E]===l||y[E].listener===l){O=y[E].listener,b=E;break}if(b<0)return this;b===0?y.shift():function(d,m){for(;m+1<d.length;m++)d[m]=d[m+1];d.pop()}(y,b),y.length===1&&(v[s]=y[0]),v.removeListener!==void 0&&this.emit("removeListener",s,O||l)}return this},e.prototype.removeAllListeners=function(s){var l,y,v;if((y=this._events)===void 0)return this;if(y.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):y[s]!==void 0&&(--this._eventsCount==0?this[I("0x56")]=Object.create(null):delete y[s]),this;if(arguments.length===0){var b,E=Object.keys(y);for(v=0;v<E.length;++v)(b=E[v])!=="removeListener"&&this.removeAllListeners(b);return this[I("0x57")]("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(l=y[s])=="function")this[I("0x52")](s,l);else if(l!==void 0)for(v=l.length-1;0<=v;v--)this.removeListener(s,l[v]);return this},e.prototype.listeners=function(s){return _(this,s,!0)},e.prototype.rawListeners=function(s){return _(this,s,!1)},e.listenerCount=function(s,l){return typeof s.listenerCount=="function"?s.listenerCount(l):i.call(s,l)},e.prototype.listenerCount=i,e.prototype[I("0x58")]=function(){return 0<this._eventsCount?T(this._events):[]}},function(M,P,S){"use strict";S.r(P),S.d(P,"default",function(){return h});var T=S(20);function f(o,e){for(var r=0;r<e.length;r++){var c=e[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c[I("0x5a")]=!0),Object.defineProperty(o,c[I("0x4f")],c)}}var h=function(){function o(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};(function(a,p){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")})(this),this.top=e.top||0,this.left=e.left||0,this.scrollX=e.scrollX||0,this[I("0x5b")]=e.scrollY||0,this.width=e.width||0,this.height=e.height||0,this.scene=e[I("0x5c")]||"",this.rootOpts=e[I("0x5d")]||null;var r=new Date;this.timestamp=r.getTime();var c=e.frames||[];this[I("0x5e")](c)}return f(o.prototype,[{key:"getFrames",value:function(){return this.frames}},{key:"getFramesLength",value:function(){return this[I("0x5f")]&&this.frames.length}},{key:"setFrames",value:function(e){this.frames=[];for(var r=0;r<e.length;r++)this.pushNewFrame(e[r]);return this}},{key:"pushNewFrame",value:function(){var e,r=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};if(r!==null&&(e=r,(typeof Symbol=="function"&&I("0x59")==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(e)==="object")&&!(r=new T.default(r)).timestamp){var c=new Date;r.timestamp=c.getTime()}r&&this.frames.push(r)}},{key:"toJSON",value:function(){return{top:this.top,left:this.left,scrollX:this.scrollX,scrollY:this[I("0x5b")],width:this.width,height:this.height,timestamp:this.timestamp,scene:this.scene,rootOpts:this.rootOpts,frames:this.frames}}},{key:"getScene",value:function(){return this.scene}}]),o}()},function(M,P,S){"use strict";function T(h,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}S.r(P),S.d(P,"default",function(){return f});var f=function(){function h(){var o=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};(function(e,r){if(!(e instanceof h))throw new TypeError("Cannot call a class as a function")})(this),this.cursorX=o.cursorX||0,this.cursorY=o.cursorY||0,this.scrollX=o.scrollX||0,this.scrollY=o.scrollY||0,this.height=o.height||0,this.width=o.width||0,this[I("0x60")]=o.timestamp||0,this.options=o.options||{},this.eventType=o.eventType||"",this.selfSelector=o.selfSelector||null}return T(h.prototype,[{key:"toJSON",value:function(){return{eventType:this.eventType,options:this.options,scrollX:this.scrollX,scrollY:this.scrollY,cursorX:this.cursorX,cursorY:this.cursorY,height:this.height,width:this[I("0x61")],timestamp:this.timestamp,selfSelector:this.selfSelector}}}]),h}()},function(M,P,S){"use strict";function T(h,o){for(var e=0;e<o.length;e++){var r=o[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(h,r.key,r)}}S.r(P),S.d(P,"default",function(){return f});var f=function(){function h(o,e,r){(function(c,a){if(!(c instanceof h))throw new TypeError(I("0x62"))})(this),this.type=o,this.vedio=e,this.actions=r}return T(h.prototype,[{key:"getType",value:function(){return this.type}},{key:"getVedio",value:function(){return this.vedio}},{key:"getVedioTimestamp",value:function(){return this[I("0x63")].timestamp}},{key:"getVedioFrameLength",value:function(){return this.vedio?this.vedio.getFramesLength():0}},{key:"getActions",value:function(){return this.actions}},{key:"getLastActionTimestamp",value:function(){return this.actions.length?this.actions[this.actions.length-1].timestamp:0}},{key:"getActionsLength",value:function(){return this.actions.length}}]),h}()},function(M,P,S){"use strict";S.r(P),S.d(P,"sendToServer",function(){return T});var T=function(f,h){var o=new XMLHttpRequest;o.open("POST",f),o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){o.readyState==XMLHttpRequest.DONE&&o[I("0x64")]},o.send(h)}},function(M,P,S){var T,f=function(){var h=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function c(p,_){if(!r[p]){r[p]={};for(var i=0;i<p.length;i++)r[p][p.charAt(i)]=i}return r[p][_]}var a={compressToBase64:function(p){if(p==null)return"";var _=a._compress(p,6,function(i){return o.charAt(i)});switch(_.length%4){default:case 0:return _;case 1:return _+"===";case 2:return _+"==";case 3:return _+"="}},decompressFromBase64:function(p){return p==null?"":p==""?null:a._decompress(p.length,32,function(_){return c(o,p.charAt(_))})},compressToUTF16:function(p){return p==null?"":a._compress(p,15,function(_){return h(_+32)})+" "},decompressFromUTF16:function(p){return p==null?"":p==""?null:a._decompress(p.length,16384,function(_){return p[I("0x65")](_)-32})},compressToUint8Array:function(p){for(var _=a.compress(p),i=new Uint8Array(2*_.length),u=0,s=_.length;u<s;u++){var l=_.charCodeAt(u);i[2*u]=l>>>8,i[2*u+1]=l%256}return i},decompressFromUint8Array:function(p){if(p==null)return a.decompress(p);for(var _=new Array(p[I("0x9")]/2),i=0,u=_.length;i<u;i++)_[i]=256*p[2*i]+p[2*i+1];var s=[];return _.forEach(function(l){s.push(h(l))}),a.decompress(s.join(""))},compressToEncodedURIComponent:function(p){return p==null?"":a._compress(p,6,function(_){return e.charAt(_)})},decompressFromEncodedURIComponent:function(p){return p==null?"":p==""?null:(p=p.replace(/ /g,"+"),a[I("0x66")](p.length,32,function(_){return c(e,p.charAt(_))}))},compress:function(p){return a._compress(p,16,function(_){return h(_)})},_compress:function(p,_,i){if(p==null)return"";var u,s,l,y={},v={},b="",E="",O="",d=2,m=3,x=2,w=[],C=0,k=0;for(l=0;l<p.length;l+=1)if(b=p.charAt(l),Object.prototype.hasOwnProperty.call(y,b)||(y[b]=m++,v[b]=!0),E=O+b,Object[I("0x1a")].hasOwnProperty.call(y,E))O=E;else{if(Object.prototype.hasOwnProperty.call(v,O)){if(O.charCodeAt(0)<256){for(u=0;u<x;u++)C<<=1,k==_-1?(k=0,w.push(i(C)),C=0):k++;for(s=O.charCodeAt(0),u=0;u<8;u++)C=C<<1|1&s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s>>=1}else{for(s=1,u=0;u<x;u++)C=C<<1|s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s=0;for(s=O.charCodeAt(0),u=0;u<16;u++)C=C<<1|1&s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s>>=1}--d==0&&(d=Math.pow(2,x),x++),delete v[O]}else for(s=y[O],u=0;u<x;u++)C=C<<1|1&s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s>>=1;--d==0&&(d=Math.pow(2,x),x++),y[E]=m++,O=String(b)}if(O!==""){if(Object.prototype.hasOwnProperty.call(v,O)){if(O.charCodeAt(0)<256){for(u=0;u<x;u++)C<<=1,k==_-1?(k=0,w.push(i(C)),C=0):k++;for(s=O.charCodeAt(0),u=0;u<8;u++)C=C<<1|1&s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s>>=1}else{for(s=1,u=0;u<x;u++)C=C<<1|s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s=0;for(s=O.charCodeAt(0),u=0;u<16;u++)C=C<<1|1&s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s>>=1}--d==0&&(d=Math[I("0x67")](2,x),x++),delete v[O]}else for(s=y[O],u=0;u<x;u++)C=C<<1|1&s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s>>=1;--d==0&&(d=Math.pow(2,x),x++)}for(s=2,u=0;u<x;u++)C=C<<1|1&s,k==_-1?(k=0,w.push(i(C)),C=0):k++,s>>=1;for(;;){if(C<<=1,k==_-1){w.push(i(C));break}k++}return w.join("")},decompress:function(p){return p==null?"":p==""?null:a._decompress(p.length,32768,function(_){return p[I("0x65")](_)})},_decompress:function(p,_,i){var u,s,l,y,v,b,E,O=[],d=4,m=4,x=3,w="",C=[],k={val:i(0),position:_,index:1};for(u=0;u<3;u+=1)O[u]=u;for(l=0,v=Math.pow(2,2),b=1;b!=v;)y=k.val&k.position,k.position>>=1,k.position==0&&(k.position=_,k.val=i(k.index++)),l|=(0<y?1:0)*b,b<<=1;switch(l){case 0:for(l=0,v=Math.pow(2,8),b=1;b!=v;)y=k.val&k.position,k.position>>=1,k.position==0&&(k.position=_,k.val=i(k.index++)),l|=(0<y?1:0)*b,b<<=1;E=h(l);break;case 1:for(l=0,v=Math.pow(2,16),b=1;b!=v;)y=k.val&k.position,k.position>>=1,k.position==0&&(k.position=_,k.val=i(k.index++)),l|=(0<y?1:0)*b,b<<=1;E=h(l);break;case 2:return""}for(s=O[3]=E,C.push(E);;){if(k.index>p)return"";for(l=0,v=Math.pow(2,x),b=1;b!=v;)y=k.val&k.position,k.position>>=1,k.position==0&&(k.position=_,k[I("0x68")]=i(k.index++)),l|=(0<y?1:0)*b,b<<=1;switch(E=l){case 0:for(l=0,v=Math.pow(2,8),b=1;b!=v;)y=k.val&k.position,k.position>>=1,k.position==0&&(k.position=_,k.val=i(k.index++)),l|=(0<y?1:0)*b,b<<=1;O[m++]=h(l),E=m-1,d--;break;case 1:for(l=0,v=Math[I("0x67")](2,16),b=1;b!=v;)y=k.val&k.position,k.position>>=1,k.position==0&&(k.position=_,k.val=i(k.index++)),l|=(0<y?1:0)*b,b<<=1;O[m++]=h(l),E=m-1,d--;break;case 2:return C.join("")}if(d==0&&(d=Math.pow(2,x),x++),O[E])w=O[E];else{if(E!==m)return null;w=s+s.charAt(0)}C.push(w),O[m++]=s+w.charAt(0),s=w,--d==0&&(d=Math.pow(2,x),x++)}}};return a}();(T=function(){return f}.call(P,S,P,M))===void 0||(M.exports=T)}])})},49976:function(Z){(function(G,I){Z.exports=I()})(this,()=>{return G={276:function(){(function(M){"use strict";M.console||(M.console={});for(var P,S,T=M.console,f=function(){},h=["memory"],o="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");P=h.pop();)T[P]||(T[P]={});for(;S=o.pop();)T[S]||(T[S]=f)})(typeof window=="undefined"?this:window)},180:function(M,P,S){var T,f,h;(function(o,e){"use strict";f=[S(124)],(h=typeof(T=function(r){var c=/(^|@)\S+:\d+/,a=/^\s*at .*(\S+:\d+|\(native\))/m,p=/^(eval@)?(\[native code])?$/;return{parse:function(_){if(_.stacktrace!==void 0||_["opera#sourceloc"]!==void 0)return this.parseOpera(_);if(_.stack&&_.stack.match(a))return this.parseV8OrIE(_);if(_.stack)return this.parseFFOrSafari(_);throw new Error("Cannot parse given Error object")},extractLocation:function(_){if(_.indexOf(":")===-1)return[_];var i=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(_.replace(/[()]/g,""));return[i[1],i[2]||void 0,i[3]||void 0]},parseV8OrIE:function(_){return _.stack.split(`
`).filter(function(i){return!!i.match(a)},this).map(function(i){i.indexOf("(eval ")>-1&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var u=i.replace(/^\s+/,"").replace(/\(eval code/g,"("),s=u.match(/ (\((.+):(\d+):(\d+)\)$)/),l=(u=s?u.replace(s[0],""):u).split(/\s+/).slice(1),y=this.extractLocation(s?s[1]:l.pop()),v=l.join(" ")||void 0,b=["eval","<anonymous>"].indexOf(y[0])>-1?void 0:y[0];return new r({functionName:v,fileName:b,lineNumber:y[1],columnNumber:y[2],source:i})},this)},parseFFOrSafari:function(_){return _.stack.split(`
`).filter(function(i){return!i.match(p)},this).map(function(i){if(i.indexOf(" > eval")>-1&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),i.indexOf("@")===-1&&i.indexOf(":")===-1)return new r({functionName:i});var u=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=i.match(u),l=s&&s[1]?s[1]:void 0,y=this.extractLocation(i.replace(u,""));return new r({functionName:l,fileName:y[0],lineNumber:y[1],columnNumber:y[2],source:i})},this)},parseOpera:function(_){return!_.stacktrace||_.message.indexOf(`
`)>-1&&_.message.split(`
`).length>_.stacktrace.split(`
`).length?this.parseOpera9(_):_.stack?this.parseOpera11(_):this.parseOpera10(_)},parseOpera9:function(_){for(var i=/Line (\d+).*script (?:in )?(\S+)/i,u=_.message.split(`
`),s=[],l=2,y=u.length;l<y;l+=2){var v=i.exec(u[l]);v&&s.push(new r({fileName:v[2],lineNumber:v[1],source:u[l]}))}return s},parseOpera10:function(_){for(var i=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,u=_.stacktrace.split(`
`),s=[],l=0,y=u.length;l<y;l+=2){var v=i.exec(u[l]);v&&s.push(new r({functionName:v[3]||void 0,fileName:v[2],lineNumber:v[1],source:u[l]}))}return s},parseOpera11:function(_){return _.stack.split(`
`).filter(function(i){return!!i.match(c)&&!i.match(/^Error created at/)},this).map(function(i){var u,s=i.split("@"),l=this.extractLocation(s.pop()),y=s.shift()||"",v=y.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;y.match(/\(([^)]*)\)/)&&(u=y.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var b=u===void 0||u==="[arguments not available]"?void 0:u.split(",");return new r({functionName:v,args:b,fileName:l[0],lineNumber:l[1],columnNumber:l[2],source:i})},this)}}})=="function"?T.apply(P,f):T)===void 0||(M.exports=h)})()},124:function(M,P){var S,T,f;(function(h,o){"use strict";T=[],(f=typeof(S=function(){function e(E){return!isNaN(parseFloat(E))&&isFinite(E)}function r(E){return E.charAt(0).toUpperCase()+E.substring(1)}function c(E){return function(){return this[E]}}var a=["isConstructor","isEval","isNative","isToplevel"],p=["columnNumber","lineNumber"],_=["fileName","functionName","source"],i=["args"],u=["evalOrigin"],s=a.concat(p,_,i,u);function l(E){if(E)for(var O=0;O<s.length;O++)E[s[O]]!==void 0&&this["set"+r(s[O])](E[s[O]])}l.prototype={getArgs:function(){return this.args},setArgs:function(E){if(Object.prototype.toString.call(E)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=E},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(E){if(E instanceof l)this.evalOrigin=E;else{if(!(E instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new l(E)}},toString:function(){var E=this.getFileName()||"",O=this.getLineNumber()||"",d=this.getColumnNumber()||"",m=this.getFunctionName()||"";return this.getIsEval()?E?"[eval] ("+E+":"+O+":"+d+")":"[eval]:"+O+":"+d:m?m+" ("+E+":"+O+":"+d+")":E+":"+O+":"+d}},l.fromString=function(E){var O=E.indexOf("("),d=E.lastIndexOf(")"),m=E.substring(0,O),x=E.substring(O+1,d).split(","),w=E.substring(d+1);if(w.indexOf("@")===0)var C=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),k=C[1],N=C[2],L=C[3];return new l({functionName:m,args:x||void 0,fileName:k,lineNumber:N||void 0,columnNumber:L||void 0})};for(var y=0;y<a.length;y++)l.prototype["get"+r(a[y])]=c(a[y]),l.prototype["set"+r(a[y])]=function(E){return function(O){this[E]=!!O}}(a[y]);for(var v=0;v<p.length;v++)l.prototype["get"+r(p[v])]=c(p[v]),l.prototype["set"+r(p[v])]=function(E){return function(O){if(!e(O))throw new TypeError(E+" must be a Number");this[E]=Number(O)}}(p[v]);for(var b=0;b<_.length;b++)l.prototype["get"+r(_[b])]=c(_[b]),l.prototype["set"+r(_[b])]=function(E){return function(O){this[E]=String(O)}}(_[b]);return l})=="function"?S.apply(P,T):S)===void 0||(M.exports=f)})()},815:(M,P,S)=>{"use strict";var T=S(702),f=S(817),h={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443};function o(r,c,a,p,_){this.options=r,this.transport=c,this.url=a,this.truncation=p,this.jsonBackup=_,this.accessToken=r.accessToken,this.transportOptions=e(r,a)}function e(r,c){return f.getTransportFromOptions(r,h,c)}o.prototype.postItem=function(r,c){var a=f.transportOptions(this.transportOptions,"POST"),p=f.buildPayload(this.accessToken,r,this.jsonBackup),_=this;setTimeout(function(){_.transport.post(_.accessToken,a,p,c)},0)},o.prototype.buildJsonPayload=function(r,c){var a,p=f.buildPayload(this.accessToken,r,this.jsonBackup);return(a=this.truncation?this.truncation.truncate(p):T.stringify(p)).error?(c&&c(a.error),null):a.value},o.prototype.postJsonPayload=function(r,c){var a=f.transportOptions(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,a,r,c)},o.prototype.configure=function(r){var c=this.oldOptions;return this.options=T.merge(c,r),this.transportOptions=e(this.options,this.url),this.options.accessToken!==void 0&&(this.accessToken=this.options.accessToken),this},M.exports=o},817:(M,P,S)=>{"use strict";var T=S(702);M.exports={buildPayload:function(f,h,o){if(!T.isType(h.context,"string")){var e=T.stringify(h.context,o);e.error?h.context="Error: could not serialize 'context'":h.context=e.value||"",h.context.length>255&&(h.context=h.context.substr(0,255))}return{access_token:f,data:h}},getTransportFromOptions:function(f,h,o){var e=h.hostname,r=h.protocol,c=h.port,a=h.path,p=h.search,_=f.timeout,i=function(l){var y=typeof window!="undefined"&&window||typeof self!="undefined"&&self,v=l.defaultTransport||"xhr";return y.fetch===void 0&&(v="xhr"),y.XMLHttpRequest===void 0&&(v="fetch"),v}(f),u=f.proxy;if(f.endpoint){var s=o.parse(f.endpoint);e=s.hostname,r=s.protocol,c=s.port,a=s.pathname,p=s.search}return{timeout:_,hostname:e,protocol:r,port:c,path:a,search:p,proxy:u,transport:i}},transportOptions:function(f,h){var o=f.protocol||"https:",e=f.port||(o==="http:"?80:o==="https:"?443:void 0),r=f.hostname,c=f.path,a=f.timeout,p=f.transport;return f.search&&(c+=f.search),f.proxy&&(c=o+"//"+r+c,r=f.proxy.host||f.proxy.hostname,e=f.proxy.port,o=f.proxy.protocol||o),{timeout:a,protocol:o,hostname:r,path:c,port:e,method:h,transport:p}},appendPathToPath:function(f,h){var o=/\/$/.test(f),e=/^\//.test(h);return o&&e?h=h.substring(1):o||e||(h="/"+h),f+h}}},409:(M,P,S)=>{"use strict";var T=S(343),f=typeof window!="undefined"&&window._rollbarConfig,h=f&&f.globalAlias||"Rollbar",o=typeof window!="undefined"&&window[h]&&typeof window[h].shimId=="function"&&window[h].shimId()!==void 0;if(typeof window=="undefined"||window._rollbarStartTime||(window._rollbarStartTime=new Date().getTime()),!o&&f){var e=new T(f);window[h]=e}else typeof window!="undefined"?(window.rollbar=T,window._rollbarDidLoad=!0):typeof self!="undefined"&&(self.rollbar=T,self._rollbarDidLoad=!0);M.exports=T},403:(M,P,S)=>{"use strict";var T=S(562),f=S(702),h=S(815),o=S(802),e=S(349),r=S(477),c=S(509),a=S(860),p=S(417),_=S(172),i=S(61),u=S(303);function s(m,x){this.options=f.handleOptions(d,m,null,o),this.options._configuredOptions=m;var w=this.components.telemeter,C=this.components.instrumenter,k=this.components.polyfillJSON;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var N=this.components.truncation,L=new r(N),U=new h(this.options,L,c,N);w&&(this.telemeter=new w(this.options)),this.client=x||new T(this.options,U,o,this.telemeter,"browser");var X=b(),B=typeof document!="undefined"&&document;this.isChrome=X.chrome&&X.chrome.runtime,this.anonymousErrorsPending=0,function(Y,W,it){Y.addTransform(a.handleDomException).addTransform(a.handleItemWithError).addTransform(a.ensureItemHasSomethingToSay).addTransform(a.addBaseInfo).addTransform(a.addRequestInfo(it)).addTransform(a.addClientInfo(it)).addTransform(a.addPluginInfo(it)).addTransform(a.addBody).addTransform(p.addMessageWithError).addTransform(p.addTelemetryData).addTransform(p.addConfigToPayload).addTransform(a.addScrubber(W.scrub)).addTransform(p.addPayloadOptions).addTransform(p.userTransform(o)).addTransform(p.addConfiguredOptions).addTransform(p.addDiagnosticKeys).addTransform(p.itemToPayload)}(this.client.notifier,this,X),this.client.queue.addPredicate(i.checkLevel).addPredicate(_.checkIgnore).addPredicate(i.userCheckIgnore(o)).addPredicate(i.urlIsNotBlockListed(o)).addPredicate(i.urlIsSafeListed(o)).addPredicate(i.messageIsIgnored(o)),this.setupUnhandledCapture(),C&&(this.instrumenter=new C(this.options,this.client.telemeter,this,X,B),this.instrumenter.instrument()),f.setupJSON(k),this.rollbar=this}var l=null;function y(m){var x="Rollbar is not initialized";o.error(x),m&&m(new Error(x))}function v(m){for(var x=0,w=m.length;x<w;++x)if(f.isFunction(m[x]))return m[x]}function b(){return typeof window!="undefined"&&window||typeof self!="undefined"&&self}s.init=function(m,x){return l?l.global(m).configure(m):l=new s(m,x)},s.prototype.components={},s.setComponents=function(m){s.prototype.components=m},s.prototype.global=function(m){return this.client.global(m),this},s.global=function(m){if(l)return l.global(m);y()},s.prototype.configure=function(m,x){var w=this.options,C={};return x&&(C={payload:x}),this.options=f.handleOptions(w,m,C,o),this.options._configuredOptions=f.handleOptions(w._configuredOptions,m,C),this.client.configure(this.options,x),this.instrumenter&&this.instrumenter.configure(this.options),this.setupUnhandledCapture(),this},s.configure=function(m,x){if(l)return l.configure(m,x);y()},s.prototype.lastError=function(){return this.client.lastError},s.lastError=function(){if(l)return l.lastError();y()},s.prototype.log=function(){var m=this._createItem(arguments),x=m.uuid;return this.client.log(m),{uuid:x}},s.log=function(){if(l)return l.log.apply(l,arguments);y(v(arguments))},s.prototype.debug=function(){var m=this._createItem(arguments),x=m.uuid;return this.client.debug(m),{uuid:x}},s.debug=function(){if(l)return l.debug.apply(l,arguments);y(v(arguments))},s.prototype.info=function(){var m=this._createItem(arguments),x=m.uuid;return this.client.info(m),{uuid:x}},s.info=function(){if(l)return l.info.apply(l,arguments);y(v(arguments))},s.prototype.warn=function(){var m=this._createItem(arguments),x=m.uuid;return this.client.warn(m),{uuid:x}},s.warn=function(){if(l)return l.warn.apply(l,arguments);y(v(arguments))},s.prototype.warning=function(){var m=this._createItem(arguments),x=m.uuid;return this.client.warning(m),{uuid:x}},s.warning=function(){if(l)return l.warning.apply(l,arguments);y(v(arguments))},s.prototype.error=function(){var m=this._createItem(arguments),x=m.uuid;return this.client.error(m),{uuid:x}},s.error=function(){if(l)return l.error.apply(l,arguments);y(v(arguments))},s.prototype.critical=function(){var m=this._createItem(arguments),x=m.uuid;return this.client.critical(m),{uuid:x}},s.critical=function(){if(l)return l.critical.apply(l,arguments);y(v(arguments))},s.prototype.buildJsonPayload=function(m){return this.client.buildJsonPayload(m)},s.buildJsonPayload=function(){if(l)return l.buildJsonPayload.apply(l,arguments);y()},s.prototype.sendJsonPayload=function(m){return this.client.sendJsonPayload(m)},s.sendJsonPayload=function(){if(l)return l.sendJsonPayload.apply(l,arguments);y()},s.prototype.setupUnhandledCapture=function(){var m=b();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(e.captureUncaughtExceptions(m,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(m,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(e.captureUnhandledRejections(m,this),this.unhandledRejectionsInitialized=!0)},s.prototype.handleUncaughtException=function(m,x,w,C,k,N){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&k===null&&x==="")return"anonymous";var L,U=f.makeUnhandledStackInfo(m,x,w,C,k,"onerror","uncaught exception",u);f.isError(k)?(L=this._createItem([m,k,N]))._unhandledStackInfo=U:f.isError(x)?(L=this._createItem([m,x,N]))._unhandledStackInfo=U:(L=this._createItem([m,N])).stackInfo=U,L.level=this.options.uncaughtErrorLevel,L._isUncaught=!0,this.client.log(L)}},s.prototype.handleAnonymousErrors=function(){if(this.options.inspectAnonymousErrors&&this.isChrome){var m=this;try{Error.prepareStackTrace=function(x,w){if(m.options.inspectAnonymousErrors&&m.anonymousErrorsPending){if(m.anonymousErrorsPending-=1,!x)return;x._isAnonymous=!0,m.handleUncaughtException(x.message,null,null,null,x)}return x.stack}}catch(x){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",x)}}},s.prototype.handleUnhandledRejection=function(m,x){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var w="unhandled rejection was null or undefined!";if(m)if(m.message)w=m.message;else{var C=f.stringify(m);C.value&&(w=C.value)}var k,N=m&&m._rollbarContext||x&&x._rollbarContext;f.isError(m)?k=this._createItem([w,m,N]):(k=this._createItem([w,m,N])).stackInfo=f.makeUnhandledStackInfo(w,"",0,0,null,"unhandledrejection","",u),k.level=this.options.uncaughtErrorLevel,k._isUncaught=!0,k._originalArgs=k._originalArgs||[],k._originalArgs.push(x),this.client.log(k)}},s.prototype.wrap=function(m,x,w){try{var C;if(C=f.isFunction(x)?x:function(){return x||{}},!f.isFunction(m)||m._isWrap)return m;if(!m._rollbar_wrapped&&(m._rollbar_wrapped=function(){w&&f.isFunction(w)&&w.apply(this,arguments);try{return m.apply(this,arguments)}catch(L){var N=L;throw N&&window._rollbarWrappedError!==N&&(f.isType(N,"string")&&(N=new String(N)),N._rollbarContext=C()||{},N._rollbarContext._wrappedSource=m.toString(),window._rollbarWrappedError=N),N}},m._rollbar_wrapped._isWrap=!0,m.hasOwnProperty))for(var k in m)m.hasOwnProperty(k)&&k!=="_rollbar_wrapped"&&(m._rollbar_wrapped[k]=m[k]);return m._rollbar_wrapped}catch(N){return m}},s.wrap=function(m,x){if(l)return l.wrap(m,x);y()},s.prototype.captureEvent=function(){var m=f.createTelemetryEvent(arguments);return this.client.captureEvent(m.type,m.metadata,m.level)},s.captureEvent=function(){if(l)return l.captureEvent.apply(l,arguments);y()},s.prototype.captureDomContentLoaded=function(m,x){return x||(x=new Date),this.client.captureDomContentLoaded(x)},s.prototype.captureLoad=function(m,x){return x||(x=new Date),this.client.captureLoad(x)},s.prototype.loadFull=function(){o.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")},s.prototype._createItem=function(m){return f.createItem(m,o,this)};var E=S(948),O=S(677),d={version:E.version,scrubFields:O.scrubFields,logLevel:E.logLevel,reportLevel:E.reportLevel,uncaughtErrorLevel:E.uncaughtErrorLevel,endpoint:E.endpoint,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1};M.exports=s},677:M=>{"use strict";M.exports={scrubFields:["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","secret_key","secretKey","secretToken","cc-number","card number","cardnumber","cardnum","ccnum","ccnumber","cc num","creditcardnumber","credit card number","newcreditcardnumber","new credit card","creditcardno","credit card no","card#","card #","cc-csc","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"]}},616:M=>{"use strict";var P={ieVersion:function(){var S;if(typeof document=="undefined")return S;for(var T=3,f=document.createElement("div"),h=f.getElementsByTagName("i");f.innerHTML="<!--[if gt IE "+ ++T+"]><i></i><![endif]-->",h[0];);return T>4?T:S}};M.exports=P},300:M=>{"use strict";function P(f){return(f.getAttribute("type")||"").toLowerCase()}function S(f){if(!f||!f.tagName)return"";var h=[f.tagName];f.id&&h.push("#"+f.id),f.classes&&h.push("."+f.classes.join("."));for(var o=0;o<f.attributes.length;o++)h.push("["+f.attributes[o].key+'="'+f.attributes[o].value+'"]');return h.join("")}function T(f){if(!f||!f.tagName)return null;var h,o,e,r,c={};c.tagName=f.tagName.toLowerCase(),f.id&&(c.id=f.id),(h=f.className)&&typeof h=="string"&&(c.classes=h.split(/\s+/));var a=["type","name","title","alt"];for(c.attributes=[],r=0;r<a.length;r++)o=a[r],(e=f.getAttribute(o))&&c.attributes.push({key:o,value:e});return c}M.exports={describeElement:T,descriptionToString:S,elementArrayToString:function(f){for(var h,o,e=[],r=0,c=f.length-1;c>=0;c--){if(h=S(f[c]),o=r+3*e.length+h.length,c<f.length-1&&o>=83){e.unshift("...");break}e.unshift(h),r+=h.length}return e.join(" > ")},treeToArray:function(f){for(var h,o=[],e=0;f&&e<5&&(h=T(f)).tagName!=="html";e++)o.unshift(h),f=f.parentNode;return o},getElementFromEvent:function(f,h){return f.target?f.target:h&&h.elementFromPoint?h.elementFromPoint(f.clientX,f.clientY):void 0},isDescribedElement:function(f,h,o){if(f.tagName.toLowerCase()!==h.toLowerCase())return!1;if(!o)return!0;f=P(f);for(var e=0;e<o.length;e++)if(o[e]===f)return!0;return!1},getElementType:P}},349:M=>{"use strict";M.exports={captureUncaughtExceptions:function(P,S,T){if(P){var f;if(typeof S._rollbarOldOnError=="function")f=S._rollbarOldOnError;else if(P.onerror){for(f=P.onerror;f._rollbarOldOnError;)f=f._rollbarOldOnError;S._rollbarOldOnError=f}S.handleAnonymousErrors();var h=function(){var o=Array.prototype.slice.call(arguments,0);(function(e,r,c,a){e._rollbarWrappedError&&(a[4]||(a[4]=e._rollbarWrappedError),a[5]||(a[5]=e._rollbarWrappedError._rollbarContext),e._rollbarWrappedError=null);var p=r.handleUncaughtException.apply(r,a);c&&c.apply(e,a),p==="anonymous"&&(r.anonymousErrorsPending+=1)})(P,S,f,o)};T&&(h._rollbarOldOnError=f),P.onerror=h}},captureUnhandledRejections:function(P,S,T){if(P){typeof P._rollbarURH=="function"&&P._rollbarURH.belongsToShim&&P.removeEventListener("unhandledrejection",P._rollbarURH);var f=function(h){var o,e,r;try{o=h.reason}catch(c){o=void 0}try{e=h.promise}catch(c){e="[unhandledrejection] error getting `promise` from event"}try{r=h.detail,!o&&r&&(o=r.reason,e=r.promise)}catch(c){}o||(o="[unhandledrejection] error getting `reason` from event"),S&&S.handleUnhandledRejection&&S.handleUnhandledRejection(o,e)};f.belongsToShim=T,P._rollbarURH=f,P.addEventListener("unhandledrejection",f)}}}},802:(M,P,S)=>{"use strict";S(276);var T=S(616),f=S(702);M.exports={error:function(){var h=Array.prototype.slice.call(arguments,0);h.unshift("Rollbar:"),T.ieVersion()<=8?console.error(f.formatArgsAsString(h)):console.error.apply(console,h)},info:function(){var h=Array.prototype.slice.call(arguments,0);h.unshift("Rollbar:"),T.ieVersion()<=8?console.info(f.formatArgsAsString(h)):console.info.apply(console,h)},log:function(){var h=Array.prototype.slice.call(arguments,0);h.unshift("Rollbar:"),T.ieVersion()<=8?console.log(f.formatArgsAsString(h)):console.log.apply(console,h)}}},172:(M,P,S)=>{"use strict";var T=S(702);M.exports={checkIgnore:function(f,h){return!T.get(h,"plugins.jquery.ignoreAjaxErrors")||!T.get(f,"body.message.extra.isAjax")}}},343:(M,P,S)=>{"use strict";var T=S(403),f=S(773),h=S(568),o=S(876),e=S(965),r=S(369),c=S(473);T.setComponents({telemeter:f,instrumenter:h,polyfillJSON:o,wrapGlobals:e,scrub:r,truncation:c}),M.exports=T},568:(M,P,S)=>{"use strict";var T=S(702),f=S(650),h=S(297),o=S(369),e=S(509),r=S(300),c={network:!0,networkResponseHeaders:!1,networkResponseBody:!1,networkRequestHeaders:!1,networkRequestBody:!1,networkErrorOnHttp5xx:!1,networkErrorOnHttp4xx:!1,networkErrorOnHttp0:!1,log:!0,dom:!0,navigation:!0,connectivity:!0,contentSecurityPolicy:!0,errorOnContentSecurityPolicy:!1};function a(i,u){for(var s;i[u].length;)(s=i[u].shift())[0][s[1]]=s[2]}function p(i,u,s,l,y){this.options=i;var v=i.autoInstrument;i.enabled===!1||v===!1?this.autoInstrument={}:(T.isType(v,"object")||(v=c),this.autoInstrument=T.merge(c,v)),this.scrubTelemetryInputs=!!i.scrubTelemetryInputs,this.telemetryScrubber=i.telemetryScrubber,this.defaultValueScrubber=function(b){for(var E=[],O=0;O<b.length;++O)E.push(new RegExp(b[O],"i"));return function(d){var m=function(w){if(!w||!w.attributes)return null;for(var C=w.attributes,k=0;k<C.length;++k)if(C[k].key==="name")return C[k].value;return null}(d);if(!m)return!1;for(var x=0;x<E.length;++x)if(E[x].test(m))return!0;return!1}}(i.scrubFields),this.telemeter=u,this.rollbar=s,this.diagnostic=s.client.notifier.diagnostic,this._window=l||{},this._document=y||{},this.replacements={network:[],log:[],navigation:[],connectivity:[]},this.eventRemovers={dom:[],connectivity:[],contentsecuritypolicy:[]},this._location=this._window.location,this._lastHref=this._location&&this._location.href}function _(i){return typeof URL!="undefined"&&i instanceof URL}p.prototype.configure=function(i){this.options=T.merge(this.options,i);var u=i.autoInstrument,s=T.merge(this.autoInstrument);i.enabled===!1||u===!1?this.autoInstrument={}:(T.isType(u,"object")||(u=c),this.autoInstrument=T.merge(c,u)),this.instrument(s),i.scrubTelemetryInputs!==void 0&&(this.scrubTelemetryInputs=!!i.scrubTelemetryInputs),i.telemetryScrubber!==void 0&&(this.telemetryScrubber=i.telemetryScrubber)},p.prototype.instrument=function(i){!this.autoInstrument.network||i&&i.network?!this.autoInstrument.network&&i&&i.network&&this.deinstrumentNetwork():this.instrumentNetwork(),!this.autoInstrument.log||i&&i.log?!this.autoInstrument.log&&i&&i.log&&this.deinstrumentConsole():this.instrumentConsole(),!this.autoInstrument.dom||i&&i.dom?!this.autoInstrument.dom&&i&&i.dom&&this.deinstrumentDom():this.instrumentDom(),!this.autoInstrument.navigation||i&&i.navigation?!this.autoInstrument.navigation&&i&&i.navigation&&this.deinstrumentNavigation():this.instrumentNavigation(),!this.autoInstrument.connectivity||i&&i.connectivity?!this.autoInstrument.connectivity&&i&&i.connectivity&&this.deinstrumentConnectivity():this.instrumentConnectivity(),!this.autoInstrument.contentSecurityPolicy||i&&i.contentSecurityPolicy?!this.autoInstrument.contentSecurityPolicy&&i&&i.contentSecurityPolicy&&this.deinstrumentContentSecurityPolicy():this.instrumentContentSecurityPolicy()},p.prototype.deinstrumentNetwork=function(){a(this.replacements,"network")},p.prototype.instrumentNetwork=function(){var i=this;function u(l,y){l in y&&T.isFunction(y[l])&&h(y,l,function(v){return i.rollbar.wrap(v)})}if("XMLHttpRequest"in this._window){var s=this._window.XMLHttpRequest.prototype;h(s,"open",function(l){return function(y,v){var b=_(v);return(T.isType(v,"string")||b)&&(v=b?v.toString():v,this.__rollbar_xhr?(this.__rollbar_xhr.method=y,this.__rollbar_xhr.url=v,this.__rollbar_xhr.status_code=null,this.__rollbar_xhr.start_time_ms=T.now(),this.__rollbar_xhr.end_time_ms=null):this.__rollbar_xhr={method:y,url:v,status_code:null,start_time_ms:T.now(),end_time_ms:null}),l.apply(this,arguments)}},this.replacements,"network"),h(s,"setRequestHeader",function(l){return function(y,v){return this.__rollbar_xhr||(this.__rollbar_xhr={}),T.isType(y,"string")&&T.isType(v,"string")&&(i.autoInstrument.networkRequestHeaders&&(this.__rollbar_xhr.request_headers||(this.__rollbar_xhr.request_headers={}),this.__rollbar_xhr.request_headers[y]=v),y.toLowerCase()==="content-type"&&(this.__rollbar_xhr.request_content_type=v)),l.apply(this,arguments)}},this.replacements,"network"),h(s,"send",function(l){return function(y){var v=this;function b(){if(v.__rollbar_xhr&&(v.__rollbar_xhr.status_code===null&&(v.__rollbar_xhr.status_code=0,i.autoInstrument.networkRequestBody&&(v.__rollbar_xhr.request=y),v.__rollbar_event=i.captureNetwork(v.__rollbar_xhr,"xhr",void 0)),v.readyState<2&&(v.__rollbar_xhr.start_time_ms=T.now()),v.readyState>3)){v.__rollbar_xhr.end_time_ms=T.now();var E=null;if(v.__rollbar_xhr.response_content_type=v.getResponseHeader("Content-Type"),i.autoInstrument.networkResponseHeaders){var O=i.autoInstrument.networkResponseHeaders;E={};try{var d,m;if(O===!0){var x=v.getAllResponseHeaders();if(x){var w,C,k=x.trim().split(/[\r\n]+/);for(m=0;m<k.length;m++)d=(w=k[m].split(": ")).shift(),C=w.join(": "),E[d]=C}}else for(m=0;m<O.length;m++)E[d=O[m]]=v.getResponseHeader(d)}catch(X){}}var N=null;if(i.autoInstrument.networkResponseBody)try{N=v.responseText}catch(X){}var L=null;(N||E)&&(L={},N&&(i.isJsonContentType(v.__rollbar_xhr.response_content_type)?L.body=i.scrubJson(N):L.body=N),E&&(L.headers=E)),L&&(v.__rollbar_xhr.response=L);try{var U=v.status;U=U===1223?204:U,v.__rollbar_xhr.status_code=U,v.__rollbar_event.level=i.telemeter.levelFromStatus(U),i.errorOnHttpStatus(v.__rollbar_xhr)}catch(X){}}}return u("onload",v),u("onerror",v),u("onprogress",v),"onreadystatechange"in v&&T.isFunction(v.onreadystatechange)?h(v,"onreadystatechange",function(E){return i.rollbar.wrap(E,void 0,b)}):v.onreadystatechange=b,v.__rollbar_xhr&&i.trackHttpErrors()&&(v.__rollbar_xhr.stack=new Error().stack),l.apply(this,arguments)}},this.replacements,"network")}"fetch"in this._window&&h(this._window,"fetch",function(l){return function(y,v){for(var b=new Array(arguments.length),E=0,O=b.length;E<O;E++)b[E]=arguments[E];var d,m=b[0],x="GET",w=_(m);T.isType(m,"string")||w?d=w?m.toString():m:m&&(d=m.url,m.method&&(x=m.method)),b[1]&&b[1].method&&(x=b[1].method);var C={method:x,url:d,status_code:null,start_time_ms:T.now(),end_time_ms:null};if(b[1]&&b[1].headers){var k=f(b[1].headers);C.request_content_type=k.get("Content-Type"),i.autoInstrument.networkRequestHeaders&&(C.request_headers=i.fetchHeaders(k,i.autoInstrument.networkRequestHeaders))}return i.autoInstrument.networkRequestBody&&(b[1]&&b[1].body?C.request=b[1].body:b[0]&&!T.isType(b[0],"string")&&b[0].body&&(C.request=b[0].body)),i.captureNetwork(C,"fetch",void 0),i.trackHttpErrors()&&(C.stack=new Error().stack),l.apply(this,b).then(function(N){C.end_time_ms=T.now(),C.status_code=N.status,C.response_content_type=N.headers.get("Content-Type");var L=null;i.autoInstrument.networkResponseHeaders&&(L=i.fetchHeaders(N.headers,i.autoInstrument.networkResponseHeaders));var U=null;return i.autoInstrument.networkResponseBody&&typeof N.text=="function"&&(U=N.clone().text()),(L||U)&&(C.response={},U&&(typeof U.then=="function"?U.then(function(X){X&&i.isJsonContentType(C.response_content_type)?C.response.body=i.scrubJson(X):C.response.body=X}):C.response.body=U),L&&(C.response.headers=L)),i.errorOnHttpStatus(C),N})}},this.replacements,"network")},p.prototype.captureNetwork=function(i,u,s){return i.request&&this.isJsonContentType(i.request_content_type)&&(i.request=this.scrubJson(i.request)),this.telemeter.captureNetwork(i,u,s)},p.prototype.isJsonContentType=function(i){return!!(i&&T.isType(i,"string")&&i.toLowerCase().includes("json"))},p.prototype.scrubJson=function(i){return JSON.stringify(o(JSON.parse(i),this.options.scrubFields))},p.prototype.fetchHeaders=function(i,u){var s={};try{var l;if(u===!0){if(typeof i.entries=="function")for(var y=i.entries(),v=y.next();!v.done;)s[v.value[0]]=v.value[1],v=y.next()}else for(l=0;l<u.length;l++){var b=u[l];s[b]=i.get(b)}}catch(E){}return s},p.prototype.trackHttpErrors=function(){return this.autoInstrument.networkErrorOnHttp5xx||this.autoInstrument.networkErrorOnHttp4xx||this.autoInstrument.networkErrorOnHttp0},p.prototype.errorOnHttpStatus=function(i){var u=i.status_code;if(u>=500&&this.autoInstrument.networkErrorOnHttp5xx||u>=400&&this.autoInstrument.networkErrorOnHttp4xx||u===0&&this.autoInstrument.networkErrorOnHttp0){var s=new Error("HTTP request failed with Status "+u);s.stack=i.stack,this.rollbar.error(s,{skipFrames:1})}},p.prototype.deinstrumentConsole=function(){if("console"in this._window&&this._window.console.log)for(var i;this.replacements.log.length;)i=this.replacements.log.shift(),this._window.console[i[0]]=i[1]},p.prototype.instrumentConsole=function(){if("console"in this._window&&this._window.console.log){var i=this,u=this._window.console,s=["debug","info","warn","error","log"];try{for(var l=0,y=s.length;l<y;l++)v(s[l])}catch(b){this.diagnostic.instrumentConsole={error:b.message}}}function v(b){var E=u[b],O=u,d=b==="warn"?"warning":b;u[b]=function(){var m=Array.prototype.slice.call(arguments),x=T.formatArgsAsString(m);i.telemeter.captureLog(x,d),E&&Function.prototype.apply.call(E,O,m)},i.replacements.log.push([b,E])}},p.prototype.deinstrumentDom=function(){("addEventListener"in this._window||"attachEvent"in this._window)&&this.removeListeners("dom")},p.prototype.instrumentDom=function(){if("addEventListener"in this._window||"attachEvent"in this._window){var i=this.handleClick.bind(this),u=this.handleBlur.bind(this);this.addListener("dom",this._window,"click","onclick",i,!0),this.addListener("dom",this._window,"blur","onfocusout",u,!0)}},p.prototype.handleClick=function(i){try{var u=r.getElementFromEvent(i,this._document),s=u&&u.tagName,l=r.isDescribedElement(u,"a")||r.isDescribedElement(u,"button");s&&(l||r.isDescribedElement(u,"input",["button","submit"]))?this.captureDomEvent("click",u):r.isDescribedElement(u,"input",["checkbox","radio"])&&this.captureDomEvent("input",u,u.value,u.checked)}catch(y){}},p.prototype.handleBlur=function(i){try{var u=r.getElementFromEvent(i,this._document);u&&u.tagName&&(r.isDescribedElement(u,"textarea")?this.captureDomEvent("input",u,u.value):r.isDescribedElement(u,"select")&&u.options&&u.options.length?this.handleSelectInputChanged(u):r.isDescribedElement(u,"input")&&!r.isDescribedElement(u,"input",["button","submit","hidden","checkbox","radio"])&&this.captureDomEvent("input",u,u.value))}catch(s){}},p.prototype.handleSelectInputChanged=function(i){if(i.multiple)for(var u=0;u<i.options.length;u++)i.options[u].selected&&this.captureDomEvent("input",i,i.options[u].value);else i.selectedIndex>=0&&i.options[i.selectedIndex]&&this.captureDomEvent("input",i,i.options[i.selectedIndex].value)},p.prototype.captureDomEvent=function(i,u,s,l){if(s!==void 0)if(this.scrubTelemetryInputs||r.getElementType(u)==="password")s="[scrubbed]";else{var y=r.describeElement(u);this.telemetryScrubber?this.telemetryScrubber(y)&&(s="[scrubbed]"):this.defaultValueScrubber(y)&&(s="[scrubbed]")}var v=r.elementArrayToString(r.treeToArray(u));this.telemeter.captureDom(i,v,s,l)},p.prototype.deinstrumentNavigation=function(){var i=this._window.chrome;!(i&&i.app&&i.app.runtime)&&this._window.history&&this._window.history.pushState&&a(this.replacements,"navigation")},p.prototype.instrumentNavigation=function(){var i=this._window.chrome;if(!(i&&i.app&&i.app.runtime)&&this._window.history&&this._window.history.pushState){var u=this;h(this._window,"onpopstate",function(s){return function(){var l=u._location.href;u.handleUrlChange(u._lastHref,l),s&&s.apply(this,arguments)}},this.replacements,"navigation"),h(this._window.history,"pushState",function(s){return function(){var l=arguments.length>2?arguments[2]:void 0;return l&&u.handleUrlChange(u._lastHref,l+""),s.apply(this,arguments)}},this.replacements,"navigation")}},p.prototype.handleUrlChange=function(i,u){var s=e.parse(this._location.href),l=e.parse(u),y=e.parse(i);this._lastHref=u,s.protocol===l.protocol&&s.host===l.host&&(u=l.path+(l.hash||"")),s.protocol===y.protocol&&s.host===y.host&&(i=y.path+(y.hash||"")),this.telemeter.captureNavigation(i,u)},p.prototype.deinstrumentConnectivity=function(){("addEventListener"in this._window||"body"in this._document)&&(this._window.addEventListener?this.removeListeners("connectivity"):a(this.replacements,"connectivity"))},p.prototype.instrumentConnectivity=function(){if("addEventListener"in this._window||"body"in this._document)if(this._window.addEventListener)this.addListener("connectivity",this._window,"online",void 0,function(){this.telemeter.captureConnectivityChange("online")}.bind(this),!0),this.addListener("connectivity",this._window,"offline",void 0,function(){this.telemeter.captureConnectivityChange("offline")}.bind(this),!0);else{var i=this;h(this._document.body,"ononline",function(u){return function(){i.telemeter.captureConnectivityChange("online"),u&&u.apply(this,arguments)}},this.replacements,"connectivity"),h(this._document.body,"onoffline",function(u){return function(){i.telemeter.captureConnectivityChange("offline"),u&&u.apply(this,arguments)}},this.replacements,"connectivity")}},p.prototype.handleCspEvent=function(i){var u="Security Policy Violation: blockedURI: "+i.blockedURI+", violatedDirective: "+i.violatedDirective+", effectiveDirective: "+i.effectiveDirective+", ";i.sourceFile&&(u+="location: "+i.sourceFile+", line: "+i.lineNumber+", col: "+i.columnNumber+", "),u+="originalPolicy: "+i.originalPolicy,this.telemeter.captureLog(u,"error"),this.handleCspError(u)},p.prototype.handleCspError=function(i){this.autoInstrument.errorOnContentSecurityPolicy&&this.rollbar.error(i)},p.prototype.deinstrumentContentSecurityPolicy=function(){"addEventListener"in this._document&&this.removeListeners("contentsecuritypolicy")},p.prototype.instrumentContentSecurityPolicy=function(){if("addEventListener"in this._document){var i=this.handleCspEvent.bind(this);this.addListener("contentsecuritypolicy",this._document,"securitypolicyviolation",null,i,!1)}},p.prototype.addListener=function(i,u,s,l,y,v){u.addEventListener?(u.addEventListener(s,y,v),this.eventRemovers[i].push(function(){u.removeEventListener(s,y,v)})):l&&(u.attachEvent(l,y),this.eventRemovers[i].push(function(){u.detachEvent(l,y)}))},p.prototype.removeListeners=function(i){for(;this.eventRemovers[i].length;)this.eventRemovers[i].shift()()},M.exports=p},860:(M,P,S)=>{"use strict";var T=S(702),f=S(303),h=S(802);function o(a,p,_){var i=a.message,u=a.custom;i||(i="Item sent with null or missing arguments.");var s={body:i};u&&(s.extra=T.merge(u)),T.set(a,"data.body",{message:s}),_(null,a)}function e(a){var p=a.stackInfo.stack;return p&&p.length===0&&a._unhandledStackInfo&&a._unhandledStackInfo.stack&&(p=a._unhandledStackInfo.stack),p}function r(a,p,_){var i=a&&a.data.description,u=a&&a.custom,s=e(a),l=f.guessErrorClass(p.message),y={exception:{class:c(p,l[0],_),message:l[1]}};if(i&&(y.exception.description=i),s){var v,b,E,O,d,m,x,w;for(s.length===0&&(y.exception.stack=p.rawStack,y.exception.raw=String(p.rawException)),y.frames=[],x=0;x<s.length;++x)b={filename:(v=s[x]).url?T.sanitizeUrl(v.url):"(unknown)",lineno:v.line||null,method:v.func&&v.func!=="?"?v.func:"[anonymous]",colno:v.column},_.sendFrameUrl&&(b.url=v.url),b.method&&b.method.endsWith&&b.method.endsWith("_rollbar_wrapped")||(E=O=d=null,(m=v.context?v.context.length:0)&&(w=Math.floor(m/2),O=v.context.slice(0,w),E=v.context[w],d=v.context.slice(w)),E&&(b.code=E),(O||d)&&(b.context={},O&&O.length&&(b.context.pre=O),d&&d.length&&(b.context.post=d)),v.args&&(b.args=v.args),y.frames.push(b));y.frames.reverse(),u&&(y.extra=T.merge(u))}return y}function c(a,p,_){return a.name?a.name:_.guessErrorClass?p:"(unknown)"}M.exports={handleDomException:function(a,p,_){if(a.err&&f.Stack(a.err).name==="DOMException"){var i=new Error;i.name=a.err.name,i.message=a.err.message,i.stack=a.err.stack,i.nested=a.err,a.err=i}_(null,a)},handleItemWithError:function(a,p,_){if(a.data=a.data||{},a.err)try{a.stackInfo=a.err._savedStackTrace||f.parse(a.err,a.skipFrames),p.addErrorContext&&function(i){var u=[],s=i.err;for(u.push(s);s.nested||s.cause;)s=s.nested||s.cause,u.push(s);T.addErrorContext(i,u)}(a)}catch(i){h.error("Error while parsing the error object.",i);try{a.message=a.err.message||a.err.description||a.message||String(a.err)}catch(u){a.message=String(a.err)||String(u)}delete a.err}_(null,a)},ensureItemHasSomethingToSay:function(a,p,_){a.message||a.stackInfo||a.custom||_(new Error("No message, stack info, or custom data"),null),_(null,a)},addBaseInfo:function(a,p,_){var i=p.payload&&p.payload.environment||p.environment;a.data=T.merge(a.data,{environment:i,level:a.level,endpoint:p.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:a.uuid,notifier:{name:"rollbar-browser-js",version:p.version},custom:a.custom}),_(null,a)},addRequestInfo:function(a){return function(p,_,i){var u={};a&&a.location&&(u.url=a.location.href,u.query_string=a.location.search);var s="$remote_ip";_.captureIp?_.captureIp!==!0&&(s+="_anonymize"):s=null,s&&(u.user_ip=s),Object.keys(u).length>0&&T.set(p,"data.request",u),i(null,p)}},addClientInfo:function(a){return function(p,_,i){if(!a)return i(null,p);var u=a.navigator||{},s=a.screen||{};T.set(p,"data.client",{runtime_ms:p.timestamp-a._rollbarStartTime,timestamp:Math.round(p.timestamp/1e3),javascript:{browser:u.userAgent,language:u.language,cookie_enabled:u.cookieEnabled,screen:{width:s.width,height:s.height}}}),i(null,p)}},addPluginInfo:function(a){return function(p,_,i){if(!a||!a.navigator)return i(null,p);for(var u,s=[],l=a.navigator.plugins||[],y=0,v=l.length;y<v;++y)u=l[y],s.push({name:u.name,description:u.description});T.set(p,"data.client.javascript.plugins",s),i(null,p)}},addBody:function(a,p,_){a.stackInfo?a.stackInfo.traceChain?function(i,u,s){for(var l=i.stackInfo.traceChain,y=[],v=l.length,b=0;b<v;b++){var E=r(i,l[b],u);y.push(E)}T.set(i,"data.body",{trace_chain:y}),s(null,i)}(a,p,_):function(i,u,s){var l=e(i);if(l){var y=r(i,i.stackInfo,u);T.set(i,"data.body",{trace:y}),s(null,i)}else{var v=i.stackInfo,b=f.guessErrorClass(v.message),E=c(v,b[0],u),O=b[1];i.message=E+": "+O,o(i,0,s)}}(a,p,_):o(a,0,_)},addScrubber:function(a){return function(p,_,i){if(a){var u=_.scrubFields||[],s=_.scrubPaths||[];p.data=a(p.data,u,s)}i(null,p)}}}},477:(M,P,S)=>{"use strict";var T=S(702),f=S(656),h=S(86);function o(e){this.truncation=e}o.prototype.get=function(e,r,c,a,p){a&&T.isFunction(a)||(a=function(){}),T.addParamsAndAccessTokenToPath(e,r,c);var _=T.formatUrl(r);this._makeZoneRequest(e,_,"GET",null,a,p,r.timeout,r.transport)},o.prototype.post=function(e,r,c,a,p){if(a&&T.isFunction(a)||(a=function(){}),!c)return a(new Error("Cannot send empty request"));var _;if((_=this.truncation?this.truncation.truncate(c):T.stringify(c)).error)return a(_.error);var i=_.value,u=T.formatUrl(r);this._makeZoneRequest(e,u,"POST",i,a,p,r.timeout,r.transport)},o.prototype.postJsonPayload=function(e,r,c,a,p){a&&T.isFunction(a)||(a=function(){});var _=T.formatUrl(r);this._makeZoneRequest(e,_,"POST",c,a,p,r.timeout,r.transport)},o.prototype._makeZoneRequest=function(){var e=typeof window!="undefined"&&window||p!==void 0&&p,r=e&&e.Zone&&e.Zone.current,c=Array.prototype.slice.call(arguments);if(r&&r._name==="angular"){var a=r._parent,p=this;a.run(function(){p._makeRequest.apply(void 0,c)})}else this._makeRequest.apply(void 0,c)},o.prototype._makeRequest=function(e,r,c,a,p,_,i,u){if(typeof RollbarProxy!="undefined")return function(s,l){new RollbarProxy().sendJsonPayload(s,function(y){},function(y){l(new Error(y))})}(a,p);u==="fetch"?f(e,r,c,a,p,i):h(e,r,c,a,p,_,i)},M.exports=o},656:(M,P,S)=>{"use strict";var T=S(802),f=S(702);M.exports=function(h,o,e,r,c,a){var p,_;f.isFiniteNumber(a)&&(p=new AbortController,_=setTimeout(function(){p.abort()},a)),fetch(o,{method:e,headers:{"Content-Type":"application/json","X-Rollbar-Access-Token":h,signal:p&&p.signal},body:r}).then(function(i){return _&&clearTimeout(_),i.json()}).then(function(i){c(null,i)}).catch(function(i){T.error(i.message),c(i)})}},86:(M,P,S)=>{"use strict";var T=S(702),f=S(802);function h(o,e){var r=new Error(o);return r.code=e||"ENOTFOUND",r}M.exports=function(o,e,r,c,a,p,_){var i;if(!(i=p?p():function(){var l,y,v=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],b=v.length;for(y=0;y<b;y++)try{l=v[y]();break}catch(E){}return l}()))return a(new Error("No way to send a request"));try{try{var u=function(){try{if(u&&i.readyState===4){u=void 0;var l=T.jsonParse(i.responseText);if((b=i)&&b.status&&b.status===200)return void a(l.error,l.value);if(function(E){return E&&T.isType(E.status,"number")&&E.status>=400&&E.status<600}(i)){if(i.status===403){var y=l.value&&l.value.message;f.error(y)}a(new Error(String(i.status)))}else a(h("XHR response had no status code (likely connection failure)"))}}catch(E){var v;v=E&&E.stack?E:new Error(E),a(v)}var b};i.open(r,e,!0),i.setRequestHeader&&(i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("X-Rollbar-Access-Token",o)),T.isFiniteNumber(_)&&(i.timeout=_),i.onreadystatechange=u,i.send(c)}catch(l){if(typeof XDomainRequest!="undefined"){if(!window||!window.location)return a(new Error("No window available during request, unknown environment"));window.location.href.substring(0,5)==="http:"&&e.substring(0,5)==="https"&&(e="http"+e.substring(5));var s=new XDomainRequest;s.onprogress=function(){},s.ontimeout=function(){a(h("Request timed out","ETIMEDOUT"))},s.onerror=function(){a(new Error("Error during request"))},s.onload=function(){var y=T.jsonParse(s.responseText);a(y.error,y.value)},s.open(r,e,!0),s.send(c)}else a(new Error("Cannot find a method to transport a request"))}}catch(l){a(l)}}},509:M=>{"use strict";M.exports={parse:function(P){var S,T,f={protocol:null,auth:null,host:null,path:null,hash:null,href:P,hostname:null,port:null,pathname:null,search:null,query:null};if((S=P.indexOf("//"))!==-1?(f.protocol=P.substring(0,S),T=S+2):T=0,(S=P.indexOf("@",T))!==-1&&(f.auth=P.substring(T,S),T=S+1),(S=P.indexOf("/",T))===-1){if((S=P.indexOf("?",T))===-1)return(S=P.indexOf("#",T))===-1?f.host=P.substring(T):(f.host=P.substring(T,S),f.hash=P.substring(S)),f.hostname=f.host.split(":")[0],f.port=f.host.split(":")[1],f.port&&(f.port=parseInt(f.port,10)),f;f.host=P.substring(T,S),f.hostname=f.host.split(":")[0],f.port=f.host.split(":")[1],f.port&&(f.port=parseInt(f.port,10)),T=S}else f.host=P.substring(T,S),f.hostname=f.host.split(":")[0],f.port=f.host.split(":")[1],f.port&&(f.port=parseInt(f.port,10)),T=S;if((S=P.indexOf("#",T))===-1?f.path=P.substring(T):(f.path=P.substring(T,S),f.hash=P.substring(S)),f.path){var h=f.path.split("?");f.pathname=h[0],f.query=h[1],f.search=f.query?"?"+f.query:null}return f}}},965:M=>{"use strict";function P(S,T,f){if(T.hasOwnProperty&&T.hasOwnProperty("addEventListener")){for(var h=T.addEventListener;h._rollbarOldAdd&&h.belongsToShim;)h=h._rollbarOldAdd;var o=function(c,a,p){h.call(this,c,S.wrap(a),p)};o._rollbarOldAdd=h,o.belongsToShim=f,T.addEventListener=o;for(var e=T.removeEventListener;e._rollbarOldRemove&&e.belongsToShim;)e=e._rollbarOldRemove;var r=function(c,a,p){e.call(this,c,a&&a._rollbar_wrapped||a,p)};r._rollbarOldRemove=e,r.belongsToShim=f,T.removeEventListener=r}}M.exports=function(S,T,f){if(S){var h,o,e="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(h=0;h<e.length;++h)S[o=e[h]]&&S[o].prototype&&P(T,S[o].prototype,f)}}},948:M=>{"use strict";M.exports={version:"2.26.4",endpoint:"api.rollbar.com/api/1/item/",logLevel:"debug",reportLevel:"debug",uncaughtErrorLevel:"error",maxItems:0,itemsPerMin:60}},303:(M,P,S)=>{"use strict";var T=S(180),f=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function h(){return null}function o(r){var c={};return c._stackFrame=r,c.url=r.fileName,c.line=r.lineNumber,c.func=r.functionName,c.column=r.columnNumber,c.args=r.args,c.context=null,c}function e(r,c){return{stack:function(){var i=[];c=c||0;try{i=T.parse(r)}catch(l){i=[]}for(var u=[],s=c;s<i.length;s++)u.push(new o(i[s]));return u}(),message:r.message,name:(a=r,p=a.name&&a.name.length&&a.name,_=a.constructor.name&&a.constructor.name.length&&a.constructor.name,p&&_?p==="Error"?_:p:p||_),rawStack:r.stack,rawException:r};var a,p,_}M.exports={guessFunctionName:function(){return"?"},guessErrorClass:function(r){if(!r||!r.match)return["Unknown error. There was no error message to display.",""];var c=r.match(f),a="(unknown)";return c&&(a=c[c.length-1],r=(r=r.replace((c[c.length-2]||"")+a+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[a,r]},gatherContext:h,parse:function(r,c){var a=r;if(a.nested||a.cause){for(var p=[];a;)p.push(new e(a,c)),a=a.nested||a.cause,c=0;return p[0].traceChain=p,p[0]}return new e(a,c)},Stack:e,Frame:o}},420:M=>{"use strict";var P=Object.prototype.hasOwnProperty,S=Object.prototype.toString,T=function(f){if(!f||S.call(f)!=="[object Object]")return!1;var h,o=P.call(f,"constructor"),e=f.constructor&&f.constructor.prototype&&P.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!o&&!e)return!1;for(h in f);return h===void 0||P.call(f,h)};M.exports=function f(){var h,o,e,r,c,a={},p=null,_=arguments.length;for(h=0;h<_;h++)if((p=arguments[h])!=null)for(c in p)o=a[c],a!==(e=p[c])&&(e&&T(e)?(r=o&&T(o)?o:{},a[c]=f(r,e)):e!==void 0&&(a[c]=e));return a}},314:(M,P,S)=>{"use strict";var T=S(702);function f(h,o){this.queue=h,this.options=o,this.transforms=[],this.diagnostic={}}f.prototype.configure=function(h){this.queue&&this.queue.configure(h);var o=this.options;return this.options=T.merge(o,h),this},f.prototype.addTransform=function(h){return T.isFunction(h)&&this.transforms.push(h),this},f.prototype.log=function(h,o){if(o&&T.isFunction(o)||(o=function(){}),!this.options.enabled)return o(new Error("Rollbar is not enabled"));this.queue.addPendingItem(h);var e=h.err;this._applyTransforms(h,function(r,c){if(r)return this.queue.removePendingItem(h),o(r,null);this.queue.addItem(c,o,e,h)}.bind(this))},f.prototype._applyTransforms=function(h,o){var e=-1,r=this.transforms.length,c=this.transforms,a=this.options,p=function(_,i){_?o(_,null):++e!==r?c[e](i,a,p):o(null,i)};p(null,h)},M.exports=f},61:(M,P,S)=>{"use strict";var T=S(702);function f(o,e,r){if(!o)return!r;var c,a,p=o.frames;if(!p||p.length===0)return!r;for(var _=e.length,i=p.length,u=0;u<i;u++){if(c=p[u].filename,!T.isType(c,"string"))return!r;for(var s=0;s<_;s++)if(a=e[s],new RegExp(a).test(c))return!0}return!1}function h(o,e,r,c){var a,p,_=!1;r==="blocklist"&&(_=!0);try{if(a=_?e.hostBlockList:e.hostSafeList,p=T.get(o,"body.trace_chain")||[T.get(o,"body.trace")],!a||a.length===0||p.length===0||!p[0])return!_;for(var i=p.length,u=0;u<i;u++)if(f(p[u],a,_))return!0}catch(l){_?e.hostBlockList=null:e.hostSafeList=null;var s=_?"hostBlockList":"hostSafeList";return c.error("Error while reading your configuration's "+s+" option. Removing custom "+s+".",l),!_}return!1}M.exports={checkLevel:function(o,e){var r=o.level,c=T.LEVELS[r]||0,a=e.reportLevel;return!(c<(T.LEVELS[a]||0))},userCheckIgnore:function(o){return function(e,r){var c=!!e._isUncaught;delete e._isUncaught;var a=e._originalArgs;delete e._originalArgs;try{T.isFunction(r.onSendCallback)&&r.onSendCallback(c,a,e)}catch(p){r.onSendCallback=null,o.error("Error while calling onSendCallback, removing",p)}try{if(T.isFunction(r.checkIgnore)&&r.checkIgnore(c,a,e))return!1}catch(p){r.checkIgnore=null,o.error("Error while calling custom checkIgnore(), removing",p)}return!0}},urlIsNotBlockListed:function(o){return function(e,r){return!h(e,r,"blocklist",o)}},urlIsSafeListed:function(o){return function(e,r){return h(e,r,"safelist",o)}},messageIsIgnored:function(o){return function(e,r){var c,a,p,_,i,u;try{if(!(p=r.ignoredMessages)||p.length===0||(u=function(s){var l=s.body,y=[];if(l.trace_chain)for(var v=l.trace_chain,b=0;b<v.length;b++){var E=v[b];y.push(T.get(E,"exception.message"))}return l.trace&&y.push(T.get(l,"trace.exception.message")),l.message&&y.push(T.get(l,"message.body")),y}(e),u.length===0))return!0;for(_=p.length,c=0;c<_;c++)for(i=new RegExp(p[c],"gi"),a=0;a<u.length;a++)if(i.test(u[a]))return!1}catch(s){r.ignoredMessages=null,o.error("Error while reading your configuration's ignoredMessages option. Removing custom ignoredMessages.")}return!0}}}},358:(M,P,S)=>{"use strict";var T=S(702);function f(o,e,r,c){this.rateLimiter=o,this.api=e,this.logger=r,this.options=c,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}f.prototype.configure=function(o){this.api&&this.api.configure(o);var e=this.options;return this.options=T.merge(e,o),this},f.prototype.addPredicate=function(o){return T.isFunction(o)&&this.predicates.push(o),this},f.prototype.addPendingItem=function(o){this.pendingItems.push(o)},f.prototype.removePendingItem=function(o){var e=this.pendingItems.indexOf(o);e!==-1&&this.pendingItems.splice(e,1)},f.prototype.addItem=function(o,e,r,c){e&&T.isFunction(e)||(e=function(){});var a=this._applyPredicates(o);if(a.stop)return this.removePendingItem(c),void e(a.err);if(this._maybeLog(o,r),this.removePendingItem(c),this.options.transmit){this.pendingRequests.push(o);try{this._makeApiRequest(o,function(p,_){this._dequeuePendingRequest(o),e(p,_)}.bind(this))}catch(p){this._dequeuePendingRequest(o),e(p)}}else e(new Error("Transmit disabled"))},f.prototype.wait=function(o){T.isFunction(o)&&(this.waitCallback=o,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval(function(){this._maybeCallWait()}.bind(this),500)))},f.prototype._applyPredicates=function(o){for(var e=null,r=0,c=this.predicates.length;r<c;r++)if(!(e=this.predicates[r](o,this.options))||e.err!==void 0)return{stop:!0,err:e.err};return{stop:!1,err:null}},f.prototype._makeApiRequest=function(o,e){var r=this.rateLimiter.shouldSend(o);r.shouldSend?this.api.postItem(o,function(c,a){c?this._maybeRetry(c,o,e):e(c,a)}.bind(this)):r.error?e(r.error):this.api.postItem(r.payload,e)};var h=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"];f.prototype._maybeRetry=function(o,e,r){var c=!1;if(this.options.retryInterval){for(var a=0,p=h.length;a<p;a++)if(o.code===h[a]){c=!0;break}c&&T.isFiniteNumber(this.options.maxRetries)&&(e.retries=e.retries?e.retries+1:1,e.retries>this.options.maxRetries&&(c=!1))}c?this._retryApiRequest(e,r):r(o)},f.prototype._retryApiRequest=function(o,e){this.retryQueue.push({item:o,callback:e}),this.retryHandle||(this.retryHandle=setInterval(function(){for(;this.retryQueue.length;){var r=this.retryQueue.shift();this._makeApiRequest(r.item,r.callback)}}.bind(this),this.options.retryInterval))},f.prototype._dequeuePendingRequest=function(o){var e=this.pendingRequests.indexOf(o);e!==-1&&(this.pendingRequests.splice(e,1),this._maybeCallWait())},f.prototype._maybeLog=function(o,e){if(this.logger&&this.options.verbose){var r=e;if(r=(r=r||T.get(o,"body.trace.exception.message"))||T.get(o,"body.trace_chain.0.exception.message"))return void this.logger.error(r);(r=T.get(o,"body.message.body"))&&this.logger.log(r)}},f.prototype._maybeCallWait=function(){return!(!T.isFunction(this.waitCallback)||this.pendingItems.length!==0||this.pendingRequests.length!==0||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),0))},M.exports=f},790:(M,P,S)=>{"use strict";var T=S(702);function f(e){this.startTime=T.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(e)}function h(e,r,c){return!e.ignoreRateLimit&&r>=1&&c>r}function o(e,r,c,a,p,_,i){var u=null;return c&&(c=new Error(c)),c||a||(u=function(s,l,y,v,b){var E=l.environment||l.payload&&l.payload.environment,O={body:{message:{body:b?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.",extra:{maxItems:y,itemsPerMinute:v}}},language:"javascript",environment:E,notifier:{version:l.notifier&&l.notifier.version||l.version}};return s==="browser"?(O.platform="browser",O.framework="browser-js",O.notifier.name="rollbar-browser-js"):s==="server"?(O.framework=l.framework||"node-js",O.notifier.name=l.notifier.name):s==="react-native"&&(O.framework=l.framework||"react-native",O.notifier.name=l.notifier.name),O}(e,r,p,_,i)),{error:c,shouldSend:a,payload:u}}f.globalSettings={startTime:T.now(),maxItems:void 0,itemsPerMinute:void 0},f.prototype.configureGlobal=function(e){e.startTime!==void 0&&(f.globalSettings.startTime=e.startTime),e.maxItems!==void 0&&(f.globalSettings.maxItems=e.maxItems),e.itemsPerMinute!==void 0&&(f.globalSettings.itemsPerMinute=e.itemsPerMinute)},f.prototype.shouldSend=function(e,r){var c=(r=r||T.now())-this.startTime;(c<0||c>=6e4)&&(this.startTime=r,this.perMinCounter=0);var a=f.globalSettings.maxItems,p=f.globalSettings.itemsPerMinute;if(h(e,a,this.counter))return o(this.platform,this.platformOptions,a+" max items reached",!1);if(h(e,p,this.perMinCounter))return o(this.platform,this.platformOptions,p+" items per minute reached",!1);this.counter++,this.perMinCounter++;var _=!h(e,a,this.counter),i=_;return _=_&&!h(e,p,this.perMinCounter),o(this.platform,this.platformOptions,null,_,a,p,i)},f.prototype.setPlatformOptions=function(e,r){this.platform=e,this.platformOptions=r},M.exports=f},562:(M,P,S)=>{"use strict";var T=S(790),f=S(358),h=S(314),o=S(702);function e(a,p,_,i,u){this.options=o.merge(a),this.logger=_,e.rateLimiter.configureGlobal(this.options),e.rateLimiter.setPlatformOptions(u,this.options),this.api=p,this.queue=new f(e.rateLimiter,p,_,this.options);var s=this.options.tracer||null;c(s)?(this.tracer=s,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new h(this.queue,this.options),this.telemeter=i,r(a),this.lastError=null,this.lastErrorHash="none"}function r(a){a.stackTraceLimit&&(Error.stackTraceLimit=a.stackTraceLimit)}function c(a){if(!a||!a.scope||typeof a.scope!="function")return!1;var p=a.scope();return!(!p||!p.active||typeof p.active!="function")}e.rateLimiter=new T({maxItems:0,itemsPerMinute:60}),e.prototype.global=function(a){return e.rateLimiter.configureGlobal(a),this},e.prototype.configure=function(a,p){var _=this.options,i={};p&&(i={payload:p}),this.options=o.merge(_,a,i);var u=this.options.tracer||null;return c(u)?(this.tracer=u,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),r(a),this.global(this.options),c(a.tracer)&&(this.tracer=a.tracer),this},e.prototype.log=function(a){var p=this._defaultLogLevel();return this._log(p,a)},e.prototype.debug=function(a){this._log("debug",a)},e.prototype.info=function(a){this._log("info",a)},e.prototype.warn=function(a){this._log("warning",a)},e.prototype.warning=function(a){this._log("warning",a)},e.prototype.error=function(a){this._log("error",a)},e.prototype.critical=function(a){this._log("critical",a)},e.prototype.wait=function(a){this.queue.wait(a)},e.prototype.captureEvent=function(a,p,_){return this.telemeter&&this.telemeter.captureEvent(a,p,_)},e.prototype.captureDomContentLoaded=function(a){return this.telemeter&&this.telemeter.captureDomContentLoaded(a)},e.prototype.captureLoad=function(a){return this.telemeter&&this.telemeter.captureLoad(a)},e.prototype.buildJsonPayload=function(a){return this.api.buildJsonPayload(a)},e.prototype.sendJsonPayload=function(a){this.api.postJsonPayload(a)},e.prototype._log=function(a,p){var _;if(p.callback&&(_=p.callback,delete p.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(p)){if(_){var i=new Error("ignored identical item");i.item=p,_(i)}}else try{this._addTracingInfo(p),p.level=p.level||a,this.telemeter&&this.telemeter._captureRollbarItem(p),p.telemetryEvents=this.telemeter&&this.telemeter.copyEvents()||[],this.notifier.log(p,_)}catch(u){_&&_(u),this.logger.error(u)}},e.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},e.prototype._sameAsLastError=function(a){if(!a._isUncaught)return!1;var p=function(_){var i=_.message||"",u=(_.err||{}).stack||String(_.err);return i+"::"+u}(a);return this.lastErrorHash===p||(this.lastError=a.err,this.lastErrorHash=p,!1)},e.prototype._addTracingInfo=function(a){if(this.tracer){var p=this.tracer.scope().active();if(function(u){if(!u||!u.context||typeof u.context!="function")return!1;var s=u.context();return!!(s&&s.toSpanId&&s.toTraceId&&typeof s.toSpanId=="function"&&typeof s.toTraceId=="function")}(p)){p.setTag("rollbar.error_uuid",a.uuid),p.setTag("rollbar.has_error",!0),p.setTag("error",!0),p.setTag("rollbar.item_url",`https://rollbar.com/item/uuid/?uuid=${a.uuid}`),p.setTag("rollbar.occurrence_url",`https://rollbar.com/occurrence/uuid/?uuid=${a.uuid}`);var _=p.context().toSpanId(),i=p.context().toTraceId();a.custom?(a.custom.opentracing_span_id=_,a.custom.opentracing_trace_id=i):a.custom={opentracing_span_id:_,opentracing_trace_id:i}}}},M.exports=e},369:(M,P,S)=>{"use strict";var T=S(702),f=S(267);function h(o,e){var r=e.split("."),c=r.length-1;try{for(var a=0;a<=c;++a)a<c?o=o[r[a]]:o[r[a]]=T.redact()}catch(p){}}M.exports=function(o,e,r){if(e=e||[],r)for(var c=0;c<r.length;++c)h(o,r[c]);var a=function(i){for(var u,s=[],l=0;l<i.length;++l)u="^\\[?(%5[bB])?"+i[l]+"\\[?(%5[bB])?\\]?(%5[dD])?$",s.push(new RegExp(u,"i"));return s}(e),p=function(i){for(var u,s=[],l=0;l<i.length;++l)u="\\[?(%5[bB])?"+i[l]+"\\[?(%5[bB])?\\]?(%5[dD])?",s.push(new RegExp("("+u+"=)([^&\\n]+)","igm"));return s}(e);function _(i,u){return u+T.redact()}return f(o,function i(u,s,l){var y=function(v,b){var E;for(E=0;E<a.length;++E)if(a[E].test(v)){b=T.redact();break}return b}(u,s);return y===s?T.isType(s,"object")||T.isType(s,"array")?f(s,i,l):function(v){var b;if(T.isType(v,"string"))for(b=0;b<p.length;++b)v=v.replace(p[b],_);return v}(y):y})}},773:(M,P,S)=>{"use strict";var T=S(702),f=100;function h(e){this.queue=[],this.options=T.merge(e);var r=this.options.maxTelemetryEvents||f;this.maxQueueSize=Math.max(0,Math.min(r,f))}function o(e,r){return r||{error:"error",manual:"info"}[e]||"info"}h.prototype.configure=function(e){var r=this.options;this.options=T.merge(r,e);var c=this.options.maxTelemetryEvents||f,a=Math.max(0,Math.min(c,f)),p=0;this.queue.length>a&&(p=this.queue.length-a),this.maxQueueSize=a,this.queue.splice(0,p)},h.prototype.copyEvents=function(){var e=Array.prototype.slice.call(this.queue,0);if(T.isFunction(this.options.filterTelemetry))try{for(var r=e.length;r--;)this.options.filterTelemetry(e[r])&&e.splice(r,1)}catch(c){this.options.filterTelemetry=null}return e},h.prototype.capture=function(e,r,c,a,p){var _={level:o(e,c),type:e,timestamp_ms:p||T.now(),body:r,source:"client"};a&&(_.uuid=a);try{if(T.isFunction(this.options.filterTelemetry)&&this.options.filterTelemetry(_))return!1}catch(i){this.options.filterTelemetry=null}return this.push(_),_},h.prototype.captureEvent=function(e,r,c,a){return this.capture(e,r,c,a)},h.prototype.captureError=function(e,r,c,a){var p={message:e.message||String(e)};return e.stack&&(p.stack=e.stack),this.capture("error",p,r,c,a)},h.prototype.captureLog=function(e,r,c,a){return this.capture("log",{message:e},r,c,a)},h.prototype.captureNetwork=function(e,r,c,a){r=r||"xhr",e.subtype=e.subtype||r,a&&(e.request=a);var p=this.levelFromStatus(e.status_code);return this.capture("network",e,p,c)},h.prototype.levelFromStatus=function(e){return e>=200&&e<400?"info":e===0||e>=400?"error":"info"},h.prototype.captureDom=function(e,r,c,a,p){var _={subtype:e,element:r};return c!==void 0&&(_.value=c),a!==void 0&&(_.checked=a),this.capture("dom",_,"info",p)},h.prototype.captureNavigation=function(e,r,c){return this.capture("navigation",{from:e,to:r},"info",c)},h.prototype.captureDomContentLoaded=function(e){return this.capture("navigation",{subtype:"DOMContentLoaded"},"info",void 0,e&&e.getTime())},h.prototype.captureLoad=function(e){return this.capture("navigation",{subtype:"load"},"info",void 0,e&&e.getTime())},h.prototype.captureConnectivityChange=function(e,r){return this.captureNetwork({change:e},"connectivity",r)},h.prototype._captureRollbarItem=function(e){if(this.options.includeItemsInTelemetry)return e.err?this.captureError(e.err,e.level,e.uuid,e.timestamp):e.message?this.captureLog(e.message,e.level,e.uuid,e.timestamp):e.custom?this.capture("log",e.custom,e.level,e.uuid,e.timestamp):void 0},h.prototype.push=function(e){this.queue.push(e),this.queue.length>this.maxQueueSize&&this.queue.shift()},M.exports=h},417:(M,P,S)=>{"use strict";var T=S(702);function f(h,o){T.isFunction(h[o])&&(h[o]=h[o].toString())}M.exports={itemToPayload:function(h,o,e){var r=h.data;h._isUncaught&&(r._isUncaught=!0),h._originalArgs&&(r._originalArgs=h._originalArgs),e(null,r)},addPayloadOptions:function(h,o,e){var r=o.payload||{};r.body&&delete r.body,h.data=T.merge(h.data,r),e(null,h)},addTelemetryData:function(h,o,e){h.telemetryEvents&&T.set(h,"data.body.telemetry",h.telemetryEvents),e(null,h)},addMessageWithError:function(h,o,e){if(h.message){var r="data.body.trace_chain.0",c=T.get(h,r);if(c||(r="data.body.trace",c=T.get(h,r)),c){if(!c.exception||!c.exception.description)return T.set(h,r+".exception.description",h.message),void e(null,h);var a=T.get(h,r+".extra")||{},p=T.merge(a,{message:h.message});T.set(h,r+".extra",p)}e(null,h)}else e(null,h)},userTransform:function(h){return function(o,e,r){var c=T.merge(o),a=null;try{T.isFunction(e.transform)&&(a=e.transform(c.data,o))}catch(p){return e.transform=null,h.error("Error while calling custom transform() function. Removing custom transform().",p),void r(null,o)}T.isPromise(a)?a.then(function(p){p&&(c.data=p),r(null,c)},function(p){r(p,o)}):r(null,c)}},addConfigToPayload:function(h,o,e){if(!o.sendConfig)return e(null,h);var r=T.get(h,"data.custom")||{};r._rollbarConfig=o,h.data.custom=r,e(null,h)},addConfiguredOptions:function(h,o,e){var r=o._configuredOptions;f(r,"transform"),f(r,"checkIgnore"),f(r,"onSendCallback"),delete r.accessToken,h.data.notifier.configured_options=r,e(null,h)},addDiagnosticKeys:function(h,o,e){var r=T.merge(h.notifier.client.notifier.diagnostic,h.diagnostic);if(T.get(h,"err._isAnonymous")&&(r.is_anonymous=!0),h._isUncaught&&(r.is_uncaught=h._isUncaught),h.err)try{r.raw_error={message:h.err.message,name:h.err.name,constructor_name:h.err.constructor&&h.err.constructor.name,filename:h.err.fileName,line:h.err.lineNumber,column:h.err.columnNumber,stack:h.err.stack}}catch(c){r.raw_error={failed:String(c)}}h.data.notifier.diagnostic=T.merge(h.data.notifier.diagnostic,r),e(null,h)}}},473:(M,P,S)=>{"use strict";var T=S(702),f=S(267);function h(i,u){return[i,T.stringify(i,u)]}function o(i,u){var s=i.length;return s>2*u?i.slice(0,u).concat(i.slice(s-u)):i}function e(i,u,s){s=s===void 0?30:s;var l,y=i.data.body;if(y.trace_chain)for(var v=y.trace_chain,b=0;b<v.length;b++)l=o(l=v[b].frames,s),v[b].frames=l;else y.trace&&(l=o(l=y.trace.frames,s),y.trace.frames=l);return[i,T.stringify(i,u)]}function r(i,u){return u&&u.length>i?u.slice(0,i-3).concat("..."):u}function c(i,u,s){return u=f(u,function l(y,v,b){switch(T.typeName(v)){case"string":return r(i,v);case"object":case"array":return f(v,l,b);default:return v}}),[u,T.stringify(u,s)]}function a(i){return i.exception&&(delete i.exception.description,i.exception.message=r(255,i.exception.message)),i.frames=o(i.frames,1),i}function p(i,u){var s=i.data.body;if(s.trace_chain)for(var l=s.trace_chain,y=0;y<l.length;y++)l[y]=a(l[y]);else s.trace&&(s.trace=a(s.trace));return[i,T.stringify(i,u)]}function _(i,u){return T.maxByteSize(i)>u}M.exports={truncate:function(i,u,s){s=s===void 0?524288:s;for(var l,y,v,b=[h,e,c.bind(null,1024),c.bind(null,512),c.bind(null,256),p];l=b.shift();)if(i=(y=l(i,u))[0],(v=y[1]).error||!_(v.value,s))return v;return v},raw:h,truncateFrames:e,truncateStrings:c,maybeTruncateValue:r}},702:(M,P,S)=>{"use strict";var T=S(420),f={};function h(b,E){return E===o(b)}function o(b){var E=typeof b;return E!=="object"?E:b?b instanceof Error?"error":{}.toString.call(b).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function e(b){return h(b,"function")}function r(b){var E=Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),O=RegExp("^"+E+"$");return c(b)&&O.test(b)}function c(b){var E=typeof b;return b!=null&&(E=="object"||E=="function")}function a(){var b=v();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(E){var O=(b+16*Math.random())%16|0;return b=Math.floor(b/16),(E==="x"?O:7&O|8).toString(16)})}var p={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function _(b,E){var O,d;try{O=f.stringify(b)}catch(m){if(E&&e(E))try{O=E(b)}catch(x){d=x}else d=m}return{error:d,value:O}}function i(b,E){return function(O,d){try{E(O,d)}catch(m){b.error(m)}}}function u(b){return function E(O,d){var m,x,w,C={};try{for(x in O)(m=O[x])&&(h(m,"object")||h(m,"array"))?d.includes(m)?C[x]="Removed circular reference: "+o(m):((w=d.slice()).push(m),C[x]=E(m,w)):C[x]=m}catch(k){C="Failed cloning custom data: "+k.message}return C}(b,[b])}var s=["log","network","dom","navigation","error","manual"],l=["critical","error","warning","info","debug"];function y(b,E){for(var O=0;O<b.length;++O)if(b[O]===E)return!0;return!1}function v(){return Date.now?+Date.now():+new Date}M.exports={addParamsAndAccessTokenToPath:function(b,E,O){(O=O||{}).access_token=b;var d,m=[];for(d in O)Object.prototype.hasOwnProperty.call(O,d)&&m.push([d,O[d]].join("="));var x="?"+m.sort().join("&");(E=E||{}).path=E.path||"";var w,C=E.path.indexOf("?"),k=E.path.indexOf("#");C!==-1&&(k===-1||k>C)?(w=E.path,E.path=w.substring(0,C)+x+"&"+w.substring(C+1)):k!==-1?(w=E.path,E.path=w.substring(0,k)+x+w.substring(k)):E.path=E.path+x},createItem:function(b,E,O,d,m){for(var x,w,C,k,N,L,U=[],X=[],B=0,Y=b.length;B<Y;++B){var W=o(L=b[B]);switch(X.push(W),W){case"undefined":break;case"string":x?U.push(L):x=L;break;case"function":k=i(E,L);break;case"date":U.push(L);break;case"error":case"domexception":case"exception":w?U.push(L):w=L;break;case"object":case"array":if(L instanceof Error||typeof DOMException!="undefined"&&L instanceof DOMException){w?U.push(L):w=L;break}if(d&&W==="object"&&!N){for(var it=0,ft=d.length;it<ft;++it)if(L[d[it]]!==void 0){N=L;break}if(N)break}C?U.push(L):C=L;break;default:if(L instanceof Error||typeof DOMException!="undefined"&&L instanceof DOMException){w?U.push(L):w=L;break}U.push(L)}}C&&(C=u(C)),U.length>0&&(C||(C=u({})),C.extraArgs=u(U));var z={message:x,err:w,custom:C,timestamp:v(),callback:k,notifier:O,diagnostic:{},uuid:a()};return function(F,J){J&&J.level!==void 0&&(F.level=J.level,delete J.level),J&&J.skipFrames!==void 0&&(F.skipFrames=J.skipFrames,delete J.skipFrames)}(z,C),d&&N&&(z.request=N),m&&(z.lambdaContext=m),z._originalArgs=b,z.diagnostic.original_arg_types=X,z},addErrorContext:function(b,E){var O=b.data.custom||{},d=!1;try{for(var m=0;m<E.length;++m)E[m].hasOwnProperty("rollbarContext")&&(O=T(O,u(E[m].rollbarContext)),d=!0);d&&(b.data.custom=O)}catch(x){b.diagnostic.error_context="Failed: "+x.message}},createTelemetryEvent:function(b){for(var E,O,d,m,x=0,w=b.length;x<w;++x)switch(o(m=b[x])){case"string":!E&&y(s,m)?E=m:!d&&y(l,m)&&(d=m);break;case"object":O=m}return{type:E||"manual",metadata:O||{},level:d}},filterIp:function(b,E){if(b&&b.user_ip&&E!==!0){var O=b.user_ip;if(E)try{var d;if(O.indexOf(".")!==-1)(d=O.split(".")).pop(),d.push("0"),O=d.join(".");else if(O.indexOf(":")!==-1){if((d=O.split(":")).length>2){var m=d.slice(0,3),x=m[2].indexOf("/");x!==-1&&(m[2]=m[2].substring(0,x)),O=m.concat("0000:0000:0000:0000:0000").join(":")}}else O=null}catch(w){O=null}else O=null;b.user_ip=O}},formatArgsAsString:function(b){var E,O,d,m=[];for(E=0,O=b.length;E<O;++E){switch(o(d=b[E])){case"object":(d=(d=_(d)).error||d.value).length>500&&(d=d.substr(0,497)+"...");break;case"null":d="null";break;case"undefined":d="undefined";break;case"symbol":d=d.toString()}m.push(d)}return m.join(" ")},formatUrl:function(b,E){if(!(E=E||b.protocol)&&b.port&&(b.port===80?E="http:":b.port===443&&(E="https:")),E=E||"https:",!b.hostname)return null;var O=E+"//"+b.hostname;return b.port&&(O=O+":"+b.port),b.path&&(O+=b.path),O},get:function(b,E){if(b){var O=E.split("."),d=b;try{for(var m=0,x=O.length;m<x;++m)d=d[O[m]]}catch(w){d=void 0}return d}},handleOptions:function(b,E,O,d){var m=T(b,E,O);return m=function(x,w){return x.hostWhiteList&&!x.hostSafeList&&(x.hostSafeList=x.hostWhiteList,x.hostWhiteList=void 0,w&&w.log("hostWhiteList is deprecated. Use hostSafeList.")),x.hostBlackList&&!x.hostBlockList&&(x.hostBlockList=x.hostBlackList,x.hostBlackList=void 0,w&&w.log("hostBlackList is deprecated. Use hostBlockList.")),x}(m,d),!E||E.overwriteScrubFields||E.scrubFields&&(m.scrubFields=(b.scrubFields||[]).concat(E.scrubFields)),m},isError:function(b){return h(b,"error")||h(b,"exception")},isFiniteNumber:function(b){return Number.isFinite(b)},isFunction:e,isIterable:function(b){var E=o(b);return E==="object"||E==="array"},isNativeFunction:r,isObject:c,isString:function(b){return typeof b=="string"||b instanceof String},isType:h,isPromise:function(b){return c(b)&&h(b.then,"function")},jsonParse:function(b){var E,O;try{E=f.parse(b)}catch(d){O=d}return{error:O,value:E}},LEVELS:{debug:0,info:1,warning:2,error:3,critical:4},makeUnhandledStackInfo:function(b,E,O,d,m,x,w,C){var k={url:E||"",line:O,column:d};k.func=C.guessFunctionName(k.url,k.line),k.context=C.gatherContext(k.url,k.line);var N=typeof document!="undefined"&&document&&document.location&&document.location.href,L=typeof window!="undefined"&&window&&window.navigator&&window.navigator.userAgent;return{mode:x,message:m?String(m):b||w,url:N,stack:[k],useragent:L}},merge:T,now:v,redact:function(){return"********"},RollbarJSON:f,sanitizeUrl:function(b){var E=function(O){if(h(O,"string")){for(var d=p,m=d.parser[d.strictMode?"strict":"loose"].exec(O),x={},w=0,C=d.key.length;w<C;++w)x[d.key[w]]=m[w]||"";return x[d.q.name]={},x[d.key[12]].replace(d.q.parser,function(k,N,L){N&&(x[d.q.name][N]=L)}),x}}(b);return E?(E.anchor===""&&(E.source=E.source.replace("#","")),b=E.source.replace("?"+E.query,"")):"(unknown)"},set:function(b,E,O){if(b){var d=E.split("."),m=d.length;if(!(m<1))if(m!==1)try{for(var x=b[d[0]]||{},w=x,C=1;C<m-1;++C)x[d[C]]=x[d[C]]||{},x=x[d[C]];x[d[m-1]]=O,b[d[0]]=w}catch(k){return}else b[d[0]]=O}},setupJSON:function(b){e(f.stringify)&&e(f.parse)||(h(JSON,"undefined")||(b?(r(JSON.stringify)&&(f.stringify=JSON.stringify),r(JSON.parse)&&(f.parse=JSON.parse)):(e(JSON.stringify)&&(f.stringify=JSON.stringify),e(JSON.parse)&&(f.parse=JSON.parse))),e(f.stringify)&&e(f.parse)||b&&b(f))},stringify:_,maxByteSize:function(b){for(var E=0,O=b.length,d=0;d<O;d++){var m=b.charCodeAt(d);m<128?E+=1:m<2048?E+=2:m<65536&&(E+=3)}return E},typeName:o,uuid4:a}},650:M=>{"use strict";function P(T){return typeof T!="string"&&(T=String(T)),T.toLowerCase()}function S(T){this.map={},T instanceof S?T.forEach(function(f,h){this.append(h,f)},this):Array.isArray(T)?T.forEach(function(f){this.append(f[0],f[1])},this):T&&Object.getOwnPropertyNames(T).forEach(function(f){this.append(f,T[f])},this)}S.prototype.append=function(T,f){T=P(T),f=function(o){return typeof o!="string"&&(o=String(o)),o}(f);var h=this.map[T];this.map[T]=h?h+", "+f:f},S.prototype.get=function(T){return T=P(T),this.has(T)?this.map[T]:null},S.prototype.has=function(T){return this.map.hasOwnProperty(P(T))},S.prototype.forEach=function(T,f){for(var h in this.map)this.map.hasOwnProperty(h)&&T.call(f,this.map[h],h,this)},S.prototype.entries=function(){var T=[];return this.forEach(function(f,h){T.push([h,f])}),function(f){return{next:function(){var h=f.shift();return{done:h===void 0,value:h}}}}(T)},M.exports=function(T){return typeof Headers=="undefined"?new S(T):new Headers(T)}},876:(M,P,S)=>{"use strict";var T=S(708);M.exports=T},297:M=>{"use strict";M.exports=function(P,S,T,f,h){var o=P[S];P[S]=T(o),f&&f[h].push([P,S,o])}},267:(M,P,S)=>{"use strict";var T=S(702);M.exports=function(f,h,o){var e,r,c,a,p=T.isType(f,"object"),_=T.isType(f,"array"),i=[];if(o=o||{obj:[],mapped:[]},p){if(a=o.obj.indexOf(f),p&&a!==-1)return o.mapped[a]||o.obj[a];o.obj.push(f),a=o.obj.length-1}if(p)for(e in f)Object.prototype.hasOwnProperty.call(f,e)&&i.push(e);else if(_)for(c=0;c<f.length;++c)i.push(c);var u=p?{}:[],s=!0;for(c=0;c<i.length;++c)r=f[e=i[c]],u[e]=h(e,r,o),s=s&&u[e]===f[e];return p&&!s&&(o.mapped[a]=u),s?f:u}},708:M=>{M.exports=function(P){var S,T,f,h,o,e,r,c,a,p,_,i,u,s=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function l(E){return E<10?"0"+E:E}function y(){return this.valueOf()}function v(E){return s.lastIndex=0,s.test(E)?'"'+E.replace(s,function(O){var d=f[O];return typeof d=="string"?d:"\\u"+("0000"+O.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+E+'"'}function b(E,O){var d,m,x,w,C,k=S,N=O[E];switch(N&&typeof N=="object"&&typeof N.toJSON=="function"&&(N=N.toJSON(E)),typeof h=="function"&&(N=h.call(O,E,N)),typeof N){case"string":return v(N);case"number":return isFinite(N)?String(N):"null";case"boolean":case"null":return String(N);case"object":if(!N)return"null";if(S+=T,C=[],Object.prototype.toString.apply(N)==="[object Array]"){for(w=N.length,d=0;d<w;d+=1)C[d]=b(d,N)||"null";return x=C.length===0?"[]":S?`[
`+S+C.join(`,
`+S)+`
`+k+"]":"["+C.join(",")+"]",S=k,x}if(h&&typeof h=="object")for(w=h.length,d=0;d<w;d+=1)typeof h[d]=="string"&&(x=b(m=h[d],N))&&C.push(v(m)+(S?": ":":")+x);else for(m in N)Object.prototype.hasOwnProperty.call(N,m)&&(x=b(m,N))&&C.push(v(m)+(S?": ":":")+x);return x=C.length===0?"{}":S?`{
`+S+C.join(`,
`+S)+`
`+k+"}":"{"+C.join(",")+"}",S=k,x}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+l(this.getUTCMonth()+1)+"-"+l(this.getUTCDate())+"T"+l(this.getUTCHours())+":"+l(this.getUTCMinutes())+":"+l(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=y,Number.prototype.toJSON=y,String.prototype.toJSON=y),typeof P.stringify!="function"&&(f={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},P.stringify=function(E,O,d){var m;if(S="",T="",typeof d=="number")for(m=0;m<d;m+=1)T+=" ";else typeof d=="string"&&(T=d);if(h=O,O&&typeof O!="function"&&(typeof O!="object"||typeof O.length!="number"))throw new Error("JSON.stringify");return b("",{"":E})}),typeof P.parse!="function"&&(P.parse=(p={"\\":"\\",'"':'"',"/":"/",t:" ",n:`
`,r:"\r",f:"\f",b:"\b"},_={go:function(){o="ok"},firstokey:function(){c=a,o="colon"},okey:function(){c=a,o="colon"},ovalue:function(){o="ocomma"},firstavalue:function(){o="acomma"},avalue:function(){o="acomma"}},i={go:function(){o="ok"},ovalue:function(){o="ocomma"},firstavalue:function(){o="acomma"},avalue:function(){o="acomma"}},u={"{":{go:function(){e.push({state:"ok"}),r={},o="firstokey"},ovalue:function(){e.push({container:r,state:"ocomma",key:c}),r={},o="firstokey"},firstavalue:function(){e.push({container:r,state:"acomma"}),r={},o="firstokey"},avalue:function(){e.push({container:r,state:"acomma"}),r={},o="firstokey"}},"}":{firstokey:function(){var E=e.pop();a=r,r=E.container,c=E.key,o=E.state},ocomma:function(){var E=e.pop();r[c]=a,a=r,r=E.container,c=E.key,o=E.state}},"[":{go:function(){e.push({state:"ok"}),r=[],o="firstavalue"},ovalue:function(){e.push({container:r,state:"ocomma",key:c}),r=[],o="firstavalue"},firstavalue:function(){e.push({container:r,state:"acomma"}),r=[],o="firstavalue"},avalue:function(){e.push({container:r,state:"acomma"}),r=[],o="firstavalue"}},"]":{firstavalue:function(){var E=e.pop();a=r,r=E.container,c=E.key,o=E.state},acomma:function(){var E=e.pop();r.push(a),a=r,r=E.container,c=E.key,o=E.state}},":":{colon:function(){if(Object.hasOwnProperty.call(r,c))throw new SyntaxError("Duplicate key '"+c+'"');o="ovalue"}},",":{ocomma:function(){r[c]=a,o="okey"},acomma:function(){r.push(a),o="avalue"}},true:{go:function(){a=!0,o="ok"},ovalue:function(){a=!0,o="ocomma"},firstavalue:function(){a=!0,o="acomma"},avalue:function(){a=!0,o="acomma"}},false:{go:function(){a=!1,o="ok"},ovalue:function(){a=!1,o="ocomma"},firstavalue:function(){a=!1,o="acomma"},avalue:function(){a=!1,o="acomma"}},null:{go:function(){a=null,o="ok"},ovalue:function(){a=null,o="ocomma"},firstavalue:function(){a=null,o="acomma"},avalue:function(){a=null,o="acomma"}}},function(E,O){var d,m,x=/^[\u0020\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;o="go",e=[];try{for(;d=x.exec(E);)d[1]?u[d[1]][o]():d[2]?(a=+d[2],i[o]()):(m=d[3],a=m.replace(/\\(?:u(.{4})|([^u]))/g,function(w,C,k){return C?String.fromCharCode(parseInt(C,16)):p[k]}),_[o]()),E=E.slice(d[0].length)}catch(w){o=w}if(o!=="ok"||/[^\u0020\t\n\r]/.test(E))throw o instanceof SyntaxError?o:new SyntaxError("JSON");return typeof O=="function"?function w(C,k){var N,L,U=C[k];if(U&&typeof U=="object")for(N in a)Object.prototype.hasOwnProperty.call(U,N)&&((L=w(U,N))!==void 0?U[N]=L:delete U[N]);return O.call(C,k,U)}({"":a},""):a}))}}},I={},function M(P){var S=I[P];if(S!==void 0)return S.exports;var T=I[P]={exports:{}};return G[P].call(T.exports,T,T.exports,M),T.exports}(409);var G,I})},72344:function(Z,G,I){"use strict";I.d(G,{zx:function(){return Ss},f:function(){return $s},iz:function(){return ws},ug:function(){return na},AL:function(){return Ks},Y7:function(){return Ds}});var M=I(51865),P=I.n(M),S=I(52983),T=I(27860),f=I.n(T),h=I(39447),o=I.n(h),e=I(59197);function r(n,t,g){return t=E(t),m(n,c()?Reflect.construct(t,g||[],E(n).constructor):t.apply(n,g))}function c(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!n})()}function a(n,t){var g=Object.keys(n);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(n);t&&(D=D.filter(function(R){return Object.getOwnPropertyDescriptor(n,R).enumerable})),g.push.apply(g,D)}return g}function p(n){for(var t=1;t<arguments.length;t++){var g=arguments[t]!=null?arguments[t]:{};t%2?a(Object(g),!0).forEach(function(D){v(n,D,g[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(g)):a(Object(g)).forEach(function(D){Object.defineProperty(n,D,Object.getOwnPropertyDescriptor(g,D))})}return n}function _(n,t){if(typeof n!="object"||!n)return n;var g=n[Symbol.toPrimitive];if(g!==void 0){var D=g.call(n,t||"default");if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}function i(n){var t=_(n,"string");return typeof t=="symbol"?t:String(t)}function u(n){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(n)}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function l(n,t){for(var g=0;g<t.length;g++){var D=t[g];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(n,i(D.key),D)}}function y(n,t,g){return t&&l(n.prototype,t),g&&l(n,g),Object.defineProperty(n,"prototype",{writable:!1}),n}function v(n,t,g){return t=i(t),t in n?Object.defineProperty(n,t,{value:g,enumerable:!0,configurable:!0,writable:!0}):n[t]=g,n}function b(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&O(n,t)}function E(n){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},E(n)}function O(n,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,R){return D.__proto__=R,D},O(n,t)}function d(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function m(n,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(n)}var x=I(7862),w=I.n(x),C=I(49976),k=I.n(C),N=!0,L="Invariant failed";function U(n,t){if(!n){if(N)throw new Error(L);var g=typeof t=="function"?t():t,D=g?"".concat(L,": ").concat(g):L;throw new Error(D)}}var X="debug",B="info",Y="warn",W="error",it="critical",ft=v(v(v(v(v({},X,1),B,2),Y,3),W,4),it,5),z=ft;function F(n,t){if(typeof n=="function"){for(var g=arguments.length,D=new Array(g>2?g-2:0),R=2;R<g;R++)D[R-2]=arguments[R];return n.apply(void 0,D)}return n}function J(n){return z[n]>=z[X]&&z[n]<=z[it]}function nt(n){var t;return!!(n!=null&&(t=n.options)!==null&&t!==void 0&&t.accessToken)}var rt=(0,S.createContext)();rt.displayName="Rollbar";var ot=Symbol("RollbarInstance"),yt=Symbol("BaseOptions"),Et=Symbol("RollbarCtor");function wt(n){var t=n[ot];return t}function Qt(n){var t=n[Et];return t}var Jt=function(n){b(t,n);function t(g){var D;s(this,t),D=r(this,t,[g]);var R=D.props,A=R.config,j=R.Rollbar,H=j===void 0?k():j,K=R.instance;U(!K||nt(K),"`instance` must be a configured instance of Rollbar");var V=typeof A=="function"?A():A,Q=K||new H(V);return D.state={rollbar:Q,options:V},D}return y(t,[{key:"render",value:function(){var D=this.props,R=D.children,A=D.Rollbar,j=A===void 0?k():A,H=this.state,K=H.rollbar,V=H.options;return S.createElement(rt.Provider,{value:v(v(v({},ot,K),yt,V),Et,j)},R)}}]),t}(S.Component);v(Jt,"propTypes",{Rollbar:w().func,config:function(t,g,D){if(!t.config&&!t.instance)return new Error("One of the required props 'config' or 'instance' must be set for ".concat(D,"."));if(t.config){var R=u(t.config);return R==="function"||R==="object"&&!Array.isArray(R)?void 0:new Error("".concat(g," must be either an Object or a Function"))}},instance:function(t,g,D){if(!t.config&&!t.instance)return new Error("One of the required props 'config' or 'instance' must be set for ".concat(D,"."));if(t.instance&&!nt(t.instance))return new Error("".concat(g," must be a configured instance of Rollbar"))},children:w().node});var ue={hasError:!1,error:null},Vt=function(n){b(t,n);function t(g){var D;return s(this,t),D=r(this,t,[g]),v(d(D),"resetError",function(){D.setState(ue)}),U(J(g.level),"".concat(g.level," is not a valid level setting for Rollbar")),D.state=p({},ue),D}return y(t,[{key:"componentDidCatch",value:function(D,R){var A=this.props,j=A.errorMessage,H=A.extra,K=A.level,V=A.callback,Q=F(H,{},D,R),tt=p(p({},R),Q),st=F(K,W,D,R),ct=wt(this.context);if(!j)ct[st](D,tt,V);else{var pt=F(j,"",D,R);ct[st](pt,D,tt,V)}}},{key:"render",value:function(){var D=this.state,R=D.hasError,A=D.error,j=this.props,H=j.fallbackUI,K=j.children;return R?H?S.createElement(H,{error:A,resetError:this.resetError}):null:K}}],[{key:"getDerivedStateFromError",value:function(D){return{hasError:!0,error:D}}}]),t}(S.Component);v(Vt,"contextType",rt),v(Vt,"propTypes",{fallbackUI:w().elementType,errorMessage:w().oneOfType([w().string,w().func]),extra:w().oneOfType([w().object,w().func]),level:w().oneOfType([w().string,w().func]),callback:w().func,children:w().node}),v(Vt,"defaultProps",{level:W});var q=I(87016),St=I(89102),Ft=I(79225),ht=I(56301),At=I(15069);const et=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],at=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ut="InboundFilters",dt=(n={})=>({name:ut,setupOnce(){},processEvent(t,g,D){const R=D.getOptions(),A=Ht(n,R);return Ct(t,A)?null:t}}),vt=(0,At._I)(dt),Lt=(0,At.RN)(ut,vt);function Ht(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:et],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[],...n.disableTransactionDefaults?[]:at],ignoreInternal:n.ignoreInternal!==void 0?n.ignoreInternal:!0}}function Ct(n,t){return t.ignoreInternal&&Rr(n)?(ht.X&&q.kg.warn(`Event dropped due to being internal Sentry Error.
Event: ${(0,St.jH)(n)}`),!0):jt(n,t.ignoreErrors)?(ht.X&&q.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,St.jH)(n)}`),!0):Te(n,t.ignoreTransactions)?(ht.X&&q.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,St.jH)(n)}`),!0):ve(n,t.denyUrls)?(ht.X&&q.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,St.jH)(n)}.
Url: ${we(n)}`),!0):Oe(n,t.allowUrls)?!1:(ht.X&&q.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,St.jH)(n)}.
Url: ${we(n)}`),!0)}function jt(n,t){return n.type||!t||!t.length?!1:Pr(n).some(g=>(0,Ft.U0)(g,t))}function Te(n,t){if(n.type!=="transaction"||!t||!t.length)return!1;const g=n.transaction;return g?(0,Ft.U0)(g,t):!1}function ve(n,t){if(!t||!t.length)return!1;const g=we(n);return g?(0,Ft.U0)(g,t):!1}function Oe(n,t){if(!t||!t.length)return!0;const g=we(n);return g?(0,Ft.U0)(g,t):!0}function Pr(n){const t=[];n.message&&t.push(n.message);let g;try{g=n.exception.values[n.exception.values.length-1]}catch(D){}return g&&g.value&&(t.push(g.value),g.type&&t.push(`${g.type}: ${g.value}`)),ht.X&&t.length===0&&q.kg.error(`Could not extract message for event ${(0,St.jH)(n)}`),t}function Rr(n){try{return n.exception.values[0].type==="SentryError"}catch(t){}return!1}function Nr(n=[]){for(let t=n.length-1;t>=0;t--){const g=n[t];if(g&&g.filename!=="<anonymous>"&&g.filename!=="[native code]")return g.filename||null}return null}function we(n){try{let t;try{t=n.exception.values[0].stacktrace.frames}catch(g){}return t?Nr(t):null}catch(t){return ht.X&&q.kg.error(`Cannot extract url for event ${(0,St.jH)(n)}`),null}}var Mt=I(69039),gt=I(60663);let cn;const ln="FunctionToString",dn=new WeakMap,Mr=()=>({name:ln,setupOnce(){cn=Function.prototype.toString;try{Function.prototype.toString=function(...n){const t=(0,Mt.HK)(this),g=dn.has((0,gt.s3)())&&t!==void 0?t:this;return cn.apply(g,n)}}catch(n){}},setup(n){dn.set(n,!0)}}),fn=(0,At._I)(Mr),va=(0,At.RN)(ln,fn);var Gt=I(96722);function Ar(n,t){t.debug===!0&&(ht.X?q.kg.enable():(0,q.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,gt.nZ)().update(t.initialScope);const D=new n(t);Lr(D),jr(D)}function Lr(n){const g=(0,Gt.Gd)().getStackTop();g.client=n,g.scope.setClient(n)}function jr(n){n.init?n.init():n.setupIntegrations&&n.setupIntegrations()}var Ur=I(77603),oe=I(65769),pn=I(47695),Fe=I(15462),Br=I(99652),hn=I(61160);function mn(n,t,g=[t],D="npm"){const R=n._metadata||{};R.sdk||(R.sdk={name:`sentry.javascript.${t}`,packages:g.map(A=>({name:`${D}:@sentry/${A}`,version:hn.J})),version:hn.J}),n._metadata=R}var Hr=I(10772),te=I(44631),$t=I(89285);function Fr(n,t,g){const D=[{type:"client_report"},{timestamp:g||(0,$t.yW)(),discarded_events:n}];return(0,te.Jd)(t?{dsn:t}:{},[D])}var $e=I(46854);const Wt=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;var Pt=I(84644),$r=I(58114),ee=I(2610);function gn(n,t){const g=Xe(n,t),D={type:t&&t.name,value:Gr(t)};return g.length&&(D.stacktrace={frames:g}),D.type===void 0&&D.value===""&&(D.value="Unrecoverable error caught"),D}function Wr(n,t,g,D){const R=(0,gt.s3)(),A=R&&R.getOptions().normalizeDepth,j={exception:{values:[{type:(0,Pt.cO)(t)?t.constructor.name:D?"UnhandledRejection":"Error",value:Vr(t,{isUnhandledRejection:D})}]},extra:{__serialized__:(0,$r.Qy)(t,A)}};if(g){const H=Xe(n,g);H.length&&(j.exception.values[0].stacktrace={frames:H})}return j}function We(n,t){return{exception:{values:[gn(n,t)]}}}function Xe(n,t){const g=t.stacktrace||t.stack||"",D=Kr(t);try{return n(g,D)}catch(R){}return[]}const Xr=/Minified React error #\d+;/i;function Kr(n){if(n){if(typeof n.framesToPop=="number")return n.framesToPop;if(Xr.test(n.message))return 1}return 0}function Gr(n){const t=n&&n.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Yr(n,t,g,D){const R=g&&g.syntheticException||void 0,A=Ke(n,t,R,D);return(0,St.EG)(A),A.level="error",g&&g.event_id&&(A.event_id=g.event_id),(0,ee.WD)(A)}function Jr(n,t,g="info",D,R){const A=D&&D.syntheticException||void 0,j=Ge(n,t,A,R);return j.level=g,D&&D.event_id&&(j.event_id=D.event_id),(0,ee.WD)(j)}function Ke(n,t,g,D,R){let A;if((0,Pt.VW)(t)&&t.error)return We(n,t.error);if((0,Pt.TX)(t)||(0,Pt.fm)(t)){const j=t;if("stack"in t)A=We(n,t);else{const H=j.name||((0,Pt.TX)(j)?"DOMError":"DOMException"),K=j.message?`${H}: ${j.message}`:H;A=Ge(n,K,g,D),(0,St.Db)(A,K)}return"code"in j&&(A.tags=mt($({},A.tags),{"DOMException.code":`${j.code}`})),A}return(0,Pt.VZ)(t)?We(n,t):(0,Pt.PO)(t)||(0,Pt.cO)(t)?(A=Wr(n,t,g,R),(0,St.EG)(A,{synthetic:!0}),A):(A=Ge(n,t,g,D),(0,St.Db)(A,`${t}`,void 0),(0,St.EG)(A,{synthetic:!0}),A)}function Ge(n,t,g,D){const R={};if(D&&g){const A=Xe(n,g);A.length&&(R.exception={values:[{value:t,stacktrace:{frames:A}}]})}if((0,Pt.Le)(t)){const{__sentry_template_string__:A,__sentry_template_values__:j}=t;return R.logentry={message:A,params:j},R}return R.message=t,R}function Vr(n,{isUnhandledRejection:t}){const g=(0,Mt.zf)(n),D=t?"promise rejection":"exception";return(0,Pt.VW)(n)?`Event \`ErrorEvent\` captured as ${D} with message \`${n.message}\``:(0,Pt.cO)(n)?`Event \`${zr(n)}\` (type=${n.type}) captured as ${D}`:`Object captured as ${D} with keys: ${g}`}function zr(n){try{const t=Object.getPrototypeOf(n);return t?t.constructor.name:void 0}catch(t){}}var Yt=I(35074);const bt=Yt.GLOBAL_OBJ;let Ye=0;function vn(){return Ye>0}function qr(){Ye++,setTimeout(()=>{Ye--})}function fe(n,t={},g){if(typeof n!="function")return n;try{const R=n.__sentry_wrapped__;if(R)return R;if((0,Mt.HK)(n))return n}catch(R){return n}const D=function(){const R=Array.prototype.slice.call(arguments);try{g&&typeof g=="function"&&g.apply(this,arguments);const A=R.map(j=>fe(j,t));return n.apply(this,A)}catch(A){throw qr(),(0,gt.$e)(j=>{j.addEventProcessor(H=>(t.mechanism&&((0,St.Db)(H,void 0,void 0),(0,St.EG)(H,t.mechanism)),H.extra=mt($({},H.extra),{arguments:R}),H)),(0,gt.Tb)(A)}),A}};try{for(const R in n)Object.prototype.hasOwnProperty.call(n,R)&&(D[R]=n[R])}catch(R){}(0,Mt.$Q)(D,n),(0,Mt.xp)(n,"__sentry_wrapped__",D);try{Object.getOwnPropertyDescriptor(D,"name").configurable&&Object.defineProperty(D,"name",{get(){return n.name}})}catch(R){}return D}function Zr(n,{metadata:t,tunnel:g,dsn:D}){const R=$($({event_id:n.event_id,sent_at:new Date().toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!g&&!!D&&{dsn:(0,$e.RA)(D)}),A=Qr(n);return(0,te.Jd)(R,[A])}function Qr(n){return[{type:"user_report"},n]}class ti extends Br.W{constructor(t){const g=bt.SENTRY_SDK_SOURCE||(0,Hr.S)();mn(t,"browser",["browser"],g),super(t),t.sendClientReports&&bt.document&&bt.document.addEventListener("visibilitychange",()=>{bt.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,g){return Yr(this._options.stackParser,t,g,this._options.attachStacktrace)}eventFromMessage(t,g="info",D){return Jr(this._options.stackParser,t,g,D,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Wt&&q.kg.warn("SDK not enabled, will not capture user feedback.");return}const g=Zr(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(g)}_prepareEvent(t,g,D){return t.platform=t.platform||"javascript",super._prepareEvent(t,g,D)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Wt&&q.kg.log("No outcomes to send");return}if(!this._dsn){Wt&&q.kg.log("No dsn provided, will not send outcomes");return}Wt&&q.kg.log("Sending outcomes:",t);const g=Fr(t,this._options.tunnel&&(0,$e.RA)(this._dsn));this._sendEnvelope(g)}}var ne=I(5370);function ei(n){const t="console";(0,ne.Hj)(t,n),(0,ne.D2)(t,ni)}function ni(){"console"in Yt.GLOBAL_OBJ&&q.RU.forEach(function(n){n in Yt.GLOBAL_OBJ.console&&(0,Mt.hl)(Yt.GLOBAL_OBJ.console,n,function(t){return q.LD[n]=t,function(...g){const D={args:g,level:n};(0,ne.rK)("console",D);const R=q.LD[n];R&&R.apply(Yt.GLOBAL_OBJ.console,g)}})})}var ri=I(45641),Ie=I(47954),yn=I(75165),re=I(69505);const ii=["fatal","error","warning","log","info","debug"];function ya(n){return _n(n)}function _n(n){return n==="warn"?"warning":ii.includes(n)?n:"log"}function xe(n){if(!n)return{};const t=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const g=t[6]||"",D=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:g,hash:D,relative:t[5]+g+D}}function _a(n){return n.split(/[\?#]/,1)[0]}function ba(n){return n.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Ea(n){const{protocol:t,host:g,path:D}=n,R=g&&g.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${R}${D}`}const De=1024,bn="Breadcrumbs",oi=(n={})=>{const t=$({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n);return{name:bn,setupOnce(){},setup(g){t.console&&ei(ui(g)),t.dom&&(0,ri.O)(ai(g,t.dom)),t.xhr&&(0,Ie.UK)(ci(g)),t.fetch&&(0,yn.U)(li(g)),t.history&&(0,Fe.a)(di(g)),t.sentry&&g.on&&g.on("beforeSendEvent",si(g))}}},En=(0,At._I)(oi),Sa=(0,At.RN)(bn,En);function si(n){return function(g){(0,gt.s3)()===n&&(0,gt.n_)({category:`sentry.${g.type==="transaction"?"transaction":"event"}`,event_id:g.event_id,level:g.level,message:(0,St.jH)(g)},{event:g})}}function ai(n,t){return function(D){if((0,gt.s3)()!==n)return;let R,A,j=typeof t=="object"?t.serializeAttribute:void 0,H=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;H&&H>De&&(Wt&&q.kg.warn(`\`dom.maxStringLength\` cannot exceed ${De}, but a value of ${H} was configured. Sentry will use ${De} instead.`),H=De),typeof j=="string"&&(j=[j]);try{const V=D.event,Q=fi(V)?V.target:V;R=(0,re.Rt)(Q,{keyAttrs:j,maxStringLength:H}),A=(0,re.iY)(Q)}catch(V){R="<unknown>"}if(R.length===0)return;const K={category:`ui.${D.name}`,message:R};A&&(K.data={"ui.component_name":A}),(0,gt.n_)(K,{event:D.event,name:D.name,global:D.global})}}function ui(n){return function(g){if((0,gt.s3)()!==n)return;const D={category:"console",data:{arguments:g.args,logger:"console"},level:_n(g.level),message:(0,Ft.nK)(g.args," ")};if(g.level==="assert")if(g.args[0]===!1)D.message=`Assertion failed: ${(0,Ft.nK)(g.args.slice(1)," ")||"console.assert"}`,D.data.arguments=g.args.slice(1);else return;(0,gt.n_)(D,{input:g.args,level:g.level})}}function ci(n){return function(g){if((0,gt.s3)()!==n)return;const{startTimestamp:D,endTimestamp:R}=g,A=g.xhr[Ie.xU];if(!D||!R||!A)return;const{method:j,url:H,status_code:K,body:V}=A,Q={method:j,url:H,status_code:K},tt={xhr:g.xhr,input:V,startTimestamp:D,endTimestamp:R};(0,gt.n_)({category:"xhr",data:Q,type:"http"},tt)}}function li(n){return function(g){if((0,gt.s3)()!==n)return;const{startTimestamp:D,endTimestamp:R}=g;if(R&&!(g.fetchData.url.match(/sentry_key/)&&g.fetchData.method==="POST"))if(g.error){const A=g.fetchData,j={data:g.error,input:g.args,startTimestamp:D,endTimestamp:R};(0,gt.n_)({category:"fetch",data:A,level:"error",type:"http"},j)}else{const A=g.response,j=mt($({},g.fetchData),{status_code:A&&A.status}),H={input:g.args,response:A,startTimestamp:D,endTimestamp:R};(0,gt.n_)({category:"fetch",data:j,type:"http"},H)}}}function di(n){return function(g){if((0,gt.s3)()!==n)return;let D=g.from,R=g.to;const A=xe(bt.location.href);let j=D?xe(D):void 0;const H=xe(R);(!j||!j.path)&&(j=A),A.protocol===H.protocol&&A.host===H.host&&(R=H.relative),A.protocol===j.protocol&&A.host===j.host&&(D=j.relative),(0,gt.n_)({category:"navigation",data:{from:D,to:R}})}}function fi(n){return!!n&&!!n.target}const Sn="Dedupe",pi=()=>{let n;return{name:Sn,setupOnce(){},processEvent(t){if(t.type)return t;try{if(hi(t,n))return Wt&&q.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(g){}return n=t}}},Tn=(0,At._I)(pi),Ta=(0,At.RN)(Sn,Tn);function hi(n,t){return t?!!(mi(n,t)||gi(n,t)):!1}function mi(n,t){const g=n.message,D=t.message;return!(!g&&!D||g&&!D||!g&&D||g!==D||!wn(n,t)||!On(n,t))}function gi(n,t){const g=In(t),D=In(n);return!(!g||!D||g.type!==D.type||g.value!==D.value||!wn(n,t)||!On(n,t))}function On(n,t){let g=xn(n),D=xn(t);if(!g&&!D)return!0;if(g&&!D||!g&&D||(g=g,D=D,D.length!==g.length))return!1;for(let R=0;R<D.length;R++){const A=D[R],j=g[R];if(A.filename!==j.filename||A.lineno!==j.lineno||A.colno!==j.colno||A.function!==j.function)return!1}return!0}function wn(n,t){let g=n.fingerprint,D=t.fingerprint;if(!g&&!D)return!0;if(g&&!D||!g&&D)return!1;g=g,D=D;try{return g.join("")===D.join("")}catch(R){return!1}}function In(n){return n.exception&&n.exception.values&&n.exception.values[0]}function xn(n){const t=n.exception;if(t)try{return t.values[0].stacktrace.frames}catch(g){return}}let Ce=null;function Dn(n){const t="error";(0,ne.Hj)(t,n),(0,ne.D2)(t,vi)}function vi(){Ce=Yt.GLOBAL_OBJ.onerror,Yt.GLOBAL_OBJ.onerror=function(n,t,g,D,R){const A={column:D,error:R,line:g,msg:n,url:t};return(0,ne.rK)("error",A),Ce&&!Ce.__SENTRY_LOADER__?Ce.apply(this,arguments):!1},Yt.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let ke=null;function Cn(n){const t="unhandledrejection";(0,ne.Hj)(t,n),(0,ne.D2)(t,yi)}function yi(){ke=Yt.GLOBAL_OBJ.onunhandledrejection,Yt.GLOBAL_OBJ.onunhandledrejection=function(n){const t=n;return(0,ne.rK)("unhandledrejection",t),ke&&!ke.__SENTRY_LOADER__?ke.apply(this,arguments):!0},Yt.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const kn="GlobalHandlers",_i=(n={})=>{const t=$({onerror:!0,onunhandledrejection:!0},n);return{name:kn,setupOnce(){Error.stackTraceLimit=50},setup(g){t.onerror&&(bi(g),Nn("onerror")),t.onunhandledrejection&&(Ei(g),Nn("onunhandledrejection"))}}},Pn=(0,At._I)(_i),Oa=(0,At.RN)(kn,Pn);function bi(n){Dn(t=>{const{stackParser:g,attachStacktrace:D}=Mn();if((0,gt.s3)()!==n||vn())return;const{msg:R,url:A,line:j,column:H,error:K}=t,V=K===void 0&&(0,Pt.HD)(R)?Oi(R,A,j,H):Rn(Ke(g,K||R,void 0,D,!1),A,j,H);V.level="error",(0,gt.eN)(V,{originalException:K,mechanism:{handled:!1,type:"onerror"}})})}function Ei(n){Cn(t=>{const{stackParser:g,attachStacktrace:D}=Mn();if((0,gt.s3)()!==n||vn())return;const R=Si(t),A=(0,Pt.pt)(R)?Ti(R):Ke(g,R,void 0,D,!0);A.level="error",(0,gt.eN)(A,{originalException:R,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Si(n){if((0,Pt.pt)(n))return n;const t=n;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(g){}return n}function Ti(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function Oi(n,t,g,D){const R=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let A=(0,Pt.VW)(n)?n.message:n,j="Error";const H=A.match(R);return H&&(j=H[1],A=H[2]),Rn({exception:{values:[{type:j,value:A}]}},t,g,D)}function Rn(n,t,g,D){const R=n.exception=n.exception||{},A=R.values=R.values||[],j=A[0]=A[0]||{},H=j.stacktrace=j.stacktrace||{},K=H.frames=H.frames||[],V=isNaN(parseInt(D,10))?void 0:D,Q=isNaN(parseInt(g,10))?void 0:g,tt=(0,Pt.HD)(t)&&t.length>0?t:(0,re.l4)();return K.length===0&&K.push({colno:V,filename:tt,function:"?",in_app:!0,lineno:Q}),n}function Nn(n){Wt&&q.kg.log(`Global Handler attached: ${n}`)}function Mn(){const n=(0,gt.s3)();return n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const An="HttpContext",wi=()=>({name:An,setupOnce(){},preprocessEvent(n){if(!bt.navigator&&!bt.location&&!bt.document)return;const t=n.request&&n.request.url||bt.location&&bt.location.href,{referrer:g}=bt.document||{},{userAgent:D}=bt.navigator||{},R=$($($({},n.request&&n.request.headers),g&&{Referer:g}),D&&{"User-Agent":D}),A=mt($($({},n.request),t&&{url:t}),{headers:R});n.request=A}}),Ln=(0,At._I)(wi),wa=(0,At.RN)(An,Ln);function Ii(n,t,g=250,D,R,A,j){if(!A.exception||!A.exception.values||!j||!(0,Pt.V9)(j.originalException,Error))return;const H=A.exception.values.length>0?A.exception.values[A.exception.values.length-1]:void 0;H&&(A.exception.values=xi(Je(n,t,R,j.originalException,D,A.exception.values,H,0),g))}function Je(n,t,g,D,R,A,j,H){if(A.length>=g+1)return A;let K=[...A];if((0,Pt.V9)(D[R],Error)){jn(j,H);const V=n(t,D[R]),Q=K.length;Un(V,R,Q,H),K=Je(n,t,g,D[R],R,[V,...K],V,Q)}return Array.isArray(D.errors)&&D.errors.forEach((V,Q)=>{if((0,Pt.V9)(V,Error)){jn(j,H);const tt=n(t,V),st=K.length;Un(tt,`errors[${Q}]`,st,H),K=Je(n,t,g,V,R,[tt,...K],tt,st)}}),K}function jn(n,t){n.mechanism=n.mechanism||{type:"generic",handled:!0},n.mechanism=mt($($({},n.mechanism),n.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:t})}function Un(n,t,g,D){n.mechanism=n.mechanism||{type:"generic",handled:!0},n.mechanism=mt($({},n.mechanism),{type:"chained",source:t,exception_id:g,parent_id:D})}function xi(n,t){return n.map(g=>(g.value&&(g.value=(0,Ft.$G)(g.value,t)),g))}const Di="cause",Ci=5,Bn="LinkedErrors",ki=(n={})=>{const t=n.limit||Ci,g=n.key||Di;return{name:Bn,setupOnce(){},preprocessEvent(D,R,A){const j=A.getOptions();Ii(gn,j.stackParser,j.maxValueLength,g,t,D,R)}}},Hn=(0,At._I)(ki),Ia=(0,At.RN)(Bn,Hn),Pi=["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"],Fn="TryCatch",Ri=(n={})=>{const t=$({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n);return{name:Fn,setupOnce(){t.setTimeout&&(0,Mt.hl)(bt,"setTimeout",Wn),t.setInterval&&(0,Mt.hl)(bt,"setInterval",Wn),t.requestAnimationFrame&&(0,Mt.hl)(bt,"requestAnimationFrame",Ni),t.XMLHttpRequest&&"XMLHttpRequest"in bt&&(0,Mt.hl)(XMLHttpRequest.prototype,"send",Mi);const g=t.eventTarget;g&&(Array.isArray(g)?g:Pi).forEach(Ai)}}},$n=(0,At._I)(Ri),xa=(0,At.RN)(Fn,$n);function Wn(n){return function(...t){const g=t[0];return t[0]=fe(g,{mechanism:{data:{function:(0,oe.$P)(n)},handled:!1,type:"instrument"}}),n.apply(this,t)}}function Ni(n){return function(t){return n.apply(this,[fe(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,oe.$P)(n)},handled:!1,type:"instrument"}})])}}function Mi(n){return function(...t){const g=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(R=>{R in g&&typeof g[R]=="function"&&(0,Mt.hl)(g,R,function(A){const j={mechanism:{data:{function:R,handler:(0,oe.$P)(A)},handled:!1,type:"instrument"}},H=(0,Mt.HK)(A);return H&&(j.mechanism.data.handler=(0,oe.$P)(H)),fe(A,j)})}),n.apply(this,t)}}function Ai(n){const t=bt,g=t[n]&&t[n].prototype;!g||!g.hasOwnProperty||!g.hasOwnProperty("addEventListener")||((0,Mt.hl)(g,"addEventListener",function(D){return function(R,A,j){try{typeof A.handleEvent=="function"&&(A.handleEvent=fe(A.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,oe.$P)(A),target:n},handled:!1,type:"instrument"}}))}catch(H){}return D.apply(this,[R,fe(A,{mechanism:{data:{function:"addEventListener",handler:(0,oe.$P)(A),target:n},handled:!1,type:"instrument"}}),j])}}),(0,Mt.hl)(g,"removeEventListener",function(D){return function(R,A,j){const H=A;try{const K=H&&H.__sentry_wrapped__;K&&D.call(this,R,K,j)}catch(K){}return D.call(this,R,H,j)}}))}const pe="?",Li=10,ji=20,Ui=30,Bi=40,Hi=50;function ye(n,t,g,D){const R={filename:n,function:t,in_app:!0};return g!==void 0&&(R.lineno=g),D!==void 0&&(R.colno=D),R}const Fi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$i=/\((\S*)(?::(\d+))(?::(\d+))\)/,Wi=[Ui,n=>{const t=Fi.exec(n);if(t){if(t[2]&&t[2].indexOf("eval")===0){const A=$i.exec(t[2]);A&&(t[2]=A[1],t[3]=A[2],t[4]=A[3])}const[D,R]=Xn(t[1]||pe,t[2]);return ye(R,D,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Xi=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ki=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Gi=[Hi,n=>{const t=Xi.exec(n);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const A=Ki.exec(t[3]);A&&(t[1]=t[1]||"eval",t[3]=A[1],t[4]=A[2],t[5]="")}let D=t[3],R=t[1]||pe;return[R,D]=Xn(R,D),ye(D,R,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Yi=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ji=[Bi,n=>{const t=Yi.exec(n);return t?ye(t[2],t[1]||pe,+t[3],t[4]?+t[4]:void 0):void 0}],Vi=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Ra=[Li,n=>{const t=Vi.exec(n);return t?ye(t[2],t[3]||pe,+t[1]):void 0}],zi=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Ma=[ji,n=>{const t=zi.exec(n);return t?ye(t[5],t[3]||t[4]||pe,+t[1],+t[2]):void 0}],qi=[Wi,Gi,Ji],Zi=(0,oe.pE)(...qi),Xn=(n,t)=>{const g=n.indexOf("safari-extension")!==-1,D=n.indexOf("safari-web-extension")!==-1;return g||D?[n.indexOf("@")!==-1?n.split("@")[0]:pe,g?`safari-extension:${t}`:`safari-web-extension:${t}`]:[n,t]};var Kn=I(62069);function Qi(n){const t=[];function g(){return n===void 0||t.length<n}function D(j){return t.splice(t.indexOf(j),1)[0]}function R(j){if(!g())return(0,ee.$2)(new Kn.b("Not adding Promise because buffer limit was reached."));const H=j();return t.indexOf(H)===-1&&t.push(H),H.then(()=>D(H)).then(null,()=>D(H).then(null,()=>{})),H}function A(j){return new ee.cW((H,K)=>{let V=t.length;if(!V)return H(!0);const Q=setTimeout(()=>{j&&j>0&&H(!1)},j);t.forEach(tt=>{(0,ee.WD)(tt).then(()=>{--V||(clearTimeout(Q),H(!0))},K)})})}return{$:t,add:R,drain:A}}var Gn=I(89603);const to=30;function Yn(n,t,g=Qi(n.bufferSize||to)){let D={};const R=j=>g.drain(j);function A(j){const H=[];if((0,te.gv)(j,(tt,st)=>{const ct=(0,te.mL)(st);if((0,Gn.Q)(D,ct)){const pt=Jn(tt,st);n.recordDroppedEvent("ratelimit_backoff",ct,pt)}else H.push(tt)}),H.length===0)return(0,ee.WD)();const K=(0,te.Jd)(j[0],H),V=tt=>{(0,te.gv)(K,(st,ct)=>{const pt=Jn(st,ct);n.recordDroppedEvent(tt,(0,te.mL)(ct),pt)})},Q=()=>t({body:(0,te.V$)(K,n.textEncoder)}).then(tt=>(tt.statusCode!==void 0&&(tt.statusCode<200||tt.statusCode>=300)&&ht.X&&q.kg.warn(`Sentry responded with status code ${tt.statusCode} to sent event.`),D=(0,Gn.WG)(D,tt),tt),tt=>{throw V("network_error"),tt});return g.add(Q).then(tt=>tt,tt=>{if(tt instanceof Kn.b)return ht.X&&q.kg.error("Skipped sending event because buffer is full."),V("queue_overflow"),(0,ee.WD)();throw tt})}return A.__sentry__baseTransport__=!0,{send:A,flush:R}}function Jn(n,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(n)?n[1]:void 0}let _e;function eo(){if(_e)return _e;if((0,pn.Du)(bt.fetch))return _e=bt.fetch.bind(bt);const n=bt.document;let t=bt.fetch;if(n&&typeof n.createElement=="function")try{const g=n.createElement("iframe");g.hidden=!0,n.head.appendChild(g);const D=g.contentWindow;D&&D.fetch&&(t=D.fetch),n.head.removeChild(g)}catch(g){Wt&&q.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",g)}return _e=t.bind(bt)}function no(){_e=void 0}function ro(n,t=eo()){let g=0,D=0;function R(A){const j=A.body.length;g+=j,D++;const H=$({body:A.body,method:"POST",referrerPolicy:"origin",headers:n.headers,keepalive:g<=6e4&&D<15},n.fetchOptions);try{return t(n.url,H).then(K=>(g-=j,D--,{statusCode:K.status,headers:{"x-sentry-rate-limits":K.headers.get("X-Sentry-Rate-Limits"),"retry-after":K.headers.get("Retry-After")}}))}catch(K){return no(),g-=j,D--,(0,ee.$2)(K)}}return Yn(n,R)}const io=4;function oo(n){function t(g){return new ee.cW((D,R)=>{const A=new XMLHttpRequest;A.onerror=R,A.onreadystatechange=()=>{A.readyState===io&&D({statusCode:A.status,headers:{"x-sentry-rate-limits":A.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":A.getResponseHeader("Retry-After")}})},A.open("POST",n.url);for(const j in n.headers)Object.prototype.hasOwnProperty.call(n.headers,j)&&A.setRequestHeader(j,n.headers[j]);A.send(g.body)})}return Yn(n,t)}const so=[vt(),fn(),$n(),En(),Pn(),Hn(),Tn(),Ln()];function ao(n){return[...so]}function uo(n={}){n.defaultIntegrations===void 0&&(n.defaultIntegrations=ao()),n.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(n.release=__SENTRY_RELEASE__),bt.SENTRY_RELEASE&&bt.SENTRY_RELEASE.id&&(n.release=bt.SENTRY_RELEASE.id)),n.autoSessionTracking===void 0&&(n.autoSessionTracking=!0),n.sendClientReports===void 0&&(n.sendClientReports=!0);const t=mt($({},n),{stackParser:(0,oe.Sq)(n.stackParser||Zi),integrations:(0,At.m8)(n),transport:n.transport||((0,pn.Ak)()?ro:oo)});Ar(ti,t),n.autoSessionTracking&&co()}const Vn=(n={},t=(0,Gt.Gd)())=>{if(!bt.document){Wt&&q.kg.error("Global document not defined in showReportDialog call");return}const{client:g,scope:D}=t.getStackTop(),R=n.dsn||g&&g.getDsn();if(!R){Wt&&q.kg.error("DSN not configured for showReportDialog call");return}D&&(n.user=$($({},D.getUser()),n.user)),n.eventId||(n.eventId=t.lastEventId());const A=bt.document.createElement("script");A.async=!0,A.crossOrigin="anonymous",A.src=(0,Ur.h)(R,n),n.onLoad&&(A.onload=n.onLoad);const{onClose:j}=n;if(j){const K=V=>{if(V.data==="__sentry_reportdialog_closed__")try{j()}finally{bt.removeEventListener("message",K)}};bt.addEventListener("message",K)}const H=bt.document.head||bt.document.body;H?H.appendChild(A):Wt&&q.kg.error("Not injecting report dialog. No injection point found in HTML")};function Aa(){}function La(n){n()}function ja(n){return wrap$1(n)()}function co(){if(typeof bt.document=="undefined"){Wt&&q.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}(0,gt.yj)({ignoreDuration:!0}),(0,gt.cg)(),(0,Fe.a)(({from:n,to:t})=>{n!==void 0&&n!==t&&((0,gt.yj)({ignoreDuration:!0}),(0,gt.cg)())})}function Ua(n){const t=getClient();t&&t.captureUserFeedback(n)}function lo(n){const t=$({},n);mn(t,"react"),uo(t)}var Ot=I(53460);let be;function zn(n){return be?be.get(n):void 0}function qn(n){const t=zn(n);if(!t)return;const g={};for(const[,[D,R]]of t)g[D]||(g[D]=[]),g[D].push((0,Mt.Jr)(R));return g}function Ba(n,t,g,D,R,A){const j=getActiveSpan();if(j){const H=zn(j)||new Map,K=`${n}:${t}@${D}`,V=H.get(A);if(V){const[,Q]=V;H.set(A,[K,{min:Math.min(Q.min,g),max:Math.max(Q.max,g),count:Q.count+=1,sum:Q.sum+=g,tags:Q.tags}])}else H.set(A,[K,{min:g,max:g,count:1,sum:g,tags:R}]);be||(be=new WeakMap),be.set(j,H)}}var It=I(20328),Zn=I(28920),Qn;(function(n){const t="ok";n.Ok=t;const g="deadline_exceeded";n.DeadlineExceeded=g;const D="unauthenticated";n.Unauthenticated=D;const R="permission_denied";n.PermissionDenied=R;const A="not_found";n.NotFound=A;const j="resource_exhausted";n.ResourceExhausted=j;const H="invalid_argument";n.InvalidArgument=H;const K="unimplemented";n.Unimplemented=K;const V="unavailable";n.Unavailable=V;const Q="internal_error";n.InternalError=Q;const tt="unknown_error";n.UnknownError=tt;const st="cancelled";n.Cancelled=st;const ct="already_exists";n.AlreadyExists=ct;const pt="failed_precondition";n.FailedPrecondition=pt;const lt="aborted";n.Aborted=lt;const Dt="out_of_range";n.OutOfRange=Dt;const Tt="data_loss";n.DataLoss=Tt})(Qn||(Qn={}));function fo(n){if(n<400&&n>=100)return"ok";if(n>=400&&n<500)switch(n){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(n>=500&&n<600)switch(n){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}const Ha=null;function Ve(n,t){n.setTag("http.status_code",String(t)),n.setData("http.response.status_code",t);const g=fo(t);g!=="unknown_error"&&n.setStatus(g)}class tr{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Pe{constructor(t={}){this._traceId=t.traceId||(0,St.DM)(),this._spanId=t.spanId||(0,St.DM)().substring(16),this._startTime=t.startTimestamp||(0,$t.ph)(),this.tags=t.tags?$({},t.tags):{},this.data=t.data?$({},t.data):{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes($({[It.S3]:t.origin||"manual",[It.$J]:t.op},t.attributes)),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?$({},t.measurements):{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[It.$J]}set op(t){this.setAttribute(It.$J,t)}get origin(){return this._attributes[It.S3]}set origin(t){this.setAttribute(It.S3,t)}spanContext(){const{_spanId:t,_traceId:g,_sampled:D}=this;return{spanId:t,traceId:g,traceFlags:D?Ot.i0:Ot.ve}}startChild(t){const g=new Pe(mt($({},t),{parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId}));g.spanRecorder=this.spanRecorder,g.spanRecorder&&g.spanRecorder.add(g);const D=(0,Zn.G)(this);if(g.transaction=D,ht.X&&D){const R=t&&t.op||"< unknown op >",A=(0,Ot.XU)(g).description||"< unknown name >",j=D.spanContext().spanId,H=`[Tracing] Starting '${R}' span on transaction '${A}' (${j}).`;q.kg.log(H),this._logMessage=H}return g}setTag(t,g){return this.tags=mt($({},this.tags),{[t]:g}),this}setData(t,g){return this.data=mt($({},this.data),{[t]:g}),this}setAttribute(t,g){g===void 0?delete this._attributes[t]:this._attributes[t]=g}setAttributes(t){Object.keys(t).forEach(g=>this.setAttribute(g,t[g]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Ve(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const g=(0,Zn.G)(this);if(ht.X&&g&&g.spanContext().spanId!==this._spanId){const D=this._logMessage;D&&q.kg.log(D.replace("Starting","Finishing"))}this._endTime=(0,Ot.$k)(t)}toTraceparent(){return(0,Ot.Hb)(this)}toContext(){return(0,Mt.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(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return(0,Ot.wy)(this)}getSpanJSON(){return(0,Mt.Jr)({data:this._getData(),description:this._name,op:this._attributes[It.$J],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[It.S3],_metrics_summary:qn(this),profile_id:this._attributes[It.p6],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:g}=this,D=Object.keys(t).length>0,R=Object.keys(g).length>0;if(!(!D&&!R))return D&&R?$($({},t),g):D?t:g}}var ce=I(84920);function he(n){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=(0,gt.s3)(),g=n||t&&t.getOptions();return!!g&&(g.enableTracing||"tracesSampleRate"in g||"tracesSampler"in g)}function Fa(n,t,g=()=>{},D=()=>{}){const R=getCurrentHub(),A=getCurrentScope(),j=A.getSpan(),H=Ne(n),K=Re(R,{parentSpan:j,spanContext:H,forceTransaction:!1,scope:A});return A.setSpan(K),handleCallbackErrors(()=>t(K),V=>{K&&K.setStatus("internal_error"),g(V,K)},()=>{K&&K.end(),A.setSpan(j),D()})}function $a(n,t){const g=Ne(n);return runWithAsyncContext(()=>withScope(n.scope,D=>{const R=getCurrentHub(),A=D.getSpan(),H=n.onlyIfParent&&!A?void 0:Re(R,{parentSpan:A,spanContext:g,forceTransaction:n.forceTransaction,scope:D});return handleCallbackErrors(()=>t(H),()=>{if(H){const{status:K}=spanToJSON(H);(!K||K==="ok")&&H.setStatus("internal_error")}},()=>H&&H.end())}))}const Wa=null;function Xa(n,t){const g=Ne(n);return runWithAsyncContext(()=>withScope(n.scope,D=>{const R=getCurrentHub(),A=D.getSpan(),H=n.onlyIfParent&&!A?void 0:Re(R,{parentSpan:A,spanContext:g,forceTransaction:n.forceTransaction,scope:D});function K(){H&&H.end()}return handleCallbackErrors(()=>t(H,K),()=>{if(H&&H.isRecording()){const{status:V}=spanToJSON(H);(!V||V==="ok")&&H.setStatus("internal_error")}})}))}function er(n){if(!he())return;const t=Ne(n),g=(0,Gt.Gd)(),D=n.scope?n.scope.getSpan():ze();if(n.onlyIfParent&&!D)return;const j=(n.scope||(0,gt.nZ)()).clone();return Re(g,{parentSpan:D,spanContext:t,forceTransaction:n.forceTransaction,scope:j})}function ze(){return(0,gt.nZ)().getSpan()}const Ka=({sentryTrace:n,baggage:t},g)=>{const D=getCurrentScope(),{traceparentData:R,dynamicSamplingContext:A,propagationContext:j}=tracingContextFromHeaders(n,t);D.setPropagationContext(j),DEBUG_BUILD&&R&&logger.log(`[Tracing] Continuing trace ${R.traceId}.`);const H=mt($({},R),{metadata:dropUndefinedKeys({dynamicSamplingContext:A})});return g?runWithAsyncContext(()=>g(H)):H};function Re(n,{parentSpan:t,spanContext:g,forceTransaction:D,scope:R}){if(!he())return;const A=(0,Gt.aF)();let j;if(t&&!D)j=t.startChild(g);else if(t){const H=(0,ce.j)(t),{traceId:K,spanId:V}=t.spanContext(),Q=(0,Ot.Tt)(t);j=n.startTransaction(mt($({traceId:K,parentSpanId:V,parentSampled:Q},g),{metadata:$({dynamicSamplingContext:H},g.metadata)}))}else{const{traceId:H,dsc:K,parentSpanId:V,sampled:Q}=$($({},A.getPropagationContext()),R.getPropagationContext());j=n.startTransaction(mt($({traceId:H,parentSpanId:V,parentSampled:Q},g),{metadata:$({dynamicSamplingContext:K},g.metadata)}))}return R.setSpan(j),po(j,R,A),j}function Ne(n){if(n.startTime){const t=$({},n);return t.startTimestamp=(0,Ot.$k)(n.startTime),delete t.startTime,t}return n}const nr="_sentryScope",rr="_sentryIsolationScope";function po(n,t,g){n&&((0,Mt.xp)(n,rr,g),(0,Mt.xp)(n,nr,t))}function ho(n){return{scope:n[nr],isolationScope:n[rr]}}class ir extends Pe{constructor(t,g){super(t),this._contexts={},this._hub=g||(0,Gt.Gd)(),this._name=t.name||"",this._metadata=$({},t.metadata),this._trimEnd=t.trimEnd,this.transaction=this;const D=this._metadata.dynamicSamplingContext;D&&(this._frozenDynamicSamplingContext=$({},D))}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return $($($({source:"custom",spanMetadata:{}},this._metadata),this._attributes[It.Zj]&&{source:this._attributes[It.Zj]}),this._attributes[It.TE]&&{sampleRate:this._attributes[It.TE]})}set metadata(t){this._metadata=t}setName(t,g="custom"){this._name=t,this.setAttribute(It.Zj,g)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new tr(t)),this.spanRecorder.add(this)}setContext(t,g){g===null?delete this._contexts[t]:this._contexts[t]=g}setMeasurement(t,g,D=""){this._measurements[t]={value:g,unit:D}}setMetadata(t){this._metadata=$($({},this._metadata),t)}end(t){const g=(0,Ot.$k)(t),D=this._finishTransaction(g);if(D)return this._hub.captureEvent(D)}toContext(){const t=super.toContext();return(0,Mt.Jr)(mt($({},t),{name:this._name,trimEnd:this._trimEnd}))}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return(0,ce.j)(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(ht.X&&q.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const g=this._hub.getClient();if(g&&g.emit&&g.emit("finishTransaction",this),this._sampled!==!0){ht.X&&q.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),g&&g.recordDroppedEvent("sample_rate","transaction");return}const D=this.spanRecorder?this.spanRecorder.spans.filter(Q=>Q!==this&&(0,Ot.XU)(Q).timestamp):[];if(this._trimEnd&&D.length>0){const Q=D.map(tt=>(0,Ot.XU)(tt).timestamp).filter(Boolean);this._endTime=Q.reduce((tt,st)=>tt>st?tt:st)}const{scope:R,isolationScope:A}=ho(this),{metadata:j}=this,{source:H}=j,K=$({contexts:mt($({},this._contexts),{trace:(0,Ot.wy)(this)}),spans:D,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:$(mt($({},j),{capturedSpanScope:R,capturedSpanIsolationScope:A}),(0,Mt.Jr)({dynamicSamplingContext:(0,ce.j)(this)})),_metrics_summary:qn(this)},H&&{transaction_info:{source:H}});return Object.keys(this._measurements).length>0&&(ht.X&&q.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),K.measurements=this._measurements),ht.X&&q.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),K}}const Me={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},mo="finishReason",me=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class go extends tr{constructor(t,g,D,R){super(R),this._pushActivity=t,this._popActivity=g,this.transactionSpanId=D}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const g=t.end;t.end=(...D)=>(this._popActivity(t.spanContext().spanId),g.apply(t,D)),(0,Ot.XU)(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class vo extends ir{constructor(t,g,D=Me.idleTimeout,R=Me.finalTimeout,A=Me.heartbeatInterval,j=!1,H=!1){super(t,g),this._idleHub=g,this._idleTimeout=D,this._finalTimeout=R,this._heartbeatInterval=A,this._onScope=j,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=me[4],this._autoFinishAllowed=!H,j&&(ht.X&&q.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),g.getScope().setSpan(this)),H||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=me[3],this.end())},this._finalTimeout)}end(t){const g=(0,Ot.$k)(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(mo,this._finishReason),this.spanRecorder){ht.X&&q.kg.log("[Tracing] finishing IdleTransaction",new Date(g*1e3).toISOString(),this.op);for(const D of this._beforeFinishCallbacks)D(this,g);this.spanRecorder.spans=this.spanRecorder.spans.filter(D=>{if(D.spanContext().spanId===this.spanContext().spanId)return!0;(0,Ot.XU)(D).timestamp||(D.setStatus("cancelled"),D.end(g),ht.X&&q.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(D,void 0,2)));const{start_timestamp:R,timestamp:A}=(0,Ot.XU)(D),j=R&&R<g,H=(this._finalTimeout+this._idleTimeout)/1e3,K=A&&R&&A-R<H;if(ht.X){const V=JSON.stringify(D,void 0,2);j?K||q.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",V):q.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",V)}return j&&K}),ht.X&&q.kg.log("[Tracing] flushing IdleTransaction")}else ht.X&&q.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){const D=this._idleHub.getScope();D.getTransaction()===this&&D.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const g=R=>{this._finished||this._pushActivity(R)},D=R=>{this._finished||this._popActivity(R)};this.spanRecorder=new go(g,D,this.spanContext().spanId,t),ht.X&&q.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:g}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=g===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=me[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(ht.X&&q.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=me[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),ht.X&&q.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,ht.X&&q.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(ht.X&&q.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],ht.X&&q.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const g=(0,$t.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=me[5],this.end(g)):this._restartIdleTimeout(g+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(ht.X&&q.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=me[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){ht.X&&q.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function le(n){return(n||(0,Gt.Gd)()).getScope().getTransaction()}const Ga=null;let or=!1;function yo(){or||(or=!0,Dn(qe),Cn(qe))}function qe(){const n=le();if(n){const t="internal_error";ht.X&&q.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),n.setStatus(t)}}qe.tag="sentry_tracingErrorCallback";function sr(n,t,g){if(!he(t))return n.sampled=!1,n;if(n.sampled!==void 0)return n.setAttribute(It.TE,Number(n.sampled)),n;let D;return typeof t.tracesSampler=="function"?(D=t.tracesSampler(g),n.setAttribute(It.TE,Number(D))):g.parentSampled!==void 0?D=g.parentSampled:typeof t.tracesSampleRate!="undefined"?(D=t.tracesSampleRate,n.setAttribute(It.TE,Number(D))):(D=1,n.setAttribute(It.TE,D)),ar(D)?D?(n.sampled=Math.random()<D,n.sampled?(ht.X&&q.kg.log(`[Tracing] starting ${n.op} transaction - ${(0,Ot.XU)(n).description}`),n):(ht.X&&q.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(D)})`),n)):(ht.X&&q.kg.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),n.sampled=!1,n):(ht.X&&q.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),n.sampled=!1,n)}function ar(n){return(0,Pt.i2)(n)||!(typeof n=="number"||typeof n=="boolean")?(ht.X&&q.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),!1):n<0||n>1?(ht.X&&q.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${n}.`),!1):!0}function _o(){const t=this.getScope().getSpan();return t?{"sentry-trace":(0,Ot.Hb)(t)}:{}}function bo(n,t){const g=this.getClient(),D=g&&g.getOptions()||{},R=D.instrumenter||"sentry",A=n.instrumenter||"sentry";R!==A&&(ht.X&&q.kg.error(`A transaction was started with instrumenter=\`${A}\`, but the SDK is configured with the \`${R}\` instrumenter.
The transaction will not be sampled. Please use the ${R} instrumentation to start transactions.`),n.sampled=!1);let j=new ir(n,this);return j=sr(j,D,$({name:n.name,parentSampled:n.parentSampled,transactionContext:n,attributes:$($({},n.data),n.attributes)},t)),j.isRecording()&&j.initSpanRecorder(D._experiments&&D._experiments.maxSpans),g&&g.emit&&g.emit("startTransaction",j),j}function ur(n,t,g,D,R,A,j,H=!1){const K=n.getClient(),V=K&&K.getOptions()||{};let Q=new vo(t,n,g,D,j,R,H);return Q=sr(Q,V,$({name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:$($({},t.data),t.attributes)},A)),Q.isRecording()&&Q.initSpanRecorder(V._experiments&&V._experiments.maxSpans),K&&K.emit&&K.emit("startTransaction",Q),Q}function Eo(){const n=(0,Gt.cu)();n.__SENTRY__&&(n.__SENTRY__.extensions=n.__SENTRY__.extensions||{},n.__SENTRY__.extensions.startTransaction||(n.__SENTRY__.extensions.startTransaction=bo),n.__SENTRY__.extensions.traceHeaders||(n.__SENTRY__.extensions.traceHeaders=_o),yo())}var Ze=I(82295),Rt=I(22394),xt=I(75571);function So(){xt.WINDOW&&xt.WINDOW.document?xt.WINDOW.document.addEventListener("visibilitychange",()=>{const n=le();if(xt.WINDOW.document.hidden&&n){const t="cancelled",{op:g,status:D}=(0,Ot.XU)(n);Rt.X&&q.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${g}`),D||n.setStatus(t),n.setTag("visibilitychange","document.hidden"),n.end()}}):Rt.X&&q.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var zt=I(38638);function To(n,t){const g={sent_at:new Date().toISOString()};t&&(g.dsn=(0,$e.RA)(t));const D=n.map(Oo);return(0,te.Jd)(g,D)}function Oo(n){return[{type:"span"},n]}function wo(n,t,g){const D=le();D&&D.setMeasurement(n,t,g)}var Io=I(19804);function Qe(n){return typeof n=="number"&&isFinite(n)}function ge(n,D){var R=D,{startTimestamp:t}=R,g=kr(R,["startTimestamp"]);return t&&n.startTimestamp>t&&(n.startTimestamp=t),n.startChild($({startTimestamp:t},g))}var xo=I(75241);const Do=2147483647;function Ut(n){return n/1e3}function tn(){return xt.WINDOW&&xt.WINDOW.addEventListener&&xt.WINDOW.performance}let cr=0,Nt={},qt,Ee;function Co(){const n=tn();if(n&&$t.Z1){n.mark&&xt.WINDOW.performance.mark("sentry-tracing-init");const t=Ao(),g=No(),D=Mo(),R=Lo();return()=>{t(),g(),D(),R()}}return()=>{}}function ko(){(0,zt._j)("longtask",({entries:n})=>{for(const t of n){const g=le();if(!g)return;const D=Ut($t.Z1+t.startTime),R=Ut(t.duration);g.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:D,endTimestamp:D+R})}})}function Po(){(0,zt._j)("event",({entries:n})=>{for(const t of n){const g=le();if(!g)return;if(t.name==="click"){const D=Ut($t.Z1+t.startTime),R=Ut(t.duration),A={description:(0,re.Rt)(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:D,endTimestamp:D+R},j=(0,re.iY)(t.target);j&&(A.attributes={"ui.component_name":j}),g.startChild(A)}}})}function Ro(n,t){if(tn()&&$t.Z1){const D=jo(n,t);return()=>{D()}}return()=>{}}function No(){return(0,zt.PR)(({metric:n})=>{const t=n.entries[n.entries.length-1];t&&(Rt.X&&q.kg.log("[Measurements] Adding CLS"),Nt.cls={value:n.value,unit:""},Ee=t)},!0)}function Mo(){return(0,zt.$A)(({metric:n})=>{const t=n.entries[n.entries.length-1];t&&(Rt.X&&q.kg.log("[Measurements] Adding LCP"),Nt.lcp={value:n.value,unit:"millisecond"},qt=t)},!0)}function Ao(){return(0,zt.to)(({metric:n})=>{const t=n.entries[n.entries.length-1];if(!t)return;const g=Ut($t.Z1),D=Ut(t.startTime);Rt.X&&q.kg.log("[Measurements] Adding FID"),Nt.fid={value:n.value,unit:"millisecond"},Nt["mark.fid"]={value:g+D,unit:"second"}})}function Lo(){return(0,zt._4)(({metric:n})=>{n.entries[n.entries.length-1]&&(Rt.X&&q.kg.log("[Measurements] Adding TTFB"),Nt.ttfb={value:n.value,unit:"millisecond"})})}const lr={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 jo(n,t){return(0,zt.YF)(({metric:g})=>{if(g.value===void 0)return;const D=g.entries.find(Bt=>Bt.duration===g.value&&lr[Bt.name]!==void 0),R=(0,gt.s3)();if(!D||!R)return;const A=lr[D.name],j=R.getOptions(),H=Ut($t.Z1+D.startTime),K=Ut(g.value),V=D.interactionId!==void 0?n[D.interactionId]:void 0;if(V===void 0)return;const{routeName:Q,parentContext:tt,activeTransaction:st,user:ct,replayId:pt}=V,lt=ct!==void 0?ct.email||ct.id||ct.ip_address:void 0,Dt=st!==void 0?st.getProfileId():void 0,Tt=new Pe({startTimestamp:H,endTimestamp:H+K,op:`ui.interaction.${A}`,name:(0,re.Rt)(D.target),attributes:$($($({release:j.release,environment:j.environment,transaction:Q},lt!==void 0&<!==""?{user:lt}:{}),Dt!==void 0?{profile_id:Dt}:{}),pt!==void 0?{replay_id:pt}:{}),exclusiveTime:g.value,measurements:{inp:{value:g.value,unit:"millisecond"}}}),kt=Go(tt,j,t);if(kt&&Math.random()<kt){const Bt=Tt?To([Tt],R.getDsn()):void 0,ie=R&&R.getTransport();ie&&Bt&&ie.send(Bt).then(null,se=>{Rt.X&&q.kg.error("Error while sending interaction:",se)});return}})}function Uo(n){const t=tn();if(!t||!xt.WINDOW.performance.getEntries||!$t.Z1)return;Rt.X&&q.kg.log("[Tracing] Adding & adjusting spans using Performance API");const g=Ut($t.Z1),D=t.getEntries(),{op:R,start_timestamp:A}=(0,Ot.XU)(n);if(D.slice(cr).forEach(j=>{const H=Ut(j.startTime),K=Ut(j.duration);if(!(n.op==="navigation"&&A&&g+H<A))switch(j.entryType){case"navigation":{Ho(n,j,g);break}case"mark":case"paint":case"measure":{Bo(n,j,H,K,g);const V=(0,Io.Y)(),Q=j.startTime<V.firstHiddenTime;j.name==="first-paint"&&Q&&(Rt.X&&q.kg.log("[Measurements] Adding FP"),Nt.fp={value:j.startTime,unit:"millisecond"}),j.name==="first-contentful-paint"&&Q&&(Rt.X&&q.kg.log("[Measurements] Adding FCP"),Nt.fcp={value:j.startTime,unit:"millisecond"});break}case"resource":{$o(n,j,j.name,H,K,g);break}}}),cr=Math.max(D.length-1,0),Wo(n),R==="pageload"){Ko(Nt),["fcp","fp","lcp"].forEach(H=>{if(!Nt[H]||!A||g>=A)return;const K=Nt[H].value,V=g+Ut(K),Q=Math.abs((V-A)*1e3),tt=Q-K;Rt.X&&q.kg.log(`[Measurements] Normalized ${H} from ${K} to ${Q} (${tt})`),Nt[H].value=Q});const j=Nt["mark.fid"];j&&Nt.fid&&(ge(n,{description:"first input delay",endTimestamp:j.value+Ut(Nt.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:j.value}),delete Nt["mark.fid"]),"fcp"in Nt||delete Nt.cls,Object.keys(Nt).forEach(H=>{wo(H,Nt[H].value,Nt[H].unit)}),Xo(n)}qt=void 0,Ee=void 0,Nt={}}function Bo(n,t,g,D,R){const A=R+g,j=A+D;return ge(n,{description:t.name,endTimestamp:j,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:A}),A}function Ho(n,t,g){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(D=>{Ae(n,t,D,g)}),Ae(n,t,"secureConnection",g,"TLS/SSL","connectEnd"),Ae(n,t,"fetch",g,"cache","domainLookupStart"),Ae(n,t,"domainLookup",g,"DNS"),Fo(n,t,g)}function Ae(n,t,g,D,R,A){const j=A?t[A]:t[`${g}End`],H=t[`${g}Start`];!H||!j||ge(n,{op:"browser",origin:"auto.browser.browser.metrics",description:R||g,startTimestamp:D+Ut(H),endTimestamp:D+Ut(j)})}function Fo(n,t,g){t.responseEnd&&(ge(n,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:g+Ut(t.requestStart),endTimestamp:g+Ut(t.responseEnd)}),ge(n,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:g+Ut(t.responseStart),endTimestamp:g+Ut(t.responseEnd)}))}function $o(n,t,g,D,R,A){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const j=xe(g),H={};en(H,t,"transferSize","http.response_transfer_size"),en(H,t,"encodedBodySize","http.response_content_length"),en(H,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(H["resource.render_blocking_status"]=t.renderBlockingStatus),j.protocol&&(H["url.scheme"]=j.protocol.split(":").pop()),j.host&&(H["server.address"]=j.host),H["url.same_origin"]=g.includes(xt.WINDOW.location.origin);const K=A+D,V=K+R;ge(n,{description:g.replace(xt.WINDOW.location.origin,""),endTimestamp:V,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:K,data:H})}function Wo(n){const t=xt.WINDOW.navigator;if(!t)return;const g=t.connection;g&&(g.effectiveType&&n.setTag("effectiveConnectionType",g.effectiveType),g.type&&n.setTag("connectionType",g.type),Qe(g.rtt)&&(Nt["connection.rtt"]={value:g.rtt,unit:"millisecond"})),Qe(t.deviceMemory)&&n.setTag("deviceMemory",`${t.deviceMemory} GB`),Qe(t.hardwareConcurrency)&&n.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function Xo(n){qt&&(Rt.X&&q.kg.log("[Measurements] Adding LCP Data"),qt.element&&n.setTag("lcp.element",(0,re.Rt)(qt.element)),qt.id&&n.setTag("lcp.id",qt.id),qt.url&&n.setTag("lcp.url",qt.url.trim().slice(0,200)),n.setTag("lcp.size",qt.size)),Ee&&Ee.sources&&(Rt.X&&q.kg.log("[Measurements] Adding CLS Data"),Ee.sources.forEach((t,g)=>n.setTag(`cls.source.${g+1}`,(0,re.Rt)(t.node))))}function en(n,t,g,D){const R=t[g];R!=null&&R<Do&&(n[D]=R)}function Ko(n){const t=(0,xo.W)();if(!t)return;const{responseStart:g,requestStart:D}=t;D<=g&&(Rt.X&&q.kg.log("[Measurements] Adding TTFB Request Time"),n["ttfb.requestTime"]={value:g-D,unit:"millisecond"})}function Go(n,t,g){if(!he(t))return!1;let D;return n!==void 0&&typeof t.tracesSampler=="function"?D=t.tracesSampler({transactionContext:n,name:n.name,parentSampled:n.parentSampled,attributes:$($({},n.data),n.attributes),location:xt.WINDOW.location}):n!==void 0&&n.sampled!==void 0?D=n.sampled:typeof t.tracesSampleRate!="undefined"?D=t.tracesSampleRate:D=1,ar(D)?D===!0?g:D===!1?0:D*g:(Rt.X&&q.kg.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}var Se=I(51648);function Yo(n,t,g,D,R="auto.http.browser"){if(!he()||!n.fetchData)return;const A=t(n.fetchData.url);if(n.endTimestamp&&A){const tt=n.fetchData.__span;if(!tt)return;const st=D[tt];if(st){if(n.response){Ve(st,n.response.status);const ct=n.response&&n.response.headers&&n.response.headers.get("content-length");if(ct){const pt=parseInt(ct);pt>0&&st.setAttribute("http.response_content_length",pt)}}else n.error&&st.setStatus("internal_error");st.end(),delete D[tt]}return}const j=(0,gt.nZ)(),H=(0,gt.s3)(),{method:K,url:V}=n.fetchData,Q=A?er({name:`${K} ${V}`,onlyIfParent:!0,attributes:{url:V,type:"fetch","http.method":K,[It.S3]:R},op:"http.client"}):void 0;if(Q&&(n.fetchData.__span=Q.spanContext().spanId,D[Q.spanContext().spanId]=Q),g(n.fetchData.url)&&H){const tt=n.args[0];n.args[1]=n.args[1]||{};const st=n.args[1];st.headers=Jo(tt,H,j,st,Q)}return Q}function Jo(n,t,g,D,R){const A=R||g.getSpan(),j=(0,Gt.aF)(),{traceId:H,spanId:K,sampled:V,dsc:Q}=$($({},j.getPropagationContext()),g.getPropagationContext()),tt=A?(0,Ot.Hb)(A):(0,Ze.$p)(H,K,V),st=(0,Se.IQ)(Q||(A?(0,ce.j)(A):(0,ce._)(H,t,g))),ct=D.headers||(typeof Request!="undefined"&&(0,Pt.V9)(n,Request)?n.headers:void 0);if(ct)if(typeof Headers!="undefined"&&(0,Pt.V9)(ct,Headers)){const pt=new Headers(ct);return pt.append("sentry-trace",tt),st&&pt.append(Se.bU,st),pt}else if(Array.isArray(ct)){const pt=[...ct,["sentry-trace",tt]];return st&&pt.push([Se.bU,st]),pt}else{const pt="baggage"in ct?ct.baggage:void 0,lt=[];return Array.isArray(pt)?lt.push(...pt):pt&<.push(pt),st&<.push(st),mt($({},ct),{"sentry-trace":tt,baggage:lt.length>0?lt.join(","):void 0})}else return{"sentry-trace":tt,baggage:st}}const nn=["localhost",/^\/(?!\/)/],rn={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:nn,tracePropagationTargets:nn};function Vo(n){const{traceFetch:t,traceXHR:g,tracePropagationTargets:D,tracingOrigins:R,shouldCreateSpanForRequest:A,enableHTTPTimings:j}=$({traceFetch:rn.traceFetch,traceXHR:rn.traceXHR},n),H=typeof A=="function"?A:Q=>!0,K=Q=>Qo(Q,D||R),V={};t&&(0,yn.U)(Q=>{const tt=Yo(Q,H,K,V);j&&tt&&dr(tt)}),g&&(0,Ie.UK)(Q=>{const tt=ts(Q,H,K,V);j&&tt&&dr(tt)})}function zo(n){return n.entryType==="resource"&&"initiatorType"in n&&typeof n.nextHopProtocol=="string"&&(n.initiatorType==="fetch"||n.initiatorType==="xmlhttprequest")}function dr(n){const{url:t}=(0,Ot.XU)(n).data||{};if(!t||typeof t!="string")return;const g=(0,zt._j)("resource",({entries:D})=>{D.forEach(R=>{zo(R)&&R.name.endsWith(t)&&(Zo(R).forEach(j=>n.setAttribute(...j)),setTimeout(g))})})}function qo(n){let t="unknown",g="unknown",D="";for(const R of n){if(R==="/"){[t,g]=n.split("/");break}if(!isNaN(Number(R))){t=D==="h"?"http":D,g=n.split(D)[1];break}D+=R}return D===n&&(t=D),{name:t,version:g}}function Zt(n=0){return(($t.Z1||performance.timeOrigin)+n)/1e3}function Zo(n){const{name:t,version:g}=qo(n.nextHopProtocol),D=[];return D.push(["network.protocol.version",g],["network.protocol.name",t]),$t.Z1?[...D,["http.request.redirect_start",Zt(n.redirectStart)],["http.request.fetch_start",Zt(n.fetchStart)],["http.request.domain_lookup_start",Zt(n.domainLookupStart)],["http.request.domain_lookup_end",Zt(n.domainLookupEnd)],["http.request.connect_start",Zt(n.connectStart)],["http.request.secure_connection_start",Zt(n.secureConnectionStart)],["http.request.connection_end",Zt(n.connectEnd)],["http.request.request_start",Zt(n.requestStart)],["http.request.response_start",Zt(n.responseStart)],["http.request.response_end",Zt(n.responseEnd)]]:D}function Qo(n,t){return(0,Ft.U0)(n,t||nn)}function ts(n,t,g,D){const R=n.xhr,A=R&&R[Ie.xU];if(!he()||!R||R.__sentry_own_request__||!A)return;const j=t(A.url);if(n.endTimestamp&&j){const tt=R.__sentry_xhr_span_id__;if(!tt)return;const st=D[tt];st&&A.status_code!==void 0&&(Ve(st,A.status_code),st.end(),delete D[tt]);return}const H=(0,gt.nZ)(),K=(0,Gt.aF)(),V=j?er({name:`${A.method} ${A.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":A.method,url:A.url,[It.S3]:"auto.http.browser"},op:"http.client"}):void 0;V&&(R.__sentry_xhr_span_id__=V.spanContext().spanId,D[R.__sentry_xhr_span_id__]=V);const Q=(0,gt.s3)();if(R.setRequestHeader&&g(A.url)&&Q){const{traceId:tt,spanId:st,sampled:ct,dsc:pt}=$($({},K.getPropagationContext()),H.getPropagationContext()),lt=V?(0,Ot.Hb)(V):(0,Ze.$p)(tt,st,ct),Dt=(0,Se.IQ)(pt||(V?(0,ce.j)(V):(0,ce._)(tt,Q,H)));es(R,lt,Dt)}return V}function es(n,t,g){try{n.setRequestHeader("sentry-trace",t),g&&n.setRequestHeader(Se.bU,g)}catch(D){}}const ns="BrowserTracing",rs=$(mt($({},Me),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{}}),rn),is=(n={})=>{const t=Rt.X?!!(n.tracePropagationTargets||n.tracingOrigins):!1;Eo(),!n.tracePropagationTargets&&n.tracingOrigins&&(n.tracePropagationTargets=n.tracingOrigins);const g=$($({},rs),n),D=Co(),R={};g.enableInp&&Ro(R,g.interactionsSampleRate),g.enableLongTask&&ko(),g._experiments.enableInteractions&&Po();const A={name:void 0,context:void 0};function j(H){const K=(0,Gt.Gd)(),{beforeStartSpan:V,idleTimeout:Q,finalTimeout:tt,heartbeatInterval:st}=g,ct=H.op==="pageload";let pt;if(ct){const kt=ct?fr("sentry-trace"):"",Bt=ct?fr("baggage"):void 0,{traceId:ie,dsc:se,parentSpanId:an,sampled:Ue}=(0,Ze.pT)(kt,Bt);pt=mt($({traceId:ie,parentSpanId:an,parentSampled:Ue},H),{metadata:mt($({},H.metadata),{dynamicSamplingContext:se}),trimEnd:!0})}else pt=$({trimEnd:!0},H);const lt=V?V(pt):pt;lt.metadata=lt.name!==pt.name?mt($({},lt.metadata),{source:"custom"}):lt.metadata,A.name=lt.name,A.context=lt,lt.sampled===!1&&Rt.X&&q.kg.log(`[Tracing] Will not send ${lt.op} transaction because of beforeNavigate.`),Rt.X&&q.kg.log(`[Tracing] Starting ${lt.op} transaction on scope`);const{location:Dt}=xt.WINDOW,Tt=ur(K,lt,Q,tt,!0,{location:Dt},st,ct);return ct&&xt.WINDOW.document&&(xt.WINDOW.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(xt.WINDOW.document.readyState)&&Tt.sendAutoFinishSignal()}),["interactive","complete"].includes(xt.WINDOW.document.readyState)&&Tt.sendAutoFinishSignal()),Tt.registerBeforeFinishCallback(kt=>{D(),Uo(kt)}),Tt}return{name:ns,setupOnce:()=>{},afterAllSetup(H){const K=H.getOptions(),{markBackgroundSpan:V,traceFetch:Q,traceXHR:tt,shouldCreateSpanForRequest:st,enableHTTPTimings:ct,_experiments:pt}=g,lt=K&&K.tracePropagationTargets,Dt=lt||g.tracePropagationTargets;Rt.X&&t&<&&q.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let Tt,kt=xt.WINDOW.location&&xt.WINDOW.location.href;if(H.on&&(H.on("startNavigationSpan",Bt=>{Tt&&(Rt.X&&q.kg.log(`[Tracing] Finishing current transaction with op: ${(0,Ot.XU)(Tt).op}`),Tt.end()),Tt=j($({op:"navigation"},Bt))}),H.on("startPageLoadSpan",Bt=>{Tt&&(Rt.X&&q.kg.log(`[Tracing] Finishing current transaction with op: ${(0,Ot.XU)(Tt).op}`),Tt.end()),Tt=j($({op:"pageload"},Bt))})),g.instrumentPageLoad&&H.emit&&xt.WINDOW.location){const Bt={name:xt.WINDOW.location.pathname,startTimestamp:$t.Z1?$t.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[It.Zj]:"url"}};os(H,Bt)}g.instrumentNavigation&&H.emit&&xt.WINDOW.location&&(0,Fe.a)(({to:Bt,from:ie})=>{if(ie===void 0&&kt&&kt.indexOf(Bt)!==-1){kt=void 0;return}if(ie!==Bt){kt=void 0;const se={name:xt.WINDOW.location.pathname,origin:"auto.navigation.browser",attributes:{[It.Zj]:"url"}};ss(H,se)}}),V&&So(),pt.enableInteractions&&as(g,A),g.enableInp&&cs(R,A),Vo({traceFetch:Q,traceXHR:tt,tracePropagationTargets:Dt,shouldCreateSpanForRequest:st,enableHTTPTimings:ct})},options:g}};function os(n,t){if(!n.emit)return;n.emit("startPageLoadSpan",t);const g=ze();return(g&&(0,Ot.XU)(g).op)==="pageload"?g:void 0}function ss(n,t){if(!n.emit)return;n.emit("startNavigationSpan",t);const g=ze();return(g&&(0,Ot.XU)(g).op)==="navigation"?g:void 0}function fr(n){const t=(0,re.qT)(`meta[name=${n}]`);return t?t.getAttribute("content"):void 0}function as(n,t){let g;const D=()=>{const{idleTimeout:R,finalTimeout:A,heartbeatInterval:j}=n,H="ui.action.click",K=le();if(K&&K.op&&["navigation","pageload"].includes(K.op)){Rt.X&&q.kg.warn(`[Tracing] Did not create ${H} transaction because a pageload or navigation transaction is in progress.`);return}if(g&&(g.setFinishReason("interactionInterrupted"),g.end(),g=void 0),!t.name){Rt.X&&q.kg.warn(`[Tracing] Did not create ${H} transaction because _latestRouteName is missing.`);return}const{location:V}=xt.WINDOW,Q={name:t.name,op:H,trimEnd:!0,data:{[It.Zj]:t.context?ls(t.context):"url"}};g=ur((0,Gt.Gd)(),Q,R,A,!0,{location:V},j)};["click"].forEach(R=>{addEventListener(R,D,{once:!1,capture:!0})})}function us(n){return"duration"in n}const pr=10;function cs(n,t){const g=({entries:D})=>{const R=(0,gt.s3)(),A=R!==void 0&&R.getIntegrationByName!==void 0?R.getIntegrationByName("Replay"):void 0,j=A!==void 0?A.getReplayId():void 0,H=le(),K=(0,gt.nZ)(),V=K!==void 0?K.getUser():void 0;D.forEach(Q=>{if(us(Q)){const tt=Q.interactionId;if(tt===void 0)return;const st=n[tt],ct=Q.duration,pt=Q.startTime,lt=Object.keys(n),Dt=lt.length>0?lt.reduce((Tt,kt)=>n[Tt].duration<n[kt].duration?Tt:kt):void 0;if(Q.entryType==="first-input"&<.map(kt=>n[kt]).some(kt=>kt.duration===ct&&kt.startTime===pt)||!tt)return;if(st)st.duration=Math.max(st.duration,ct);else if(lt.length<pr||Dt===void 0||ct>n[Dt].duration){const Tt=t.name,kt=t.context;Tt&&kt&&(Dt&&Object.keys(n).length>=pr&&delete n[Dt],n[tt]={routeName:Tt,duration:ct,parentContext:kt,user:V,activeTransaction:H,replayId:j,startTime:pt})}}})};(0,zt._j)("event",g),(0,zt._j)("first-input",g)}function ls(n){const t=n.attributes&&n.attributes[It.Zj],g=n.data&&n.data[It.Zj],D=n.metadata&&n.metadata.source;return t||g||D}var ds=I(96368),Ya=I(10063);const fs=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,hr="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function ps(n){const t=n.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const hs="unknown",mr={componentStack:null,error:null,eventId:null};function ms(n,t){const g=new WeakMap;function D(R,A){if(!g.has(R)){if(R.cause)return g.set(R,!0),D(R.cause,A);R.cause=A}}D(n,t)}class Le extends S.Component{constructor(t){super(t),Le.prototype.__init.call(this),this.state=mr,this._openFallbackReportDialog=!0;const g=(0,gt.s3)();g&&g.on&&t.showDialog&&(this._openFallbackReportDialog=!1,g.on("afterSendEvent",D=>{!D.type&&D.event_id===this._lastEventId&&Vn(mt($({},t.dialogOptions),{eventId:this._lastEventId}))}))}componentDidCatch(t,{componentStack:g}){const{beforeCapture:D,onError:R,showDialog:A,dialogOptions:j}=this.props;(0,gt.$e)(H=>{if(ps(S.version)&&(0,Pt.VZ)(t)){const V=new Error(t.message);V.name=`React ErrorBoundary ${t.name}`,V.stack=g,ms(t,V)}D&&D(H,t,g);const K=(0,gt.Tb)(t,{captureContext:{contexts:{react:{componentStack:g}}},mechanism:{handled:!!this.props.fallback}});R&&R(t,g,K),A&&(this._lastEventId=K,this._openFallbackReportDialog&&Vn(mt($({},j),{eventId:K}))),this.setState({error:t,componentStack:g,eventId:K})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:g,eventId:D}=this.state,{onUnmount:R}=this.props;R&&R(t,g,D)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:g,componentStack:D,eventId:R}=this.state;t&&t(g,D,R),this.setState(mr)}}render(){const{fallback:t,children:g}=this.props,D=this.state;if(D.error){let R;return typeof t=="function"?R=t({error:D.error,componentStack:D.componentStack,resetError:this.resetErrorBoundary,eventId:D.eventId}):R=t,S.isValidElement(R)?R:(t&&fs&&q.kg.warn("fallback did not produce a valid ReactElement"),null)}return typeof g=="function"?g():g}}function Ja(n,t){const g=n.displayName||n.name||hs,D=R=>React.createElement(Le,mt($({},t),{__self:this,__source:{fileName:hr,lineNumber:240}}),React.createElement(n,mt($({},R),{__self:this,__source:{fileName:hr,lineNumber:241}})));return D.displayName=`errorBoundary(${g})`,hoistNonReactStatics(D,n),D}var gs=Object.defineProperty,vs=Object.defineProperties,ys=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,gr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,yr=(n,t,g)=>t in n?gs(n,t,{enumerable:!0,configurable:!0,writable:!0,value:g}):n[t]=g,Xt=(n,t)=>{for(var g in t||(t={}))gr.call(t,g)&&yr(n,g,t[g]);if(je)for(var g of je(t))vr.call(t,g)&&yr(n,g,t[g]);return n},_s=(n,t)=>vs(n,ys(t)),on=(n,t)=>{var g={};for(var D in n)gr.call(n,D)&&t.indexOf(D)<0&&(g[D]=n[D]);if(n!=null&&je)for(var D of je(n))t.indexOf(D)<0&&vr.call(n,D)&&(g[D]=n[D]);return g},bs=n=>{var t=n,{className:g}=t,D=on(t,["className"]);return S.createElement("button",Xt({className:P()("sk-button",g)},D))},Es=bs,Ss=Es,Ts=n=>{var t=n,{className:g}=t,D=on(t,["className"]);return S.createElement("div",Xt({className:P()("sk-divider",g)},D))},Os=Ts,ws=Os,Is=(0,S.forwardRef)((n,t)=>{const g=n,{src:D,width:R="100%",height:A="88vh",showControls:j=!0,autoPlay:H=!1}=g,K=on(g,["src","width","height","showControls","autoPlay"]),V=(0,S.useRef)(null),[Q,tt]=(0,S.useState)(H),[st,ct]=(0,S.useState)(.5),[pt,lt]=(0,S.useState)(0),[Dt,Tt]=(0,S.useState)(!1),[kt,Bt]=(0,S.useState)("00:00"),[ie,se]=(0,S.useState)("00:00"),[an,Ue]=(0,S.useState)(!1),Or=_t=>{const Kt=Math.floor(_t/60),de=Math.floor(_t%60),ae=String(Kt).padStart(2,"0"),Be=String(de).padStart(2,"0");return`${ae}:${Be}`};(0,S.useEffect)(()=>{if(V.current){const _t=V.current,Kt=()=>{const ae=Or(_t.currentTime);Bt(ae);const Be=Or(_t.duration);se(Be)},de=ae=>{const pa=ae.target.error.message;console.error(`Video error: ${pa}`),tt(!1)};return _t.addEventListener("timeupdate",Kt),_t.addEventListener("error",de),()=>{_t.removeEventListener("timeupdate",Kt),_t.removeEventListener("error",de)}}},[]),(0,S.useEffect)(()=>{V.current&&H&&V.current.play()},[H]);const ra=()=>{V.current&&(Q?V.current.pause():V.current.play(),tt(!Q),K.onPlayPause&&K.onPlayPause())},ia=()=>{V.current&&(V.current.load(),tt(!1),lt(0),Bt("00:00"),se("00:00"),K.onReload&&K.onReload())},oa=()=>{V.current&&(V.current.currentTime+=3,lt(V.current.currentTime/V.current.duration*100),K.onFastForward&&K.onFastForward())},sa=()=>{V.current&&(V.current.currentTime-=3,lt(V.current.currentTime/V.current.duration*100),K.onRewind&&K.onRewind())},aa=()=>{if(V.current){const _t=Math.min(st+.1,1);ct(_t),V.current.volume=_t,K.onVolumeUp&&K.onVolumeUp()}},ua=()=>{if(V.current){const _t=Math.max(st-.1,0);ct(_t),V.current.volume=_t,K.onVolumeDown&&K.onVolumeDown()}},ca=_t=>{V.current&&(ct(_t),V.current.volume=_t,K.onVolumeChange&&K.onVolumeChange(_t))},la=()=>{V.current&&(V.current.requestFullscreen(),K.onFullScreen&&K.onFullScreen())},da=()=>{if(!Dt&&V.current){const _t=V.current.currentTime,Kt=V.current.duration;if(!isNaN(Kt)&&Kt>0){const de=_t/Kt*100;lt(de)}}},wr=()=>{Tt(!0)},Ir=_t=>{if(V.current){const Kt=_t.currentTarget,ae=(_t.type==="touchend"?_t.changedTouches[0].clientX-Kt.getBoundingClientRect().left:_t.clientX-Kt.getBoundingClientRect().left)/Kt.offsetWidth*100;lt(ae),V.current.currentTime=ae/100*V.current.duration}Tt(!1)},fa=()=>{V.current&&(document.pictureInPictureElement?document.exitPictureInPicture().then(()=>Ue(!1)).catch(_t=>console.error("Error exiting Picture-in-Picture mode:",_t)):V.current.requestPictureInPicture().then(()=>Ue(!0)).catch(_t=>console.error("Error entering Picture-in-Picture mode:",_t)),K.onTogglePictureInPicture&&K.onTogglePictureInPicture())};return S.createElement("div",{className:"sk-video-player bg-red-400 relative",style:{width:R,height:A}},S.createElement("video",{ref:_t=>{_t&&(V.current=_t,typeof t=="function"?t(_t):t&&(t.current=_t))},src:D,className:"w-full h-full",onTimeUpdate:da,onEnded:()=>tt(!1)}),j&&S.createElement("div",{className:"absolute bottom-15 z-998 left-0 right-0 flex justify-center space-x-4"},S.createElement("button",{className:"cursor-pointer text-ccc",onClick:ra},Q?"Pause":"Play"),S.createElement("button",{className:"cursor-pointer text-ccc",onClick:ia},"Reload"),S.createElement("button",{className:"cursor-pointer text-ccc",onClick:oa},"Fast Forward"),S.createElement("button",{className:"cursor-pointer text-ccc",onClick:sa},"Rewind"),S.createElement("button",{onClick:aa},"Volume Up"),S.createElement("button",{onClick:ua},"Volume Down"),S.createElement("button",{onClick:()=>ca(0)},"Mute"),S.createElement("button",{className:"cursor-pointer text-ccc",onClick:la},"Full Screen"),S.createElement("button",{className:"cursor-pointer text-ccc",onClick:fa},an?"Exit Picture-in-Picture":"Enter Picture-in-Picture")),S.createElement("div",{className:"absolute bottom-5 left-0 right-0 mb-4 px-4 z-999"},S.createElement("progress",{value:pt,max:100,onMouseDown:wr,onMouseUp:Ir,onTouchStart:wr,onTouchEnd:Ir,className:"w-full h-2 bg-gray-300 rounded-full overflow-hidden cursor-pointer"})),S.createElement("div",{className:"absolute bottom-0 left-0 right-0 mb-2 px-4 flex justify-between text-ccc"},S.createElement("span",null,kt),S.createElement("span",null,ie)))}),xs=Is,Ds=xs,Cs=(0,S.createContext)({locale:"zh-CN"}),sn=Cs,ks={formatYear:"YYYY \u5E74",formatMonth:"YYYY \u5E74 MM \u6708",today:"\u4ECA\u5929",month:{January:"\u4E00\u6708",February:"\u4E8C\u6708",March:"\u4E09\u6708",April:"\u56DB\u6708",May:"\u4E94\u6708",June:"\u516D\u6708",July:"\u4E03\u6708",August:"\u516B\u6708",September:"\u4E5D\u6708",October:"\u5341\u6708",November:"\u5341\u4E00\u6708",December:"\u5341\u4E8C\u6708"},week:{monday:"\u5468\u4E00",tuesday:"\u5468\u4E8C",wednesday:"\u5468\u4E09",thursday:"\u5468\u56DB",friday:"\u5468\u4E94",saturday:"\u5468\u516D",sunday:"\u5468\u65E5"}},Ps=ks,Rs={formatYear:"YYYY",formatMonth:"MMM YYYY",today:"Today",month:{January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},week:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"}},Ns=Rs,Ms={"zh-CN":Ps,"en-US":Ns},_r=Ms;function As(n){const t=n.startOf("month"),g=t.day(),D=Array.from({length:6*7});for(let R=0;R<g;R++)D[R]={date:t.subtract(g-R,"day"),currentMonth:!1};for(let R=g;R<D.length;R++){const A=t.add(R-g,"day");D[R]={date:A,currentMonth:A.month()===n.month()}}return D}function Ls(n){const t=(0,S.useContext)(sn),{value:g,curMonth:D,dateRender:R,dateInnerContent:A,selectHandler:j}=n,H=_r[t.locale],K=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],V=As(D);function Q(tt){const st=[];for(let ct=0;ct<6;ct++){const pt=[];for(let lt=0;lt<7;lt++){const Dt=tt[ct*7+lt];pt[lt]=S.createElement("div",{key:`${Dt.date.format("YYYY-MM-DD")}-${ct}-${lt}`,className:`calendar-month-body-cell ${Dt.currentMonth?"calendar-month-body-cell-current":""}`,onClick:()=>j==null?void 0:j(Dt.date)},R?R(Dt.date):S.createElement("div",{className:"calendar-month-body-cell-date"},S.createElement("div",{className:P()("calendar-month-body-cell-date-value",g.format("YYYY-MM-DD")===Dt.date.format("YYYY-MM-DD")?"calendar-month-body-cell-date-selected":"")},Dt.date.date()),S.createElement("div",{className:"calendar-month-cell-body-date-content"},A==null?void 0:A(Dt.date))))}st.push(pt)}return st.map((ct,pt)=>S.createElement("div",{className:"calendar-month-body-row",key:pt},ct))}return S.createElement("div",{className:"calendar-month"},S.createElement("div",{className:"calendar-month-week-list"},K.map(tt=>S.createElement("div",{className:"calendar-month-week-list-item",key:tt},H.week[tt]))),S.createElement("div",{className:"calendar-month-body"},Q(V)))}var js=Ls;function Us(n){const{curMonth:t,prevMonthHandler:g,nextMonthHandler:D,todayHandler:R}=n,A=(0,S.useContext)(sn),j=_r[A.locale];return S.createElement("div",{className:"calendar-header"},S.createElement("div",{className:"calendar-header-left"},S.createElement("div",{className:"calendar-header-icon",onClick:g},"<"),S.createElement("div",{className:"calendar-header-value"},t.format(j.formatMonth)),S.createElement("div",{className:"calendar-header-icon",onClick:D},">"),S.createElement("button",{className:"calendar-header-btn",onClick:R},j.today)))}var Bs=Us;function Hs(n){const{value:t,style:g,className:D,locale:R,onChange:A}=n,[j,H]=(0,S.useState)(t),[K,V]=(0,S.useState)(t),Q=P()("calendar",D);function tt(lt){H(lt),V(lt),A==null||A(lt)}function st(){V(K.subtract(1,"month"))}function ct(){V(K.add(1,"month"))}function pt(){const lt=f()(Date.now());H(lt),V(lt),A==null||A(lt)}return S.createElement(sn.Provider,{value:{locale:R||navigator.language}},S.createElement("div",{className:Q,style:g},S.createElement(Bs,{curMonth:K,prevMonthHandler:st,nextMonthHandler:ct,todayHandler:pt}),S.createElement(js,_s(Xt({},n),{value:j,curMonth:K,selectHandler:tt}))))}var Fs=Hs,$s=Fs,br=(0,S.createContext)(void 0),Ws=()=>{const n=(0,S.useContext)(br);if(!n)throw new Error("useMonitorContext must be used within a MonitorContextProvider");return n},Xs=({children:n,config:t})=>{const[g,D]=(0,S.useState)("none");return S.createElement(br.Provider,{value:{monitorType:g,setMonitorType:D,config:t}},n)},Ks=Xs,Gs=class extends S.Component{constructor(n){super(n),this.state={hasError:!1}}componentDidMount(){const{fundebugKey:n,debug:t}=this.props;t&&console.log("\u5F00\u542F\u8C03\u8BD5\u6A21\u5F0F"),n&&(console.log(`fundebugKey: ${n}`),o().init({apikey:n}),console.log("fundebug \u521D\u59CB\u5316\u6210\u529F"))}componentDidCatch(n,t){this.setState({hasError:!0}),o().notifyError(n,{metaData:{info:t.componentStack}})}render(){return this.state.hasError?null:S.createElement(S.Fragment,null,this.props.children)}},Ys=Gs,Er=Ys,Js=({children:n,rollbarKey:t,rollbarEnv:g,debug:D})=>{D&&(console.log("\u5F00\u542F\u8C03\u8BD5\u6A21\u5F0F"),console.log(`rollbarKey: ${t}`));const R={accessToken:t||"23b8e46f18bd4eecaee8855d44148de4",environment:g||"testenv"};return S.createElement(Jt,{config:R},S.createElement(Vt,null,n))},Vs=Js,Sr=Vs;function zs(){return S.createElement("h2",null,"Something went wrong.")}function qs(n){(0,S.useLayoutEffect)(()=>(sessionStorage.getItem("sentryInitialized")||(lo(Xt({integrations:[is(),ds.Li({maskAllText:!1,blockAllMedia:!1})],tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,maxBreadcrumbs:50},n)),sessionStorage.setItem("sentryInitialized","true")),()=>{}),[n])}var Zs=({children:n,sentryOptions:t,fallback:g})=>(qs(t),S.createElement(Le,{fallback:g||zs},n)),Qs=Zs,Tr=Qs,ta=({fundebug:n,rollbar:t,sentry:g,children:D,className:R,config:A})=>{const{monitorType:j,config:H}=Ws(),K=Xt(Xt({},H),A),V=(()=>{switch(j){case"fundebug":return S.createElement(Er,Xt({},K),n||D);case"rollbar":return S.createElement(Sr,Xt({},K),t||D);case"sentry":return S.createElement(Tr,Xt({},K),g||D);default:return S.createElement(Tr,Xt({},K),S.createElement(Er,Xt({},K),n),S.createElement(Sr,Xt({},K),t),g||D)}})();return S.createElement("div",{className:R},V)},ea=ta,na=ea}}]);
}());