PageSourceSearch

https://pingenerator.com/static/2418.0a3a8ebc09d624049e01d7f236561d80.bundle.js

js pingenerator.com collected 2026-09-24 17:08:43 UTC 741,770 bytes, 2 lines download raw bytes

1/*! For license information please see 2418.0a3a8ebc09d624049e01d7f236561d80.bundle.js.LICENSE.txt */
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8ddbab68-f9d7-49f2-8a1b-3a78fe17f074",e._sentryDebugIdIdentifier="sentry-dbid-8ddbab68-f9d7-49f2-8a1b-3a78fe17f074")}catch(e){}}(),(self.webpackChunkpingenerator=self.webpackChunkpingenerator||[]).push([[2418],{127:(e,t,n)=>{"use strict";var r=n(31863);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},528:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},589:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(58168),i=/\s*,\s*/g,o=/&/g,s=/\$([\w-]+)/g;const a=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(i),r=e.split(i),s="",a=0;a<n.length;a++)for(var c=n[a],u=0;u<r.length;u++){var l=r[u];s&&(s+=", "),s+=-1!==l.indexOf("&")?l.replace(o,c):c+" "+l}return s}function n(e,t,n){if(n)return(0,r.A)({},n,{index:n.index+1});var i=e.options.nestingLevel;i=void 0===i?1:i+1;var o=(0,r.A)({},e.options,{nestingLevel:i,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(i,o,a){if("style"!==o.type)return i;var c,u,l=o,d=l.options.parent;for(var h in i){var p=-1!==h.indexOf("&"),f="@"===h[0];if(p||f){if(c=n(l,d,c),p){var m=t(h,l.selector);u||(u=e(d,a)),m=m.replace(s,u);var g=l.key+"-"+h;"replaceRule"in d?d.replaceRule(g,i[h],(0,r.A)({},c,{selector:m})):d.addRule(g,i[h],(0,r.A)({},c,{selector:m}))}else f&&d.addRule(h,{},c).addRule(l.key,i[h],{selector:l.selector});delete i[h]}}return i}}}},1265:(e,t,n)=>{"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}n.d(t,{A:()=>o});var i=r();i.withExtraArgument=r;const o=i},2694:(e,t,n)=>{"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
2;return n.PropTypes=n,n}},3594:(e,t,n)=>{"use strict";n.d(t,{qd:()=>c,wg:()=>l,y7:()=>u});var r=n(19282),i=n(47040),o=n(4693),s=n(14910);const a={};function c(e){const t=a[e];if(t)return t;let n=s.j[e];if((0,i.a3)(n))return a[e]=n.bind(s.j);const c=s.j.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t);const r=t.contentWindow;r?.[e]&&(n=r[e]),c.head.removeChild(t)}catch(t){o.T&&r.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?a[e]=n.bind(s.j):n}function u(e){a[e]=void 0}function l(...e){return c("setTimeout")(...e)}},4146:(e,t,n)=>{"use strict";var r=n(44363),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var s=l(n);d&&(s=s.concat(d(n)));for(var a=c(t),m=c(n),g=0;g<s.length;++g){var y=s[g];if(!(o[y]||r&&r[y]||m&&m[y]||a&&a[y])){var v=h(n,y);try{u(t,y,v)}catch(e){}}}}return t}},4417:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},4692:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(14910);const i=(e=!0)=>{const t=r.j.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},4693:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},5125:(e,t,n)=>{"use strict";n.d(t,{h1:()=>a,uA:()=>i});var r=n(81936);class i{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const o="[DEFAULT]";class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new r.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:o})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=o){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=o){return this.instances.has(e)}getOptions(e=o){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[e,t]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(e)&&t.resolve(r);return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===o?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(e){}var r;return n||null}normalizeInstanceIdentifier(e=o){return this.component?this.component.multipleInstances?e:o:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},5544:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(96369),i=n(27800),o=n(76562);function s(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,i=e}
2finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,t)||(0,i.A)(e,t)||(0,o.A)()}},5556:(e,t,n)=>{e.exports=n(2694)()},5915:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>M,CC:()=>m,Ck:()=>v,G_:()=>w,Hu:()=>A,Qh:()=>b,VS:()=>R,aO:()=>g,cI:()=>E,et:()=>T,kX:()=>_,pK:()=>I,uU:()=>S,xO:()=>P,xl:()=>D,yW:()=>C,zU:()=>N});var r=n(92328),i=n(95200),o=n(57968),s=n(74611),a=n(91135),c=n(88728),u=n(46403),l=n(74733),d=n(93177),h=n(93908),p=n(19282),f=n(70333);const m=0,g=1;let y=!1;function v(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:s,origin:a,links:c}=T(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:i,status:s,origin:a,links:c}}function _(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:T(e).parent_span_id,o=(0,c.L)(e).scope;return{parent_span_id:i,span_id:r?o?.getPropagationContext().propagationSpanId||(0,l.Z)():t,trace_id:n}}function b(e){const{traceId:t,spanId:n}=e.spanContext(),r=I(e);return(0,h.TC)(t,n,r)}function w(e){const{traceId:t,spanId:n}=e.spanContext(),r=I(e);return(0,h.Iy)(t,n,r)}function S(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===g,attributes:i,...r})):void 0}function E(e){return"number"==typeof e?k(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?k(e.getTime()):(0,d.zf)()}function k(e){return e>9999999999?e/1e3:e}function T(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:i,name:o,endTime:a,status:c,links:u}=e;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:E(i),timestamp:E(a)||void 0,status:C(c),op:r[s.uT],origin:r[s.JD],links:S(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function I(e){const{traceFlags:t}=e.spanContext();return t===g}function C(e){if(e&&e.code!==a.a3)return e.code===a.F3?"ok":e.message||"internal_error"}const x="_sentryChildSpans",O="_sentryRootSpan";function A(e,t){const n=e[O]||e;(0,u.my)(t,O,n),e[x]?e[x].add(t):(0,u.my)(e,x,new Set([t]))}function R(e,t){e[x]&&e[x].delete(t)}function P(e){const t=new Set;return function e(n){if(!t.has(n)&&I(n)){t.add(n);const r=n[x]?Array.from(n[x]):[];for(const t of r)e(t)}}(e),Array.from(t)}function N(e){return e[O]||e}function M(){const e=(0,i.EU)(),t=(0,r.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,f.f)((0,o.o5)())}function D(){y||((0,p.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),y=!0)}},6279:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,s,a){for(var c,u,l,d=o.$locale().relativeTime||i,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,f=0;f<p;f+=1){var m=h[f];m.d&&(c=s?n(t).diff(o,m.d,!0):o.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(c));if(l=c>0,g<=m.r||!m.r){g<=1&&f>0&&(m=h[f-1]);var y=d[m.l];a&&(g=a(""+g)),u="string"==typeof y?y.replace("%d",g):y(g,r,m.l,l);break}}if(r)return u;var v=l?d.future:d.past;return"function"==typeof v?v(u):v.replace("%s",u)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var s=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(s(this),e)},r.fromNow=function(e){return this.from(s(this),e)}}}()},6305:(e,t,n)=>{var r=n(73738).default;function i(t,n){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;
2return(e.exports=i=function(e,t){if(!t&&e&&e.__esModule)return e;var n,i,a={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return a;if(n=t?s:o){if(n.has(e))return n.get(e);n.set(e,a)}for(var c in e)"default"!==c&&{}.hasOwnProperty.call(e,c)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,c))&&(i.get||i.set)?n(a,c,i):a[c]=e[c]);return a},e.exports.__esModule=!0,e.exports.default=e.exports)(t,n)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},6440:function(e,t,n){var r;e.exports=(r=n(19021),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)},6810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(57968),i=n(19282),o=n(93177);const s=100;function a(e,t){const n=(0,r.KU)(),a=(0,r.rm)();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=s}=n.getOptions();if(u<=0)return;const l={timestamp:(0,o.lu)(),...e},d=c?(0,i.pq)(()=>c(l,t)):l;null!==d&&(n.emit&&n.emit("beforeAddBreadcrumb",d,t),a.addBreadcrumb(d,u))}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7313:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});const r="production"},7463:(e,t)=>{"use strict";var n,r,i,o,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var a=null,c=null,u=function(){if(null!==a)try{var e=t.unstable_now();a(!0,e),a=null}catch(e){throw setTimeout(u,0),e}},l=Date.now();t.unstable_now=function(){return Date.now()-l},n=function(e){null!==a?setTimeout(n,0,e):(a=e,setTimeout(u,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},o=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,p=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var g=h.now();t.unstable_now=function(){return h.now()-g}}var y=!1,v=null,_=-1,b=5,w=0;o=function(){return t.unstable_now()>=w},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,E=S.port2;S.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();w=e+b;try{v(!0,e)?E.postMessage(null):(y=!1,v=null)}catch(e){throw E.postMessage(null),e}}else y=!1},n=function(e){v=e,y||(y=!0,E.postMessage(null))},r=function(e,n){_=p(function(){e(t.unstable_now())},n)},i=function(){f(_),_=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function T(e){return void 0===(e=e[0])?null:e}function I(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,s=e[o],a=o+1,c=e[a];if(void 0!==s&&0>C(s,n))void 0!==c&&0>C(c,s)?(e[r]=c,e[a]=n,r=a):(e[r]=s,e[o]=n,r=o);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[a]=n,r=a}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],O=[],A=1,R=null,P=3,N=!1,M=!1,D=!1;function L(e){for(var t=T(O);null!==t;){if(null===t.callback)I(O);else{if(!(t.startTime<=e))break;I(O),t.sortIndex=t.expirationTime,k(x,t)}t=T(O)}}function j(e){if(D=!1,L(e),!M)if(null!==T(x))M=!0,n(U);else{var t=T(O);null!==t&&r(j,t.startTime-e)}}function U(e,n){M=!1,D&&(D=!1,i()),N=!0;var s=P;try{for(L(n),R=T(x);null!==R&&(!(R.expirationTime>n)||e&&!o());){var a=R.callback;if(null!==a){R.callback=null,P=R.priorityLevel;var c=a(R.expirationTime<=n);
2n=t.unstable_now(),"function"==typeof c?R.callback=c:R===T(x)&&I(x),L(n)}else I(x);R=T(x)}if(null!==R)var u=!0;else{var l=T(O);null!==l&&r(j,l.startTime-n),u=!1}return u}finally{R=null,P=s,N=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var $=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||N||(M=!0,n(U))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return T(x)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=$,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,o,s){var a=t.unstable_now();if("object"==typeof s&&null!==s){var c=s.delay;c="number"==typeof c&&0<c?a+c:a,s="number"==typeof s.timeout?s.timeout:F(e)}else s=F(e),c=a;return e={id:A++,callback:o,priorityLevel:e,startTime:c,expirationTime:s=c+s,sortIndex:-1},c>a?(e.sortIndex=c,k(O,e),null===T(x)&&e===T(O)&&(D?i():D=!0,r(j,c-a))):(e.sortIndex=s,k(x,e),M||N||(M=!0,n(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=T(x);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<R.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},7605:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}},8505:(e,t,n)=>{var r=n(9375);e.exports=function e(t,n,i){return r(n)||(i=n||i,n=[]),i=i||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return h(e,t)}(t,n):r(t)?function(t,n,r){for(var i=[],o=0;o<t.length;o++)i.push(e(t[o],n,r).source);return h(new RegExp("(?:"+i.join("|")+")",p(r)),n)}(t,n,i):function(e,t,n){return f(o(e,n),t,n)}(t,n,i)},e.exports.parse=o,e.exports.compile=function(e,t){return u(o(e,t),t)},e.exports.tokensToFunction=u,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,c="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var l=n[0],h=n[1],p=n.index;if(c+=e.slice(a,p),a=p+l.length,h)c+=h[1];else{var f=e[a],m=n[2],g=n[3],y=n[4],v=n[5],_=n[6],b=n[7];c&&(r.push(c),c="");var w=null!=m&&null!=f&&f!==m,S="+"===_||"*"===_,E="?"===_||"*"===_,k=m||u,T=y||v,I=m||("string"==typeof r[r.length-1]?r[r.length-1]:"");r.push({name:g||o++,prefix:m||"",delimiter:k,optional:E,repeat:S,partial:w,asterisk:!!b,pattern:T?d(T):b?".*":s(k,I)})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function s(e,t){return!t||t.indexOf(e)>-1?"[^"+l(e)+"]+?":l(t)+"|(?:(?!"+l(t)+")[^"+l(e)+"])+?"}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function c(e){return encodeURI(e).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function u(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",p(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var d=e[l];if("string"!=typeof d){var h,p=s[d.name];if(null==p){if(d.optional){d.partial&&(o+=d.prefix);continue}throw new TypeError('Expected "'+d.name+'" to be defined')}if(r(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(h=u(p[f]),!n[l].test(h))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(h)+"`");o+=(0===f?d.prefix:d.delimiter)+h}}else{if(h=d.asterisk?c(p):u(p),!n[l].test(h))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+h+'"');o+=d.prefix+h}}else o+=d}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function d(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function h(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,s="",a=0;a<e.length;a++){var c=e[a];if("string"==typeof c)s+=l(c);else{var u=l(c.prefix),d="(?:"+c.pattern+")";t.push(c),c.repeat&&(d+="(?:"+u+d+")*"),s+=d=c.optional?c.partial?u+"("+d+")?":"(?:"+u+"("+d+"))?":u+"("+d+")"}}var f=l(n.delimiter||"/"),m=s.slice(-f.length)===f;
vendor: 11,057 bytes, line 2
2return i||(s=(m?s.slice(0,-f.length):s)+"(?:"+f+"(?=$))?"),s+=o?"$":i&&m?"":"(?="+f+"|$)",h(new RegExp("^"+s,p(n)),t)}},8674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>D,__assign:()=>o,__asyncDelegator:()=>T,__asyncGenerator:()=>k,__asyncValues:()=>I,__await:()=>E,__awaiter:()=>f,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>N,__createBinding:()=>g,__decorate:()=>a,__disposeResources:()=>j,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>i,__generator:()=>m,__importDefault:()=>R,__importStar:()=>A,__makeTemplateObject:()=>C,__metadata:()=>p,__param:()=>c,__propKey:()=>d,__read:()=>_,__rest:()=>s,__rewriteRelativeImportExtension:()=>U,__runInitializers:()=>l,__setFunctionName:()=>h,__spread:()=>b,__spreadArray:()=>S,__spreadArrays:()=>w,__values:()=>v,default:()=>F});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=r.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),h=!1,p=n.length-1;p>=0;p--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var g=(0,n[p])("accessor"===c?{get:d.get,set:d.set}:d[u],f);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=s(g.get))&&(d.get=a),(a=s(g.set))&&(d.set=a),(a=s(g.init))&&i.unshift(a)}else(a=s(g))&&("field"===c?i.unshift(a):d[u]=a)}l&&Object.defineProperty(l,r.name,d),h=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var g=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function S(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{(n=i[e](t)).value instanceof E?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function T(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:E(e[r](t)),done:!1}:i?i(t):t}:i}}function I(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},O=function(e){return O=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},O(e)};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=O(e),r=0;r<n.length;r++)"default"!==n[r]&&g(t,e,n[r]);return x(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function N(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var L="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function j(e){function t(t){e.error=e.hasError?new L(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function U(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,o){return n?t?".jsx":".js":!r||i&&o?r+i+"."+o.toLowerCase()+"js":e}):e}const F={__extends:i,__assign:o,__rest:s,__decorate:a,__param:c,__esDecorate:u,__runInitializers:l,__propKey:d,__setFunctionName:h,__metadata:p,__awaiter:f,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:_,__spread:b,__spreadArrays:w,__spreadArray:S,__await:E,__asyncGenerator:k,__asyncDelegator:T,__asyncValues:I,__makeTemplateOb
2ject:C,__importStar:A,__importDefault:R,__classPrivateFieldGet:P,__classPrivateFieldSet:N,__classPrivateFieldIn:M,__addDisposableResource:D,__disposeResources:j,__rewriteRelativeImportExtension:U}},9123:(e,t,n)=>{"use strict";n.d(t,{Qw:()=>o,Wk:()=>a,hY:()=>s});var r=n(18845);let i;function o(e){if(void 0!==i)return i?i(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=r.O;return t in n&&"function"==typeof n[t]?(i=n[t],i(e)):(i=null,e())}function s(){return o(()=>Math.random())}function a(){return o(()=>Date.now())}},9375:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},9600:(e,t,n)=>{"use strict";n.d(t,{$X:()=>u,GR:()=>h,M6:()=>d,eJ:()=>a,gO:()=>l});var r=n(46403),i=n(9123),o=n(18845);let s;function a(e=function(){const e=o.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,i.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return s||(s=[1e7]+1e3+4e3+8e3+1e11),s.replace(/[018]/g,e=>(e^(16*(0,i.hY)()&15)>>e/4).toString(16))}function c(e){return e.exception?.values?.[0]}function u(e){const{message:t,event_id:n}=e;if(t)return t;const r=c(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function d(e,t){const n=c(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}function h(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch{}return!1}},10308:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){void 0===n&&(n={});for(var r=[],i="function"==typeof n.replace,u=n.transform||s.returnFirstArg,l=n.library||a,d=l.cloneElement,h=l.createElement,p=l.isValidElement,f=t.length,m=0;m<f;m++){var g=t[m];if(i){var y=n.replace(g,m);if(p(y)){f>1&&(y=d(y,{key:y.key||m})),r.push(u(y,g,m));continue}}if("text"!==g.type){var v=g,_={};c(v)?((0,s.setStyleProp)(v.attribs.style,v.attribs),_=v.attribs):v.attribs&&(_=(0,o.default)(v.attribs,v.name));var b=void 0;switch(g.type){case"script":case"style":g.children[0]&&(_.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?_.defaultValue=g.children[0].data:g.children&&g.children.length&&(b=e(g.children,n));break;default:continue}f>1&&(_.key=m),r.push(u(h(g.name,_,b),g,m))}else{var w=!g.data.trim().length;if(w&&g.parent&&!(0,s.canTextBeChildOfNode)(g.parent))continue;if(n.trim&&w)continue;r.push(u(g.data,g,m))}}return 1===r.length?r[0]:r};var i=n(96540),o=r(n(20840)),s=n(74958),a={cloneElement:i.cloneElement,createElement:i.createElement,isValidElement:i.isValidElement};function c(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,s.isCustomComponent)(e.name,e.attribs)}},10540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},11365:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(73317),i=Date.now(),o="fnValues"+i,s="fnStyle"+ ++i;const a=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var i=(0,r.D_)(e,{},n);return i[s]=t,i},onProcessStyle:function(e,t){if(o in t||s in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[o]=n,e},onUpdate:function(e,t,n,r){var i=t,a=i[s];a&&(i.style=a(e)||{});var c=i[o];if(c)for(var u in c)i.prop(u,c[u](e),r)}}}},11561:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"==typeof t?t():t,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},13235:(e,t,n)=>{"use strict";n.d(t,{AS:()=>u,aj:()=>l,s5:()=>c});var r=n(26674),i=n(19282),o=n(51685);const s={},a={};function c(e,t){s[e]=s[e]||[],s[e].push(t)}function u(e,t){if(!a[e]){a[e]=!0;try{t()}catch(t){r.T&&i.Yz.error(`Error while instrumenting ${e}`,t)}}}function l(e,t){const n=e&&s[e];if(n)for(const s of n)try{s(t)}catch(t){r.T&&i.Yz.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.qQ)(s)}\nError:`,t)}}},14210:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}const i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e
2=>{i[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{i[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{i[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{i[e]=new r(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{i[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{i[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{i[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{i[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{i[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});const o=/[\-\:]([a-z])/g,s=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(o,s);i[t]=new r(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(o,s);i[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(o,s);i[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)}),i.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{i[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:a,SAME:c,possibleStandardNames:u}=n(96811),l=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(u).reduce((e,t)=>{const n=u[t];return n===c?e[t]=t:n===a?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=l,t.possibleStandardNames=d},14910:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});const r=n(18845).O},15270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")}
2,16649:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o});var r=n(50442),i=n.n(r);const o=i().default||i()},17241:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(96540).createContext(null)},17786:(e,t,n)=>{"use strict";n.d(t,{XW:()=>i,xg:()=>o});var r=n(64208);function i(e){return new s(t=>{t(e)})}function o(e){return new s((t,n)=>{n(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{i?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&((0,r.Qg)(t)?t.then(n,i):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},i=e=>{t(2,e)};try{e(n,i)}catch(e){i(e)}}}},17929:(e,t,n)=>{"use strict";n.d(t,{zR:()=>E,TM:()=>O,yJ:()=>m,sC:()=>R,AO:()=>f,Fu:()=>g});var r=n(58168);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],s=t&&t.split("/")||[],a=e&&i(e),c=t&&i(t),u=a||c;if(e&&i(e)?s=r:r.length&&(s.pop(),s=s.concat(r)),!s.length)return"/";if(s.length){var l=s[s.length-1];n="."===l||".."===l||""===l}else n=!1;for(var d=0,h=s.length;h>=0;h--){var p=s[h];"."===p?o(s,h):".."===p?(o(s,h),d++):d&&(o(s,h),d--)}if(!u)for(;d--;d)s.unshift("..");!u||""===s[0]||s[0]&&i(s[0])||s.unshift("");var f=s.join("/");return n&&"/"!==f.substr(-1)&&(f+="/"),f};function a(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});if("object"==typeof t||"object"==typeof n){var r=a(t),i=a(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every(function(r){return e(t[r],n[r])})}return!1};var u=n(11561);function l(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.A)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function y(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function _(e,t){t(window.confirm(e))}var b="popstate",w="hashchange";function S(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),v||(0,u.A)(!1);var t,n=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),s=e,a=s.forceRefresh,c=void 0!==a&&a,d=s.getUserConfirmation,g=void 0===d?_:d,E=s.keyLength,k=void 0===E?6:E,T=e.basename?p(l(e.basename)):"";function I(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return T&&(o=h(o,T)),m(o,r,n)}function C(){return Math.random().toString(36).substr(2,k)}var x=y();function O(e){(0,r.A)(z,e),z.length=n.length,x.notifyListeners(z.location,z.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(I(e.state))}function R(){N(I(S()))}var P=!1;function N(e){P?(P=!1,O()):x.confirmTransitionTo(e,"POP",g,function(t){t?O({action:"POP",location:e}):function(e){var t=z.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(P=!0,j(i))}(e)})}var M=I(S()),D=[M.key];function L(e){return T+f(e)}function j(e){n.go(e)}var U=0;function F(e){1===(U+=e)&&1===e?(window.addEventListener(b,A),o&&window.addEventListener(w,R)):0===U&&(window.removeEventListener(b,A),o&&window.removeEventListener(w,R))}var $=!1,z={length:n.length,action:"POP",location:M,createHref:L,push:function(e,t){var r="PUSH",o=m(e,t,C(),z.location);x.confirmTransitionTo(o,r,g,function(e){if(e){var t=L(o),s=o.key,a=o.state;if(i)if(n.pushState({key:s,state:a},null,t),c)window.location.href=t;else{var u=D.indexOf(z.location.key),l=D.slice(0,u+1);l.push(o.key),D=l,O({action:r,location:o})}else window.location.href=t}})},replace:function(e,t){var r="REPLACE",o=m(e,t,C(),z.location);x.confirmTransitionTo(o,r,g,function(e){if(e){var t=L(o),s=o.key,a=o.state;if(i)if(n.replaceState({key:s,state:a},null,t),c)window.location.replace(t);else{var u=D.indexOf(z.location.key);-1!==u&&(D[u]=o.key),O({action:r,location:o})}else window.location.replace(t)}})},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return $||(F(1),$=!0),function(){return $&&($=!1,F(-1)),t()}},listen:function(e){var t=x.appendListener(e);return F(1),function(){F(-1),t()}}};return z}var k="hashchange",T={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:l},slash:{encodePath:l,decodePath:l}};function I(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function C(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function x(e){window.location.replace(I(window.location.href)+"#"+e)}function O(e){void 0===e&&(e={}),v||(0,u.A)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?_:i,s=n.hashType,a=void 0===s?"
2slash":s,c=e.basename?p(l(e.basename)):"",d=T[a],g=d.encodePath,b=d.decodePath;function w(){var e=b(C());return c&&(e=h(e,c)),m(e)}var S=y();function E(e){(0,r.A)($,e),$.length=t.length,S.notifyListeners($.location,$.action)}var O=!1,A=null;function R(){var e,t,n=C(),r=g(n);if(n!==r)x(r);else{var i=w(),s=$.location;if(!O&&(t=i,(e=s).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===f(i))return;A=null,function(e){if(O)O=!1,E();else{S.confirmTransitionTo(e,"POP",o,function(t){t?E({action:"POP",location:e}):function(e){var t=$.location,n=D.lastIndexOf(f(t));-1===n&&(n=0);var r=D.lastIndexOf(f(e));-1===r&&(r=0);var i=n-r;i&&(O=!0,L(i))}(e)})}}(i)}}var P=C(),N=g(P);P!==N&&x(N);var M=w(),D=[f(M)];function L(e){t.go(e)}var j=0;function U(e){1===(j+=e)&&1===e?window.addEventListener(k,R):0===j&&window.removeEventListener(k,R)}var F=!1,$={length:t.length,action:"POP",location:M,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=I(window.location.href)),n+"#"+g(c+f(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,$.location);S.confirmTransitionTo(r,n,o,function(e){if(e){var t=f(r),i=g(c+t);if(C()!==i){A=t,function(e){window.location.hash=e}(i);var o=D.lastIndexOf(f($.location)),s=D.slice(0,o+1);s.push(t),D=s,E({action:n,location:r})}else E()}})},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,$.location);S.confirmTransitionTo(r,n,o,function(e){if(e){var t=f(r),i=g(c+t);C()!==i&&(A=t,x(i));var o=D.indexOf(f($.location));-1!==o&&(D[o]=t),E({action:n,location:r})}})},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=S.setPrompt(e);return F||(U(1),F=!0),function(){return F&&(F=!1,U(-1)),t()}},listen:function(e){var t=S.appendListener(e);return U(1),function(){U(-1),t()}}};return $}function A(e,t,n){return Math.min(Math.max(e,t),n)}function R(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,s=t.initialIndex,a=void 0===s?0:s,c=t.keyLength,u=void 0===c?6:c,l=y();function d(e){(0,r.A)(b,e),b.length=b.entries.length,l.notifyListeners(b.location,b.action)}function h(){return Math.random().toString(36).substr(2,u)}var p=A(a,0,o.length-1),g=o.map(function(e){return m(e,void 0,"string"==typeof e?h():e.key||h())}),v=f;function _(e){var t=A(b.index+e,0,b.entries.length-1),r=b.entries[t];l.confirmTransitionTo(r,"POP",n,function(e){e?d({action:"POP",location:r,index:t}):d()})}var b={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:v,push:function(e,t){var r="PUSH",i=m(e,t,h(),b.location);l.confirmTransitionTo(i,r,n,function(e){if(e){var t=b.index+1,n=b.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}})},replace:function(e,t){var r="REPLACE",i=m(e,t,h(),b.location);l.confirmTransitionTo(i,r,n,function(e){e&&(b.entries[b.index]=i,d({action:r,location:i}))})},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return b}},18056:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,d:()=>i});var r=n(14910);function i(e,t,n){r.j.document&&r.j.addEventListener(e,t,n)}function o(e,t,n){r.j.document&&r.j.removeEventListener(e,t,n)}},18483:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(73317),i=r.rN&&CSS?CSS.px:"px",o=r.rN&&CSS?CSS.ms:"ms",s=r.rN&&CSS?CSS.percent:"%";function a(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var c=a({"animation-delay":o,"animation-duration":o,"background-position":i,"background-position-x":i,"background-position-y":i,"background-size":i,border:i,"border-bottom":i,"border-bottom-left-radius":i,"border-bottom-right-radius":i,"border-bottom-width":i,"border-left":i,"border-left-width":i,"border-radius":i,"border-right":i,"border-right-width":i,"border-top":i,"border-top-left-radius":i,"border-top-right-radius":i,"border-top-width":i,"border-width":i,"border-block":i,"border-block-end":i,"border-block-end-width":i,"border-block-start":i,"border-block-start-width":i,"border-block-width":i,"border-inline":i,"border-inline-end":i,"border-inline-end-width":i,"border-inline-start":i,"border-inline-start-width":i,"border-inline-width":i,"border-start-start-radius":i,"border-start-end-radius":i,"border-end-start-radius":i,"border-end-end-radius":i,margin:i,"margin-bottom":i,"margin-left":i,"margin-right":i,"margin-top":i,"margin-block":i,"margin-block-end":i,"margin-block-start":i,"margin-inline":i,"margin-inline-end":i,"margin-inline-start":i,padding:i,"padding-bottom":i,"padding-left":i,"padding-right":i,"padding-top":i,"padding-block":i,"padding-block-end":i,"padding-block-start":i,"padding-inline":i,"padding-inline-end":i,"padding-inline-start":i,"mask-position-x":i,"mask-position-y":i,"mask-size":i,height:i,width:i,"min-height":i,"max-height":i,"min-width":i,"max-width":i,bottom:i,left:i,top:i,right:i,inset:i,"inset-block":i,"inset-block-end":i,"inset-block-start":i,"inset-inline":i,"inset-inline-end":i,"inset-inline-start":i,"box-shadow":i,"text-shadow":i,"column-gap":i,"column-rule":i,"column-rule-width":i,"column-width":i,"font-size":i,"font-size-delta":i,"letter-spacing":i,"text-decoration-thickness":i,"text-indent":i,"text-stroke":i,"text-stroke-width":i,"word-spacing":i,motion:i,"motion-offset":i,outline:i,"outline-offset":i,"outline-width":i,perspective:i,"perspective-origin-x":s,"perspective-origin-y":s,"transform-origin":s,"transform-origin-x":s,"transform-origin-y":s,"transform-origin-z":s,"transition-delay":o,"transition-duration":o,"vertical-align":i,"flex-basis":i,"shape-margin":i,size:i,gap:i,grid:i,"grid-gap":i,"row-gap":i,"grid-row-gap":i,"grid-column-gap":i,"grid-template-rows":i,"grid-template-columns":i,"grid-auto-rows":i,"grid-auto-columns":i,"box-shadow-x":i,"box-shadow-y":i,"box-shadow-blur":i,"box-shadow-spread":i,"font-line-height":i,"text-shadow-x":i,"text-shadow-y":i,"text-shadow-blur":i});function u(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=u(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=u(o,t[o],n);else for(var s in t)t[s]=u(e+"-"+s,t[s],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||c[e];return!a||0===t&&a===i?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const l=function(e){void 0===e&&(e={});var t=a(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=u(r,e[r],t);return e},onChangeValue:function(e,n){return u(n,e,t)}}}},18845:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r=globalThis},19021:function(e,t,n){var r;e.exports=(r=r||function(e){var t;if("undefined"!=typeof window&&window.crypto&&(t=window.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&"undefined"!=typeof window&&window.msCrypto&&(t=window.msCrypto),!t&&void 0!==n.g&&n.g.crypto&&(t=n.g.crypto),!t)try{t=n(50477)}catch(e){}var r=function(){if(t){if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},s=o.lib={},a=s.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.a
2pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),u=o.enc={},l=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*u,o);if(u){for(var d=0;d<u;d+=s)this._doProcessBlock(i,d);n=i.splice(0,u),r.sigBytes-=l}return new c.init(n,l)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(s.Hasher=p.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),o.algo={});return o}(Math),r)},19282:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>s,Yz:()=>h,Z9:()=>a,pq:()=>c});var r=n(95200),i=n(26674),o=n(18845);const s=["debug","info","warn","error","log","assert","trace"],a={};function c(e){if(!("console"in o.O))return e();const t=o.O.console,n={},r=Object.keys(a);r.forEach(e=>{const r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function u(){return d().enabled}function l(e,...t){i.T&&u()&&c(()=>{o.O.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const h={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:u,log:function(...e){l("log",...e)},warn:function(...e){l("warn",...e)},error:function(...e){l("error",...e)}}},19788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,c=/^\s+|\s+$/g,u="";function l(e){return e?e.replace(c,u):u}e.exports=function(e,c){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var d=1,h=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function f(){var e={line:d,column:h};return function(t){return t.position=new m(e),_(),t}}
2function m(e){this.start=e,this.end={line:d,column:h},this.source=c.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(c.source+":"+d+":"+h+": "+t);if(n.reason=t,n.filename=c.source,n.line=d,n.column=h,n.source=e,!c.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function _(){v(r)}function b(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return h+=2,p(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function S(){var e=f(),n=v(i);if(n){if(w(),!v(o))return y("property missing ':'");var r=v(s),c=e({type:"declaration",property:l(n[0].replace(t,u)),value:r?l(r[0].replace(t,u)):u});return v(a),c}}return _(),function(){var e,t=[];for(b(t);e=S();)!1!==e&&(t.push(e),b(t));return t}()}},20053:(e,t,n)=>{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}n.d(t,{A:()=>i});const i=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},20144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s,k:()=>a});var r=n(71111);const i="7";function o(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function s(e,t,n){return t||`${function(e){return`${o(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:i};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}function a(e,t){const n=(0,r.AD)(e);if(!n)return"";const i=`${o(n)}embed/error-page/`;let s=`dsn=${(0,r.SB)(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(s+=`&name=${encodeURIComponent(e.name)}`),e.email&&(s+=`&email=${encodeURIComponent(e.email)}`)}else s+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${i}?${s}`}},20816:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(82284);function i(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},20840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var n={},u=Boolean(e.type&&a[e.type]);for(var l in e){var d=e[l];if((0,r.isCustomAttribute)(l))n[l]=d;else{var h=l.toLowerCase(),p=c(h);if(p){var f=(0,r.getPropertyInfo)(p);switch(o.includes(p)&&s.includes(t)&&!u&&(p=c("default"+h)),n[p]=d,f&&f.type){case r.BOOLEAN:n[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===d&&(n[p]=!0)}}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(n[l]=d)}}return(0,i.setStyleProp)(e.style,n),n};var r=n(14210),i=n(74958),o=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function c(e){return r.possibleStandardNames[e]}},21288:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var r=n(94175),i=n(60436),o="",s="",a="",c="",u=r.A&&"ontouchstart"in document.documentElement;if(r.A){var l={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},d=document.createElement("p").style;for(var h in l)if(h+"Transform"in d){o=h,s=l[h];break}"Webkit"===o&&"msHyphens"in d&&(o="ms",s=l.ms,c="edge"),"Webkit"===o&&"-apple-trailing-word"in d&&(a="apple")}var p=o,f=s,m=a,g=c,y=u,v={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===p?"-webkit-"+e:f+e)}},_={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===p?f+"print-"+e:e)}},b=/[-\s]+(.)?/g;function w(e,t){return t?t.toUpperCase():""}function S(e){return e.replace(b,w)}function E(e){return S("-"+e)}var k,T={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===p){var n="mask-image";if(S(n)in t)return e;if(p+E(n)in t)return f+e}return e}},I={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==m||y?e:f+e)}},C={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:f+e)}},x={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:f+e)}}
2,O={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===p||"ms"===p&&"edge"!==g?f+e:e)}},A={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===p||"ms"===p||"apple"===m?f+e:e)}},R={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===p?"WebkitColumn"+E(e)in t&&f+"column-"+e:"Moz"===p&&"page"+E(e)in t&&"page-"+e)}},P={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===p)return e;var n=e.replace("-inline","");return p+E(n)in t&&f+n}},N={supportedProperty:function(e,t){return S(e)in t&&e}},M={supportedProperty:function(e,t){var n=E(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:p+n in t?f+e:"Webkit"!==p&&"Webkit"+n in t&&"-webkit-"+e}},D={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===p?""+f+e:e)}},L={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===p?f+"scroll-chaining":e)}},j={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},U={supportedProperty:function(e,t){var n=j[e];return!!n&&p+E(n)in t&&f+n}},F={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},$=Object.keys(F),z=function(e){return f+e},B={supportedProperty:function(e,t,n){var r=n.multiple;if($.indexOf(e)>-1){var i=F[e];if(!Array.isArray(i))return p+E(i)in t&&f+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(p+E(i[0])in t))return!1;return i.map(z)}return!1}},H=[v,_,T,I,C,x,O,A,R,P,N,M,D,L,U,B],W=H.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),q=H.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,(0,i.A)(t.noPrefill)),e},[]),V={};if(r.A){k=document.createElement("p");var K=window.getComputedStyle(document.documentElement,"");for(var Y in K)isNaN(Y)||(V[K[Y]]=K[Y]);q.forEach(function(e){return delete V[e]})}function G(e,t){if(void 0===t&&(t={}),!k)return e;if(null!=V[e])return V[e];"transition"!==e&&"transform"!==e||(t[e]=e in k.style);for(var n=0;n<W.length&&(V[e]=W[n](e,k.style,t),!V[e]);n++);try{k.style[e]=""}catch(e){return!1}return V[e]}var J,X={},Z={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Q=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ee(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?G(t):", "+G(n))||t||n}function te(e,t){var n=t;if(!J||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=X[r])return X[r];try{J.style[e]=n}catch(e){return X[r]=!1,!1}if(Z[e])n=n.replace(Q,ee);else if(""===J.style[e]&&("-ms-flex"===(n=f+n)&&(J.style[e]="-ms-flexbox"),J.style[e]=n,""===J.style[e]))return X[r]=!1,!1;return J.style[e]="",X[r]=n,X[r]}r.A&&(J=document.createElement("p"));var ne=n(73317);const re=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=G(n);o&&o!==n&&(i=!0);var s=!1,a=te(o,(0,ne.Sg)(r));a&&a!==r&&(s=!0),(i||s)&&(i&&delete t[n],t[o||n]=a||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===p?e:"@"+f+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return te(t,(0,ne.Sg)(e))||e}}}},22618:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(98587),i=n(58168),o=n(9417),s=n(77387),a=n(96540),c=n(17241);function u(e,t){var n=Object.create(null);return e&&a.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)}),n}function l(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var r=u(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var c in t){if(i[c])for(r=0;r<i[c].length;r++){var u=i[c][r];a[i[c][r]]=n(u)}a[c]=n(c)}for(r=0;r<o.length;r++)a[o[r]]=n(o[r]);return a}(t,r);
2return Object.keys(i).forEach(function(o){var s=i[o];if((0,a.isValidElement)(s)){var c=o in t,u=o in r,d=t[o],h=(0,a.isValidElement)(d)&&!d.props.in;!u||c&&!h?u||!c||h?u&&c&&(0,a.isValidElement)(d)&&(i[o]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:d.props.in,exit:l(s,"exit",e),enter:l(s,"enter",e)})):i[o]=(0,a.cloneElement)(s,{in:!1}):i[o]=(0,a.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:l(s,"exit",e),enter:l(s,"enter",e)})}}),i}var h=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},p=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,o.A)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,s.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,u(n.children,function(e){return(0,a.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:l(e,"appear",n),enter:l(e,"enter",n),exit:l(e,"exit",n)})})):d(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=u(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,i.A)({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=(0,r.A)(e,["component","childFactory"]),o=this.state.contextValue,s=h(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?a.createElement(c.A.Provider,{value:o},s):a.createElement(c.A.Provider,{value:o},a.createElement(t,i,s))},t}(a.Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};const f=p},22799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case c:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===v||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y)},t.typeOf=w},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})}
2,23998:(e,t,n)=>{"use strict";n.d(t,{Om:()=>l,e2:()=>a});var r=n(57968),i=n(31158),o=n(45734),s=n(5915);function a(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:(0,s.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.k1)(t),...e.sdkProcessingMetadata};const n=(0,s.zU)(t),r=(0,s.et)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function c(e,t){const{extra:n,tags:r,attributes:i,user:s,contexts:a,level:c,sdkProcessingMetadata:l,breadcrumbs:d,fingerprint:h,eventProcessors:p,attachments:f,propagationContext:m,transactionName:g,span:y}=t;u(e,"extra",n),u(e,"tags",r),u(e,"attributes",i),u(e,"user",s),u(e,"contexts",a),e.sdkProcessingMetadata=(0,o.h)(e.sdkProcessingMetadata,l,2),c&&(e.level=c),g&&(e.transactionName=g),y&&(e.span=y),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),h.length&&(e.fingerprint=[...e.fingerprint,...h]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...m}}function u(e,t,n){e[t]=(0,o.h)(e[t],n,1)}function l(e,t){const n=(0,r.m6)().getScopeData();return e&&c(n,e.getScopeData()),t&&c(n,t.getScopeData()),n}},24280:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},25719:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>v,F0:()=>s,IE:()=>i});const r={UNDO:"@@redux-undo/UNDO",REDO:"@@redux-undo/REDO",JUMP_TO_FUTURE:"@@redux-undo/JUMP_TO_FUTURE",JUMP_TO_PAST:"@@redux-undo/JUMP_TO_PAST",JUMP:"@@redux-undo/JUMP",CLEAR_HISTORY:"@@redux-undo/CLEAR_HISTORY"},i={undo:()=>({type:r.UNDO}),redo:()=>({type:r.REDO}),jumpToFuture:e=>({type:r.JUMP_TO_FUTURE,index:e}),jumpToPast:e=>({type:r.JUMP_TO_PAST,index:e}),jump:e=>({type:r.JUMP,index:e}),clearHistory:()=>({type:r.CLEAR_HISTORY})};function o(e,t=[]){return Array.isArray(e)?e:"string"==typeof e?[e]:t}function s(e){const t=o(e);return e=>t.indexOf(e.type)>=0}function a(e,t,n,r=null){return{past:e,present:t,future:n,group:r,_latestUnfiltered:t,index:e.length,limit:e.length+n.length+1}}let c,u;const l={prevState:"#9E9E9E",action:"#03A9F4",nextState:"#4CAF50"};function d(e,t,n){return[`%c${e}`,`color: ${t}; font-weight: bold`,n]}function h(e){c&&(console.group?u.next=d("next history",l.nextState,e):u.next=["next history",e],function(){const{header:e,prev:t,next:n,action:r,msgs:i}=u;console.group?(console.groupCollapsed(...e),console.log(...t),console.log(...r),console.log(...n),console.log(...i),console.groupEnd()):(console.log(...e),console.log(...t),console.log(...r),console.log(...n),console.log(...i))}())}function p(...e){c&&(u.msgs=u.msgs.concat([...e,"\n"]))}function f(e,t){const n=a([],e,[]);return t&&(n._latestUnfiltered=null),n}function m(e,t){if(t<0||t>=e.future.length)return e;const{past:n,future:r,_latestUnfiltered:i}=e;return a([...n,i,...r.slice(0,t)],r[t],r.slice(t+1))}function g(e,t){if(t<0||t>=e.past.length)return e;const{past:n,future:r,_latestUnfiltered:i}=e,o=n.slice(0,t),s=[...n.slice(t+1),i,...r];return a(o,n[t],s)}function y(e,t){return t>0?m(e,t-1):t<0?g(e,e.past.length+t):e}function v(e,t={}){!function(e){c=e}(t.debug);const n={limit:void 0,filter:()=>!0,groupBy:()=>null,undoType:r.UNDO,redoType:r.REDO,jumpToPastType:r.JUMP_TO_PAST,jumpToFutureType:r.JUMP_TO_FUTURE,jumpType:r.JUMP,neverSkipReducer:!1,ignoreInitialState:!1,syncFilter:!1,...t,initTypes:o(t.initTypes,["@@redux-undo/INIT"]),clearHistoryType:o(t.clearHistoryType,[r.CLEAR_HISTORY])},i=n.neverSkipReducer?(t,n,...r)=>({...t,present:e(t.present,n,...r)}):e=>e;let s;return(t=s,r={},...o)=>{!function(e,t){u={header:[],prev:[],action:[],next:[],msgs:[]},c&&(console.group?(u.header=["%credux-undo","font-style: italic","action",e.type],u.action=d("action",l.action,e),u.prev=d("prev history",l.prevState,t)):(u.header=["redux-undo action",e.type],u.action=["action",e],u.prev=["prev history",t]))}(r,t);let v,_=t;
2if(!s){if(p("history is uninitialized"),void 0===t)return _=f(e(t,{type:"@@redux-undo/CREATE_HISTORY"},...o),n.ignoreInitialState),p("do not set initialState on probe actions"),h(_),_;!function(e){return typeof e.present<"u"&&typeof e.future<"u"&&typeof e.past<"u"&&Array.isArray(e.future)&&Array.isArray(e.past)}(t)?(_=s=f(t,n.ignoreInitialState),p("initialHistory initialized: initialState is not a history",s)):(_=s=n.ignoreInitialState?t:a(t.past,t.present,t.future),p("initialHistory initialized: initialState is a history",s))}switch(r.type){case void 0:return _;case n.undoType:return v=y(_,-1),p("perform undo"),h(v),i(v,r,...o);case n.redoType:return v=y(_,1),p("perform redo"),h(v),i(v,r,...o);case n.jumpToPastType:return v=g(_,r.index),p(`perform jumpToPast to ${r.index}`),h(v),i(v,r,...o);case n.jumpToFutureType:return v=m(_,r.index),p(`perform jumpToFuture to ${r.index}`),h(v),i(v,r,...o);case n.jumpType:return v=y(_,r.index),p(`perform jump to ${r.index}`),h(v),i(v,r,...o);case function(e,t){return t.indexOf(e)>-1?e:!e}(r.type,n.clearHistoryType):return v=f(_.present,n.ignoreInitialState),p("perform clearHistory"),h(v),i(v,r,...o);default:if(v=e(_.present,r,...o),n.initTypes.some(e=>e===r.type))return p("reset history due to init action"),h(s),s;if(_._latestUnfiltered===v)return _;if("function"==typeof n.filter&&!n.filter(r,v,_)){const e=a(_.past,v,_.future,_.group);return n.syncFilter||(e._latestUnfiltered=_._latestUnfiltered),p("filter ignored action, not storing it in past"),h(e),e}const t=n.groupBy(r,v,_);if(null!=t&&t===_.group){const e=a(_.past,v,_.future,_.group);return p("groupBy grouped the action with the previous action"),h(e),e}return _=function(e,t,n,r){const i=e.past.length+1;p("inserting",t),p("new free: ",n-i);const{past:o,_latestUnfiltered:s}=e,c=n&&n<=i,u=o.slice(c?1:0);return a(null!=s?[...u,s]:u,t,[],r)}(_,v,n.limit,t),p("inserted new state into history"),h(_),_}}}},26674:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},27430:(e,t,n)=>{"use strict";var r=n(78840),i=n(78461),o=n(63424),s=n(81936),a=n(5125),c=n(96148);const u="@firebase/installations",l="0.6.18",d=`w:${l}`,h="FIS_v2",p=new s.FA("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function f(e){return e instanceof s.g&&e.code.includes("request-failed")}function m({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function g(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function y(e,t){const n=(await t.json()).error;return p.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function v({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function _(e){const t=await e();return t.status>=500&&t.status<600?e():t}function b(e){return new Promise(t=>{setTimeout(t,e)})}const w=/^[cdef][\w-]{21}$/;function S(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){var t;return(t=e,btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22)}(e);return w.test(t)?t:""}catch(e){return""}}function E(e){return`${e.appName}!${e.appId}`}const k=new Map;function T(e,t){const n=E(e);I(n,t),function(e,t){const n=(!C&&"BroadcastChannel"in self&&(C=new BroadcastChannel("[Firebase] FID Change"),C.onmessage=e=>{I(e.data.key,e.data.fid)}),C);n&&n.postMessage({key:e,fid:t}),0===k.size&&C&&(C.close(),C=null)}(n,t)}function I(e,t){const n=k.get(e);if(n)for(const e of n)e(t)}let C=null;const x="firebase-installations-store";let O=null;function A(){return O||(O=(0,c.P2)("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(x)}})),O}async function R(e,t){const n=E(e),r=(await A()).transaction(x,"readwrite"),i=r.objectStore(x),o=await i.get(n);return await i.put(t,n),await r.done,o&&o.fid===t.fid||T(e,t.fid),t}async function P(e){const t=E(e),n=(await A()).transaction(x,"readwrite");await n.objectStore(x).delete(t),await n.done}async function N(e,t){const n=E(e),r=(await A()).transaction(x,"readwrite"),i=r.objectStore(x),o=await i.get(n),s=t(o);return void 0===s?await i.delete(n):await i.put(s,n),await r.done,!s||o&&o.fid===s.fid||T(e,s.fid),s}async function M(e){let t;const n=await N(e.appConfig,n=>{const r=function(e){return j(e||{fid:S(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(p.create("app-offline"))};const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=m(e),i=v(e),o=t.getImmediate({optional:!0});if(o){const e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const s={fid:n,authVersion:h,appId:e.appId,sdkVersion:d},a={method:"POST",headers:i,body:JSON.stringify(s)},c=await _(()=>fetch(r,a));if(c.ok){const e=await c.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:g(e.authToken)}}throw await y("Create Installation",c)}(e,t);return R(e.appConfig,n)}catch(n){throw f(n)&&409===n.customData.serverCode?await P(e.appConfig):await R(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:D(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function D(e){let t=await L(e.appConfig);for(;1===t.registrationStatus;)await b(100),t=await L(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await M(e);return n||t}return t}function L(e){return N(e,e=>{if(!e)throw p.create("installation-not-found");return j(e)})}function j(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function U({appConfig:e,heartbeatServiceProvider:t},n){const r=function(e,{fid:t}){return`${m(e)}/${t}/authTokens:generate`}(e,n),i=function(e,{refreshToken:t}){const n=v(e);return n.append("Authorization",function(e){return`${h} ${e}`}(t)),n}(e,n),o=t.getImmediate({optional:!0});if(o){const e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const s={installation:{sdkVersion:d,appId:e.appId}},a={method:"POST",headers:i,body:JSON.stringify(s)},c=await _(()=>fetch(r,a));if(c.ok)return g(await c.json());throw await y("Generate Auth Token",c)}async function F(e,t=!1){let n;const r=await N(e.appConfig,r=>{if(!z(r))throw p.create("not-registered");const i=r.authToken;if(!t&&(2===(o=i).requestStatus&&!function(e){const t=Date.now();
2return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(o)))return r;var o;if(1===i.requestStatus)return n=async function(e,t){let n=await $(e.appConfig);for(;1===n.authToken.requestStatus;)await b(100),n=await $(e.appConfig);const r=n.authToken;return 0===r.requestStatus?F(e,t):r}(e,t),r;{if(!navigator.onLine)throw p.create("app-offline");const t=function(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=async function(e,t){try{const n=await U(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await R(e.appConfig,r),n}catch(n){if(!f(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await R(e.appConfig,n)}else await P(e.appConfig);throw n}}(e,t),t}});return n?await n:r.authToken}function $(e){return N(e,e=>{if(!z(e))throw p.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e;var t})}function z(e){return void 0!==e&&2===e.registrationStatus}function B(e){return p.create("missing-app-config-values",{valueName:e})}const H="installations";(0,i._registerComponent)(new a.uA(H,e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw B("App Configuration");if(!e.name)throw B("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw B(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:(0,i._getProvider)(t,"heartbeat"),_delete:()=>Promise.resolve()}},"PUBLIC")),(0,i._registerComponent)(new a.uA("installations-internal",e=>{const t=e.getProvider("app").getImmediate(),n=(0,i._getProvider)(t,H).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await M(t);return r?r.catch(console.error):F(t).catch(console.error),n.fid}(n),getToken:e=>async function(e,t=!1){const n=e;return await async function(e){const{registrationPromise:t}=await M(e);t&&await t}(n),(await F(n,t)).token}(n,e)}},"PRIVATE")),(0,i.registerVersion)(u,l),(0,i.registerVersion)(u,l,"esm2017");const W="analytics",q="https://www.googletagmanager.com/gtag/js",V=new o.Vy("@firebase/analytics"),K=new s.FA("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invali
2d-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function Y(e){if(!e.startsWith(q)){const t=K.create("invalid-gtag-resource",{gtagURL:e});return V.warn(t.message),""}return e}function G(e){return Promise.all(e.map(e=>e.catch(e=>e)))}const J=new class{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};function X(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function Z(e,t=J,n){const{appId:r,apiKey:i,measurementId:o}=e.options;if(!r)throw K.create("no-app-id");if(!i){if(o)return{measurementId:o,appId:r};throw K.create("no-api-key")}const s=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new ee;return setTimeout(async()=>{a.abort()},void 0!==n?n:6e4),Q({appId:r,apiKey:i,measurementId:o},s,a,t)}async function Q(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=J){var o;const{appId:a,measurementId:c}=e;try{await function(e,t){return new Promise((n,r)=>{const i=Math.max(t-Date.now(),0),o=setTimeout(n,i);e.addEventListener(()=>{clearTimeout(o),r(K.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}(r,t)}catch(e){if(c)return V.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${c} provided in the "measurementId" field in the local Firebase config. [${null==e?void 0:e.message}]`),{appId:a,measurementId:c};throw e}try{const t=await async function(e){var t;const{appId:n,apiKey:r}=e,i={method:"GET",headers:X(r)},o="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),s=await fetch(o,i);if(200!==s.status&&304!==s.status){let e="";try{const n=await s.json();(null===(t=n.error)||void 0===t?void 0:t.message)&&(e=n.error.message)}catch(e){}throw K.create("config-fetch-failed",{httpStatus:s.status,responseMessage:e})}return s.json()}(e);return i.deleteThrottleMetadata(a),t}catch(t){const u=t;if(!function(e){if(!(e instanceof s.g&&e.customData))return!1;const t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(u)){if(i.deleteThrottleMetadata(a),c)return V.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${c} provided in the "measurementId" field in the local Firebase config. [${null==u?void 0:u.message}]`),{appId:a,measurementId:c};throw t}const l=503===Number(null===(o=null==u?void 0:u.customData)||void 0===o?void 0:o.httpStatus)?(0,s.p9)(n,i.intervalMillis,30):(0,s.p9)(n,i.intervalMillis),d={throttleEndTimeMillis:Date.now()+l,backoffCount:n+1};return i.setThrottleMetadata(a,d),V.debug(`Calling attemptFetch again in ${l} millis`),Q(e,d,r,i)}}class ee{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}let te,ne;async function re(e,t,n,r,i,o,a){var c;const u=Z(e);u.then(t=>{n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&V.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(e=>V.error(e)),t.push(u);const l=async function(){if(!(0,s.zW)())return V.warn(K.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await(0,s.eX)()}catch(e){return V.warn(K.create("indexeddb-unavailable",{errorInfo:null==e?void 0:e.toString()}).message),!1}return!0}().then(e=>e?r.getId():void 0),[d,h]=await Promise.all([u,l]);(function(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(q)&&n.src.includes(e))return n;return null})(o)||function(e,t){const n=function(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy("firebase-js-sdk-policy",t)),n}(0,{createScriptURL:Y}),r=document.createElement("script"),i=`${q}?l=${e}
2&id=${t}`;r.src=n?null==n?void 0:n.createScriptURL(i):i,r.async=!0,document.head.appendChild(r)}(o,d.measurementId),ne&&(i("consent","default",ne),ne=void 0),i("js",new Date);const p=null!==(c=null==a?void 0:a.config)&&void 0!==c?c:{};return p.origin="firebase",p.update=!0,null!=h&&(p.firebase_id=h),i("config",d.measurementId,p),te&&(i("set",te),te=void 0),d.measurementId}class ie{constructor(e){this.app=e}_delete(){return delete oe[this.app.options.appId],Promise.resolve()}}let oe={},se=[];const ae={};let ce,ue,le="dataLayer",de="gtag",he=!1;function pe(e){if(he)throw K.create("already-initialized");e.dataLayerName&&(le=e.dataLayerName),e.gtagName&&(de=e.gtagName)}function fe(e,t,n){!function(){const e=[];if((0,s.sr)()&&e.push("This is a browser extension environment."),(0,s.dM)()||e.push("Cookies are not available."),e.length>0){const t=e.map((e,t)=>`(${t+1}) ${e}`).join(" "),n=K.create("invalid-analytics-context",{errorInfo:t});V.warn(n.message)}}();const r=e.options.appId;if(!r)throw K.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw K.create("no-api-key");V.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=oe[r])throw K.create("already-exists",{id:r});if(!he){!function(e){let t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(le);const{wrappedGtag:e,gtagCore:t}=function(e,t,n,r,i){let o=function(...e){window[r].push(arguments)};return window[i]&&"function"==typeof window[i]&&(o=window[i]),window[i]=function(e,t,n,r){return async function(i,...o){try{if("event"===i){const[r,i]=o;await async function(e,t,n,r,i){try{let o=[];if(i&&i.send_to){let e=i.send_to;Array.isArray(e)||(e=[e]);const r=await G(n);for(const n of e){const e=r.find(e=>e.measurementId===n),i=e&&t[e.appId];if(!i){o=[];break}o.push(i)}}0===o.length&&(o=Object.values(t)),await Promise.all(o),e("event",r,i||{})}catch(e){V.error(e)}}(e,t,n,r,i)}else if("config"===i){const[i,s]=o;await async function(e,t,n,r,i,o){const s=r[i];try{if(s)await t[s];else{const e=(await G(n)).find(e=>e.measurementId===i);e&&await t[e.appId]}}catch(e){V.error(e)}e("config",i,o)}(e,t,n,r,i,s)}else if("consent"===i){const[t,n]=o;e("consent",t,n)}else if("get"===i){const[t,n,r]=o;e("get",t,n,r)}else if("set"===i){const[t]=o;e("set",t)}else e(i,...o)}catch(e){V.error(e)}}}(o,e,t,n),{gtagCore:o,wrappedGtag:window[i]}}(oe,se,ae,le,de);ue=e,ce=t,he=!0}return oe[r]=re(e,se,ae,t,ce,le,n),new ie(e)}async function me(){if((0,s.sr)())return!1;if(!(0,s.dM)())return!1;if(!(0,s.zW)())return!1;try{return await(0,s.eX)()}catch(e){return!1}}function ge(e,t,n,r){e=(0,s.Ku)(e),async function(e,t,n,r,i){if(i&&i.global)e("event",n,r);else{const i=await t;e("event",n,Object.assign(Object.assign({},r),{send_to:i}))}}(ue,oe[e.app.options.appId],t,n,r).catch(e=>V.error(e))}const ye="@firebase/analytics",ve="0.10.17";(0,i._registerComponent)(new a.uA(W,(e,{options:t})=>fe(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t),"PUBLIC")),(0,i._registerComponent)(new a.uA("analytics-internal",function(e){try{const t=e.getProvider(W).getImmediate();return{logEvent:(e,n,r)=>ge(t,e,n,r)}}catch(e){throw K.create("interop-component-reg-failed",{reason:e})}},"PRIVATE")),(0,i.registerVersion)(ye,ve),(0,i.registerVersion)(ye,ve,"esm2017");class _e{constructor(e,t){this.app=e,this._delegate=t}logEvent(e,t,n){ge(this._delegate,e,t,n)}setCurrentScreen(e,t){!function(e,t,n){e=(0,s.Ku)(e),async function(e,t,n,r){if(r&&r.global)return e("set",{screen_name:n}),Promise.resolve();e("config",await t,{update:!0,screen_name:n})}(ue,oe[e.app.options.appId],t,n).catch(e=>V.error(e))}(this._delegate,e,t)}setUserId(e,t){!function(e,t,n){e=(0,s.Ku)(e),async function(e,t,n,r){if(r&&r.global)return e("set",{user_id:n}),Promise.resolve();e("config",await t,{update:!0,user_id:n})}(ue,oe[e.app.options.appId],t,n).catch(e=>V.error(e))}(this._delegate,e,t)}setUserProperties(e,t){!function(e,t,n){e=(0,s.Ku)(e),async function(e,t,n,r){if(r&&r.global){const t={};for(const e of Object.keys(n))t[`user_properties.${e}`]=n[e];return e("set",t),Promise.resolve()}e("config",await t,{update:!0,user_properties:n})}(ue,oe[e.app.options.appId],t,n).catch(e=>V.error(e))}(this._delegate,e,t)}setAnalyticsCollectionEnabled(e){!function(e,t){e=(0,s.Ku)(e),async function(e,t){const n=await e;window[`ga-disable-${n}`]=!t}(oe[e.app.options.appId],t).catch(e=>V.error(e))}(this._delegate,e)}}var be;!function(e){e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_CART="view_cart",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(be||(be={}));const we=e=>{const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("analytics").getImmediate();return new _e(t,n)};!function(){const e={Analytics:_e,settings:pe,isSupported:me,EventName:be};r.A.INTERNAL.registerComponent(new a.uA("analytics-compat",we,"PUBLIC").setServiceProps(e).setMultipleInstances(!0))}(),r.A.registerVersion("@firebase/analytics-compat","0.2.23")},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43145);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},27879:(e,t,n)=>{"use strict";function r(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}n.d(t,{t:()=>r})},28989:(e,t)=>
2{"use strict";var n=60103,r=60106,i=60107,o=60108,s=60114,a=60109,c=60110,u=60112,l=60113,d=60120,h=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;n=f("react.element"),r=f("react.portal"),i=f("react.fragment"),o=f("react.strict_mode"),s=f("react.profiler"),a=f("react.provider"),c=f("react.context"),u=f("react.forward_ref"),l=f("react.suspense"),d=f("react.suspense_list"),h=f("react.memo"),p=f("react.lazy"),f("react.block"),f("react.server.block"),f("react.fundamental"),f("react.debug_trace_mode"),f("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case o:case l:case d:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case h:case a:return e;default:return t}}case r:return t}}}(e)===c}},29545:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=/[A-Z]/g,i=/^ms-/,o={};function s(e){return"-"+e.toLowerCase()}const a=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,s);return o[e]=i.test(t)?"-"+t:t};function c(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:a(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(c):t.fallbacks=c(e.fallbacks)),t}const u=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=c(e[t]);return e}return c(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=a(t);return t===r?e:(n.prop(r,e),null)}}}},30115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var a,c,u,l;if(Array.isArray(e)){if((a=e.length)!=s.length)return!1;for(c=a;0!==c--;)if(!o(e[c],s[c]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!o(c.value[1],s.get(c.value[0])))return!1;return!0}if(r&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((a=e.length)!=s.length)return!1;for(c=a;0!==c--;)if(e[c]!==s[c])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof s.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof s.toString)return e.toString()===s.toString();if((a=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(c=a;0!==c--;)if(!Object.prototype.hasOwnProperty.call(s,u[c]))return!1;if(t&&e instanceof Element)return!1;for(c=a;0!==c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!o(e[u[c]],s[u[c]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},30318:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(14910),i=n(97806),o=n(18056);let s=-1;const a=new Set,c=e=>{if(function(e){return"pagehide"===e.type||"hidden"===r.j.document?.visibilityState}(e)&&s>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of a)e();isFinite(s)||(s="visibilitychange"===e.type?e.timeStamp:0,(0,o.Q)("prerenderingchange",c,!0))}},u=()=>{if(r.j.document&&s<0){const e=(0,i.b)(),t=r.j.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;s=t??("hidden"!==r.j.document?.visibilityState||r.j.document?.prerendering?1/0:0),(0,o.d)("visibilitychange",c,!0),(0,o.d)("pagehide",c,!0),(0,o.d)("prerenderingchange",c,!0)}return{get firstHiddenTime(){return s},onHidden(e){a.add(e)}}}},30454:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],i(n),i(r))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=o(n[0]);i!==n[0]&&(t[n[0]]=i)}n=r.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var c=s[a];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},31158:(e,t,n)=>{"use strict";n.d(t,{LZ:()=>p,ao:()=>m,k1:()=>g});var r=n(7313),i=n(57968),o=n(74611),s=n(63944),a=n(71111),c=n(54704),u=n(46403),l=n(5915),d=n(88728);const h="_frozenDsc";function p(e,t){const n=e;(0,u.my)(n,h,t)}function f(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},o={environment:n.environment||r.U,release:n.release,public_key:i,trace_id:e,org_id:(0,a.ul)(t)};return t.emit("createDsc",o),o}function m(e,t){const n=t.getPropagationContext();return n.dsc||f(n.traceId,e)}function g(e){const t=(0,i.KU)();if(!t)return{};const n=(0,l.zU)(e),r=(0,l.et)(n),a=r.data,u=n.spanContext().traceState,p=u?.get("sentry.sample_rate")??a[o.sy]??a[o.Ef];function m(e){return"number"!=typeof p&&"string"!=typeof p||(e.sample_rate=`${p}`),e}const g=n[h];if(g)return m(g);const y=u?.get("sentry.dsc"),v=y&&(0,s.yD)(y);if(v)return m(v);const _=f(e.spanContext().traceId,t),b=a[o.i_],w=r.description;return"url"!==b&&w&&(_.transaction=w),(0,c.f)()&&(_.sampled=String((0,l.pK)(n)),_.sample_rand=u?.get("sentry.sample_rand")??(0,d.L)(n).scope?.getPropagationContext().sampleRand.toString()),m(_),t.emit("createDsc",_,n),_}},31863:(e,t,n)=>{var r=n(33943);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return r(t)}}},33943:e=>{function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,s=0,a="";i=n.charAt(s++);~i&&(r=o%4?64*r+i:i,o++%4)?a+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=".indexOf(i);return a}},35229:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(51133)),i=n(98917);function o(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n):n}o.default=o,e.exports=o},35947:(e,t,n)=>{"use strict";n.d(t,{Er:()=>a,Mn:()=>c});var r=n(13235),i=n(64208),o=n(93177),s=n(14910);const a="__sentry_xhr_v3__";function c(e){(0,r.s5)("xhr",e),(0,r.AS)("xhr",u)}function u(){if(!s.j.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const s=new Error,c=1e3*(0,o.zf)(),u=(0,i.Kg)(n[0])?n[0].toUpperCase():void 0,l=function(e){if((0,i.Kg)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!u||!l)return e.apply(t,n);t[a]={method:u,url:l,request_headers:{}},"POST"===u&&l.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const d=()=>{const e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const n={endTimestamp:1e3*(0,o.zf)(),startTimestamp:c,xhr:t,virtualError:s};(0,r.aj)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(d(),e.apply(t,n))}):t.addEventListener("readystatechange",d),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,s=t[a];return s&&(0,i.Kg)(r)&&(0,i.Kg)(o)&&(s.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const i=t[a];if(!i)return e.apply(t,n);void 0!==n[0]&&(i.body=n[0]);const s={startTimestamp:1e3*(0,o.zf)(),xhr:t};return(0,r.aj)("xhr",s),e.apply(t,n)}})}},36227:(e,t,n)=>{"use strict";n.d(t,{Jz:()=>o,wq:()=>s});var r=n(9123);const i=6e4;function o(e,t,n=(0,r.Wk)()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function s(e,{statusCode:t,headers:n},o=(0,r.Wk)()){const s={...e},a=n?.["x-sentry-rate-limits"],c=n?.["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n,,,r]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e&&r&&!r.split(";").includes("custom")||(s[e]=o+a);else s.all=o+a}else c?s.all=o+function(e,t=(0,r.Wk)()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const o=Date.parse(`${e}`);return isNaN(o)?i:o-t}(c,o):429===t&&(s.all=o+6e4);return s}},36957:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(45413),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=a;var c=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e}
2,enumerable:!1,configurable:!0}),t}(a);t.DataNode=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(c);t.Text=u;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(c);t.Comment=l;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=s.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(c);t.ProcessingInstruction=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=h;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(h);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(h);t.Document=f;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(h);function g(e){return(0,s.isTag)(e)}function y(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function _(e){return e.type===s.ElementType.Comment}function b(e){return e.type===s.ElementType.Directive}function w(e){return e.type===s.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(_(e))n=new l(e.data);else if(g(e)){var r=t?E(e.children):[],i=new m(e.name,o({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(y(e)){r=t?E(e.children):[];var s=new p(r);r.forEach(function(e){return e.parent=s}),n=s}else if(w(e)){r=t?E(e.children):[];var a=new f(r);r.forEach(function(e){return e.parent=a}),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function E(e){for(var t=e.map(function(e){return S(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=_,t.isDirective=b,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},37353:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m});var r=n(98587),i=n(77387),o=n(96540),s=n(40961);var a=n(17241),c="unmounted",u="exited",l="entering",d="entered",h="exiting",p=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=l):i=d:i=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:i},r.nextCallback=null,r}(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==d&&(t=l):n!==l&&n!==d||(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,a
2ppear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===l){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[s.findDOMNode(this),r],o=i[0],a=i[1],c=this.getTimeouts(),u=r?c.appear:c.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:l},function(){t.props.onEntering(o,a),t.onTransitionEnd(u,function(){t.safeSetState({status:d},function(){t.props.onEntered(o,a)})})})):this.safeSetState({status:d},function(){t.props.onEntered(o)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:h},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(r)})})})):this.safeSetState({status:u},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(a.A.Provider,{value:null},"function"==typeof n?n(e,i):o.cloneElement(o.Children.only(n),i))},t}(o.Component);function f(){}p.contextType=a.A,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED=c,p.EXITED=u,p.ENTERING=l,p.ENTERED=d,p.EXITING=h;const m=p},39941:(e,t,n)=>{"use strict";var r=n(78840),i=n(78461),o=n(81936),s=n(5125);const a="firebasestorage.googleapis.com",c="storageBucket";class u extends o.g{constructor(e,t,n=0){super(h(e),`Firebase Storage: ${t} (${h(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,u.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return h(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}\n${this.customData.serverResponse}`:this.message=this._baseMessage}}var l,d;function h(e){return"storage/"+e}function p(){return new u(l.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function f(){return new u(l.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function m(){return new u(l.CANCELED,"User canceled the upload/download.")}function g(){return new u(l.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function y(e){return new u(l.INVALID_ARGUMENT,e)}function v(){return new u(l.APP_DELETED,"The Firebase app was deleted.")}function _(e){return new u(l.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function b(e,t){return new u(l.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function w(e){throw new u(l.INTERNAL_ERROR,"Internal error: "+e)}!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CA
2NNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(l||(l={}));class S{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=S.makeFromUrl(e,t)}catch(t){return new S(e,"")}if(""===n.path)return n;throw r=e,new u(l.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.");var r}static makeFromUrl(e,t){let n=null;const r="([A-Za-z0-9.\\-_]+)",i=new RegExp("^gs://"+r+"(/(.*))?$","i");function o(e){e.path_=decodeURIComponent(e.path)}const s=t.replace(/[.]/g,"\\."),c=[{regex:i,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${s}/v[A-Za-z0-9_]+/b/${r}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:o},{regex:new RegExp(`^https?://${t===a?"(?:storage.googleapis.com|storage.cloud.google.com)":t}/${r}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:o}];for(let t=0;t<c.length;t++){const r=c[t],i=r.regex.exec(e);if(i){const e=i[r.indices.bucket];let t=i[r.indices.path];t||(t=""),n=new S(e,t),r.postModify(n);break}}if(null==n)throw function(e){return new u(l.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class E{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}function k(e){return"string"==typeof e||e instanceof String}function T(e){return I()&&e instanceof Blob}function I(){return"undefined"!=typeof Blob}function C(e,t,n,r){if(r<t)throw y(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw y(`Invalid value for '${e}'. Expected ${n} or less.`)}function x(e,t,n){let r=t;return null==n&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function O(e){const t=encodeURIComponent;let n="?";for(const r in e)e.hasOwnProperty(r)&&(n=n+(t(r)+"=")+t(e[r])+"&");return n=n.slice(0,-1),n}function A(e,t){const n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||r||i}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(d||(d={}));class R{constructor(e,t,n,r,i,o,s,a,c,u,l,d=!0,h=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=s,this.errorCallback_=a,this.timeout_=c,this.progressCallback_=u,this.connectionFactory_=l,this.retry=d,this.isUsingEmulator=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){const e=(e,t)=>{const n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(i,i.getResponse());void 0!==e?n(e):n()}catch(e){r(e)}else if(null!==i){const e=p();e.serverResponse=i.getErrorText(),this.errorCallback_?r(this.errorCallback_(i,e)):r(e)}else t.canceled?r(this.appDelete_?v():m()):r(f())};this.canceled_?e(0,new P(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,i=null,o=null,s=!1,a=0;function c(){return 2===a}let u=!1;function l(...e){u||(u=!0,t.apply(null,e))}function d(t){i=setTimeout(()=>{i=null,e(p,c())},t)}function h(){o&&clearTimeout(o)}function p(e,...t){if(u)return void h();if(e)return h(),void l.call(null,e,...t);if(c()||s)return h(),void l.call(null,e,...t);let n;r<64&&(r*=2),1===a?(a=2,n=0):n=1e3*(r+Math.random()),d(n)}let f=!1;function m(e){f||(f=!0,h(),u||(null!==i?(e||(a=2),clearTimeout(i),d(0)):e||(a=1)))}return d(0),o=setTimeout(()=>{s=!0,m(!0)},n),m}((e,t)=>{if(t)return void e(!1,new P(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const r=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;const t=n.getErrorCode()===d.NO_ERROR,i=n.getStatus();if(!t||A(i,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===d.ABORT;return void e(!1,new P(!1,null,t))}const o=-1!==this.successCodes_.indexOf(i);e(!0,new P(o,n))})},e,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class P{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function N(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?Web
2KitBlobBuilder:void 0}function M(...e){const t=N();if(void 0!==t){const n=new t;for(let t=0;t<e.length;t++)n.append(e[t]);return n.getBlob()}if(I())return new Blob(e);throw new u(l.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}const D={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class L{constructor(e,t){this.data=e,this.contentType=t||null}}function j(e,t){switch(e){case D.RAW:return new L(U(t));case D.BASE64:case D.BASE64URL:return new L(F(e,t));case D.DATA_URL:return new L(function(e){const t=new $(e);return t.base64?F(D.BASE64,t.rest):function(e){let t;try{t=decodeURIComponent(e)}catch(e){throw b(D.DATA_URL,"Malformed data URL.")}return U(t)}(t.rest)}(t),new $(t).contentType)}throw p()}function U(e){const t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<=127?t.push(r):r<=2047?t.push(192|r>>6,128|63&r):55296==(64512&r)?n<e.length-1&&56320==(64512&e.charCodeAt(n+1))?(r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)):t.push(239,191,189):56320==(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function F(e,t){switch(e){case D.BASE64:{const n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw b(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break}case D.BASE64URL:{const n=-1!==t.indexOf("+"),r=-1!==t.indexOf("/");if(n||r)throw b(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=function(e){if("undefined"==typeof atob)throw new u(l.UNSUPPORTED_ENVIRONMENT,"base-64 is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.");return atob(e)}(t)}catch(t){if(t.message.includes("polyfill"))throw t;throw b(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}class ${constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw b(D.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const n=t[1]||null;var r,i;null!=n&&(this.base64=(i=";base64",(r=n).length>=7&&r.substring(r.length-7)===i),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}}class z{constructor(e,t){let n=0,r="";T(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(e,t){if(T(this.data_)){const o=(n=this.data_,r=e,i=t,n.webkitSlice?n.webkitSlice(r,i):n.mozSlice?n.mozSlice(r,i):n.slice?n.slice(r,i):null);return null===o?null:new z(o)}var n,r,i;{const n=new Uint8Array(this.data_.buffer,e,t-e);return new z(n,!0)}}static getBlob(...e){if(I()){const t=e.map(e=>e instanceof z?e.data_:e);return new z(M.apply(null,t))}{const t=e.map(e=>k(e)?j(D.RAW,e).data:e.data_);let n=0;t.forEach(e=>{n+=e.byteLength});const r=new Uint8Array(n);let i=0;return t.forEach(e=>{for(let t=0;t<e.length;t++)r[i++]=e[t]}),new z(r,!0)}}uploadData(){return this.data_}}function B(e){let t;try{t=JSON.parse(e)}catch(e){return null}return"object"!=typeof(n=t)||Array.isArray(n)?null:t;var n}function H(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function W(e,t){return t}class q{constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||W}}let V=null;function K(){if(V)return V;const e=[];e.push(new q("bucket")),e.push(new q("generation")),e.push(new q("metageneration")),e.push(new q("name","fullPath",!0));const t=new q("name");t.xform=function(e,t){return function(e){return!k(e)||e.length<2?e:H(e)}(t)},e.push(t);const n=new q("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new q("timeCreated")),e.push(new q("updated")),e.push(new q("md5Hash",null,!0)),e.push(new q("cacheControl",null,!0)),e.push(new q("contentDisposition",null,!0)),e.push(new q("contentEncoding",null,!0)),e.push(new q("contentLanguage",null,!0)),e.push(new q("contentType",null,!0)),e.push(new q("metadata","customMetadata",!0)),V=e,V}function Y(e,t,n){const r=B(t);return null===r?null:function(e,t,n){const r={type:"file"},i=n.length;for(let e=0;e<i;e++){const i=n[e];r[i.local]=i.xform(r,t[i.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){const n=e.bucket,r=e.fullPath,i=new S(n,r);return t._makeStorageReference(i)}})}(r,e),r}(e,r,n)}function G(e,t){const n={},r=t.length;for(let i=0;i<r;i++){const r=t[i];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}const J="prefixes",X="items";class Z{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParam
2s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function Q(e){if(!e)throw p()}function ee(e,t){return function(n,r){const i=Y(e,r,t);return Q(null!==i),i}}function te(e){return function(t,n){let r;var i,o;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invalid")?new u(l.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new u(l.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(o=e.bucket,r=new u(l.QUOTA_EXCEEDED,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new u(l.UNAUTHORIZED,"User does not have permission to access '"+i+"'.")):r=n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}}function ne(e){const t=te(e);return function(n,r){let i=t(n,r);var o;return 404===n.getStatus()&&(o=e.path,i=new u(l.OBJECT_NOT_FOUND,"Object '"+o+"' does not exist.")),i.serverResponse=r.serverResponse,i}}function re(e,t,n){const r=x(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,o=new Z(r,"GET",ee(e,n),i);return o.errorHandler=ne(t),o}function ie(e,t,n,r,i){const o={};t.isRoot?o.prefix="":o.prefix=t.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);const s=x(t.bucketOnlyServerUrl(),e.host,e._protocol),a=e.maxOperationRetryTime,c=new Z(s,"GET",function(e,t){return function(n,r){const i=function(e,t,n){const r=B(n);return null===r?null:function(e,t,n){const r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[J])for(const i of n[J]){const n=i.replace(/\/$/,""),o=e._makeStorageReference(new S(t,n));r.prefixes.push(o)}if(n[X])for(const i of n[X]){const n=e._makeStorageReference(new S(t,i.name));r.items.push(n)}return r}(e,t,r)}(e,t,r);return Q(null!==i),i}}(e,t.bucket),a);return c.urlParams=o,c.errorHandler=te(t),c}function oe(e,t,n){const r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return t&&t.type()||"application/octet-stream"}(0,t)),r}class se{constructor(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null}}function ae(e,t){let n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){Q(!1)}return Q(!!n&&-1!==(t||["active"]).indexOf(n)),n}const ce=262144;const ue={STATE_CHANGED:"state_changed"},le={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function de(e){switch(e){case"running":case"pausing":case"canceling":return le.RUNNING;case"paused":return le.PAUSED;case"success":return le.SUCCESS;case"canceled":return le.CANCELED;default:return le.ERROR}}class he{constructor(e,t,n){if("function"==typeof e||null!=t||null!=n)this.next=e,this.error=null!=t?t:void 0,this.complete=null!=n?n:void 0;else{const t=e;this.next=t.next,this.error=t.error,this.complete=t.complete}}}function pe(e){return(...t)=>{Promise.resolve().then(()=>e(...t))}}class fe{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=d.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=d.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=d.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,n,r,i){if(this.sent_)throw w("cannot .send() more than once");if((0,o.zJ)(e)&&n&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==i)for(const e in i)i.hasOwnProperty(e)&&this.xhr_.setRequestHeader(e,i[e].toString());return void 0!==r?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw w("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw w("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}getResponse(){if(!this.sent_)throw w("cannot .getResponse() before sending");return this.xhr_.response}
2getErrorText(){if(!this.sent_)throw w("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class me extends fe{initXhr(){this.xhr_.responseType="text"}}function ge(){return new me}class ye{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(e,t,n=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=n,this._mappings=K(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=e=>{if(this._request=void 0,this._chunkMultiplier=1,e._codeEquals(l.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const t=this.isExponentialBackoffExpired();if(A(e.status,[])){if(!t)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();e=f()}this._error=e,this._transition("error")}},this._metadataErrorHandler=e=>{this._request=void 0,e._codeEquals(l.CANCELED)?this.completeTransitions_():(this._error=e,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t,this._start()}),this._promise.then(null,()=>{})}_makeProgressCallback(){const e=this._transferred;return t=>this._updateProgress(e+t)}_shouldDoResumable(e){return e.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(e){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([t,n])=>{switch(this._state){case"running":e(t,n);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((e,t)=>{const n=function(e,t,n,r,i){const o=t.bucketOnlyServerUrl(),s=oe(t,r,i),a={name:s.fullPath},c=x(o,e.host,e._protocol),u={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${r.size()}`,"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},l=G(s,n),d=e.maxUploadRetryTime,h=new Z(c,"POST",function(e){let t;ae(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){Q(!1)}return Q(k(t)),t},d);return h.urlParams=a,h.headers=u,h.body=l,h.errorHandler=te(t),h}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(n,ge,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._uploadUrl=e,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const e=this._uploadUrl;this._resolveToken((t,n)=>{const r=function(e,t,n,r){const i=e.maxUploadRetryTime,o=new Z(n,"POST",function(e){const t=ae(e,["active","final"]);let n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){Q(!1)}n||Q(!1);const i=Number(n);return Q(!isNaN(i)),new se(i,r.size(),"final"===t)},i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=te(t),o}(this._ref.storage,this._ref._location,e,this._blob),i=this._ref.storage._makeRequest(r,ge,t,n);this._request=i,i.getPromise().then(e=>{this._request=void 0,this._updateProgress(e.current),this._needToFetchStatus=!1,e.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const e=ce*this._chunkMultiplier,t=new se(this._transferred,this._blob.size()),n=this._uploadUrl;this._resolveToken((r,i)=>{let o;try{o=function(e,t,n,r,i,o,s,a){const c=new se(0,0);if(s?(c.current=s.current,c.total=s.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new u(l.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");const d=c.total-c.current;let h=d;i>0&&(h=Math.min(h,i));const p=c.current,f=p+h;let m="";m=0===h?"finalize":d===h?"upload, finalize":"upload";const y={"X-Goog-Upload-Command":m,"X-Goog-Upload-Offset":`${c.current}`},v=r.slice(p,f);if(null===v)throw g();const _=t.maxUploadRetryTime,b=new Z(n,"POST",function(e,n){const i=ae(e,["active","final"]),s=c.current+h,a=r.size();let u;
2return u="final"===i?ee(t,o)(e,n):null,new se(s,a,"final"===i,u)},_);return b.headers=y,b.body=v.uploadData(),b.progressCallback=a||null,b.errorHandler=te(e),b}(this._ref._location,this._ref.storage,n,this._blob,e,this._mappings,t,this._makeProgressCallback())}catch(e){return this._error=e,void this._transition("error")}const s=this._ref.storage._makeRequest(o,ge,r,i,!1);this._request=s,s.getPromise().then(e=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(e.current),e.finalized?(this._metadata=e.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){ce*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((e,t)=>{const n=re(this._ref.storage,this._ref._location,this._mappings),r=this._ref.storage._makeRequest(n,ge,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((e,t)=>{const n=function(e,t,n,r,i){const o=t.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},a=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();s["Content-Type"]="multipart/related; boundary="+a;const c=oe(t,r,i),u="--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+G(c,n)+"\r\n--"+a+"\r\nContent-Type: "+c.contentType+"\r\n\r\n",l="\r\n--"+a+"--",d=z.getBlob(u,r,l);if(null===d)throw g();const h={name:c.fullPath},p=x(o,e.host,e._protocol),f=e.maxUploadRetryTime,m=new Z(p,"POST",ee(e,n),f);return m.urlParams=h,m.headers=s,m.body=d.uploadData(),m.errorHandler=te(t),m}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(n,ge,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(e){const t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}_transition(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=m(),this._state=e,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const e=de(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}on(e,t,n,r){const i=new he(t||void 0,n||void 0,r||void 0);return this._addObserver(i),()=>{this._removeObserver(i)}}then(e,t){return this._promise.then(e,t)}catch(e){return this.then(null,e)}_addObserver(e){this._observers.push(e),this._notifyObserver(e)}_removeObserver(e){const t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(e=>{this._notifyObserver(e)})}_finishPromise(){if(void 0!==this._resolve){let e=!0;switch(de(this._state)){case le.SUCCESS:pe(this._resolve.bind(null,this.snapshot))();break;case le.CANCELED:case le.ERROR:pe(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(e){switch(de(this._state)){case le.RUNNING:case le.PAUSED:e.next&&pe(e.next.bind(e,this.snapshot))();break;case le.SUCCESS:e.complete&&pe(e.complete.bind(e))();break;default:e.error&&pe(e.error.bind(e,this._error))()}}resume(){const e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}pause(){const e="running"===this._state;return e&&this._transition("pausing"),e}cancel(){const e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}class ve{constructor(e,t){this._service=e,this._location=t instanceof S?t:S.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new ve(e,t)}get root(){const e=new S(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return H(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new S(this._location.bucket,e);return new ve(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw _(e)}}function _e(e){const t={prefixes:[],items:[]};return be(e,t).then(()=>t)}async function be(e,t,n){const r={pageToken:n},i=await we(e,r);t.prefixes.push(...i.prefixes),t.items.push(...i.items),null!=i.nextPageToken&&await be(e,t,i.nextPageToken)}function we(e,t){null!=t&&"number"==typeof t.maxResults&&C("options.maxResults",1,1e3,t.maxResults);const n=t||{},r=ie(e.storage,e._location,"/",n.pageToken,n.maxResults);return e.storage.makeRequestWithTokens(r,ge)}function Se(e){e._throwIfRoot("getDownloadURL");const t=function(e,t,n){const r=x(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,o=new Z(r,"GET",function(e,t){return function(n,r){const i=Y(e,r,t);return Q(null!==i),function(e,t,n,r){const i=B(t);if(null===i)return null;if(!k(i.downloadTokens))return null;const o=i.downloadTokens;if(0===o.length)return null;const s=encodeURIComponent;return o.split(",").map(t=>{const i=e.bucket,o=e.fullPath;return x("/b/"+s(i)+"/o/"+s(o),n,r)+O({alt:"media",token:t})})[0]}(i,r,e.host,e._protocol)}}
2(e,n),i);return o.errorHandler=ne(t),o}(e.storage,e._location,K());return e.storage.makeRequestWithTokens(t,ge).then(e=>{if(null===e)throw new u(l.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})}function Ee(e,t){const n=function(e,t){const n=t.split("/").filter(e=>e.length>0).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new S(e._location.bucket,n);return new ve(e.storage,r)}function ke(e,t){if(e instanceof Ce){const n=e;if(null==n._bucket)throw new u(l.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+c+"' property when initializing the app?");const r=new ve(n,n._bucket);return null!=t?ke(r,t):r}return void 0!==t?Ee(e,t):e}function Te(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof Ce)return new ve(e,t);throw y("To use ref(service, url), the first argument must be a Storage instance.")}return ke(e,t)}function Ie(e,t){const n=null==t?void 0:t[c];return null==n?null:S.makeFromBucketSpec(n,e)}class Ce{constructor(e,t,n,r,i,o=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._isUsingEmulator=o,this._bucket=null,this._host=a,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=r?S.makeFromBucketSpec(r,this._host):Ie(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=S.makeFromBucketSpec(this._url,e):this._bucket=Ie(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){C("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){C("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if((0,i._isFirebaseServerApp)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=this._appCheckProvider.getImmediate({optional:!0});return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new ve(this,e)}_makeRequest(e,t,n,r,i=!0){if(this._deleted)return new E(v());{const o=function(e,t,n,r,i,o,s=!0,a=!1){const c=O(e.urlParams),u=e.url+c,l=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(l,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(l,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!=t?t:"AppManager")}(l,o),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(l,r),new R(u,e.method,l,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,s,a)}(e,this._appId,n,r,t,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(e,t){const[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}const xe="@firebase/storage",Oe="0.13.14";function Ae(e,t){return Te(e=(0,o.Ku)(e),t)}(0,i._registerComponent)(new s.uA("storage",function(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),o=e.getProvider("app-check-internal");return new Ce(n,r,o,t,i.SDK_VERSION)},"PUBLIC").setMultipleInstances(!0)),(0,i.registerVersion)(xe,Oe,""),(0,i.registerVersion)(xe,Oe,"esm2017");class Re{constructor(e,t,n){this._delegate=e,this.task=t,this.ref=n}get bytesTransferred(){return this._delegate.bytesTransferred}get metadata(){return this._delegate.metadata}get state(){return this._delegate.state}get totalBytes(){return this._delegate.totalBytes}}class Pe{constructor(e,t){this._delegate=e,this._ref=t,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}get snapshot(){return new Re(this._delegate.snapshot,this,this._ref)}then(e,t){return this._delegate.then(t=>{if(e)return e(new Re(t,this,this._ref))},t)}on(e,t,n,r){let i;return t&&(i="function"==typeof t?e=>t(new Re(e,this,this._ref)):{next:t.next?e=>t.next(new Re(e,this,this._ref)):void 0,complete:t.complete||void 0,error:t.error||void 0}),this._delegate.on(e,i,n||void 0,r||void 0)}}class Ne{constructor(e,t){this._delegate=e,this._service=t}get prefixes(){return this._delegate.prefixes.map(e=>new Me(e,this._service))}get items(){return this._delegate.items.map(e=>new Me(e,this._service))}get nextPageToken(){return this._delegate.nextPageToken||null}}class Me{constructor(e,t){this._delegate=e,this.storage=t}get name(){return this._delegate.name}get bucket(){return this._delegate.bucket}get fullPath(){return this._delegate.fullPath}toString(){return this._delegate.toString()}child(e){const t=function(e,t){return Ee(e,t)}(this._delegate,e);return new Me(t,this.storage)}get root(){return new Me(this._delegate.root,this.storage)}get parent(){const e=this._delegate.parent;return null==e?null:new Me(e,this.storage)}put(e,t){return this._throwIfRoot("put"),new Pe(function(e,t,n){return function(e,t,n){return e._throwIfRoot("uploadBytesResumable"),new ye(e,new z(t),n)}(e=(0,o.Ku)(e),t,n)}(this._delegate,e,t),this)}putString(e,t=D.RAW,n){this._throwIfRoot("putString");const r=j(t,e),i=Object.assign({},n);return null==i.contentType&&null!=r.contentType&&(i.contentType=r.contentType),new Pe(new ye(this._delegate,new z(r.data,!0),i),this)}listAll(){return function(e){return _e(e=(0,o.Ku)(e))}(this._delegate).then(e=>new Ne(e,this.storage))}list(e){return function(e,t){return we(e=(0,o.Ku)(e),t)}(this._delegate,e||void 0).then(e=>new Ne(e,this.storage))}getMetadata(){return function(e){return function(e){e._throwIfRoot("getMetadata");const t=re(e.storage,e._location,K());return e.storage.makeRequestWithTokens(t,ge)}(e=(0,o.Ku)(e))}(this._delegate)}updateMetadata(e){return function(e,t){return function(e,t){e._throwIfRoot("updateMetadata");const n=function(e,t,n,r){const i=x(t.fullServerUrl(),e.host,e._protocol),o=G(n,r),s=e.maxOperationRetryTime,a=new Z(i,"PATCH",ee(e,r),s);return a.headers={"Content-Type":"application/json; charset=utf-8"},a.body=o,a.errorHandler=ne(t),a}(e.storage,e._location,t,K());return e.storage.makeRequestWithTokens(n,ge)}(e=(0,o.Ku)(e),t)}(this._delegate,e)}getDownloadURL(){return function(e){return Se(e=(0,o.Ku)(e))}(this._delegate)}delete(){return this._throwIfRoot("delete"),function(e){return function(e){e._throwIfRoot("deleteObject");const t=function(e,t){const n=x(t.fullServerUrl(),e.host,e._protocol),r=e.maxOperationRetryTime,i=new Z(n,"DELETE",function(e,t){},r);return i.successCodes=[200,204],i.errorHandler=ne(t),i}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,ge)}(e=(0,o.Ku)(e))}(this._delegate)}_throwIfRoot(e){if(""===this._delegate._location.path)throw _(e)}}class De{constructor(e,t){this.app=e,this._delegate=t}get maxOperationRetryTime(){return this._delegate.maxOperationRetryTime}get maxUploadRetryTime(){return this._delegate.maxUploadRetryTime}ref(e){if(Le(e))throw y("ref() expected a child path but got a URL, use refFromURL instead.");return new Me(Ae(this._delegate,e),this)}refFromURL(e){if(!Le(e))throw y("refFromURL() expected a full URL but got a child path, use ref() instead.");try{S.makeFromUrl(e,this._delegate.host)}catch(e){throw y("refFromUrl() expected a valid full URL but got an invali
2d one.")}return new Me(Ae(this._delegate,e),this)}setMaxUploadRetryTime(e){this._delegate.maxUploadRetryTime=e}setMaxOperationRetryTime(e){this._delegate.maxOperationRetryTime=e}useEmulator(e,t,n={}){!function(e,t,n,r={}){!function(e,t,n,r={}){e.host=`${t}:${n}`;const i=(0,o.zJ)(t);i&&((0,o.gE)(`https://${e.host}/b`),(0,o.P1)("Storage",!0)),e._isUsingEmulator=!0,e._protocol=i?"https":"http";const{mockUserToken:s}=r;s&&(e._overrideAuthToken="string"==typeof s?s:(0,o.Fy)(s,e.app.options.projectId))}(e,t,n,r)}(this._delegate,e,t,n)}}function Le(e){return/^[A-Za-z]+:\/\//.test(e)}function je(e,{instanceIdentifier:t}){const n=e.getProvider("app-compat").getImmediate(),r=e.getProvider("storage").getImmediate({identifier:t});return new De(n,r)}!function(e){const t={TaskState:le,TaskEvent:ue,StringFormat:D,Storage:De,Reference:Me};e.INTERNAL.registerComponent(new s.uA("storage-compat",je,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage-compat","0.3.24")}(r.A)},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41141:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(45413),s=n(36957);i(n(36957),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})}
2,43164:(e,t,n)=>{"use strict";n.d(t,{a9:()=>V,hT:()=>G,Pt:()=>K,wv:()=>J,YG:()=>Y,tC:()=>oe});var r=n(19282),i=n(51685),o=n(4693),s=n(14910);const a=(e,t,n,r)=>{let i,o;return s=>{t.value>=0&&(s||r)&&(o=t.value-(i??0),(o||void 0===i)&&(i=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}};var c=n(30318),u=n(97806),l=n(4692);const d=(e,t=-1)=>{const n=(0,l.z)();let r="navigate";return n&&(s.j.document?.prerendering||(0,u.b)()>0?r="prerender":s.j.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},h=new WeakMap;function p(e,t){try{return h.get(e)||h.set(e,new t),h.get(e)}catch(e){return new t}}class f{constructor(){f.prototype.__init.call(this),f.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}const m=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},g=e=>{let t=!1;return()=>{t||(e(),t=!0)}},y=e=>{s.j.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},v=[1800,3e3],_=[.1,.25],b=(e,t={})=>{((e,t={})=>{y(()=>{const n=(0,c.N)(),r=d("FCP");let i;const o=m("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-(0,u.b)(),0),r.entries.push(t),i(!0)))});o&&(i=a(e,r,v,t.reportAllChanges))})})(g(()=>{const n=d("CLS",0);let r;const i=(0,c.N)(),o=p(t,f),u=e=>{for(const t of e)o._processEntry(t);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},l=m("layout-shift",u);l&&(r=a(e,n,_,t.reportAllChanges),i.onHidden(()=>{u(l.takeRecords()),r(!0)}),s.j?.setTimeout?.(r))}))};let w=0,S=1/0,E=0;const k=e=>{e.forEach(e=>{e.interactionId&&(S=Math.min(S,e.interactionId),E=Math.max(E,e.interactionId),w=E?(E-S)/7+1:0)})};let T;const I=()=>T?w:performance.interactionCount||0,C=()=>{"interactionCount"in performance||T||(T=m("event",k,{type:"event",buffered:!0,durationThreshold:0}))};let x=0;class O{constructor(){O.prototype.__init.call(this),O.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){x=I(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((I()-x)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}}var A=n(18056);const R=e=>{const t=s.j.requestIdleCallback||s.j.setTimeout;"hidden"===s.j.document?.visibilityState?e():(e=g(e),(0,A.d)("visibilitychange",e,{once:!0,capture:!0}),(0,A.d)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,A.Q)("visibilitychange",e,{capture:!0}),(0,A.Q)("pagehide",e,{capture:!0})}
2))},P=[200,500],N=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=(0,c.N)();y(()=>{C();const r=d("INP");let i;const o=p(t,O),s=e=>{R(()=>{for(const t of e)o._processEntry(t);const t=o._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},c=m("event",s,{durationThreshold:t.durationThreshold??40});i=a(e,r,P,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(c.takeRecords()),i(!0)}))})};class M{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}const D=[2500,4e3],L=(e,t={})=>{y(()=>{const n=(0,c.N)(),r=d("LCP");let i;const o=p(t,M),s=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)o._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-(0,u.b)(),0),r.entries=[t],i())},l=m("largest-contentful-paint",s);if(l){i=a(e,r,D,t.reportAllChanges);const n=g(()=>{s(l.takeRecords()),l.disconnect(),i(!0)}),o=e=>{e.isTrusted&&(R(n),(0,A.Q)(e.type,o,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])(0,A.d)(e,o,{capture:!0})}})},j=[800,1800],U=e=>{s.j.document?.prerendering?y(()=>U(e)):"complete"!==s.j.document?.readyState?addEventListener("load",()=>U(e),!0):setTimeout(e)},F=(e,t={})=>{const n=d("TTFB"),r=a(e,n,j,t.reportAllChanges);U(()=>{const e=(0,l.z)();e&&(n.value=Math.max(e.responseStart-(0,u.b)(),0),n.entries=[e],r(!0))})},$={},z={};let B,H,W,q;function V(e,t=!1){return ne("cls",e,Z,B,t)}function K(e,t=!1){return ne("lcp",e,Q,H,t)}function Y(e){return ne("ttfb",e,ee,W)}function G(e){return ne("inp",e,te,q)}function J(e,t){return re(e,t),z[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),m(e,t=>{X(e,{entries:t})},t)}(e),z[e]=!0),ie(e,t)}function X(e,t){const n=$[e];if(n?.length)for(const s of n)try{s(t)}catch(t){o.T&&r.Yz.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.qQ)(s)}\nError:`,t)}}function Z(){return b(e=>{X("cls",{metric:e}),B=e},{reportAllChanges:!0})}function Q(){return L(e=>{X("lcp",{metric:e}),H=e},{reportAllChanges:!0})}function ee(){return F(e=>{X("ttfb",{metric:e}),W=e})}function te(){return N(e=>{X("inp",{metric:e}),q=e})}function ne(e,t,n,r,i=!1){let o;return re(e,t),z[e]||(o=n(),z[e]=!0),r&&t({metric:r}),ie(e,t,i?o:void 0)}function re(e,t){$[e]=$[e]||[],$[e].push(t)}function ie(e,t,n){return()=>{n&&n();const r=$[e];if(!r)return;const i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function oe(e){return"duration"in e}},43674:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r="10.43.0"}
vendor: 19,453 bytes, line 2
2,43693:(e,t,n)=>{var r=n(77736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},44809:function(e,t){var n,r;n=function e(){var t,n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{},r=!n.document&&!!n.postMessage,i=n.IS_PAPA_WORKER||!1,o={},s=0,a={};function c(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=_(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new p(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(o=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,o)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&w(this._config.beforeFirstChunk)&&void 0!==(o=this._config.beforeFirstChunk(e))&&(e=o),this.isFirstChunk=!1,this._halted=!1,r=this._partialLine+e;var o=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=o.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),o&&o.data&&(this._rowCount+=o.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,i)n.postMessage({results:o,workerId:a.WORKER_ID,finished:r});else if(w(this._config.chunk)&&!t){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=o=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!r||!w(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):i&&this._config.error&&n.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),c.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,n=this._config.downloadRequestHeaders;for(e in n)t.setRequestHeader(e,n[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+i));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function l(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),c.call(this,e);var t,n,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,i)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;c.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return e=this._config.chunkSize,t=e?(n=t.substring(0,e),t.substring(e)):(n=t,""),this._finished=!t,this.parseChunk(n)}}function h(e){c.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function p(e){var t,n,r,i,o=Math.pow(2,53),s=-o,c=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,d=0,h=0,p=!1,g=!1,y=[],v={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function S(){if(v&&r&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(v.data=v.data.filter(function(e){return!b(e)})),E()){if(v)if(Array.isArray(v.data[0])){for(var t=0;E()&&t<v.data.length;t++)v.data[t].forEach(n);v.data.splice(0,1)}else v.data.forEach(n);function n(t,n){w(e.transformHeader)&&(t=e.transformHeader(t,n)),y.push(t)}}function i(t,n){for(var r=e.header?{}:[],i=0;i<t.length;i++){var a=i,l=t[i];l=((t,n)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&((e=>{if(c.test(e)&&(e=parseFloat(e),s<e&&e<o))return 1})(n)?parseFloat(n):u.test(n)?new Date(n):""===n?null:n):n)(a=e.header?i>=y.length?"__parsed_extra":y[i]:a,l=e.transform?e.transform(l,a):l),"__parsed_extra"===a?(r[a]=r[a]||[],r[a].push(l)):r[a]=l}return e.header&&(i>y.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+y.length+" fields but parsed "+i,h+n):i<y.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+y.length+" fields but parsed "+i,h+n)),r}var l;v&&(e.header||e.dynamicTyping||e.transform)&&(l=1,!v.data.length||Array.isArray(v.data[0])?(v.data=v.data.map(i),l=v.data.length):v.data=i(v.data,0),e.header&&v.meta&&(v.meta.fields=y),h+=l)}function E(){return e.header&&0===y.length}function k(e,t,n,r){e={type:e,code:t,message:n},void 0!==r&&(e.row=r),v.errors.push(e)}w(e.step)&&(i=e.step,e.step=function(t){v=t,E()?S():(S(),0!==v.data.length&&(d+=t.data.length,e.preview&&d>e.preview?n.abort():(v.data=v.data[0],i(v,l))))}),this.parse=function(i,o,s){var c=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(i,c)),r=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(i),v.meta.delimiter=e.delimiter):((c=((t,n,r,i,o)=>{var s,c,u,l;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d<o.length;d++){for(var h,p=o[d],f=0,g=0,y=0,v=(u=void 0,new m({comments:i,delimiter:p,newline:n,preview:10}).parse(t)),_=0;_<v.data.length;_++)r&&b(v.data[_])?y++:(g+=h=v.data[_].length,void 0===u?u=h:0<h&&(f+=Math.abs(h-u),u=h));0<v.data.length&&(g/=v.data.length-y),(void 0===c||f<=c)&&(void 0===l||l<g)&&1.99<g&&(c=f,s=p,l=g)}return{successful:!!(e.delimiter=s),bestDelimiter:s}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=c.bestDelimiter:(r=!0,e.delimiter=a.DefaultDelimiter),v.meta.delimiter=e.delimiter),c=_(e),e.preview&&e.header&&c.preview++,t=i,n=new m(c),v=n.parse(t,o,s),S(),p?{meta:{paused:!0}}:v||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,n.abort(),t=w(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(p=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,n.abort(),v.meta.aborted=!0,w(e.complete)&&e.complete(v),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(f(t)+"([^]*?)"+f(t),"gm");var n=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<n[0].length,1===n.length||e)return"\n";for(var r=0,i=0;i<n.length;i++)"\n"===n[i][0]&&r++;return r>=n.length/2?"\r\n":"\r"}}function f(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t=(e=e||{}).delimiter,n=e.newline,r=e.comments,i=e.step,o=e.preview,s=e.fastMode,c=null,u=!1,l=null==e.quoteChar?'"':e.quoteChar,d=l;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof t||-1<a.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<a.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var h=0,p=!1;this.parse=function(a,m,g){if("string"!=typeof a)throw new Error("Input must be a string");var y=a.length,v=t.length,_=n.length,b=r.length,S=w(i),E=[],k=[],T=[],I=h=0;if(!a)return U();if(s||!1!==s&&-1===a.indexOf(l)){for(var C=a.split(n),x=0;x<C.length;x++){if(T=C[x],h+=T.length,x!==C.length-1)h+=n.length;else if(g)return U();if(!r||T.substring(0,b)!==r){if(S){if(E=[],M(T.split(t)),F(),p)return U()}else M(T.split(t));if(o&&o<=x)return E=E.slice(0,o),U(!0)}}return U()}for(var O=a.indexOf(t,h),A=a.indexOf(n,h),R=new RegExp(f(d)+f(l),"g"),P=a.indexOf(l,h);;)if(a[h]===l)for(P=h,h++;;){if(-1===(P=a.indexOf(l,P+1)))return g||k.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:E.length,index:h}),L();if(P===y-1)return L(a.substring(h,P).replace(R,l));if(l===d&&a[P+1]===d)P++;else if(l===d||0===P||a[P-1]!==d){-1!==O&&O<P+1&&(O=a.indexOf(t,P+1));var N=D(-1===(A=-1!==A&&A<P+1?a.indexOf(n,P+1):A)?O:Math.min(O,A));if(a.substr(P+1+N,v)===t){T.push(a.substring(h,P).replace(R,l)),a[h=P+1+N+v]!==l&&(P=a.indexOf(l,h)),O=a.indexOf(t,h),A=a.indexOf(n,h);break}if(N=D(A),a.substring(P+1+N,P+1+N+_)===n){if(T.push(a.substring(h,P).replace(R,l)),j(P+1+N+_),O=a.indexOf(t,h),P=a.indexOf(l,h),S&&(F(),p))return U();if(o&&E.length>=o)return U(!0);break}k.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:h}),P++}}else if(r&&0===T.length&&a.substring(h,h+b)===r){if(-1===A)return U();h=A+_,A=a.indexOf(n,h),O=a.indexOf(t,h)}else if(-1!==O&&(O<A||-1===A))T.push(a.substring(h,O)),h=O+v,O=a.indexOf(t,h);else{if(-1===A)break;if(T.push(a.substring(h,A)),j(A+_),S&&(F(),p))return U();if(o&&E.length>=o)return U(!0)}return L();function M(e){E.push(e),I=h}function D(e){return-1!==e&&(e=a.substring(P+1,e))&&""===e.trim()?e.length:0}function L(e){return g||(void 0===e&&(e=a.substring(h)),T.push(e),h=y,M(T),S&&F()),U()}function j(e){h=e,M(T),T=[],A=a.indexOf(n,h)}function U(r){if(e.header&&!m&&E.length&&!u){var i=E[0],o=Object.create(null),s=new Set(i);let t=!1;for(let n=0;n<i.length;n++){let r=i[n];if(o[r=w(e.transformHeader)?e.transformHeader(r,n):r]){let e,a=o[r];for(;e=r+"_"+a,a++,s.has(e););s.add(e),i[n]=e,o[r]++,t=!0,(c=null===c?{}:c)[e]=r}else o[r]=1,i[n]=r;s.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:E,errors:k,meta:{delimiter:t,linebreak:n,aborted:p,truncated:!!r,cursor:I+(m||0),renamedHeaders:c}}}function F(){i(U()),E=[],k=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return h}}function g(e){var t=e.data,n=o[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){r=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(w(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},i),!r);s++);delete t.results}else w(n.userChunk)&&(n.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!r&&y(t.workerId,t.results)}function y(e,t){var n=o[e];w(n.userComplete)&&n.userComplete(t),n.terminate(),delete o[e]}function v(){throw new Error("Not implemented.")}function _(e){if("object"!=typeof e||null===e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=_(e[t]);return n}function b(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return a.parse=function(t,r){var i=(r=r||{}).dynamicTyping||!1;if(w(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!w(r.transform)&&r.transform,!r.worker||!a.WORKERS_SUPPORTED)return i=null,a.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),i=new(r.download?u:d)(r)):!0===t.readable&&w(t.read)&&w(t.on)?i=new h(r):(n.File&&t instanceof File||t instanceof Object)&&(i=new l(r)),i.stream(t);(i=(()=>{var t;return!!a.WORKERS_SUPPORTED&&(t=(()=>{var t=n.URL||n.webkitURL||null,r=e.toString();return a.BLOB_URL||(a.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))})(),(t=new n.Worker(t)).onmessage=g,t.id=s++,o[t.id]=t)})()).userStep=r.step,i.userChunk=r.chunk,i.userComplete=r.complete,i.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,i.postMessage({input:t,config:r,workerId:i.id})},a.unparse=function(e,t){var n=!1,r=!0,i=",",o="\r\n",s='"',c=s+s,u=!1,l=null,d=!1,h=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(c=t.escapeChar+s),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),new RegExp(f(s),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,u);if("object"==typeof e[0])return p(l||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||l),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),p(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function p(e,t,n){var s="",a=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),c=!Array.isArray(t[0]);if(a&&r){for(var u=0;u<e.length;u++)0<u&&(s+=i),s+=m(e[u],u);0<t.length&&(s+=o)}for(var l=0;l<t.length;l++){var d=(a?e:t[l]).length,h=!1,p=a?0===Object.keys(t[l]).length:0===t[l].length;if(n&&!a&&(h="greedy"===n?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===n&&a){for(var f=[],g=0;g<d;g++){var y=c?e[g]:g;f.push(t[l][y])}h=""===f.join("").trim()}if(!h){for(var v=0;v<d;v++){0<v&&!p&&(s+=i);var _=a&&c?e[v]:v;s+=m(t[l][_],v)}l<t.length-1&&(!n||0<d&&!p)&&(s+=o)}}return s}function m(e,t){var r,o;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(o=!1,d&&"string"==typeof e&&d.test(e)&&(e="'"+e,o=!0),r=e.toString().replace(h,c),(o=o||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(r,a.BAD_DELIMITERS)||-1<r.indexOf(i)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?s+r+s:r)}},a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!r&&!!n.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=m,a.ParserHandle=p,a.NetworkStreamer=u,a.FileStreamer=l,a.StringStreamer=d,a.ReadableStreamStreamer=h,n.jQuery&&((t=n.jQuery).fn.parse=function(e){var r=e.config||{},i=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)i.push({file:this.files[o],inputElem:this,instanceConfig:t.extend({},r)})}),o(),this;function o(){if(0===i.length)w(e.complete)&&e.complete();else{var n,r,o,c=i[0];if(w(e.before)){var u=e.before(c.file,c.inputElem);if("object"==typeof u){if("abort"===u.action)return n=c.file,r=c.inputElem,o=u.reason,void(w(e.error)&&e.error({name:"AbortError"},n,r,o));if("skip"===u.action)return void s();"object"==typeof u.config&&(c.instanceConfig=t.extend(c.instanceConfig,u.config))}else if("skip"===u)return void s()}var l=c.instanceConfig.complete;c.instanceConfig.complete=function(e){w(l)&&l(e,c.file,c.inputElem),s()},a.parse(c.file,c.instanceConfig)}}function s(){i.splice(0,1),o()}}),i&&(n.onmessage=function(e){e=e.data,void 0===a.WORKER_ID&&e&&(a.WORKER_ID=e.workerId),"string"==typeof e.input?n.postMessage({workerId:a.WORKER_ID,results:a.parse(e.input,e.config),finished:!0}):(n.File&&e.input instanceof File||e.input instanceof Object)&&(e=a.parse(e.input,e.config))&&n.postMessage({workerId:a.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(c.prototype)).constructor=u,(l.prototype=Object.create(c.prototype)).constructor=l,(d.prototype=Object.create(d.prototype)).constructor=d,(h.prototype=Object.create(c.prototype)).constructor=h,a}
2,void 0===(r=n.apply(t,[]))||(e.exports=r)},45228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in o=Object(arguments[c]))n.call(o,u)&&(a[u]=o[u]);if(t){s=t(o);for(var l=0;l<s.length;l++)r.call(o,s[l])&&(a[s[l]]=o[s[l]])}}return a}},45413:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},45734:(e,t,n)=>{"use strict";function r(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const i={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=r(i[e],t[e],n-1));return i}n.d(t,{h:()=>r})},46403:(e,t,n)=>{"use strict";n.d(t,{GS:()=>a,HF:()=>f,W4:()=>d,my:()=>c,pO:()=>u,sp:()=>l});var r=n(26674),i=n(57726),o=n(19282),s=n(64208);function a(e,t,n){if(!(t in e))return;const i=e[t];if("function"!=typeof i)return;const s=n(i);"function"==typeof s&&u(s,i);try{e[t]=s}catch{r.T&&o.Yz.log(`Failed to replace method "${t}" in object`,e)}}function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&o.Yz.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch{}}function l(e){return e.__sentry_original__}function d(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if((0,s.xH)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,s.tH)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return(0,s.vq)(e)?(0,i.Hd)(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function p(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function f(e){const t=Object.keys(d(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},47040:(e,t,n)=>{"use strict";n.d(t,{NJ:()=>s,a3:()=>a,m7:()=>c});var r=n(26674),i=n(19282);const o=n(18845).O;function s(){return"history"in o&&!!o.history}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in o))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(a(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.T&&i.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}},48851:(e,t,n)=>{"use strict";n.d(t,{A:()=>te});var r="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(r&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),o=r&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}
vendor: 18,143 bytes, line 2
2function c(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:u(c(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var d=r&&!(!window.MSInputMethodContext||!document.documentMode),h=r&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?d:10===e?h:d||h}function f(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?f(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s,a,c=o.commonAncestorContainer;if(e!==c&&t!==c||r.contains(i))return"BODY"===(a=(s=c).nodeName)||"HTML"!==a&&f(s.firstElementChild)!==s?f(c):c;var u=m(e);return u.host?g(u.host,t):g(e,m(t).host)}function y(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function v(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function _(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:_("Height",t,n,r),width:_("Width",t,n,r)}}var w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function k(e){return E({},e,{right:e.left+e.width,bottom:e.top+e.height})}function T(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=y(e,"top"),r=y(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?b(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,c=o.height||e.clientHeight||i.height,u=e.offsetWidth-s,l=e.offsetHeight-c;if(u||l){var d=a(e);u-=v(d,"x"),l-=v(d,"y"),i.width-=u,i.height-=l}return k(i)}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),i="HTML"===t.nodeName,o=T(e),s=T(t),c=u(e),l=a(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=k({top:o.top-s.top-d,left:o.left-s.left-h,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!r&&i){var m=parseFloat(l.marginTop),g=parseFloat(l.marginLeft);f.top-=d-m,f.bottom-=d-m,f.left-=h-g,f.right-=h-g,f.marginTop=m,f.marginLeft=g}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(t,"top"),i=y(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(f,t)),f}function C(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=c(e);return!!n&&C(n)}function x(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function O(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=i?x(e):g(e,l(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=I(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:y(n),a=t?0:y(n,"left");return k({top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:o})}(s,i);else{var a=void 0;"scrollParent"===r?"BODY"===(a=u(c(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r;var d=I(a,s,i);if("HTML"!==a.nodeName||C(s))o=d;else{var h=b(e.ownerDocument),p=h.height,f=h.width;o.top+=d.top-d.marginTop,o.bottom=p+d.top,o.left+=d.left-d.marginLeft,o.right=f+d.left}}var m="number"==typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function A(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=O(n,r,o,i),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},c=Object.keys(a).map(function(e){return E({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),u=c.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),l=u.length>0?u[0].key:c[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function R(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return I(n,r?x(t):g(t,l(n)),r)}function P(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function M(e,t,n){n=n.split("-")[0];var r=P(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return i[s]=t[s]+t[c]/2-r[c]/2,i[a]=n===a?t[a]-r[u]:t[N(a)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=D(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))}),t}function j(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=R(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=M(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=L(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function U(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function F(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function $(){return this.state.isDestroyed=!0,U(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[F("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function z(e){var t=e.ownerDocument;return t?t.defaultView:window}function B(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||B(u(o.parentNode),t,n,r),r.push(o)}function H(e,t,n,r){n.updateBound=r,z(e).addEventListener("resize",n.updateBound,{passive:!0});var i=u(e);return B(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,z(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function V(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&V(t[n])&&(r="px"),e.style[n]=t[n]+r})}var Y=r&&/Firefox/i.test(navigator.userAgent);function G(e,t,n){var r=D(e,function(e){return e.name===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var o="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],X=J.slice(3);function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=X.indexOf(e),r=X.slice(n+1).concat(X.slice(0,n));return t?r.reverse():r}var Q={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),c=a?"left":"top",u=a?"width":"height",l={start:S({},c,o[c]),end:S({},c,o[c]+o[u]-s[u])};e.offsets.popper=E({},s,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.placement,o=e.offsets,s=o.popper,a=o.reference,c=i.split("-")[0];return n=V(+r)?[+r,0]:function(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(D(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(c)[0]]),[s[a].split(c)[1]].concat(s.slice(a+1))]:[s];return(u=u.map(function(e,r){var i=(1===r?!o:o)?"height":"width",s=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];return o?0===s.indexOf("%")?k("%p"===s?n:r)[t]/100*o:"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e}(e,i,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){V(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}(r,s,a,c),"left"===c?(s.top+=n[0],s.left-=n[1]):"right"===c?(s.top+=n[0],s.left+=n[1]):"top"===c?(s.left+=n[0],s.top-=n[1]):"bottom"===c&&(s.left+=n[0],s.top+=n[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||f(e.instance.popper);e.instance.reference===n&&(n=f(n));var r=F("transform"),i=e.instance.popper.style,o=i.top,s=i.left,a=i[r];i.top="",i.left="",i[r]="";var c=O(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=s,i[r]=a,t.boundaries=c;var u=t.priority,l=e.offsets.popper,d={primary:function(e){var n=l[e];return l[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(l[e],c[e])),S({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),S({},n,r)}};return u.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=E({},l,d[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",c=s?"left":"top",u=s?"width":"height";return n[a]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[u]),n[c]>o(r[a])&&(e.offsets.popper[c]=o(r[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!G(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,c=o.reference,u=-1!==["left","right"].indexOf(i),l=u?"height":"width",d=u?"Top":"Left",h=d.toLowerCase(),p=u?"left":"top",f=u?"bottom":"right",m=P(r)[l];c[f]-m<s[h]&&(e.offsets.popper[h]-=s[h]-(c[f]-m)),c[h]+m>s[f]&&(e.offsets.popper[h]+=c[h]+m-s[f]),e.offsets.popper=k(e.offsets.popper);var g=c[h]+c[l]/2-m/2,y=a(e.instance.popper),v=parseFloat(y["margin"+d]),_=parseFloat(y["border"+d+"Width"]),b=g-e.offsets.popper[h]-v-_;return b=Math.max(Math.min(s[l]-m,b),0),e.arrowElement=r,e.offsets.arrow=(S(n={},h,Math.round(b)),S(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(U(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=N(r),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case"flip":s=[r,i];break;case"clockwise":s=Z(r);break;case"counterclockwise":s=Z(r,!0);break;default:s=t.behavior}return s.forEach(function(a,c){if(r!==a||s.length===c+1)return e;r=e.placement.split("-")[0],i=N(r);var u=e.offsets.popper,l=e.offsets.reference,d=Math.floor,h="left"===r&&d(u.right)>d(l.left)||"right"===r&&d(u.left)<d(l.right)||"top"===r&&d(u.bottom)>d(l.top)||"bottom"===r&&d(u.top)<d(l.bottom),p=d(u.left)<d(n.left),f=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>d(n.bottom),y="left"===r&&p||"right"===r&&f||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),_=!!t.flipVariations&&(v&&"start"===o&&p||v&&"end"===o&&f||!v&&"start"===o&&m||!v&&"end"===o&&g),b=!!t.flipVariationsByContent&&(v&&"start"===o&&f||v&&"end"===o&&p||!v&&"start"===o&&g||!v&&"end"===o&&m),w=_||b;(h||y||w)&&(e.flipped=!0,(h||y)&&(r=s[c+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=E({},e.offsets.popper,M(e.instance.popper,e.offsets.reference,e.placement)),e=L(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),e.placement=N(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!G(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=D(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=D(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,a,c=void 0!==o?o:t.gpuAcceleration,u=f(e.instance.popper),l=T(u),d={position:i.position},h=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,s=Math.floor,a=function(e){return e},c=o(i.width),u=o(r.width),l=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?l||d||c%2==u%2?o:s:a,p=t?o:a;return{left:h(c%2==1&&u%2==1&&!d&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:h(r.right)}}(e,window.devicePixelRatio<2||!Y),p="bottom"===n?"top":"bottom",m="right"===r?"left":"right",g=F("transform");if(a="bottom"===p?"HTML"===u.nodeName?-u.clientHeight+h.bottom:-l.height+h.bottom:h.top,s="right"===m?"HTML"===u.nodeName?-u.clientWidth+h.right:-l.width+h.right:h.left,c&&g)d[g]="translate3d("+s+"px, "+a+"px, 0)",d[p]=0,d[m]=0,d.willChange="transform";else{var y="bottom"===p?-1:1,v="right"===m?-1:1;d[p]=a*y,d[m]=s*v,d.willChange=p+", "+m}var _={"x-placement":e.placement};return e.attributes=E({},_,e.attributes),e.styles=E({},d,e.styles),e.arrowStyles=E({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEac
2h(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=R(i,t,e,n.positionFixed),s=A(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ee=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=E({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(E({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=E({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return E({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return w(e,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return $.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),e}();ee.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ee.placements=J,ee.Defaults=Q;const te=ee},49158:(e,t,n)=>{"use strict";n.d(t,{li:()=>S,mG:()=>w});var r=n(7313),i=n(26674),o=n(19282),s=n(64208),a=n(17786);function c(e,t,n,r=0){try{const i=u(t,n,e,r);return(0,s.Qg)(i)?i:(0,a.XW)(i)}catch(e){return(0,a.xg)(e)}}function u(e,t,n,r){const a=n[r];if(!e||!a)return e;const c=a({...e},t);return i.T&&null===c&&o.Yz.log(`Event processor "${a.id||"?"}" dropped event`),(0,s.Qg)(c)?c.then(e=>u(e,t,n,r+1)):u(c,t,n,r+1)}var l=n(94988),d=n(18845);let h,p,f,m;var g=n(9600),y=n(94837),v=n(23998),_=n(70125),b=n(93177);function w(e,t,n,i,o,s){const{normalizeDepth:u=3,normalizeMaxBreadth:w=1e3}=e,S={...t,event_id:t.event_id||n.event_id||(0,g.eJ)(),timestamp:t.timestamp||(0,b.lu)()},E=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:i,dist:o,maxValueLength:s}=t;e.environment=e.environment||n||r.U,!e.release&&i&&(e.release=i),!e.dist&&o&&(e.dist=o);const a=e.request;a?.url&&s&&(a.url=(0,_.xv)(a.url,s)),s&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,_.xv)(e.value,s))})}(S,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(S,E),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=d.O._sentryDebugIds,n=d.O._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(m&&r.length===p&&i.length===f)return m;p=r.length,f=i.length,m={},h||(h={});const o=(t,n)=>{for(const r of t){const t=n[r],i=h?.[r];if(i&&m&&t)m[i[0]]=t,h&&(h[r]=[i[0],t]);else if(t){const n=e(r);for(let e=n.length-1;e>=0;e--){const i=n[e],o=i?.filename;if(o&&m&&h){m[o]=t,h[r]=[o,t];break}}}}};return t&&o(r,t),n&&o(i,n),m}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(S,e.stackParser);const k=function(e,t){if(!t)return e;const n=e?e.clone():new l.H;return n.update(t),n}(i,n.captureContext);n.mechanism&&(0,g.M6)(S,n.mechanism);const T=o?o.getEventProcessors():[],I=(0,v.Om)(s,k),C=[...n.attachments||[],...I.attachments];C.length&&(n.attachments=C),(0,v.e2)(S,I);const x=[...T,...I.eventProcessors];return(n.data&&!0===n.data.__sentry__?(0,a.XW)(S):c(x,S,n)).then(e=>(e&&function(e){const t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>
2{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof u&&u>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,y.S8)(e.data,t,n)}}))},...e.user&&{user:(0,y.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,y.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,y.S8)(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,y.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,y.S8)(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,y.S8)(e.contexts.flags,3,n)),r}(e,u,w):e))}function S(e){if(e)return function(e){return e instanceof l.H||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>E.includes(e))}(e)?{captureContext:e}:e}const E=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},50356:(e,t,n)=>{"use strict";n.d(t,{T:()=>Rt});var r=n(64251),i=n(26674),o=n(19282);const s=[];function a(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r)}function c(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function u(e,t,n){if(n[t.name])i.T&&o.Yz.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,s.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),s.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}i.T&&o.Yz.log(`Integration installed: ${t.name}`)}}function l(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}var d=n(9600),h=n(70125);const p=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],f=(e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=g(e,r)},processEvent(n,r,s){if(!t){const n=s.getOptions();t=g(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&(0,h.Xr)(n,t)}(e,t.ignoreTransactions))return i.T&&o.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,d.$X)(e)}`),!0}else{if(function(e,t){return!!t?.length&&l(e).some(e=>(0,h.Xr)(e,t))}(e,t.ignoreErrors))return i.T&&o.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,d.$X)(e)}`),!0;if(function(e){return!!e.exception?.values?.length&&(!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return i.T&&o.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,d.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=y(e);return!!n&&(0,h.Xr)(n,t)}(e,t.denyUrls))return i.T&&o.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,d.$X)(e)}.\nUrl: ${y(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=y(e);return!n||(0,h.Xr)(n,t)}(e,t.allowUrls))return i.T&&o.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,d.$X)(e)}.\nUrl: ${y(e)}`),!0}return!1}(n,t)?null:n}}},m=(e={})=>({...f(e),name:"InboundFilters"});function g(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:p],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function y(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return i.T&&o.Yz.error(`Cannot extract url for event ${(0,d.$X)(e)}`),null}}var v=n(57968),_=n(46403);let b;const w=new WeakMap,S=()=>({name:"FunctionToString",setupOnce(){b=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,_.sp)(this),n=w.has((0,v.KU)())&&void 0!==t?t:this;return b.apply(n,e)}}catch{}},setup(e){w.set(e,!0)}});var E=n(74611);const k=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=(0,v.o5)().getScopeData(),n=(0,v.rm)().getScopeData(),r=t.conversationId||n.conversationId;r&&e.setAttribute(E.Fy,r)})}});var T=n(51685);const I=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!x(e,t)&&!!C(e,t))))}(e,t)||!!function(e,t){const n=O(t),r=O(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!x(e,t)&&!!C(e,t)))}(e,t))}(t,e))return i.T&&o.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function C(e,t){let n=(0,T.RV)(e),r=(0,T.RV)(t);if(!n&&!r)return!0;
2if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function x(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function O(e){return e.exception?.values?.[0]}var A=n(20144),R=n(7313),P=n(75330),N=n(95200),M=n(71111),D=n(72808);function L(e,t){const n=t??function(e){return j().get(e)}(e)??[];if(0===n.length)return;const r=e.getOptions(),i=function(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=(0,M.SB)(r)),(0,D.h4)(i,[(o=e,[{type:"log",item_count:o.length,content_type:"application/vnd.sentry.items.log+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,e.getDsn());j().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function j(){return(0,N.BY)("clientToLogBufferMap",()=>new WeakMap)}function U(e,t){const n=t??function(e){return F().get(e)}(e)??[];if(0===n.length)return;const r=e.getOptions(),i=function(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=(0,M.SB)(r)),(0,D.h4)(i,[(o=e,[{type:"trace_metric",item_count:o.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:o}])]);var o}(n,r._metadata,r.tunnel,e.getDsn());F().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function F(){return(0,N.BY)("clientToMetricBufferMap",()=>new WeakMap)}var $=n(59328),z=n(31158),B=n(17786);function H(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}const W=Symbol.for("SentryBufferFullError");function q(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,B.xg)(W);const i=r();return t.add(i),i.then(()=>n(i),()=>n(i)),i},drain:function(e){if(!t.size)return(0,B.XW)(!0);const n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;const r=[n,new Promise(t=>H(setTimeout(()=>t(!1),e)))];return Promise.race(r)}}}var V=n(36227);const K=64;
2var Y=n(93177),G=n(64208),J=n(45734),X=n(91773),Z=n(49158),Q=n(9123),ee=n(84347),te=n(5915);const ne="Not capturing exception because it's already been captured.",re="Discarded session because of missing or non-string release",ie=Symbol.for("SentryInternalError"),oe=Symbol.for("SentryDoNotSendEventError");function se(e){return{message:e,[ie]:!0}}function ae(e){return{message:e,[oe]:!0}}function ce(e){return!!e&&"object"==typeof e&&ie in e}function ue(e){return!!e&&"object"==typeof e&&oe in e}function le(e,t,n,r,i){let o,s=0,a=!1;e.on(n,()=>{s=0,clearTimeout(o),a=!1}),e.on(t,t=>{s+=r(t),s>=8e5?i(e):a||(a=!0,o=H(setTimeout(()=>{i(e)},5e3)))}),e.on("flush",()=>{i(e)})}class de{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=q(e.transportOptions?.bufferSize??K),e.dsn?this._dsn=(0,M.AD)(e.dsn):i.T&&o.Yz.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,A.Z)(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&le(this,"afterCaptureLog","flushLogs",ge,L),(this._options.enableMetrics??this._options._experiments?.enableMetrics??1)&&le(this,"afterCaptureMetric","flushMetrics",me,U)}captureException(e,t,n){const r=(0,d.eJ)();if((0,d.GR)(e))return i.T&&o.Yz.log(ne),r;const s={event_id:r,...t};return this._process(()=>this.eventFromException(e,s).then(e=>this._captureEvent(e,s,n)).then(e=>e),"error"),s.event_id}captureMessage(e,t,n,r){const i={event_id:(0,d.eJ)(),...n},o=(0,G.NF)(e)?e:String(e),s=(0,G.sO)(e),a=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>a.then(e=>this._captureEvent(e,i,r)),s?"unknown":"error"),i.event_id}captureEvent(e,t,n){const r=(0,d.eJ)();if(t?.originalException&&(0,d.GR)(t.originalException))return i.T&&o.Yz.log(ne),r;const s={event_id:r,...t},a=e.sdkProcessingMetadata||{},c=a.capturedSpanScope,u=a.capturedSpanIsolationScope,l=he(e.type);return this._process(()=>this._captureEvent(e,s,c||n,u),l),s.event_id}captureSession(e){this.sendSession(e),(0,$.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;this.emit("flush");const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){L(this);const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];u(this,e,this._integrations),t||c(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=(0,P.V7)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=(0,D.W3)(n,(0,D.bm)(e));this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:n=R.U}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(i.T&&o.Yz.warn(re));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(i.T&&o.Yz.warn(re));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=(0,P.LE)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;i.T&&o.Yz.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];
2n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return i.T&&o.Yz.error("Error while sending envelope:",e),{}}return i.T&&o.Yz.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t&&u(e,t,n)}),n}(this,e),c(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const i=t.exception?.values;if(i){r=!0,n=!1;for(const e of i)if(!1===e.mechanism?.handled){n=!0;break}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,$.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,Z.mG)(i,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,v.vn)(n)},...e.contexts};const r=(0,z.ao)(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=(0,v.o5)(),r=(0,v.rm)()){return i.T&&pe(e)&&o.Yz.log(`Captured error event \`${l(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{i.T&&(ue(e)?o.Yz.log(e.message):ce(e)?o.Yz.warn(e.message):o.Yz.warn(e))})}_processEvent(e,t,n,r){const i=this.getOptions(),{sampleRate:o}=i,s=fe(e),a=pe(e),c=`before send for type \`${e.type||"error"}\``,u=void 0===o?void 0:(0,X.i)(o);if(a&&"number"==typeof u&&(0,Q.hY)()>u)return this.recordDroppedEvent("sample_rate","error"),(0,B.xg)(ae(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const l=he(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",l),ae("An event processor returned `null`, will not send event.");if(t.data&&!0===t.data.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s,ignoreSpans:a}=t;let c=n;if(pe(c)&&i)return i(c,r);if(fe(c)){if(s||a){const t=function(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s?.[E.E1],exclusive_time:s?.[E.jG],measurements:e.measurements,is_segment:!0}}(c);if(a?.length&&(0,ee.e)(t,a))return null;if(s){const e=s(t);e?c=(0,J.h)(n,{type:"transaction",timestamp:(u=e).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[E.E1]:u.profile_id},...u.exclusive_time&&{[E.jG]:u.exclusive_time}}}},measurements:u.measurements}):(0,te.xl)()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(a?.length&&(0,ee.e)(e,a))(0,ee.R)(n,e);else if(s){const n=s(e);n?t.push(n):((0,te.xl)(),t.push(e))}else t.push(e);const r=c.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),c.spans=t}}if(o){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(c,r)}}var u;return c}(this,i,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,G.Qg)(e))return e.then(e=>{if(!(0,G.Qd)(e)&&null!==e)throw se(n);return e},e=>{throw se(`${t} rejected with ${e}`)});if(!(0,G.Qd)(e)&&null!==e)throw se(n);return e}(n,c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",l),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw ae(`${c} returned \`null\`, will not send event.`)}
2const o=n.getSession()||r.getSession();if(a&&o&&this._updateSessionFromEvent(o,i),s){const e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const u=i.transaction_info;if(s&&u&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...u,source:e}}return this.sendEvent(i,t),i}).then(null,e=>{if(ue(e)||ce(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),se(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===W&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){i.T&&o.Yz.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(i.T&&o.Yz.log("No outcomes to send"));if(!this._dsn)return void(i.T&&o.Yz.log("No dsn provided, will not send outcomes"));i.T&&o.Yz.log("Sending outcomes:",e);const t=function(e,t){const n=[{type:"client_report"},{timestamp:(0,Y.lu)(),discarded_events:e}];return(0,D.h4)(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&(0,M.SB)(this._dsn));this.sendEnvelope(t)}}function he(e){return"replay_event"===e?"replay":e||"error"}function pe(e){return void 0===e.type}function fe(e){return"transaction"===e.type}function me(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+ye(e.attributes)}function ge(e){let t=0;return e.message&&(t+=2*e.message.length),t+ye(e.attributes)}function ye(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ve(e[0]):(0,G.sO)(e)?t+=ve(e):t+=100}),t}function ve(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}var _e=n(50925),be=n(43674);function we(e,t,n=[t],r="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:be.M})),i.version=be.M)}function Se(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var Ee=n(94837);function ke(e){return function(e){return(0,G.bJ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Te(e,t){const n=Ce(e,t),r={type:Ae(t),value:Re(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Ie(e,t){return{exception:{values:[Te(e,t)]}}}function Ce(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&xe.test(e.message)?1:0}(t),i=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,i)}catch{}return[]}const xe=/Minified React error #\d+;/i;function Oe(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Ae(e){const t=e?.name;return!t&&Oe(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function Re(e){const t=e?.message;return Oe(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?ke(t.error):ke(e):"No error message"}function Pe(e,t,n,r,i){let o;if((0,G.T2)(t)&&t.error)return Ie(e,t.error);if((0,G.BD)(t)||(0,G.W6)(t)){const i=t;if("stack"in t)o=Ie(e,t);else{const t=i.name||((0,G.BD)(i)?"DOMError":"DOMException"),s=i.message?`${t}: ${i.message}`:t;o=Ne(e,s,n,r),(0,d.gO)(o,s)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return(0,G.bJ)(t)?Ie(e,t):(0,G.Qd)(t)||(0,G.xH)(t)?(o=function(e,t,n,r){const i=(0,v.KU)(),o=i?.getOptions().normalizeDepth,s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:(0,Ee.cd)(t,o)};if(s)return{exception:{values:[Te(e,s)]},extra:a};const c={exception:{values:[{type:(0,G.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Me(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=Ce(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,i),(0,d.M6)(o,{synthetic:!0}),o):(o=Ne(e,t,n,r),(0,d.gO)(o,`${t}`,void 0),(0,d.M6)(o,{synthetic:!0}),o)}function Ne(e,t,n,r){const i={};if(r&&n){const r=Ce(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,d.M6)(i,{synthetic:!0})}
2if((0,G.NF)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Me(e,{isUnhandledRejection:t}){const n=(0,_.HF)(e),r=t?"promise rejection":"exception";return(0,G.T2)(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:(0,G.xH)(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var De=n(54386);class Le extends de{constructor(e){const t=(n=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:De.jf.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;we(t,"browser",["browser"],De.jf.SENTRY_SDK_SOURCE||(0,_e.e)()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:r,sendClientReports:i,enableLogs:o,_experiments:s,enableMetrics:a}=this._options,c=a??s?.enableMetrics??!0;De.jf.document&&(i||o||c)&&De.jf.document.addEventListener("visibilitychange",()=>{"hidden"===De.jf.document.visibilityState&&(i&&this._flushOutcomes(),o&&L(this),c&&U(this))}),r&&this.on("beforeSendSession",Se)}eventFromException(e,t){return function(e,t,n,r){const i=Pe(e,t,n?.syntheticException||void 0,r);return(0,d.M6)(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),(0,B.XW)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=Ne(e,t,r?.syntheticException||void 0,i);return o.level=n,r?.event_id&&(o.event_id=r.event_id),(0,B.XW)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}var je=n(18845),Ue=n(13235);function Fe(){"console"in je.O&&o.Ow.forEach(function(e){e in je.O.console&&(0,_.GS)(je.O.console,e,function(t){return o.Z9[e]=t,function(...t){const n={args:t,level:e};(0,Ue.aj)("console",n);const r=o.Z9[e];r?.apply(je.O.console,t)}})})}var $e=n(51564),ze=n(6810),Be=n(57726),He=n(27879);function We(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var qe=n(67607),Ve=n(61221),Ke=n(35947),Ye=n(85761),Ge=n(62745);const Je=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&function(e){const t="console";(0,Ue.s5)(t,e),(0,Ue.AS)(t,Fe)}(function(e){return function(t){if((0,v.KU)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(0,He.t)(t.level),message:(0,h.gt)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,h.gt)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,ze.Z)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(0,Ve.i)(function(e,t){return function(n){if((0,v.KU)()!==e)return;let r,i,s="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>1024&&(Ge.T&&o.Yz.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=(0,Be.Hd)(t,{keyAttrs:s,maxStringLength:a}),i=(0,Be.xE)(t)}catch{r="<unknown>"}if(0===r.length)return;const c={category:`ui.${n.name}`,message:r};i&&(c.data={"ui.component_name":i}),(0,ze.Z)(c,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(0,Ke.Mn)(function(e){return function(t){if((0,v.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Ke.Er];if(!n||!r||!i)return;const{method:o,url:s,status_code:a,body:c}=i,u={method:o,url:s,status_code:a},l={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:We(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),(0,ze.Z)(d,l)}}(e)),t.fetch&&(0,$e.ur)(function(e){return function(t){if((0,v.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;
2if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},s={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,o),(0,ze.Z)(s,o)}else{const i=t.response,o={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const s={input:t.args,response:i,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:o,type:"http",level:We(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),(0,ze.Z)(a,s)}}}(e)),t.history&&(0,Ye._)(function(e){return function(t){if((0,v.KU)()!==e)return;let n=t.from,r=t.to;const i=(0,qe.Dl)(De.jf.location.href);let o=n?(0,qe.Dl)(n):void 0;const s=(0,qe.Dl)(r);o?.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),(0,ze.Z)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,v.KU)()===e&&(0,ze.Z)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,d.$X)(t)},{event:t})}}(e))}}},Xe=["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"],Ze=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,_.GS)(De.jf,"setTimeout",Qe),t.setInterval&&(0,_.GS)(De.jf,"setInterval",Qe),t.requestAnimationFrame&&(0,_.GS)(De.jf,"requestAnimationFrame",et),t.XMLHttpRequest&&"XMLHttpRequest"in De.jf&&(0,_.GS)(XMLHttpRequest.prototype,"send",tt);const e=t.eventTarget;e&&(Array.isArray(e)?e:Xe).forEach(e=>function(e,t){const n=De.jf,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,_.GS)(r,"addEventListener",function(n){return function(r,i,o){try{"function"==typeof i.handleEvent&&(i.handleEvent=(0,De.LV)(i.handleEvent,{mechanism:{data:{handler:(0,T.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,r,i),n.apply(this,[r,(0,De.LV)(i,{mechanism:{data:{handler:(0,T.qQ)(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),(0,_.GS)(r,"removeEventListener",function(e){return function(t,n,r){try{const i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}(e,t))}}};function Qe(e){return function(...t){const n=t[0];return t[0]=(0,De.LV)(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,T.qQ)(e)}`}}),e.apply(this,t)}}function et(e){return function(t){return e.apply(this,[(0,De.LV)(t,{mechanism:{data:{handler:(0,T.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function tt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,_.GS)(n,e,function(t){const n={mechanism:{data:{handler:(0,T.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,_.sp)(t);return r&&(n.mechanism.data.handler=(0,T.qQ)(r)),(0,De.LV)(t,n)})}),e.apply(this,t)}}const nt=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===De.jf.document)return void(Ge.T&&o.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));(0,r.J0)({ignoreDuration:!0}),(0,r.J5)();const e=(0,v.rm)();let n=e.getUser();e.addScopeListener(e=>{const t=e.getUser();
2n?.id===t?.id&&n?.ip_address===t?.ip_address||((0,r.J5)(),n=t)}),"route"===t&&(0,Ye._)(({from:e,to:t})=>{e!==t&&((0,r.J0)({ignoreDuration:!0}),(0,r.J5)())})}}},rt=()=>({name:"CultureContext",preprocessEvent(e){const t=function(){try{const e=De.jf.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}});var it=n(80491),ot=n(99411);const st=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){(0,it.L)(t=>{const{stackParser:n,attachStacktrace:i}=ct();if((0,v.KU)()!==e||(0,De.jN)())return;const{msg:o,url:s,line:a,column:c,error:u}=t,l=function(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=function(e){if((0,G.Kg)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,qe.zm)(e,!1)}>`:e}(t)??(0,Be.$N)();return 0===c.length&&c.push({colno:u,filename:d,function:T.yF,in_app:!0,lineno:l}),e}(Pe(n,u||o,void 0,i,!1),s,a,c);l.level="error",(0,r.r)(l,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),at("onerror")),t.onunhandledrejection&&(function(e){(0,ot.r)(t=>{const{stackParser:n,attachStacktrace:i}=ct();if((0,v.KU)()!==e||(0,De.jN)())return;const o=function(e){if((0,G.sO)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),s=(0,G.sO)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Pe(n,o,void 0,i,!0);s.level="error",(0,r.r)(s,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),at("onunhandledrejection"))}}};function at(e){Ge.T&&o.Yz.log(`Global Handler attached: ${e}`)}function ct(){const e=(0,v.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const ut=()=>({name:"HttpContext",preprocessEvent(e){if(!De.jf.navigator&&!De.jf.location&&!De.jf.document)return;const t=(0,De.AP)(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}});function lt(e,t,n,r,i,o){if(!i.exception?.values||!o||!(0,G.tH)(o.originalException,Error))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=dt(e,t,r,o.originalException,n,i.exception.values,s,0))}function dt(e,t,n,r,i,o,s,a){if(o.length>=n+1)return o;let c=[...o];if((0,G.tH)(r[i],Error)){pt(s,a,r);const o=e(t,r[i]),u=c.length;ft(o,i,u,a),c=dt(e,t,n,r[i],i,[o,...c],o,u)}return ht(r)&&r.errors.forEach((o,u)=>{if((0,G.tH)(o,Error)){pt(s,a,r);const l=e(t,o),d=c.length;ft(l,`errors[${u}]`,d,a),c=dt(e,t,n,o,i,[l,...c],l,d)}}),c}function ht(e){return Array.isArray(e.errors)}function pt(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...ht(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function ft(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const mt=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){lt(Te,i.getOptions().stackParser,n,t,e,r)}}};function gt(e,t,n,r){const i={filename:e,function:"<anonymous>"===t?T.yF:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const yt=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,vt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_t=/\((\S*)(?::(\d+))(?::(\d+))\)/,bt=/at (.+?) ?\(data:(.+?),/,wt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,St=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Et=[[30,e=>{const t=e.match(bt);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=yt.exec(e);if(n){const[,e,t,r]=n;return gt(e,T.yF,+t,+r)}const r=vt.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=_t.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=Tt(r[1]||T.yF,r[2]);return gt(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],[50,e=>{const t=wt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=St.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||T.yF;return[n,e]=Tt(n,e),gt(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]],kt=(0,T.gd)(...Et),Tt=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:T.yF,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var It=n(3594);const Ct=40;function xt(e,t=(0,It.qd)("fetch")){let n=0,r=0;return function(e,t,n=q(e.bufferSize||K)){let r={};return{send:function(s){const a=[];if((0,D.yH)(s,(t,n)=>{const i=(0,D.zk)(n);(0,V.Jz)(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t)}),0===a.length)return Promise.resolve({});const c=(0,D.h4)(s[0],a),u=t=>{(0,D.hP)(c,["client_report"])?i.T&&o.Yz.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`):(0,D.yH)(c,(n,r)=>{e.recordDroppedEvent(t,(0,D.zk)(r))})};return n.add(()=>t({body:(0,D.bN)(c)}).then(e=>413===e.statusCode?(i.T&&o.Yz.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),e):(i.T&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&o.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=(0,V.wq)(r,e),e),e=>{throw u("network_error"),i.T&&o.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
2{if(e===W)return i.T&&o.Yz.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}(e,async function(i){const o=i.body.length;n+=o,r++;const s={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const n=await t(e.url,s);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw(0,It.y7)("fetch"),e}finally{n-=o,r--}},q(e.bufferSize||Ct))}function Ot(e={}){const t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===De.jf.window)return!1;const e=De.jf;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=(0,Be.$N)();return!(De.jf===De.jf.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>n.startsWith(`${e}://`)))}()&&(Ge.T&&(0,o.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0);let n=null==e.defaultIntegrations?[m(),S(),k(),Ze(),Je(),st(),mt(),I(),ut(),rt(),nt()]:e.defaultIntegrations;const r={...e,enabled:!t&&e.enabled,stackParser:(0,T.vk)(e.stackParser||kt),integrations:a({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||xt};return function(e,t){!0===t.debug&&(i.T?o.Yz.enable():(0,o.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,v.o5)().update(t.initialScope);const n=new e(t);return function(e){(0,v.o5)().setClient(e)}(n),n.init(),n}(Le,r)}var At=n(96540);function Rt(e){const t={...e};return we(t,"react"),(0,r.o)("react",{version:At.version}),Ot(t)}},50411:(e,t,n)=>{var r;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},50442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,s.default)((0,i.default)(e,(null==t?void 0:t.htmlparser2)||c),t):[]};var i=r(n(92471));t.htmlToDOM=i.default;var o=r(n(20840));t.attributesToProps=o.default;var s=r(n(10308));t.domToReact=s.default;var a=n(41141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var c={lowerCaseAttributeNames:!1}},50925:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{Z:()=>r,e:()=>i})},51133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),o="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(19788))},51564:(e,t,n)=>{"use strict";n.d(t,{B$:()=>d,ur:()=>l});var r=n(57968),i=n(64208),o=n(46403),s=n(47040),a=n(93177),c=n(18845),u=n(13235);function l(e,t){const n="fetch";(0,u.s5)(n,e),(0,u.AS)(n,()=>h(void 0,t))}function d(e){const t="fetch-body-resolved";(0,u.s5)(t,e),(0,u.AS)(t,()=>h(p))}function h(e,t=!1){t&&!(0,s.m7)()||(0,o.GS)(c.O,"fetch",function(t){return function(...n){const s=new Error,{method:l,url:d}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:m(t),method:f(n,"method")?String(n.method).toUpperCase():(0,i.ks)(t)&&f(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:m(t),method:f(t,"method")?String(t.method).toUpperCase():"GET"}}(n),h={args:n,fetchData:{method:l,url:d},startTimestamp:1e3*(0,a.zf)(),virtualError:s,headers:g(n)};return e||(0,u.aj)("fetch",{...h}),t.apply(c.O,n).then(async t=>(e?e(t):(0,u.aj)("fetch",{...h,endTimestamp:1e3*(0,a.zf)(),response:t}),t),e=>{(0,u.aj)("fetch",{...h,endTimestamp:1e3*(0,a.zf)(),error:e}),(0,i.bJ)(e)&&void 0===e.stack&&(e.stack=s.stack,(0,o.my)(e,"framesToPop",1));const t=(0,r.KU)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(h.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,o.my)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}function p(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4);let o=!0;for(;o;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:i}=await r.read();clearTimeout(e),i&&(t(),o=!1)}catch{o=!1}
2finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}(t,()=>{(0,u.aj)("fetch-body-resolved",{endTimestamp:1e3*(0,a.zf)(),response:e})})}function f(e,t){return!!e&&"object"==typeof e&&!!e[t]}function m(e){return"string"==typeof e?e:e?f(e,"url")?e.url:e.toString?e.toString():"":""}function g(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,i.ks)(t))return new Headers(t.headers)}catch{}}},51685:(e,t,n)=>{"use strict";n.d(t,{RV:()=>h,gd:()=>a,nY:()=>p,qQ:()=>d,vk:()=>c,yF:()=>i});const r=50,i="?",o=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,a=0)=>{const c=[],l=e.split("\n");for(let e=n;e<l.length;e++){let n=l[e];n.length>1024&&(n=n.slice(0,1024));const i=o.test(n)?n.replace(o,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){c.push(t);break}}if(c.length>=r+a)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),s.test(u(t).function||"")&&(t.pop(),s.test(u(t).function||"")&&t.pop()),t.slice(0,r).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||i}))}(c.slice(a))}}function c(e){return Array.isArray(e)?a(...e):e}function u(e){return e[e.length-1]||{}}const l="<anonymous>";function d(e){try{return e&&"function"==typeof e&&e.name||l}catch{return l}}function h(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function p(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}},52098:(e,t,n)=>{"use strict";var r,i=n(96540),o=(r=i)&&"object"==typeof r&&"default"in r?r.default:r;function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var c,u=[];function l(){c=e(u.map(function(e){return e.props})),d.canUseDOM?t(c):n&&(c=n(c))}var d=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return c},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,u=[],e};var s=i.prototype;return s.UNSAFE_componentWillMount=function(){u.push(this),l()},s.componentDidUpdate=function(){l()},s.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),l()},s.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return s(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),s(d,"canUseDOM",a),d}}},54090:(e,t,n)=>{"use strict";var r=n(78840),i=n(78461),o=n(81936),s=n(63424),a=n(8674),c=n(5125);const u=function
vendor: 12,062 bytes, line 2
2(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registered for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is incorrect, malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend.","unsupported-password-policy-schema-version":"The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.","password-does-not-meet-requirements":"The password does not meet the requirements.","invalid-hosting-link-domain":"The provided Hosting link domain is not configured in Firebase Hosting or is not owned by the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`)."}},
2l=function(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},d=new o.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),h=new s.Vy("@firebase/auth");function p(e,...t){h.logLevel<=s.$b.ERROR&&h.error(`Auth (${i.SDK_VERSION}): ${e}`,...t)}function f(e,...t){throw _(e,...t)}function m(e,...t){return _(e,...t)}function g(e,t,n){const r=Object.assign(Object.assign({},l()),{[t]:n});return new o.FA("auth","Firebase",r).create(t,{appName:e.name})}function y(e){return g(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function v(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&f(e,"argument-error"),g(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function _(e,...t){if("string"!=typeof e){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return d.create(e,...t)}function b(e,t,...n){if(!e)throw _(t,...n)}function w(e){const t="INTERNAL ASSERTION FAILED: "+e;throw p(t),new Error(t)}function S(e,t){e||w(t)}function E(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function k(){return"http:"===T()||"https:"===T()}function T(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class I{constructor(e,t){this.shortDelay=e,this.longDelay=t,S(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,o.jZ)()||(0,o.lV)()}get(){return"undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(k()||(0,o.sr)()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function C(e,t){S(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}class x{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void w("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void w("Could not find Headers implementation, make sure you call FetchProvi
2der.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void w("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const O={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},A=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],R=new I(3e4,6e4);function P(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function N(e,t,n,r,i={}){return M(e,i,async()=>{let i={},s={};r&&("GET"===t?s=r:i={body:JSON.stringify(r)});const a=(0,o.Am)(Object.assign({key:e.config.apiKey},s)).slice(1),c=await e._getAdditionalHeaders();c["Content-Type"]="application/json",e.languageCode&&(c["X-Firebase-Locale"]=e.languageCode);const u=Object.assign({method:t,headers:c},i);return(0,o.c1)()||(u.referrerPolicy="no-referrer"),e.emulatorConfig&&(0,o.zJ)(e.emulatorConfig.host)&&(u.credentials="include"),x.fetch()(await L(e,e.config.apiHost,n,a),u)})}async function M(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},O),t);try{const t=new U(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw F(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const t=i.ok?o.errorMessage:o.error.message,[n,s]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw F(e,"credential-already-in-use",o);if("EMAIL_EXISTS"===n)throw F(e,"email-already-in-use",o);if("USER_DISABLED"===n)throw F(e,"user-disabled",o);const a=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(s)throw g(e,a,s);f(e,a)}}catch(t){if(t instanceof o.g)throw t;f(e,"network-request-failed",{message:String(t)})}}async function D(e,t,n,r,i={}){const o=await N(e,t,n,r,i);return"mfaPendingCredential"in o&&f(e,"multi-factor-auth-required",{_serverResponse:o}),o}async function L(e,t,n,r){const i=`${t}${n}?${r}`,o=e,s=o.config.emulator?C(e.config,i):`${e.config.apiScheme}://${i}`;return A.includes(n)&&(await o._persistenceManagerAvailable,"COOKIE"===o._getPersistenceType())?o._getPersistence()._getFinalTarget(s).toString():s}function j(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class U{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>
2{this.timer=setTimeout(()=>t(m(this.auth,"network-request-failed")),R.get())})}}function F(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=m(e,t,r);return i.customData._tokenResponse=n,i}function $(e){return void 0!==e&&void 0!==e.getResponse}function z(e){return void 0!==e&&void 0!==e.enterprise}class B{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return j(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function H(e,t){return N(e,"GET","/v2/recaptchaConfig",P(e,t))}async function W(e,t){return N(e,"POST","/v1/accounts:lookup",t)}function q(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}function V(e){return 1e3*Number(e)}function K(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return p("JWT malformed, contained fewer than 3 sections"),null;try{const e=(0,o.u)(n);return e?JSON.parse(e):(p("Failed to decode base64 JWT payload"),null)}catch(e){return p("Caught error parsing JWT payload as JSON",null==e?void 0:e.toString()),null}}function Y(e){const t=K(e);return b(t,"internal-error"),b(void 0!==t.exp,"internal-error"),b(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function G(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof o.g&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}class J{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void("auth/network-request-failed"===(null==e?void 0:e.code)&&this.schedule(!0))}this.schedule()}}class X{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=q(this.lastLoginAt),this.creationTime=q(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Z(e){var t;const n=e.auth,r=await e.getIdToken(),i=await G(e,W(n,{idToken:r}));b(null==i?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const s=(null===(t=o.providerUserInfo)||void 0===t?void 0:t.length)?Q(o.providerUserInfo):[],a=(c=e.providerData,u=s,[...c.filter(e=>!u.some(t=>t.providerId===e.providerId)),...u]);var c,u;const l=e.isAnonymous,d=!(e.email&&o.passwordHash||(null==a?void 0:a.length)),h=!!l&&d,p={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new X(o.createdAt,o.lastLoginAt),isAnonymous:h};Object.assign(e,p)}function Q(e){return e.map(e=>{var{providerId:t}=e,n=(0,a.__rest)(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}class ee{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){b(e.idToken,"internal-error"),b(void 0!==e.idToken,"internal-error"),b(void 0!==e.refreshToken,"internal-error");
2const t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):Y(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){b(0!==e.length,"internal-error");const t=Y(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(b(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await async function(e,t){const n=await M(e,{},async()=>{const n=(0,o.Am)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,s=await L(e,r,"/v1/token",`key=${i}`),a=await e._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";const c={method:"POST",headers:a,body:n};return e.emulatorConfig&&(0,o.zJ)(e.emulatorConfig.host)&&(c.credentials="include"),x.fetch()(s,c)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,o=new ee;return n&&(b("string"==typeof n,"internal-error",{appName:e}),o.refreshToken=n),r&&(b("string"==typeof r,"internal-error",{appName:e}),o.accessToken=r),i&&(b("number"==typeof i,"internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new ee,this.toJSON())}_performRefresh(){return w("not implemented")}}function te(e,t){b("string"==typeof e||void 0===e,"internal-error",{appName:t})}class ne{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=(0,a.__rest)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new J(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new X(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await G(this,this.stsTokenManager.getToken(this.auth,e));return b(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e,t=!1){const n=(0,o.Ku)(e),r=await n.getIdToken(t),i=K(r);b(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s="object"==typeof i.firebase?i.firebase:void 0,a=null==s?void 0:s.sign_in_provider;return{claims:i,token:r,authTime:q(V(i.auth_time)),issuedAtTime:q(V(i.iat)),expirationTime:q(V(i.exp)),signInProvider:a||null,signInSecondFactor:(null==s?void 0:s.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=(0,o.Ku)(e);await Z(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(b(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new ne(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){b(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Z(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,i._isFirebaseServerApp)(this.auth.app))return Promise.reject(y(this.auth));const e=await this.getIdToken();return await G(this,async function(e,t){return N(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
vendor: 12,401 bytes, line 2
2nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,o,s,a,c,u;const l=null!==(n=t.displayName)&&void 0!==n?n:void 0,d=null!==(r=t.email)&&void 0!==r?r:void 0,h=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,p=null!==(o=t.photoURL)&&void 0!==o?o:void 0,f=null!==(s=t.tenantId)&&void 0!==s?s:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(c=t.createdAt)&&void 0!==c?c:void 0,y=null!==(u=t.lastLoginAt)&&void 0!==u?u:void 0,{uid:v,emailVerified:_,isAnonymous:w,providerData:S,stsTokenManager:E}=t;b(v&&E,e,"internal-error");const k=ee.fromJSON(this.name,E);b("string"==typeof v,e,"internal-error"),te(l,e.name),te(d,e.name),b("boolean"==typeof _,e,"internal-error"),b("boolean"==typeof w,e,"internal-error"),te(h,e.name),te(p,e.name),te(f,e.name),te(m,e.name),te(g,e.name),te(y,e.name);const T=new ne({uid:v,auth:e,email:d,emailVerified:_,displayName:l,isAnonymous:w,photoURL:p,phoneNumber:h,tenantId:f,stsTokenManager:k,createdAt:g,lastLoginAt:y});return S&&Array.isArray(S)&&(T.providerData=S.map(e=>Object.assign({},e))),m&&(T._redirectEventId=m),T}static async _fromIdTokenResponse(e,t,n=!1){const r=new ee;r.updateFromServerResponse(t);const i=new ne({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Z(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];b(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?Q(r.providerUserInfo):[],o=!(r.email&&r.passwordHash||(null==i?void 0:i.length)),s=new ee;s.updateFromIdToken(n);const a=new ne({uid:r.localId,auth:e,stsTokenManager:s,isAnonymous:o}),c={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new X(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash||(null==i?void 0:i.length))};return Object.assign(a,c),a}}const re=new Map;function ie(e){S(e instanceof Function,"Expected a class definition");let t=re.get(e);return t?(S(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,re.set(e,t),t)}class oe{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}oe.type="NONE";const se=oe;function ae(e,t,n){return`firebase:${e}:${t}:${n}`}class ce{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=ae(this.userKey,r.apiKey,i),this.fullPersistenceKey=ae("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if("string"==typeof e){const t=await W(this.auth,{idToken:e}).catch(()=>{});return t?ne._fromGetAccountInfoResponse(this.auth,t,e):null}return ne._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new ce(ie(se),e,n);const r=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e);let i=r[0]||ie(se);const o=ae(n,e.config.apiKey,e.name);let s=null;for(const n of t)try{const t=await n._get(o);if(t){let r;if("string"==typeof t){const n=await W(e,{idToken:t}).catch(()=>{});if(!n)break;r=await ne._fromGetAccountInfoResponse(e,n,t)}else r=ne._fromJSON(e,t);n!==i&&(s=r),i=n;break}}catch(e){}const a=r.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&a.length?(i=a[0],s&&await i._set(o,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(o)}catch(e){}})),new ce(i,e,n)):new ce(i,e,n)}}function ue(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(pe(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(le(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(me(t))return"Blackberry";if(ge(t))return"Webos";if(de(t))return"Safari";if((t.includes("chrome/")||he(t))&&!t.includes("edge/"))return"Chrome";if(fe(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null==n?void 0:n.length))return n[1]}return"Other"}function le(e=(0,o.ZQ)()){return/firefox\//i.test(e)}function de(e=(0,o.ZQ)()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function he(e=(0,o.ZQ)()){return/crios\//i.test(e)}function pe(e=(0,o.ZQ)()){return/iemobile/i.test(e)}function fe(e=(0,o.ZQ)()){return/android/i.test(e)}function me(e=(0,o.ZQ)()){return/blackberry/i.test(e)}function ge(e=(0,o.ZQ)()){return/webos/i.test(e)}function ye(e=(0,o.ZQ)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function ve(e=(0,o.ZQ)()){return ye(e)||fe(e)||ge(e)||me(e)||/windows phone/i.test(e)||pe(e)}function _e(e,t=[]){let n;switch(e){case"Browser":n=ue((0,o.ZQ)());break;case"Worker":n=`${ue((0,o.ZQ)())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${i.SDK_VERSION}/${r}`}class be{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise((n,r)=>{try{n(e(t))}catch(e){r(e)}});n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(e){t.reverse();for(const e of t)try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==e?void 0:e.message})}}}class we{constructor(e){var t,n,r,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=o.minPasswordLength)&&void 0!==t?t:6,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),void 0!==o.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),void 0!==o.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),void 0!==o.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),void 0!==o.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,o,s;const a={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,a),this.validatePasswordCharacterOptions(e,a),a.isValid&&(a.isValid=null===(t=a.meetsMinPasswordLength)||void 0===t||t),a.isValid&&(a.isValid=null===(n=a.meetsMaxPasswordLength)||void 0===n||n),a.isValid&&(a.isValid=null===(r=a.containsLowercaseLetter)||void 0===r||r),a.isValid&&(a.isValid=null===(i=a.containsUppercaseLetter)||void 0===i||i),a.isValid&&(a.isValid=null===(o=a.containsNumericCharacter)||void 0===o||o),a.isValid&&(a.isValid=null===(s=a.containsNonAlphanumericCharacter)||void 0===s||s),a}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class Se{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new ke(this),this.idTokenSubscription=new ke(this),this.beforeStateQueue=new be(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=d,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=ie(t)),this._initializationPromise=this.queue(async()=>{var n,r,i;if(!this._deleted&&(this.persistenceManager=await ce.create(this,e),null===(n=this._resolvePersistenceManagerAvailable)||void 0===n||n.call(this),!this._deleted)){if(null===(r=this._popupRedirectResolver)||void 0===r?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(i=this.currentUser)||void 0===i?void 0:i.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await W(this,{idToken:e}),n=await ne._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(e){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",e),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if((0,i._isFirebaseServerApp)(this.app)){const e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,o=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,i=null==r?void 0:r._redirectEventId,s=await this.tryRedirectSignIn(e);n&&n!==i||!(null==s?void 0:s.user)||(r=s.user,o=!0)}if(!r)return this.directlySetCurrentUser(null);
2if(!r._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(r)}catch(e){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return b(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(e){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Z(e)}catch(e){if("auth/network-request-failed"!==(null==e?void 0:e.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,i._isFirebaseServerApp)(this.app))return Promise.reject(y(this));const t=e?(0,o.Ku)(e):null;return t&&b(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&b(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return(0,i._isFirebaseServerApp)(this.app)?Promise.reject(y(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,i._isFirebaseServerApp)(this.app)?Promise.reject(y(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(ie(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e,t={}){return N(e,"GET","/v2/passwordPolicy",P(e,t))}(this),t=new we(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new o.FA("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return N(e,"POST","/v2/accounts:revokeToken",P(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&ie(e)||this._popupRedirectResolver;b(t,this,"argument-error"),this.redirectPersistenceManager=await ce.create(this,[ie(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue(async()=>{}),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"==typeof t?t:t.next.bind(t);let o=!1;const s=this._isInitialized?Promise.resolve():this._initializationPromise;if(b(s,this,"internal-error"),s.then(()=>{o||i(this.currentUser)}),"function"==typeof t){const i=e.addObserver(t,n,r);return()=>{o=!0,i()}}{const n=e.addObserver(t);return()=>{o=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return b(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=_e(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;if((0,i._isFirebaseServerApp)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null==t?void 0:t.error)&&function(e,...t){h.logLevel<=s.$b.WARN&&h.warn(`Auth (${i.SDK_VERSION}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}function Ee(e){return(0,o.Ku)(e)}class ke{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,o.tD)(e=>this.observer=e)}get next(){return b(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Te={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Ie(e){return Te.loadJS(e)}function Ce(e){return`__${e}${Math.floor(1e6*Math.random())}`}const xe=1e12;class Oe{constructor(e){this.auth=e,this.counter=xe,this._widgets=new Map}render(e,t){const n=this.counter;return this._widgets.set(n,new Pe(e,this.auth.name,t||{})),this.counter++,n}reset(e){var t;const n=e||xe;null===(t=this._widgets.get(n))||void 0===t||t.delete(),this._widgets.delete(n)}getResponse(e){var t;const n=e||xe;return(null===(t=this._widgets.get(n))||void 0===t?void 0:t.getResponse())||""}async execute(e){var t;const n=e||xe;return null===(t=this._widgets.get(n))||void 0===t||t.execute(),""}}class Ae{constructor(){this.enterprise=new Re}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class Re{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class Pe{constructor(e,t,n){this.params=n,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const r="string"==typeof e?document.getElementById(e):e;b(r,"argument-error",{appName:t}),this.container=r,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout(()=>{this.responseToken=function(){const e=[],t="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let n=0;n<50;n++)e.push(t.charAt(Math.floor(62*Math.random())));return e.join("")}();const{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch(e){}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(e){}this.isVisible&&this.execute()},6e4)},500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const Ne="NO_RECAPTCHA";class Me{constructor(e){this.type="recaptcha-enterprise",this.auth=Ee(e)}async verify(e="verify",t=!1){function n(t,n,r){const i=window.grecaptcha;z(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n(Ne)})}):r(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?(new Ae).execute("siteKey",{action:"verify"}):new Promise((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,n)=>
2{H(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(r=>{if(void 0!==r.recaptchaKey){const n=new B(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))}).catch(e=>{n(e)})})})(this.auth).then(i=>{if(!t&&z(window.grecaptcha))n(i,e,r);else{if("undefined"==typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=Te.recaptchaEnterpriseScript;0!==t.length&&(t+=i),Ie(t).then(()=>{n(i,e,r)}).catch(e=>{r(e)})}}).catch(e=>{r(e)})})}}async function De(e,t,n,r=!1,i=!1){const o=new Me(e);let s;if(i)s=Ne;else try{s=await o.verify(n)}catch(e){s=await o.verify(n,!0)}const a=Object.assign({},t);if("mfaSmsEnrollment"===n||"mfaSmsSignIn"===n){if("phoneEnrollmentInfo"in a){const e=a.phoneEnrollmentInfo.phoneNumber,t=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){const e=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:s}):Object.assign(a,{captchaResponse:s}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function Le(e,t,n,r,i){var o,s;if("EMAIL_PASSWORD_PROVIDER"===i){if(null===(o=e._getRecaptchaConfig())||void 0===o?void 0:o.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await De(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch(async i=>{if("auth/missing-recaptcha-token"===i.code){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const i=await De(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)})}if("PHONE_PROVIDER"===i){if(null===(s=e._getRecaptchaConfig())||void 0===s?void 0:s.isProviderEnabled("PHONE_PROVIDER")){const i=await De(e,t,n);return r(e,i).catch(async i=>{var o;if("AUDIT"===(null===(o=e._getRecaptchaConfig())||void 0===o?void 0:o.getProviderEnforcementState("PHONE_PROVIDER"))&&("auth/missing-recaptcha-token"===i.code||"auth/invalid-app-credential"===i.code)){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${n} flow.`);const i=await De(e,t,n,!1,!0);return r(e,i)}return Promise.reject(i)})}{const i=await De(e,t,n,!1,!0);return r(e,i)}}return Promise.reject(i+" provider is not supported.")}function je(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function Ue(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class Fe{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return w("not implemented")}_getIdTokenResponse(e){return w("not implemented")}_linkToIdToken(e,t){return w("not implemented")}_getReauthenticationResolver(e){return w("not implemented")}}async function $e(e,t){return N(e,"POST","/v1/accounts:resetPassword",P(e,t))}async function ze(e,t){return N(e,"POST","/v1/accounts:signUp",t)}async function Be(e,t){return D(e,"POST","/v1/accounts:signInWithPassword",P(e,t))}async function He(e,t){return N(e,"POST","/v1/accounts:sendOobCode",P(e,t))}async function We(e,t){return He(e,t)}async function qe(e,t){return He(e,t)}class Ve extends Fe{constructor(e,t,n,r=null){super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new Ve(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new Ve(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e;if((null==t?void 0:t.email)&&(null==t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return Le(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Be,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return async function(e,t){return D(e,"POST","/v1/accounts:signInWithEmailLink",P(e,t))}(e,{email:this._email,oobCode:this._password});default:f(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return Le(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",ze,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return async function(e,t){return D(e,"POST","/v1/accounts:signInWithEmailLink",P(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:f(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Ke(e,t){return D(e,"POST","/v1/accounts:signInWithIdp",P(e,t))}class Ye extends Fe{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new Ye(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
2(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):f("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=(0,a.__rest)(t,["providerId","signInMethod"]);if(!n||!r)return null;const o=new Ye(n,r);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){return Ke(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Ke(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Ke(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=(0,o.Am)(t)}return e}}async function Ge(e,t){return N(e,"POST","/v1/accounts:sendVerificationCode",P(e,t))}const Je={USER_NOT_FOUND:"user-not-found"};class Xe extends Fe{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new Xe({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new Xe({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return D(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await D(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,t));if(n.temporaryProof)throw F(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return D(e,"POST","/v1/accounts:signInWithPhoneNumber",P(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Je)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"==typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new Xe({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class Ze{constructor(e){var t,n,r,i,s,a;const c=(0,o.I9)((0,o.hp)(e)),u=null!==(t=c.apiKey)&&void 0!==t?t:null,l=null!==(n=c.oobCode)&&void 0!==n?n:null,d=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=c.mode)&&void 0!==r?r:null);b(u&&l&&d,"argument-error"),this.apiKey=u,this.operation=d,this.code=l,this.continueUrl=null!==(i=c.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(s=c.lang)&&void 0!==s?s:null,this.tenantId=null!==(a=c.tenantId)&&void 0!==a?a:null}static parseLink(e){const t=function(e){const t=(0,o.I9)((0,o.hp)(e)).link,n=t?(0,o.I9)((0,o.hp)(t)).deep_link_id:null,r=(0,o.I9)((0,o.hp)(e)).deep_link_id;return(r?(0,o.I9)((0,o.hp)(r)).link:null)||r||n||t||e}(e);try{return new Ze(t)}catch(e){return null}}}class Qe{constructor(){this.providerId=Qe.PROVIDER_ID}static credential(e,t){return Ve._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Ze.parseLink(t);return b(n,"argument-error"),Ve._fromEmailAndCode(e,n.code,n.tenantId)}}Qe.PROVIDER_ID="password",Qe.EMAIL_PASSWORD_SIGN_IN_METHOD="password",Qe.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class et{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class tt extends et{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class nt extends tt{static credentialFromJSON(e){const t="string"==typeof e?JSON.parse(e):e;return b("providerId"in t&&"signInMethod"in t,"argument-error"),Ye._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return b(e.idToken||e.accessToken,"argument-error"),Ye._fromParams(Object.assign(Object.assign({}
vendor: 4,694 bytes, line 2
2,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return nt.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return nt.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n,oauthTokenSecret:r,pendingToken:i,nonce:o,providerId:s}=e;if(!(n||r||t||i))return null;if(!s)return null;try{return new nt(s)._credential({idToken:t,accessToken:n,nonce:o,pendingToken:i})}catch(e){return null}}}class rt extends tt{constructor(){super("facebook.com")}static credential(e){return Ye._fromParams({providerId:rt.PROVIDER_ID,signInMethod:rt.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return rt.credentialFromTaggedObject(e)}static credentialFromError(e){return rt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return rt.credential(e.oauthAccessToken)}catch(e){return null}}}rt.FACEBOOK_SIGN_IN_METHOD="facebook.com",rt.PROVIDER_ID="facebook.com";class it extends tt{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return Ye._fromParams({providerId:it.PROVIDER_ID,signInMethod:it.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return it.credentialFromTaggedObject(e)}static credentialFromError(e){return it.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return it.credential(t,n)}catch(e){return null}}}it.GOOGLE_SIGN_IN_METHOD="google.com",it.PROVIDER_ID="google.com";class ot extends tt{constructor(){super("github.com")}static credential(e){return Ye._fromParams({providerId:ot.PROVIDER_ID,signInMethod:ot.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return ot.credentialFromTaggedObject(e)}static credentialFromError(e){return ot.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return ot.credential(e.oauthAccessToken)}catch(e){return null}}}ot.GITHUB_SIGN_IN_METHOD="github.com",ot.PROVIDER_ID="github.com";class st extends Fe{constructor(e,t){super(e,e),this.pendingToken=t}_getIdTokenResponse(e){return Ke(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Ke(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Ke(e,t)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r,pendingToken:i}=t;return n&&r&&i&&n===r?new st(n,i):null}static _create(e,t){return new st(e,t)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class at extends et{constructor(e){b(e.startsWith("saml."),"argument-error"),super(e)}static credentialFromResult(e){return at.samlCredentialFromTaggedObject(e)}static credentialFromError(e){return at.samlCredentialFromTaggedObject(e.customData||{})}static credentialFromJSON(e){const t=st.fromJSON(e);return b(t,"argument-error"),t}static samlCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{pendingToken:t,providerId:n}=e;if(!t||!n)return null;try{return st._create(n,t)}catch(e){return null}}}class ct extends tt{constructor(){super("twitter.com")}static credential(e,t){return Ye._fromParams({providerId:ct.PROVIDER_ID,signInMethod:ct.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return ct.credentialFromTaggedObject(e)}static credentialFromError(e){return ct.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return ct.credential(t,n)}catch(e){return null}}}async function ut(e,t){return D(e,"POST","/v1/accounts:signUp",P(e,t))}ct.TWITTER_SIGN_IN_METHOD="twitter.com",ct.PROVIDER_ID="twitter.com";class lt{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=!1){const i=await ne._fromIdTokenResponse(e,n,r),o=dt(n);return new lt({user:i,providerId:o,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=dt(n);
2return new lt({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function dt(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class ht extends o.g{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,ht.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new ht(e,t,n,r)}}function pt(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{if("auth/multi-factor-auth-required"===n.code)throw ht._fromErrorAndOperation(e,n,t,r);throw n})}function ft(e){return new Set(e.map(({providerId:e})=>e).filter(e=>!!e))}async function mt(e,t,n=!1){const r=await G(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return lt._forOperation(e,"link",r)}async function gt(e,t,n){await Z(t);const r=!1===e?"provider-already-linked":"no-such-provider";b(ft(t.providerData).has(n)===e,t.auth,r)}async function yt(e,t,n=!1){const{auth:r}=e;if((0,i._isFirebaseServerApp)(r.app))return Promise.reject(y(r));const o="reauthenticate";try{const i=await G(e,pt(r,o,t,e),n);b(i.idToken,r,"internal-error");const s=K(i.idToken);b(s,r,"internal-error");const{sub:a}=s;return b(e.uid===a,r,"user-mismatch"),lt._forOperation(e,o,i)}catch(e){throw"auth/user-not-found"===(null==e?void 0:e.code)&&f(r,"user-mismatch"),e}}async function vt(e,t,n=!1){if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(y(e));const r="signIn",o=await pt(e,r,t),s=await lt._fromIdTokenResponse(e,r,o);return n||await e._updateCurrentUser(s.user),s}async function _t(e,t){return vt(Ee(e),t)}async function bt(e,t){const n=(0,o.Ku)(e);return await gt(!1,n,t.providerId),mt(n,t)}async function wt(e,t){return yt((0,o.Ku)(e),t)}class St{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?Et._fromServerResponse(e,t):"totpInfo"in t?kt._fromServerResponse(e,t):f(e,"internal-error")}}class Et extends St{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new Et(t)}}class kt extends St{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new kt(t)}}function Tt(e,t,n){var r;b((null===(r=n.url)||void 0===r?void 0:r.length)>0,e,"invalid-continue-uri"),b(void 0===n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),b(void 0===n.linkDomain||n.linkDomain.length>0,e,"invalid-hosting-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.linkDomain=n.linkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(b(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(b(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}async function It(e){const t=Ee(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function Ct(e,t){const n=(0,o.Ku)(e),r=await $e(n,{oobCode:t}),i=r.requestType;switch(b(i,n,"internal-error"),i){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":b(r.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":b(r.mfaInfo,n,"internal-error");default:b(r.email,n,"internal-error")}let s=null;return r.mfaInfo&&(s=St._fromServerResponse(Ee(n),r.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===r.requestType?r.newEmail:r.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===r.requestType?r.email:r.newEmail)||null,multiFactorInfo:s},operation:i}}async function xt(e,t,n){const{auth:r}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),n&&(i.password=n);const o=await G(e,async function(e,t){return N(e,"POST","/v1/accounts:update",t)}(r,i));await e._updateTokensIfNecessary(o,!0)}class Ot{constructor(e,t,n={}){this.isNewUser=e,this.providerId=t,this.profile=n}}class At extends Ot{constructor(e,t,n,r){super(e,t,n),this.username=r}}class Rt extends Ot{constructor(e,t){super(e,"facebook.com",t)}}class Pt extends At{constructor(e,t){super(e,"github.com",t,"string"==typeof(null==t?void 0:t.login)?null==t?void 0:t.login:null)}}class Nt extends Ot{constructor(e,t){super(e,"google.com",t)}}class Mt extends At{constructor(e,t,n){super(e,"twitter.com",t,n)}}
2function Dt(e){const{user:t,_tokenResponse:n}=e;return t.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:function(e){var t,n;if(!e)return null;const{providerId:r}=e,i=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},o=e.isNewUser||"identitytoolkit#SignupNewUserResponse"===e.kind;if(!r&&(null==e?void 0:e.idToken)){const r=null===(n=null===(t=K(e.idToken))||void 0===t?void 0:t.firebase)||void 0===n?void 0:n.sign_in_provider;if(r)return new Ot(o,"anonymous"!==r&&"custom"!==r?r:null)}if(!r)return null;switch(r){case"facebook.com":return new Rt(o,i);case"github.com":return new Pt(o,i);case"google.com":return new Nt(o,i);case"twitter.com":return new Mt(o,i,e.screenName||null);case"custom":case"anonymous":return new Ot(o,null);default:return new Ot(o,r,i)}}(n)}class Lt{constructor(e,t,n){this.type=e,this.credential=t,this.user=n}static _fromIdtoken(e,t){return new Lt("enroll",e,t)}static _fromMfaPendingCredential(e){return new Lt("signin",e)}toJSON(){const e="enroll"===this.type?"idToken":"pendingCredential";return{multiFactorSession:{[e]:this.credential}}}static fromJSON(e){var t,n;if(null==e?void 0:e.multiFactorSession){if(null===(t=e.multiFactorSession)||void 0===t?void 0:t.pendingCredential)return Lt._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if(null===(n=e.multiFactorSession)||void 0===n?void 0:n.idToken)return Lt._fromIdtoken(e.multiFactorSession.idToken)}return null}}class jt{constructor(e,t,n){this.session=e,this.hints=t,this.signInResolver=n}static _fromError(e,t){const n=Ee(e),r=t.customData._serverResponse,i=(r.mfaInfo||[]).map(e=>St._fromServerResponse(n,e));b(r.mfaPendingCredential,n,"internal-error");const o=Lt._fromMfaPendingCredential(r.mfaPendingCredential);return new jt(o,i,async e=>{const i=await e._process(n,o);delete r.mfaInfo,delete r.mfaPendingCredential;const s=Object.assign(Object.assign({},r),{idToken:i.idToken,refreshToken:i.refreshToken});switch(t.operationType){case"signIn":const e=await lt._fromIdTokenResponse(n,t.operationType,s);return await n._updateCurrentUser(e.user),e;case"reauthenticate":return b(t.user,n,"internal-error"),lt._forOperation(t.user,t.operationType,s);default:f(n,"internal-error")}})}async resolveSignIn(e){const t=e;return this.signInResolver(t)}}function Ut(e,t){return N(e,"POST","/v2/accounts/mfaEnrollment:start",P(e,t))}class Ft{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload(t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map(t=>St._fromServerResponse(e.auth,t)))})}static _fromUser(e){return new Ft(e)}async getSession(){return Lt._fromIdtoken(await this.user.getIdToken(),this.user)}
2async enroll(e,t){const n=e,r=await this.getSession(),i=await G(this.user,n._process(this.user.auth,r,t));return await this.user._updateTokensIfNecessary(i),this.user.reload()}async unenroll(e){const t="string"==typeof e?e:e.uid,n=await this.user.getIdToken();try{const e=await G(this.user,(r=this.user.auth,i={idToken:n,mfaEnrollmentId:t},N(r,"POST","/v2/accounts/mfaEnrollment:withdraw",P(r,i))));this.enrolledFactors=this.enrolledFactors.filter(({uid:e})=>e!==t),await this.user._updateTokensIfNecessary(e),await this.user.reload()}catch(e){throw e}var r,i}}const $t=new WeakMap,zt="__sak";class Bt{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(zt,"1"),this.storage.removeItem(zt),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class Ht extends Bt{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=ve(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});const n=e.key;t?this.detachListener():this.stopPolling();const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);(0,o.lT)()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const e of Array.from(n))e(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}Ht.type="LOCAL";const Wt=Ht;class qt extends Bt{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}qt.type="SESSION";const Vt=qt;class Kt{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;const n=new Kt(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,o=this.handlersMap[r];if(!(null==o?void 0:o.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const s=Array.from(o).map(async e=>e(t.origin,i)),a=await function(e){return Promise.all(e.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(e){return{fulfilled:!1,reason:e}}}))}(s);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function Yt(e="",t=10){let n="";for(let e=0;e<t;e++)n+=Math.floor(10*Math.random());return e+n}Kt.receivers=[];class Gt{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){const r="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,o;return new Promise((s,a)=>{const c=Yt("",20);r.port1.start();const u=setTimeout(()=>{a(new Error("unsupported_event"))},n);o={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===c)switch(t.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{a(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),s(t.data.response);break;default:clearTimeout(u),clearTimeout(i),a(new Error("invalid_response"))}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[r.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}function Jt(){return window}
2function Xt(){return void 0!==Jt().WorkerGlobalScope&&"function"==typeof Jt().importScripts}const Zt="firebaseLocalStorageDb",Qt="firebaseLocalStorage",en="fbase_key";class tn{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function nn(e,t){return e.transaction([Qt],t?"readwrite":"readonly").objectStore(Qt)}function rn(){const e=indexedDB.open(Zt,1);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const t=e.result;try{t.createObjectStore(Qt,{keyPath:en})}catch(e){n(e)}}),e.addEventListener("success",async()=>{const n=e.result;n.objectStoreNames.contains(Qt)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(Zt);return new tn(e).toPromise()}(),t(await rn()))})})}async function on(e,t,n){const r=nn(e,!0).put({[en]:t,value:n});return new tn(r).toPromise()}function sn(e,t){const n=nn(e,!0).delete(t);return new tn(n).toPromise()}class an{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await rn()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(e){if(t++>3)throw e;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Xt()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Kt._getInstance(Xt()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new Gt(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null===(t=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===t?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await rn();return await on(e,zt,"1"),await sn(e,zt),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>on(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){const t=await this._withRetries(t=>async function(e,t){const n=nn(e,!1).get(t),r=await new tn(n).toPromise();return void 0===r?null:r.value}(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>sn(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(e=>{const t=nn(e,!1).getAll();return new tn(t).toPromise()});if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const e of Object.keys(this.localCache))this.localCache[e]&&!n.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const e of Array.from(n))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}an.type="LOCAL";const cn=an;function un(e,t){return N(e,"POST","/v2/accounts/mfaSignIn:start",P(e,t))}const ln=Ce("rcb"),dn=new I(3e4,6e4);class hn{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(e=Jt().grecaptcha)||void 0===e?void 0:e.render)}load(e,t=""){return b(function(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}(t),e,"argument-error"),this.shouldResolveImmediately(t)&&$(Jt().grecaptcha)?Promise.resolve(Jt().grecaptcha):new Promise((n,r)=>{const i=Jt().setTimeout(()=>{r(m(e,"network-request-failed"))},dn.get());Jt()[ln]=()=>{Jt().clearTimeout(i),delete Jt()[ln];const o=Jt().grecaptcha;if(!o||!$(o))return void r(m(e,"internal-error"));const s=o.render;o.render=(e,t)=>{const n=s(e,t);return this.counter++,n},this.hostLanguage=t,n(o)},Ie(`${Te.recaptchaV2Script}?${(0,o.Am)({onload:ln,render:"explicit",hl:t})}`).catch(()=>{clearTimeout(i),r(m(e,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null===(t=Jt().grecaptcha)||void 0===t?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class pn{async load(e){return new Oe(e)}clearedOneInstance(){}}const fn="recaptcha",mn={theme:"light",type:"image"};class gn{constructor(e,t,n=Object.assign({}
2,mn)){this.parameters=n,this.type=fn,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Ee(e),this.isInvisible="invisible"===this.parameters.size,b("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment");const r="string"==typeof t?document.getElementById(t):t;b(r,this.auth,"argument-error"),this.container=r,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new pn:new hn,this.validateStartingState()}async verify(){this.assertNotDestroyed();const e=await this.render(),t=this.getAssertedRecaptcha();return t.getResponse(e)||new Promise(n=>{const r=e=>{e&&(this.tokenChangeListeners.delete(r),n(e))};this.tokenChangeListeners.add(r),this.isInvisible&&t.execute(e)})}render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch(e=>{throw this.renderPromise=null,e})),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach(e=>{this.container.removeChild(e)})}validateStartingState(){b(!this.parameters.sitekey,this.auth,"argument-error"),b(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),b("undefined"!=typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach(e=>e(t)),"function"==typeof e)e(t);else if("string"==typeof e){const n=Jt()[e];"function"==typeof n&&n(t)}}}assertNotDestroyed(){b(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){const t=document.createElement("div");e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}
2async init(){b(k()&&!Xt(),this.auth,"internal-error"),await function(){let e=null;return new Promise(t=>{"complete"!==document.readyState?(e=()=>t(),window.addEventListener("load",e)):t()}).catch(t=>{throw e&&window.removeEventListener("load",e),t})}(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const e=await async function(e){return(await N(e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}(this.auth);b(e,this.auth,"internal-error"),this.parameters.sitekey=e}getAssertedRecaptcha(){return b(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class yn{constructor(e,t){this.verificationId=e,this.onConfirmation=t}confirm(e){const t=Xe._fromVerification(this.verificationId,e);return this.onConfirmation(t)}}async function vn(e,t,n){var r;if(!e._getRecaptchaConfig())try{await async function(e){const t=Ee(e),n=await H(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new B(n);null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()&&new Me(t).verify()}(e)}catch(e){console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let i;if(i="string"==typeof t?{phoneNumber:t}:t,"session"in i){const t=i.session;if("phoneNumber"in i){b("enroll"===t.type,e,"internal-error");const r=Le(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"}},"mfaSmsEnrollment",async(e,t)=>t.phoneEnrollmentInfo.captchaResponse===Ne?(b((null==n?void 0:n.type)===fn,e,"argument-error"),Ut(e,await _n(e,t,n))):Ut(e,t),"PHONE_PROVIDER");return(await r.catch(e=>Promise.reject(e))).phoneSessionInfo.sessionInfo}{b("signin"===t.type,e,"internal-error");const o=(null===(r=i.multiFactorHint)||void 0===r?void 0:r.uid)||i.multiFactorUid;b(o,e,"missing-multi-factor-info");const s=Le(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:o,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}},"mfaSmsSignIn",async(e,t)=>t.phoneSignInInfo.captchaResponse===Ne?(b((null==n?void 0:n.type)===fn,e,"argument-error"),un(e,await _n(e,t,n))):un(e,t),"PHONE_PROVIDER");return(await s.catch(e=>Promise.reject(e))).phoneResponseInfo.sessionInfo}}{const t=Le(e,{phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"},"sendVerificationCode",async(e,t)=>t.captchaResponse===Ne?(b((null==n?void 0:n.type)===fn,e,"argument-error"),Ge(e,await _n(e,t,n))):Ge(e,t),"PHONE_PROVIDER");return(await t.catch(e=>Promise.reject(e))).sessionInfo}}finally{null==n||n._reset()}}async function _n(e,t,n){b(n.type===fn,e,"argument-error");const r=await n.verify();b("string"==typeof r,e,"argument-error");const i=Object.assign({},t);if("phoneEnrollmentInfo"in i){const e=i.phoneEnrollmentInfo.phoneNumber,t=i.phoneEnrollmentInfo.captchaResponse,n=i.phoneEnrollmentInfo.clientType,o=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:r,captchaResponse:t,clientType:n,recaptchaVersion:o}}),i}if("phoneSignInInfo"in i){const e=i.phoneSignInInfo.captchaResponse,t=i.phoneSignInInfo.clientType,n=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:e,clientType:t,recaptchaVersion:n}}),i}return Object.assign(i,{recaptchaToken:r}),i}class bn{constructor(e){this.providerId=bn.PROVIDER_ID,this.auth=Ee(e)}verifyPhoneNumber(e,t){return vn(this.auth,e,(0,o.Ku)(t))}static credential(e,t){return Xe._fromVerification(e,t)}static credentialFromResult(e){const t=e;return bn.credentialFromTaggedObject(t)}static credentialFromError(e){return bn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{phoneNumber:t,temporaryProof:n}=e;return t&&n?Xe._fromTokenResponse(t,n):null}}function wn(e,t){return t?ie(t):(b(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}bn.PROVIDER_ID="phone",bn.PHONE_SIGN_IN_METHOD="phone";class Sn extends Fe{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Ke(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Ke(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Ke(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function En(e){return vt(e.auth,new Sn(e),e.bypassAuthState)}function kn(e){const{auth:t,user:n}=e;return b(n,t,"internal-error"),yt(n,new Sn(e),e.bypassAuthState)}async function Tn(e){const{auth:t,user:n}=e;return b(n,t,"internal-error"),mt(n,new Sn(e),e.bypassAuthState)}class In{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:o,type:s}=e;if(o)return void this.reject(o);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(a))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return En;case"linkViaPopup":case"linkViaRedirect":return Tn;case"reauthViaPopup":case"reauthViaRedirect":return kn;default:f(this.auth,"internal-error")}}resolve(e){S(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){S(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const Cn=new I(2e3,1e4);
2class xn extends In{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,xn.currentPopupAction&&xn.currentPopupAction.cancel(),xn.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return b(e,this.auth,"internal-error"),e}async onExecution(){S(1===this.filter.length,"Popup operations only handle one event");const e=Yt();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(m(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(m(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,xn.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(m(this.auth,"popup-closed-by-user"))},8e3):this.pollId=window.setTimeout(e,Cn.get())};e()}}xn.currentPopupAction=null;const On=new Map;class An extends In{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=On.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=Mn(t),r=Nn(e);if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}On.set(this.auth._key(),e)}return this.bypassAuthState||On.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function Rn(e,t){return Nn(e)._set(Mn(t),"true")}function Pn(e,t){On.set(e._key(),t)}function Nn(e){return ie(e._redirectPersistence)}function Mn(e){return ae("pendingRedirect",e.config.apiKey,e.name)}async function Dn(e,t,n=!1){if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(y(e));const r=Ee(e),o=wn(r,t),s=new An(r,o,n),a=await s.execute();return a&&!n&&(delete a.user._redirectEventId,await r._persistUserIfCurrent(a.user),await r._setRedirectUser(null,t)),a}async function Ln(e){const t=Yt(`${e.uid}:::`);return e._redirectEventId=t,await e.auth._setRedirectUser(e),await e.auth._persistUserIfCurrent(e),t}class jn{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Fn(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!Fn(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(m(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Un(e))}saveEventToCache(e){this.cachedEventUids.add(Un(e)),this.lastProcessedEventTime=
2Date.now()}}function Un(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function Fn({type:e,error:t}){return"unknown"===e&&"auth/no-auth-event"===(null==t?void 0:t.code)}async function $n(e,t={}){return N(e,"GET","/v1/projects",t)}const zn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Bn=/^https?/;function Hn(e){const t=E(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!Bn.test(n))return!1;if(zn.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const Wn=new I(3e4,6e4);function qn(){const e=Jt().___jsl;if(null==e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}function Vn(e){return new Promise((t,n)=>{var r,i,o;function s(){qn(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{qn(),n(m(e,"network-request-failed"))},timeout:Wn.get()})}if(null===(i=null===(r=Jt().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(o=Jt().gapi)||void 0===o?void 0:o.load)){const t=Ce("iframefcb");return Jt()[t]=()=>{gapi.load?s():n(m(e,"network-request-failed"))},Ie(`${Te.gapiScript}?onload=${t}`).catch(e=>n(e))}s()}}).catch(e=>{throw Kn=null,e})}let Kn=null;const Yn=new I(5e3,15e3),Gn={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Jn=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Xn(e){const t=e.config;b(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?C(t,"emulator/auth/iframe"):`https://${e.config.authDomain}/__/auth/iframe`,r={apiKey:t.apiKey,appName:e.name,v:i.SDK_VERSION},s=Jn.get(e.config.apiHost);s&&(r.eid=s);const a=e._getFrameworks();return a.length&&(r.fw=a.join(",")),`${n}?${(0,o.Am)(r).slice(1)}`}const Zn={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Qn{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}const er=encodeURIComponent("fac");async function tr(e,t,n,r,s,a){b(e.config.authDomain,e,"auth-domain-config-required"),b(e.config.apiKey,e,"invalid-api-key");const c={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:i.SDK_VERSION,eventId:s};if(t instanceof et){t.setDefaultLanguage(e.languageCode),c.providerId=t.providerId||"",(0,o.Im)(t.getCustomParameters())||(c.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(a||{}))c[e]=t}if(t instanceof tt){const e=t.getScopes().filter(e=>""!==e);e.length>0&&(c.scopes=e.join(","))}e.tenantId&&(c.tid=e.tenantId);const u=c;for(const e of Object.keys(u))void 0===u[e]&&delete u[e];const l=await e._getAppCheckToken(),d=l?`#${er}=${encodeURIComponent(l)}`:"";return`${function({config:e}){return e.emulator?C(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${(0,o.Am)(u).slice(1)}${d}`}const nr="webStorageSupport",rr=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Vt,this._completeRedirectFn=Dn,this._overrideRedirectResult=Pn}async _openPopup(e,t,n,r){var i;return S(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()"),function(e,t,n,r=500,i=600){const s=Math.max((window.screen.availHeight-i)/2,0).toString(),a=Math.max((window.screen.availWidth-r)/2,0).toString();let c="";const u=Object.assign(Object.assign({},Zn),{width:r.toString(),height:i.toString(),top:s,left:a}),l=(0,o.ZQ)().toLowerCase();n&&(c=he(l)?"_blank":n),le(l)&&(t=t||"http://localhost",u.scrollbars="yes");const d=Object.entries(u).reduce((e,[t,n])=>`${e}${t}=${n},`,"");if(function(e=(0,o.ZQ)()){var t;return ye(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}(l)&&"_self"!==c)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");
2r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",c),new Qn(null);const h=window.open(t||"",c,d);b(h,e,"popup-blocked");try{h.focus()}catch(e){}return new Qn(h)}(e,await tr(e,t,n,E(),r),Yt())}async _openRedirect(e,t,n,r){return await this._originValidation(e),i=await tr(e,t,n,E(),r),Jt().location.href=i,new Promise(()=>{});var i}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(S(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){const t=await async function(e){const t=await function(e){return Kn=Kn||Vn(e),Kn}(e),n=Jt().gapi;return b(n,e,"internal-error"),t.open({where:document.body,url:Xn(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Gn,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=m(e,"network-request-failed"),o=Jt().setTimeout(()=>{r(i)},Yn.get());function s(){Jt().clearTimeout(o),n(t)}t.ping(s).then(s,()=>{r(i)})}))}(e),n=new jn(e);return t.register("authEvent",t=>(b(null==t?void 0:t.authEvent,e,"invalid-auth-event"),{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(nr,{type:nr},n=>{var r;const i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r[nr];void 0!==i&&t(!!i),f(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=async function(e){if(e.config.emulator)return;const{authorizedDomains:t}=await $n(e);for(const e of t)try{if(Hn(e))return}catch(e){}f(e,"unauthorized-domain")}(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return ve()||de()||ye()}};class ir{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return w("unexpected MultiFactorSessionType")}}}class or extends ir{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new or(e)}_finalizeEnroll(e,t,n){return function(e,t){return N(e,"POST","/v2/accounts/mfaEnrollment:finalize",P(e,t))}(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return function(e,t){return N(e,"POST","/v2/accounts/mfaSignIn:finalize",P(e,t))}(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}class sr{constructor(){}static assertion(e){return or._fromCredential(e)}}sr.FACTOR_ID="phone";var ar,cr="@firebase/auth",ur="1.10.8";class lr{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){b(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function dr(){return window}(0,o.XA)("authIdTokenMaxAge"),Te={loadJS:e=>new Promise((t,n)=>{const r=document.createElement("script");var i,o;r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=m("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",(null!==(o=null===(i=document.getElementsByTagName("head"))||void 0===i?void 0:i[0])&&void 0!==o?o:document).appendChild(r)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},ar="Browser",(0,i._registerComponent)(new c.uA("auth",(e,{options:t})=>{const n=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:o,authDomain:s}=n.options;b(o&&!o.includes(":"),"invalid-api-key",{appName:n.name});const a={apiKey:o,authDomain:s,clientPlatform:ar,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:_e(ar)},c=new Se(n,r,i,a);return function(e,t){const n=(null==t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(ie);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null==t?void 0:t.popupRedirectResolver)}(c,t),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),(0,i._registerComponent)(new c.uA("auth-internal",e=>{return t=Ee(e.getProvider("auth").getImmediate()),new lr(t);var t},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,i.registerVersion)(cr,ur,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(ar)),(0,i.registerVersion)(cr,ur,"esm2017");class hr extends jn{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise(e=>{this.resolveInitialized=e})}addPassiveListener(e){this.passiveListeners.add(e)}removePassiveListener(e){this.passiveListeners.delete(e)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(e){return this.resolveInitialized(),this.passiveListeners.forEac
2h(t=>t(e)),super.onEvent(e)}async initialized(){await this.initPromise}}async function pr(e){const t=await mr()._get(gr(e));return t&&await mr()._remove(gr(e)),t}function fr(){const e=[];for(let t=0;t<20;t++){const t=Math.floor(62*Math.random());e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(t))}return e.join("")}function mr(){return ie(Wt)}function gr(e){return ae("authEvent",e.config.apiKey,e.name)}function yr(e){if(!(null==e?void 0:e.includes("?")))return{};const[t,...n]=e.split("?");return(0,o.I9)(n.join("?"))}const vr=class{constructor(){this._redirectPersistence=Vt,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=Dn,this._overrideRedirectResult=Pn}async _initialize(e){const t=e._key();let n=this.eventManagers.get(t);return n||(n=new hr(e),this.eventManagers.set(t,n),this.attachCallbackListeners(e,n)),n}_openPopup(e){f(e,"operation-not-supported-in-this-environment")}async _openRedirect(e,t,n,r){!function(e){var t,n,r,i,o,s,a,c,u,l;const d=dr();b("function"==typeof(null===(t=null==d?void 0:d.universalLinks)||void 0===t?void 0:t.subscribe),e,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),b(void 0!==(null===(n=null==d?void 0:d.BuildInfo)||void 0===n?void 0:n.packageName),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),b("function"==typeof(null===(o=null===(i=null===(r=null==d?void 0:d.cordova)||void 0===r?void 0:r.plugins)||void 0===i?void 0:i.browsertab)||void 0===o?void 0:o.openUrl),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),b("function"==typeof(null===(c=null===(a=null===(s=null==d?void 0:d.cordova)||void 0===s?void 0:s.plugins)||void 0===a?void 0:a.browsertab)||void 0===c?void 0:c.isAvailable),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),b("function"==typeof(null===(l=null===(u=null==d?void 0:d.cordova)||void 0===u?void 0:u.InAppBrowser)||void 0===l?void 0:l.open),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(e);const i=await this._initialize(e);await i.initialized(),i.resetRedirect(),On.clear(),await this._originValidation(e);const s=function(e,t,n=null){return{type:t,eventId:n,urlResponse:null,sessionId:fr(),postBody:null,tenantId:e.tenantId,error:m(e,"no-auth-event")}}(e,n,r);await function(e,t){return mr()._set(gr(e),t)}(e,s);const a=await async function(e,t,n){var r;const{BuildInfo:i}=dr();S(t.sessionId,"AuthEvent did not contain a session ID");const o=await async function(e){const t=function(e){if(S(/[0-9a-zA-Z]+/.test(e),"Can only convert alpha-numeric strings"),"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);const t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n}(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,"0")).join("")}(t.sessionId),s={};return ye()?s.ibi=i.packageName:fe()?s.apn=i.packageName:f(e,"operation-not-supported-in-this-environment"),i.displayName&&(s.appDisplayName=i.displayName),s.sessionId=o,tr(e,n,t.type,void 0,null!==(r=t.eventId)&&void 0!==r?r:void 0,s)}(e,s,t);return async function(e,t,n){const{cordova:r}=dr();let i=()=>{};try{await new Promise((o,s)=>{let a=null;function c(){var e;o();const t=null===(e=r.plugins.browsertab)||void 0===e?void 0:e.close;"function"==typeof t&&t(),"function"==typeof(null==n?void 0:n.close)&&n.close()}function u(){a||(a=window.setTimeout(()=>{s(m(e,"redirect-cancelled-by-user"))},2e3))}function l(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)&&u()}t.addPassiveListener(c),document.addEventListener("resume",u,!1),fe()&&document.addEventListener("visibilitychange",l,!1),i=()=>{t.removePassiveListener(c),document.removeEventListener("resume",u,!1),document.removeEventListener("visibilitychange",l,!1),a&&window.clearTimeout(a)}})}finally{i()}}(e,i,await function(e){const{cordova:t}=dr();return new Promise(n=>{t.plugins.browsertab.isAvailable(r=>{let i=null;r?t.plugins.browsertab.openUrl(e):i=t.InAppBrowser.open(e,function(e=(0,o.ZQ)()){return/(iPad|iPhone|iPod).*OS 7_\d/i.test(e)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(e)}()?"_blank":"_system","location=yes"),n(i)})})}
2(a))}_isIframeWebStorageSupported(e,t){throw new Error("Method not implemented.")}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=async function(e){const{BuildInfo:t}=dr(),n={};ye()?n.iosBundleId=t.packageName:fe()?n.androidPackageName=t.packageName:f(e,"operation-not-supported-in-this-environment"),await $n(e,n)}(e)),this.originValidationPromises[t]}attachCallbackListeners(e,t){const{universalLinks:n,handleOpenURL:r,BuildInfo:i}=dr(),o=setTimeout(async()=>{await pr(e),t.onEvent(_r())},500),s=async n=>{clearTimeout(o);const r=await pr(e);let i=null;r&&(null==n?void 0:n.url)&&(i=function(e,t){var n,r;const i=function(e){const t=yr(e),n=t.link?decodeURIComponent(t.link):void 0,r=yr(n).link,i=t.deep_link_id?decodeURIComponent(t.deep_link_id):void 0;return yr(i).link||i||r||n||e}(t);if(i.includes("/__/auth/callback")){const t=yr(i),o=t.firebaseError?function(e){try{return JSON.parse(e)}catch(e){return null}}(decodeURIComponent(t.firebaseError)):null,s=null===(r=null===(n=null==o?void 0:o.code)||void 0===n?void 0:n.split("auth/"))||void 0===r?void 0:r[1],a=s?m(s):null;return a?{type:e.type,eventId:e.eventId,tenantId:e.tenantId,error:a,urlResponse:null,sessionId:null,postBody:null}:{type:e.type,eventId:e.eventId,tenantId:e.tenantId,sessionId:e.sessionId,urlResponse:i,postBody:null}}return null}(r,n.url)),t.onEvent(i||_r())};void 0!==n&&"function"==typeof n.subscribe&&n.subscribe(null,s);const a=r,c=`${i.packageName.toLowerCase()}://`;dr().handleOpenURL=async e=>{if(e.toLowerCase().startsWith(c)&&s({url:e}),"function"==typeof a)try{a(e)}catch(e){console.error(e)}}}};function _r(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:m("no-auth-event")}}function br(){var e;return(null===(e=null===self||void 0===self?void 0:self.location)||void 0===e?void 0:e.protocol)||null}function wr(e=(0,o.ZQ)()){return!("file:"!==br()&&"ionic:"!==br()&&"capacitor:"!==br()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function Sr(){try{const e=self.localStorage,t=Yt();if(e)return e.setItem(t,"1"),e.removeItem(t),!function(e=(0,o.ZQ)()){return(0,o.lT)()&&11===(null===document||void 0===document?void 0:document.documentMode)||function(e=(0,o.ZQ)()){return/Edge\/\d+/.test(e)}(e)}()||(0,o.zW)()}catch(e){return Er()&&(0,o.zW)()}return!1}function Er(){return void 0!==n.g&&"WorkerGlobalScope"in n.g&&"importScripts"in n.g}function kr(){return("http:"===br()||"https:"===br()||(0,o.sr)()||wr())&&!((0,o.lV)()||(0,o.Ll)())&&Sr()&&!Er()}function Tr(){return wr()&&"undefined"!=typeof document}const Ir={LOCAL:"local",NONE:"none",SESSION:"session"},Cr=b,xr="persistence";async function Or(e){await e._initializationPromise;const t=Ar(),n=ae(xr,e.config.apiKey,e.name);t&&t.setItem(n,e._getPersistenceType())}function Ar(){var e;try{return(null===(e="undefined"!=typeof window?window:null)||void 0===e?void 0:e.sessionStorage)||null}catch(e){return null}}const Rr=b;class Pr{constructor(){this.browserResolver=ie(rr),this.cordovaResolver=ie(vr),this.underlyingResolver=null,this._redirectPersistence=Vt,this._completeRedirectFn=Dn,this._overrideRedirectResult=Pn}async _initialize(e){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._initialize(e)}async _openPopup(e,t,n,r){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._openPopup(e,t,n,r)}async _openRedirect(e,t,n,r){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._openRedirect(e,t,n,r)}_isIframeWebStorageSupported(e,t){this.assertedUnderlyingResolver._isIframeWebStorageSupported(e,t)}_originValidation(e){return this.assertedUnderlyingResolver._originValidation(e)}get _shouldInitProactively(){return Tr()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return Rr(this.underlyingResolver,"internal-error"),this.underlyingResolver}async selectUnderlyingResolver(){if(this.underlyingResolver)return;const e=await async function(){return!!Tr()&&new Promise(e=>{const t=setTimeout(()=>{e(!1)},1e3);document.addEventListener("deviceready",()=>{clearTimeout(t),e(!0)})})}();this.underlyingResolver=e?this.cordovaResolver:this.browserResolver}}function Nr(e){return e.unwrap()}function Mr(e){const{_tokenResponse:t}=e instanceof o.g?e.customData:e;if(!t)return null;if(!(e instanceof o.g)&&"temporaryProof"in t&&"phoneNumber"in t)return bn.credentialFromResult(e);const n=t.providerId;if(!n||"password"===n)return null;let r;switch(n){case"google.com":r=it;break;case"facebook.com":r=rt;break;case"github.com":r=ot;break;case"twitter.com":r=ct;break;default:const{oauthIdToken:e,oauthAccessToken:i,oauthTokenSecret:o,pendingToken:s,nonce:a}=t;return i||o||e||s?s?n.startsWith("saml.")?st._create(n,s):Ye._fromParams({providerId:n,signInMethod:n,pendingToken:s,idToken:e,accessToken:i}):new nt(n).credential({idToken:e,accessToken:i,rawNonce:a}):null}return e instanceof o.g?r.credentialFromError(e):r.credentialFromResult(e)}function Dr(e,t){return t.catch(t=>{throw t instanceof o.g&&function(e,t){var n;const r=null===(n=t.customData)||void 0===n?void 0:n._tokenResponse;if("auth/multi-factor-auth-required"===(null==t?void 0:t.code))t.resolver=new jr(e,function(e,t){var n;const r=(0,o.Ku)(e),i=t;return b(t.customData.operationType,r,"argument-error"),b(null===(n=i.customData._serverResponse)||void 0===n?void 0:n.mfaPendingCredential,r,"argument-error"),jt._fromError(r,i)}(e,t));else if(r){const e=Mr(t),n=t;e&&(n.credential=e,n.tenantId=r.tenantId||void 0,n.email=r.email||void 0,n.phoneNumber=r.phoneNumber||void 0)}}(e,t),t}).then(e=>{const t=e.operationType,n=e.user;return{operationType:t,credential:(r=e,Mr(r)),additionalUserInfo:Dt(e),user:Ur.getOrCreate(n)};var r})}async function Lr(e,t){const n=await t;return{verificationId:n.verificationId,confirm:t=>Dr(e,n.confirm(t))}}class jr{constructor(e,t){this.resolver=t,this.auth=e.wrapped()}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(e){return Dr(Nr(this.auth),this.resolver.resolveSignIn(e))}}
2class Ur{constructor(e){this._delegate=e,this.multiFactor=function(e){const t=(0,o.Ku)(e);return $t.has(t)||$t.set(t,Ft._fromUser(t)),$t.get(t)}(e)}static getOrCreate(e){return Ur.USER_MAP.has(e)||Ur.USER_MAP.set(e,new Ur(e)),Ur.USER_MAP.get(e)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(e){return this._delegate.getIdTokenResult(e)}getIdToken(e){return this._delegate.getIdToken(e)}linkAndRetrieveDataWithCredential(e){return this.linkWithCredential(e)}async linkWithCredential(e){return Dr(this.auth,bt(this._delegate,e))}async linkWithPhoneNumber(e,t){return Lr(this.auth,async function(e,t,n){const r=(0,o.Ku)(e);await gt(!1,r,"phone");const i=await vn(r.auth,t,(0,o.Ku)(n));return new yn(i,e=>bt(r,e))}(this._delegate,e,t))}async linkWithPopup(e){return Dr(this.auth,async function(e,t,n){const r=(0,o.Ku)(e);v(r.auth,t,et);const i=wn(r.auth,n);return new xn(r.auth,"linkViaPopup",t,i,r).executeNotNull()}(this._delegate,e,Pr))}async linkWithRedirect(e){return await Or(Ee(this.auth)),function(e,t,n){return async function(e,t,n){const r=(0,o.Ku)(e);v(r.auth,t,et),await r.auth._initializationPromise;const i=wn(r.auth,n);await gt(!1,r,t.providerId),await Rn(i,r.auth);const s=await Ln(r);return i._openRedirect(r.auth,t,"linkViaRedirect",s)}(e,t,n)}(this._delegate,e,Pr)}reauthenticateAndRetrieveDataWithCredential(e){return this.reauthenticateWithCredential(e)}async reauthenticateWithCredential(e){return Dr(this.auth,wt(this._delegate,e))}reauthenticateWithPhoneNumber(e,t){return Lr(this.auth,async function(e,t,n){const r=(0,o.Ku)(e);if((0,i._isFirebaseServerApp)(r.auth.app))return Promise.reject(y(r.auth));const s=await vn(r.auth,t,(0,o.Ku)(n));return new yn(s,e=>wt(r,e))}(this._delegate,e,t))}reauthenticateWithPopup(e){return Dr(this.auth,async function(e,t,n){const r=(0,o.Ku)(e);if((0,i._isFirebaseServerApp)(r.auth.app))return Promise.reject(m(r.auth,"operation-not-supported-in-this-environment"));v(r.auth,t,et);const s=wn(r.auth,n);return new xn(r.auth,"reauthViaPopup",t,s,r).executeNotNull()}(this._delegate,e,Pr))}async reauthenticateWithRedirect(e){return await Or(Ee(this.auth)),function(e,t,n){return async function(e,t,n){const r=(0,o.Ku)(e);if(v(r.auth,t,et),(0,i._isFirebaseServerApp)(r.auth.app))return Promise.reject(y(r.auth));await r.auth._initializationPromise;const s=wn(r.auth,n);await Rn(s,r.auth);const a=await Ln(r);return s._openRedirect(r.auth,t,"reauthViaRedirect",a)}(e,t,n)}(this._delegate,e,Pr)}sendEmailVerification(e){return async function(e,t){const n=(0,o.Ku)(e),r={requestType:"VERIFY_EMAIL",idToken:await e.getIdToken()};t&&Tt(n.auth,r,t);const{email:i}=await async function(e,t){return He(e,t)}(n.auth,r);i!==e.email&&await e.reload()}(this._delegate,e)}async unlink(e){return await async function(e,t){const n=(0,o.Ku)(e);await gt(!0,n,t);const{providerUserInfo:r}=await async function(e,t){return N(e,"POST","/v1/accounts:update",t)}(n.auth,{idToken:await n.getIdToken(),deleteProvider:[t]}),i=ft(r||[]);return n.providerData=n.providerData.filter(e=>i.has(e.providerId)),i.has("phone")||(n.phoneNumber=null),await n.auth._persistUserIfCurrent(n),n}(this._delegate,e),this}updateEmail(e){return function(e,t){const n=(0,o.Ku)(e);return(0,i._isFirebaseServerApp)(n.auth.app)?Promise.reject(y(n.auth)):xt(n,t,null)}(this._delegate,e)}updatePassword(e){return function(e,t){return xt((0,o.Ku)(e),null,t)}(this._delegate,e)}updatePhoneNumber(e){return async function(e,t){const n=(0,o.Ku)(e);if((0,i._isFirebaseServerApp)(n.auth.app))return Promise.reject(y(n.auth));await mt(n,t)}(this._delegate,e)}updateProfile(e){return async function(e,{displayName:t,photoURL:n}){if(void 0===t&&void 0===n)return;const r=(0,o.Ku)(e),i={idToken:await r.getIdToken(),displayName:t,photoUrl:n,returnSecureToken:!0},s=await G(r,async function(e,t){return N(e,"POST","/v1/accounts:update",t)}(r.auth,i));r.displayName=s.displayName||null,r.photoURL=s.photoUrl||null;const a=r.providerData.find(({providerId:e})=>"password"===e);a&&(a.displayName=r.displayName,a.photoURL=r.photoURL),await r._updateTokensIfNecessary(s)}(this._delegate,e)}verifyBeforeUpdateEmail(e,t){return async function(e,t,n){const r=(0,o.Ku)(e),i={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await e.getIdToken(),newEmail:t};n&&Tt(r.auth,i,n);const{email:s}=await async function(e,t){return He(e,t)}(r.auth,i);s!==e.email&&await e.reload()}(this._delegate,e,t)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}Ur.USER_MAP=new WeakMap;const Fr=b;class $r{constructor(e,t){if(this.app=e,t.isInitialized())return this._delegate=t.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:n}=e.options;
2Fr(n,"invalid-api-key",{appName:e.name}),Fr(n,"invalid-api-key",{appName:e.name});const r="undefined"!=typeof window?Pr:void 0;this._delegate=t.initialize({options:{persistence:Br(n,e.name),popupRedirectResolver:r}}),this._delegate._updateErrorMap(u),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?Ur.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(e){this._delegate.languageCode=e}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(e){this._delegate.tenantId=e}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(e,t){!function(e,t,n){const r=Ee(e);b(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null==n?void 0:n.disableWarnings),s=je(t),{host:a,port:c}=function(e){const t=je(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:Ue(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:Ue(t)}}}(t),u=null===c?"":`:${c}`,l={url:`${s}//${a}${u}/`},d=Object.freeze({host:a,port:c,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator)return b(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),void b((0,o.bD)(l,r.config.emulator)&&(0,o.bD)(d,r.emulatorConfig),r,"emulator-config-failed");r.config.emulator=l,r.emulatorConfig=d,r.settings.appVerificationDisabledForTesting=!0,(0,o.zJ)(a)?((0,o.gE)(`${s}//${a}${u}`),(0,o.P1)("Auth",!0)):i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}(this._delegate,e,t)}applyActionCode(e){return async function(e,t){await async function(e,t){return N(e,"POST","/v1/accounts:update",P(e,t))}((0,o.Ku)(e),{oobCode:t})}(this._delegate,e)}checkActionCode(e){return Ct(this._delegate,e)}confirmPasswordReset(e,t){return async function(e,t,n){await $e((0,o.Ku)(e),{oobCode:t,newPassword:n}).catch(async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&It(e),t})}(this._delegate,e,t)}async createUserWithEmailAndPassword(e,t){return Dr(this._delegate,async function(e,t,n){if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(y(e));const r=Ee(e),o=Le(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",ut,"EMAIL_PASSWORD_PROVIDER"),s=await o.catch(t=>{throw"auth/password-does-not-meet-requirements"===t.code&&It(e),t}),a=await lt._fromIdTokenResponse(r,"signIn",s);return await r._updateCurrentUser(a.user),a}(this._delegate,e,t))}fetchProvidersForEmail(e){return this.fetchSignInMethodsForEmail(e)}fetchSignInMethodsForEmail(e){return async function(e,t){const n={identifier:t,continueUri:k()?E():"http://localhost"},{signinMethods:r}=await async function(e,t){return N(e,"POST","/v1/accounts:createAuthUri",P(e,t))}((0,o.Ku)(e),n);return r||[]}(this._delegate,e)}isSignInWithEmailLink(e){return function(e,t){const n=Ze.parseLink(t);return"EMAIL_SIGNIN"===(null==n?void 0:n.operation)}(this._delegate,e)}async getRedirectResult(){Fr(kr(),this._delegate,"operation-not-supported-in-this-environment");const e=await async function(e,t){return await Ee(e)._initializationPromise,Dn(e,t,!1)}(this._delegate,Pr);return e?Dr(this._delegate,Promise.resolve(e)):{credential:null,user:null}}addFrameworkForLogging(e){!function(e,t){Ee(e)._logFramework(t)}(this._delegate,e)}onAuthStateChanged(e,t,n){const{next:r,error:i,complete:o}=zr(e,t,n);return this._delegate.onAuthStateChanged(r,i,o)}onIdTokenChanged(e,t,n){const{next:r,error:i,complete:o}=zr(e,t,n);return this._delegate.onIdTokenChanged(r,i,o)}sendSignInLinkToEmail(e,t){return async function(e,t,n){const r=Ee(e),i={requestType:"EMAIL_SIGNIN",email:t,clientType:"CLIENT_TYPE_WEB"};!function(e,t){b(t.handleCodeInApp,r,"argument-error"),t&&Tt(r,e,t)}(i,n),await Le(r,i,"getOobCode",qe,"EMAIL_PASSWORD_PROVIDER")}(this._delegate,e,t)}sendPasswordResetEmail(e,t){return async function(e,t,n){const r=Ee(e),i={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};
2n&&Tt(r,i,n),await Le(r,i,"getOobCode",We,"EMAIL_PASSWORD_PROVIDER")}(this._delegate,e,t||void 0)}async setPersistence(e){let t;switch(function(e,t){Cr(Object.values(Ir).includes(t),e,"invalid-persistence-type"),(0,o.lV)()?Cr(t!==Ir.SESSION,e,"unsupported-persistence-type"):(0,o.Ll)()?Cr(t===Ir.NONE,e,"unsupported-persistence-type"):Er()?Cr(t===Ir.NONE||t===Ir.LOCAL&&(0,o.zW)(),e,"unsupported-persistence-type"):Cr(t===Ir.NONE||Sr(),e,"unsupported-persistence-type")}(this._delegate,e),e){case Ir.SESSION:t=Vt;break;case Ir.LOCAL:t=await ie(cn)._isAvailable()?cn:Wt;break;case Ir.NONE:t=se;break;default:return f("argument-error",{appName:this._delegate.name})}return this._delegate.setPersistence(t)}signInAndRetrieveDataWithCredential(e){return this.signInWithCredential(e)}signInAnonymously(){return Dr(this._delegate,async function(e){var t;if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(y(e));const n=Ee(e);if(await n._initializationPromise,null===(t=n.currentUser)||void 0===t?void 0:t.isAnonymous)return new lt({user:n.currentUser,providerId:null,operationType:"signIn"});const r=await ut(n,{returnSecureToken:!0}),o=await lt._fromIdTokenResponse(n,"signIn",r,!0);return await n._updateCurrentUser(o.user),o}(this._delegate))}signInWithCredential(e){return Dr(this._delegate,_t(this._delegate,e))}signInWithCustomToken(e){return Dr(this._delegate,async function(e,t){if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(y(e));const n=Ee(e),r=await async function(e,t){return D(e,"POST","/v1/accounts:signInWithCustomToken",P(e,t))}(n,{token:t,returnSecureToken:!0}),o=await lt._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(o.user),o}(this._delegate,e))}signInWithEmailAndPassword(e,t){return Dr(this._delegate,function(e,t,n){return(0,i._isFirebaseServerApp)(e.app)?Promise.reject(y(e)):_t((0,o.Ku)(e),Qe.credential(t,n)).catch(async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&It(e),t})}(this._delegate,e,t))}signInWithEmailLink(e,t){return Dr(this._delegate,async function(e,t,n){if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(y(e));const r=(0,o.Ku)(e),s=Qe.credentialWithLink(t,n||E());return b(s._tenantId===(r.tenantId||null),r,"tenant-id-mismatch"),_t(r,s)}(this._delegate,e,t))}signInWithPhoneNumber(e,t){return Lr(this._delegate,async function(e,t,n){if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(y(e));const r=Ee(e),s=await vn(r,t,(0,o.Ku)(n));return new yn(s,e=>_t(r,e))}(this._delegate,e,t))}async signInWithPopup(e){return Fr(kr(),this._delegate,"operation-not-supported-in-this-environment"),Dr(this._delegate,async function(e,t,n){if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(m(e,"operation-not-supported-in-this-environment"));const r=Ee(e);v(e,t,et);const o=wn(r,n);return new xn(r,"signInViaPopup",t,o).executeNotNull()}(this._delegate,e,Pr))}async signInWithRedirect(e){return Fr(kr(),this._delegate,"operation-not-supported-in-this-environment"),await Or(this._delegate),function(e,t,n){return async function(e,t,n){if((0,i._isFirebaseServerApp)(e.app))return Promise.reject(y(e));const r=Ee(e);v(e,t,et),await r._initializationPromise;const o=wn(r,n);return await Rn(o,r),o._openRedirect(r,t,"signInViaRedirect")}(e,t,n)}(this._delegate,e,Pr)}updateCurrentUser(e){return this._delegate.updateCurrentUser(e)}verifyPasswordResetCode(e){return async function(e,t){const{data:n}=await Ct((0,o.Ku)(e),t);return n.email}(this._delegate,e)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}function zr(e,t,n){let r=e;"function"!=typeof e&&({next:r,error:t,complete:n}=e);const i=r;return{next:e=>i(e&&Ur.getOrCreate(e)),error:t,complete:n}}function Br(e,t){const n=function(e,t){const n=Ar();if(!n)return[];const r=ae(xr,e,t);switch(n.getItem(r)){case Ir.NONE:return[se];case Ir.LOCAL:return[cn,Vt];case Ir.SESSION:return[Vt];default:return[]}}(e,t);if("undefined"==typeof self||n.includes(cn)||n.push(cn),"undefined"!=typeof window)for(const e of[Wt,Vt])n.includes(e)||n.push(e);return n.includes(se)||n.push(se),n}$r.Persistence=Ir;class Hr{static credential(e,t){return bn.credential(e,t)}constructor(){this.providerId="phone",this._delegate=new bn(Nr(r.A.auth()))}verifyPhoneNumber(e,t){return this._delegate.verifyPhoneNumber(e,t)}unwrap(){return this._delegate}}Hr.PHONE_SIGN_IN_METHOD=bn.PHONE_SIGN_IN_METHOD,Hr.PROVIDER_ID=bn.PROVIDER_ID;const Wr=b;var qr;(qr=r.A).INTERNAL.registerComponent(new c.uA("auth-compat",e=>{const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("auth");return new $r(t,n)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"}},EmailAuthProvider:Qe,FacebookAuthProvider:rt,GithubAuthProvider:ot,GoogleAuthProvider:it,OAuthProvider:nt,SAMLAuthProvider:at,PhoneAuthProvider:Hr,PhoneMultiFactorGenerator:sr,RecaptchaVerifier:class{constructor(e,t,n=r.A.app()){var i;Wr(null===(i=n.options)||void 0===i?void 0:i.apiKey,"invalid-api-key",{appName:n.name}),this._delegate=new gn(n.auth(),e,t),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}},TwitterAuthProvider:ct,Auth:$r,AuthCredential:Fe,Error:o.g}).setInstantiationMode("LAZY").setMultipleInstances(!1)),qr.registerVersion("@firebase/auth-compat","0.5.28")},54386:(e,t,n)=>{"use strict";n.d(t,{AP:()=>p,LV:()=>h,jN:()=>d,jf:()=>u});var r=n(64251),i=n(57968),o=n(57726),s=n(18845),a=n(9600),c=n(46403);const u=s.O;let l=0;function d(){return l>0}function h(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,c.sp)(e))return e}catch{return e}const n=function(...n){try{const r=n.map(e=>h(e,t));return e.apply(this,r)}catch(e){throw l++,setTimeout(()=>{l--}),(0,i.v4)(i=>{i.addEventProcessor(e=>(t.mechanism&&((0,a.gO)(e,void 0,void 0),(0,a.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,r.Cp)(e)}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,c.pO)(n,e),(0,c.my)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function p(){const e=(0,o.$N)(),{referrer:t}=u.document||{},{userAgent:n}=u.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}}
2,54704:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(57968);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,r.KU)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}},54737:(e,t,n)=>{"use strict";e.exports=n(28989)},54893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},55056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},56347:(e,t,n)=>{"use strict";n.d(t,{B6:()=>R,Ix:()=>w,W6:()=>B,XZ:()=>b,dO:()=>F,g:()=>W,kO:()=>U,qh:()=>P,rd:()=>C,y:()=>$,zy:()=>H});var r=n(77387),i=n(96540),o=n(5556),s=n.n(o),a=n(17929),c=n(11561),u=n(58168),l=n(8505),d=n.n(l),h=(n(44363),n(98587)),p=n(4146),f=n.n(p),m=1073741823,g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},y=i.createContext||function(e,t){var n,o,a,c="__create-react-context-"+((g[a="__global_unique_id__"]=(g[a]||0)+1)+"__"),u=function(e){function n(){for(var t,n,r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(t=e.call.apply(e,[this].concat(o))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter(function(t){return t!==e})},get:function(){return n},set:function(e,t){n=e,r.forEach(function(e){return e(n,t)})}}),t}(0,r.A)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[c]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(s=i)?0!==o||1/o==1/s:o!=o&&s!=s)?n=0:(n="function"==typeof t?t(r,i):m,0!=(n|=0)&&this.emitter.set(e.value,n))}var o,s},i.render=function(){return this.props.children},n}(i.Component);u.childContextTypes=((n={})[c]=s().object.isRequired,n);var l=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(0|e.observedBits)&n&&e.setState({value:e.getValue()})},e}(0,r.A)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?m:t},i.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?m:e},i.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},i.getValue=function(){return this.context[c]?this.context[c].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.Component);return l.contextTypes=((o={})[c]=s().object,o),{Provider:u,Consumer:l}},v=function(e){var t=y();return t.displayName=e,t},_=v("Router-History"),b=v("Router"),w=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._pendingLocation=e})),n}(0,r.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(t){e._isMounted&&e.setState({location:t})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(_.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var S=function(e){function t(){return e.apply(this,arguments)||this}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i.Component),E={},k=1e4,T=0;function I(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(E[e])return E[e];var t=d().compile(e);return T<k&&(E[e]=t,T++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return i.createElement(b.Consumer,null,function(e){e||(0,c.A)(!1);var r=e.history,s=e.staticContext,l=o?r.push:r.replace,d=(0,a.yJ)(t?"string"==typeof n?I(n,t.params):(0,u.A)({},n,{pathname:I(n.pathname,t.params)}):n);return s?(l(d),null):i.createElement(S,{onMount:function(){l(d)},onUpdate:function(e,t){var n=(0,a.yJ)(t.to);(0,a.Fu)(n,(0,u.A)({},d,{key:n.key}))||l(d)},to:n})})}var x={},O=1e4,A=0;function R(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,s=n.strict,a=void 0!==s&&s,c=n.sensitive,u=void 0!==c&&c;return[].concat(r).reduce(function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=x[n]||(x[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return A<O&&(r[e]=o,A++),o}
2(n,{end:o,strict:a,sensitive:u}),i=r.regexp,s=r.keys,c=i.exec(e);if(!c)return null;var l=c[0],h=c.slice(1),p=e===l;return o&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:s.reduce(function(e,t,n){return e[t.name]=h[n],e},{})}},null)}var P=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(b.Consumer,null,function(t){t||(0,c.A)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?R(n.pathname,e.props):t.match,o=(0,u.A)({},t,{location:n,match:r}),s=e.props,a=s.children,l=s.component,d=s.render;return Array.isArray(a)&&function(e){return 0===i.Children.count(e)}(a)&&(a=null),i.createElement(b.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:l?i.createElement(l,o):d?d(o):null:"function"==typeof a?a(o):null)})},t}(i.Component);function N(e){return"/"===e.charAt(0)?e:"/"+e}function M(e,t){if(!e)return t;var n=N(e);return 0!==t.pathname.indexOf(n)?t:(0,u.A)({},t,{pathname:t.pathname.substr(n.length)})}function D(e){return"string"==typeof e?e:(0,a.AO)(e)}function L(e){return function(){(0,c.A)(!1)}}function j(){}var U=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return j},t.handleBlock=function(){return j},t}(0,r.A)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,i=void 0===r?"":r,o=n.context,s=void 0===o?{}:o;s.action=t,s.location=function(e,t){return e?(0,u.A)({},t,{pathname:N(e)+t.pathname}):t}(i,(0,a.yJ)(e)),s.url=D(s.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,o=void 0===r?{}:r,s=e.location,c=void 0===s?"/":s,l=(0,h.A)(e,["basename","context","location"]),d={createHref:function(e){return N(n+D(e))},action:"POP",location:M(n,(0,a.yJ)(c)),push:this.handlePush,replace:this.handleReplace,go:L(),goBack:L(),goForward:L(),listen:this.handleListen,block:this.handleBlock};return i.createElement(w,(0,u.A)({},l,{history:d,staticContext:o}))},t}(i.Component),F=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(b.Consumer,null,function(t){t||(0,c.A)(!1);var n,r,o=e.props.location||t.location;return i.Children.forEach(e.props.children,function(e){if(null==r&&i.isValidElement(e)){n=e;var s=e.props.path||e.props.from;r=s?R(o.pathname,(0,u.A)({},e.props,{path:s})):t.match}}),r?i.cloneElement(n,{location:o,computedMatch:r}):null})},t}(i.Component);function $(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=(0,h.A)(t,["wrappedComponentRef"]);return i.createElement(b.Consumer,null,function(t){return t||(0,c.A)(!1),i.createElement(e,(0,u.A)({},r,t,{ref:n}))})};return n.displayName=t,n.WrappedComponent=e,f()(n,e)}var z=i.useContext;function B(){return z(_)}function H(){return z(b).location}function W(){var e=z(b).match;return e?e.params:{}}},57500:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>c,P4:()=>s,sY:()=>a,ti:()=>u});var r=n(19282),i=n(4693);const o=Symbol.for("sentry__originalRequestBody");function s(e){return new URLSearchParams(e).toString()}function a(e,t=r.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[s(e)];if(!e)return[void 0]}catch(n){return i.T&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return i.T&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function c(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const t=e[0][o];return void 0!==t?t:void 0}}function u(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return i.T&&r.Yz.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>
2{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}},57726:(e,t,n)=>{"use strict";n.d(t,{$N:()=>c,Hd:()=>s,xE:()=>u});var r=n(64208);const i=n(18845).O,o=80;function s(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,c=0;const u=" > ",l=u.length;let d;const h=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||o;for(;n&&s++<r&&(d=a(n,h),!("html"===d||s>1&&c+i.length*l+d.length>=p));)i.push(d),c+=d.length,n=n.parentNode;return i.reverse().join(u)}catch{return"<unknown>"}}function a(e,t){const n=e,o=[];if(!n?.tagName)return"";if(i.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const s=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(s?.length)s.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&o.push(`#${n.id}`);const e=n.className;if(e&&(0,r.Kg)(e)){const t=e.split(/\s+/);for(const e of t)o.push(`.${e}`)}}const a=["aria-label","type","name","title","alt"];for(const e of a){const t=n.getAttribute(e);t&&o.push(`[${e}="${t}"]`)}return o.join("")}function c(){try{return i.document.location.href}catch{return""}}function u(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},57968:(e,t,n)=>{"use strict";n.d(t,{KU:()=>d,m6:()=>u,o5:()=>a,rm:()=>c,v4:()=>l,vn:()=>h});var r=n(92328),i=n(95200),o=n(94988),s=n(74733);function a(){const e=(0,i.EU)();return(0,r.h)(e).getCurrentScope()}function c(){const e=(0,i.EU)();return(0,r.h)(e).getIsolationScope()}function u(){return(0,i.BY)("globalScope",()=>new o.H)}function l(...e){const t=(0,i.EU)(),n=(0,r.h)(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function d(){return a().getClient()}function h(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,o={trace_id:n,span_id:i||(0,s.Z)()};return r&&(o.parent_span_id=r),o}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},58632:(e,t,n)=>{"use strict";n.d(t,{Qh:()=>Je});var r=n(57968),i=n(26674),o=n(74611),s=n(19282),a=n(54704),c=n(84347),u=n(70333),l=n(5915),d=n(93177),h=n(31158),p=n(74733);class f{constructor(e={}){this._traceId=e.traceId||(0,p.e)(),this._spanId=e.spanId||(0,p.Z)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:l.CC}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}var m=n(75330);function g(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const n=e.attributes||{},r=n[o.Sn],i=n[o.xc];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}var y=n(88728);class v{constructor(e={}){this._traceId=e.traceId||(0,p.e)(),this._spanId=e.spanId||(0,p.Z)(),this._startTime=e.startTimestamp||(0,d.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[o.JD]:"manual",[o.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?l.aO:l.CC}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,l.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(o.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,l.cI)(e),function(e){if(!i.T)return;const{description:t="< unknown name >",op:n="< unknown op >"}=(0,l.et)(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${(0,l.zU)(e)===e?"root ":""}span "${t}" with ID ${r}`;s.Yz.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[o.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,l.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[o.JD],profile_id:this._attributes[o.E1],exclusive_time:this._attributes[o.jG],measurements:g(this._events),is_segment:this._isStandaloneSpan&&(0,l.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,l.zU)(this).spanContext().spanId:void 0,links:(0,l.uU)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){i.T&&s.Yz.log("[Tracing] Adding an event to span:",e);const r=_(t)?t:n||(0,d.zf)(),o=_(t)?{}:t||{},a={name:e,time:(0,l.cI)(r),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,r.KU)();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==(0,l.zU)(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,r.KU)();if(!t)return;const n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}((0,m.lu)([this],e)):(i.T&&s.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();t&&((0,y.L)(this).scope||(0,r.o5)()).captureEvent(t)}_convertSpanToTransaction(){if(!b((0,l.et)(this)))return;this._name||(i.T&&s.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,y.L)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=(0,l.xO)(this).filter(e=>e!==this&&!function(e){return e instanceof v&&e.isStandaloneSpan()}(e)).map(e=>(0,l.et)(e)).filter(b),a=this._attributes[o.i_];
2delete this._attributes[o.Le],r.forEach(e=>{delete e.data[o.Le]});const c={contexts:{trace:(0,l.Ck)(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,h.k1)(this)},request:n,...a&&{transaction_info:{source:a}}},u=g(this._events);return u&&Object.keys(u).length&&(i.T&&s.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),c.measurements=u),c}}function _(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function b(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}var w=n(91135),S=n(92328),E=n(95200),k=n(64208);var T=n(91773);const I="__SENTRY_SUPPRESS_TRACING__";function C(e){const t=R();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=A(e),{forceTransaction:i,parentSpan:o}=e;return(e.scope?t=>(0,r.v4)(e.scope,t):void 0!==o?e=>x(o,e):e=>e())(()=>{const t=(0,r.o5)(),s=N(t,o);return e.onlyIfParent&&!s?new f:O({parentSpan:s,spanArguments:n,forceTransaction:i,scope:t})})}function x(e,t){const n=R();return n.withActiveSpan?n.withActiveSpan(e,t):(0,r.v4)(n=>((0,u.r)(n,e||void 0),t(n)))}function O({parentSpan:e,spanArguments:t,forceTransaction:n,scope:o}){if(!(0,a.f)()){const r=new f;if(n||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,h.k1)(r)};(0,h.LZ)(r,e)}return r}const c=(0,r.rm)();let u;if(e&&!n)u=function(e,t,n){const{spanId:i,traceId:o}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[I]&&(0,l.pK)(e),a=s?new v({...n,parentSpanId:i,traceId:o,sampled:s}):new f({traceId:o});(0,l.Hu)(e,a);const c=(0,r.KU)();return c&&(c.emit("spanStart",a),n.endTimestamp&&c.emit("spanEnd",a)),a}(e,o,t),(0,l.Hu)(e,u);else if(e){const n=(0,h.k1)(e),{traceId:r,spanId:i}=e.spanContext(),s=(0,l.pK)(e);u=P({traceId:r,parentSpanId:i,...t},o,s),(0,h.LZ)(u,n)}else{const{traceId:e,dsc:n,parentSpanId:r,sampled:i}={...c.getPropagationContext(),...o.getPropagationContext()};u=P({traceId:e,parentSpanId:r,...t},o,i),n&&(0,h.LZ)(u,n)}return function(e){if(!i.T)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,l.et)(e),{spanId:o}=e.spanContext(),a=(0,l.pK)(e),c=(0,l.zU)(e),u=c===e,d=`[Tracing] Starting ${a?"sampled":"unsampled"} ${u?"root ":""}span`,h=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&h.push(`parent ID: ${r}`),!u){const{op:e,description:t}=(0,l.et)(c);h.push(`root ID: ${c.spanContext().spanId}`),e&&h.push(`root op: ${e}`),t&&h.push(`root description: ${t}`)}s.Yz.log(`${d}\n  ${h.join("\n  ")}`)}(u),(0,y.d)(u,o,c),u}function A(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=(0,l.cI)(e.startTime),delete n.startTime,n}return t}function R(){const e=(0,E.EU)();return(0,S.h)(e)}function P(e,t,n){const c=(0,r.KU)(),u=c?.getOptions()||{},{name:l=""}=e,d={spanAttributes:{...e.attributes},spanName:l,parentSampled:n};c?.emit("beforeSampling",d,{decision:!1});const h=d.parentSampled??n,p=d.spanAttributes,f=t.getPropagationContext(),[m,g,y]=t.getScopeData().sdkProcessingMetadata[I]?[!1]:function(e,t,n){if(!(0,a.f)(e))return[!1];let r,o;"function"==typeof e.tracesSampler?(o=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),r=!0):void 0!==t.parentSampled?o=t.parentSampled:void 0!==e.tracesSampleRate&&(o=e.tracesSampleRate,r=!0);const c=(0,T.i)(o);if(void 0===c)return i.T&&s.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!c)return i.T&&s.Yz.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,c,r];const u=n<c;return u||i.T&&s.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[u,c,r]}(u,{name:l,parentSampled:h,attributes:p,parentSampleRate:(0,T.i)(f.dsc?.sample_rate)},f.sampleRand),_=new v({...e,attributes:{[o.i_]:"custom",[o.sy]:void 0!==g&&y?g:void 0,...p},sampled:m});return!m&&c&&(i.T&&s.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),c.recordDroppedEvent("sample_rate","transaction")),c&&c.emit("spanStart",_),_}function N(e,t){if(t)return t;if(null===t)return;const n=(0,u.f)(e);if(!n)return;const i=(0,r.KU)();return(i?i.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,l.zU)(n):n}const M={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function D(e,t={}){const n=new Map;let p,m=!1,g="externalFinish",y=!t.disableAutoFinish;const _=[],{idleTimeout:b=M.idleTimeout,finalTimeout:S=M.finalTimeout,childSpanTimeout:E=M.childSpanTimeout,beforeSpanEnd:k,trimIdleSpanEndTimestamp:T=!0}=t,I=(0,r.KU)();if(!I||!(0,a.f)()){const e=new f,t={sample_rate:"0",sampled:"false",...(0,h.k1)(e)};return(0,h.LZ)(e,t),e}const x=(0,r.o5)(),O=(0,l.Bk)(),A=function(e){const t=C(e);return(0,u.r)((0,r.o5)(),t),i.T&&s.Yz.log("[Tracing] Started span is an i
2dle span"),t}(e);function R(){p&&(clearTimeout(p),p=void 0)}function P(e){R(),p=setTimeout(()=>{!m&&0===n.size&&y&&(g="idleTimeout",A.end(e))},b)}function N(e){p=setTimeout(()=>{!m&&y&&(g="heartbeatFailed",A.end(e))},E)}function D(e){m=!0,n.clear(),_.forEach(e=>e()),(0,u.r)(x,O);const t=(0,l.et)(A),{start_timestamp:r}=t;if(!r)return;t.data[o.fs]||A.setAttribute(o.fs,g);const a=t.status;a&&"unknown"!==a||A.setStatus({code:w.F3}),s.Yz.log(`[Tracing] Idle span "${t.op}" finished`);const c=(0,l.xO)(A).filter(e=>e!==A);let d=0;c.forEach(t=>{t.isRecording()&&(t.setStatus({code:w.TJ,message:"cancelled"}),t.end(e),i.T&&s.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,l.et)(t),{timestamp:r=0,start_timestamp:o=0}=n,a=o<=e,c=r-o<=(S+b)/1e3;if(i.T){const e=JSON.stringify(t,void 0,2);a?c||s.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):s.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&a||((0,l.VS)(A,t),d++)}),d>0&&A.setAttribute("sentry.idle_span_discarded_spans",d)}return A.end=new Proxy(A.end,{apply(e,t,n){if(k&&k(A),t instanceof f)return;const[r,...i]=n,o=r||(0,d.zf)(),s=(0,l.cI)(o),a=(0,l.xO)(A).filter(e=>e!==A),u=(0,l.et)(A);if(!a.length||!T)return D(s),Reflect.apply(e,t,[s,...i]);const h=I.getOptions().ignoreSpans,p=a?.reduce((e,t)=>{const n=(0,l.et)(t);return n.timestamp?h&&(0,c.e)(n,h)?e:e?Math.max(e,n.timestamp):n.timestamp:e},void 0),m=u.start_timestamp,g=Math.min(m?m+S/1e3:1/0,Math.max(m||-1/0,Math.min(s,p||1/0)));return D(g),Reflect.apply(e,t,[g,...i])}}),_.push(I.on("spanStart",e=>{var t;m||e===A||(0,l.et)(e).timestamp||e instanceof v&&e.isStandaloneSpan()||(0,l.xO)(A).includes(e)&&(t=e.spanContext().spanId,R(),n.set(t,!0),N((0,d.zf)()+E/1e3))})),_.push(I.on("spanEnd",e=>{var t;m||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&P((0,d.zf)()+b/1e3))})),_.push(I.on("idleSpanEnableAutoFinish",e=>{e===A&&(y=!0,P(),n.size&&N())})),t.disableAutoFinish||P(),setTimeout(()=>{m||(A.setStatus({code:w.TJ,message:"deadline_exceeded"}),g="finalTimeout",A.end())},S),A}var L=n(80491),j=n(99411);let U=!1;var F=n(18845),$=n(93908),z=n(57726),B=n(67607),H=n(46403),W=n(70125),q=n(14910),V=n(4693),K=n(43164),Y=n(18056);function G(e){return"number"==typeof e&&isFinite(e)}function J(e,t,n,{...r}){const i=(0,l.et)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),x(e,()=>{const e=C({startTime:t,...r});return e&&e.end(n),e})}function X(e){const t=(0,r.KU)();if(!t)return;const{name:n,transaction:i,attributes:o,startTime:s}=e,{release:a,environment:c,sendDefaultPii:u}=t.getOptions(),l=t.getIntegrationByName("Replay"),d=l?.getReplayId(),h=(0,r.o5)(),p=h.getUser(),f=void 0!==p?p.email||p.id||p.ip_address:void 0;let m;try{m=h.getScopeData().contexts.profile.profile_id}catch{}return C({name:n,attributes:{release:a,environment:c,user:f||void 0,profile_id:m||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":q.j.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...o},startTime:s,experimental:{standalone:!0}})}function Z(){return q.j.addEventListener&&q.j.performance}function Q(e){return e/1e3}function ee(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function te(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n),r=!0}(()=>{const e=e=>{"pagehide"!==e.type&&"hidden"!==q.j.document?.visibilityState||i("pagehide")};(0,Y.d)("visibilitychange",e,{capture:!0,once:!0}),(0,Y.d)("pagehide",e,{capture:!0,once:!0})})();const o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{n=e.spanContext().spanId,s()})}function ne(e){return e?(((0,d.k3)()||performance.timeOrigin)+e)/1e3:e}function re(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(const i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,d.k3)()||Z()?.timeOrigin?(n={...t,"http.request.redirect_start":ne(e.redirectStart),"http.request.redirect_end":ne(e.redirectEnd),"http.request.worker_start":ne(e.workerStart),"http.request.fetch_start":ne(e.fetchStart),"http.request.domain_lookup_start":ne(e.domainLookupStart),"http.request.domain_lookup_end":ne(e.domainLookupEnd),"http.request.connect_start":ne(e.connectStart),"http.request.secure_connection_start":ne(e.secureConnectionStart),"http.request.connection_end":ne(e.connectEnd),"http.request.request_start":ne(e.requestStart),"http.request.response_start":ne(e.responseStart),"http.request.response_end":ne(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(n).filter(([,e])=>null!=e))):t;var n}var ie=n(97806),oe=n(4692),se=n(30318);let ae,ce,ue=0,le={};function de({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const i=Z();if(i&&(0,d.k3)()){i.mark&&q.j.performance.mark("sentry-tracing-init");const a=t?function(e){let t,n=0;if(!ee("largest-contentful-paint"))return;const i=(0,K.Pt)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);te(e,(e,a)=>{!function(e,t,n,i){V.T&&s.Yz.log(`Sending LCP span (${e})`);const a=Q(((0,d.k3)()||0)+(t?.startTime||0)),c=(0,r.o5)().getScopeData().transactionName,u=t?(0,z.Hd)(t.element):"Largest contentful paint",l={[o.JD]:"auto.http.browser.lcp",[o.uT]:"ui.webvital.lcp",[o.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":i};t&&(t.element&&(l["lcp.element"]=(0,z.Hd)(t.element)),t.id&&(l["lcp.id"]=t.id),t.url&&(l["lcp.url"]=t.url),null!=t.loadTime&&(l["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(l["lcp.renderTime"]=t.renderTime),null!=t.size&&(l["lcp.size"]=t.size));const h=X({name:u,transaction:c,attributes:l,startTime:a});h&&(h.addEvent("lcp",{[o.Sn]:"millisecond",[o.xc]:e}),h.end(a))}(n,t,a,e),i()})}(n):(0,K.Pt)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(le.lcp={value:e.value,unit:"millisecond"},ae=t)},!0),c=(0,K.YG)(({metric:e})=>{e.entries[e.entries.length-1]&&(le.ttfb={value:e.value,unit:"millisecond"})}),u=e?function(e){let t,n=0;if(!ee("layout-shift"))return;const i=(0,K.a9)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);te(e,(e,a)=>{!function(e,t,n,i){V.T&&s.Yz.log(`Sending CLS span (${e})`);const a=t?Q(((0,d.k3)()||0)+t.startTime):(0,d.zf)(),c=(0,r.o5)().getScopeData().transactionName,u=t?(0,z.Hd)(t.sources[0]?.node):"Layout shift",l={[o.JD]:"auto.http.browser.cls",[o.uT]:"ui.webvital.cls",[o.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":i};
2t?.sources&&t.sources.forEach((e,t)=>{l[`cls.source.${t+1}`]=(0,z.Hd)(e.node)});const h=X({name:u,transaction:c,attributes:l,startTime:a});h&&(h.addEvent("cls",{[o.Sn]:"",[o.xc]:e}),h.end(a))}(n,t,a,e),i()})}(n):(0,K.a9)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(le.cls={value:e.value,unit:""},ce=t)},!0);return()=>{a?.(),c(),u?.()}}return()=>{}}function he(e,t,n,r,i=n){const s=function(e){return"secureConnection"===e?"connectEnd":"fetch"===e?"domainLookupStart":`${e}End`}(n),a=t[s],c=t[`${n}Start`];c&&a&&J(e,r+Q(c),r+Q(a),{op:`browser.${i}`,name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}var pe=n(96747);const fe=[],me=new Map,ge=new Map;const ye={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"},ve=({metric:e})=>{if(null==e.value)return;const t=Q(e.value);if(t>60)return;const n=e.entries.find(t=>t.duration===e.value&&ye[t.name]);if(!n)return;const{interactionId:i}=n,s=ye[n.name],a=Q((0,d.k3)()+n.startTime),c=(0,l.Bk)(),u=c?(0,l.zU)(c):void 0,h=null!=i?me.get(i):void 0,p=h?.span||u,f=p?(0,l.et)(p).description:(0,r.o5)().getScopeData().transactionName,m=X({name:h?.elementName||(0,z.Hd)(n.target),transaction:f,attributes:{[o.JD]:"auto.http.browser.inp",[o.uT]:`ui.interaction.${s}`,[o.jG]:n.duration},startTime:a});m&&(m.addEvent("inp",{[o.Sn]:"millisecond",[o.xc]:e.value}),m.end(a+t))};const _e=({entries:e})=>{const t=(0,l.Bk)(),n=t?(0,l.zU)(t):void 0,i=n?(0,l.et)(n).description:(0,r.o5)().getScopeData().transactionName;e.forEach(e=>{const t=e;if(!t.identifier)return;const n=t.name,s=t.renderTime,a=t.loadTime,[c,h]=a?[Q(a),"load-time"]:s?[Q(s),"render-time"]:[(0,d.zf)(),"entry-emission"],p="image-paint"===n?Q(Math.max(0,(s??0)-(a??0))):0,m={[o.JD]:"auto.ui.browser.elementtiming",[o.uT]:"ui.elementtiming",[o.i_]:"component","sentry.span_start_time_source":h,"sentry.transaction_name":i,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||"unknown","element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":s,"element.load_time":a,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":n};!function(e,t){const n=R();if(n.startSpan)return n.startSpan(e,t);const i=A(e),{forceTransaction:o,parentSpan:s,scope:a}=e,c=a?.clone();(0,r.v4)(c,()=>{return(void 0!==(n=s)?e=>x(n,e):e=>e())(()=>{const n=(0,r.o5)(),a=N(n,s),c=e.onlyIfParent&&!a?new f:O({parentSpan:a,spanArguments:i,forceTransaction:o,scope:n});return(0,u.r)(n,c),function(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return function(e,t,n,r){return(0,k.Qg)(e)?e.then(e=>(n(),r(e),e),e=>{throw t(e),n(),e}):(n(),r(e),e)}(i,t,n,r)}(()=>t(c),()=>{const{status:e}=(0,l.et)(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:w.TJ,message:"internal_error"})},()=>{c.end()})});var n})}({name:`element[${t.identifier}]`,attributes:m,startTime:c,onlyIfParent:!0},e=>{e.end(c+p)})})};var be=n(85761),we=n(62745),Se=n(54386);const Ee="sentry_previous_trace";function ke(e){return 1===e.traceFlags}var Te=n(51564),Ie=n(63944),Ce=n(64251);function xe(e={}){const t=e.client||(0,r.KU)();if(!(0,Ce.Ol)()||!t)return{};const n=(0,E.EU)(),i=(0,S.h)(n);if(i.getTraceData)return i.getTraceData(e);const o=e.scope||(0,r.o5)(),a=e.span||(0,l.Bk)(),c=a?(0,l.Qh)(a):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,$.TC)(t,r,n)}(o),u=a?(0,h.k1)(a):(0,h.ao)(t,o),d=(0,Ie.De)(u);if(!$.MI.test(c))return s.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const p={"sentry-trace":c,baggage:d};return e.propagateTraceparent&&(p.traceparent=a?(0,l.G_)(a):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,$.Iy)(t,r,n)}(o)),p}function Oe(e){return e.split(",").some(e=>e.trim().startsWith(Ie.sv))}function Ae(e,t,n,r){const i={url:(0,B.zm)(e),type:"fetch","http.method":n,[o.JD]:r,[o.uT]:"http.client"};return t&&((0,B.nt)(t)||(i["http.url"]=(0,B.zm)(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}var Re=n(35947),Pe=n(57500);function Ne(e){try{return new URL(e,Se.jf.location.origin).href}catch{return}}function Me(e){try{return new Headers(e)}catch{return}}const De=new WeakMap,Le=new Map,je={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Ue(e,t){const{traceFetch:n,traceXHR:i,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:c,enableHTTPTimings:u,tracePropagationTargets:d,onRequestSpanStart:h,onRequestSpanEnd:p}={...je,...t},m="function"==typeof c?c:e=>!0,g=e=>function(e,t){const n=(0,z.$N)();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?(0,W.Xr)(r.toString(),t)||o&&(0,W.Xr)(r.pathname,t):o}{const n=!!e.match(/^\/(?!\/)/);return t?(0,W.Xr)(e,t):n}}(e,d),y={},v=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>
2("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){const t=Le.get(e.span_id);t&&(e.timestamp=t/1e3,Le.delete(e.span_id))}}),e)),s&&(0,Te.B$)(e=>{if(e.response){const t=De.get(e.response);t&&e.endTimestamp&&Le.set(t,e.endTimestamp)}}),(0,Te.ur)(e=>{const t=function(e,t,n,i,o){if(!e.fetchData)return;const{method:s,url:c}=e.fetchData,u=(0,a.f)()&&t(c);if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=i[t];return void(n&&(u&&(function(e,t){if(t.response){(0,w.N8)(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:w.TJ,message:"internal_error"});e.end()}(n,e),function(e,t,n){const r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}(n,e,o)),delete i[t]))}const{spanOrigin:d="auto.http.browser",propagateTraceparent:h=!1}="object"==typeof o?o:{spanOrigin:o},p=!!(0,l.Bk)(),m=u&&p?C(function(e,t,n){if(e.startsWith("data:"))return{name:`${t} ${(0,B.zm)(e)}`,attributes:Ae(e,void 0,t,n)};const r=(0,B.kg)(e);return{name:`${t} ${r?(0,B.CH)(r):e}`,attributes:Ae(e,r,t,n)}}(c,s,d)):new f;if(e.fetchData.__span=m.spanContext().spanId,i[m.spanContext().spanId]=m,n(e.fetchData.url)){const t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){const i=xe({span:n,propagateTraceparent:r}),o=i["sentry-trace"],s=i.baggage,a=i.traceparent;if(!o)return;const c=t.headers||((0,k.ks)(e)?e.headers:void 0);if(c){if(function(e){return"undefined"!=typeof Headers&&(0,k.tH)(e,Headers)}(c)){const e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),r&&a&&!e.get("traceparent")&&e.set("traceparent",a),s){const t=e.get("baggage");t?Oe(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(c)){const e=[...c];c.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),r&&a&&!c.find(e=>"traceparent"===e[0])&&e.push(["traceparent",a]);const t=c.find(e=>"baggage"===e[0]&&Oe(e[1]));return s&&!t&&e.push(["baggage",s]),e}{const e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],u=n&&(Array.isArray(n)?n.find(e=>Oe(e)):Oe(n));s&&!u&&i.push(s);const l={...c,"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0};return r&&a&&!t&&(l.traceparent=a),l}}return{...i}}(t,n,(0,a.f)()&&p?m:void 0,h);r&&(e.args[1]=n,n.headers=r)}const g=(0,r.KU)();if(g){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};g.emit("beforeOutgoingRequestSpan",m,t)}return m}(e,m,g,y,{propagateTraceparent:v,onRequestSpanEnd:p});if(e.response&&e.fetchData.__span&&De.set(e.response,e.fetchData.__span),t){const n=Ne(e.fetchData.url),r=n?(0,B.Dl)(n).host:void 0;t.setAttributes({"http.url":n?(0,B.zm)(n):void 0,"server.address":r}),u&&Fe(t),h?.(t,{headers:e.headers})}})),i&&(0,Re.Mn)(e=>{const t=function(e,t,n,i,s,c){const u=e.xhr,d=u?.[Re.Er];if(!u||u.__sentry_own_request__||!d)return;const{url:h,method:p}=d,m=(0,a.f)()&&t(h);if(e.endTimestamp){const t=u.__sentry_xhr_span_id__;if(!t)return;const n=i[t];return void(n&&(m&&void 0!==d.status_code&&((0,w.N8)(n,d.status_code),n.end(),c?.(n,{headers:Me((0,Pe.ti)(u)),error:e.error})),delete i[t]))}const g=Ne(h),y=g?(0,B.Dl)(g):(0,B.Dl)(h),v=(0,B.zm)((0,B.f)(h)),_=!!(0,l.Bk)(),b=m&&_?C({name:`${p} ${v}`,attributes:{url:(0,B.zm)(h),type:"xhr","http.method":p,"http.url":g?(0,B.zm)(g):void 0,"server.address":y?.host,[o.JD]:"auto.http.browser",[o.uT]:"http.client",...y?.search&&{"http.query":y?.search},...y?.hash&&{"http.fragment":y?.hash}}}):new f;u.__sentry_xhr_span_id__=b.spanContext().spanId,i[u.__sentry_xhr_span_id__]=b,n(h)&&function(e,t,n){const{"sentry-trace":r,baggage:i,traceparent:o}=xe({span:t,propagateTraceparent:n});r&&function(e,t,n,r){const i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,i,o)}(u,(0,a.f)()&&_?b:void 0,s);const S=(0,r.KU)();return S&&S.emit("beforeOutgoingRequestSpan",b,e),b}(e,m,g,y,v,p);t&&(u&&Fe(t),h?.(t,{headers:Me(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}function Fe(e){const{url:t}=(0,l.et)(e).data;if(!t||"string"!=typeof t)return;const n=(0,K.wv)("resource",({entries:r})=>{r.forEach(r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(e.setAttributes(re(r)),setTimeout(n))})})}const $e={...M,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
2dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...je},ze=(e={})=>{const t={name:void 0,source:void 0},n=Se.jf.document,{enableInp:c,enableElementTiming:u,enableLongTask:f,enableLongAnimationFrame:m,_experiments:{enableInteractions:g,enableStandaloneClsSpans:y,enableStandaloneLcpSpans:v},beforeStartSpan:_,idleTimeout:b,finalTimeout:S,childSpanTimeout:E,markBackgroundSpan:T,traceFetch:I,traceXHR:x,trackFetchStreamPerformance:O,shouldCreateSpanForRequest:A,enableHTTPTimings:R,ignoreResourceSpans:P,ignorePerformanceApiSpans:N,instrumentPageLoad:M,instrumentNavigation:H,detectRedirects:V,linkPreviousTrace:Y,consistentTraceSampling:X,enableReportPageLoaded:ee,onRequestSpanStart:te,onRequestSpanEnd:ne}={...$e,...e};let Te,Ie,Ce;function xe(e,a,c=!0){const u="pageload"===a.op,p=a.name,f=_?_(a):a,m=f.attributes||{};if(p!==f.name&&(m[o.i_]="custom",f.attributes=m),!c){const e=(0,d.lu)();return void C({...f,startTime:e}).end(e)}t.name=f.name,t.source=m[o.i_];const g=D(f,{idleTimeout:b,finalTimeout:S,childSpanTimeout:E,disableAutoFinish:u,beforeSpanEnd:t=>{Te?.(),function(e,t){const n=Z(),r=(0,d.k3)();if(!n?.getEntries||!r)return;const a=Q(r),c=n.getEntries(),{op:u,start_timestamp:h}=(0,l.et)(e);c.slice(ue).forEach(n=>{const r=Q(n.startTime),i=Q(Math.max(0,n.duration));if(!("navigation"===u&&h&&a+r<h))switch(n.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{he(e,t,r,n)}),he(e,t,"secureConnection",n,"TLS/SSL"),he(e,t,"fetch",n,"cache"),he(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+Q(t.requestStart),i=n+Q(t.responseEnd),s=n+Q(t.responseStart);t.responseEnd&&(J(e,r,i,{op:"browser.request",name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics"}}),J(e,s,i,{op:"browser.response",name:t.name,attributes:{[o.JD]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,n,a);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i,s){if(function(e){if("measure"===e?.entryType)try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&(0,W.Xr)(t.name,s))return;const a=(0,oe.z)(!1),c=Q(a?a.requestStart:0),u=i+Math.max(n,c),l=i+n,d=l+r,h={[o.JD]:"auto.resource.browser.metrics"};u!==l&&(h["sentry.browser.measure_happened_before_request"]=!0,h["sentry.browser.measure_start_time"]=u),function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,r]of Object.entries(n))if(r&&(0,k.sO)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,k.sO)(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(h,t),u<=d&&J(e,u,d,{name:t.name,op:t.entryType,attributes:h})}(e,n,r,i,a,t.ignorePerformanceApiSpans);const s=(0,se.N)(),c=n.startTime<s.firstHiddenTime;"first-paint"===n.name&&c&&(le.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&c&&(le.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,i,s,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(c))return;const u={[o.JD]:"auto.resource.browser.metrics"},l=(0,B.Dl)(n);l.protocol&&(u["url.scheme"]=l.protocol.split(":").pop()),l.host&&(u["server.address"]=l.host),u["url.same_origin"]=n.includes(q.j.location.origin),function(e,t){[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(([n,r])=>{const i=e[n];null!=i&&("number"==typeof i&&i<2147483647||"string"==typeof i)&&(t[r]=i)})}(t,u);const d={...u,...re(t)},h=s+r;J(e,h,h+i,{name:n.replace(q.j.location.origin,""),op:c,attributes:d})}(e,n,n.name,r,i,a,t.ignoreResourceSpans)}}),ue=Math.max(c.length-1,0),function(e){const t=q.j.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),G(n.rtt)&&(le["connection.rtt"]={value:n.rtt,unit:"millisecond"})),G(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),G(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===u&&(function(e){const t=(0,oe.z)(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(le),t.recordClsOnPageloadSpan||delete le.cls,t.recordLcpOnPageloadSpan||delete le.lcp,Object.entries(le).forEach(([e,t])=>{!function(e,t,n,r=(0,l.Bk)()){const a=r&&(0,l.zU)(r);a&&(i.T&&s.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),a.addEvent(e,{[o.xc]:t,[o.Sn]:n}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",a),e.setAttribute("performance.activationStart",(0,ie.b)()),function(e,t){ae&&t.recordLcpOnPageloadSpan&&(ae.element&&e.setAttribute("lcp.element",(0,z.Hd)(ae.element)),ae.id&&e.setAttribute("lcp.id",ae.id),ae.url&&e.setAttribute("lcp.url",ae.url.trim().slice(0,200)),null!=ae.loadTime&&e.setAttribute("lcp.loadTime",ae.loadTime),null!=ae.renderTime&&e.setAttribute("lcp.renderTime",ae.renderTime),e.setAttribute("lcp.size",ae.size)),ce?.sources&&t.recordClsOnPageloadSpan&&ce.sources.forEac
2h((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,z.Hd)(t.node)))}(e,t)),ae=void 0,ce=void 0,le={}}(t,{recordClsOnPageloadSpan:!y,recordLcpOnPageloadSpan:!v,ignoreResourceSpans:P,ignorePerformanceApiSpans:N}),Ye(e,void 0);const n=(0,r.o5)(),a=n.getPropagationContext();n.setPropagationContext({...a,traceId:g.spanContext().traceId,sampled:(0,l.pK)(g),dsc:(0,h.k1)(t)}),u&&(Ce=void 0)},trimIdleSpanEndTimestamp:!ee});function w(){n&&["interactive","complete"].includes(n.readyState)&&e.emit("idleSpanEnableAutoFinish",g)}u&&ee&&(Ce=g),Ye(e,g),u&&!ee&&n&&(n.addEventListener("readystatechange",()=>{w()}),w())}return{name:"BrowserTracing",setup(e){if(function(){function e(){const e=(0,l.Bk)(),t=e&&(0,l.zU)(e);if(t){const e="internal_error";i.T&&s.Yz.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:w.TJ,message:e})}}U||(e.tag="sentry_tracingErrorCallback",U=!0,(0,L.L)(e),(0,j.r)(e))}(),Te=de({recordClsStandaloneSpans:y||!1,recordLcpStandaloneSpans:v||!1,client:e}),c&&function(){if(Z()&&(0,d.k3)()){const e=(0,K.hT)(ve);return()=>{e()}}}(),u&&Z()&&(0,d.k3)()&&(0,K.wv)("element",_e),m&&F.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{const t=(0,l.Bk)();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=Q((0,d.k3)()+n.startTime),{start_timestamp:r,op:i}=(0,l.et)(t);if("navigation"===i&&r&&e<r)continue;const s=Q(n.duration),a={[o.JD]:"auto.ui.browser.metrics"},c=n.scripts[0],{invoker:u,invokerType:h,sourceURL:p,sourceFunctionName:f,sourceCharPosition:m}=c;a["browser.script.invoker"]=u,a["browser.script.invoker_type"]=h,p&&(a["code.filepath"]=p),f&&(a["code.function"]=f),-1!==m&&(a["browser.script.source_char_position"]=m),J(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0}):f&&(0,K.wv)("longtask",({entries:e})=>{const t=(0,l.Bk)();if(!t)return;const{op:n,start_timestamp:r}=(0,l.et)(t);for(const i of e){const e=Q((0,d.k3)()+i.startTime),s=Q(i.duration);"navigation"===n&&r&&e<r||J(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[o.JD]:"auto.ui.browser.metrics"}})}}),g&&(0,K.wv)("event",({entries:e})=>{const t=(0,l.Bk)();if(t)for(const n of e)if("click"===n.name){const e=Q((0,d.k3)()+n.startTime),r=Q(n.duration),i={name:(0,z.Hd)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[o.JD]:"auto.ui.browser.metrics"}},s=(0,z.xE)(n.target);s&&(i.attributes["ui.component_name"]=s),J(t,e,e+r,i)}}),V&&n){const e=()=>{Ie=(0,d.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function t(){const t=Ke(e);t&&!(0,l.et)(t).timestamp&&(we.T&&s.Yz.log(`[Tracing] Finishing current active span with op: ${(0,l.et)(t).op}`),t.setAttribute(o.fs,"cancelled"),t.end())}e.on("startNavigationSpan",(n,i)=>{if((0,r.KU)()!==e)return;if(i?.isRedirect)return we.T&&s.Yz.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void xe(e,{op:"navigation.redirect",...n},!1);Ie=void 0,t(),(0,r.rm)().setPropagationContext({traceId:(0,p.e)(),sampleRand:Math.random(),propagationSpanId:(0,a.f)()?void 0:(0,p.Z)()});const o=(0,r.o5)();o.setPropagationContext({traceId:(0,p.e)(),sampleRand:Math.random(),propagationSpanId:(0,a.f)()?void 0:(0,p.Z)()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),xe(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(n,i={})=>{if((0,r.KU)()!==e)return;t();const o=i.sentryTrace||We("sentry-trace")||qe("sentry-trace"),s=i.baggage||We("baggage")||qe("baggage"),c=(0,$.kM)(o,s),u=(0,r.o5)();u.setPropagationContext(c),(0,a.f)()||(u.getPropagationContext().propagationSpanId=(0,p.Z)()),u.setSDKProcessingMetadata({normalizedRequest:(0,Se.AP)()}),xe(e,{op:"pageload",...n})}),e.on("endPageloadSpan",()=>{ee&&Ce&&(Ce.setAttribute(o.fs,"reportPageLoaded"),Ce.end())})},afterAllSetup(e){let n=(0,z.$N)();if("off"!==Y&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const i="session-storage"===t;let a=i?function(){try{const e=Se.jf.sessionStorage?.getItem(Ee);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,l.zU)(e)!==e)return;const t=(0,r.o5)().getPropagationContext();a=function(e,t,n){const r=(0,l.et)(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[o.sy])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;const a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(we.T&&s.Yz.log(`Adding previous_trace \`${JSON.stringify(a)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:a,attributes:{[o.Lc]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${ke(a)?1:0}`)),i)}(a,e,t),i&&function(e){try{Se.jf.sessionStorage.setItem(Ee,JSON.stringify(e))}catch(e){we.T&&s.Yz.warn("Could not store previous trace in sessionStorage",e)}}(a)});let c=!0;n&&e.on("beforeSampling",e=>
2{if(!a)return;const t=(0,r.o5)(),n=t.getPropagationContext();c&&n.parentSpanId?c=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(a.sampleRate),sampled:String(ke(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=ke(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[o.Ef]:a.sampleRate})})}(e,{linkPreviousTrace:Y,consistentTraceSampling:X}),Se.jf.location){if(M){const t=(0,d.k3)();Be(e,{name:Se.jf.location.pathname,startTime:t?t/1e3:void 0,attributes:{[o.i_]:"url",[o.JD]:"auto.pageload.browser"}})}H&&(0,be._)(({to:t,from:r})=>{if(void 0===r&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const i=(0,B.kg)(t),s=Ke(e),a=s&&V&&function(e,t){const n=(0,l.et)(e),r=(0,d.lu)();return!(r-n.start_timestamp>Ge)&&!(t&&r-t<=Ge)}(s,Ie);He(e,{name:i?.pathname||Se.jf.location.pathname,attributes:{[o.i_]:"url",[o.JD]:"auto.navigation.browser"}},{url:t,isRedirect:a})})}T&&(Se.jf.document?Se.jf.document.addEventListener("visibilitychange",()=>{const e=(0,l.Bk)();if(!e)return;const t=(0,l.zU)(e);if(Se.jf.document.hidden&&t){const e="cancelled",{op:n,status:r}=(0,l.et)(t);we.T&&s.Yz.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:w.TJ,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):we.T&&s.Yz.warn("[Tracing] Could not set up background tab detection due to lack of global document")),g&&function(e,t,n,r,i){let a;Se.jf.document&&addEventListener("click",()=>{const c="ui.action.click",u=Ke(e);if(u){const e=(0,l.et)(u).op;if(["navigation","pageload"].includes(e))return void(we.T&&s.Yz.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`))}a&&(a.setAttribute(o.fs,"interactionInterrupted"),a.end(),a=void 0),i.name?a=D({name:i.name,op:c,attributes:{[o.i_]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}):we.T&&s.Yz.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`)},{capture:!0})}(e,b,S,E,t),c&&function(){const e=Object.keys(ye);function t(e){const t=e.target;if(!t)return;const n=(0,z.Hd)(t),r=Math.round(e.timeStamp);if(ge.set(r,n),ge.size>50){const e=ge.keys().next().value;void 0!==e&&ge.delete(e)}}(0,pe.B)()&&e.forEach(e=>{q.j.addEventListener(e,t,{capture:!0,passive:!0})});const n=({entries:e})=>{const t=(0,l.Bk)(),n=t&&(0,l.zU)(t);e.forEach(e=>{if(!(0,K.tC)(e))return;const t=e.interactionId;if(null==t)return;if(me.has(t))return;const r=e.target?(0,z.Hd)(e.target):function(e){const t=Math.round(e.startTime);let n=ge.get(t);if(!n)for(let e=-5;e<=5;e++){const r=ge.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(fe.length>10){const e=fe.shift();me.delete(e)}fe.push(t),me.set(t,{span:n,elementName:r})})};(0,K.wv)("event",n),(0,K.wv)("first-input",n)}(),Ue(e,{traceFetch:I,traceXHR:x,trackFetchStreamPerformance:O,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:A,enableHTTPTimings:R,onRequestSpanStart:te,onRequestSpanEnd:ne})}}};function Be(e,t,n){e.emit("startPageLoadSpan",t,n),(0,r.o5)().setTransactionName(t.name);const i=Ke(e);return i&&e.emit("afterStartPageLoadSpan",i),i}function He(e,t,n){const{url:i,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const s=(0,r.o5)();return s.setTransactionName(t.name),i&&!o&&s.setSDKProcessingMetadata({normalizedRequest:{...(0,Se.AP)(),url:i}}),Ke(e)}function We(e){const t=Se.jf.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function qe(e){const t=Se.jf.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}const Ve="_sentry_idleSpan";function Ke(e){return e[Ve]}function Ye(e,t){(0,H.my)(e,Ve,t)}const Ge=1.5;function Je(e){const t=ze({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:s=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),function(e,t,n,r,i,s=[],a){function c(e){if(0===s.length||!a)return[e,"url"];const t=Xe(s,e,a);for(const e of t)if(e.match.isExact)return[e.match.path,"route"];return[e,"url"]}if(t){const t=r.location?r.location.pathname:Se.jf.location?Se.jf.location.pathname:void 0;if(t){const[n,r]=c(t);Be(e,{name:n,attributes:{[o.uT]:"pageload",[o.JD]:`auto.pageload.react.${i}`,[o.i_]:r}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){const[n,r]=c(t.pathname);He(e,{name:n,attributes:{[o.uT]:"navigation",[o.JD]:`auto.navigation.react.${i}`,[o.i_]:r}})}})}(e,s,a,n,"reactrouter_v5",r,i)}}}function Xe(e,t,n,r=[]){return e.some(e=>{const i=e.path?n(t,e):r.length?r[r.length-1].match:function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}}(t);return i&&(r.push({route:e,match:i}),e.routes&&Xe(e.routes,t,n,r)),!!i}),r}n(96540)}
2,59328:(e,t,n)=>{"use strict";n.d(t,{Vu:()=>a,fj:()=>o,qO:()=>s});var r=n(9600),i=n(93177);function o(e){const t=(0,i.zf)(),n={sid:(0,r.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function a(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},60436:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(43145),i=n(73893),o=n(27800);function s(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,i.A)(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},61221:(e,t,n)=>{"use strict";n.d(t,{i:()=>d});var r=n(13235),i=n(9600),o=n(46403),s=n(14910);const a=1e3;let c,u,l;function d(e){(0,r.s5)("dom",e),(0,r.AS)("dom",h)}function h(){if(!s.j.document)return;const e=r.aj.bind(null,"dom"),t=p(e,!0);s.j.document.addEventListener("click",t,!1),s.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=s.j,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,o.GS)(r,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){const r=p(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch{}return t.call(this,n,r,i)}}),(0,o.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function p(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;(0,o.my)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,o.my)(r,"_sentryId",(0,i.eJ)());const d="keypress"===n.type?"input":n.type;(function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==l)return!1}catch{}return!0})(n)||(e({event:n,name:d,global:t}),u=n.type,l=r?r._sentryId:void 0),clearTimeout(c),c=s.j.setTimeout(()=>{l=void 0,u=void 0},a)}}},61225:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>l,Ng:()=>H,wA:()=>G,Pj:()=>V});var r=n(96540),i=r.createContext(null),o=function(e){e()},s=function(){return o},a={notify:function(){},get:function(){return[]}};function c(e,t){var n,r=a;function i(){c.onStateChange&&c.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){var e=s(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var c={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=a)},getListeners:function(){return r}};return c}var u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const l=function(e){var t=e.store,n=e.context,o=e.children,s=(0,r.useMemo)(function(){var e=c(t);return{store:t,subscription:e}},[t]),a=(0,r.useMemo)(function(){return t.getState()},[t]);u(function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[s,a]);var l=n||i;return r.createElement(l.Provider,{value:s},o)};var d=n(58168),h=n(98587),p=n(4146),f=n.n(p),m=n(54737),g=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],y=["reactReduxForwardedRef"],v=[],_=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){u(function(){return e.apply(void 0,t)},n)}function S(e,t,n,r,i,o,s){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,s())}function E(e,t,n,r,i,o,s,a,c,u){if(e){var l=!1,d=null,h=function(){if(!l){var e,n,h=t.getState();try{e=r(h,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?s.current||c():(o.current=e,a.current=e,s.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=h,n.trySubscribe(),h(),function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function T(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,s=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,a=n.methodName,u=void 0===a?"connectAdvanced":a,l=n.renderCountProp,p=void 0===l?void 0:l,T=n.shouldHandleStateChanges,I=void 0===T||T,C=n.storeKey,x=void 0===C?"store":C,O=(n.withRef,n.forwardRef),A=void 0!==O&&O,R=n.context,P=void 0===R?i:R,N=(0,h.A)(n,g),M=P;return function(t){var n=t.displayName||t.name||"Component",i=s(n),o=(0,d.A)({},N,{getDisplayName:s,methodName:u,renderCountProp:p,shouldHandleStateChanges:I,storeKey:x,displayName:i,wrappedComponentName:n,WrappedComponent:t}),a=N.pure,l=a?r.useMemo:function(e){return e()};function g(n){var i=(0,r.useMemo)(function(){var e=n.reactReduxForwardedRef,t=(0,h.A)(n,y);return[n.context,e,t]},[n]),s=i[0],a=i[1],u=i[2],p=(0,r.useMemo)(function(){return s&&s.Consumer&&(0,m.isContextConsumer)(r.createElement(s.Consumer,null))?s:M},[s,M]),f=(0,r.useContext)(p),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(f)&&Boolean(f.store);var T=g?n.store:f.store,C=(0,r.useMemo)(function(){return function(t){return e(t.dispatch,o)}(T)},[T]),x=(0,r.useMemo)(function(){if(!I)return _;var e=c(T,g?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[T,g,f]),O=x[0],A=x[1],R=(0,r.useMemo)(function(){return g?f:(0,d.A)({},f,{subscription:O})},[g,f,O]),P=(0,r.useReducer)(b,v,k),N=P[0][0],D=P[1];if(N&&N.error)throw N.error;var L=(0,r.useRef)(),j=(0,r.useRef)(u),U=(0,r.useRef)(),F=(0,r.useRef)(!1),$=l(function(){return U.current&&u===j.current?U.current:C(T.getState(),u)},[T,N,u]);w(S,[j,L,F,u,$,U,A]),w(E,[I,T,O,C,j,L,F,U,A,D],[T,O,C]);var z=(0,r.useMemo)(function(){return r.createElement(t,(0,d.A)({},$,{ref:a}))},[a,t,$]);return(0,r.useMemo)(function(){return I?r.createElement(p.Provider,{value:R},z):z},[p,z,R])}var T=a?r.memo(g):g;if(T.WrappedComponent=t,T.displayName=g.displayName=i,A){var C=r.forwardRef(function(e,t){return r.createElement(T,(0,d.A)({},e,{reactReduxForwardedRef:t}))});return C.displayName=i,C.WrappedComponent=t,f()(C,t)}return f()(T,t)}}function I(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(I(e,t))return!0;
2if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!I(e[n[i]],t[n[i]]))return!1;return!0}function x(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function O(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=O(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=O(i),i=r(t,n)),i},r}}const R=[function(e){return"function"==typeof e?A(e):void 0},function(e){return e?void 0:x(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?x(function(t){return function(e,t){var n={},r=function(r){var i=e[r];"function"==typeof i&&(n[r]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)r(i);return n}(e,t)}):void 0}],P=[function(e){return"function"==typeof e?A(e):void 0},function(e){return e?void 0:x(function(){return{}})}];function N(e,t,n){return(0,d.A)({},n,e,t)}const M=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,s=!1;return function(t,n,a){var c=e(t,n,a);return s?i&&o(c,r)||(r=c):(s=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return N}}];var D=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function L(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function j(e,t,n,r,i){var o,s,a,c,u,l=i.areStatesEqual,d=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1;return function(i,f){return p?function(i,p){var f,m,g=!d(p,s),y=!l(i,o,p,s);return o=i,s=p,g&&y?(a=e(o,s),t.dependsOnOwnProps&&(c=t(r,s)),u=n(a,c,s)):g?(e.dependsOnOwnProps&&(a=e(o,s)),t.dependsOnOwnProps&&(c=t(r,s)),u=n(a,c,s)):y?(f=e(o,s),m=!h(f,a),a=f,m&&(u=n(a,c,s)),u):u}(i,f):(a=e(o=i,s=f),c=t(r,s),u=n(a,c,s),p=!0,u)}}function U(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=(0,h.A)(t,D),s=n(e,o),a=r(e,o),c=i(e,o);return(o.pure?j:L)(s,a,c,e,o)}var F=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function $(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}function B(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?T:n,i=t.mapStateToPropsFactories,o=void 0===i?P:i,s=t.mapDispatchToPropsFactories,a=void 0===s?R:s,c=t.mergePropsFactories,u=void 0===c?M:c,l=t.selectorFactory,p=void 0===l?U:l;return function(e,t,n,i){void 0===i&&(i={});var s=i,c=s.pure,l=void 0===c||c,f=s.areStatesEqual,m=void 0===f?z:f,g=s.areOwnPropsEqual,y=void 0===g?C:g,v=s.areStatePropsEqual,_=void 0===v?C:v,b=s.areMergedPropsEqual,w=void 0===b?C:b,S=(0,h.A)(s,F),E=$(e,o,"mapStateToProps"),k=$(t,a,"mapDispatchToProps"),T=$(n,u,"mergeProps");return r(p,(0,d.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:k,initMergeProps:T,pure:l,areStatesEqual:m,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:w},S))}}const H=B();function W(){return(0,r.useContext)(i)}function q(e){void 0===e&&(e=i);var t=e===i?W:function(){return(0,r.useContext)(e)};return function(){return t().store}}var V=q();function K(e){void 0===e&&(e=i);var t=e===i?V:q(e);return function(){return t().dispatch}}var Y,G=K();Y=n(40961).unstable_batchedUpdates,o=Y},62245:(e,t,n)=>{"use strict";n.d(t,{tH:()=>f});var r=n(57968),i=n(19282),o=n(64251),s=n(20144),a=n(62745),c=n(54386);function u(e={}){const t=c.jf.document,n=t?.head||t?.body;if(!n)return void(a.T&&i.Yz.error("[showReportDialog] Global document not defined"));const u=(0,r.o5)(),l=(0,r.KU)(),d=l?.getDsn();if(!d)return void(a.T&&i.Yz.error("[showReportDialog] DSN not configured"));const h={...e,user:{...u.getUser(),...e.user},eventId:e.eventId||(0,o.Q)()},p=c.jf.document.createElement("script");p.async=!0,p.crossOrigin="anonymous",p.src=(0,s.k)(d,h);const{onLoad:f,onClose:m}=h;if(f&&(p.onload=f),m){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{m()}finally{c.jf.removeEventListener("message",e)}};c.jf.addEventListener("message",e)}n.appendChild(p)}var l=n(96540);const d="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var h=n(64208);const p={componentStack:null,error:null,eventId:null};class f extends l.Component{constructor(e){super(e),this.state=p,this._openFallbackReportDialog=!0;const t=(0,r.KU)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&u({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){const{componentStack:n}=t,{beforeCapture:i,onError:s,showDialog:a,dialogOptions:c}=this.props;(0,r.v4)(d=>{i&&i(d,e,n);const p=null!=this.props.handled?this.props.handled:!!this.props.fallback,f=function(e,{componentStack:t},n){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(l.version)&&(0,h.bJ)(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}return(0,r.v4)(r=>(r.setContext("react",{componentStack:t}),(0,o.Cp)(e,n)))}(e,t,{mechanism:{handled:p,type:"auto.function.react.error_boundary"}});s&&s(e,n,f),a&&(this._lastEventId=f,this._openFallbackReportDialog&&u({...c,eventId:f})),this.setState({error:e,componentStack:n,eventId:f})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===p?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(p)}render(){const{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;const r="function"==typeof e?l.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return l.isValidElement(r)?r:(e&&d&&i.Yz.warn("fallback did not produce a valid ReactElement"),null)}}},62745:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},62885:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(58168),i=n(73317),o="@global",s=function(){function e(e,t,n){for(var s in this.type="global",this.at=o,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new i.VZ((0,r.A)({},n,{parent:this})),t)this.rules.add(s,t[s]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),a=function(){function e(e,t,n){this.type="global",this.at=o,this.isProcessed=!1,this.key=e,this.options=n;var i=e.substr(8);this.rule=n.jss.createRule(i,t,(0,r.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),c=/\s*,\s*/g;function u(e,t){for(var n=e.split(c),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const l=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===o)return new s(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new a(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,i=e.style,s=i?i[o]:null;if(s){for(var a in s)t.addRule(a,s[a],(0,r.A)({},n,{selector:u(a,e.selector)}));delete i[o]}}(e,t),function(e,t){var n=e.options,i=e.style;for(var s in i)if("@"===s[0]&&s.substr(0,7)===o){var a=u(s.substr(7),e.selector);t.addRule(a,i[s],(0,r.A)({},n,{selector:a})),delete i[s]}}(e,t))}}}},63009:function(e,t,n){var r;e.exports=(r=n(19021),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;
2r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(a[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var u=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var f=u[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=u[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=m+u[p-7]+y+u[p-16]}var v=r&i^r&o^i&o,_=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&d)+c[p]+u[p];h=d,d=l,l=a,a=s+b|0,s=o,o=i,i=r,r=b+(_+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),r.SHA256)},63424:(e,t,n)=>{"use strict";n.d(t,{$b:()=>i,Ey:()=>d,He:()=>l,Vy:()=>u});const r=[];var i;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(i||(i={}));const o={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},s=i.INFO,a={[i.DEBUG]:"log",[i.VERBOSE]:"log",[i.INFO]:"info",[i.WARN]:"warn",[i.ERROR]:"error"},c=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),i=a[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${r}]  ${e.name}:`,...n)};class u{constructor(e){this.name=e,this._logLevel=s,this._logHandler=c,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in i))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?o[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,i.DEBUG,...e),this._logHandler(this,i.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,i.VERBOSE,...e),this._logHandler(this,i.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,i.INFO,...e),this._logHandler(this,i.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,i.WARN,...e),this._logHandler(this,i.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,i.ERROR,...e),this._logHandler(this,i.ERROR,...e)}}function l(e){r.forEach(t=>{t.setLogLevel(e)})}function d(e,t){for(const n of r){let r=null;t&&t.level&&(r=o[t.level]),n.userLogHandler=null===e?null:(t,n,...o)=>{const s=o.map(e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(e=>e).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:i[n].toLowerCase(),message:s,args:o,type:t.name})}}}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},63940:(e,t,n)=>{"use strict";n.d(t,{w:()=>mr});var r=n(18845),i=n(94837),o=n(46403),s=n(57726),a=n(93177),c=n(6810),u=n(19282),l=n(27879),d=n(64251),h=n(9600),p=n(57968),f=n(5915),m=n(31158),g=n(67607);function y(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var v=n(70125),_=n(72808),b=n(49158),w=n(36227),S=n(74611),E=n(96747),k=n(91773),T=n(3594),I=n(43164),C=n(57500),x=n(35947),O=n(61221),A=n(85761);const R=r.O,P="sentryReplaySession",N="Unable to send Replay",M=15e4,D=5e3,L=2e7;var j=Object.defineProperty,U=(e,t,n)=>((e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),F=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(F||{});function $(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function B(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,H).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function H(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=B(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,i=r[n],o=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class W{constructor(){U(this,"idNodeMap",new Map),U(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);
2this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function q({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function V({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function K(e){return e.toLowerCase()}function Y(e){return e.toUpperCase()}const G="__rrweb_original__";function J(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?K(t):null}function X(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Z(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const Q={};function ee(e){const t=Q[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return Q[e]=r.bind(window)}function te(...e){return ee("setTimeout")(...e)}function ne(...e){return ee("clearTimeout")(...e)}function re(e){try{return e.contentDocument}catch(e){}}let ie=1;const oe=new RegExp("[^a-z0-9-_:]");function se(){return ie++}let ae,ce;const ue=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,le=/^(?:[a-z+]+:)?\/\//i,de=/^www\..*/i,he=/^(data:)([^,]*),(.*)/i;function pe(e,t){return(e||"").replace(ue,(e,n,r,i,o,s)=>{const a=r||o||s,c=n||i||"";if(!a)return e;if(le.test(a)||de.test(a))return`url(${c}${a}${c})`;if(he.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`})}const fe=/^[^ \t\n\r\u000c]+/,me=/^[, \t\n\r\u000c]+/,ge=new WeakMap;function ye(e,t){return t&&""!==t.trim()?ve(e,t):t}function ve(e,t){let n=ge.get(e);if(n||(n=e.createElement("a"),ge.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function _e(e,t,n,r,i,o,s){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0]))return ye(e,r);if("xlink:href"===n&&"#"!==r[0])return ye(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return ye(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}const i=[];for(;r(me),!(n>=t.length);){let o=r(fe);if(","===o.slice(-1))o=ye(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=ye(e,o);let s=!1;for(;;){const e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r);if("style"===n){let t=pe(r,ve(e));return s&&s.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{const n=e.split(";"),r=[];for(let e of n){if(e=e.trim(),!e)continue;const n=e.indexOf(":");if(-1===n){r.push(e);continue}const i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,s)),t}return"object"===t&&"data"===n?ye(e,r):"function"==typeof o?o(n,r,i):r}function be(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function we(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:we(e.parentNode,t,n,r+1):-1}function Se(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Ee(e,t,n,r,i,o){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(o){if(c=we(s,Se(r,i)),c<0)return!0;a=we(s,Se(t,n),c>=0?c:1/0)}else{if(a=we(s,Se(t,n)),a<0)return!1;c=we(s,Se(r,i),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!o)}catch(e){}return!!o}function ke(e){return null==e?"":e.toLowerCase()}function Te(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:h=!1,inl
2ineStylesheet:p=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k=5e3,onBlockedImageLoad:T,onStylesheetLoad:I,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:O=!1,ignoreCSSAttributes:A}=t;let{preserveWhiteSpace:R=!0}=t;const P=function(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:w=!1,ignoreCSSAttributes:S}=t,E=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:F.Document,childNodes:[],compatMode:e.compatMode}:{type:F.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:F.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:h,keepIframeSrcFn:p,newlyAddedElement:f=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:_,ignoreCSSAttributes:b}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,i,o),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=K(e.tagName);return oe.test(t)?"div":t}(e);let E={};const k=e.attributes.length;for(let t=0;t<k;t++){const r=e.attributes[t];r.name&&!be(S,r.name,r.value)&&(E[r.name]=_e(n,S,K(r.name),r.value,e,c,b))}if("link"===S&&s){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=B(t)),r&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=pe(r,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=B(e.sheet);t&&(E._cssText=pe(t,ve(n)))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const t=e,n=J(t),r=X(t,Y(S),n),i=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Ee(t,g,v,y,_,q({type:n,tagName:Y(S),maskInputOptions:a}));E.value=V({isMasked:e,element:t,value:r,maskInputFn:u})}i&&(E.checked=i)}if("option"===S&&(e.selected&&!a.select?E.selected=!0:delete E.selected),"canvas"===S&&h)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const i=t.getImageData,o=G in i?i[G]:i;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(l.type,l.quality)&&(E.rr_dataURL=t)}if("img"===S&&d){ae||(ae=n.createElement("canvas"),ce=ae.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",i=t.crossOrigin,o=()=>{t.removeEventListener("load",o);try{ae.width=t.naturalWidth,ae.height=t.naturalHeight,ce.drawImage(t,0,0),E.rr_dataURL=ae.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(i?E.crossOrigin=i:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?o():t.addEventListener("load",o)}if("audio"!==S&&"video"!==S||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),f||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),w){const{width:t,height:n}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${n}px`}}let T;"iframe"!==S||p(E.src)||(w||re(e)||(E.rr_src=E.src),delete E.src);try{customElements.get(S)&&(T=!0)}catch(e){}return{type:F.Element,tagName:S,attributes:E,childNodes:[],isSVG:(I=e,Boolean("svg"===I.tagName||I.ownerSVGElement)||void 0),needBlock:w,rootId:m,isCustom:T};var I}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:w,rootId:E,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,ignoreCSSAttributes:S});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let h=e.textContent;const p="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&h){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(h=B(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}h=pe(h,ve(t.doc))}f&&(h="SCRIPT_PLACEHOLDER");const g=Ee(e,r,o,i,s,n);return p||f||m||!h||!g||(h=a?a(h,e.parentElement):h.replace(/[\S]/g,"*")),m&&h&&(c.textarea||g)&&(h=u?u(h,e.parentNode):h.replace(/[\S]/g,"*")),"OPTION"===d&&h&&(h=V({isMasked:Ee(e,r,o,i,s,q({type:null,tagName:d,maskInputOptions:c})),element:e,value:h,maskInputFn:u})),{type:F.Text,textContent:h||"",isStyle:p,rootId:l}}(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:E});case e.CDATA_SECTION_NODE:return{type:F.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:F.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:_,inlineImages:b,recordCanvas:w,keepIframeSrcFn:x,newlyAddedElement:O,ignoreCSSAttributes:A});if(!P)return console.warn(e,"not serialized"),null;let N;N=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===F.Comment)return!0;
2if(e.type===F.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Z(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ke(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ke(e.attributes.name)||"icon"===ke(e.attributes.rel)||"apple-touch-icon"===ke(e.attributes.rel)||"shortcut icon"===ke(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ke(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ke(e.attributes.property).match(/^(og|twitter|fb):/)||ke(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ke(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ke(e.attributes.name)||"googlebot"===ke(e.attributes.name)||"bingbot"===ke(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ke(e.attributes.name)||"generator"===ke(e.attributes.name)||"framework"===ke(e.attributes.name)||"publisher"===ke(e.attributes.name)||"progid"===ke(e.attributes.name)||ke(e.attributes.property).match(/^article:/)||ke(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ke(e.attributes.name)||"yandex-verification"===ke(e.attributes.name)||"csrf-token"===ke(e.attributes.name)||"p:domain_verify"===ke(e.attributes.name)||"verify-v1"===ke(e.attributes.name)||"verification"===ke(e.attributes.name)||"shopify-checkout-api-token"===ke(e.attributes.name)))return!0}}return!1}(P,v)&&(R||P.type!==F.Text||P.isStyle||P.textContent.replace(/^\s+|\s+$/gm,"").length)?se():-2;const M=Object.assign(P,{id:N});if(r.add(e,M),-2===N)return null;S&&S(e);let D=!h;if(M.type===F.Element){D=D&&!M.needBlock;const t=e.shadowRoot;t&&z(t)&&(M.isShadowHost=!0)}if((M.type===F.Document||M.type===F.Element)&&D){v.headWhitespace&&M.type===F.Element&&"head"===M.tagName&&(R=!1);const t={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:h,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onBlockedImageLoad:T,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:x,ignoreCSSAttributes:A},O=e.childNodes?Array.from(e.childNodes):[];for(const e of O){const n=Te(e,t);n&&M.childNodes.push(n)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Te(n,t);r&&(z(e.shadowRoot)&&(r.isShadow=!0),M.childNodes.push(r))}}if(e.parentNode&&$(e.parentNode)&&z(e.parentNode)&&(M.isShadow=!0),M.type!==F.Element||"iframe"!==M.tagName||M.needBlock||function(e,t,n){const r=e.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch(e){return}if("complete"!==i){const r=te(()=>{o||(t(),o=!0)},n);return void e.addEventListener("load",()=>{ne(r),o=!0,t()})}const s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return te(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=re(e);if(t&&E){const n=Te(t,{doc:t,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:x,ignoreCSSAttributes:A});n&&E(e,n)}},k),M.type===F.Element&&"img"===M.tagName&&!e.complete&&M.needBlock){const t=e,n=()=>{if(t.isConnected&&!t.complete&&T)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,M,e)}catch(e){}t.removeEventListener("load",n)};t.isConnected&&t.addEventListener("load",n)}return M.type===F.Element&&"link"===M.tagName&&"string"==typeof M.attributes.rel&&("stylesheet"===M.attributes.rel||"preload"===M.attributes.rel&&"string"==typeof M.attributes.href&&"css"===Z(M.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;const o=te(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{ne(o),i=!0,t()})}(e,()=>{if(I){const t=Te(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:R,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:I,stylesheetLoadTimeout:C,keepIframeSrcFn:x,ignoreCSSAttributes:A});t&&I(e,t)}},C),M.type===F.Element&&delete M.needBlock,M}function Ie(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Ce="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let xe={map:{},getId:()=>(console.error(Ce),-1),getNode:()=>(console.error(Ce),null),removeNodeFromMap(){console.error(Ce)},has:()=>(console.error(Ce),!1),reset(){console.error(Ce)}};function Oe(e,t,n={}){let r=null,i=0;return function(...o){const s=Date.now();i||!1!==n.leading||(i=s);const a=t-(s-i),c=this;a<=0||a>t?(r&&(function(...e){Ye("clearTimeout")(...e)}
2(r),r=null),i=s,e.apply(c,o)):r||!1===n.trailing||(r=Ge(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)},a))}}function Ae(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){Ge(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Ae(e,t,o||{},!0)}function Re(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(xe=new Proxy(xe,{get:(e,t,n)=>("map"===t&&console.error(Ce),Reflect.get(e,t,n))}));let Pe=Date.now;function Ne(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Me(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function De(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Le(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function je(e,t,n,r,i){if(!e)return!1;const o=Le(e);if(!o)return!1;const s=Se(t,n);if(!i){const e=r&&o.matches(r);return s(o)&&!e}const a=we(o,s);let c=-1;return!(a<0)&&(r&&(c=we(o,Se(null,r))),a>-1&&c<0||a<c)}function Ue(e,t){return-2===t.getId(e)}function Fe(e,t){if($(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Fe(e.parentNode,t))}function $e(e){return Boolean(e.changedTouches)}function ze(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Be(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function He(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Pe=()=>(new Date).getTime());class We{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function qe(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ve(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=qe(n);)n=t;return n}(e);return t.contains(n)}(e))}const Ke={};function Ye(e){const t=Ke[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return Ke[e]=r.bind(window)}function Ge(...e){return Ye("setTimeout")(...e)}var Je=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Je||{}),Xe=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Xe||{}
2),Ze=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ze||{}),Qe=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Qe||{}),et=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(et||{});function tt(e){try{return e.contentDocument}catch(e){}}function nt(e){return"__ln"in e}class rt{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&nt(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&nt(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const it=(e,t)=>`${e}@${t}`;class ot{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new rt,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!Ve(i))return;const o=$(i.parentNode)?this.mirror.getId(qe(i)):this.mirror.getId(i.parentNode),s=r(i);if(-1===o||-1===s)return n.addNode(i);const a=Te(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ze(e,this.mirror)&&!je(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Be(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),He(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{je(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});a&&(e.push({parentId:o,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)at(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)ct(this.droppedSet,e)||at(this.removes,e,this.mirror)?ct(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);
2if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}const s={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!Ue(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;je(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Ee(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Le(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=J(t),i=t.tagName;r=X(t,i,n);const o=q({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=V({isMasked:Ee(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(je(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(tt(t))return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
2,this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!be(t.tagName,n)&&(i.attributes[n]=_e(this.doc,K(t.tagName),K(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?i.styleDiff[e]=""===o?r:[r,o]:i._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(je(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=$(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);je(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ue(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(st(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Fe(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[it(n,r)]?st(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!$(e.target)||!z(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Ue(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[it(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);je(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),He(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function st(e,t){e.delete(t),t.childNodes?.forEach(t=>st(e,t))}function at(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function ct(e,t){return 0!==e.size&&ut(e,t)}function ut(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||ut(e,n))}let lt;const dt=e=>lt?(...t)=>{try{return e(...t)}catch(e){if(lt&&!0===lt(e))return()=>{};throw e}}:e,ht=[];function pt(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function ft(e,t){const n=new ot;ht.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);const o=new r(dt(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function mt({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){return Ie("scroll",dt(Oe(dt(s=>{const a=pt(s);if(!a||je(a,r,i,o,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Ne(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})}),s.scroll||100)),t)}const gt=["INPUT","TEXTAREA","SELECT"],yt=new WeakMap;function vt({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:h,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=pt(e);const l=e.isTrusted,g=n&&Y(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||gt.indexOf(g)<0||je(n,r,i,o,!0))return;const v=n;if(v.classList.contains(s)||a&&v.matches(a))return;const _=J(n);let b=X(v,g,_),w=!1;const S=q({maskInputOptions:c,tagName:g,type:_}),E=Ee(n,h,f,p,m,S);"radio"!==_&&"checkbox"!==_||(w=n.checked),b=V({isMasked:E,element:n,value:b,maskInputFn:u}),y(n,d?{text:b,isChecked:w,userTriggered:l}:{text:b,isChecked:w});const k=n.name;"radio"===_&&k&&w&&t.querySelectorAll(`input[type="radio"][name="${k}
2"]`).forEach(e=>{if(e!==n){const t=V({isMasked:E,element:e,value:X(e,g,_),maskInputFn:u});y(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function y(t,r){const i=yt.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){yt.set(t,r);const i=n.getId(t);dt(e)({...r,id:i})}}const v=("last"===l.input?["change"]:["input","change"]).map(e=>Ie(e,dt(g),t)),_=t.defaultView;if(!_)return()=>{v.forEach(e=>e())};const b=_.Object.getOwnPropertyDescriptor(_.HTMLInputElement.prototype,"value"),w=[[_.HTMLInputElement.prototype,"value"],[_.HTMLInputElement.prototype,"checked"],[_.HTMLSelectElement.prototype,"value"],[_.HTMLTextAreaElement.prototype,"value"],[_.HTMLSelectElement.prototype,"selectedIndex"],[_.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&v.push(...w.map(e=>Ae(e[0],e[1],{set(){dt(g)({target:this,isTrusted:!1})}},!1,_))),dt(()=>{v.forEach(e=>e())})}function _t(e){return function(e,t){if(Et("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Et("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Et("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Et("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function bt(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function wt({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const i="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,o=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){const n=o.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),dt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function St(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=ft(e,e.doc));const i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=Oe(dt(t=>{const n=Date.now()-s;e(a.map(e=>(e.timeOffset-=n,e)),t),a=[],s=null}),o),u=dt(Oe(dt(e=>{const t=pt(e),{clientX:n,clientY:i}=$e(e)?e.changedTouches[0]:e;s||(s=Pe()),a.push({x:n,y:i,id:r.getId(t),timeOffset:Pe()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Xe.Drag:e instanceof MouseEvent?Xe.MouseMove:Xe.TouchMove)}),i,{trailing:!1})),l=[Ie("mousemove",u,n),Ie("touchmove",u,n),Ie("drag",u,n)];return dt(()=>{l.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(Ze).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]).forEach(s=>{let a=K(s);const l=(t=>s=>{const a=pt(s);if(je(a,r,i,o,!0))return;let c=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=Qe.Mouse;break;case"touch":c=Qe.Touch;break;case"pen":c=Qe.Pen}c===Qe.Touch?Ze[t]===Ze.MouseDown?l="TouchStart":Ze[t]===Ze.MouseUp&&(l="TouchEnd"):Qe.Pen}else $e(s)&&(c=Qe.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Qe.Touch||l.startsWith("Mouse")&&c===Qe.Mouse)&&(c=null)):Ze[t]===Ze.Click&&(c=u,u=null);const d=$e(s)?s.changedTouches[0]:s;if(!d)return;const h=n.getId(a),{clientX:p,clientY:f}=d;dt(e)({type:Ze[l],id:h,x:p,y:f,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(Ze[s]){case Ze.MouseDown:case Ze.MouseUp:a=a.replace("mouse","pointer");break;case Ze.TouchStart:case Ze.TouchEnd:return}c.push(Ie(a,l,t))}),dt(()=>
vendor: 4,642 bytes, line 2
2{c.forEach(e=>e())})}(e),s=mt(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Ie("resize",dt(Oe(dt(()=>{const t=Me(),i=De();n===t&&r===i||(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:n}),c=vt(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){const a=dt(s=>Oe(dt(o=>{const a=pt(o);if(!a||je(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:s,id:i.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})}),o.media||500)),c=[Ie("play",a(et.Play),s),Ie("pause",a(et.Pause),s),Ie("seeked",a(et.Seeked),s),Ie("volumechange",a(et.VolumeChange),s),Ie("ratechange",a(et.RateChange),s)];return dt(()=>{c.forEach(e=>e())})}(e);let l=()=>{},d=()=>{},h=()=>{},p=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:dt((r,i,o)=>{const[s,a]=o,{id:c,styleId:u}=bt(i,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),r.apply(i,o)})});const o=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:dt((r,i,o)=>{const[s]=o,{id:a,styleId:c}=bt(i,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),r.apply(i,o)})}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:dt((r,i,o)=>{const[s]=o,{id:a,styleId:c}=bt(i,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),r.apply(i,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:dt((r,i,o)=>{const[s]=o,{id:a,styleId:c}=bt(i,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),r.apply(i,o)})}));const c={};kt("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(kt("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),kt("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),kt("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([r,i])=>{u[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[r].insertRule,{apply:dt((r,i,o)=>{const[s,a]=o,{id:c,styleId:u}=bt(i.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[..._t(i),a||0]}]}),r.apply(i,o)})}),i.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:dt((r,i,o)=>{const[s]=o,{id:a,styleId:c}=bt(i.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[..._t(i),s]}]}),r.apply(i,o)})})}),dt(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=wt(e,e.doc),h=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:dt((i,s,a)=>{const[c,u,l]=a;if(n.has(c))return o.apply(s,[c,u,l]);const{id:d,styleId:h}=bt(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||h&&-1!==h)&&e({id:d,styleId:h,set:{property:c,value:u,priority:l},index:_t(s.parentRule)}),i.apply(s,a)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:dt((i,o,a)=>{const[c]=a;if(n.has(c))return s.apply(o,[c]);const{id:u,styleId:l}=bt(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:_t(o.parentRule)}),i.apply(o,a)})}),dt(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=Re(t.fonts,"add",function(t){return function(n){return Ge(dt(()=>{const t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(s),dt(()=>
2{r.forEach(e=>e())})}(e)));const f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=e;let a=!0;const c=dt(()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const s=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=s;je(a,r,i,o,!0)||je(l,r,i,o,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}s({ranges:c})});return c(),Ie("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Re(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return dt(()=>{ht.forEach(e=>e.reset()),r?.disconnect(),i(),o(),s(),a(),c(),u(),l(),d(),h(),p(),f(),m(),g.forEach(e=>e())})}function Et(e){return void 0!==window[e]}function kt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Tt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
2getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class It{constructor(){this.crossOriginIframeMirror=new Tt(se),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Ct{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Tt(se),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Tt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const n=tt(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Je.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Je.IncrementalSnapshot,data:{source:Xe.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Je.Meta:case Je.Load:case Je.DomContentLoaded:return!1;case Je.Plugin:return t;case Je.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Je.IncrementalSnapshot:switch(t.data.source){case Xe.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Xe.Drag:case Xe.TouchMove:case Xe.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case Xe.ViewportResize:return!1;case Xe.MediaInteraction:case Xe.MouseInteraction:case Xe.Scroll:case Xe.CanvasMutation:case Xe.Input:return this.replaceIds(t.data,e,["id"]),t;case Xe.StyleSheetRule:case Xe.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Xe.Font:return t;case Xe.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case Xe.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(const i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
2h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===F.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class xt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Ot{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!z(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=ft({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(mt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Ge(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(wt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=tt(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Re(e.prototype,"attachShadow",function(e){return function(r){const i=e.call(this,r);return this.shadowRoot&&Ve(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var At="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Rt=0;Rt<64;Rt++)At["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Rt)]=Rt;class Pt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Nt{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new We,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:H(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Mt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){Ye("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let Dt,Lt;try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const jt=new W;function Ut(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:h=null,unmaskTextSelector:p=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,maxCanvasSize:w=null,packFn:S,sampling:E={},dataURLOptions:k={},mousemoveWait:T,recordDOM:I=!0,recordCanvas:C=!1,recordCrossOriginIframes:x=!1,recordAfter:O=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:A=!1,collectFonts:R=!1,inl
2ineImages:P=!1,plugins:N,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:L,onMutation:j,getCanvasManager:U}=e;lt=L;const F=!x||window.parent===window;let $=!1;if(!F)try{window.parent.document&&($=!1)}catch(e){$=!0}if(F&&!t)throw new Error("emit function is required");if(!F&&!$)return()=>{};void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),jt.reset();const z=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},B=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let H;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const V=e=>{for(const t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!$&&(e=S(e)),e};Dt=(e,i)=>{const o=e;if(o.timestamp=Pe(),!ht[0]?.isFrozen()||o.type===Je.FullSnapshot||o.type===Je.IncrementalSnapshot&&o.data.source===Xe.Mutation||ht.forEach(e=>e.unfreeze()),F)t?.(V(o),i);else if($){const e={type:"rrweb",event:V(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(o.type===Je.FullSnapshot)H=o,q=0;else if(o.type===Je.IncrementalSnapshot){if(o.data.source===Xe.Mutation&&o.data.isAttachIframe)return;q++;const e=r&&q>=r,t=n&&H&&o.timestamp-H.timestamp>n;(e||t)&&te(!0)}};const K=e=>{Dt({type:Je.IncrementalSnapshot,data:{source:Xe.Mutation,...e}})},Y=e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.Scroll,...e}}),G=e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.CanvasMutation,...e}}),J=new Nt({mutationCb:K,adoptedStyleSheetCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.AdoptedStyleSheet,...e}})}),X="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new It:new Ct({mirror:jt,mutationCb:K,stylesheetManager:J,recordCrossOriginIframes:x,wrappedEmit:Dt});for(const e of N||[])e.getMirror&&e.getMirror({nodeMirror:jt,crossOriginIframeMirror:X.crossOriginIframeMirror,crossOriginIframeStyleMirror:X.crossOriginIframeStyleMirror});const Z=new Mt,Q=function(e,t){try{return e?e(t):new Pt}catch{return console.warn("Unable to initialize CanvasManager"),new Pt}}(U,{mirror:jt,win:window,mutationCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.CanvasMutation,...e}}),recordCanvas:C,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:w,sampling:E.canvas,dataURLOptions:k,errorHandler:L}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new xt:new Ot({mutationCb:K,scrollCb:Y,bypassOptions:{onMutation:j,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:z,dataURLOptions:k,maskAttributeFn:v,maskTextFn:b,maskInputFn:_,recordCanvas:C,inlineImages:P,sampling:E,slimDOMOptions:B,iframeManager:X,stylesheetManager:J,canvasManager:Q,keepIframeSrcFn:M,processedNodeManager:Z,ignoreCSSAttributes:D},mirror:jt}),te=(e=!1)=>{if(!I)return;Dt({type:Je.Meta,data:{href:window.location.href,width:De(),height:Me()}},e),J.reset(),ee.init(),ht.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new W,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:h=!1,recordCanvas:p=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:C=()=>!1,ignoreCSSAttributes:x=new Set([])}=t||{};return Te(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
2:!1===v?{}:v,dataURLOptions:_,inlineImages:h,recordCanvas:p,preserveWhiteSpace:b,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:C,newlyAddedElement:!1,ignoreCSSAttributes:x})}(document,{mirror:jt,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,inlineStylesheet:f,maskAllInputs:z,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,slimDOM:B,dataURLOptions:k,recordCanvas:C,inlineImages:P,onSerialize:e=>{ze(e,jt)&&X.addIframe(e),Be(e,jt)&&J.trackLinkElement(e),He(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{X.attachIframe(e,t),e.contentWindow&&Q.addWindow(e.contentWindow),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{K({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:M,ignoreCSSAttributes:D});if(!t)return console.warn("Failed to snapshot the document");Dt({type:Je.FullSnapshot,data:{node:t,initialOffset:Ne(window)}}),ht.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,jt.getId(document))};Lt=te;try{const e=[],t=e=>dt(St)({onMutation:j,mutationCb:K,mousemoveCb:(e,t)=>Dt({type:Je.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.MouseInteraction,...e}}),scrollCb:Y,viewportResizeCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.ViewportResize,...e}}),inputCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.Input,...e}}),mediaInteractionCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.MediaInteraction,...e}}),styleSheetRuleCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.StyleSheetRule,...e}}),styleDeclarationCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>Dt({type:Je.IncrementalSnapshot,data:{source:Xe.Font,...e}}),selectionCb:e=>{Dt({type:Je.IncrementalSnapshot,data:{source:Xe.Selection,...e}})},customElementCb:e=>{Dt({type:Je.IncrementalSnapshot,data:{source:Xe.CustomElement,...e}})},blockClass:i,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:h,unmaskTextSelector:p,maskInputOptions:z,inlineStylesheet:f,sampling:E,recordDOM:I,recordCanvas:C,inlineImages:P,userTriggeredOnInput:A,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:M,blockSelector:o,unblockSelector:s,slimDOMOptions:B,dataURLOptions:k,mirror:jt,iframeManager:X,stylesheetManager:J,shadowDomManager:ee,processedNodeManager:Z,canvasManager:Q,ignoreCSSAttributes:D,plugins:N?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>Dt({type:Je.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});X.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Ie("DOMContentLoaded",()=>{Dt({type:Je.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&n()})),e.push(Ie("load",()=>{Dt({type:Je.Load,data:{}}),"load"===O&&n()},window))),()=>{e.forEach(e=>e()),Z.destroy(),Lt=void 0,lt=void 0}}catch(e){console.warn(e)}}var Ft,$t;function zt(e){return e>9999999999?e:1e3*e}function Bt(e){return e>9999999999?e/1e3:e}function Ht(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Je.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,i.S8)(t,10,1e3)}}),"console"===t.category)))}function Wt(e){return e.closest("button,a")||e}function qt(e){const t=Vt(e);return t&&t instanceof Element?Wt(t):t}function Vt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Kt;Ut.mirror=jt,Ut.takeFullSnapshot=function(e){if(!Lt)throw new Error("please take full snapshot after start recording");Lt(e)},($t=Ft||(Ft={}))[$t.NotStarted=0]="NotStarted",$t[$t.Running=1]="Running",$t[$t.Stopped=2]="Stopped";const Yt=new Set([Xe.Mutation,Xe.StyleSheetRule,Xe.StyleDeclaration,Xe.AdoptedStyleSheet,Xe.CanvasMutation,Xe.Selection,Xe.MediaInteraction]);class Gt{constructor(e,t,n=Ht){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=Xt()},Kt||(Kt=[],(0,o.GS)(R,"open",function(e){return function(...t){if(Kt)try{Kt.forEach(e
2=>e())}catch{}return e.apply(R,t)}})),Kt.push(t),()=>{const e=Kt?Kt.indexOf(t):-1;e>-1&&Kt.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!Jt.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Bt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Bt(e)}registerScroll(e=Date.now()){this._lastScroll=Bt(e)}registerClick(e){const t=Wt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){const e=[],t=Xt();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:o,clickBreadcrumb:s}=e;if(i){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:R.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};return void this._addBreadcrumbEvent(t,i)}if(o>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:R.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,T.wg)(()=>this._checkClicks(),1e3)}}const Jt=["A","BUTTON","INPUT"];function Xt(){return Date.now()/1e3}function Zt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Qt=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Qt||{});const en=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function tn(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(en.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function nn(e,t){const n=Ut.mirror.getId(e),r=n&&Ut.mirror.getNode(n),i=r&&Ut.mirror.getMeta(r),o=i&&function(e){return e.type===Qt.Element}(i)?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===Qt.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:tn(o.attributes)}}:{}}}const rn={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:an(o),end:an(i),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=an(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:an(p),end:an(o),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:h}}}};function on(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function sn(e){const t=rn[e.entryType];return t?t(e):null}function an(e){return(((0,a.k3)()||R.performance.timeOrigin)+e)/1e3}function cn(e){const t=e.entries[e.entries.length-1];return hn(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function un(e){return void 0!==e.sources}function ln(e){const t=[],n=[];for(const r of e.entries)if(un(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Ut.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return hn(e,"cumulative-layout-shift",n,t)}function dn(e){const t=e.entries[e.entries.length-1];return hn(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function hn(e,t,n,r){const i=e.value,o=e.rating,s=an(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:n?n.map(e=>Ut.mirror.getId(e)):void 0,attributions:r}}}const pn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,fn=["log","warn","error"],mn="[Replay] ";function gn(e,t="info"){(0,c.Z)({category:"console",data:{logger:"replay"},level:t,message:`${mn}${e}`},{level:t})}const yn=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};
2return pn?(fn.forEach(e=>{n[e]=(...n)=>{u.Yz[e](mn,...n),t&&gn(n.join(""),(0,l.t)(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),u.Yz.error(mn,r),e?(0,d.Cp)(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&gn(r,"error")},n.infoTick=(...e)=>{u.Yz.log(mn,...e),t&&setTimeout(()=>gn(e[0]),0)}):fn.forEach(e=>{n[e]=()=>{}}),n}();class vn extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class _n{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>L)throw new vn;this.events.push(e)}finish(){return new Promise(e=>{const t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(e=>e.timestamp).sort()[0];return e?zt(e):null}}class bn{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():(pn&&yn.warn("Received worker message with unsuccessful status",n),t(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{pn&&yn.warn("Failed to load Replay compression worker",e),t(new Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){pn&&yn.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,i)=>{const o=({data:t})=>{const s=t;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",o),!s.success)return pn&&yn.error("Error in compression worker: ",s.response),void i(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class wn{constructor(e){this._worker=new bn(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=zt(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>L?Promise.reject(new vn):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{pn&&yn.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Sn{constructor(e){this._fallback=new _n,this._compression=new wn(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(pn&&yn.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){pn&&yn.exception(e,"Failed to add events when switching buffers.")}}}function En(){try{return"sessionStorage"in R&&!!R.sessionStorage}catch{return!1}}function kn(e){return void 0!==e&&Math.random()<e}function Tn(e){if(En())try{R.sessionStorage.setItem(P,JSON.stringify(e))}catch{}}function In(e){const t=Date.now();return{id:e.id||(0,h.eJ)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function Cn({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=function(e,t){return kn(e)?"session":!!t&&"buffer"}(e,t),o=In({sampled:i,previousSessionId:r});return n&&Tn(o),o}function xn(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function On(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return xn(e.started,t,r)||xn(e.lastActivity,n,r)}function An(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!On(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Rn({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&function(){if(!En())return null;try{const e=R.sessionStorage.getItem(P);if(!e)return null;const t=JSON.parse(e);return pn&&yn.infoTick("Loading existing session"),In(t)}catch{return null}}();return i?An(i,{sessionIdleExpire:e,maxReplayDuration:t})?(pn&&yn.infoTick("Session in sessionStorage is expired, creating new one..."),Cn(r,{previousSessionId:i.id})):i:(pn&&yn.infoTick("Creating new session"),Cn(r,{previousSessionId:n}))}function Pn(e,t,n){return!!Mn(e,t)&&(Nn(e,t,n),!0)}async function Nn(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const i="buffer"===e.recordingMode;
2try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Je.Custom}(e))return t(e)}catch(e){return pn&&yn.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!o)return;return await r.addEvent(o)}catch(t){const n=t&&t instanceof vn,o=n?"addEventSizeExceeded":"addEvent",s=(0,p.KU)();if(s){const e=n?"buffer_overflow":"internal_sdk_error";s.recordDroppedEvent(e,"replay")}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:o})}}function Mn(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=zt(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(pn&&yn.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),1))}function Dn(e){return!e.type}function Ln(e){return"transaction"===e.type}function jn(e){return"feedback"===e.type}function Un(e){return!!e.category}function Fn(){const e=(0,p.o5)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,f.Bk)();t&&delete(0,m.k1)(t).replay_id}function $n(e,t){return t.map(({type:t,start:n,end:r,name:i,data:o})=>{const s=e.throttledAddEvent({type:Je.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof s?Promise.resolve(null):s})}function zn(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!pn||!e.getOptions()._experiments.traceInternals)&&function(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return function(e,t){const n=(0,g.kg)(e);return!(!n||(0,g.nt)(n))&&!!t&&n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}(e,n)||function(e,t){return!!t&&y(e)===y(t)}(e,r)}(t,(0,p.KU)())}(e,t.name)||e.addUpdate(()=>($n(e,[t]),!0)))}function Bn(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=(0,C.P4)(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Hn(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Wn(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function qn(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:o,statusCode:s,request:a,response:c}}}function Vn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Kn(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>M,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,M);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=i,o?.length&&(r._meta={warnings:o}),r}function Yn(e,t){return Object.entries(e).reduce((n,[r,i])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n},{})}function Gn(e,t){const n=function(e,t=R.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(R.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,v.Xr)(n,t)}function Jn(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function Xn(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Jn(n,t):Array.isArray(n)?{}:Yn(n,t):{}}function Zn(e){const t=(0,p.KU)();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(n)&&(function(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=Bn(r),o=n.getResponseHeader("content-length")?Hn(n.getResponseHeader("content-length")):function(e,t){try{return Bn("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:h}=e.data;if(!c)return null;if(!a||!Gn(c,n.networkDetailAllowUrls)||Gn(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:o,url:c,method:u,statusCode:l,request:Vn(d),response:Vn(h)};const p=a[x.Er],f=p?Yn(p.request_headers,n.networkRequestHeaders):{},m=Yn((0,C.ti)(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?(0,C.sY)(s,yn):[void 0],[v,_]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return pn&&yn.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return pn&&yn.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return pn&&yn.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=Kn(f,d,g),w=Kn(m,h,v);return{startTimestamp:i,endTimestamp:o,url:c,method:u,statusCode:l,request:y?Wn(b,y):b,response:_?Wn(w,_):w}}
2(e,t,n),i=qn("resource.xhr",r);zn(n.replay,i)}catch(e){pn&&yn.exception(e,"Failed to capture xhr breadcrumb")}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(n)&&(function(e,t){const{input:n,response:r}=t,i=Bn(n?(0,C.Gv)(n):void 0),o=r?Hn(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Gn(s,n.networkDetailAllowUrls)&&!Gn(s,n.networkDetailDenyUrls),h=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?(s=t,1===(o=n).length&&"string"!=typeof o[0]?Xn(o[0],s):2===o.length?Xn(o[1],s):{}):{};var o,s;if(!e)return Kn(i,r,void 0);const a=(0,C.Gv)(n),[c,u]=(0,C.sY)(a,yn),l=Kn(i,r,c);return u?Wn(l,u):l}(n,t.input,u):Vn(u),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return Vn(i);const o=r?Jn(r.headers,n):{};if(!r||!t&&void 0!==i)return Kn(o,i,void 0);const[s,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){pn&&yn.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise((t,n)=>{const r=(0,T.wg)(()=>n(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(pn&&yn.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(pn&&yn.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const o=e?.length&&void 0===n?Bn(e):n;return r?Kn(i,o,t?e:void 0):Vn(o)}catch(e){return pn&&yn.exception(e,"Failed to serialize response body"),Kn(i,n,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return a?Wn(c,a):c}(d,n,t.response,l);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:c,request:h,response:p}}(e,t,n),i=qn("resource.fetch",r);zn(n.replay,i)}catch(e){pn&&yn.exception(e,"Failed to capture fetch breadcrumb")}}(t,n,e))}catch(e){pn&&yn.exception(e,"Error when enriching network breadcrumb")}}(a,e,t))}catch{}}function Qn(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const er=r.O.navigator;function tr(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(pn&&yn.warn("Received replay event after session expired."));const i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(Yt.has(n)&&e.registerMutation(t.timestamp),n===Xe.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Xe.MouseInteraction}(t)){const{type:n,id:r}=t.data,i=Ut.mirror.getNode(r);i instanceof HTMLElement&&n===Ze.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!Pn(e,n,i))return!0;if(!i)return!1;const t=e.session;if(function(e,t){t&&e.session&&0===e.session.segmentId&&Pn(e,function(e){const t=e.getOptions();return{type:Je.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){const n=e.eventBuffer.getEarliestTimestamp();n&&(pn&&yn.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Tn(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}function nr(e,t,n,r){return(0,_.h4)((0,_.n2)(e,(0,_.Cj)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}
2class rr extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ir extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class or extends Error{constructor(){super("Session is too long, not sending replay")}}async function sr(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=(0,p.KU)(),h=(0,p.o5)(),f=d?.getTransport(),m=d?.getDsn();if(!(d&&f&&m&&o.sampled))return Promise.resolve({});const g={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},y=await async function({client:e,scope:t,replayId:n,event:r}){const i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);const o=await(0,b.mG)(e.getOptions(),r,i,t,e,(0,p.rm)());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const s=e.getSdkMetadata(),{name:a,version:c,settings:u}=s?.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0",settings:u},o}({scope:h,client:d,replayId:t,event:g});if(!y)return d.recordDroppedEvent("event_processor","replay"),pn&&yn.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;const v=nr(y,s,m,d.getOptions().tunnel);let _;try{_=await f.send(v)}catch(e){const t=new Error(N);try{t.cause=e}catch{}throw t}const S=(0,w.wq)({},_);if((0,w.Jz)(S,"replay"))throw new ir(S);if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new rr(_.statusCode);return _}(e),!0}catch(n){if(n instanceof rr||n instanceof ir)throw n;if((0,d.o)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${N} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{(0,T.wg)(async()=>{try{await sr(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}const ar="__THROTTLED";class cr{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){return function(e,t,n){let r,i,o;const s=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function l(){return i&&clearTimeout(i),i=a(c,t),s&&void 0===o&&(o=a(c,s)),r}return l.cancel=u,l.flush=function(){return void 0!==i||void 0!==o?c():r},l}(e,t,{...n,setTimeoutImpl:T.wg})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let i=!1;return(...o)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})})(s),[...r.values()].reduce((e,t)=>e+t,0)>=t){const e=i;return i=!0,e?"__SKIPPED":ar}i=!1;const a=r.get(s)||0;return r.set(s,a+1),e(...o)}}((e,t)=>function(e,t,n){return Mn(e,t)?Nn(e,t,n):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(i&&(this.clickDetector=new Gt(this,i)),pn){const t=e._experiments;yn.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===R.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroun
2dTasks()},this._handleWindowBlur=()=>{const e=Zt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=Zt({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const c=t||r||i,u=1===o.length;if(!c&&u)return null;const l=(0,s.Hd)(a,{maxStringLength:200})||"<unknown>";return Zt({category:"ui.keyDown",message:l,data:{...nn(a,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}(t);n&&Ht(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){pn&&yn.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",pn&&yn.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):pn&&yn.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(pn&&yn.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(pn&&yn.log("Buffering is in progress, call `flush()` to save the replay"));pn&&yn.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Rn({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(pn&&yn.log("Buffering is in progress, call `flush()` to save the replay"));pn&&yn.infoTick("Starting replay in buffer mode");const e=Rn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Ut({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:tr(this),.../iPhone|iPad|iPod/i.test(er?.userAgent??"")||/Macintosh/i.test(er?.userAgent??"")&&er?.maxTouchPoints&&er?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{pn&&yn.log("Stopping Replay"+(t?` triggered by ${t}`:"")),Fn(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,n=this,function(){if(En())try{R.sessionStorage.removeItem(P)}catch{}}(),n.session=void 0}catch(e){this.handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),pn&&yn.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),pn&&yn.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();pn&&yn.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||!1!==this.session?.sampled)return this.session?.id}
2checkAndHandleExpiredSession(){if(!(this._lastActivity&&xn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${R.location.pathname}${R.location.hash}${R.location.search}`,t=`${R.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===ar){const e=Zt({category:"replay.throttled"});this.addUpdate(()=>!Pn(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||(0,f.Bk)(),t=e&&(0,f.zU)(e),n=(t&&(0,f.et)(t).data||{})[S.i_];if(t&&n&&["route","custom"].includes(n))return(0,f.et)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['
vendor: 10,329 bytes, line 2
2var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
2']);return URL.createObjectURL(e)}());if(!t)return;pn&&yn.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Sn(n)}catch(e){pn&&yn.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return pn&&yn.log("Using simple buffer"),new _n}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Rn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!An(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{R.document.addEventListener("visibilitychange",this._handleVisibilityChange),R.addEventListener("blur",this._handleWindowBlur),R.addEventListener("focus",this._handleWindowFocus),R.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){const t=(0,p.KU)();(0,O.i)((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?qt(e.event):Vt(e.event),n=(0,s.Hd)(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}(e);return Zt({category:`ui.${e.name}`,...nn(t,n)})}(t);if(!n)return;const r="click"===t.name,i=r?t.event:void 0;var o,a,c;!(r&&e.clickDetector&&i?.target)||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||(o=e.clickDetector,a=n,c=qt(t.event),o.handleClick(a,c)),Ht(e,n)})(e)),(0,A._)(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>($n(e,[n]),!1)))}}(e)),function(e){const t=(0,p.KU)();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!Un(t))return;const n=function(e){return!Un(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return Zt(e);let n=!1;const r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>D?(n=!0,`${e.slice(0,D)}…`):e;if("object"==typeof e)try{const t=(0,i.S8)(e,7);return JSON.stringify(t).length>D?(n=!0,`${JSON.stringify(t,null,2).slice(0,D)}…`):t}catch{}return e});return Zt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):Zt(e)}(t);n&&Ht(e,n)}(e,t))}(e),Zn(e);const n=function(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Dn(t)&&!Ln(t)&&!jn(t))return t;if(!e.checkAndHandleExpiredSession())return Fn(),t;if(jn(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:Je.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1))}(e,t),t;if(function(e,t){return!(e.type||!e.exception?.values?.length||!t.originalException?.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return pn&&yn.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==N&&!(!t.exception||t.type)&&kn(e.getOptions().errorSampleRate)}(e,t);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&"buffer"===e.session?.sampled){const t=e.session;t.dirty=!0,e.getOptions().stickySession&&Tn(t)}return t},{id:"Replay"})}(e);(0,d.SA)(n),t&&(t.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&Dn(t)&&function(e,t){const n=t.exception?.values?.[0]?.value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&Ht(e,Zt({category:"replay.hydrate-error",data:{url:(0,s.$N)()}}))}(e,t)}}(e)),t.on("afterSendEvent",function(e){return(t,n)=>{if(!e.isEnabled()||!Dn(t)&&!Ln(t))return;const r=n.statusCode;!r||r<200||r>=300||(Ln(t)?function(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&(0,T.wg)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}(e)),t.on("createDsc",t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,n)=>{const r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];
2return["navigation","paint","resource"].forEach(e=>{r.push((0,I.wv)(e,n))}),r.push((0,I.Pt)(on(cn,e)),(0,I.a9)(on(ln,e)),(0,I.hT)(on(dn,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{R.document.removeEventListener("visibilitychange",this._handleVisibilityChange),R.removeEventListener("blur",this._handleWindowBlur),R.removeEventListener("focus",this._handleWindowFocus),R.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(On(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):pn&&yn.log("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:Je.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(sn).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all($n(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all($n(e,[Qn(R.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new or;const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await sr({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=(0,p.KU)();if(t){let n;n=e instanceof ir?"ratelimit_backoff":e instanceof or?"invalid":"send_error",t.recordDroppedEvent(n,"replay")}}}else pn&&yn.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(pn&&yn.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i)return pn&&yn.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&pn&&yn.log("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Tn(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const n=function(e){if(!e)return null;
2try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;const n=e.length,r=this._options.mutationLimit,i=r&&n>r;if(n>this._options.mutationBreadcrumbLimit||i){const e=Zt({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function ur(e,t){return[...e,...t].join(",")}const lr='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',dr=["content-length","content-type","accept"],hr=Symbol.for("sentry__originalRequestBody");let pr=!1,fr=!1;const mr=e=>new gr(e);class gr{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:s,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:_=[],mask:b=[],maskAttributes:w=["title","placeholder","aria-label"],unmask:S=[],block:k=[],unblock:T=[],ignore:I=[],maskFn:C,beforeAddRecordingEvent:x,beforeErrorSampling:O,onError:A,attachRawBodyFromRequest:R=!1}={}){this.name="Replay";const P=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:ur(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:ur(t,[]),blockSelector:ur(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:ur(r,[]),ignoreSelector:ur(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:S,block:k,unblock:T,ignore:I});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return r?i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:w,maskAllText:c,privacyOptions:P,key:e,value:t,el:n}),...P,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,3
26e5),stickySession:i,useCompression:o,workerUrl:s,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:yr(v),networkResponseHeaders:yr(_),beforeAddRecordingEvent:x,beforeErrorSampling:O,onError:A,attachRawBodyFromRequest:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${lr}`:lr,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,E.B)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return pr}set _isInitialized(e){pr=e}afterAllSetup(e){(0,E.B)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||fr)return;const e=Request;try{const t=function(t,n){const r=new e(t,n);return null!=n?.body&&(r[hr]=n.body),r};t.prototype=e.prototype,r.O.Request=t,fr=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=(0,k.i)(n.replaysSessionSampleRate),o=(0,k.i)(n.replaysOnErrorSampleRate);return null==i&&null==o&&(0,u.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r}(this._initialOptions,e);this._replay=new cr({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function yr(e){return[...dr,...e.map(e=>e.toLowerCase())]}},63944:(e,t,n)=>{"use strict";n.d(t,{De:()=>l,sv:()=>s,yD:()=>u});var r=n(26674),i=n(19282),o=n(64208);const s="sentry-",a=/^sentry-/,c=8192;function u(e){const t=function(e){if(e&&((0,o.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const n=d(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):d(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>(t.match(a)&&(e[t.slice(s.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function l(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],o)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===o?s:`${e},${s}`;return a.length>c?(r.T&&i.Yz.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${s}${t}`]=n),e),{}))}function d(e){return e.split(",").map(e=>{const t=e.indexOf("=");return-1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}},64208:(e,t,n)=>{"use strict";n.d(t,{BD:()=>a,Kg:()=>u,L2:()=>_,NF:()=>l,Qd:()=>h,Qg:()=>g,T2:()=>s,W6:()=>c,bJ:()=>i,gd:()=>m,ks:()=>b,mE:()=>y,sO:()=>d,tH:()=>v,vq:()=>f,xH:()=>p});const r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function s(e){return o(e,"ErrorEvent")}function a(e){return o(e,"DOMError")}function c(e){return o(e,"DOMException")}function u(e){return o(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_str
2ing__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function h(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&v(e,Event)}function f(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return Boolean(e?.then&&"function"==typeof e.then)}function y(e){return h(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch{return!1}}function _(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}function b(e){return"undefined"!=typeof Request&&v(e,Request)}},64251:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>c,J0:()=>f,J5:()=>y,Ol:()=>h,Q:()=>d,SA:()=>p,o:()=>l,r:()=>u});var r=n(57968),i=n(59328),o=n(49158),s=n(23998),a=n(18845);function c(e,t){return(0,r.o5)().captureException(e,(0,o.li)(t))}function u(e,t){return(0,r.o5)().captureEvent(e,t)}function l(e,t){(0,r.rm)().setContext(e,t)}function d(){return(0,r.rm)().lastEventId()}function h(){const e=(0,r.KU)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function p(e){(0,r.rm)().addEventProcessor(e)}function f(e){const t=(0,r.rm)(),{user:n}=(0,s.Om)(t,(0,r.o5)()),{userAgent:o}=a.O.navigator||{},c=(0,i.fj)({user:n,...o&&{userAgent:o},...e}),u=t.getSession();return"ok"===u?.status&&(0,i.qO)(u,{status:"exited"}),m(),t.setSession(c),c}function m(){const e=(0,r.rm)(),t=(0,r.o5)().getSession()||e.getSession();t&&(0,i.Vu)(t),g(),e.setSession()}function g(){const e=(0,r.rm)(),t=(0,r.KU)(),n=e.getSession();n&&t&&t.captureSession(n)}function y(e=!1){e?m():g()}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(20816);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},64725:function(e,t,n){var r,i,o;e.exports=(r=n(19021),o=(i=r).lib.WordArray,i.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],s=0;s<r;s+=3)for(var a=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<r;c++)o.push(i.charAt(a>>>6*(3-c)&63));var u=i.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,r=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var a=r.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(n=c)}return function(e,t,n){for(var r=[],i=0,s=0;s<t;s++)if(s%4){var a=n[e.charCodeAt(s-1)]<<s%4*2|n[e.charCodeAt(s)]>>>6-s%4*2;r[i>>>2]|=a<<24-i%4*8,i++}return o.create(r,i)}(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},r.enc.Base64url)},65496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,h=(e=(0,r.escapeSpecialCharacters)(e)).match(a),p=h&&h[1]?h[1].toLowerCase():"";switch(p){case i:var f=d(e);return c.test(e)||null===(t=null==(y=f.querySelector(o))?void 0:y.parentNode)||void 0===t||t.removeChild(y),u.test(e)||null===(n=null==(y=f.querySelector(s))?void 0:y.parentNode)||void 0===n||n.removeChild(y),f.querySelectorAll(i);case o:case s:var g=l(e).querySelectorAll(p);return u.test(e)&&c.test(e)?g[0].parentNode.childNodes:g;default:return m?m(e):(y=l(e,s).querySelector(s)).childNodes;var y}};var r=n(67731),i="html",o="head",s="body",a=/<([a-zA-Z]+[0-9]?)/,c=/<head[^]*>/i,u=/<body[^]*>/i,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},h="object"==typeof window&&window.DOMParser;if("function"==typeof h){var p=new h;l=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),p.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();l=function(e,t){if(t){var n=f.documentElement.querySelector(t);return n&&(n.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var m,g="object"==typeof document&&document.createElement("template");g&&g.content&&(m=function(e){return g.innerHTML=e,g.content.childNodes})},67310:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});
2var r=n(96540),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},s="Pixel",a="Percent",c={unit:a,value:.8};function u(e){return"number"==typeof e?{unit:a,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:s,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:a,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),c):(console.warn("scrollThreshold should be string or number"),c)}const l=function(e){function t(t){var n=e.call(this,t)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:"string"==typeof n.props.scrollableTarget?document.getElementById(n.props.scrollableTarget):(null===n.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)},n.onStart=function(e){n.lastScrollTop||(n.dragging=!0,e instanceof MouseEvent?n.startY=e.pageY:e instanceof TouchEvent&&(n.startY=e.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n.onMove=function(e){n.dragging&&(e instanceof MouseEvent?n.currentY=e.pageY:e instanceof TouchEvent&&(n.currentY=e.touches[0].pageY),n.currentY<n.startY||(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),n.currentY-n.startY>1.5*n.maxPullDownDistance||n._infScroll&&(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)")))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="unset")})},n.onScrollListener=function(e){"function"==typeof n.props.onScroll&&setTimeout(function(){return n.props.onScroll&&n.props.onScroll(e)},0);var t=n.props.height||n._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;n.actionTriggered||((n.props.inverse?n.isElementAtTop(t,n.props.scrollThreshold):n.isElementAtBottom(t,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=t.scrollTop)},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},n.throttledOnScrollListener=function(e,t,n,r){var i,o=!1,s=0;function a(){i&&clearTimeout(i)}function c(){var e=this,c=Date.now()-s,u=arguments;function l(){s=Date.now(),n.apply(e,u)}o||(r&&!i&&l(),a(),void 0===r&&c>150?l():!0!==t&&(i=setTimeout(r?function(){i=void 0}:l,void 0===r?150-c:150)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),c.cancel=function(){a(),o=!0},c}(0,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)
2))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength!==t.prevDataLength?o(o({},t),{prevDataLength:e.dataLength}):null},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=u(t);return r.unit===s?e.scrollTop<=r.value+n-e.scrollHeight+1:e.scrollTop<=r.value/100+n-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=u(t);return r.unit===s?e.scrollTop+n>=e.scrollHeight-r.value:e.scrollTop+n>=r.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=o({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),i=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.createElement("div",{style:i,className:"infinite-scroll-component__outerdiv"},r.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&r.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},r.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(r.Component)},67607:(e,t,n)=>{"use strict";n.d(t,{CH:()=>s,Dl:()=>a,f:()=>c,kg:()=>o,nt:()=>i,zm:()=>u});const r="thismessage:/";function i(e){return"isRelative"in e}function o(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),i=t??(n?r:void 0);try{if("canParse"in URL&&!URL.canParse(e,i))return;const t=new URL(e,i);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function s(e){if(i(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function a(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function c(e){return e.split(/[?#]/,1)[0]}function u(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),o=e.indexOf(",");let s="";if(t&&-1!==o){const t=e.slice(o+1);s=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?",base64":""}${s?`,${s}`:""}`}return e}},67731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=o,t.escapeSpecialCharacters=function(e){return e.replace(i.CARRIAGE_RETURN_REGEX,i.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=a,t.formatDOM=function e(t,n,i){void 0===n&&(n=null);for(var c,u=[],l=0,d=t.length;l<d;l++){var h=t[l];switch(h.nodeType){case 1:var p=s(h.nodeName);(c=new r.Element(p,o(h.attributes))).children=e("template"===p?h.content.childNodes:h.childNodes,c);break;case 3:c=new r.Text(a(h.nodeValue));break;case 8:c=new r.Comment(h.nodeValue);break;default:continue}var f=u[l-1]||null;f&&(f.next=c),c.parent=n,c.prev=f,c.next=null,u.push(c)}return i&&((c=new r.ProcessingInstruction(i.substring(0,i.indexOf(" ")).toLowerCase(),i)).next=u[0]||null,c.parent=n,u.unshift(c),u[1]&&(u[1].prev=u[0])),u};var r=n(41141),i=n(15270);function o(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function s(e){return function(e){return i.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function a(e){return e.replace(i.CARRIAGE_RETURN_PLACEHOLDER_REGEX,i.CARRIAGE_RETURN)}}
2,68154:(e,t,n)=>{"use strict";n.d(t,{m:()=>ne});var r,i,o,s,a=n(5556),c=n.n(a),u=n(52098),l=n.n(u),d=n(30115),h=n.n(d),p=n(96540),f=n(45228),m=n.n(f),g="bodyAttributes",y="htmlAttributes",v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},_=(Object.keys(v).map(function(e){return v[e]}),"charset"),b="cssText",w="href",S="innerHTML",E="itemprop",k="rel",T={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I=Object.keys(T).reduce(function(e,t){return e[T[t]]=t,e},{}),C=[v.NOSCRIPT,v.SCRIPT,v.STYLE],x="data-react-helmet",O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},N=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},M=function(e){var t=F(e,v.TITLE),n=F(e,"titleTemplate");if(n&&t)return n.replace(/%s/g,function(){return Array.isArray(t)?t.join(""):t});var r=F(e,"defaultTitle");return t||r||void 0},D=function(e){return F(e,"onChangeClientState")||function(){}},L=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return R({},e,t)},{})},j=function(e,t){return t.filter(function(e){return void 0!==e[v.BASE]}).map(function(e){return e[v.BASE]}).reverse().reduce(function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t},[])},U=function(e,t,n){var r={};return n.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&W("Helmet: "+e+' should be of type "Array". Instead found type "'+O(t[e])+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,n){var i={};n.filter(function(e){for(var n=void 0,o=Object.keys(e),s=0;s<o.length;s++){var a=o[s],c=a.toLowerCase();-1===t.indexOf(c)||n===k&&"canonical"===e[n].toLowerCase()||c===k&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(a)||a!==S&&a!==b&&a!==E||(n=a)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][u]&&(i[n][u]=!0,!0)}).reverse().forEach(function(t){return e.push(t)});for(var o=Object.keys(i),s=0;s<o.length;s++){var a=o[s],c=m()({},r[a],i[a]);r[a]=c}return e},[]).reverse()},F=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},$=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout(function(){$(e)},0)}),z=function(e){return clearTimeout(e)},B="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||$:n.g.requestAnimationFrame||$,H="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||z:n.g.cancelAnimationFrame||z,W=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},q=null,V=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,s=e.metaTags,a=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,d=e.title,h=e.titleAttributes;G(v.BODY,r),G(v.HTML,i),Y(d,h);var p={baseTag:J(v.BASE,n),linkTags:J(v.LINK,o),metaTags:J(v.META,s),noscriptTags:J(v.NOSCRIPT,a),scriptTags:J(v.SCRIPT,u),styleTags:J(v.STYLE,l)},f={},m={};
2Object.keys(p).forEach(function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(f[e]=n),r.length&&(m[e]=p[e].oldTags)}),t&&t(),c(e,f,m)},K=function(e){return Array.isArray(e)?e.join(""):e},Y=function(e,t){void 0!==e&&document.title!==e&&(document.title=K(e)),G(v.TITLE,t)},G=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(x),i=r?r.split(","):[],o=[].concat(i),s=Object.keys(t),a=0;a<s.length;a++){var c=s[a],u=t[c]||"";n.getAttribute(c)!==u&&n.setAttribute(c,u),-1===i.indexOf(c)&&i.push(c);var l=o.indexOf(c);-1!==l&&o.splice(l,1)}for(var d=o.length-1;d>=0;d--)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(x):n.getAttribute(x)!==s.join(",")&&n.setAttribute(x,s.join(","))}},J=function(e,t){var n=document.head||document.querySelector(v.HEAD),r=n.querySelectorAll(e+"["+x+"]"),i=Array.prototype.slice.call(r),o=[],s=void 0;return t&&t.length&&t.forEach(function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===S)n.innerHTML=t.innerHTML;else if(r===b)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var a=void 0===t[r]?"":t[r];n.setAttribute(r,a)}n.setAttribute(x,"true"),i.some(function(e,t){return s=t,n.isEqualNode(e)})?i.splice(s,1):o.push(n)}
2),i.forEach(function(e){return e.parentNode.removeChild(e)}),o.forEach(function(e){return n.appendChild(e)}),{oldTags:i,newTags:o}},X=function(e){return Object.keys(e).reduce(function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r},"")},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[T[n]||n]=e[n],t},t)},Q=function(e,t,n){switch(e){case v.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[x]=!0,i=Z(n,r),[p.createElement(v.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=X(n),o=K(t);return i?"<"+e+" "+x+'="true" '+i+">"+N(o,r)+"</"+e+">":"<"+e+" "+x+'="true">'+N(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case g:case y:return{toComponent:function(){return Z(t)},toString:function(){return X(t)}};default:return{toComponent:function(){return function(e,t){return t.map(function(t,n){var r,i=((r={key:n})[x]=!0,r);return Object.keys(t).forEach(function(e){var n=T[e]||e;if(n===S||n===b){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]}),p.createElement(e,i)})}(e,t)},toString:function(){return function(e,t,n){return t.reduce(function(t,r){var i=Object.keys(r).filter(function(e){return!(e===S||e===b)}).reduce(function(e,t){var i=void 0===r[t]?t:t+'="'+N(r[t],n)+'"';return e?e+" "+i:i},""),o=r.innerHTML||r.cssText||"",s=-1===C.indexOf(e);return t+"<"+e+" "+x+'="true" '+i+(s?"/>":">"+o+"</"+e+">")},"")}(e,t,n)}}}},ee=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,s=e.metaTags,a=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,d=void 0===l?"":l,h=e.titleAttributes;return{base:Q(v.BASE,t,r),bodyAttributes:Q(g,n,r),htmlAttributes:Q(y,i,r),link:Q(v.LINK,o,r),meta:Q(v.META,s,r),noscript:Q(v.NOSCRIPT,a,r),script:Q(v.SCRIPT,c,r),style:Q(v.STYLE,u,r),title:Q(v.TITLE,{title:d,titleAttributes:h},r)}},te=l()(function(e){return{baseTag:j([w,"target"],e),bodyAttributes:L(g,e),defer:F(e,"defer"),encode:F(e,"encodeSpecialCharacters"),htmlAttributes:L(y,e),linkTags:U(v.LINK,[k,w],e),metaTags:U(v.META,["name",_,"http-equiv","property",E],e),noscriptTags:U(v.NOSCRIPT,[S],e),onChangeClientState:D(e),scriptTags:U(v.SCRIPT,["src",S],e),styleTags:U(v.STYLE,[b],e),title:M(e),titleAttributes:L("titleAttributes",e)}},function(e){q&&H(q),e.defer?q=B(function(){V(e,function(){q=null})}):(V(e),q=null)},ee)(function(){return null}),ne=(i=te,s=o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!h()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:t};case v.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return R({},r,((t={})[n.type]=[].concat(r[n.type]||[],[R({},i,this.mapNestedChildrenToProps(n,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,s=e.nestedChildren;switch(r.type){case v.TITLE:return R({},i,((t={})[r.type]=s,t.titleAttributes=R({},o),t));case v.BODY:return R({},i,{bodyAttributes:R({},o)});case v.HTML:return R({},i,{htmlAttributes:R({},o)})}return R({},i,((n={})[r.type]=R({},o),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=R({},t);return Object.keys(e).forEach(function(t){var r;n=R({},n,((r={})[t]=e[t],r))}),n}
2,t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return p.Children.forEach(e,function(e){if(e&&e.props){var i=e.props,o=i.children,s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[I[n]||n]=e[n],t},t)}(P(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}}),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=P(e,["children"]),r=R({},n);return t&&(r=this.mapChildrenToProps(t,r)),p.createElement(i,r)},A(t,null,[{key:"canUseDOM",set:function(e){i.canUseDOM=e}}]),t}(p.Component),o.propTypes={base:c().object,bodyAttributes:c().object,children:c().oneOfType([c().arrayOf(c().node),c().node]),defaultTitle:c().string,defer:c().bool,encodeSpecialCharacters:c().bool,htmlAttributes:c().object,link:c().arrayOf(c().object),meta:c().arrayOf(c().object),noscript:c().arrayOf(c().object),onChangeClientState:c().func,script:c().arrayOf(c().object),style:c().arrayOf(c().object),title:c().string,titleAttributes:c().object,titleTemplate:c().string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=i.peek,o.rewind=function(){var e=i.rewind();return e||(e=ee({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},s);ne.renderStatic=ne.rewind},68238:(e,t,n)=>{"use strict";n.d(t,{Tw:()=>p,HY:()=>d,Zz:()=>h,y$:()=>l});var r=n(64467);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var a="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function l(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(l)(e,t)}if("function"!=typeof e)throw new Error(s(2));var i=e,o=t,c=[],d=c,h=!1;function p(){d===c&&(d=c.slice())}function f(){if(h)throw new Error(s(3));return o}function m(e){if("function"!=typeof e)throw new Error(s(4));if(h)throw new Error(s(5));var t=!0;return p(),d.push(e),function(){if(t){if(h)throw new Error(s(6));t=!1,p();var n=d.indexOf(e);d.splice(n,1),c=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(h)throw new Error(s(9));try{h=!0,o=i(o,e)}finally{h=!1}for(var t=c=d,n=0;n<t.length;n++)(0,t[n])();return e}return g({type:u.INIT}),(r={dispatch:g,subscribe:m,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));i=e,g({type:u.REPLACE})}})[a]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[a]=function(){return this},e},r}function d(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:u.INIT}))throw new Error(s(12));if(void 0===n(void 0,{type:u.PROBE_UNKNOWN_ACTION()}))throw new Error(s(13))})}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},c=0;c<a.length;c++){var u=a[c],l=n[u],d=e[u],h=l(d,t);if(void 0===h)throw t&&t.type,new Error(s(14));i[u]=h,r=r||h!==d}return(r=r||a.length!==Object.keys(e).length)?i:e}}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(s(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map(function(e){return e(i)});return r=h.apply(void 0,a)(n.dispatch),o(o({},n),{},{dispatch:r})}}}},69982:(e,t,n)=>{"use strict";e.exports=n(7463)},70125:(e,t,n)=>{"use strict";n.d(t,{Xr:()=>c,_c:()=>a,gt:()=>s,xv:()=>o});var r=n(64208),i=n(51685);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const o=e[t];try{(0,r.L2)(o)?n.push((0,i.nY)(o)):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):!!(0,r.Kg)(t)&&(n?e===t:e.includes(t)))}function c(e,t=[],n=!1){return t.some(t=>a(e,t,n))}}
2,70333:(e,t,n)=>{"use strict";n.d(t,{f:()=>s,r:()=>o});var r=n(46403);const i="_sentrySpan";function o(e,t){t?(0,r.my)(e,i,t):delete e[i]}function s(e){return e[i]}},71111:(e,t,n)=>{"use strict";n.d(t,{AD:()=>l,SB:()=>a,ul:()=>u});var r=n(26674),i=n(19282);const o=/^o(\d+)\./,s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function a(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=function(e){const t=e.match(o);return t?.[1]}(n)),r}function l(e){const t="string"==typeof e?function(e){const t=s.exec(e);if(!t)return void(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,o="",a="",u="",l=""]=t.slice(1);let d="",h=l;const p=h.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),h=p.pop()),h){const e=h.match(/^\d+/);e&&(h=e[0])}return c({host:a,pass:o,path:d,projectId:h,port:u,protocol:n,publicKey:r})}(e):c(e);if(t&&function(e){if(!r.T)return!0;const{port:t,projectId:n,protocol:o}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.Yz.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(i.Yz.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(i.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(i.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}},71354:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},72808:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>y,W3:()=>c,bN:()=>h,bm:()=>f,h4:()=>a,hP:()=>l,n2:()=>v,y5:()=>p,yH:()=>u,zk:()=>g});var r=n(95200),i=n(71111),o=n(94837),s=n(18845);function a(e,t=[]){return[e,t]}function c(e,t){const[n,r]=e;return[n,[...r,t]]}function u(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function l(e,t){return u(e,(e,n)=>t.includes(n))}function d(e){const t=(0,r.Se)(s.O);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function h(e){const[t,n]=e;let r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[d(r),e]:r.push("string"==typeof e?d(e):e)}for(const e of n){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,o.S8)(n))}i(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function p(e){return[{type:"span"},e]}function f(e){const t="string"==typeof e.data?d(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const m={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function g(e){return m[e]}function y(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function v(e,t,n,r){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,i.SB)(r)},...o&&{trace:o}}}},73055:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var s=r[o],a=e[s];(i?-1!==t.indexOf(s):t(s,a,e))&&(n[s]=a)}return n}},73317:(e,t,n)=>{"use strict";n.d(t,{D_:()=>d,SN:()=>X,Sg:()=>p,VZ:()=>Y,ih:()=>ye,rN:()=>ge,vt:()=>me});var r=n(58168),i=n(94175),o=n(92901),s=n(77387),a=n(9417),c=n(98587),u={}.constructor;function l(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(l);if(e.constructor!==u)return e;var t={};for(var n in e)t[n]=l(e[n]);return t}function d(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=l(t);return r.plugins.onCreateRule(e,i,n)||(e[0],null)}var h=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},p=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=h(e[n]," ");else t=h(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function f(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function m(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function g(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,s=t.fallbacks;!1===n.format&&(o=-1/0);var a=f(n),c=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var l=0;l<s.length;l++){var d=s[l];for(var h in d){var g=d[h];null!=g&&(r&&(r+=c),r+=m(h+":"+u+p(g)+";",o))}}else for(var y in s){var v=s[y];null!=v&&(r&&(r+=c),r+=m(y+":"+u+p(v)+";",o))}for(var _ in t){var b=t[_];null!=b&&"fallbacks"!==_&&(r&&(r+=c),r+=m(_+":"+u+p(b)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+c+r+c),m(""+e+u+"{"+r,--o)+m("}",o)):r}var y=/([[\].#*$><+~=|^:(),"'`\s])/g,v="undefined"!=typeof CSS&&CSS.escape,_=function(e){return v?v(e):e.replace(y,"\\$1")},b=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!r)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var c=this.options.sheet;return c&&c.attached,this},e}(),w=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,s=r.scoped,c=r.sheet,u=r.generateId;return o?i.selectorText=o:!1!==s&&(i.id=u((0,a.A)((0,a.A)(i)),c),i.selectorText="."+_(i.id)),i}(0,s.A)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.A)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},(0,o.A)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(b),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new w(e,t,n)}},E={indent:1,children:!0},k=/@([\w-]+)/,T=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(k);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Y((0,r.A)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=E);var t=f(e).linebreak;if(null==e.indent&&(e.indent=E.indent),null==e.children&&(e.children=E.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);
2return n?this.query+" {"+t+n+t+"}":""},e}(),I=/@container|@media|@supports\s+/,C={onCreateRule:function(e,t,n){return I.test(e)?new T(e,t,n):null}},x={indent:1,children:!0},O=/@keyframes\s+([\w-]+)/,A=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(O);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,s=n.sheet,a=n.generateId;for(var c in this.id=!1===o?this.name:_(a(this,s)),this.rules=new Y((0,r.A)({},n,{parent:this})),t)this.rules.add(c,t[c],(0,r.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=x);var t=f(e).linebreak;if(null==e.indent&&(e.indent=x.indent),null==e.children&&(e.children=x.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),R=/@keyframes\s+/,P=/\$([\w-]+)/g,N=function(e,t){return"string"==typeof e?e.replace(P,function(e,n){return n in t?t[n]:e}):e},M=function(e,t,n){var r=e[t],i=N(r,n);i!==r&&(e[t]=i)},D={onCreateRule:function(e,t,n){return"string"==typeof e&&R.test(e)?new A(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&M(e,"animation-name",n.keyframes),"animation"in e&&M(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return N(e,r.keyframes);default:return e}}},L=function(e){function t(){return e.apply(this,arguments)||this}return(0,s.A)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.A)({},e,{allowEmpty:!0}):e;return g(this.key,this.style,n)},t}(b),j={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new L(e,t,n):null}},U=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=f(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=g(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return g(this.at,this.style,e)},e}(),F=/@font-face/,$={onCreateRule:function(e,t,n){return F.test(e)?new U(e,t,n):null}},z=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return g(this.key,this.style,e)},e}(),B={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new z(e,t,n):null}},H=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),W={"@charset":!0,"@import":!0,"@namespace":!0},q=[S,C,D,j,$,B,{onCreateRule:function(e,t,n){return e in W?new H(e,t,n):null}}],V={process:!0},K={force:!0,process:!0},Y=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var i=this.options,o=i.parent,s=i.sheet,a=i.jss,c=i.Renderer,u=i.generateId,l=i.scoped,h=(0,r.A)({classes:this.classes,parent:o,sheet:s,jss:a,Renderer:c,generateId:u,scoped:l,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(h.selector="."+_(this.classes[p]));var f=d(p,t,h);if(!f)return null;this.register(f);var m=void 0===h.index?this.index.length:h.index;return this.index.splice(m,0,f),f},t.replace=function(e,t,n){var i=this.get(e),o=this.index.indexOf(i);i&&this.remove(i);var s=n;return-1!==o&&(s=(0,r.A)({},n,{index:o})),this.add(e,t,s)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;
2this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof w?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof A&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof w?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof A&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=V);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var a=t.style;if(o.onUpdate(n,t,s,r),r.process&&a&&a!==t.style){for(var c in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[c];u!==a[c]&&t.prop(c,u,K)}for(var l in a){var d=t.style[l],h=a[l];null==d&&d!==h&&t.prop(l,null,K)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=f(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||r)&&(t&&(t+=i),t+=s)}return t},e}(),G=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,r.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Y(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),J=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),X=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,c.A)(t,["attached"]),i=f(r).linebreak,o="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=n&&a.attached!==n||(o&&(o+=i),o+=a.toString(r))}return o},(0,o.A)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Z=new X,Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";null==Q[ee]&&(Q[ee]=0);var te=Q[ee]++,ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+te+i+t:o+n.key+"-"+te+(i?"-"+i:"")+"-"+t}},re=function(e){var t;return function(){return t||(t=e()),t}},ie=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},oe=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=p(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},se=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},ae=function(e,t){return e.selectorText=t,e.selectorText===t},ce=re(function(){return document.querySelector("head")});var ue=re(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),le=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.append
vendor: 4,751 bytes, line 2
2Rule(t)}catch(e){return!1}return e.cssRules[n]},de=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},he=function(){function e(e){this.getPropertyValue=ie,this.setProperty=oe,this.removeProperty=se,this.setSelector=ae,this.hasInsertedRules=!1,this.cssRules=[],e&&Z.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,i=n.meta,o=n.element;this.element=o||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),i&&this.element.setAttribute("data-meta",i);var s=ue();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=Z.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=ce(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ce().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=de(n,t);if(!1===(i=le(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var s=e.toString();if(!s)return!1;var a=de(n,t),c=le(n,s,a);return!1!==c&&(this.hasInsertedRules=!0,this.refCssRule(e,a,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof G&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),pe=0,fe=function(){function e(e){this.id=pe++,this.version="10.10.0",this.plugins=new J,this.options={id:{minify:!1},createGenerateId:ne,Renderer:i.A?he:null,plugins:[]},this.generateId=ne({minify:!1});for(var t=0;t<q.length;t++)this.plugins.use(q[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,r.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Z.index?0:Z.index+1);var i=new G(e,(0,r.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(i),i},t.removeStyleSheet=function(e){return e.detach(),Z.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var i=(0,r.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});i.generateId||(i.generateId=this.generateId),i.classes||(i.classes={}),i.keyframes||(i.keyframes={});var o=d(e,t,i);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
2return n.forEach(function(t){e.plugins.use(t)}),this},e}(),me=function(e){return new fe(e)},ge="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ye(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=ye(r);o&&(t||(t={}),t[n]=o)}}return t}me()},73413:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(96540),i=n(5556),o=n.n(i),s=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var l=function(e){var t,n;function i(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,u(t,n);var o=i.prototype;return o.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},o.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise(function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()})},o.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},o.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,s));return r.createElement("div",a({},t,{ref:this.handleRecaptchaRef}))},i}(r.Component);l.displayName="ReCAPTCHA",l.propTypes={sitekey:o().string.isRequired,onChange:o().func,grecaptcha:o().object,theme:o().oneOf(["dark","light"]),type:o().oneOf(["image","audio"]),tabindex:o().number,onExpired:o().func,onErrored:o().func,size:o().oneOf(["compact","normal","invisible"]),stoken:o().string,hl:o().string,badge:o().oneOf(["bottomright","bottomleft","inline"]),isolated:o().bool}
2,l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var d=n(4146),h=n.n(d);function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var f={},m=0,g="onloadcallback";function y(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}const v=(_=function(){var e=y(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+g+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+g+"&render=explicit"},b=(b={callbackName:g,globalName:"grecaptcha",attributes:y().nonce?{nonce:y().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,i;function o(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+m++),this.__scriptLoaderID},s.setupScriptURL=function(){return this.__scriptURL=_(),this.__scriptURL},s.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},s.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=f[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[b.callbackName]},s.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=b,i=r.globalName,o=r.callbackName,s=r.scriptId;if(i&&void 0!==window[i]&&(f[t]={loaded:!0,observers:{}}),f[t]){var a=f[t];return a&&(a.loaded||a.errored)?void this.asyncScriptLoaderHandleLoad(a):void(a.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var c={};c[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},f[t]={loaded:!1,observers:c};var u=document.createElement("script");for(var l in u.src=t,u.async=!0,b.attributes)u.setAttribute(l,b.attributes[l]);s&&(u.id=s);var d=function(e){if(f[t]){var n=f[t].observers;for(var r in n)e(n[r])&&delete n[r]}};o&&"undefined"!=typeof window&&(window[o]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=f[t];e&&(e.loaded=!0,d(function(t){return!o&&(t(e),!0)}))},u.onerror=function(){var e=f[t];e&&(e.errored=!0,d(function(t){return t(e),!0}))},document.body.appendChild(u)},s.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===b.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=f[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===b.removeOnUnmount&&delete f[e])},s.render=function(){var t=b.globalName,n=this.props,i=(n.asyncScriptOnLoad,n.forwardedRef),o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(o[t]=void 0!==window[t]?window[t]:void 0),o.ref=i,(0,r.createElement)(e,o)},o}(r.Component),i=(0,r.forwardRef)(function(e,t){return(0,r.createElement)(n,p({},e,{forwardedRef:t}))});return i.displayName="AsyncScriptLoader("+t+")",i.propTypes={asyncScriptOnLoad:o().func},h()(i,e)})(l);var _,b;const w=v},73738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},73893:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},74353:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",s="day",a="week",c="month",u="quarter",l="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,485 bytes, line 2
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,s=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:l,w:a,d:s,D:d,h:o,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",_={};_[v]=m;var b="$isDayjsObject",w=function(e){return e instanceof T||!(!e||!e[b])},S=function e(t,n,r){var i;if(!t)return v;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(i=o),n&&(_[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;_[a]=t,i=a}return!r&&i&&(v=i),i||!r&&v},E=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},k=y;k.l=S,k.i=w,k.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return E(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<E(e)},g.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,u=!!k.u(t)||t,h=k.p(e),p=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(s)},f=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case l:return u?p(1,0):p(31,11);case c:return u?p(1,g):p(0,g+1);case a:var _=this.$locale().weekStart||0,b=(m<_?m+7:m)-_;return p(u?y-b:y+(6-b),g);case s:case d:return f(v+"Hours",0);case o:return f(v+"Minutes",1);case i:return f(v+"Seconds",2);case r:return f(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var a,u=k.p(e),h="set"+(this.$u?"UTC":""),p=(a={},a[s]=h+"Date",a[d]=h+"Date",a[c]=h+"Month",a[l]=h+"FullYear",a[o]=h+"Hours",a[i]=h+"Minutes",a[r]=h+"Seconds",a[n]=h+"Milliseconds",a)[u],f=u===s?this.$D+(t-this.$W):t;if(u===c||u===l){var m=this.clone().set(d,1);m.$d[p](f),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(n,u){var d,h=this;n=Number(n);var p=k.p(u),f=function(e){var t=E(h);return k.w(t.date(t.date()+Math.round(e*n)),h)};if(p===c)return this.set(c,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===s)return f(1);if(p===a)return f(7);var m=(d={},d[i]=e,d[o]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),o=this.$H,s=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=n.meridiem,d=function(e,n,i,o){return e&&(e[
2n]||e(t,r))||i[n].slice(0,o)},p=function(e){return k.s(o%12||12,e,"0")},m=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return a+1;case"MM":return k.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,u,3);case"MMMM":return d(u,a);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return k.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(o,s,!0);case"A":return m(o,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,h){var p,f=this,m=k.p(d),g=E(n),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,_=function(){return k.m(f,g)};switch(m){case l:p=_()/12;break;case c:p=_();break;case u:p=_()/3;break;case a:p=(v-y)/6048e5;break;case s:p=(v-y)/864e5;break;case o:p=v/t;break;case i:p=v/e;break;case r:p=v/1e3;break;default:p=v}return h?p:k.a(p)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),I=T.prototype;return E.prototype=I,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",s],["$M",c],["$y",l],["$D",d]].forEach(function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),E.extend=function(e,t){return e.$i||(e(t,T,E),e.$i=!0),E},E.locale=S,E.isDayjs=w,E.unix=function(e){return E(1e3*e)},E.en=_[v],E.Ls=_,E.p={},E}()},74611:(e,t,n)=>{"use strict";n.d(t,{E1:()=>h,Ef:()=>o,Fy:()=>m,JD:()=>a,Lc:()=>f,Le:()=>d,Sn:()=>u,fs:()=>c,i_:()=>r,jG:()=>p,sy:()=>i,uT:()=>s,xc:()=>l});const r="sentry.source",i="sentry.sample_rate",o="sentry.previous_trace_sample_rate",s="sentry.op",a="sentry.origin",c="sentry.idle_span_finish_reason",u="sentry.measurement_unit",l="sentry.measurement_value",d="sentry.custom_span_name",h="sentry.profile_id",p="sentry.exclusive_time",f="sentry.link.type",m="gen_ai.conversation.id"},74733:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,e:()=>i});var r=n(9600);function i(){return(0,r.eJ)()}function o(){return(0,r.eJ)().substring(16)}},74958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!s.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,o.default)(e,a)}catch(e){t.style={}}else t.style={}};var i=n(96540),o=r(n(35229)),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),a={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(i.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},75330:(e,t,n)=>{"use strict";n.d(t,{LE:()=>c,V7:()=>u,lu:()=>l});var r=n(31158),i=n(71111),o=n(72808),s=n(84347),a=n(5915);function c(e,t,n,r){const s=(0,o.Cj)(n),a={sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:(0,i.SB)(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,o.h4)(a,[c])}function u(e,t,n,r){const i=(0,o.Cj)(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);const a=(0,o.n2)(e,i,r,t);delete e.sdkProcessingMetadata;const c=[{type:s},e];return(0,o.h4)(a,[c])}function l(e,t){const n=(0,r.k1)(e[0]),c=t?.getDsn(),u=t?.getOptions().tunnel,l={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!u&&c&&{dsn:(0,i.SB)(c)}},{beforeSendSpan:d,ignoreSpans:h}=t?.getOptions()||{},p=h?.length?e.filter(e=>!(0,s.e)((0,a.et)(e),h)):e,f=e.length-p.length;f&&t?.recordDroppedEvent("before_send","span",f);const m=d?e=>{const t=(0,a.et)(e);return d(t)||((0,a.xl)(),t)}:a.et,g=[];for(const e of p){const t=m(e);t&&g.push((0,o.y5)(t))}return(0,o.h4)(l,g)}},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}}
2,76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77387:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(63662);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},77659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},77736:(e,t,n)=>{var r=n(73738).default,i=n(89045);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},78461:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FirebaseError:()=>o.g,SDK_VERSION:()=>ee,_DEFAULT_ENTRY_NAME:()=>j,_addComponent:()=>B,_addOrOverwriteComponent:()=>H,_apps:()=>F,_clearComponents:()=>G,_components:()=>z,_getProvider:()=>q,_isFirebaseApp:()=>K,_isFirebaseServerApp:()=>Y,_registerComponent:()=>W,_removeServiceInstance:()=>V,_serverApps:()=>$,deleteApp:()=>oe,getApp:()=>re,getApps:()=>ie,initializeApp:()=>te,initializeServerApp:()=>ne,onLog:()=>ae,registerVersion:()=>se,setLogLevel:()=>ce});var r=n(5125),i=n(63424),o=n(81936),s=n(96148);class a{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null}).filter(e=>e).join(" ")}}const c="@firebase/app",u="0.13.2",l=new i.Vy("@firebase/app"),d="@firebase/app-compat",h="@firebase/analytics-compat",p="@firebase/analytics",f="@firebase/app-check-compat",m="@firebase/app-check",g="@firebase/auth",y="@firebase/auth-compat",v="@firebase/database",_="@firebase/data-connect",b="@firebase/database-compat",w="@firebase/functions",S="@firebase/functions-compat",E="@firebase/installations",k="@firebase/installations-compat",T="@firebase/messaging",I="@firebase/messaging-compat",C="@firebase/performance",x="@firebase/performance-compat",O="@firebase/remote-config",A="@firebase/remote-config-compat",R="@firebase/storage",P="@firebase/storage-compat",N="@firebase/firestore",M="@firebase/ai",D="@firebase/firestore-compat",L="firebase",j="[DEFAULT]",U={[c]:"fire-core",[d]:"fire-core-compat",[p]:"fire-analytics",[h]:"fire-analytics-compat",[m]:"fire-app-check",[f]:"fire-app-check-compat",[g]:"fire-auth",[y]:"fire-auth-compat",[v]:"fire-rtdb",[_]:"fire-data-connect",[b]:"fire-rtdb-compat",[w]:"fire-fn",[S]:"fire-fn-compat",[E]:"fire-iid",[k]:"fire-iid-compat",[T]:"fire-fcm",[I]:"fire-fcm-compat",[C]:"fire-perf",[x]:"fire-perf-compat",[O]:"fire-rc",[A]:"fire-rc-compat",[R]:"fire-gcs",[P]:"fire-gcs-compat",[N]:"fire-fst",[D]:"fire-fst-compat",[M]:"fire-vertex","fire-js":"fire-js",[L]:"fire-js-all"},F=new Map,$=new Map,z=new Map;function B(e,t){try{e.container.addComponent(t)}catch(n){l.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function H(e,t){e.container.addOrOverwriteComponent(t)}function W(e){const t=e.name;if(z.has(t))return l.debug(`There were multiple attempts to register component ${t}.`),!1;z.set(t,e);for(const t of F.values())B(t,e);for(const t of $.values())B(t,e);return!0}function q(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function V(e,t,n=j){q(e,t).clearInstance(n)}function K(e){return void 0!==e.options}function Y(e){return null!=e&&void 0!==e.settings}function G(){z.clear()}const J=new o.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invali
2d-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class X{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new r.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw J.create("app-deleted",{appName:this._name})}}function Z(e,t){const n=(0,o.u)(e.split(".")[1]);null!==n?void 0!==JSON.parse(n).exp?1e3*JSON.parse(n).exp-(new Date).getTime()<=0&&console.error(`FirebaseServerApp ${t} is invalid: the token has expired.`):console.error(`FirebaseServerApp ${t} is invalid: expiration claim could not be parsed`):console.error(`FirebaseServerApp ${t} is invalid: second part could not be parsed.`)}class Q extends X{constructor(e,t,n,r){const i=void 0===t.automaticDataCollectionEnabled||t.automaticDataCollectionEnabled,o={name:n,automaticDataCollectionEnabled:i};void 0!==e.apiKey?super(e,o,r):super(e.options,o,r),this._serverConfig=Object.assign({automaticDataCollectionEnabled:i},t),this._serverConfig.authIdToken&&Z(this._serverConfig.authIdToken,"authIdToken"),this._serverConfig.appCheckToken&&Z(this._serverConfig.appCheckToken,"appCheckToken"),this._finalizationRegistry=null,"undefined"!=typeof FinalizationRegistry&&(this._finalizationRegistry=new FinalizationRegistry(()=>{this.automaticCleanup()})),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,t.releaseOnDeref=void 0,se(c,u,"serverapp")}toJSON(){}get refCount(){return this._refCount}incRefCount(e){this.isDeleted||(this._refCount++,void 0!==e&&null!==this._finalizationRegistry&&this._finalizationRegistry.register(e,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){oe(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw J.create("server-app-deleted")}}const ee="11.10.0";function te(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});const i=Object.assign({name:j,automaticDataCollectionEnabled:!0},t),s=i.name;if("string"!=typeof s||!s)throw J.create("bad-app-name",{appName:String(s)});if(n||(n=(0,o.T9)()),!n)throw J.create("no-options");const a=F.get(s);if(a){if((0,o.bD)(n,a.options)&&(0,o.bD)(i,a.config))return a;throw J.create("duplicate-app",{appName:s})}const c=new r.h1(s);for(const e of z.values())c.addComponent(e);const u=new X(n,i,c);return F.set(s,u),u}function ne(e,t){if((0,o.Bd)()&&!(0,o.p7)())throw J.create("invalid-server-app-environment");let n;void 0===t.automaticDataCollectionEnabled&&(t.automaticDataCollectionEnabled=!0),n=K(e)?e.options:e;const i=Object.assign(Object.assign({},t),n);if(void 0!==i.releaseOnDeref&&delete i.releaseOnDeref,void 0!==t.releaseOnDeref&&"undefined"==typeof FinalizationRegistry)throw J.create("finalization-registry-not-supported",{});const s=""+(a=JSON.stringify(i),[...a].reduce((e,t)=>
2Math.imul(31,e)+t.charCodeAt(0)|0,0));var a;const c=$.get(s);if(c)return c.incRefCount(t.releaseOnDeref),c;const u=new r.h1(s);for(const e of z.values())u.addComponent(e);const l=new Q(n,t,s,u);return $.set(s,l),l}function re(e=j){const t=F.get(e);if(!t&&e===j&&(0,o.T9)())return te();if(!t)throw J.create("no-app",{appName:e});return t}function ie(){return Array.from(F.values())}async function oe(e){let t=!1;const n=e.name;F.has(n)?(t=!0,F.delete(n)):$.has(n)&&e.decRefCount()<=0&&($.delete(n),t=!0),t&&(await Promise.all(e.container.getProviders().map(e=>e.delete())),e.isDeleted=!0)}function se(e,t,n){var i;let o=null!==(i=U[e])&&void 0!==i?i:e;n&&(o+=`-${n}`);const s=o.match(/\s|\//),a=t.match(/\s|\//);if(s||a){const e=[`Unable to register library "${o}" with version "${t}":`];return s&&e.push(`library name "${o}" contains illegal characters (whitespace or "/")`),s&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void l.warn(e.join(" "))}W(new r.uA(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}function ae(e,t){if(null!==e&&"function"!=typeof e)throw J.create("invalid-log-argument");(0,i.Ey)(e,t)}function ce(e){(0,i.He)(e)}const ue="firebase-heartbeat-store";let le=null;function de(){return le||(le=(0,s.P2)("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(ue)}catch(e){console.warn(e)}}}).catch(e=>{throw J.create("idb-open",{originalErrorMessage:e.message})})),le}async function he(e,t){try{const n=(await de()).transaction(ue,"readwrite"),r=n.objectStore(ue);await r.put(t,pe(e)),await n.done}catch(e){if(e instanceof o.g)l.warn(e.message);else{const t=J.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});l.warn(t.message)}}}function pe(e){return`${e.name}!${e.options.appId}`}class fe{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new ge(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=me();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(e=>e.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){l.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=me(),{heartbeatsToSend:n,unsentEntries:r}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),ye(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),ye(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=(0,o.Uj)(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return l.warn(e),""}}}function me(){return(new Date).toISOString().substring(0,10)}class ge{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,o.zW)()&&(0,o.eX)().then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await de()).transaction(ue),n=await t.objectStore(ue).get(pe(e));return await t.done,n}catch(e){if(e instanceof o.g)l.warn(e.message);else{const t=J.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});l.warn(t.message)}}}(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return he(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return he(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function ye(e){return(0,o.Uj)(JSON.stringify({version:2,heartbeats:e})).length}W(new r.uA("platform-logger",e=>new a(e),"PRIVATE")),W(new r.uA("heartbeat",e=>new fe(e),"PRIVATE")),se(c,u,""),se(c,u,"esm2017"),se("fire-js","")},78840:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(81936),i=n(5125),o=n(78461),s=n(63424);class a{constructor(e,t){this._delegate=e,this.firebase=t,(0,o._addComponent)(e,new i.uA("app-compat",()=>this,"PUBLIC")),this.container=e.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this._delegate.automaticDataCollectionEnabled=e}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(e=>{this._delegate.checkDestroyed(),e()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,o.deleteApp)(this._delegate)))}_getService(e,t=o._DEFAULT_ENTRY_NAME){var n;this._delegate.checkDestroyed();const r=this._delegate.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})}_removeServiceInstance(e,t=o._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(e).
2clearInstance(t)}_addComponent(e){(0,o._addComponent)(this._delegate,e)}_addOrOverwriteComponent(e){(0,o._addOrOverwriteComponent)(this._delegate,e)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const c=new r.FA("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),u=function e(){const t=function(e){const t={},n={__esModule:!0,initializeApp:function(i,s={}){const a=o.initializeApp(i,s);if((0,r.gR)(t,a.name))return t[a.name];const c=new e(a,n);return t[a.name]=c,c},app:i,registerVersion:o.registerVersion,setLogLevel:o.setLogLevel,onLog:o.onLog,apps:null,SDK_VERSION:o.SDK_VERSION,INTERNAL:{registerComponent:function(t){const s=t.name,a=s.replace("-compat","");if(o._registerComponent(t)&&"PUBLIC"===t.type){const o=(e=i())=>{if("function"!=typeof e[a])throw c.create("invalid-app-argument",{appName:s});return e[a]()};void 0!==t.serviceProps&&(0,r.zw)(o,t.serviceProps),n[a]=o,e.prototype[a]=function(...e){return this._getService.bind(this,s).apply(this,t.multipleInstances?e:[])}}return"PUBLIC"===t.type?n[a]:null},removeApp:function(e){delete t[e]},useAsService:function(e,t){return"serverAuth"===t?null:t},modularAPIs:o}};function i(e){if(e=e||o._DEFAULT_ENTRY_NAME,!(0,r.gR)(t,e))throw c.create("no-app",{appName:e});return t[e]}return n.default=n,Object.defineProperty(n,"apps",{get:function(){return Object.keys(t).map(e=>t[e])}}),i.App=e,n}(a);return t.INTERNAL=Object.assign(Object.assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){(0,r.zw)(t,e)},createSubscribe:r.tD,ErrorFactory:r.FA,deepExtend:r.zw}),t}(),l=new s.Vy("@firebase/app-compat");try{const e=(0,r.mS)();if(void 0!==e.firebase){l.warn("\n      Warning: Firebase is already defined in the global scope. Please make sure\n      Firebase library is only loaded once.\n    ");const t=e.firebase.SDK_VERSION;t&&t.indexOf("LITE")>=0&&l.warn("\n        Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n        You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n        ")}}catch(e){}const d=u;(0,o.registerVersion)("@firebase/app-compat","0.4.2",undefined)},79988:(e,t,n)=>{"use strict";n.d(t,{A:()=>r.A});var r=n(78840);r.A.registerVersion("firebase","11.10.0","app-compat")},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(98587);function i(e,t){if(null==e)return{};var n,i,o=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},80491:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(18845),i=n(13235);let o=null;function s(e){const t="error";(0,i.s5)(t,e),(0,i.AS)(t,a)}function a(){o=r.O.onerror,r.O.onerror=function(e,t,n,r,s){const a={column:r,error:s,line:n,msg:e,url:t};return(0,i.aj)("error",a),!!o&&o.apply(this,arguments)},r.O.onerror.__SENTRY_INSTRUMENTED__=!0}},81936:(e,t,n)=>{"use strict";n.d(t,{cY:()=>f,FA:()=>M,g:()=>N,dM:()=>P,u:()=>a,Uj:()=>s,p9:()=>J,gR:()=>L,Fy:()=>y,tD:()=>H,bD:()=>U,zw:()=>c,hp:()=>B,T9:()=>h,XA:()=>p,mS:()=>l,Ku:()=>X,ZQ:()=>w,Bd:()=>k,sr:()=>C,zJ:()=>m,c1:()=>I,Im:()=>j,lT:()=>O,zW:()=>A,jZ:()=>S,Ll:()=>E,lV:()=>x,p7:()=>T,gE:()=>g,Am:()=>$,I9:()=>z,P1:()=>b,eX:()=>R});const r=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},i={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){const i=e[t],o=t+1<e.length,s=o?e[t+1]:0,a=t+2<e.length,c=a?e[t+2]:0,u=i>>2,l=(3&i)<<4|s>>4;let d=(15&s)<<2|c>>6,h=63&c;a||(h=64,o||(d=64)),r.push(n[u],n[l],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(r(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){const o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{const o=e[n++],s=e[n++];
2t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){const i=n[e.charAt(t++)],s=t<e.length?n[e.charAt(t)]:0;++t;const a=t<e.length?n[e.charAt(t)]:64;++t;const c=t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==s||null==a||null==c)throw new o;const u=i<<2|s>>4;if(r.push(u),64!==a){const e=s<<4&240|a>>2;if(r.push(e),64!==c){const e=a<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class o extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const s=function(e){return function(e){const t=r(e);return i.encodeByteArray(t,!0)}(e).replace(/\./g,"")},a=function(e){try{return i.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function c(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&u(n)&&(e[n]=c(e[n],t[n]));return e}function u(e){return"__proto__"!==e}function l(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("Unable to locate global object.")}const d=()=>{try{return l().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process)return;const e="MISSING_ENV_VAR".__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&a(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},h=()=>{var e;return null===(e=d())||void 0===e?void 0:e.config},p=e=>{var t;return null===(t=d())||void 0===t?void 0:t[`_${e}`]};class f{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}function m(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch(e){return!1}}async function g(e){return(await fetch(e,{credentials:"include"})).ok}function y(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[s(JSON.stringify({alg:"none",type:"JWT"})),s(JSON.stringify(o)),""].join(".")}const v={};let _=!1;function b(e,t){if("undefined"==typeof window||"undefined"==typeof document||!m(window.location.host)||v[e]===t||v[e]||_)return;function n(e){return`__firebase__banner__${e}`}v[e]=t;const r="__firebase__banner",i=function(){const e={prod:[],emulator:[]};for(const t of Object.keys(v))v[t]?e.emulator.push(t):e.prod.push(t);return e}().prod.length>0;function o(){const e=function(e){let t=document.getElementById(e),n=!1;return t||(t=document.createElement("div"),t.setAttribute("id",e),n=!0),{created:n,element:t}}(r),t=n("text"),o=document.getElementById(t)||document.createElement("span"),s=n("learnmore"),a=document.getElementById(s)||document.createElement("a"),c=n("preprendIcon"),u=document.getElementById(c)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.created){const t=e.element;!function(e){e.style.display="flex",e.style.background="#7faaf0",e.style.position="fixed",e.style.bottom="5px",e.style.left="5px",e.style.padding=".5em",e.style.borderRadius="5px",e.style.alignItems="center"}(t),function(e,t){e.setAttribute("id",t),e.innerText="Learn more",e.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",e.setAttribute("target","__blank"),e.style.paddingLeft="5px",e.style.textDecoration="underline"}(a,s);const n=function(){const e=document.createElement("span");
2return e.style.cursor="pointer",e.style.marginLeft="16px",e.style.fontSize="24px",e.innerHTML=" &times;",e.onclick=()=>{_=!0,function(){const e=document.getElementById(r);e&&e.remove()}()},e}();!function(e,t){e.setAttribute("width","24"),e.setAttribute("id",t),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 24 24"),e.setAttribute("fill","none"),e.style.marginLeft="-6px"}(u,c),t.append(u,o,a,n),document.body.appendChild(t)}i?(o.innerText="Preview backend disconnected.",u.innerHTML='<g clip-path="url(#clip0_6013_33858)">\n<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6013_33858">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>'):(u.innerHTML='<g clip-path="url(#clip0_6083_34804)">\n<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>\n</g>\n<defs>\n<clipPath id="clip0_6083_34804">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n</defs>',o.innerText="Preview backend running in this workspace."),o.setAttribute("id",t)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",o):o()}function w(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function S(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(w())}function E(){var e;const t=null===(e=d())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(e){return!1}}function k(){return"undefined"!=typeof window||T()}function T(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function I(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function C(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function x(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function O(){const e=w();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function A(){try{return"object"==typeof indexedDB}catch(e){return!1}}function R(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}})}function P(){return!("undefined"==typeof navigator||!navigator.cookieEnabled)}
2class N extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,N.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,M.prototype.create)}}class M{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],o=i?function(e,t){return e.replace(D,(e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`})}(i,n):"Error",s=`${this.serviceName}: ${o} (${r}).`;return new N(r,s,n)}}const D=/\{\$([^}]+)}/g;function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function j(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function U(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],o=t[i];if(F(n)&&F(o)){if(!U(n,o))return!1}else if(n!==o)return!1}for(const e of r)if(!n.includes(e))return!1;return!0}function F(e){return null!==e&&"object"==typeof e}function $(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function z(e){const t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){const[n,r]=e.split("=");
2t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function B(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function H(e,t){const n=new W(e,t);return n.subscribe.bind(n)}class W{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e){if("object"!=typeof e||null===e)return!1;for(const t of["next","error","complete"])if(t in e&&"function"==typeof e[t])return!0;return!1}(e)?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=q),void 0===r.error&&(r.error=q),void 0===r.complete&&(r.complete=q);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}}),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function q(){}const V=1e3,K=2,Y=144e5,G=.5;function J(e,t=V,n=K){const r=t*Math.pow(n,e),i=Math.round(G*r*(Math.random()-.5)*2);return Math.min(Y,r+i)}function X(e){return e&&e._delegate?e._delegate:e}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},84347:(e,t,n)=>{"use strict";n.d(t,{R:()=>c,e:()=>a});var r=n(26674),i=n(19282),o=n(70125);function s(e){i.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function a(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(u(n)){if((0,o._c)(e.description,n))return r.T&&s(e),!0;continue}if(!n.name&&!n.op)continue;const t=!n.name||(0,o._c)(e.description,n.name),i=!n.op||e.op&&(0,o._c)(e.op,n.op);if(t&&i)return r.T&&s(e),!0}return!1}function c(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function u(e){return"string"==typeof e||e instanceof RegExp}},85072:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},s=[],a=0;a<e.length;a++){var c=e[a],u=r.base?c[0]+r.base:c[0],l=o[u]||0,d="".concat(u," ").concat(l);o[u]=l+1;var h=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=i(p,r);r.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}s.push(d)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var c=r(e,i),u=0;u<o.length;u++){var l=n(o[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=c}}},85761:(e,t,n)=>{"use strict";n.d(t,{_:()=>c});var r=n(13235),i=n(46403),o=n(47040),s=n(14910);let a;function c(e){const t="history";(0,r.s5)(t,e),(0,r.AS)(t,u)}function u(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const i=a,o=function(e){try{return new URL(e,s.j.location.origin).toString()}catch{return e}}(String(n));if(a=o,i===o)return e.apply(this,t);const c={from:i,to:o};(0,r.aj)("history",c)}return e.apply(this,t)}}s.j.addEventListener("popstate",()=>{const e=s.j.location.href,t=a;if(a=e,t===e)return;const n={from:t,to:e};(0,r.aj)("history",n)}),(0,o.NJ)()&&((0,i.GS)(s.j.history,"pushState",e),(0,i.GS)(s.j.history,"replaceState",e))}},86663:(e,t,n)=>{"use strict";const r=n(24280),i=n(30454),o=n(528),s=n(73055);function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function l(e){return Array.isArray(e)?e.sort():"object"==typeof e?l(Object.keys(e)).sort((e,t)=>
vendor: 3,082 bytes, line 2
2Number(e)-Number(t)).map(t=>e[t]):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&u(n,e).includes(e.arrayFormatSeparator);n=o?u(n,e):n;const s=i||o?n.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===n?n:u(n,e);r[t]=s};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,s]=o(t.decode?i.replace(/\+/g," "):i,"=");s=void 0===s?null:["comma","separator"].includes(t.arrayFormat)?s:u(s,t),n(u(e,t),s,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=l(n):e[t]=n,e},Object.create(null))}t.extract=h,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[c(t,e),"=",c(r,e)].join("")]:[[n,c(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>
2{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=d(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),s=Object.assign(o,e.query);let a=t.stringify(s,n);a&&(a=`?${a}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${c(e.fragmentIdentifier,n)}`),`${r}${a}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);const{url:i,query:o,fragmentIdentifier:a}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:s(o,n),fragmentIdentifier:a},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},87695:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96369),i=n(73893),o=n(27800),s=n(76562);function a(e){return(0,r.A)(e)||(0,i.A)(e)||(0,o.A)(e)||(0,s.A)()}},88728:(e,t,n)=>{"use strict";n.d(t,{L:()=>u,d:()=>c});var r=n(46403),i=n(18845);const o="_sentryScope",s="_sentryIsolationScope";function a(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}function c(e,t,n){e&&((0,r.my)(e,s,function(e){try{const t=i.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(n)),(0,r.my)(e,o,t))}function u(e){const t=e;return{scope:t[o],isolationScope:a(t[s])}}},89045:(e,t,n)=>{var r=n(73738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},90953:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(6440),i=n.n(r),o=n(63009),s=n.n(o),a=n(64725),c=n.n(a);function u(e){return function(e){let t="";const n=function(e){const t=i().random(e),n=[];return t.words.forEach(e=>{const t=function(e){const t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e,!1),t}(e),r=new Uint8Array(t);for(let e=0;e<4;e++)n.push(r[e])}),n}(e);for(let r=0;r<e;r++)t+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"[n[r]%66];return t}(e)}function l(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=u(e);return{code_verifier:t,code_challenge:(n=t,s()(n).toString(c()))};var n}},91135:(e,t,n)=>{"use strict";n.d(t,{F3:()=>i,N8:()=>s,TJ:()=>o,a3:()=>r});const r=0,i=1,o=2;function s(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"internal_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},91773:(e,t,n)=>{"use strict";function r(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}n.d(t,{i:()=>r})},91847:(e,t,n)=>{var r=n(54893);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}
2,92328:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var r=n(95200),i=n(94988),o=n(64208);class s{constructor(e,t){let n,r;n=e||new i.H,r=t||new i.H,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return(0,o.Qg)(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function a(){const e=(0,r.EU)(),t=(0,r.Se)(e);return t.stack=t.stack||new s((0,r.BY)("defaultCurrentScope",()=>new i.H),(0,r.BY)("defaultIsolationScope",()=>new i.H))}function c(e){return a().withScope(e)}function u(e,t){const n=a();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function l(e){return a().withScope(()=>e(a().getIsolationScope()))}function d(e){const t=(0,r.Se)(e);return t.acs?t.acs:{withIsolationScope:l,withScope:c,withSetScope:u,withSetIsolationScope:(e,t)=>l(t),getCurrentScope:()=>a().getScope(),getIsolationScope:()=>a().getIsolationScope()}}},92471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(s),n=t?t[1]:void 0;return(0,o.formatDOM)((0,i.default)(e),null,n)};var i=r(n(65496)),o=n(67731),s=/<(![a-zA-Z\s]+)>/},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(20816);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},93177:(e,t,n)=>{"use strict";n.d(t,{k3:()=>l,lu:()=>s,zf:()=>c});var r=n(9123),i=n(18845);const o=1e3;function s(){return(0,r.Wk)()/o}let a;function c(){return(a??(a=function(){const{performance:e}=i.O;if(!e?.now||!e.timeOrigin)return s;const t=e.timeOrigin;return()=>(t+(0,r.Qw)(()=>e.now()))/o}()))()}let u=null;function l(){return null===u&&(u=function(){const{performance:e}=i.O;if(!e?.now)return;const t=3e5,n=(0,r.Qw)(()=>e.now()),o=(0,r.Wk)(),s=e.timeOrigin;if("number"==typeof s&&Math.abs(s+n-o)<t)return s;const a=e.timing?.navigationStart;return"number"==typeof a&&Math.abs(a+n-o)<t?a:o-n}()),u}},93590:(e,t,n)=>{"use strict";n.d(t,{t:()=>u});var r=n(57968),i=n(6810),o=n(46403);const s="redux.action",a="info",c={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function u(e){const t={...c,...e};return e=>(n,c)=>{function u(e){return(n,c)=>{const u=e(n,c),l=(0,r.o5)(),d=t.actionTransformer(c);null!=d&&(0,i.Z)({category:s,data:d,type:a});const h=t.stateTransformer(u);if(null!=h){const e=(0,r.KU)(),t=e?.getOptions(),n=t?.normalizeDepth||3,i={state:{type:"redux",value:h}};(0,o.my)(i,"__sentry_override_normalization_depth__",3+n),l.setContext("state",i)}else l.setContext("state",null);const{configureScopeWithState:p}=t;return"function"==typeof p&&p(l,u),u}}t.attachReduxState&&(0,r.m6)().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});const l=e(u(n),c);return l.replaceReducer=new Proxy(l.replaceReducer,{apply:function(e,t,n){e.apply(t,[u(n[0])])}}),l}}},93908:(e,t,n)=>{"use strict";n.d(t,{Iy:()=>l,MI:()=>a,TC:()=>u,kM:()=>c});var r=n(63944),i=n(91773),o=n(74733),s=n(9123);const a=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function c(e,t){const n=function(e){if(!e)return;const t=e.match(a);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),c=(0,r.yD)(t);if(!n?.traceId)return{traceId:(0,o.e)(),sampleRand:(0,s.hY)()};const u=function(e,t){const n=(0,i.i)(t?.sample_rand);if(void 0!==n)return n;const r=(0,i.i)(t?.sample_rate);return r&&void 0!==e?.parentSampled?e.parentSampled?(0,s.hY)()*r:r+(0,s.hY)()*(1-r):(0,s.hY)()}(n,c);c&&(c.sample_rand=u.toString());const{traceId:l,parentSpanId:d,parentSampled:h}=n;return{traceId:l,parentSpanId:d,sampled:h,dsc:c||{},sampleRand:u}}function u(e=(0,o.e)(),t=(0,o.Z)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function l(e=(0,o.e)(),t=(0,o.Z)(),n){return`00-${e}-${t}-${n?"01":"00"}`}},94175:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const i="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType},94634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}
2e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},94837:(e,t,n)=>{"use strict";n.d(t,{S8:()=>s,cd:()=>a});var r=n(64208),i=n(46403),o=n(51685);function s(e,t=100,n=1/0){try{return c("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function a(e,t=3,n=102400){const r=s(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?a(e,t-1,n):r;var i}function c(e,t,n=1/0,s=1/0,a=function(){const e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){const[u,l]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.L2)(t))return(0,o.nY)(t);if((0,r.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const h="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===h)return d.replace("object ","");if(u(t))return"[Circular ~]";const p=t;if(p&&"function"==typeof p.toJSON)try{return c("",p.toJSON(),h-1,s,a)}catch{}const f=Array.isArray(t)?[]:{};let m=0;const g=(0,i.W4)(t);for(const e in g){if(!Object.prototype.hasOwnProperty.call(g,e))continue;if(m>=s){f[e]="[MaxProperties ~]";break}const t=g[e];f[e]=c(e,t,h-1,s,a),m++}return l(t),f}},94988:(e,t,n)=>{"use strict";n.d(t,{H:()=>f});var r=n(26674),i=n(59328),o=n(19282),s=n(64208),a=n(45734),c=n(9600),u=n(74733),l=n(9123),d=n(70333),h=n(70125),p=n(93177);class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.e)(),sampleRand:(0,l.hY)()}}clone(){const e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,d.r)(e,(0,d.f)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof f?t.getScopeData():(0,s.Qd)(t)?e:void 0,{tags:r,attributes:i,extra:o,user:a,contexts:c,level:u,fingerprint:l=[],propagationContext:d,conversationId:h}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),h&&(this._conversationId=h),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,d.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.e)(),sampleRand:(0,l.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,p.lu)(),...e,message:e.message?(0,h.xv)(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,d.f)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,a.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
2captureException(e,t){const n=t?.event_id||(0,c.eJ)();if(!this._client)return r.T&&o.Yz.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){const i=n?.event_id||(0,c.eJ)();if(!this._client)return r.T&&o.Yz.warn("No client configured on scope - will not capture message!"),i;const s=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},this),i}captureEvent(e,t){const n=e.event_id||t?.event_id||(0,c.eJ)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r.T&&o.Yz.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},95200:(e,t,n)=>{"use strict";n.d(t,{BY:()=>a,EU:()=>o,Se:()=>s});var r=n(43674),i=n(18845);function o(){return s(i.O),i.O}function s(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.M,t[r.M]=t[r.M]||{}}function a(e,t,n=i.O){const o=n.__SENTRY__=n.__SENTRY__||{},s=o[r.M]=o[r.M]||{};return s[e]||(s[e]=t())}},96148:(e,t,n)=>{"use strict";n.d(t,{P2:()=>m});const r=(e,t)=>t.some(t=>e instanceof t);let i,o;const s=new WeakMap,a=new WeakMap,c=new WeakMap,u=new WeakMap,l=new WeakMap;let d={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return a.get(e);if("objectStoreNames"===t)return e.objectStoreNames||c.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return p(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function h(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(f(this),e),p(s.get(this))}:function(...e){return p(t.apply(f(this),e))}:function(e,...n){const r=t.call(f(this),e,...n);return c.set(r,e.sort?e.sort():[e]),p(r)}:(e instanceof IDBTransaction&&function(e){if(a.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),r()},o=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});a.set(e,t)}(e),r(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,d):e);var t}function p(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(p(e.result)),r()},o=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&s.set(t,e)}).catch(()=>{}),l.set(t,e),t}(e);if(u.has(e))return u.get(e);const t=h(e);return t!==e&&(u.set(e,t),l.set(t,e)),t}const f=e=>l.get(e);function m(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=p(s);return r&&s.addEventListener("upgradeneeded",e=>{r(p(s.result),e.oldVersion,e.newVersion,p(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}const g=["get","getKey","getAll","getAllKeys","count"],y=["put","add","delete","clear"],v=new Map;function _(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(v.get(t))return v.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=y.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!g.includes(n))return;const o=async function(e,...t){const o=this.transaction(e,i?"readwrite":"readonly");let s=o.store;
2return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&o.done]))[0]};return v.set(t,o),o}var b;b=d,d={...b,get:(e,t,n)=>_(e,t)||b.get(e,t,n),has:(e,t)=>!!_(e,t)||b.has(e,t)}},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},96747:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});var r=n(50925),i=n(18845);function o(){return"undefined"!=typeof window&&(!(!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||function(){const e=i.O.process;return"renderer"===e?.type}())}},96811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode
2-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},97806:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var r=n(4692);const i=()=>{const e=(0,r.z)();return e?.activationStart??0}},97825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},98917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,c):e.replace(o,c)).replace(r,a))}},99411:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(18845),i=n(13235);let o=null;function s(e){const t="unhandledrejection";(0,i.s5)(t,e),(0,i.AS)(t,a)}function a(){o=r.O.onunhandledrejection,r.O.onunhandledrejection=function(e){const t=e;return(0,i.aj)("unhandledrejection",t),!o||o.apply(this,arguments)},r.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}}}]);

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