(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{1539:function(e,t,n){var r={"./ar-EG.json":[7197,197],"./en-EG.json":[9329,329],"./en-US.json":[5372]};function i(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n.t(i,19)})}i.keys=function(){return Object.keys(r)},i.id=1539,e.exports=i},2448:function(e,t,n){"use strict";n.d(t,{l$:function(){return a},KV:function(){return i}}),e=n.hmd(e);var r=n(4406);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function a(e,t){return e.require(t)}},1170:function(e,t,n){"use strict";n.d(t,{ph:function(){return c},yW:function(){return u}});var r=n(2448),i=n(1235);e=n.hmd(e);let a=(0,i.Rf)(),s={nowSeconds:()=>Date.now()/1e3},o=(0,r.KV)()?function(){try{let t=(0,r.l$)(e,"perf_hooks");return t.performance}catch(e){return}}():function(){let{performance:e}=a;if(!e||!e.now)return;let t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}(),l=void 0===o?s:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},u=s.nowSeconds.bind(s),c=l.nowSeconds.bind(l);(()=>{let{performance:e}=a;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+t-n):36e5;if(r<36e5||s<36e5)return r<=s?e.timeOrigin:void 0})()},1235:function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return a},YO:function(){return s},n2:function(){return i}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function a(){return i}function s(e,t,n){let r=n||i,a=r.__SENTRY__=r.__SENTRY__||{},s=a[e]||(a[e]=t());return s}},5270:function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports},4180:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},8111:function(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},2954:function(e){function t(e,t,n,r,i,a,s){try{var o=e[a](s),l=o.value}catch(e){n(e);return}o.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise(function(i,a){var s=e.apply(n,r);function o(e){t(s,i,a,o,l,"next",e)}function l(e){t(s,i,a,o,l,"throw",e)}o(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},85:function(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3061:function(e,t,n){var r=n(742),i=n(1549);e.exports=function(e,t,n){if(i())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var s=new(e.bind.apply(e,a));return n&&r(s,n.prototype),s},e.exports.__esModule=!0,e.exports.default=e.exports},5198:function(e,t,n){var r=n(4582);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,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},1260:function(e,t,n){var r=n(4582);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},2588:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},270:function(e,t,n){var r=n(742);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4859:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},1477:function(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},1549:function(e){function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!n},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},981:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,s,o=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},7365:function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},6983:function(e,t,n){var r=n(8921).default,i=n(8111);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6132:function(e,t,n){var r=n(8921).default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},a=Object.prototype,s=a.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,n){return e[t]=n}}function p(e,n,r,i){var a,s,l=Object.create((n&&n.prototype instanceof v?n:v).prototype);return o(l,"_invoke",{value:(a=new C(i||[]),s=m,function(n,i){if(s===_)throw Error("Generator is already running");if(s===y){if("throw"===n)throw i;return{value:t,done:!0}}for(a.method=n,a.arg=i;;){var o=a.delegate;if(o){var l=function e(n,r){var i=r.method,a=n.iterator[i];if(a===t)return r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+i+"' method")),g;var s=f(a,n.iterator,r.arg);if("throw"===s.type)return r.method="throw",r.arg=s.arg,r.delegate=null,g;var o=s.arg;return o?o.done?(r[n.resultName]=o.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):o:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,g)}(o,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===m)throw s=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=_;var u=f(e,r,a);if("normal"===u.type){if(s=a.done?y:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(s=y,a.method="throw",a.arg=u.arg)}})}),l}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var m="suspendedStart",_="executing",y="completed",g={};function v(){}function b(){}function w(){}var E={};h(E,u,function(){return this});var S=Object.getPrototypeOf,k=S&&S(S(A([])));k&&k!==a&&s.call(k,u)&&(E=k);var x=w.prototype=v.prototype=Object.create(E);function T(e){["next","throw","return"].forEach(function(t){h(e,t,function(e){return this._invoke(t,e)})})}function R(e,t){var n;o(this,"_invoke",{value:function(i,a){function o(){return new t(function(n,o){!function n(i,a,o,l){var u=f(e[i],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&s.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,o,l)},function(e){n("throw",e,o,l)}):t.resolve(d).then(function(e){c.value=e,o(c)},function(e){return n("throw",e,o,l)})}l(u.arg)}(i,a,n,o)})}return n=n?n.then(o,o):o()}})}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(s.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw TypeError(r(e)+" is not iterable")}return b.prototype=w,o(x,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=h(w,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,h(e,d,"GeneratorFunction")),e.prototype=Object.create(x),e},n.awrap=function(e){return{__await:e}},T(R.prototype),h(R.prototype,c,function(){return this}),n.AsyncIterator=R,n.async=function(e,t,r,i,a){void 0===a&&(a=Promise);var s=new R(p(e,t,r,i),a);return n.isGeneratorFunction(t)?s:s.next().then(function(e){return e.done?e.value:s.next()})},T(x),h(x,d,"Generator"),h(x,u,function(){return this}),h(x,"toString",function(){return"[object Generator]"}),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return o.type="throw",o.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=s.call(a,"catchLoc"),u=s.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},742:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1068:function(e,t,n){var r=n(4180),i=n(981),a=n(6487),s=n(7365);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},4209:function(e,t,n){var r=n(8921).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 TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4582:function(e,t,n){var r=n(8921).default,i=n(4209);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8921:function(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},6487:function(e,t,n){var r=n(5270);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}},e.exports.__esModule=!0,e.exports.default=e.exports},8240:function(e,t,n){var r=n(2588),i=n(742),a=n(1477),s=n(3061);function o(t){var n="function"==typeof Map?new Map:void 0;return e.exports=o=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7162:function(e,t,n){var r=n(6132)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},6126:function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:function(){return i},n:function(){return r}})},8565:function(e,t,n){"use strict";n.d(t,{KV:function(){return a},l$:function(){return s}});var r=n(6126);e=n.hmd(e);var i=n(4406);function a(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function s(e,t){return e.require(t)}},17:function(e,t,n){"use strict";n.d(t,{Z1:function(){return d},ph:function(){return c},yW:function(){return u}});var r=n(8565),i=n(4142);e=n.hmd(e);let a=(0,i.Rf)(),s={nowSeconds:()=>Date.now()/1e3},o=(0,r.KV)()?function(){try{let t=(0,r.l$)(e,"perf_hooks");return t.performance}catch(e){return}}():function(){let{performance:e}=a;if(!e||!e.now)return;let t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}(),l=void 0===o?s:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},u=s.nowSeconds.bind(s),c=l.nowSeconds.bind(l),d=(()=>{let{performance:e}=a;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=e.timing&&e.timing.navigationStart,s="number"==typeof i?Math.abs(i+t-n):36e5;return r<36e5||s<36e5?r<=s?e.timeOrigin:i:n})()},4142:function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:function(){return a},YO:function(){return s},n2:function(){return i}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function a(){return i}function s(e,t,n){let r=n||i,a=r.__SENTRY__=r.__SENTRY__||{},s=a[e]||(a[e]=t());return s}},527:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(1957),i=n(6087);class a extends r.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let s=new a},7902:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});let r=console},6194:function(e,t,n){"use strict";n.d(t,{R:function(){return l},m:function(){return o}});var r=n(7902),i=n(6962),a=n(7383),s=n(2683);class o extends a.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||r._,this.observers=[],this.state=e.state||l(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,r,i,a,o,l,u,c,d,h,p,f,m,_,y,g,v,b;let w="loading"===this.state.status;try{if(!w){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(d=(h=this.options).onMutate)?void 0:d.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let p=await (()=>{var e;return this.retryer=(0,s.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,p,this.state.variables,this.state.context,this)),await (null==(n=(r=this.options).onSuccess)?void 0:n.call(r,p,this.state.variables,this.state.context)),await (null==(i=(a=this.mutationCache.config).onSettled)?void 0:i.call(a,p,null,this.state.variables,this.state.context,this)),await (null==(o=(l=this.options).onSettled)?void 0:o.call(l,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(e){try{throw await (null==(p=(f=this.mutationCache.config).onError)?void 0:p.call(f,e,this.state.variables,this.state.context,this)),await (null==(m=(_=this.options).onError)?void 0:m.call(_,e,this.state.variables,this.state.context)),await (null==(y=(g=this.mutationCache.config).onSettled)?void 0:y.call(g,void 0,e,this.state.variables,this.state.context,this)),await (null==(v=(b=this.options).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,s.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},6962:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(6087);let i=function(){let e=[],t=0,n=e=>{e()},i=e=>{e()},a=i=>{t?e.push(i):(0,r.A4)(()=>{n(i)})},s=()=>{let t=e;e=[],t.length&&(0,r.A4)(()=>{i(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||s()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e}}}()},5063:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(1957),i=n(6087);let a=["online","offline"];class s extends r.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return a.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{a.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let t=this.online!==e;t&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let o=new s},7383:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(6087);class i{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},2683:function(e,t,n){"use strict";n.d(t,{DV:function(){return u},Kw:function(){return o},Mz:function(){return c}});var r=n(527),i=n(5063),a=n(6087);function s(e){return Math.min(1e3*2**e,3e4)}function o(e){return(null!=e?e:"online")!=="online"||i.N.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function u(e){return e instanceof l}function c(e){let t,n,u,c=!1,d=0,h=!1,p=new Promise((e,t)=>{n=e,u=t}),f=()=>!r.j.isFocused()||"always"!==e.networkMode&&!i.N.isOnline(),m=r=>{h||(h=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},_=n=>{h||(h=!0,null==e.onError||e.onError(n),null==t||t(),u(n))},y=()=>new Promise(n=>{t=e=>{let t=h||!f();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,h||null==e.onContinue||e.onContinue()}),g=()=>{let t;if(!h){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{var n,r;if(h)return;let i=null!=(n=e.retry)?n:3,o=null!=(r=e.retryDelay)?r:s,l="function"==typeof o?o(d,t):o,u=!0===i||"number"==typeof i&&d<i||"function"==typeof i&&i(d,t);if(c||!u){_(t);return}d++,null==e.onFail||e.onFail(d,t),(0,a.Gh)(l).then(()=>{if(f())return y()}).then(()=>{c?_(t):g()})})}};return o(e.networkMode)?g():y().then(g),{promise:p,cancel:t=>{h||(_(new l(t)),null==e.abort||e.abort())},continue:()=>{let e=null==t?void 0:t();return e?p:Promise.resolve()},cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},1957:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},6087:function(e,t,n){"use strict";n.d(t,{A4:function(){return S},G9:function(){return k},Gh:function(){return E},I6:function(){return c},Kp:function(){return o},PN:function(){return s},Rm:function(){return p},SE:function(){return a},VS:function(){return y},X7:function(){return h},ZT:function(){return i},_v:function(){return l},_x:function(){return d},lV:function(){return u},oE:function(){return x},sk:function(){return r},to:function(){return m},yF:function(){return f}});let r="undefined"==typeof window||"Deno"in window;function i(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return w(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function u(e,t,n){return w(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function c(e,t,n){return w(e)?[{...t,queryKey:e},n]:[e||{},t]}function d(e,t){let{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(w(s)){if(r){if(t.queryHash!==p(s,t.options))return!1}else{if(!_(t.queryKey,s))return!1}}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(void 0===i||i===t.state.fetchStatus)&&(!a||!!a(t))}function h(e,t){let{exact:n,fetching:r,predicate:i,mutationKey:a}=e;if(w(a)){if(!t.options.mutationKey)return!1;if(n){if(f(t.options.mutationKey)!==f(a))return!1}else{if(!_(t.options.mutationKey,a))return!1}}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function p(e,t){let n=(null==t?void 0:t.queryKeyHashFn)||f;return n(e)}function f(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function m(e,t){return _(e,t)}function _(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!_(e[n],t[n]))}function y(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(b(n)&&n.hasOwnProperty("isPrototypeOf"))}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return Array.isArray(e)}function E(e){return new Promise(t=>{setTimeout(t,e)})}function S(e){E(0).then(e)}function k(){if("function"==typeof AbortController)return new AbortController}function x(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=g(t)&&g(n);if(r||v(t)&&v(n)){let i=r?t.length:Object.keys(t).length,a=r?n:Object.keys(n),s=a.length,o=r?[]:{},l=0;for(let i=0;i<s;i++){let s=r?i:a[i];o[s]=e(t[s],n[s]),o[s]===t[s]&&l++}return i===s&&l===i?t:o}return n}(e,t):t}},330:function(e,t,n){"use strict";n.d(t,{NL:function(){return o},aH:function(){return l}});var r=n(2784);let i=r.createContext(void 0),a=r.createContext(!1);function s(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}let o=({context:e}={})=>{let t=r.useContext(s(e,r.useContext(a)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t,context:n,contextSharing:i=!1})=>{r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let o=s(n,i);return r.createElement(a.Provider,{value:!n&&i},r.createElement(o.Provider,{value:e},t))}},5692:function(e,t,n){"use strict";var r=n(2680),i=n(5408),a=n(3796),s=n(4434),o=n(9509),l=n(3769),u=n(2370),c=n(8156),d=n(164),h=n(6302),p=r("String.prototype.split"),f=Object("a"),m="a"!==f[0]||!(0 in f);e.exports=function(e){var t,n=c(this),r=m&&h(this)?p(this,""):n,f=u(r);if(!l(e))throw new i("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var _=0;_<f;){var y=d(_);o(r,y)&&a(e,t,[s(r,y),_,r]),_+=1}}},3443:function(e,t,n){"use strict";var r=n(4926),i=n(9429),a=n(2680),s=n(2977),o=n(5692),l=n(5970),u=l(),c=n(9055),d=a("Array.prototype.slice"),h=i.apply(u),p=function(e,t){return s(e),h(e,d(arguments,1))};r(p,{getPolyfill:l,implementation:o,shim:c}),e.exports=p},5970:function(e,t,n){"use strict";var r=n(3937),i=n(5692);e.exports=function(){var e=Array.prototype.forEach;return r(e)?e:i}},9055:function(e,t,n){"use strict";var r=n(4926),i=n(5970);e.exports=function(){var e=i();return r(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},2680:function(e,t,n){"use strict";var r=n(7286),i=n(9429),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},9429:function(e,t,n){"use strict";var r=n(4090),i=n(7286),a=n(7669),s=n(5408),o=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,o),c=n(999),d=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=u(r,l,arguments);return a(t,1+d(0,e.length-(arguments.length-1)),!0)};var h=function(){return u(r,o,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h},5195:function(e,t,n){"use strict";var r=n(999),i=n(8342),a=n(5408),s=n(326);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!s&&s(e,t);if(r)r(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===o&&d?d.enumerable:!o,value:n,writable:null===l&&d?d.writable:!l});else if(!c&&(o||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=n}},4926:function(e,t,n){"use strict";var r=n(3464),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,s=Array.prototype.concat,o=n(5195),l=n(9299)(),u=function(e,t,n,r){if(t in e){if(!0===r){if(e[t]===n)return}else if(!("function"==typeof r&&"[object Function]"===a.call(r))||!r())return}l?o(e,t,n,!0):o(e,t,n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=s.call(a,Object.getOwnPropertySymbols(t)));for(var o=0;o<a.length;o+=1)u(e,a[o],t[a[o]],n[a[o]])};c.supportsDescriptors=!!l,e.exports=c},3796:function(e,t,n){"use strict";var r=n(7286),i=n(2680),a=n(5408),s=n(4727),o=r("%Reflect.apply%",!0)||i("Function.prototype.apply");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!s(n))throw new a("Assertion failed: optional `argumentsList`, if provided, must be a List");return o(e,t,n)}},4434:function(e,t,n){"use strict";var r=n(5408),i=n(9500),a=n(534),s=n(7602);e.exports=function(e,t){if("Object"!==s(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+i(t));return e[t]}},9509:function(e,t,n){"use strict";var r=n(5408),i=n(534),a=n(7602);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: `O` must be an Object");if(!i(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},4727:function(e,t,n){"use strict";e.exports=n(9816)},3769:function(e,t,n){"use strict";e.exports=n(9680)},534:function(e){"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},2370:function(e,t,n){"use strict";var r=n(5408),i=n(4434),a=n(2990),s=n(7602);e.exports=function(e){if("Object"!==s(e))throw new r("Assertion failed: `obj` must be an Object");return a(i(e,"length"))}},2737:function(e,t,n){"use strict";var r=n(7286),i=r("%Number%"),a=r("%RegExp%"),s=n(5408),o=r("%parseInt%"),l=n(2680),u=n(3671),c=l("String.prototype.slice"),d=u(/^0b[01]+$/i),h=u(/^0o[0-7]+$/i),p=u(/^[-+]0x[0-9a-f]+$/i),f=u(new a("[\x85​￾]","g")),m=n(1341);e.exports=function e(t){if("string"!=typeof t)throw new s("Assertion failed: `argument` is not a String");if(d(t))return i(o(c(t,2),2));if(h(t))return i(o(c(t,2),8));if(f(t)||p(t))return NaN;var n=m(t);return n!==t?e(n):i(t)}},5370:function(e,t,n){"use strict";var r=n(5771),i=n(6277),a=n(2510),s=n(1726);e.exports=function(e){var t=r(e);return a(t)||0===t?0:s(t)?i(t):t}},2990:function(e,t,n){"use strict";var r=n(3034),i=n(5370);e.exports=function(e){var t=i(e);return t<=0?0:t>r?r:t}},5771:function(e,t,n){"use strict";var r=n(7286),i=n(5408),a=r("%Number%"),s=n(6607),o=n(778),l=n(2737);e.exports=function(e){var t=s(e)?e:o(e,a);if("symbol"==typeof t)throw new i("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?l(t):a(t)}},778:function(e,t,n){"use strict";var r=n(5885);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},164:function(e,t,n){"use strict";var r=n(7286)("%String%"),i=n(5408);e.exports=function(e){if("symbol"==typeof e)throw new i("Cannot convert a Symbol value to a string");return r(e)}},7602:function(e,t,n){"use strict";var r=n(2265);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},1752:function(e){"use strict";var t=Math.floor;e.exports=function(e){return"bigint"==typeof e?e:t(e)}},6277:function(e,t,n){"use strict";var r=n(1752),i=n(5408);e.exports=function(e){if("number"!=typeof e&&"bigint"!=typeof e)throw new i("argument must be a Number or a BigInt");var t=e<0?-r(-e):r(e);return 0===t?0:t}},2265:function(e){"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},9816:function(e,t,n){"use strict";var r=n(7286)("%Array%"),i=!r.isArray&&n(2680)("Object.prototype.toString");e.exports=r.isArray||function(e){return"[object Array]"===i(e)}},1726:function(e,t,n){"use strict";var r=n(2510);e.exports=function(e){return("number"==typeof e||"bigint"==typeof e)&&!r(e)&&e!==1/0&&e!==-1/0}},2510:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},6607:function(e){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},3034:function(e){"use strict";e.exports=Number.MAX_SAFE_INTEGER||9007199254740991},3937:function(e){e.exports=function(e){var t=!0,n=!0,r=!1;if("function"==typeof e){try{e.call("f",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([null],function(){"use strict";n="string"==typeof this},"x")}catch(e){r=!0}return!r&&t&&n}return!1}},999:function(e,t,n){"use strict";var r=n(7286)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},9654:function(e){"use strict";e.exports=EvalError},2321:function(e){"use strict";e.exports=Error},8205:function(e){"use strict";e.exports=RangeError},2976:function(e){"use strict";e.exports=ReferenceError},8342:function(e){"use strict";e.exports=SyntaxError},5408:function(e){"use strict";e.exports=TypeError},2885:function(e){"use strict";e.exports=URIError},2977:function(e,t,n){"use strict";var r=n(5408);e.exports=function(e){if(null==e)throw new r(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},8156:function(e,t,n){"use strict";var r=n(4546),i=n(2977);e.exports=function(e){return i(e),r(e)}},4546:function(e){"use strict";e.exports=Object},5885:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=n(3919),a=n(9680),s=n(4277),o=n(8705),l=function(e,t){if(null==e)throw TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw TypeError('hint must be "string" or "number"');var n,r,s,o="string"===t?["toString","valueOf"]:["valueOf","toString"];for(s=0;s<o.length;++s)if(a(n=e[o[s]])&&i(r=n.call(e)))return r;throw TypeError("No default value")},u=function(e,t){var n=e[t];if(null!=n){if(!a(n))throw TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};e.exports=function(e){if(i(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):o(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(e,n);if(i(a))return a;throw TypeError("unable to convert exotic object to primitive")}return"default"===n&&(s(e)||o(e))&&(n="string"),l(e,"default"===n?"number":n)}},3919:function(e){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},7795:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},i=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},a=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var s,o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw TypeError("Function.prototype.bind called on incompatible "+o);for(var l=i(arguments,1),u=n(0,o.length-l.length),c=[],d=0;d<u;d++)c[d]="$"+d;if(s=Function("binder","return function ("+a(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var t=o.apply(this,r(l,arguments));return Object(t)===t?t:this}return o.apply(e,r(l,arguments))}),o.prototype){var h=function(){};h.prototype=o.prototype,s.prototype=new h,h.prototype=null}return s}},4090:function(e,t,n){"use strict";var r=n(7795);e.exports=Function.prototype.bind||r},7286:function(e,t,n){"use strict";var r,i=n(2321),a=n(9654),s=n(8205),o=n(2976),l=n(8342),u=n(5408),c=n(2885),d=Function,h=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var f=function(){throw new u},m=p?function(){try{return arguments.callee,f}catch(e){try{return p(arguments,"callee").get}catch(e){return f}}}():f,_=n(2636)(),y=n(8486)(),g=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),v={},b="undefined"!=typeof Uint8Array&&g?g(Uint8Array):r,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&g?g([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&g?g(g([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&g?g(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&g?g(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&g?g(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(g)try{null.error}catch(e){var E=g(g(e));w["%Error.prototype%"]=E}var S=function e(t){var n;if("%AsyncFunction%"===t)n=h("async function () {}");else if("%GeneratorFunction%"===t)n=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=h("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&g&&(n=g(i.prototype))}return w[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=n(4090),T=n(2196),R=x.call(Function.call,Array.prototype.concat),I=x.call(Function.apply,Array.prototype.splice),O=x.call(Function.call,String.prototype.replace),C=x.call(Function.call,String.prototype.slice),A=x.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,P=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return O(e,N,function(e,t,n,i){r[r.length]=n?O(i,D,"$1"):t||e}),r},L=function(e,t){var n,r=e;if(T(k,r)&&(r="%"+(n=k[r])[0]+"%"),T(w,r)){var i=w[r];if(i===v&&(i=S(r)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=P(e),r=n.length>0?n[0]:"",i=L("%"+r+"%",t),a=i.name,s=i.value,o=!1,c=i.alias;c&&(r=c[0],I(n,R([0,1],c)));for(var d=1,h=!0;d<n.length;d+=1){var f=n[d],m=C(f,0,1),_=C(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===_||"'"===_||"`"===_)&&m!==_)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&h||(o=!0),r+="."+f,T(w,a="%"+r+"%"))s=w[a];else if(null!=s){if(!(f in s)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var y=p(s,f);s=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:s[f]}else h=T(s,f),s=s[f];h&&!o&&(w[a]=s)}}return s}},326:function(e,t,n){"use strict";var r=n(7286)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},9299:function(e,t,n){"use strict";var r=n(999),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},8486:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof n)}},2636:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(6679);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},6679:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7226:function(e,t,n){"use strict";var r=n(6679);e.exports=function(){return r()&&!!Symbol.toStringTag}},3198:function(e){"use strict";var t={}.hasOwnProperty,n=Function.prototype.call;e.exports=n.bind?n.bind(t):function(e,r){return n.call(t,e,r)}},2196:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=n(4090);e.exports=a.call(r,i)},3463:function(e,t,n){"use strict";var r=n(8570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={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},o={};function l(e){return r.isMemo(e)?s:o[e.$$typeof]||i}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=s;var u=Object.defineProperty,c=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=c(n);d&&(s=s.concat(d(n)));for(var o=l(t),m=l(n),_=0;_<s.length;++_){var y=s[_];if(!a[y]&&!(r&&r[y])&&!(m&&m[y])&&!(o&&o[y])){var g=h(n,y);try{u(t,y,g)}catch(e){}}}}return t}},9680:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(e){e!==n&&(i=null)}else i=null;var a=/^\s*class\b/,s=function(e){try{var t=r.call(e);return a.test(t)}catch(e){return!1}},o=function(e){try{if(s(e))return!1;return r.call(e),!0}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var h=document.all;l.call(h)===l.call(document.all)&&(d=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!s(e)&&o(e)}:function(e){if(d(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(u)return o(e);if(s(e))return!1;var t=l.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&o(e)}},4277:function(e,t,n){"use strict";var r=Date.prototype.getDay,i=function(e){try{return r.call(e),!0}catch(e){return!1}},a=Object.prototype.toString,s=n(7226)();e.exports=function(e){return"object"==typeof e&&null!==e&&(s?i(e):"[object Date]"===a.call(e))}},8786:function(e,t,n){"use strict";var r,i,a,s,o=n(2680),l=n(7226)();if(l){r=o("Object.prototype.hasOwnProperty"),i=o("RegExp.prototype.exec"),a={};var u=function(){throw a};s={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(s[Symbol.toPrimitive]=u)}var c=o("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!=typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{i(e,s)}catch(e){return e===a}}:function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"[object RegExp]"===c(e)}},6302:function(e,t,n){"use strict";var r=String.prototype.valueOf,i=function(e){try{return r.call(e),!0}catch(e){return!1}},a=Object.prototype.toString,s=n(7226)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(s?i(e):"[object String]"===a.call(e))}},8705:function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(2636)()){var i=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return"symbol"==typeof e.valueOf()&&a.test(i.call(e))}catch(e){return!1}}}else e.exports=function(e){return!1}},1344:function(e,t,n){e=n.nmd(e);var r,i,a,s,o,l,u,c,d,h,p="__lodash_hash_undefined__",f="[object Arguments]",m="[object Function]",_="[object Object]",y=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[f]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v[m]=v["[object Map]"]=v["[object Number]"]=v[_]=v["[object RegExp]"]=v["[object Set]"]=v["[object String]"]=v["[object WeakMap]"]=!1;var b="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,w="object"==typeof self&&self&&self.Object===Object&&self,E=b||w||Function("return this")(),S=t&&!t.nodeType&&t,k=S&&e&&!e.nodeType&&e,x=k&&k.exports===S,T=x&&b.process,R=function(){try{var e=k&&k.require&&k.require("util").types;if(e)return e;return T&&T.binding&&T.binding("util")}catch(e){}}(),I=R&&R.isTypedArray,O=Array.prototype,C=Function.prototype,A=Object.prototype,N=E["__core-js_shared__"],D=C.toString,P=A.hasOwnProperty,L=(l=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",U=A.toString,M=D.call(Object),j=RegExp("^"+D.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=x?E.Buffer:void 0,Symbol=E.Symbol,Uint8Array=E.Uint8Array,F=B?B.allocUnsafe:void 0,$=(u=Object.getPrototypeOf,c=Object,function(e){return u(c(e))}),z=Object.create,G=A.propertyIsEnumerable,q=O.splice,Y=Symbol?Symbol.toStringTag:void 0,H=function(){try{var e=eu(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),W=B?B.isBuffer:void 0,Z=Math.max,V=Date.now,Map=eu(E,"Map"),K=eu(Object,"create"),J=function(){function e(){}return function(t){if(!ew(t))return{};if(z)return z(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function et(e){var t=this.__data__=new Q(e);this.size=t.size}function en(e,t,n){(void 0===n||ef(e[t],n))&&(void 0!==n||t in e)||ei(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(ef(e[n][0],t))return n;return -1}function ei(e,t,n){"__proto__"==t&&H?H(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}X.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(K){var n=t[e];return n===p?void 0:n}return P.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:P.call(t,e)},X.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K&&void 0===t?p:t,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0)&&(n==t.length-1?t.pop():q.call(t,n,1),--this.size,!0)},Q.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?void 0:t[n][1]},Q.prototype.has=function(e){return er(this.__data__,e)>-1},Q.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ee.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(Map||Q),string:new X}},ee.prototype.delete=function(e){var t=el(this,e).delete(e);return this.size-=t?1:0,t},ee.prototype.get=function(e){return el(this,e).get(e)},ee.prototype.has=function(e){return el(this,e).has(e)},ee.prototype.set=function(e,t){var n=el(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},et.prototype.clear=function(){this.__data__=new Q,this.size=0},et.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},et.prototype.get=function(e){return this.__data__.get(e)},et.prototype.has=function(e){return this.__data__.has(e)},et.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Q){var r=n.__data__;if(!Map||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ee(r)}return n.set(e,t),this.size=n.size,this};var ea=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),s=a.length;s--;){var o=a[++r];if(!1===t(i[o],o,i))break}return e};function es(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=P.call(e,Y),n=e[Y];try{e[Y]=void 0;var r=!0}catch(e){}var i=U.call(e);return r&&(t?e[Y]=n:delete e[Y]),i}(e):U.call(e)}function eo(e){return eE(e)&&es(e)==f}function el(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eu(e,t){var n=null==e?void 0:e[t];return!(!ew(n)||L&&L in n)&&(ev(n)?j:y).test(function(e){if(null!=e){try{return D.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function ec(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&g.test(e))&&e>-1&&e%1==0&&e<t}function ed(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function eh(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ep=(r=H?function(e,t){return H(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eT,i=0,a=0,function(){var e=V(),t=16-(e-a);if(a=e,t>0){if(++i>=800)return arguments[0]}else i=0;return r.apply(void 0,arguments)});function ef(e,t){return e===t||e!=e&&t!=t}var em=eo(function(){return arguments}())?eo:function(e){return eE(e)&&P.call(e,"callee")&&!G.call(e,"callee")},e_=Array.isArray;function ey(e){return null!=e&&eb(e.length)&&!ev(e)}var eg=W||function(){return!1};function ev(e){if(!ew(e))return!1;var t=es(e);return t==m||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eb(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ew(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eE(e){return null!=e&&"object"==typeof e}var eS=I?function(e){return I(e)}:function(e){return eE(e)&&eb(e.length)&&!!v[es(e)]};function ek(e){return ey(e)?function(e,t){var n=e_(e),r=!n&&em(e),i=!n&&!r&&eg(e),a=!n&&!r&&!i&&eS(e),s=n||r||i||a,o=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=o.length;for(var u in e)(t||P.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ec(u,l)))&&o.push(u);return o}(e,!0):function(e){if(!ew(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ed(e),n=[];for(var r in e)"constructor"==r&&(t||!P.call(e,r))||n.push(r);return n}(e)}var ex=(d=function(e,t,n){!function e(t,n,r,i,a){t!==n&&ea(n,function(s,o){if(a||(a=new et),ew(s))(function(e,t,n,r,i,a,s){var o=eh(e,n),l=eh(t,n),u=s.get(l);if(u){en(e,n,u);return}var c=a?a(o,l,n+"",e,t,s):void 0,d=void 0===c;if(d){var h,p,f=e_(l),m=!f&&eg(l),y=!f&&!m&&eS(l);c=l,f||m||y?e_(o)?c=o:eE(o)&&ey(o)?c=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(o):m?(d=!1,c=function(e,t){if(t)return e.slice();var n=e.length,r=F?F(n):new e.constructor(n);return e.copy(r),r}(l,!0)):y?(d=!1,new Uint8Array(p=new(h=l.buffer).constructor(h.byteLength)).set(new Uint8Array(h)),c=new l.constructor(p,l.byteOffset,l.length)):c=[]:function(e){if(!eE(e)||es(e)!=_)return!1;var t=$(e);if(null===t)return!0;var n=P.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==M}(l)||em(l)?(c=o,em(o)?c=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=r?r(n[o],e[o],o,n,e):void 0;void 0===l&&(l=e[o]),i?ei(n,o,l):function(e,t,n){var r=e[t];P.call(e,t)&&ef(r,n)&&(void 0!==n||t in e)||ei(e,t,n)}(n,o,l)}return n}(o,ek(o)):(!ew(o)||ev(o))&&(c="function"!=typeof l.constructor||ed(l)?{}:J($(l)))):d=!1}d&&(s.set(l,c),i(c,l,r,a,s),s.delete(l)),en(e,n,c)})(t,n,o,r,e,i,a);else{var l=i?i(eh(t,o),s,o+"",t,n,a):void 0;void 0===l&&(l=s),en(t,o,l)}},ek)}(e,t,n)},ep((s=h=function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=d.length>3&&"function"==typeof i?(r--,i):void 0,a&&function(e,t,n){if(!ew(n))return!1;var r=typeof t;return("number"==r?!!(ey(n)&&ec(t,n.length)):"string"==r&&(t in n))&&ef(n[t],e)}(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var s=t[n];s&&d(e,s,n,i)}return e},o=Z((o=void 0,s.length-1),0),function(){for(var e=arguments,t=-1,n=Z(e.length-o,0),r=Array(n);++t<n;)r[t]=e[o+t];t=-1;for(var i=Array(o+1);++t<o;)i[t]=e[t];return i[o]=eT(r),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(s,this,i)}),h+""));function eT(e){return e}e.exports=ex},6483:function(e,t,n){"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(t){var n=function(n){if(n.key===e){var r,i=JSON.parse(null!==(r=n.newValue)&&void 0!==r?r:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&t(i)}};return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}},post:function(t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(l(l({},t),{},{timestamp:d()})))}catch(e){}}}},t.apiBaseUrl=c,t.fetchData=function(e,t,n){return u.apply(this,arguments)},t.now=d;var i=r(n(7162)),a=r(n(1260)),s=r(n(2954));function o(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,a.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(){return(u=(0,s.default)(i.default.mark(function e(t,n,r){var a,s,o,u,d,h,p,f,m,_=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=(a=_.length>3&&void 0!==_[3]?_[3]:{}).ctx,u=void 0===(o=a.req)?null==s?void 0:s.req:o,d="".concat(c(n),"/").concat(t),e.prev=2,p={headers:l({"Content-Type":"application/json"},null!=u&&null!==(h=u.headers)&&void 0!==h&&h.cookie?{cookie:u.headers.cookie}:{})},null!=u&&u.body&&(p.body=JSON.stringify(u.body),p.method="POST"),e.next=7,fetch(d,p);case 7:return f=e.sent,e.next=10,f.json();case 10:if(m=e.sent,f.ok){e.next=13;break}throw m;case 13:return e.abrupt("return",Object.keys(m).length>0?m:null);case 16:return e.prev=16,e.t0=e.catch(2),r.error("CLIENT_FETCH_ERROR",{error:e.t0,url:d}),e.abrupt("return",null);case 20:case"end":return e.stop()}},e,null,[[2,16]])}))).apply(this,arguments)}function c(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function d(){return Math.floor(Date.now()/1e3)}},7693:function(e,t,n){"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedStrategy=t.UnknownError=t.OAuthCallbackError=t.MissingSecret=t.MissingAuthorize=t.MissingAdapterMethods=t.MissingAdapter=t.MissingAPIRoute=t.InvalidCallbackUrl=t.AccountNotLinkedError=void 0,t.adapterErrorHandler=function(e,t){if(e)return Object.keys(e).reduce(function(n,r){return n[r]=(0,a.default)(i.default.mark(function n(){var a,s,o,l,u,c=arguments;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:for(n.prev=0,s=Array(a=c.length),o=0;o<a;o++)s[o]=c[o];return t.debug("adapter_".concat(r),{args:s}),l=e[r],n.next=6,l.apply(void 0,s);case 6:return n.abrupt("return",n.sent);case 9:throw n.prev=9,n.t0=n.catch(0),t.error("adapter_error_".concat(r),n.t0),(u=new f(n.t0)).name="".concat(x(r),"Error"),u;case 15:case"end":return n.stop()}},n,null,[[0,9]])})),n},{})},t.capitalize=x,t.eventsErrorHandler=function(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=(0,a.default)(i.default.mark(function n(){var a,s=arguments;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,a=e[r],n.next=4,a.apply(void 0,s);case 4:return n.abrupt("return",n.sent);case 7:n.prev=7,n.t0=n.catch(0),t.error("".concat(k(r),"_EVENT_ERROR"),n.t0);case 10:case"end":return n.stop()}},n,null,[[0,7]])})),n},{})},t.upperSnake=k;var i=r(n(7162)),a=r(n(2954)),s=r(n(8111)),o=r(n(1260)),l=r(n(85)),u=r(n(5198)),c=r(n(270)),d=r(n(6983)),h=r(n(2588));function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var i=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}var f=function(e){(0,c.default)(n,e);var t=p(n);function n(e){var r,i;return(0,l.default)(this,n),(i=t.call(this,null!==(r=null==e?void 0:e.message)&&void 0!==r?r:e)).name="UnknownError",i.code=e.code,e instanceof Error&&(i.stack=e.stack),i}return(0,u.default)(n,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}]),n}((0,r(n(8240)).default)(Error));t.UnknownError=f;var m=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","OAuthCallbackError"),e}return(0,u.default)(n)}(f);t.OAuthCallbackError=m;var _=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","AccountNotLinkedError"),e}return(0,u.default)(n)}(f);t.AccountNotLinkedError=_;var y=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","MissingAPIRouteError"),(0,o.default)((0,s.default)(e),"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,u.default)(n)}(f);t.MissingAPIRoute=y;var g=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","MissingSecretError"),(0,o.default)((0,s.default)(e),"code","NO_SECRET"),e}return(0,u.default)(n)}(f);t.MissingSecret=g;var v=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","MissingAuthorizeError"),(0,o.default)((0,s.default)(e),"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,u.default)(n)}(f);t.MissingAuthorize=v;var b=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","MissingAdapterError"),(0,o.default)((0,s.default)(e),"code","EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,u.default)(n)}(f);t.MissingAdapter=b;var w=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","MissingAdapterMethodsError"),(0,o.default)((0,s.default)(e),"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,u.default)(n)}(f);t.MissingAdapterMethods=w;var E=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","UnsupportedStrategyError"),(0,o.default)((0,s.default)(e),"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,u.default)(n)}(f);t.UnsupportedStrategy=E;var S=function(e){(0,c.default)(n,e);var t=p(n);function n(){var e;(0,l.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,o.default)((0,s.default)(e),"name","InvalidCallbackUrl"),(0,o.default)((0,s.default)(e),"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,u.default)(n)}(f);function k(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function x(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}t.InvalidCallbackUrl=S},3848:function(e,t,n){"use strict";var r,i,a,s,o,l=n(4406),u=n(4859),c=n(8921);Object.defineProperty(t,"__esModule",{value:!0});var d={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};t.SessionContext=void 0,t.SessionProvider=function(e){if(!O)throw Error("React Context is unavailable in Server Components");var t,n,r,i,a,s,o=e.children,l=e.basePath,u=e.refetchInterval,c=e.refetchWhenOffline;l&&(T.basePath=l);var d=void 0!==e.session;T._lastSync=d?(0,v.now)():0;var p=_.useState(function(){return d&&(T._session=e.session),e.session}),y=(0,m.default)(p,2),g=y[0],w=y[1],E=_.useState(!d),S=(0,m.default)(E,2),k=S[0],x=S[1];_.useEffect(function(){return T._getSession=(0,f.default)(h.default.mark(function e(){var t,n,r=arguments;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(r.length>0&&void 0!==r[0]?r[0]:{}).event,e.prev=1,!((n="storage"===t)||void 0===T._session)){e.next=10;break}return T._lastSync=(0,v.now)(),e.next=7,C({broadcast:!n});case 7:return T._session=e.sent,w(T._session),e.abrupt("return");case 10:if(!(!t||null===T._session||(0,v.now)()<T._lastSync)){e.next=12;break}return e.abrupt("return");case 12:return T._lastSync=(0,v.now)(),e.next=15,C();case 15:T._session=e.sent,w(T._session),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),I.error("CLIENT_SESSION_ERROR",e.t0);case 22:return e.prev=22,x(!1),e.finish(22);case 25:case"end":return e.stop()}},e,null,[[1,19,22,25]])})),T._getSession(),function(){T._lastSync=0,T._session=void 0,T._getSession=function(){}}},[]),_.useEffect(function(){var e=R.receive(function(){return T._getSession({event:"storage"})});return function(){return e()}},[]),_.useEffect(function(){var t=e.refetchOnWindowFocus,n=void 0===t||t,r=function(){n&&"visible"===document.visibilityState&&T._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",r,!1),function(){return document.removeEventListener("visibilitychange",r,!1)}},[e.refetchOnWindowFocus]);var A=(t=_.useState("undefined"!=typeof navigator&&navigator.onLine),r=(n=(0,m.default)(t,2))[0],i=n[1],a=function(){return i(!0)},s=function(){return i(!1)},_.useEffect(function(){return window.addEventListener("online",a),window.addEventListener("offline",s),function(){window.removeEventListener("online",a),window.removeEventListener("offline",s)}},[]),r),D=!1!==c||A;_.useEffect(function(){if(u&&D){var e=setInterval(function(){T._session&&T._getSession({event:"poll"})},1e3*u);return function(){return clearInterval(e)}}},[u,D]);var P=_.useMemo(function(){return{data:g,status:k?"loading":g?"authenticated":"unauthenticated",update:function(e){return(0,f.default)(h.default.mark(function t(){var n;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(k||!g)){t.next=2;break}return t.abrupt("return");case 2:return x(!0),t.t0=v.fetchData,t.t1=T,t.t2=I,t.next=8,N();case 8:return t.t3=t.sent,t.t4=e,t.t5={csrfToken:t.t3,data:t.t4},t.t6={body:t.t5},t.t7={req:t.t6},t.next=15,(0,t.t0)("session",t.t1,t.t2,t.t7);case 15:return n=t.sent,x(!1),n&&(w(n),R.post({event:"session",data:{trigger:"getSession"}})),t.abrupt("return",n);case 19:case"end":return t.stop()}},t)}))()}}},[g,k]);return(0,b.jsx)(O.Provider,{value:P,children:o})},t.getCsrfToken=N,t.getProviders=P,t.getSession=C,t.signIn=function(e,t,n){return U.apply(this,arguments)},t.signOut=function(e){return M.apply(this,arguments)},t.useSession=function(e){if(!O)throw Error("React Context is unavailable in Server Components");var t=_.useContext(O),n=null!=e?e:{},r=n.required,i=n.onUnauthenticated,a=r&&"unauthenticated"===t.status;return(_.useEffect(function(){if(a){var e="/api/auth/signin?".concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));i?i():window.location.href=e}},[a,i]),a)?{data:t.data,update:t.update,status:"loading"}:t};var h=u(n(7162)),p=u(n(1260)),f=u(n(2954)),m=u(n(1068)),_=S(n(2784)),y=S(n(4339)),g=u(n(8203)),v=n(6483),b=n(2322),w=n(2878);function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function S(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function k(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){(0,p.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.keys(w).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(d,e))&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))});var T={baseUrl:(0,g.default)(null!==(r=l.env.NEXTAUTH_URL)&&void 0!==r?r:l.env.VERCEL_URL).origin,basePath:(0,g.default)(l.env.NEXTAUTH_URL).path,baseUrlServer:(0,g.default)(null!==(i=null!==(a=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==a?a:l.env.NEXTAUTH_URL)&&void 0!==i?i:l.env.VERCEL_URL).origin,basePathServer:(0,g.default)(null!==(s=l.env.NEXTAUTH_URL_INTERNAL)&&void 0!==s?s:l.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},R=(0,v.BroadcastChannel)(),I=(0,y.proxyLogger)(y.default,T.basePath),O=null===(o=_.createContext)||void 0===o?void 0:o.call(_,void 0);function C(e){return A.apply(this,arguments)}function A(){return(A=(0,f.default)(h.default.mark(function e(t){var n,r;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("session",T,I,t);case 2:return r=e.sent,(null===(n=null==t?void 0:t.broadcast)||void 0===n||n)&&R.post({event:"session",data:{trigger:"getSession"}}),e.abrupt("return",r);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function N(e){return D.apply(this,arguments)}function D(){return(D=(0,f.default)(h.default.mark(function e(t){var n;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("csrf",T,I,t);case 2:return n=e.sent,e.abrupt("return",null==n?void 0:n.csrfToken);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function P(){return L.apply(this,arguments)}function L(){return(L=(0,f.default)(h.default.mark(function e(){return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.fetchData)("providers",T,I);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function U(){return(U=(0,f.default)(h.default.mark(function e(t,n,r){var i,a,s,o,l,u,c,d,p,f,m,_,y,g,b,w,E;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=void 0===(a=(i=null!=n?n:{}).callbackUrl)?window.location.href:a,l=void 0===(o=i.redirect)||o,u=(0,v.apiBaseUrl)(T),e.next=4,P();case 4:if(c=e.sent){e.next=8;break}return window.location.href="".concat(u,"/error"),e.abrupt("return");case 8:if(!(!t||!(t in c))){e.next=11;break}return window.location.href="".concat(u,"/signin?").concat(new URLSearchParams({callbackUrl:s})),e.abrupt("return");case 11:return d="credentials"===c[t].type,p="email"===c[t].type,f=d||p,m="".concat(u,"/").concat(d?"callback":"signin","/").concat(t),_="".concat(m).concat(r?"?".concat(new URLSearchParams(r)):""),e.t0=fetch,e.t1=_,e.t2={"Content-Type":"application/x-www-form-urlencoded"},e.t3=URLSearchParams,e.t4=x,e.t5=x({},n),e.t6={},e.next=25,N();case 25:return e.t7=e.sent,e.t8=s,e.t9={csrfToken:e.t7,callbackUrl:e.t8,json:!0},e.t10=(0,e.t4)(e.t5,e.t6,e.t9),e.t11=new e.t3(e.t10),e.t12={method:"post",headers:e.t2,body:e.t11},e.next=33,(0,e.t0)(e.t1,e.t12);case 33:return y=e.sent,e.next=36,y.json();case 36:if(g=e.sent,!(l||!f)){e.next=42;break}return w=null!==(b=g.url)&&void 0!==b?b:s,window.location.href=w,w.includes("#")&&window.location.reload(),e.abrupt("return");case 42:if(E=new URL(g.url).searchParams.get("error"),!y.ok){e.next=46;break}return e.next=46,T._getSession({event:"storage"});case 46:return e.abrupt("return",{error:E,status:y.status,ok:y.ok,url:E?null:g.url});case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function M(){return(M=(0,f.default)(h.default.mark(function e(t){var n,r,i,a,s,o,l,u,c;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=void 0===(r=(null!=t?t:{}).callbackUrl)?window.location.href:r,a=(0,v.apiBaseUrl)(T),e.t0={"Content-Type":"application/x-www-form-urlencoded"},e.t1=URLSearchParams,e.next=6,N();case 6:return e.t2=e.sent,e.t3=i,e.t4={csrfToken:e.t2,callbackUrl:e.t3,json:!0},e.t5=new e.t1(e.t4),s={method:"post",headers:e.t0,body:e.t5},e.next=13,fetch("".concat(a,"/signout"),s);case 13:return o=e.sent,e.next=16,o.json();case 16:if(l=e.sent,R.post({event:"session",data:{trigger:"signout"}}),!(null===(n=null==t?void 0:t.redirect)||void 0===n||n)){e.next=23;break}return c=null!==(u=l.url)&&void 0!==u?u:i,window.location.href=c,c.includes("#")&&window.location.reload(),e.abrupt("return");case 23:return e.next=25,T._getSession({event:"storage"});case 25:return e.abrupt("return",l);case 26:case"end":return e.stop()}},e)}))).apply(this,arguments)}t.SessionContext=O},2878:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4339:function(e,t,n){"use strict";var r=n(4859);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var n={},r=function(e){n[e]=function(n,r){l[e](n,r),"error"===e&&(r=o(r)),r.client=!0;var a="".concat(t,"/_log"),u=new URLSearchParams(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){(0,i.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({level:e,code:n},r));return navigator.sendBeacon?navigator.sendBeacon(a,u):fetch(a,{method:"POST",body:u,keepalive:!0})}};for(var a in e)r(a);return n}catch(e){return l}},t.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t||(l.debug=function(){}),e.error&&(l.error=e.error),e.warn&&(l.warn=e.warn),e.debug&&(l.debug=e.debug)};var i=r(n(1260)),a=n(7693);function s(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){var t;return e instanceof Error&&!(e instanceof a.UnknownError)?{message:e.message,stack:e.stack,name:e.name}:(null!=e&&e.error&&(e.error=o(e.error),e.message=null!==(t=e.message)&&void 0!==t?t:e.error.message),e)}var l={error:function(e,t){t=o(t),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),t.message,t)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,t){console.log("[next-auth][debug][".concat(e,"]"),t)}};t.default=l},8203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let n=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let r=new URL(null!==(t=e)&&void 0!==t?t:n),i=("/"===r.pathname?n.pathname:r.pathname).replace(/\/$/,""),a=`${r.origin}${i}`;return{origin:r.origin,host:r.host,path:i,base:a,toString:()=>a}}},6570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(4522)}])},4522:function(e,t,n){"use strict";let r,i,a,s,o,l,u;n.r(t),n.d(t,{default:function(){return sj}});var c,d,h,p,f,m,_,y,g=n(2322),v=n(9231),b=n.n(v),w=n(7108),E=n.n(w),S=n(3749),k=n(3554),x=n(4406),T=n(4406);let R=k.z.object({NEXT_PUBLIC_GROWTHBOOK_API_HOST:k.z.string(),NEXT_PUBLIC_GROWTHBOOK_CLIENT_KEY:k.z.string(),NEXT_PUBLIC_SEGMENT_ANALYTICS_WRITE_KEY:k.z.string(),NEXT_PUBLIC_FIREBASE_API_KEY:k.z.string(),NEXT_PUBLIC_FIREBASE_PROJECT_ID:k.z.string()}),I=function(e){let t="object"==typeof e.client?e.client:{},n="object"==typeof e.server?e.server:{},r=e.shared,i=e.runtimeEnv?e.runtimeEnv:{...T.env,...e.experimental__runtimeEnv};return function(e){let t=e.runtimeEnvStrict??e.runtimeEnv??x.env,n=e.emptyStringAsUndefined??!1;if(n)for(let[e,n]of Object.entries(t))""===n&&delete t[e];let r=!!e.skipValidation;if(r)return t;let i="object"==typeof e.client?e.client:{},a="object"==typeof e.server?e.server:{},s="object"==typeof e.shared?e.shared:{},o=(0,k.Ry)(i),l=(0,k.Ry)(a),u=(0,k.Ry)(s),c=e.isServer??("undefined"==typeof window||"Deno"in window),d=o.merge(u),h=l.merge(u).merge(o),p=c?h.safeParse(t):d.safeParse(t),f=e.onValidationError??(e=>{throw console.error("❌ Invalid environment variables:",e.flatten().fieldErrors),Error("Invalid environment variables")}),m=e.onInvalidAccess??(e=>{throw Error("❌ Attempted to access a server-side environment variable on the client")});if(!1===p.success)return f(p.error);let _=t=>!e.clientPrefix||!t.startsWith(e.clientPrefix)&&!(t in u.shape),y=e=>c||!_(e),g=e=>"__esModule"===e||"$$typeof"===e,v=(e.extends??[]).reduce((e,t)=>Object.assign(e,t),{}),b=Object.assign(p.data,v),w=new Proxy(b,{get(e,t){if("string"==typeof t&&!g(t))return y(t)?Reflect.get(e,t):m(t)}});return w}({...e,shared:r,client:t,server:n,clientPrefix:"NEXT_PUBLIC_",runtimeEnv:i})}({client:R.shape,runtimeEnv:{NEXT_PUBLIC_GROWTHBOOK_API_HOST:"https://cdn.growthbook.io",NEXT_PUBLIC_GROWTHBOOK_CLIENT_KEY:"sdk-dVZnetUUFFm7cfw",NEXT_PUBLIC_SEGMENT_ANALYTICS_WRITE_KEY:"RbceAHINeJmBWCKPiwXPb6zthWerrSb4",NEXT_PUBLIC_FIREBASE_API_KEY:"AIzaSyD37znEx9DTf8ACsJVkS-eALU9zyPbZ1f0",NEXT_PUBLIC_FIREBASE_PROJECT_ID:"blynk-production"}});var O=n(4406);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let C=function(e){let t=[],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:((64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return t},A=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){let a=e[n++],s=e[n++],o=e[n++],l=((7&i)<<18|(63&a)<<12|(63&s)<<6|63&o)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(1023&l))}else{let a=e[n++],s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}}return t.join("")},N={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_();let n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){let i=e[t],a=t+1<e.length,s=a?e[t+1]:0,o=t+2<e.length,l=o?e[t+2]:0,u=i>>2,c=(3&i)<<4|s>>4,d=(15&s)<<2|l>>6,h=63&l;o||(h=64,a||(d=64)),r.push(n[u],n[c],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(C(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):A(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){let i=n[e.charAt(t++)],a=t<e.length,s=a?n[e.charAt(t)]:0;++t;let o=t<e.length,l=o?n[e.charAt(t)]:64;++t;let u=t<e.length,c=u?n[e.charAt(t)]:64;if(++t,null==i||null==s||null==l||null==c)throw new D;let d=i<<2|s>>4;if(r.push(d),64!==l){let e=s<<4&240|l>>2;if(r.push(e),64!==c){let e=l<<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 D extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let P=function(e){let t=C(e);return N.encodeByteArray(t,!0)},L=function(e){return P(e).replace(/\./g,"")},U=function(e){try{return N.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},M=()=>/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,j=()=>{if(void 0===O||void 0===O.env)return;let e=O.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},B=()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&U(e[1]);return t&&JSON.parse(t)},F=()=>{try{return M()||j()||B()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},$=e=>{var t,n;return null===(n=null===(t=F())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},z=()=>{var e;return null===(e=F())||void 0===e?void 0:e.config},G=e=>{var t;return null===(t=F())||void 0===t?void 0:t[`_${e}`]};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class q{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))}}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Y(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}class H extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,H.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,W.prototype.create)}}class W{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){let n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?i.replace(Z,(e,t)=>{let r=n[t];return null!=r?String(r):`<${t}?>`}):"Error",s=`${this.serviceName}: ${a} (${r}).`,o=new H(r,s,n);return o}}let Z=/\{\$([^}]+)}/g;function V(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);for(let i of n){if(!r.includes(i))return!1;let n=e[i],a=t[i];if(K(n)&&K(a)){if(!V(n,a))return!1}else if(n!==a)return!1}for(let e of r)if(!n.includes(e))return!1;return!0}function K(e){return null!==e&&"object"==typeof e}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function J(e){let t=[];for(let[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 X(e){let t={},n=e.replace(/^\?/,"").split("&");return n.forEach(e=>{if(e){let[n,r]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function Q(e){let t=e.indexOf("?");if(!t)return"";let n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}class ee{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 Error("Missing Observer.");void 0===(r=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:n}:e).next&&(r.next=et),void 0===r.error&&(r.error=et),void 0===r.complete&&(r.complete=et);let 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 et(){}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function en(e){return e&&e._delegate?e._delegate:e}class er{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}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let ei="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ea{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){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new q;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let 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())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}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("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:ei})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let n=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=ei){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let 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=ei){return this.instances.has(e)}getOptions(e=ei){return this.instancesOptions.get(e)||{}}initialize(e={}){let{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`);let r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(let[e,t]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(e);n===i&&t.resolve(r)}return r}onInit(e,t){var n;let 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);let a=this.instances.get(r);return a&&e(a,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let 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:e===ei?void 0:e,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){}return n||null}normalizeInstanceIdentifier(e=ei){return this.component?this.component.multipleInstances?e:ei:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class es{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){let t=this.getProvider(e.name);t.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new ea(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let eo=[];(d=f||(f={}))[d.DEBUG=0]="DEBUG",d[d.VERBOSE=1]="VERBOSE",d[d.INFO=2]="INFO",d[d.WARN=3]="WARN",d[d.ERROR=4]="ERROR",d[d.SILENT=5]="SILENT";let el={debug:f.DEBUG,verbose:f.VERBOSE,info:f.INFO,warn:f.WARN,error:f.ERROR,silent:f.SILENT},eu=f.INFO,ec={[f.DEBUG]:"log",[f.VERBOSE]:"log",[f.INFO]:"info",[f.WARN]:"warn",[f.ERROR]:"error"},ed=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=ec[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class eh{constructor(e){this.name=e,this._logLevel=eu,this._logHandler=ed,this._userLogHandler=null,eo.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in f))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?el[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw 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,f.DEBUG,...e),this._logHandler(this,f.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,f.VERBOSE,...e),this._logHandler(this,f.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,f.INFO,...e),this._logHandler(this,f.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,f.WARN,...e),this._logHandler(this,f.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,f.ERROR,...e),this._logHandler(this,f.ERROR,...e)}}let ep=(e,t)=>t.some(t=>e instanceof t),ef=new WeakMap,em=new WeakMap,e_=new WeakMap,ey=new WeakMap,eg=new WeakMap,ev={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return em.get(e);if("objectStoreNames"===t)return e.objectStoreNames||e_.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return eb(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function eb(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(eb(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)});return t.then(t=>{t instanceof IDBCursor&&ef.set(t,e)}).catch(()=>{}),eg.set(t,e),t}(e);if(ey.has(e))return ey.get(e);let n="function"==typeof(t=e)?t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(ew(this),e),eb(ef.get(this))}:function(...e){return eb(t.apply(ew(this),e))}:function(e,...n){let r=t.call(ew(this),e,...n);return e_.set(r,e.sort?e.sort():[e]),eb(r)}:(t instanceof IDBTransaction&&function(e){if(em.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)});em.set(e,t)}(t),ep(t,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,ev):t;return n!==e&&(ey.set(e,n),eg.set(n,e)),n}let ew=e=>eg.get(e),eE=["get","getKey","getAll","getAllKeys","count"],eS=["put","add","delete","clear"],ek=new Map;function ex(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(ek.get(t))return ek.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=eS.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||eE.includes(n)))return;let a=async function(e,...t){let a=this.transaction(e,i?"readwrite":"readonly"),s=a.store;return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),i&&a.done]))[0]};return ek.set(t,a),a}ev={...c=ev,get:(e,t,n)=>ex(e,t)||c.get(e,t,n),has:(e,t)=>!!ex(e,t)||c.has(e,t)};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eT{constructor(e){this.container=e}getPlatformInfoString(){let e=this.container.getProviders();return e.map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let eR="@firebase/app",eI="0.9.18",eO=new eh("@firebase/app"),eC="[DEFAULT]",eA={[eR]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},eN=new Map,eD=new Map;function eP(e){let t=e.name;if(eD.has(t))return eO.debug(`There were multiple attempts to register component ${t}.`),!1;for(let n of(eD.set(t,e),eN.values()))!function(e,t){try{e.container.addComponent(t)}catch(n){eO.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}(n,e);return!0}function eL(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}let eU=new W("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","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-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}."});/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class eM{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 er("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 eU.create("app-deleted",{appName:this._name})}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let ej="10.3.1";function eB(e,t={}){let n=e;if("object"!=typeof t){let e=t;t={name:e}}let r=Object.assign({name:eC,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!=typeof i||!i)throw eU.create("bad-app-name",{appName:String(i)});if(n||(n=z()),!n)throw eU.create("no-options");let a=eN.get(i);if(a){if(V(n,a.options)&&V(r,a.config))return a;throw eU.create("duplicate-app",{appName:i})}let s=new es(i);for(let e of eD.values())s.addComponent(e);let o=new eM(n,r,s);return eN.set(i,o),o}function eF(e=eC){let t=eN.get(e);if(!t&&e===eC&&z())return eB();if(!t)throw eU.create("no-app",{appName:e});return t}function e$(e,t,n){var r;let i=null!==(r=eA[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);let a=i.match(/\s|\//),s=t.match(/\s|\//);if(a||s){let e=[`Unable to register library "${i}" with version "${t}":`];a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),eO.warn(e.join(" "));return}eP(new er(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}let ez="firebase-heartbeat-store",eG=null;function eq(){return eG||(eG=(function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let s=indexedDB.open(e,1),o=eb(s);return r&&s.addEventListener("upgradeneeded",e=>{r(eb(s.result),e.oldVersion,e.newVersion,eb(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),o.then(e=>{a&&e.addEventListener("close",()=>a()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o})("firebase-heartbeat-database",0,{upgrade:(e,t)=>{0===t&&e.createObjectStore(ez)}}).catch(e=>{throw eU.create("idb-open",{originalErrorMessage:e.message})})),eG}async function eY(e){try{let t=await eq(),n=await t.transaction(ez).objectStore(ez).get(eW(e));return n}catch(e){if(e instanceof H)eO.warn(e.message);else{let t=eU.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});eO.warn(t.message)}}}async function eH(e,t){try{let n=await eq(),r=n.transaction(ez,"readwrite"),i=r.objectStore(ez);await i.put(t,eW(e)),await r.done}catch(e){if(e instanceof H)eO.warn(e.message);else{let t=eU.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});eO.warn(t.message)}}}function eW(e){return`${e.name}!${e.options.appId}`}class eZ{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new eK(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){let e=this.container.getProvider("platform-logger").getImmediate(),t=e.getPlatformInfoString(),n=eV();return(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(e=>e.date===n))?void 0:(this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let t=new Date(e.date).valueOf(),n=Date.now();return n-t<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";let e=eV(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){let n=[],r=e.slice();for(let i of e){let e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),eJ(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),eJ(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=L(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function eV(){let e=new Date;return e.toISOString().substring(0,10)}class eK{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!function(){try{return"object"==typeof indexedDB}catch(e){return!1}}()&&new Promise((e,t)=>{try{let n=!0,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)}}).then(()=>!0).catch(()=>!1)}async read(){let e=await this._canUseIndexedDBPromise;if(!e)return{heartbeats:[]};{let e=await eY(this.app);return e||{heartbeats:[]}}}async overwrite(e){var t;let n=await this._canUseIndexedDBPromise;if(n){let n=await this.read();return eH(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;let n=await this._canUseIndexedDBPromise;if(n){let n=await this.read();return eH(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function eJ(e){return L(JSON.stringify({version:2,heartbeats:e})).length}eP(new er("platform-logger",e=>new eT(e),"PRIVATE")),eP(new er("heartbeat",e=>new eZ(e),"PRIVATE")),e$(eR,eI,""),e$(eR,eI,"esm2017"),e$("fire-js",""),/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */e$("firebase","10.3.1","app");var eX=n(493);function eQ(e){return void 0!==e&&void 0!==e.enterprise}class e0{constructor(e){if(this.siteKey="",this.emailPasswordEnabled=!1,void 0===e.recaptchaKey)throw Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.emailPasswordEnabled=e.recaptchaEnforcementState.some(e=>"EMAIL_PASSWORD_PROVIDER"===e.provider&&"OFF"!==e.enforcementState)}}function e1(){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."}}let e2=new W("auth","Firebase",e1()),e5=new eh("@firebase/auth");function e6(e,...t){e5.logLevel<=f.ERROR&&e5.error(`Auth (${ej}): ${e}`,...t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function e3(e,...t){throw e8(e,...t)}function e4(e,...t){return e8(e,...t)}function e8(e,...t){if("string"!=typeof e){let n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return e2.create(e,...t)}function e9(e,t,...n){if(!e)throw e8(t,...n)}function e7(e){let t="INTERNAL ASSERTION FAILED: "+e;throw e6(t),Error(t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function te(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function tt(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tn{constructor(e,t){this.shortDelay=e,this.longDelay=t,t>e||e7("Short delay should be less than long delay!"),this.isMobile="undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Y())||"object"==typeof navigator&&"ReactNative"===navigator.product}get(){return!("undefined"!=typeof navigator&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&("http:"===tt()||"https:"===tt()||function(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}()||"connection"in navigator))||navigator.onLine?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tr(e,t){e.emulator||e7("Emulator should always be set here");let{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ti{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:void e7("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:void e7("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:void e7("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let ta={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",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"},ts=new tn(3e4,6e4);function to(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function tl(e,t,n,r,i={}){return tu(e,i,async()=>{let i={},a={};r&&("GET"===t?a=r:i={body:JSON.stringify(r)});let s=J(Object.assign({key:e.config.apiKey},a)).slice(1),o=await e._getAdditionalHeaders();return o["Content-Type"]="application/json",e.languageCode&&(o["X-Firebase-Locale"]=e.languageCode),ti.fetch()(td(e,e.config.apiHost,n,s),Object.assign({method:t,headers:o,referrerPolicy:"no-referrer"},i))})}async function tu(e,t,n){e._canInitEmulator=!1;let r=Object.assign(Object.assign({},ta),t);try{let t=new th(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();let a=await i.json();if("needConfirmation"in a)throw tp(e,"account-exists-with-different-credential",a);if(i.ok&&!("errorMessage"in a))return a;{let t=i.ok?a.errorMessage:a.error.message,[n,s]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw tp(e,"credential-already-in-use",a);if("EMAIL_EXISTS"===n)throw tp(e,"email-already-in-use",a);if("USER_DISABLED"===n)throw tp(e,"user-disabled",a);let o=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(s)throw function(e,t,n){let r=Object.assign(Object.assign({},e1()),{[t]:n}),i=new W("auth","Firebase",r);return i.create(t,{appName:e.name})}(e,o,s);e3(e,o)}}catch(t){if(t instanceof H)throw t;e3(e,"network-request-failed",{message:String(t)})}}async function tc(e,t,n,r,i={}){let a=await tl(e,t,n,r,i);return"mfaPendingCredential"in a&&e3(e,"multi-factor-auth-required",{_serverResponse:a}),a}function td(e,t,n,r){let i=`${t}${n}?${r}`;return e.config.emulator?tr(e.config,i):`${e.config.apiScheme}://${i}`}class th{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(e4(this.auth,"network-request-failed")),ts.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function tp(e,t,n){let r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);let i=e4(e,t,r);return i.customData._tokenResponse=n,i}async function tf(e,t){return tl(e,"GET","/v2/recaptchaConfig",to(e,t))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function tm(e,t){return tl(e,"POST","/v1/accounts:delete",t)}async function t_(e,t){return tl(e,"POST","/v1/accounts:lookup",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function ty(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(e){}}async function tg(e,t=!1){let n=en(e),r=await n.getIdToken(t),i=tb(r);e9(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");let a="object"==typeof i.firebase?i.firebase:void 0,s=null==a?void 0:a.sign_in_provider;return{claims:i,token:r,authTime:ty(tv(i.auth_time)),issuedAtTime:ty(tv(i.iat)),expirationTime:ty(tv(i.exp)),signInProvider:s||null,signInSecondFactor:(null==a?void 0:a.sign_in_second_factor)||null}}function tv(e){return 1e3*Number(e)}function tb(e){let[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return e6("JWT malformed, contained fewer than 3 sections"),null;try{let e=U(n);if(!e)return e6("Failed to decode base64 JWT payload"),null;return JSON.parse(e)}catch(e){return e6("Caught error parsing JWT payload as JSON",null==e?void 0:e.toString()),null}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function tw(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof H&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tE{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){let e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;let e=null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0,n=e-Date.now()-3e5;return Math.max(0,n)}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(null==e?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tS{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=ty(this.lastLoginAt),this.creationTime=ty(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function tk(e){var t;let n=e.auth,r=await e.getIdToken(),i=await tw(e,t_(n,{idToken:r}));e9(null==i?void 0:i.users.length,n,"internal-error");let a=i.users[0];e._notifyReloadListener(a);let s=(null===(t=a.providerUserInfo)||void 0===t?void 0:t.length)?a.providerUserInfo.map(e=>{var{providerId:t}=e,n=(0,eX._T)(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}):[],o=function(e,t){let n=e.filter(e=>!t.some(t=>t.providerId===e.providerId));return[...n,...t]}(e.providerData,s),l=e.isAnonymous,u=!(e.email&&a.passwordHash)&&!(null==o?void 0:o.length),c={uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:o,metadata:new tS(a.createdAt,a.lastLoginAt),isAnonymous:!!l&&u};Object.assign(e,c)}async function tx(e){let t=en(e);await tk(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function tT(e,t){let n=await tu(e,{},async()=>{let n=J({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,a=td(e,r,"/v1/token",`key=${i}`),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/x-www-form-urlencoded",ti.fetch()(a,{method:"POST",headers:s,body:n})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tR{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){e9(e.idToken,"internal-error"),e9(void 0!==e.idToken,"internal-error"),e9(void 0!==e.refreshToken,"internal-error");let t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):function(e){let t=tb(e);return e9(t,"internal-error"),e9(void 0!==t.exp,"internal-error"),e9(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}async getToken(e,t=!1){return(e9(!this.accessToken||this.refreshToken,e,"user-token-expired"),t||!this.accessToken||this.isExpired)?this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null:this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:n,refreshToken:r,expiresIn:i}=await tT(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){let{refreshToken:n,accessToken:r,expirationTime:i}=t,a=new tR;return n&&(e9("string"==typeof n,"internal-error",{appName:e}),a.refreshToken=n),r&&(e9("string"==typeof r,"internal-error",{appName:e}),a.accessToken=r),i&&(e9("number"==typeof i,"internal-error",{appName:e}),a.expirationTime=i),a}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 tR,this.toJSON())}_performRefresh(){return e7("not implemented")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tI(e,t){e9("string"==typeof e||void 0===e,"internal-error",{appName:t})}class tO{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=(0,eX._T)(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new tE(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 tS(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){let t=await tw(this,this.stsTokenManager.getToken(this.auth,e));return e9(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return tg(this,e)}reload(){return tx(this)}_assign(e){this!==e&&(e9(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){let t=new tO(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){e9(!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 tk(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){let e=await this.getIdToken();return await tw(this,tm(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,isAnonymous: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,a,s,o,l,u;let c=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!==(a=t.photoURL)&&void 0!==a?a:void 0,f=null!==(s=t.tenantId)&&void 0!==s?s:void 0,m=null!==(o=t._redirectEventId)&&void 0!==o?o:void 0,_=null!==(l=t.createdAt)&&void 0!==l?l:void 0,y=null!==(u=t.lastLoginAt)&&void 0!==u?u:void 0,{uid:g,emailVerified:v,isAnonymous:b,providerData:w,stsTokenManager:E}=t;e9(g&&E,e,"internal-error");let S=tR.fromJSON(this.name,E);e9("string"==typeof g,e,"internal-error"),tI(c,e.name),tI(d,e.name),e9("boolean"==typeof v,e,"internal-error"),e9("boolean"==typeof b,e,"internal-error"),tI(h,e.name),tI(p,e.name),tI(f,e.name),tI(m,e.name),tI(_,e.name),tI(y,e.name);let k=new tO({uid:g,auth:e,email:d,emailVerified:v,displayName:c,isAnonymous:b,photoURL:p,phoneNumber:h,tenantId:f,stsTokenManager:S,createdAt:_,lastLoginAt:y});return w&&Array.isArray(w)&&(k.providerData=w.map(e=>Object.assign({},e))),m&&(k._redirectEventId=m),k}static async _fromIdTokenResponse(e,t,n=!1){let r=new tR;r.updateFromServerResponse(t);let i=new tO({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await tk(i),i}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let tC=new Map;function tA(e){e instanceof Function||e7("Expected a class definition");let t=tC.get(e);return t?t instanceof e||e7("Instance stored in cache mismatched with class"):(t=new e,tC.set(e,t)),t}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tN{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tD(e,t,n){return`firebase:${e}:${t}:${n}`}tN.type="NONE";class tP{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;let{config:r,name:i}=this.auth;this.fullUserKey=tD(this.userKey,r.apiKey,i),this.fullPersistenceKey=tD("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(){let e=await this.persistence._get(this.fullUserKey);return e?tO._fromJSON(this.auth,e):null}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;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new tP(tA(tN),e,n);let r=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),i=r[0]||tA(tN),a=tD(n,e.config.apiKey,e.name),s=null;for(let n of t)try{let t=await n._get(a);if(t){let r=tO._fromJSON(e,t);n!==i&&(s=r),i=n;break}}catch(e){}let o=r.filter(e=>e._shouldAllowMigration);return i._shouldAllowMigration&&o.length&&(i=o[0],s&&await i._set(a,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==i)try{await e._remove(a)}catch(e){}}))),new tP(i,e,n)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tL(e){let t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(tB(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";{if(t.includes("edge/"))return"Edge";if(tU(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(t$(t))return"Blackberry";if(tz(t))return"Webos";if(tM(t))return"Safari";if((t.includes("chrome/")||tj(t))&&!t.includes("edge/"))return"Chrome";if(tF(t))return"Android";let n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if((null==n?void 0:n.length)===2)return n[1]}return"Other"}function tU(e=Y()){return/firefox\//i.test(e)}function tM(e=Y()){let t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function tj(e=Y()){return/crios\//i.test(e)}function tB(e=Y()){return/iemobile/i.test(e)}function tF(e=Y()){return/android/i.test(e)}function t$(e=Y()){return/blackberry/i.test(e)}function tz(e=Y()){return/webos/i.test(e)}function tG(e=Y()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function tq(e=Y()){return tG(e)||tF(e)||tz(e)||t$(e)||/windows phone/i.test(e)||tB(e)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function tY(e,t=[]){let n;switch(e){case"Browser":n=tL(Y());break;case"Worker":n=`${tL(Y())}-${e}`;break;default:n=e}let r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${ej}/${r}`}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tH{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let n=t=>new Promise((n,r)=>{try{let r=e(t);n(r)}catch(e){r(e)}});n.onAbort=t,this.queue.push(n);let r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(e){for(let e of(t.reverse(),t))try{e()}catch(e){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==e?void 0:e.message})}}}/**
 * @license
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function tW(e,t={}){return tl(e,"GET","/v2/passwordPolicy",to(e,t))}class tZ{constructor(e){var t,n,r,i;let a=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=a.minPasswordLength)&&void 0!==t?t:6,a.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=a.maxPasswordLength),void 0!==a.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=a.containsLowercaseCharacter),void 0!==a.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=a.containsUppercaseCharacter),void 0!==a.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=a.containsNumericCharacter),void 0!==a.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=a.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,a,s;let o={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,o),this.validatePasswordCharacterOptions(e,o),o.isValid&&(o.isValid=null===(t=o.meetsMinPasswordLength)||void 0===t||t),o.isValid&&(o.isValid=null===(n=o.meetsMaxPasswordLength)||void 0===n||n),o.isValid&&(o.isValid=null===(r=o.containsLowercaseLetter)||void 0===r||r),o.isValid&&(o.isValid=null===(i=o.containsUppercaseLetter)||void 0===i||i),o.isValid&&(o.isValid=null===(a=o.containsNumericCharacter)||void 0===a||a),o.isValid&&(o.isValid=null===(s=o.containsNonAlphanumericCharacter)||void 0===s||s),o}validatePasswordLengthOptions(e,t){let 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))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class tV{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 tK(this),this.idTokenSubscription=new tK(this),this.beforeStateQueue=new tH(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=e2,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=tA(t)),this._initializationPromise=this.queue(async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await tP.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(e){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUser(e){var t;let n=await this.assertedPersistence.getCurrentUser(),r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,a=null==r?void 0:r._redirectEventId,s=await this.tryRedirectSignIn(e);(!n||n===a)&&(null==s?void 0:s.user)&&(r=s.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(i)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(e9(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 tk(e)}catch(e){if((null==e?void 0:e.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){let t=e?en(e):null;return t&&e9(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&&e9(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 await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0)}setPersistence(e){return this.queue(async()=>{await this.assertedPersistence.setPersistence(tA(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();let 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(){let e=await tW(this),t=new tZ(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new W("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{let n=this.onAuthStateChanged(()=>{n(),e()},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){let n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&tA(e)||this._popupRedirectResolver;e9(t,this,"argument-error"),this.redirectPersistenceManager=await tP.create(this,[tA(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);let 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()=>{};let i="function"==typeof t?t:t.next.bind(t),a=!1,s=this._isInitialized?Promise.resolve():this._initializationPromise;if(e9(s,this,"internal-error"),s.then(()=>{a||i(this.currentUser)}),"function"==typeof t){let i=e.addObserver(t,n,r);return()=>{a=!0,i()}}{let n=e.addObserver(t);return()=>{a=!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 e9(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=tY(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;let t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);let n=await (null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);let r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;let 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){e5.logLevel<=f.WARN&&e5.warn(`Auth (${ej}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}class tK{constructor(e){this.auth=e,this.observer=null,this.addObserver=function(e,t){let n=new ee(e,void 0);return n.subscribe.bind(n)}(e=>this.observer=e)}get next(){return e9(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}function tJ(e){return new Promise((t,n)=>{var r,i;let a=document.createElement("script");a.setAttribute("src",e),a.onload=t,a.onerror=e=>{let t=e4("internal-error");t.customData=e,n(t)},a.type="text/javascript",a.charset="UTF-8",(null!==(i=null===(r=document.getElementsByTagName("head"))||void 0===r?void 0:r[0])&&void 0!==i?i:document).appendChild(a)})}function tX(e){return`__${e}${Math.floor(1e6*Math.random())}`}class tQ{constructor(e){this.type="recaptcha-enterprise",this.auth=en(e)}async verify(e="verify",t=!1){async function n(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)=>{tf(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(r=>{if(void 0===r.recaptchaKey)n(Error("recaptcha Enterprise site key undefined"));else{let n=new e0(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}}).catch(e=>{n(e)})})}function r(t,n,r){let i=window.grecaptcha;eQ(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n("NO_RECAPTCHA")})}):r(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((e,i)=>{n(this.auth).then(n=>{if(!t&&eQ(window.grecaptcha))r(n,e,i);else{if("undefined"==typeof window){i(Error("RecaptchaVerifier is only supported in browser"));return}tJ("https://www.google.com/recaptcha/enterprise.js?render="+n).then(()=>{r(n,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}}async function t0(e,t,n,r=!1){let i;let a=new tQ(e);try{i=await a.verify(n)}catch(e){i=await a.verify(n,!0)}let s=Object.assign({},t);return r?Object.assign(s,{captchaResp:i}):Object.assign(s,{captchaResponse:i}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}function t1(e){let t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function t2(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class t5{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return e7("not implemented")}_getIdTokenResponse(e){return e7("not implemented")}_linkToIdToken(e,t){return e7("not implemented")}_getReauthenticationResolver(e){return e7("not implemented")}}async function t6(e,t){return tl(e,"POST","/v1/accounts:update",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function t3(e,t){return tc(e,"POST","/v1/accounts:signInWithPassword",to(e,t))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function t4(e,t){return tc(e,"POST","/v1/accounts:signInWithEmailLink",to(e,t))}async function t8(e,t){return tc(e,"POST","/v1/accounts:signInWithEmailLink",to(e,t))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class t9 extends t5{constructor(e,t,n,r=null){super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new t9(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new t9(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let 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){var t;switch(this.signInMethod){case"password":let n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};if(null===(t=e._getRecaptchaConfig())||void 0===t||!t.emailPasswordEnabled)return t3(e,n).catch(async t=>{if("auth/missing-recaptcha-token"!==t.code)return Promise.reject(t);{console.log("Sign-in with email address and password is protected by reCAPTCHA for this project. Automatically triggering the reCAPTCHA flow and restarting the sign-in flow.");let t=await t0(e,n,"signInWithPassword");return t3(e,t)}});{let t=await t0(e,n,"signInWithPassword");return t3(e,t)}case"emailLink":return t4(e,{email:this._email,oobCode:this._password});default:e3(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return t6(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password});case"emailLink":return t8(e,{idToken:t,email:this._email,oobCode:this._password});default:e3(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function t7(e,t){return tc(e,"POST","/v1/accounts:signInWithIdp",to(e,t))}class ne extends t5{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new ne(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&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):e3("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){let t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=(0,eX._T)(t,["providerId","signInMethod"]);if(!n||!r)return null;let a=new ne(n,r);return a.idToken=i.idToken||void 0,a.accessToken=i.accessToken||void 0,a.secret=i.secret,a.nonce=i.nonce,a.pendingToken=i.pendingToken||null,a}_getIdTokenResponse(e){let t=this.buildRequest();return t7(e,t)}_linkToIdToken(e,t){let n=this.buildRequest();return n.idToken=t,t7(e,n)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,t7(e,t)}buildRequest(){let e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let 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=J(t)}return e}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function nt(e,t){return tl(e,"POST","/v1/accounts:sendVerificationCode",to(e,t))}async function nn(e,t){return tc(e,"POST","/v1/accounts:signInWithPhoneNumber",to(e,t))}async function nr(e,t){let n=await tc(e,"POST","/v1/accounts:signInWithPhoneNumber",to(e,t));if(n.temporaryProof)throw tp(e,"account-exists-with-different-credential",n);return n}let ni={USER_NOT_FOUND:"user-not-found"};async function na(e,t){let n=Object.assign(Object.assign({},t),{operation:"REAUTH"});return tc(e,"POST","/v1/accounts:signInWithPhoneNumber",to(e,n),ni)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ns extends t5{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new ns({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new ns({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return nn(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return nr(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return na(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){let 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));let{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new ns({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class no{constructor(e){var t,n,r,i,a,s;let o=X(Q(e)),l=null!==(t=o.apiKey)&&void 0!==t?t:null,u=null!==(n=o.oobCode)&&void 0!==n?n:null,c=/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */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=o.mode)&&void 0!==r?r:null);e9(l&&u&&c,"argument-error"),this.apiKey=l,this.operation=c,this.code=u,this.continueUrl=null!==(i=o.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(a=o.languageCode)&&void 0!==a?a:null,this.tenantId=null!==(s=o.tenantId)&&void 0!==s?s:null}static parseLink(e){let t=function(e){let t=X(Q(e)).link,n=t?X(Q(t)).deep_link_id:null,r=X(Q(e)).deep_link_id,i=r?X(Q(r)).link:null;return i||r||n||t||e}(e);try{return new no(t)}catch(e){return null}}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nl{constructor(){this.providerId=nl.PROVIDER_ID}static credential(e,t){return t9._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let n=no.parseLink(t);return e9(n,"argument-error"),t9._fromEmailAndCode(e,n.code,n.tenantId)}}nl.PROVIDER_ID="password",nl.EMAIL_PASSWORD_SIGN_IN_METHOD="password",nl.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nu{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}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nc extends nu{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nd extends nc{constructor(){super("facebook.com")}static credential(e){return ne._fromParams({providerId:nd.PROVIDER_ID,signInMethod:nd.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return nd.credentialFromTaggedObject(e)}static credentialFromError(e){return nd.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return nd.credential(e.oauthAccessToken)}catch(e){return null}}}nd.FACEBOOK_SIGN_IN_METHOD="facebook.com",nd.PROVIDER_ID="facebook.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nh extends nc{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return ne._fromParams({providerId:nh.PROVIDER_ID,signInMethod:nh.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return nh.credentialFromTaggedObject(e)}static credentialFromError(e){return nh.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return nh.credential(t,n)}catch(e){return null}}}nh.GOOGLE_SIGN_IN_METHOD="google.com",nh.PROVIDER_ID="google.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class np extends nc{constructor(){super("github.com")}static credential(e){return ne._fromParams({providerId:np.PROVIDER_ID,signInMethod:np.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return np.credentialFromTaggedObject(e)}static credentialFromError(e){return np.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return np.credential(e.oauthAccessToken)}catch(e){return null}}}np.GITHUB_SIGN_IN_METHOD="github.com",np.PROVIDER_ID="github.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nf extends nc{constructor(){super("twitter.com")}static credential(e,t){return ne._fromParams({providerId:nf.PROVIDER_ID,signInMethod:nf.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return nf.credentialFromTaggedObject(e)}static credentialFromError(e){return nf.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return nf.credential(t,n)}catch(e){return null}}}nf.TWITTER_SIGN_IN_METHOD="twitter.com",nf.PROVIDER_ID="twitter.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nm{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){let i=await tO._fromIdTokenResponse(e,n,r),a=n_(n),s=new nm({user:i,providerId:a,_tokenResponse:n,operationType:t});return s}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);let r=n_(n);return new nm({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function n_(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class ny extends H{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,ny.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 ny(e,t,n,r)}}function ng(e,t,n,r){let i="reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e);return i.catch(n=>{if("auth/multi-factor-auth-required"===n.code)throw ny._fromErrorAndOperation(e,n,t,r);throw n})}async function nv(e,t,n=!1){let r=await tw(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return nm._forOperation(e,"link",r)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function nb(e,t,n=!1){let{auth:r}=e,i="reauthenticate";try{let a=await tw(e,ng(r,i,t,e),n);e9(a.idToken,r,"internal-error");let s=tb(a.idToken);e9(s,r,"internal-error");let{sub:o}=s;return e9(e.uid===o,r,"user-mismatch"),nm._forOperation(e,i,a)}catch(e){throw(null==e?void 0:e.code)==="auth/user-not-found"&&e3(r,"user-mismatch"),e}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function nw(e,t,n=!1){let r="signIn",i=await ng(e,r,t),a=await nm._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(a.user),a}new WeakMap;let nE="__sak";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nS{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{if(!this.storage)return Promise.resolve(!1);return this.storage.setItem(nE,"1"),this.storage.removeItem(nE),Promise.resolve(!0)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let 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 nk extends nS{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(){let e=Y();return tM(e)||tG(e)}()&&function(){try{return!!(window&&window!==window.top)}catch(e){return!1}}(),this.fallbackToPolling=tq(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key){this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});return}let n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){let r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}let r=()=>{let e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);(function(){let e=Y();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0})()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;let n=this.listeners[e];if(n)for(let 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){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}nk.type="LOCAL";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nx extends nS{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}nx.type="SESSION";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nT{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){let t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;let n=new nT(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let{eventId:t,eventType:n,data:r}=e.data,i=this.handlersMap[n];if(!(null==i?void 0:i.size))return;e.ports[0].postMessage({status:"ack",eventId:t,eventType:n});let a=Array.from(i).map(async t=>t(e.origin,r)),s=await Promise.all(a.map(async e=>{try{let t=await e;return{fulfilled:!0,value:t}}catch(e){return{fulfilled:!1,reason:e}}}));e.ports[0].postMessage({status:"done",eventId:t,eventType:n,response:s})}_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)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function nR(e="",t=10){let n="";for(let e=0;e<t;e++)n+=Math.floor(10*Math.random());return e+n}nT.receivers=[];/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nI{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){let r,i;let a="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!a)throw Error("connection_unavailable");return new Promise((s,o)=>{let l=nR("",20);a.port1.start();let u=setTimeout(()=>{o(Error("unsupported_event"))},n);i={messageChannel:a,onMessage(e){if(e.data.eventId===l)switch(e.data.status){case"ack":clearTimeout(u),r=setTimeout(()=>{o(Error("timeout"))},3e3);break;case"done":clearTimeout(r),s(e.data.response);break;default:clearTimeout(u),clearTimeout(r),o(Error("invalid_response"))}}},this.handlers.add(i),a.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[a.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function nO(){return window}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function nC(){return void 0!==nO().WorkerGlobalScope&&"function"==typeof nO().importScripts}async function nA(){if(!(null==navigator?void 0:navigator.serviceWorker))return null;try{let e=await navigator.serviceWorker.ready;return e.active}catch(e){return null}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let nN="firebaseLocalStorageDb",nD="firebaseLocalStorage",nP="fbase_key";class nL{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 nU(e,t){return e.transaction([nD],t?"readwrite":"readonly").objectStore(nD)}function nM(){let e=indexedDB.open(nN,1);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{let t=e.result;try{t.createObjectStore(nD,{keyPath:nP})}catch(e){n(e)}}),e.addEventListener("success",async()=>{let n=e.result;n.objectStoreNames.contains(nD)?t(n):(n.close(),await function(){let e=indexedDB.deleteDatabase(nN);return new nL(e).toPromise()}(),t(await nM()))})})}async function nj(e,t,n){let r=nU(e,!0).put({[nP]:t,value:n});return new nL(r).toPromise()}async function nB(e,t){let n=nU(e,!1).get(t),r=await new nL(n).toPromise();return void 0===r?null:r.value}function nF(e,t){let n=nU(e,!0).delete(t);return new nL(n).toPromise()}class n${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 nM()),this.db}async _withRetries(e){let t=0;for(;;)try{let 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 nC()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=nT._getInstance(nC()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>{let n=await this._poll();return{keyProcessed:n.includes(t.key)}}),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await nA(),!this.activeServiceWorker)return;this.sender=new nI(this.activeServiceWorker);let 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.serviceWorker)||void 0===t?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(e){}}async _isAvailable(){try{if(!indexedDB)return!1;let e=await nM();return await nj(e,nE,"1"),await nF(e,nE),!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=>nj(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>nB(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>nF(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>{let t=nU(e,!1).getAll();return new nL(t).toPromise()});if(!e||0!==this.pendingWrites)return[];let t=[],n=new Set;for(let{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(let 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;let n=this.listeners[e];if(n)for(let 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()}}async function nz(e,t,n){var r,i,a;let s=await n.verify();try{let o;if(e9("string"==typeof s,e,"argument-error"),e9("recaptcha"===n.type,e,"argument-error"),o="string"==typeof t?{phoneNumber:t}:t,"session"in o){let t=o.session;if("phoneNumber"in o){e9("enroll"===t.type,e,"internal-error");let n=await (i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:s}},tl(e,"POST","/v2/accounts/mfaEnrollment:start",to(e,i)));return n.phoneSessionInfo.sessionInfo}{e9("signin"===t.type,e,"internal-error");let n=(null===(r=o.multiFactorHint)||void 0===r?void 0:r.uid)||o.multiFactorUid;e9(n,e,"missing-multi-factor-info");let i=await (a={mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:s}},tl(e,"POST","/v2/accounts/mfaSignIn:start",to(e,a)));return i.phoneResponseInfo.sessionInfo}}{let{sessionInfo:t}=await nt(e,{phoneNumber:o.phoneNumber,recaptchaToken:s});return t}}finally{n._reset()}}n$.type="LOCAL",tX("rcb"),new tn(3e4,6e4);/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nG{constructor(e){this.providerId=nG.PROVIDER_ID,this.auth=en(e)}verifyPhoneNumber(e,t){return nz(this.auth,e,en(t))}static credential(e,t){return ns._fromVerification(e,t)}static credentialFromResult(e){return nG.credentialFromTaggedObject(e)}static credentialFromError(e){return nG.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{phoneNumber:t,temporaryProof:n}=e;return t&&n?ns._fromTokenResponse(t,n):null}}nG.PROVIDER_ID="phone",nG.PHONE_SIGN_IN_METHOD="phone";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nq extends t5{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return t7(e,this._buildIdpRequest())}_linkToIdToken(e,t){return t7(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return t7(e,this._buildIdpRequest())}_buildIdpRequest(e){let 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 nY(e){return nw(e.auth,new nq(e),e.bypassAuthState)}function nH(e){let{auth:t,user:n}=e;return e9(n,t,"internal-error"),nb(n,new nq(e),e.bypassAuthState)}async function nW(e){let{auth:t,user:n}=e;return e9(n,t,"internal-error"),nv(n,new nq(e),e.bypassAuthState)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nZ{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){let{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:a,type:s}=e;if(a){this.reject(a);return}let o={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)(o))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return nY;case"linkViaPopup":case"linkViaRedirect":return nW;case"reauthViaPopup":case"reauthViaRedirect":return nH;default:e3(this.auth,"internal-error")}}resolve(e){this.pendingPromise||e7("Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){this.pendingPromise||e7("Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let nV=new tn(2e3,1e4);class nK extends nZ{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,nK.currentPopupAction&&nK.currentPopupAction.cancel(),nK.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return e9(e,this.auth,"internal-error"),e}async onExecution(){1===this.filter.length||e7("Popup operations only handle one event");let e=nR();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(e4(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(e4(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,nK.currentPopupAction=null}pollUserCancellation(){let e=()=>{var t,n;if(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(e4(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,nV.get())};e()}}nK.currentPopupAction=null;let nJ=new Map;class nX extends nZ{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=nJ.get(this.auth._key());if(!e){try{let t=await nQ(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}nJ.set(this.auth._key(),e)}return this.bypassAuthState||nJ.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"===e.type){this.resolve(null);return}if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function nQ(e,t){let n=tD("pendingRedirect",t.config.apiKey,t.name),r=tA(e._redirectPersistence);if(!await r._isAvailable())return!1;let i=await r._get(n)==="true";return await r._remove(n),i}function n0(e,t){nJ.set(e._key(),t)}async function n1(e,t,n=!1){let r=en(e),i=t?tA(t):(e9(r._popupRedirectResolver,r,"argument-error"),r._popupRedirectResolver),a=new nX(r,i,n),s=await a.execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}class n2{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 n6(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!n6(e)){let r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(e4(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let 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(n5(e))}saveEventToCache(e){this.cachedEventUids.add(n5(e)),this.lastProcessedEventTime=Date.now()}}function n5(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function n6({type:e,error:t}){return"unknown"===e&&(null==t?void 0:t.code)==="auth/no-auth-event"}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function n3(e,t={}){return tl(e,"GET","/v1/projects",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let n4=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,n8=/^https?/;async function n9(e){if(e.config.emulator)return;let{authorizedDomains:t}=await n3(e);for(let e of t)try{if(function(e){let t=te(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){let 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(!n8.test(n))return!1;if(n4.test(e))return r===e;let i=e.replace(/\./g,"\\."),a=RegExp("^(.+\\."+i+"|"+i+")$","i");return a.test(r)}(e))return}catch(e){}e3(e,"unauthorized-domain")}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let n7=new tn(3e4,6e4);function re(){let e=nO().___jsl;if(null==e?void 0:e.H){for(let 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}}let rt=null,rn=new tn(5e3,15e3),rr={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},ri=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);async function ra(e){let t=await (rt=rt||new Promise((t,n)=>{var r,i,a;function s(){re(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{re(),n(e4(e,"network-request-failed"))},timeout:n7.get()})}if(null===(i=null===(r=nO().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else if(null===(a=nO().gapi)||void 0===a?void 0:a.load)s();else{let t=tX("iframefcb");return nO()[t]=()=>{gapi.load?s():n(e4(e,"network-request-failed"))},tJ(`https://apis.google.com/js/api.js?onload=${t}`).catch(e=>n(e))}}).catch(e=>{throw rt=null,e})),n=nO().gapi;return e9(n,e,"internal-error"),t.open({where:document.body,url:function(e){let t=e.config;e9(t.authDomain,e,"auth-domain-config-required");let n=t.emulator?tr(t,"emulator/auth/iframe"):`https://${e.config.authDomain}/__/auth/iframe`,r={apiKey:t.apiKey,appName:e.name,v:ej},i=ri.get(e.config.apiHost);i&&(r.eid=i);let a=e._getFrameworks();return a.length&&(r.fw=a.join(",")),`${n}?${J(r).slice(1)}`}(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:rr,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});let i=e4(e,"network-request-failed"),a=nO().setTimeout(()=>{r(i)},rn.get());function s(){nO().clearTimeout(a),n(t)}t.ping(s).then(s,()=>{r(i)})}))}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let rs={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class ro{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}let rl=encodeURIComponent("fac");async function ru(e,t,n,r,i,a){e9(e.config.authDomain,e,"auth-domain-config-required"),e9(e.config.apiKey,e,"invalid-api-key");let s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:ej,eventId:i};if(t instanceof nu)for(let[n,r]of(t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",!function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(t.getCustomParameters())&&(s.customParameters=JSON.stringify(t.getCustomParameters())),Object.entries(a||{})))s[n]=r;if(t instanceof nc){let e=t.getScopes().filter(e=>""!==e);e.length>0&&(s.scopes=e.join(","))}for(let t of(e.tenantId&&(s.tid=e.tenantId),Object.keys(s)))void 0===s[t]&&delete s[t];let o=await e._getAppCheckToken(),l=o?`#${rl}=${encodeURIComponent(o)}`:"";return`${function({config:e}){return e.emulator?tr(e,"emulator/auth/handler"):`https://${e.authDomain}/__/auth/handler`}(e)}?${J(s).slice(1)}${l}`}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let rc="webStorageSupport";class rd{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=nx,this._completeRedirectFn=n1,this._overrideRedirectResult=n0}async _openPopup(e,t,n,r){var i;(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager)||e7("_initialize() not called before _openPopup()");let a=await ru(e,t,n,te(),r);return function(e,t,n,r=500,i=600){let a=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString(),o="",l=Object.assign(Object.assign({},rs),{width:r.toString(),height:i.toString(),top:a,left:s}),u=Y().toLowerCase();n&&(o=tj(u)?"_blank":n),tU(u)&&(t=t||"http://localhost",l.scrollbars="yes");let c=Object.entries(l).reduce((e,[t,n])=>`${e}${t}=${n},`,"");if(function(e=Y()){var t;return tG(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}(u)&&"_self"!==o)return function(e,t){let n=document.createElement("a");n.href=e,n.target=t;let r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",o),new ro(null);let d=window.open(t||"",o,c);e9(d,e,"popup-blocked");try{d.focus()}catch(e){}return new ro(d)}(e,a,nR())}async _openRedirect(e,t,n,r){await this._originValidation(e);let i=await ru(e,t,n,te(),r);return nO().location.href=i,new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){let{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(n||e7("If manager is not set, promise should be"),n)}let n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){let t=await ra(e),n=new n2(e);return t.register("authEvent",t=>{e9(null==t?void 0:t.authEvent,e,"invalid-auth-event");let r=n.onEvent(t.authEvent);return{status:r?"ACK":"ERROR"}},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){let n=this.iframes[e._key()];n.send(rc,{type:rc},n=>{var r;let i=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r[rc];void 0!==i&&t(!!i),e3(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=n9(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return tq()||tM()||tG()}}class rh{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 e7("unexpected MultiFactorSessionType")}}}class rp extends rh{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new rp(e)}_finalizeEnroll(e,t,n){return tl(e,"POST","/v2/accounts/mfaEnrollment:finalize",to(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}_finalizeSignIn(e,t){return tl(e,"POST","/v2/accounts/mfaSignIn:finalize",to(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()}))}}class rf{constructor(){}static assertion(e){return rp._fromCredential(e)}}rf.FACTOR_ID="phone";class rm{static assertionForEnrollment(e,t){return r_._fromSecret(e,t)}static assertionForSignIn(e,t){return r_._fromEnrollmentId(e,t)}static async generateSecret(e){var t,n;e9(void 0!==(null===(t=e.user)||void 0===t?void 0:t.auth),"internal-error");let r=await tl(n=e.user.auth,"POST","/v2/accounts/mfaEnrollment:start",to(n,{idToken:e.credential,totpEnrollmentInfo:{}}));return ry._fromStartTotpMfaEnrollmentResponse(r,e.user.auth)}}rm.FACTOR_ID="totp";class r_ extends rh{constructor(e,t,n){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=n}static _fromSecret(e,t){return new r_(t,void 0,e)}static _fromEnrollmentId(e,t){return new r_(t,e)}async _finalizeEnroll(e,t,n){return e9(void 0!==this.secret,e,"argument-error"),tl(e,"POST","/v2/accounts/mfaEnrollment:finalize",to(e,{idToken:t,displayName:n,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)}))}async _finalizeSignIn(e,t){e9(void 0!==this.enrollmentId&&void 0!==this.otp,e,"argument-error");let n={verificationCode:this.otp};return tl(e,"POST","/v2/accounts/mfaSignIn:finalize",to(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:n}))}}class ry{constructor(e,t,n,r,i,a,s){this.sessionInfo=a,this.auth=s,this.secretKey=e,this.hashingAlgorithm=t,this.codeLength=n,this.codeIntervalSeconds=r,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(e,t){return new ry(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){var n;let r=!1;return(rg(e)||rg(t))&&(r=!0),r&&(rg(e)&&(e=(null===(n=this.auth.currentUser)||void 0===n?void 0:n.email)||"unknownuser"),rg(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function rg(e){return void 0===e||(null==e?void 0:e.length)===0}var rv="@firebase/auth",rb="1.3.0";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class rw{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){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;let t=await this.auth.currentUser.getIdToken(e);return{accessToken:t}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let 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();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){e9(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}let rE=G("authIdTokenMaxAge")||300,rS=null,rk=e=>async t=>{let n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>rE)return;let i=null==n?void 0:n.token;rS!==i&&(rS=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};h="Browser",eP(new er("auth",(e,{options:t})=>{let n=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:a,authDomain:s}=n.options;e9(a&&!a.includes(":"),"invalid-api-key",{appName:n.name});let o={apiKey:a,authDomain:s,clientPlatform:h,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:tY(h)},l=new tV(n,r,i,o);return function(e,t){let n=(null==t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(tA);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null==t?void 0:t.popupRedirectResolver)}(l,t),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{let r=e.getProvider("auth-internal");r.initialize()})),eP(new er("auth-internal",e=>{let t=en(e.getProvider("auth").getImmediate());return new rw(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),e$(rv,rb,/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(h)),e$(rv,rb,"esm2017");let rx=(()=>{try{return eF()}catch(e){return eB({apiKey:I.NEXT_PUBLIC_FIREBASE_API_KEY,projectId:I.NEXT_PUBLIC_FIREBASE_PROJECT_ID})}})(),rT=function(e=eF()){let t=eL(e,"auth");if(t.isInitialized())return t.getImmediate();let n=/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e,t){let n=eL(e,"auth");if(n.isInitialized()){let e=n.getImmediate(),r=n.getOptions();if(V(r,null!=t?t:{}))return e;e3(e,"already-initialized")}let r=n.initialize({options:t});return r}(e,{popupRedirectResolver:rd,persistence:[n$,nk,nx]}),r=G("authTokenSyncURL");if(r){let e=rk(r);en(n).beforeAuthStateChanged(e,()=>e(n.currentUser)),en(n).onIdTokenChanged(t=>e(t),void 0,void 0)}let i=$("auth");return i&&function(e,t,n){let r=en(e);e9(r._canInitEmulator,r,"emulator-config-failed"),e9(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");let i=!!(null==n?void 0:n.disableWarnings),a=t1(t),{host:s,port:o}=function(e){let t=t1(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};let r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){let e=i[1];return{host:e,port:t2(r.substr(e.length+1))}}{let[e,t]=r.split(":");return{host:e,port:t2(t)}}}(t),l=null===o?"":`:${o}`;r.config.emulator={url:`${a}//${s}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:o,protocol:a.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){let 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())}()}(n,`http://${i}`),n}(rx);rT.useDeviceLanguage();var rR=n(5632),rI=n.n(rR),rO=n(2784);let rC=e=>{let{children:t}=e,n=(0,rR.useRouter)(),[r,i]=(0,rO.useState)(),[a,s]=(0,rO.useState)(void 0);return((0,rO.useEffect)(()=>{let e=async()=>{let e=n.locale;e&&S.lE.includes(e)||(e=S.md);try{let t=await (0,S.cc)(e);i(e),s(t),rT.languageCode=e.split("-")[0]}catch(e){s(e instanceof Error?e:Error("".concat(e)))}};e()},[n.locale]),a)?a instanceof Error?(0,g.jsx)(g.Fragment,{children:"".concat(a)}):(0,g.jsx)(S.tY,{locale:null!=r?r:S.md,strings:a,children:t}):null};var rA=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,rN={revert:function(){}},rD=new Map,rP=new Set;function rL(e){var t=rD.get(e);return t||(t={element:e,attributes:{}},rD.set(e,t)),t}function rU(e,t,n,r,i){var a=n(e),s={isDirty:!1,originalValue:a,virtualValue:a,mutations:[],el:e,observer:new MutationObserver(function(){var t=n(e);t!==s.virtualValue&&(s.originalValue=t,i(s))}),mutationRunner:i,setValue:r,getCurrentValue:n};return s.observer.observe(e,"html"===t?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[t]}),s}function rM(e,t){var n=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?n&&e.parentNode===n.parentNode&&e.insertBeforeNode===n.insertBeforeNode||(t.isDirty=!0,r2()):e!==n&&(t.isDirty=!0,r2())}function rj(e){var t,n=e.originalValue;e.mutations.forEach(function(e){return n=e.mutate(n)}),rM((t=n,m||(m=document.createElement("div")),m.innerHTML=t,m.innerHTML),e)}function rB(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach(function(e){return e.mutate(t)}),rM(Array.from(t).filter(Boolean).join(" "),e)}function rF(e){var t=e.originalValue;e.mutations.forEach(function(e){return t=e.mutate(t)}),rM(t,e)}function r$(e){var t=e.originalValue;e.mutations.forEach(function(e){t=function(e){var t=e.parentSelector,n=e.insertBeforeSelector,r=document.querySelector(t);if(!r)return null;var i=n?document.querySelector(n):null;return n&&!i?null:{parentNode:r,insertBeforeNode:i}}(e.mutate())||t}),rM(t,e)}var rz=function(e){return e.innerHTML},rG=function(e,t){return e.innerHTML=t};function rq(e){var t=rL(e);return t.html||(t.html=rU(e,"html",rz,rG,rj)),t.html}var rY=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},rH=function(e,t){t.parentNode.insertBefore(e,t.insertBeforeNode)};function rW(e){var t=rL(e);return t.position||(t.position=rU(e,"position",rY,rH,r$)),t.position}var rZ=function(e,t){return t?e.className=t:e.removeAttribute("class")},rV=function(e){return e.className};function rK(e){var t=rL(e);return t.classes||(t.classes=rU(e,"class",rV,rZ,rB)),t.classes}function rJ(e,t){var n=rL(e);return n.attributes[t]||(n.attributes[t]=rU(e,t,function(e){var n;return null!=(n=e.getAttribute(t))?n:null},function(e,n){return null!==n?e.setAttribute(t,n):e.removeAttribute(t)},rF)),n.attributes[t]}function rX(e,t,n){if(n.isDirty){n.isDirty=!1;var r,i,a,s,o,l,u,c,d,h,p=n.virtualValue;!n.mutations.length&&(h=rD.get(e))&&("html"===t?(null==(r=h.html)||null==(i=r.observer)||i.disconnect(),delete h.html):"class"===t?(null==(a=h.classes)||null==(s=a.observer)||s.disconnect(),delete h.classes):"position"===t?(null==(o=h.position)||null==(l=o.observer)||l.disconnect(),delete h.position):(null==(u=h.attributes)||null==(c=u[t])||null==(d=c.observer)||d.disconnect(),delete h.attributes[t])),n.setValue(e,p)}}var rQ=!1;function r0(e,t){e.html&&rX(t,"html",e.html),e.classes&&rX(t,"class",e.classes),e.position&&rX(t,"position",e.position),Object.keys(e.attributes).forEach(function(n){rX(t,n,e.attributes[n])})}function r1(){rQ=!1,rD.forEach(r0)}function r2(){rQ||(rQ=!0,requestAnimationFrame(r1))}function r5(e,t){var n=null;if("html"===e.kind?n=rq(t):"class"===e.kind?n=rK(t):"attribute"===e.kind?n=rJ(t,e.attribute):"position"===e.kind&&(n=rW(t)),n){var r=n.mutations.indexOf(e);-1!==r&&n.mutations.splice(r,1),n.mutationRunner(n)}}function r6(e){var t=new Set(e.elements),n=new Set;document.querySelectorAll(e.selector).forEach(function(r){if(n.add(r),!t.has(r)){var i;e.elements.add(r),i=null,"html"===e.kind?i=rq(r):"class"===e.kind?i=rK(r):"attribute"===e.kind?i=rJ(r,e.attribute):"position"===e.kind&&(i=rW(r)),i&&(i.mutations.push(e),i.mutationRunner(i))}}),t.forEach(function(t){n.has(t)||(e.elements.delete(t),r5(e,t))})}function r3(){rP.forEach(r6)}function r4(e){return"undefined"==typeof document?rN:(rP.add(e),r6(e),{revert:function(){e.elements.forEach(function(t){return r5(e,t)}),e.elements.clear(),rP.delete(e)}})}function r8(e,t){return r4({kind:"html",elements:new Set,mutate:t,selector:e})}function r9(e,t){return r4({kind:"position",elements:new Set,mutate:t,selector:e})}function r7(e,t){return r4({kind:"class",elements:new Set,mutate:t,selector:e})}function ie(e,t,n){return rA.test(t)?"class"===t||"className"===t?r7(e,function(e){var t=n(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach(function(t){return e.add(t)})}):r4({kind:"attribute",attribute:t,elements:new Set,mutate:n,selector:e}):rN}"undefined"!=typeof document&&(_||(_=new MutationObserver(function(){r3()})),r3(),_.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));var it={html:r8,classes:r7,attribute:ie,position:r9,declarative:function(e){var t=e.selector,n=e.action,r=e.value,i=e.attribute,a=e.parentSelector,s=e.insertBeforeSelector;if("html"===i){if("append"===n)return r8(t,function(e){return e+(null!=r?r:"")});if("set"===n)return r8(t,function(){return null!=r?r:""})}else if("class"===i){if("append"===n)return r7(t,function(e){r&&e.add(r)});if("remove"===n)return r7(t,function(e){r&&e.delete(r)});if("set"===n)return r7(t,function(e){e.clear(),r&&e.add(r)})}else if("position"===i){if("set"===n&&a)return r9(t,function(){return{insertBeforeSelector:s,parentSelector:a}})}else{if("append"===n)return ie(t,i,function(e){return null!==e?e+(null!=r?r:""):null!=r?r:""});if("set"===n)return ie(t,i,function(){return null!=r?r:""});if("remove"===n)return ie(t,i,function(){return null})}return rN}};function ir(e){let t=2166136261,n=e.length;for(let r=0;r<n;r++)t^=e.charCodeAt(r),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return t>>>0}function ii(e,t,n){return 2===n?ir(ir(e+t)+"")%1e4/1e4:1===n?ir(t+e)%1e3/1e3:null}function ia(e,t){return e>=t[0]&&e<t[1]}function is(e){try{let t=e.replace(/([^\\])\//g,"$1\\/");return new RegExp(t)}catch(e){console.error(e);return}}let io=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));async function il(e,t,n){if(t=t||"",!(n=n||globalThis.crypto&&globalThis.crypto.subtle))throw Error("No SubtleCrypto implementation found");try{let r=await n.importKey("raw",io(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,a]=e.split("."),s=await n.decrypt({name:"AES-CBC",iv:io(i)},r,io(a));return new TextDecoder().decode(s)}catch(e){throw Error("Failed to decrypt")}}function iu(e){let t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map(e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e).join("-")}let ic={};function id(e,t){if("$or"in t)return im(e,t.$or);if("$nor"in t)return!im(e,t.$nor);if("$and"in t)return function(e,t){for(let n=0;n<t.length;n++)if(!id(e,t[n]))return!1;return!0}(e,t.$and);if("$not"in t)return!id(e,t.$not);for(let[n,r]of Object.entries(t))if(!function e(t,n){if("string"==typeof t)return n+""===t;if("number"==typeof t)return 1*n===t;if("boolean"==typeof t)return!!n===t;if(null===t)return null===n;if(Array.isArray(t)||!ih(t))return JSON.stringify(n)===JSON.stringify(t);for(let r in t)if(!function(t,n,r){switch(t){case"$veq":return iu(n)===iu(r);case"$vne":return iu(n)!==iu(r);case"$vgt":return iu(n)>iu(r);case"$vgte":return iu(n)>=iu(r);case"$vlt":return iu(n)<iu(r);case"$vlte":return iu(n)<=iu(r);case"$eq":return n===r;case"$ne":return n!==r;case"$lt":return n<r;case"$lte":return n<=r;case"$gt":return n>r;case"$gte":return n>=r;case"$exists":return r?null!==n:null===n;case"$in":if(!Array.isArray(r))return!1;return ip(n,r);case"$nin":if(!Array.isArray(r))return!1;return!ip(n,r);case"$not":return!e(r,n);case"$size":if(!Array.isArray(n))return!1;return e(r,n.length);case"$elemMatch":return function(t,n){if(!Array.isArray(t))return!1;let r=ih(n)?t=>e(n,t):e=>id(e,n);for(let e=0;e<t.length;e++)if(t[e]&&r(t[e]))return!0;return!1}(n,r);case"$all":if(!Array.isArray(n))return!1;for(let t=0;t<r.length;t++){let i=!1;for(let a=0;a<n.length;a++)if(e(r[t],n[a])){i=!0;break}if(!i)return!1}return!0;case"$regex":try{return(ic[r]||(ic[r]=new RegExp(r.replace(/([^\\])\//g,"$1\\/"))),ic[r]).test(n)}catch(e){return!1}case"$type":return function(e){if(null===e)return"null";if(Array.isArray(e))return"array";let t=typeof e;return["string","number","boolean","object","undefined"].includes(t)?t:"unknown"}(n)===r;default:return console.error("Unknown operator: "+t),!1}}(r,n,t[r]))return!1;return!0}(r,function(e,t){let n=t.split("."),r=e;for(let e=0;e<n.length;e++){if(!r||"object"!=typeof r||!(n[e]in r))return null;r=r[n[e]]}return r}(e,n)))return!1;return!0}function ih(e){let t=Object.keys(e);return t.length>0&&t.filter(e=>"$"===e[0]).length===t.length}function ip(e,t){return Array.isArray(e)?e.some(e=>t.includes(e)):t.includes(e)}function im(e,t){if(!t.length)return!0;for(let n=0;n<t.length;n++)if(id(e,t[n]))return!0;return!1}let i_={staleTTL:6e4,cacheKey:"gbFeaturesCache",backgroundSync:!0},iy={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};try{globalThis.localStorage&&(iy.localStorage=globalThis.localStorage)}catch(e){}let ig=new Map,iv=!1,ib=new Map,iw=new Map,iE=new Map,iS=new Set;async function ik(e,t,n,r,i,a){a||(i_.backgroundSync=!1);let s=await iT(e,r,t,n);i&&s&&await iC(e,s)}async function ix(){try{if(!iy.localStorage)return;await iy.localStorage.setItem(i_.cacheKey,JSON.stringify(Array.from(ib.entries())))}catch(e){}}async function iT(e,t,n,r){let[i]=iR(e),a=new Date;await iI();let s=ib.get(i);if(s&&!r&&(t||s.staleAt>a))return s.sse&&iS.add(i),s.staleAt<a?iA(e):iN(e),s.data;{var o;let t=await (o=iA(e),new Promise(e=>{let t,r=!1,i=n=>{r||(r=!0,t&&clearTimeout(t),e(n||null))};n&&(t=setTimeout(()=>i(),n)),o.then(e=>i(e)).catch(()=>i())}));return t}}function iR(e){let[t,n]=e.getApiInfo();return["".concat(t,"||").concat(n),t,n]}async function iI(){if(!iv){iv=!0;try{if(iy.localStorage){let e=await iy.localStorage.getItem(i_.cacheKey);if(e){let t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach(e=>{let[t,n]=e;ib.set(t,{...n,staleAt:new Date(n.staleAt)})})}}}catch(e){}}}function iO(e,t){let n=t.dateUpdated||"",r=new Date(Date.now()+i_.staleTTL),i=ib.get(e);if(i&&n&&i.version===n){i.staleAt=r,ix();return}ib.set(e,{data:t,version:n,staleAt:r,sse:iS.has(e)}),ix();let a=ig.get(e);a&&a.forEach(e=>iC(e,t))}async function iC(e,t){await (t.encryptedExperiments?e.setEncryptedExperiments(t.encryptedExperiments,void 0,iy.SubtleCrypto):e.setExperiments(t.experiments||e.getExperiments())),await (t.encryptedFeatures?e.setEncryptedFeatures(t.encryptedFeatures,void 0,iy.SubtleCrypto):e.setFeatures(t.features||e.getFeatures()))}async function iA(e){let[t,n,r]=iR(e),i=iw.get(t);return i||(i=iy.fetch(n+"/api/features/"+r).then(e=>("enabled"===e.headers.get("x-sse-support")&&iS.add(t),e.json())).then(n=>(iO(t,n),iN(e),iw.delete(t),n)).catch(e=>(iw.delete(t),Promise.resolve({}))),iw.set(t,i)),await i}function iN(e){let[t,n,r]=iR(e);if(i_.backgroundSync&&iS.has(t)&&iy.EventSource){if(iE.has(t))return;let e={src:null,cb:i=>{try{let n=JSON.parse(i.data);iO(t,n),e.errors=0}catch(t){iD(e,n,r)}},errors:0};iE.set(t,e),iP(e,n,r)}}function iD(e,t,n){if(e.errors++,e.errors>3||e.src&&2===e.src.readyState){let r=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null),setTimeout(()=>{iP(e,t,n)},Math.min(r,3e5))}}function iP(e,t,n){e.src=new iy.EventSource("".concat(t,"/sub/").concat(n)),e.src.addEventListener("features",e.cb),e.src.onerror=()=>{iD(e,t,n)},e.src.onopen=()=>{e.errors=0}}let iL="undefined"!=typeof window&&"undefined"!=typeof document;class iU{constructor(e){e=e||{},this._ctx=this.context=e,this._renderer=null,this._trackedExperiments=new Set,this._trackedFeatures={},this.debug=!1,this._subscriptions=new Set,this._rtQueue=[],this._rtTimer=0,this.ready=!1,this._assigned=new Map,this._forcedFeatureValues=new Map,this._attributeOverrides={},this._activeAutoExperiments=new Map,e.features&&(this.ready=!0),iL&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),e.clientKey&&this._refresh({},!0,!1)}async loadFeatures(e){await this._refresh(e,!0,!0),!1!==this._ctx.backgroundSync&&(this._ctx.subscribeToChanges||e&&e.autoRefresh)&&function(e){let[t]=iR(e),n=ig.get(t)||new Set;n.add(e),ig.set(t,n)}(this)}async refreshFeatures(e){await this._refresh(e,!1,!0)}getApiInfo(){return[(this._ctx.apiHost||"https://cdn.growthbook.io").replace(/\/*$/,""),this._ctx.clientKey||""]}async _refresh(e,t,n){if(e=e||{},!this._ctx.clientKey)throw Error("Missing clientKey");await ik(this,e.timeout,e.skipCache||this._ctx.enableDevMode,t,n,!1!==this._ctx.backgroundSync)}_render(){this._renderer&&this._renderer()}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,n){let r=await il(e,t||this._ctx.decryptionKey,n);this.setFeatures(JSON.parse(r))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,n){let r=await il(e,t||this._ctx.decryptionKey,n);this.setExperiments(JSON.parse(r))}setAttributes(e){this._ctx.attributes=e,this._render(),this._updateAllAutoExperiments()}setAttributeOverrides(e){this._attributeOverrides=e,this._render(),this._updateAllAutoExperiments()}setForcedVariations(e){this._ctx.forcedVariations=e||{},this._render(),this._updateAllAutoExperiments()}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}setURL(e){this._ctx.url=e,this._updateAllAutoExperiments(!0)}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._trackedFeatures={},this._rtQueue=[],this._rtTimer&&clearTimeout(this._rtTimer),e=this,ig.forEach(t=>t.delete(e)),iL&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach(e=>{e.undo()}),this._activeAutoExperiments.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._render()}run(e){let t=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){if(!this._ctx.experiments)return null;let t=this._ctx.experiments.find(t=>t.key===e);return t&&t.manual?this._runAutoExperiment(t,!0):null}_runAutoExperiment(e,t,n){let r=e.key,i=this._activeAutoExperiments.get(r);if(e.manual&&!t&&!i)return null;let a=this.run(e),s=JSON.stringify(a.value);if(!n&&a.inExperiment&&i&&i.valueHash===s)return a;if(i&&this._undoActiveAutoExperiment(r),a.inExperiment){let t=this._applyDOMChanges(a.value);t&&this._activeAutoExperiments.set(e.key,{undo:t,valueHash:s})}return a}_undoActiveAutoExperiment(e){let t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){let t=this._ctx.experiments||[],n=new Set(t.map(e=>e.key));this._activeAutoExperiments.forEach((e,t)=>{n.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}),t.forEach(t=>{this._runAutoExperiment(t,!1,e)})}_fireSubscriptions(e,t){let n=e.key,r=this._assigned.get(n);r&&r.result.inExperiment===t.inExperiment&&r.result.variationId===t.variationId||(this._assigned.set(n,{experiment:e,result:t}),this._subscriptions.forEach(n=>{try{n(e,t)}catch(e){console.error(e)}}))}_trackFeatureUsage(e,t){if("override"===t.source)return;let n=JSON.stringify(t.value);if(this._trackedFeatures[e]!==n){if(this._trackedFeatures[e]=n,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}iL&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout(()=>{this._rtTimer=0;let e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch(()=>{})},this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,n,r,i,a){let s={value:t,on:!!t,off:!t,source:n,ruleId:r||""};return i&&(s.experiment=i),a&&(s.experimentResult=a),this._trackFeatureUsage(e,s),s}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){let n=this.evalFeature(e).value;return null===n?t:n}feature(e){return this.evalFeature(e)}evalFeature(e){if(this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");let t=this._ctx.features[e];if(t.rules)for(let n of t.rules){if(n.condition&&!this._conditionPasses(n.condition)||n.filters&&this._isFilteredOut(n.filters))continue;if("force"in n){if(!this._isIncludedInRollout(n.seed||e,n.hashAttribute,n.range,n.coverage,n.hashVersion))continue;return n.tracks&&n.tracks.forEach(e=>{this._track(e.experiment,e.result)}),this._getFeatureResult(e,n.force,"force",n.id)}if(!n.variations)continue;let t={variations:n.variations,key:n.key||e};"coverage"in n&&(t.coverage=n.coverage),n.weights&&(t.weights=n.weights),n.hashAttribute&&(t.hashAttribute=n.hashAttribute),n.namespace&&(t.namespace=n.namespace),n.meta&&(t.meta=n.meta),n.ranges&&(t.ranges=n.ranges),n.name&&(t.name=n.name),n.phase&&(t.phase=n.phase),n.seed&&(t.seed=n.seed),n.hashVersion&&(t.hashVersion=n.hashVersion),n.filters&&(t.filters=n.filters);let r=this._run(t,e);if(this._fireSubscriptions(t,r),r.inExperiment&&!r.passthrough)return this._getFeatureResult(e,r.value,"experiment",n.id,t,r)}return this._getFeatureResult(e,void 0===t.defaultValue?null:t.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,n,r,i){if(!n&&void 0===r)return!0;let{hashValue:a}=this._getHashAttribute(t);if(!a)return!1;let s=ii(e,a,i||1);return null!==s&&(n?ia(s,n):void 0===r||s<=r)}_conditionPasses(e){return id(this.getAttributes(),e)}_isFilteredOut(e){return e.some(e=>{let{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;let n=ii(e.seed,t,e.hashVersion||2);return null===n||!e.ranges.some(e=>ia(n,e))})}_run(e,t){let n=e.key,r=e.variations.length;if(r<2||!1===this._ctx.enabled)return this._getResult(e,-1,!1,t);e=this._mergeOverrides(e);let i=function(e,t,n){if(!t)return null;let r=t.split("?")[1];if(!r)return null;let i=r.replace(/#.*/,"").split("&").map(e=>e.split("=",2)).filter(t=>{let[n]=t;return n===e}).map(e=>{let[,t]=e;return parseInt(t)});return i.length>0&&i[0]>=0&&i[0]<n?i[0]:null}(n,this._getContextUrl(),r);if(null!==i)return this._getResult(e,i,!1,t);if(this._ctx.forcedVariations&&n in this._ctx.forcedVariations){let r=this._ctx.forcedVariations[n];return this._getResult(e,r,!1,t)}if("draft"===e.status||!1===e.active)return this._getResult(e,-1,!1,t);let{hashValue:a}=this._getHashAttribute(e.hashAttribute);if(!a)return this._getResult(e,-1,!1,t);if(e.filters){if(this._isFilteredOut(e.filters))return this._getResult(e,-1,!1,t)}else if(e.namespace&&!function(e,t){let n=ii("__"+t[0],e,1);return null!==n&&n>=t[1]&&n<t[2]}(a,e.namespace))return this._getResult(e,-1,!1,t);if(e.include&&!function(e){try{return e()}catch(e){return console.error(e),!1}}(e.include)||e.condition&&!this._conditionPasses(e.condition)||e.groups&&!this._hasGroupOverlap(e.groups)||e.url&&!this._urlIsValid(e.url)||e.urlPatterns&&!function(e,t){if(!t.length)return!1;let n=!1,r=!1;for(let i=0;i<t.length;i++){let a=function(e,t,n){try{let r=new URL(e,"https://_");if("regex"===t){let e=is(n);if(!e)return!1;return e.test(r.href)||e.test(r.href.substring(r.origin.length))}if("simple"===t)return function(e,t){try{let n=new URL(t.replace(/^([^:/?]*)\./i,"https://$1.").replace(/\*/g,"_____"),"https://_____"),r=[[e.host,n.host,!1],[e.pathname,n.pathname,!0]];return n.hash&&r.push([e.hash,n.hash,!1]),n.searchParams.forEach((t,n)=>{r.push([e.searchParams.get(n)||"",t,!1])}),!r.some(e=>!function(e,t,n){try{let r=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");n&&(r="\\/?"+r.replace(/(^\/|\/$)/g,"")+"\\/?");let i=RegExp("^"+r+"$","i");return i.test(e)}catch(e){return!1}}(e[0],e[1],e[2]))}catch(e){return!1}}(r,n);return!1}catch(e){return!1}}(e,t[i].type,t[i].pattern);if(!1===t[i].include){if(a)return!1}else n=!0,a&&(r=!0)}return r||!n}(this._getContextUrl(),e.urlPatterns))return this._getResult(e,-1,!1,t);let s=ii(e.seed||n,a,e.hashVersion||1);if(null===s)return this._getResult(e,-1,!1,t);let o=e.ranges||function(e,t,n){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);let r=e<=0?[]:Array(e).fill(1/e);(n=n||r).length!==e&&(n=r);let i=n.reduce((e,t)=>t+e,0);(i<.99||i>1.01)&&(n=r);let a=0;return n.map(e=>{let n=a;return a+=e,[n,n+t*e]})}(r,void 0===e.coverage?1:e.coverage,e.weights),l=function(e,t){for(let n=0;n<t.length;n++)if(ia(e,t[n]))return n;return -1}(s,o);if(l<0)return this._getResult(e,-1,!1,t);if("force"in e)return this._getResult(e,void 0===e.force?-1:e.force,!1,t);if(this._ctx.qaMode||"stopped"===e.status)return this._getResult(e,-1,!1,t);let u=this._getResult(e,l,!0,t,s);return this._track(e,u),u}log(e,t){this.debug&&(this._ctx.log?this._ctx.log(e,t):console.log(e,t))}_track(e,t){if(!this._ctx.trackingCallback)return;let n=e.key,r=t.hashAttribute+t.hashValue+n+t.variationId;if(!this._trackedExperiments.has(r)){this._trackedExperiments.add(r);try{this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}_mergeOverrides(e){let t=e.key,n=this._ctx.overrides;return n&&n[t]&&"string"==typeof(e=Object.assign({},e,n[t])).url&&(e.url=is(e.url)),e}_getHashAttribute(e){let t=e||"id",n="";return this._attributeOverrides[t]?n=this._attributeOverrides[t]:this._ctx.attributes?n=this._ctx.attributes[t]||"":this._ctx.user&&(n=this._ctx.user[t]||""),{hashAttribute:t,hashValue:n}}_getResult(e,t,n,r,i){let a=!0;(t<0||t>=e.variations.length)&&(t=0,a=!1);let{hashAttribute:s,hashValue:o}=this._getHashAttribute(e.hashAttribute),l=e.meta?e.meta[t]:{},u={key:l.key||""+t,featureId:r,inExperiment:a,hashUsed:n,variationId:t,value:e.variations[t],hashAttribute:s,hashValue:o};return l.name&&(u.name=l.name),void 0!==i&&(u.bucket=i),l.passthrough&&(u.passthrough=l.passthrough),u}_getContextUrl(){return this._ctx.url||(iL?window.location.href:"")}_urlIsValid(e){let t=this._getContextUrl();if(!t)return!1;let n=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(e.test(t)||e.test(n))}_hasGroupOverlap(e){let t=this._ctx.groups||{};for(let n=0;n<e.length;n++)if(t[e[n]])return!0;return!1}_applyDOMChanges(e){if(!iL)return;let t=[];if(e.css){let n=document.createElement("style");n.innerHTML=e.css,document.head.appendChild(n),t.push(()=>n.remove())}if(e.js){let n=document.createElement("script");n.innerHTML=e.js,document.body.appendChild(n),t.push(()=>n.remove())}return e.domMutations&&e.domMutations.forEach(e=>{t.push(it.declarative(e).revert)}),()=>{t.forEach(e=>e())}}}let iM=rO.createContext({}),ij=({children:e,growthbook:t})=>{let[n,r]=rO.useState(0);return rO.useEffect(()=>{if(t&&t.setRenderer)return t.setRenderer(()=>{r(e=>e+1)}),()=>{t.setRenderer(()=>{})}},[t]),rO.createElement(iM.Provider,{value:{growthbook:t}},e)};var iB=n(1235);function iF(){let e=iB.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");let n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function i$(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function iz(e){let{message:t,event_id:n}=e;if(t)return t;let r=i$(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function iG(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function iq(e,t){let n=i$(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}var iY=n(1170);let iH=["debug","info","warn","error","log","assert","trace"];function iW(e){if(!("console"in iB.n2))return e();let t=iB.n2.console,n={};iH.forEach(e=>{let r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)});try{return e()}finally{Object.keys(n).forEach(e=>{t[e]=n[e]})}}function iZ(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?iH.forEach(n=>{t[n]=(...t)=>{e&&iW(()=>{iB.n2.console[n](`Sentry Logger [${n}]:`,...t)})}}):iH.forEach(e=>{t[e]=()=>void 0}),t}a="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,iB.YO)("logger",iZ):iZ();let iV=Object.prototype.toString;function iK(e){switch(iV.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return i6(e,Error)}}function iJ(e,t){return iV.call(e)===`[object ${t}]`}function iX(e){return iJ(e,"ErrorEvent")}function iQ(e){return iJ(e,"DOMError")}function i0(e){return iJ(e,"String")}function i1(e){return iJ(e,"Object")}function i2(e){return"undefined"!=typeof Event&&i6(e,Event)}function i5(e){return!!(e&&e.then&&"function"==typeof e.then)}function i6(e,t){try{return e instanceof t}catch(e){return!1}}(p=y||(y={}))[p.PENDING=0]="PENDING",p[p.RESOLVED=1]="RESOLVED",p[p.REJECTED=2]="REJECTED";class i3{__init(){this._state=y.PENDING}__init2(){this._handlers=[]}constructor(e){i3.prototype.__init.call(this),i3.prototype.__init2.call(this),i3.prototype.__init3.call(this),i3.prototype.__init4.call(this),i3.prototype.__init5.call(this),i3.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new i3((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 i3((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init3(){this._resolve=e=>{this._setResult(y.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(y.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{if(this._state===y.PENDING){if(i5(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===y.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===y.RESOLVED&&e[1](this._value),this._state===y.REJECTED&&e[2](this._value),e[0]=!0)})}}}let i4=(0,iB.Rf)();function i8(e,t={}){try{let n,r=e,i=[],a=0,s=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&a++<5&&(n=function(e,t){let n,r,i,a,s;let o=[];if(!e||!e.tagName)return"";o.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&o.push(`#${e.id}`),(n=e.className)&&i0(n))for(s=0,r=n.split(/\s+/);s<r.length;s++)o.push(`.${r[s]}`);let u=["aria-label","type","name","title","alt"];for(s=0;s<u.length;s++)i=u[s],(a=e.getAttribute(i))&&o.push(`[${i}="${a}"]`);return o.join("")}(r,o),"html"!==n&&(!(a>1)||!(s+3*i.length+n.length>=l)));)i.push(n),s+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function i9(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function i7(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ae(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!i0(e)&&(iJ(t,"RegExp")?t.test(e):!!i0(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function at(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);if("function"==typeof i)try{ar(i,r)}catch(e){}e[t]=i}function an(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function ar(e,t){let n=t.prototype||{};e.prototype=t.prototype=n,an(e,"__sentry_original__",t)}function ai(e){return e.__sentry_original__}function aa(e){if(iK(e))return{message:e.message,name:e.name,stack:e.stack,...ao(e)};if(!i2(e))return e;{let t={type:e.type,target:as(e.target),currentTarget:as(e.currentTarget),...ao(e)};return"undefined"!=typeof CustomEvent&&i6(e,CustomEvent)&&(t.detail=e.detail),t}}function as(e){try{return"undefined"!=typeof Element&&i6(e,Element)?i8(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function ao(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function al(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,iY.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:iF()),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{let 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)}class au{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){let t=new au;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&al(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof au?t:this}return e instanceof au?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):i1(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,iY.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};let n=t.name;n&&(e.tags={transaction:n,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...ac(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,r=0){return new i3((i,s)=>{let o=e[r];if(null===t||"function"!=typeof o)i(t);else{let l=o({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.id&&null===l&&a.log(`Event processor "${o.id}" dropped event`),i5(l)?l.then(t=>this._notifyEventProcessors(e,t,n,r+1).then(i)).then(null,s):this._notifyEventProcessors(e,l,n,r+1).then(i).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){var t;e.fingerprint=e.fingerprint?Array.isArray(t=e.fingerprint)?t:[t]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function ac(){return(0,iB.YO)("globalEventProcessors",()=>[])}class ad{constructor(e,t=new au,n=4){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=au.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:iF(),r=Error("Sentry syntheticException");return this._withClient((i,a)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},a)}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:iF(),i=Error(e);return this._withClient((a,s)=>{a.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},s)}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:iF();return e.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let s=(0,iY.yW)(),o={timestamp:s,...e},l=i?iW(()=>i(o,t)):o;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=ap(this);try{e(this)}finally{ap(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n&&console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop(),t=e.scope,n=t.getSession();if(n){var r;let e;e={},r?e={status:r}:"ok"===n.status&&(e={status:"exited"}),al(n,e)}this._sendSessionUpdate(),t.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i="production"}=n&&n.getOptions()||{},{userAgent:a}=iB.n2.navigator||{},s=function(e){let t=(0,iY.ph)(),n={sid:iF(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(function(e){let t=new Map;return function e(t,n){if(i1(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,t)})({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&al(n,e),n}({release:r,environment:i,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&al(o,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=ah(),r=n.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function ah(){return iB.n2.__SENTRY__=iB.n2.__SENTRY__||{extensions:{},hub:void 0},iB.n2}function ap(e){let t=ah(),n=am(t);return a_(t,e),n}function af(){let e=ah();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=ah()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||am(e).isOlderThan(4))&&a_(e,new ad),am(e)}(e)}function am(e){return(0,iB.YO)("hub",()=>new ad,e)}function a_(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}let ay=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ag{static __initStatic(){this.id="InboundFilters"}__init(){this.name=ag.id}constructor(e={}){this._options=e,ag.prototype.__init.call(this)}setupOnce(e,t){let n=e=>{let n=t();if(n){let t=n.getIntegration(ag);if(t){var r;let i=n.getClient(),s=i?i.getOptions():{},o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...ay],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,s);return(o.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn(`Event dropped due to being internal Sentry Error.
Event: ${iz(e)}`),0):(r=o.ignoreErrors,!e.type&&r&&r.length&&(function(e){if(e.message)return[e.message];if(e.exception){let{values:t}=e.exception;try{let{type:e="",value:n=""}=t&&t[t.length-1]||{};return[`${n}`,`${e}: ${n}`]}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.error(`Cannot extract message for event ${iz(e)}`)}}return[]})(e).some(e=>ae(e,r)))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${iz(e)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&ae(n,t)}(e,o.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=av(e);return!!n&&ae(n,t)}(e,o.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=av(e);return!n||ae(n,t)}(e,o.allowUrls)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${iz(e)}.
Url: ${av(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${iz(e)}.
Url: ${av(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${iz(e)}`),0))?e:null}}return e};n.id=this.name,e(n)}}function av(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.error(`Cannot extract url for event ${iz(e)}`),null}}ag.__initStatic();class ab{constructor(){ab.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=ab.id}setupOnce(){s=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ai(this)||this;return s.apply(t,e)}}catch(e){}}}ab.__initStatic();let aw=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function aE(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function aS(e,t){return af().captureException(e,{captureContext:t})}function ak(e){af().withScope(e)}let ax=iB.n2,aT=0;function aR(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(ai(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>aR(e,t));return e.apply(this,i)}catch(e){throw aT++,setTimeout(()=>{aT--}),ak(n=>{n.addEventProcessor(e=>(t.mechanism&&(iG(e,void 0,void 0),iq(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),aS(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}ar(r,e),an(e,"__sentry_wrapped__",r);try{let t=Object.getOwnPropertyDescriptor(r,"name");t.configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}let aI="<anonymous>";function aO(e){try{if(!e||"function"!=typeof e)return aI;return e.name||aI}catch(e){return aI}}let aC=(0,iB.Rf)();function aA(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let aN=(0,iB.Rf)(),aD=(0,iB.Rf)(),aP="__sentry_xhr_v2__",aL={},aU={};function aM(e,t){aL[e]=aL[e]||[],aL[e].push(t),function(e){if(!aU[e])switch(aU[e]=!0,e){case"console":"console"in aD&&iH.forEach(function(e){e in aD.console&&at(aD.console,e,function(t){return function(...n){aj("console",{args:n,level:e}),t&&t.apply(aD.console,n)}})});break;case"dom":(function(){if(!("document"in aD))return;let e=aj.bind(null,"dom"),t=a$(e,!0);aD.document.addEventListener("click",t,!1),aD.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=aD[t]&&aD[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(at(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=a$(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),at(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let 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(e){}return e.call(this,t,n,r)}}))})})();break;case"xhr":(function(){if(!("XMLHttpRequest"in aD))return;let e=XMLHttpRequest.prototype;at(e,"open",function(e){return function(...t){let n=t[1],r=this[aP]={method:i0(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};i0(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let e=this[aP];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}aj("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?at(this,"onreadystatechange",function(e){return function(...t){return i(),e.apply(this,t)}}):this.addEventListener("readystatechange",i),at(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[aP];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),at(e,"send",function(e){return function(...t){let n=this[aP];return n&&void 0!==t[0]&&(n.body=t[0]),aj("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})})();break;case"fetch":!function(){if(!function(){if(!("fetch"in aC))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(aA(aC.fetch))return!0;let e=!1,t=aC.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=aA(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||at(aD,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:aF(t),method:aB(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:aF(t),method:aB(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return aj("fetch",{...i}),e.apply(aD,t).then(e=>(aj("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw aj("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}});break;case"history":(function(){if(!function(){let e=aN.chrome,t=e&&e.app&&e.app.runtime,n="history"in aN&&!!aN.history.pushState&&!!aN.history.replaceState;return!t&&n}())return;let e=aD.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=o,t=String(n);o=t,aj("history",{from:e,to:t})}return e.apply(this,t)}}aD.onpopstate=function(...t){let n=aD.location.href,r=o;if(o=n,aj("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},at(aD.history,"pushState",t),at(aD.history,"replaceState",t)})();break;case"error":az=aD.onerror,aD.onerror=function(e,t,n,r,i){return aj("error",{column:r,error:i,line:n,msg:e,url:t}),!!az&&!az.__SENTRY_LOADER__&&az.apply(this,arguments)},aD.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":aG=aD.onunhandledrejection,aD.onunhandledrejection=function(e){return aj("unhandledrejection",e),!aG||!!aG.__SENTRY_LOADER__||aG.apply(this,arguments)},aD.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn("unknown instrumentation type:",e);return}}(e)}function aj(e,t){if(e&&aL[e])for(let n of aL[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${aO(n)}
Error:`,t)}}function aB(e,t){return!!e&&"object"==typeof e&&!!e[t]}function aF(e){return"string"==typeof e?e:e?aB(e,"url")?e.url:e.toString?e.toString():"":""}function a$(e,t=!1){return n=>{if(!n||u===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;let r="keypress"===n.type?"input":n.type;void 0===l?(e({event:n,name:r,global:t}),u=n):function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(u,n)&&(e({event:n,name:r,global:t}),u=n),clearTimeout(l),l=aD.setTimeout(()=>{l=void 0},1e3)}}let az=null,aG=null;function aq(e,t){let n=aH(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function aY(e,t){return{exception:{values:[aq(e,t)]}}}function aH(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(aW.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}let aW=/Minified React error #\d+;/i;function aZ(e,t,r,i,a){let s;if(iX(t)&&t.error)return aY(e,t.error);if(iQ(t)||iJ(t,"DOMException")){if("stack"in t)s=aY(e,t);else{let n=t.name||(iQ(t)?"DOMError":"DOMException"),a=t.message?`${n}: ${t.message}`:n;iG(s=aV(e,a,r,i),a)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return iK(t)?aY(e,t):(i1(t)||i2(t)?iq(s=function(e,t,r,i){let a=af(),s=a.getClient(),o=s&&s.getOptions().normalizeDepth,l={exception:{values:[{type:i2(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:`Non-Error ${i?"promise rejection":"exception"} captured with keys: ${function(e,t=40){let n=Object.keys(aa(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return i9(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return i9(r,t)}}return""}(t)}`}]},extra:{__serialized__:function e(t,r=3,i=102400){let a=function(e,t=100,r=Infinity){try{return function e(t,r,i=Infinity,a=Infinity,s=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){let r=t[e];if(r===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[o,l]=s;if(null==r||["number","boolean","string"].includes(typeof r)&&!("number"==typeof r&&r!=r))return r;let u=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(i1(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${aO(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!u.startsWith("[object "))return u;if(r.__sentry_skip_normalization__)return r;let c="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===c)return u.replace("object ","");if(o(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,c-1,a,s)}catch(e){}let d=Array.isArray(r)?[]:{},h=0,p=aa(r);for(let t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(h>=a){d[t]="[MaxProperties ~]";break}let n=p[t];d[t]=e(t,n,c-1,a,s),h++}return l(r),d}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}(t,r);return~-encodeURI(JSON.stringify(a)).split(/%..|./).length>i?e(t,r-1,i):a}(t,o)}};if(r){let t=aH(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,a),{synthetic:!0}):(iG(s=aV(e,t,r,i),`${t}`,void 0),iq(s,{synthetic:!0})),s)}function aV(e,t,n,r){let i={message:t};if(r&&n){let r=aH(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}class aK{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=aK.id}__init2(){this._installFunc={onerror:aJ,onunhandledrejection:aX}}constructor(e){aK.prototype.__init.call(this),aK.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let t in e){let n=this._installFunc[t];n&&e[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.log(`Global Handler attached: ${t}`),n(),this._installFunc[t]=void 0)}}}function aJ(){aM("error",e=>{let[t,n,r]=a1();if(!t.getIntegration(aK))return;let{msg:i,url:a,line:s,column:o,error:l}=e;if(aT>0||l&&l.__sentry_own_request__)return;let u=void 0===l&&i0(i)?function(e,t,n,r){let i=iX(e)?e.message:e,a="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(a=s[1],i=s[2]);let o={exception:{values:[{type:a,value:i}]}};return aQ(o,t,n,r)}(i,a,s,o):aQ(aZ(n,l||i,void 0,r,!1),a,s,o);u.level="error",a0(t,l,u,"onerror")})}function aX(){aM("unhandledrejection",e=>{var t,n;let[r,i,a]=a1();if(!r.getIntegration(aK))return;let s=e;try{"reason"in e?s=e.reason:"detail"in e&&"reason"in e.detail&&(s=e.detail.reason)}catch(e){}if(aT>0||s&&s.__sentry_own_request__)return!0;let o=null===(t=s)||"object"!=typeof t&&"function"!=typeof t?(n=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}):aZ(i,s,void 0,a,!0);o.level="error",a0(r,s,o,"onunhandledrejection")})}function aQ(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=i0(t)&&t.length>0?t:function(){try{return i4.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:u,filename:d,function:"?",in_app:!0,lineno:c}),e}function a0(e,t,n,r){iq(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function a1(){let e=af(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}aK.__initStatic();let a2=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class a5{static __initStatic(){this.id="TryCatch"}__init(){this.name=a5.id}constructor(e){a5.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&at(ax,"setTimeout",a6),this._options.setInterval&&at(ax,"setInterval",a6),this._options.requestAnimationFrame&&at(ax,"requestAnimationFrame",a3),this._options.XMLHttpRequest&&"XMLHttpRequest"in ax&&at(XMLHttpRequest.prototype,"send",a4);let e=this._options.eventTarget;if(e){let t=Array.isArray(e)?e:a2;t.forEach(a8)}}}function a6(e){return function(...t){let n=t[0];return t[0]=aR(n,{mechanism:{data:{function:aO(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function a3(e){return function(t){return e.apply(this,[aR(t,{mechanism:{data:{function:"requestAnimationFrame",handler:aO(e)},handled:!0,type:"instrument"}})])}}function a4(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&at(n,e,function(t){let n={mechanism:{data:{function:e,handler:aO(t)},handled:!0,type:"instrument"}},r=ai(t);return r&&(n.mechanism.data.handler=aO(r)),aR(t,n)})}),e.apply(this,t)}}function a8(e){let t=ax[e]&&ax[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(at(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=aR(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:aO(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,aR(r,{mechanism:{data:{function:"addEventListener",handler:aO(r),target:e},handled:!0,type:"instrument"}}),i])}}),at(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}a5.__initStatic();let a9=["fatal","error","warning","log","info","debug"];function a7(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}class se{static __initStatic(){this.id="Breadcrumbs"}__init(){this.name=se.id}constructor(e){se.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&aM("console",st),this.options.dom&&aM("dom",(e=this.options.dom,function(t){let n;let r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{let e=t.event;n=e&&e.target?i8(e.target,{keyAttrs:r,maxStringLength:i}):i8(e,{keyAttrs:r,maxStringLength:i})}catch(e){n="<unknown>"}0!==n.length&&af().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&aM("xhr",sn),this.options.fetch&&aM("fetch",sr),this.options.history&&aM("history",si)}addSentryBreadcrumb(e){this.options.sentry&&af().addBreadcrumb({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:iz(e)},{event:e})}}function st(e){var t;for(let t=0;t<e.args.length;t++)if("ref=Ref<"===e.args[t]){e.args[t+1]="viewRef";break}let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":a9.includes(t)?t:"log",message:i7(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${i7(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}af().addBreadcrumb(n,{input:e.args,level:e.level})}function sn(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[aP];if(!t||!n||!r)return;let{method:i,url:a,status_code:s,body:o}=r,l={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};af().addBreadcrumb({category:"xhr",data:{method:i,url:a,status_code:s},type:"http"},l)}function sr(e){let{startTimestamp:t,endTimestamp:n}=e;if(!(!n||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};af().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};af().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}}function si(e){let t=e.from,n=e.to,r=a7(ax.location.href),i=a7(t),a=a7(n);i.path||(i=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),af().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}se.__initStatic();class sa{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=sa.id}constructor(e={}){sa.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){let e=af().getClient();e&&ac().push((t,n)=>{let r=af().getIntegration(sa);return r?function(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!i6(i.originalException,Error))return r;let a=function e(t,n,r,i,a=[]){if(!i6(r[i],Error)||a.length+1>=n)return a;let s=aq(t,r[i]);return e(t,n,r[i],i,[s,...a])}(e,n,i.originalException,t);return r.exception.values=[...a,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t})}}sa.__initStatic();class ss{constructor(){ss.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=ss.id}setupOnce(){ac().push(e=>{if(af().getIntegration(ss)){if(!ax.navigator&&!ax.location&&!ax.document)return e;let t=e.request&&e.request.url||ax.location&&ax.location.href,{referrer:n}=ax.document||{},{userAgent:r}=ax.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};return{...e,request:a}}return e})}}ss.__initStatic();class so{constructor(){so.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=so.id}setupOnce(e,t){let n=e=>{if(e.type)return e;let n=t().getIntegration(so);if(n){try{var r;if((r=n._previousEvent)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&su(e,t)&&sl(e,t))}(e,r)||function(e,t){let n=sc(t),r=sc(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&su(e,t)&&sl(e,t))}(e,r)))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function sl(e,t){let n=sd(e),r=sd(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let 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 su(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(e){return!1}}function sc(e){return e.exception&&e.exception.values&&e.exception.values[0]}function sd(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}function sh(e={},t=af()){if(!ax.document){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.error("Global document not defined in showReportDialog call");return}let{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());let s=ax.document.createElement("script");s.async=!0,s.src=function(e,t){let n=function(e){let t="string"==typeof e?function(e){let t=aw.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return}let[n,r,i="",a,s="",o]=t.slice(1),l="",u=o,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return aE({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}(e):aE(e);if(t&&function(e){if(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__))return!0;let{port:t,projectId:n,protocol:r}=e,i=["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(a.error(`Invalid Sentry Dsn: ${t} missing`),!0));return!i&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(a.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(a.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(a.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e);if(!n)return"";let r=`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(n)}embed/error-page/`,i=`dsn=${function(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}(n)}`;for(let e in t)if("dsn"!==e){if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${r}?${i}`}(i,e),e.onLoad&&(s.onload=e.onLoad);let o=ax.document.head||ax.document.body;o?o.appendChild(s):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.error("Not injecting report dialog. No injection point found in HTML")}so.__initStatic(),new ag,new ab,new a5,new se,new aK,new sa,new so,new ss,n(3463);let sp={componentStack:null,error:null,eventId:null};class sf extends rO.Component{__init(){this.state=sp}__init2(){this._openFallbackReportDialog=!0}constructor(e){super(e),sf.prototype.__init.call(this),sf.prototype.__init2.call(this),sf.prototype.__init3.call(this);let t=af().getClient();t&&t.on&&e.showDialog&&(this._openFallbackReportDialog=!1,t.on("afterSendEvent",t=>{t.type||t.event_id!==this._lastEventId||sh({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,{componentStack:t}){let{beforeCapture:n,onError:r,showDialog:i,dialogOptions:a}=this.props;ak(s=>{if(function(e){let t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(rO.version)&&iK(e)){let n=Error(e.message);n.name=`React ErrorBoundary ${n.name}`,n.stack=t,function(e,t){let n=new WeakMap;!function e(t,r){if(!n.has(t)){if(t.cause)return n.set(t,!0),e(t.cause,r);t.cause=r}}(e,t)}(e,n)}n&&n(s,e,t);let o=aS(e,{contexts:{react:{componentStack:t}}});r&&r(e,t,o),i&&(this._lastEventId=o,this._openFallbackReportDialog&&sh({...a,eventId:o})),this.setState({error:e,componentStack:t,eventId:o})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n)}__init3(){this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(sp)}}render(){let{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return(t="function"==typeof e?e({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,rO.isValidElement(t))?t:(e&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}var sm=n(9215),s_=n(6087),sy=n(7902),sg=n(6962),sv=n(2683),sb=n(7383);class sw extends sb.F{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||sy._,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let n=(0,s_.oE)(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(s_.ZT).catch(s_.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,s_.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r,i,a;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let s=(0,s_.G9)(),o={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};l(o);let u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(o)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};l(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=u.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(a=u.fetchOptions)?void 0:a.meta});let c=e=>{if((0,sv.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,sv.DV)(e)){var t,n,r,i;null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,sv.Mz)({fn:u.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,n,r,i;if(void 0===e){c(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,sv.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if((0,sv.DV)(i)&&i.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),sg.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var sE=n(1957);class sS extends sE.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;let i=t.queryKey,a=null!=(r=t.queryHash)?r:(0,s_.Rm)(i,t),s=this.get(a);return s||(s=new sw({cache:this,logger:e.getLogger(),queryKey:i,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){sg.V.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[n]=(0,s_.I6)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>(0,s_._x)(n,e))}findAll(e,t){let[n]=(0,s_.I6)(e,t);return Object.keys(n).length>0?this.queries.filter(e=>(0,s_._x)(n,e)):this.queries}notify(e){sg.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){sg.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){sg.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}var sk=n(6194);class sx extends sE.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){let r=new sk.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){sg.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>(0,s_.X7)(e,t))}findAll(e){return this.mutations.filter(t=>(0,s_.X7)(e,t))}notify(e){sg.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return sg.V.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(s_.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var sT=n(527),sR=n(5063);function sI(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}class sO{constructor(e={}){this.queryCache=e.queryCache||new sS,this.mutationCache=e.mutationCache||new sx,this.logger=e.logger||sy._,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=sT.j.subscribe(()=>{sT.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=sR.N.subscribe(()=>{sR.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[n]=(0,s_.I6)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){let r=(0,s_._v)(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let n=t.data;return[e,n]})}setQueryData(e,t,n){let r=this.queryCache.find(e),i=null==r?void 0:r.state.data,a=(0,s_.SE)(t,i);if(void 0===a)return;let s=(0,s_._v)(e),o=this.defaultQueryOptions(s);return this.queryCache.build(this,o).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return sg.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){let[n]=(0,s_.I6)(e,t),r=this.queryCache;sg.V.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){let[r,i]=(0,s_.I6)(e,t,n),a=this.queryCache,s={type:"active",...r};return sg.V.batch(()=>(a.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(s,i)))}cancelQueries(e,t,n){let[r,i={}]=(0,s_.I6)(e,t,n);void 0===i.revert&&(i.revert=!0);let a=sg.V.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(i)));return Promise.all(a).then(s_.ZT).catch(s_.ZT)}invalidateQueries(e,t,n){let[r,i]=(0,s_.I6)(e,t,n);return sg.V.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();let n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)})}refetchQueries(e,t,n){let[r,i]=(0,s_.I6)(e,t,n),a=sg.V.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})})),s=Promise.all(a).then(s_.ZT);return null!=i&&i.throwOnError||(s=s.catch(s_.ZT)),s}fetchQuery(e,t,n){let r=(0,s_._v)(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);let a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(s_.ZT).catch(s_.ZT)}fetchInfiniteQuery(e,t,n){let r=(0,s_._v)(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,a,s,o;let l;let u=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)?void 0:null==(i=r.meta)?void 0:i.fetchMore,d=null==c?void 0:c.pageParam,h=(null==c?void 0:c.direction)==="forward",p=(null==c?void 0:c.direction)==="backward",f=(null==(a=e.state.data)?void 0:a.pages)||[],m=(null==(s=e.state.data)?void 0:s.pageParams)||[],_=m,y=!1,g=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?y=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{y=!0}),e.signal}})},v=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),b=(e,t,n,r)=>(_=r?[t,..._]:[..._,t],r?[n,...e]:[...e,n]),w=(t,n,r,i)=>{if(y)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);let a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};g(a);let s=v(a),o=Promise.resolve(s).then(e=>b(t,r,e,i));return o};if(f.length){if(h){let t=void 0!==d,n=t?d:sI(e.options,f);l=w(f,t,n)}else if(p){let t=void 0!==d,n=t?d:null==(o=e.options).getPreviousPageParam?void 0:o.getPreviousPageParam(f[0],f);l=w(f,t,n,!0)}else{_=[];let t=void 0===e.options.getNextPageParam,n=!u||!f[0]||u(f[0],0,f);l=n?w([],t,m[0]):Promise.resolve(b([],m[0],f[0]));for(let n=1;n<f.length;n++)l=l.then(r=>{let i=!u||!f[n]||u(f[n],n,f);if(i){let i=t?m[n]:sI(e.options,r);return w(r,t,i)}return Promise.resolve(b(r,m[n],f[n]))})}}else l=w([]);let E=l.then(e=>({pages:e,pageParams:_}));return E}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(s_.ZT).catch(s_.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let n=this.queryDefaults.find(t=>(0,s_.yF)(e)===(0,s_.yF)(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>(0,s_.to)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let n=this.mutationDefaults.find(t=>(0,s_.yF)(e)===(0,s_.yF)(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>(0,s_.to)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,s_.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var sC=n(330);let sA=function(){return null};var sN=n(3848),sD=n(3534),sP=n.n(sD);n(324),n(1374),n(3982);let sL=new iU({apiHost:I.NEXT_PUBLIC_GROWTHBOOK_API_HOST,clientKey:I.NEXT_PUBLIC_GROWTHBOOK_CLIENT_KEY,enableDevMode:!0}),sU=new sO,sM=(0,g.jsx)(()=>{let{t:e}=(0,S.T_)();return(0,g.jsx)("div",{className:"flex items-center justify-center h-screen w-screen",children:(0,g.jsx)("div",{className:"text-2xl text-center",children:e("common.error.generic")})})},{});var sj=e=>{var t;let{Component:n,pageProps:r}=e,i=(0,rR.useRouter)(),{locale:a}=i,s=null!==(t=n.getLayout)&&void 0!==t?t:e=>e;return rO.useEffect(()=>{var e;let t=(null==a?void 0:a.includes("ar"))?"rtl":"ltr";document&&(null===(e=document.querySelector("body"))||void 0===e||e.setAttribute("dir",t))},[a]),rO.useEffect(()=>((0,sm.dp)(),rI().events.on("routeChangeComplete",sm.Kq),sL.loadFeatures({autoRefresh:!0}),()=>{rI().events.off("routeChangeComplete",sm.Kq)}),[]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(E(),{id:"c15cef13a89c53f2",dynamic:[b().style.fontFamily],children:"html{font-family:".concat(b().style.fontFamily,"}")}),(0,g.jsx)(sP(),{id:"segment-script",dangerouslySetInnerHTML:{__html:'!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="6JhqRnhLCcMenKt34Lk5MvS38NFzEuSj";;analytics.SNIPPET_VERSION="4.15.3";\n          }}();\n          analytics.load("'.concat(I.NEXT_PUBLIC_SEGMENT_ANALYTICS_WRITE_KEY,'");')}}),(0,g.jsx)(ij,{growthbook:sL,children:(0,g.jsx)(sN.SessionProvider,{session:r.session,children:(0,g.jsxs)(sC.aH,{client:sU,children:[(0,g.jsx)(rC,{children:(0,g.jsx)(sf,{fallback:sM,showDialog:!0,children:s((0,g.jsx)(n,{...r,className:E().dynamic([["c15cef13a89c53f2",[b().style.fontFamily]]])+" "+(r&&null!=r.className&&r.className||"")}))})}),(0,g.jsx)(sA,{initialIsOpen:!1})]})})})]})}},9215:function(e,t,n){"use strict";n.d(t,{j:function(){return d},Kq:function(){return c},dp:function(){return u}});var r=n(3749),i=n(5632),a=n.n(i);let s=["cta-ref"],o=e=>{let t=e.split("?")[1],n=new URLSearchParams(t),r=Object.fromEntries(n);return function(e,t){var n={};"string"==typeof t&&(t=[].slice.call(arguments,1));for(var r=t.length,i=0;i<r;i++){var a=t[i];a in e&&(n[a]=e[a])}return n}(r,[...s])},l=(e,t)=>{let n=o(e),r=e;return t&&(r=r.replace("".concat(t),"")),""===(r=r.replace(/^\/+/,"").split(/[?#]/)[0])&&(r="landing"),{path:r,parameters:n}},u=()=>{let e=a().locale||r.ZW,{path:t,parameters:n}=l(a().pathname);analytics.page(t,{locale:e,...n})},c=e=>{let t=a().locale||r.ZW,{path:n,parameters:i}=l(e,t);analytics.page(n,{locale:t,...i})},d=(e,t)=>{let{event:n,properties:r}=e;analytics.track(n,{...t,...r})}},3749:function(e,t,n){"use strict";n.d(t,{ZW:function(){return b},lE:function(){return w},md:function(){return v},tY:function(){return R},cc:function(){return x},T_:function(){return I}});var r=n(2322);let i=["ar","cy","da","de","en","es","fr","hi","ja","ko","nl","pt","sv","tr","zh"],a=[{code:"ar-sa",name:"العربية"},{code:"cy-gb",name:"Cymraeg (Y Deyrnas Unedig)"},{code:"da-dk",name:"Dansk (danmark)"},{code:"de-de",name:"Deutsch (Deutschland)"},{code:"en-ca",name:"English (Canada)"},{code:"en-gb",name:"English (United Kingdom)"},{code:"en-us",name:"English (United States)"},{code:"es-es",name:"Espa\xf1ol (Espa\xf1a)"},{code:"es-mx",name:"Espa\xf1ol (Latinoam\xe9rica)"},{code:"fr-ca",name:"Fran\xe7ais (Canada)"},{code:"fr-fr",name:"Fran\xe7ais (France)"},{code:"fr-on",name:"Fran\xe7ais (Ontario)"},{code:"hi-in",name:"हिन्दी Hindi (India)"},{code:"ja-jp",name:"日本語 (日本)"},{code:"ko-kr",name:"한국어 (대한민국)"},{code:"nl-nl",name:"Nederlands (Nederland)"},{code:"pt-br",name:"Portugu\xeas (Brasil)"},{code:"sv-se",name:"Svenska (Sverige)"},{code:"tr-tr",name:"T\xfcrk\xe7e (T\xfcrkiye)"},{code:"zh-cn",name:"中文(中华人民共和国)"},{code:"zh-tw",name:"中文(台灣)"}].map(e=>e.code);function s(e){if(null==e)return null;if(a.indexOf(e)>-1)return e;let t=e.split("-");return t.length<2?i.indexOf(e)>-1?e:null:i.indexOf(t[0])>-1?t[0]:null}class o{get fallbackLanguage(){return this._fallbackLanguage}set fallbackLanguage(e){let t=this._normalize(e);t!==this._fallbackLanguage&&(this._fallbackLanguage=t,this._listeners.forEach(e=>e()))}get language(){return this._language}set language(e){let t=this._normalize(e);t!==this._language&&(this._language=t,this._listeners.forEach(e=>e()))}get overrides(){return this._overrides}set overrides(e){e.date&&(e.date.calendar&&delete e.date.calendar.dayPeriods,e.date.formats&&delete e.date.formats.timeFormats),this._overrides=e,this._listeners.forEach(e=>e())}addChangeListener(e){this._listeners.push(e)}removeChangeListener(e){let t=this._listeners.indexOf(e);t<0||this._listeners.splice(t,1)}reset(){this._language=this._languageInitial,this._fallbackLanguage=null,this.overrides={},this.timezone={name:"",identifier:""},this._listeners=[],this.oslo={batch:null,collection:null,version:null}}sync(){this.language=this._htmlElem.getAttribute("lang"),this.fallbackLanguage=this._htmlElem.getAttribute("data-lang-default"),this.overrides=this._tryParseHtmlElemAttr("data-intl-overrides",{}),this.timezone=this._tryParseHtmlElemAttr("data-timezone",{name:"",identifier:""}),this.oslo=this._tryParseHtmlElemAttr("data-oslo",{batch:null,collection:null,version:null})}_handleObserverChange(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];"lang"===r.attributeName?this.language=this._htmlElem.getAttribute("lang"):"data-lang-default"===r.attributeName?this.fallbackLanguage=this._htmlElem.getAttribute("data-lang-default"):"data-intl-overrides"===r.attributeName?this.overrides=this._tryParseHtmlElemAttr("data-intl-overrides",{}):"data-timezone"===r.attributeName?(this.timezone=this._tryParseHtmlElemAttr("data-timezone",{name:"",identifier:""}),t=!0):"data-oslo"===r.attributeName&&(this.oslo=this._tryParseHtmlElemAttr("data-oslo",{batch:null,collection:null,version:null}),t=!0)}t&&this._listeners.forEach(e=>e())}_normalize(e){if(null==e)return null;e=e.trim().toLowerCase();let t=e.split("-");return t.length<2?e:"".concat(t[0],"-").concat(t[t.length-1])}_tryParseHtmlElemAttr(e,t){if(this._htmlElem.hasAttribute(e))try{return JSON.parse(this._htmlElem.getAttribute(e))}catch(e){}return t}constructor(){this._htmlElem=window.document.getElementsByTagName("html")[0],this._listeners=[],this._overrides={},this._observer=new MutationObserver(this._handleObserverChange.bind(this)),this._observer.observe(this._htmlElem,{attributes:!0}),this.sync(),this._languageInitial=this._language}}let l=null;function u(){return null===l&&(l=new o),l}function c(e){if(null==e)return 0;let t=function(){let e=function(){let e=u(),t=s(e.language)||s(e.fallbackLanguage)||"en";return t}(),t=e.split("-"),n=t[0],r="-{number}";"ar"===n&&(r="{number}-");let i="{number} %",a="-{number} %";switch(n){case"es":case"hi":case"ja":case"pt":case"zh":i="{number}%",a="-{number}%";break;case"tr":i="%{number}",a="-%{number}"}let o=".",l=",";switch(n){case"da":case"de":case"es":case"nl":case"pt":case"tr":o=",",l=".";break;case"fr":case"sv":o=",",l=" "}"es-mx"===e&&(o=".",l=",");let c={groupSize:3,patterns:{decimal:{positivePattern:"{number}",negativePattern:r},percent:{positivePattern:i,negativePattern:a}},symbols:{decimal:o,group:l,negative:"-",percent:"%"}},d=u();return d.overrides.number&&function e(t,n){if(null!=n&&"object"==typeof n)for(let r in n)t.hasOwnProperty(r)&&("object"==typeof n[r]&&"object"==typeof t[r]?e(t[r],n[r]):t[r]=n[r])}(c,d.overrides.number),c}();if(""===(e=e.replace(RegExp("\\s|[".concat(t.symbols.group,"]"),"g"),"")))return 0;let n="",r=!1,i=!1,a=!1;for(let s=0;s<e.length;s++){let o=e.charAt(s);switch(o){case t.symbols.decimal:n+=i?"":".",i=!0;break;case t.symbols.negative:case"(":case")":r=!0;break;default:!isNaN(o=parseInt(o))&&o>=0&&o<=9?n+=o:a=!0}if(a)break}return 0===n.length?NaN:(n=parseFloat(n),r&&(n*=-1),n)}var d=n(1344),h=n.n(d),p=n(2512),f=n.n(p),m=n(2784);n(9251);var _=n(5372);let y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return Object.entries(e).forEach(e=>{let[r,i]=e,a=t.concat([r]);"string"==typeof i?n[a.join(".")]=i:Object.assign(n,y(i,a))}),n},g="ar-EG",v="en-EG",b=g,w=[g,v,"en-US"],E={"ar-EG":"EGP","en-EG":"EGP","en-US":"USD"},S={"ar-EG":"EGP","en-EG":"EGP","en-US":"$"},k=e=>n(1539)("./".concat(e,".json")),x=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-EG",{default:t}=await k(e),n={};return h()(n,_,t),y(n)},T=(0,m.createContext)(void 0),R=e=>{let{children:t,locale:n,strings:i}=e,a=(0,m.useMemo)(()=>new(f())({phrases:i,interpolation:{prefix:"{{",suffix:"}}"}}),[i]);return(0,r.jsx)(T.Provider,{value:{locale:n,polyglot:a},children:t})},I=()=>{let e=(0,m.useContext)(T);if(!e)throw Error("Strings have not been loaded");let{locale:t,polyglot:n}=e,r="en-US"===t?"en-US":"en-EG",i=new Intl.NumberFormat(r),a=new Intl.NumberFormat(r,{style:"currency",currency:E[t],currencyDisplay:"code",maximumFractionDigits:0,minimumFractionDigits:0}),s=new Intl.NumberFormat(r,{style:"percent"});return{t:n.t.bind(n),locale:t,currency:E[t],currencySymbol:S[t],formatNumber:i.format.bind(i),formatCurrency:a.format.bind(a),formatPercent:s.format.bind(s),parseNumber:c}}},2095:function(e,t,n){"use strict";let r,i,a,s,o,l,u,c,d,h,p,f,m,_;let y=Object.prototype.toString;function g(e){switch(y.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return I(e,Error)}}function v(e,t){return y.call(e)===`[object ${t}]`}function b(e){return v(e,"ErrorEvent")}function w(e){return v(e,"DOMError")}function E(e){return v(e,"String")}function S(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function k(e){return v(e,"Object")}function x(e){return"undefined"!=typeof Event&&I(e,Event)}function T(e){return!!(e&&e.then&&"function"==typeof e.then)}function R(e){return"number"==typeof e&&e!=e}function I(e,t){try{return e instanceof t}catch(e){return!1}}function O(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}var C,A,N,D,P,L,U,M,j,B,F,$,z,G,q,Y,H,W,Z,V=n(4142);let K=(0,V.Rf)();function J(e,t={}){try{let n,r=e,i=[],a=0,s=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&a++<5&&(n=function(e,t){let n,r,i,a,s;let o=[];if(!e||!e.tagName)return"";o.push(e.tagName.toLowerCase());let l=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(l&&l.length)l.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&o.push(`#${e.id}`),(n=e.className)&&E(n))for(s=0,r=n.split(/\s+/);s<r.length;s++)o.push(`.${r[s]}`);let u=["aria-label","type","name","title","alt"];for(s=0;s<u.length;s++)i=u[s],(a=e.getAttribute(i))&&o.push(`[${i}="${a}"]`);return o.join("")}(r,o),"html"!==n&&(!(a>1)||!(s+3*i.length+n.length>=l)));)i.push(n),s+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function X(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function Q(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{O(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ee(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!E(e)&&(v(t,"RegExp")?t.test(e):!!E(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function et(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);if("function"==typeof i)try{er(i,r)}catch(e){}e[t]=i}function en(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function er(e,t){let n=t.prototype||{};e.prototype=t.prototype=n,en(e,"__sentry_original__",t)}function ei(e){return e.__sentry_original__}function ea(e){if(g(e))return{message:e.message,name:e.name,stack:e.stack,...eo(e)};if(!x(e))return e;{let t={type:e.type,target:es(e.target),currentTarget:es(e.currentTarget),...eo(e)};return"undefined"!=typeof CustomEvent&&I(e,CustomEvent)&&(t.detail=e.detail),t}}function es(e){try{return"undefined"!=typeof Element&&I(e,Element)?J(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function eo(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function el(e){let t=new Map;return function e(t,n){if(k(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.keys(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,t)}function eu(){let e=V.n2,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function ec(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ed(e){let{message:t,event_id:n}=e;if(t)return t;let r=ec(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function eh(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function ep(e,t){let n=ec(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function ef(e){if(e&&e.__sentry_captured__)return!0;try{en(e,"__sentry_captured__",!0)}catch(e){}return!1}function em(e){return Array.isArray(e)?e:[e]}var e_=n(17);let ey=["debug","info","warn","error","log","assert","trace"],eg={};function ev(e){if(!("console"in V.n2))return e();let t=V.n2.console,n={},r=Object.keys(eg);r.forEach(e=>{let r=eg[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let eb=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?ey.forEach(n=>{t[n]=(...t)=>{e&&ev(()=>{V.n2.console[n](`Sentry Logger [${n}]:`,...t)})}}):ey.forEach(e=>{t[e]=()=>void 0}),t}(),ew="production";function eE(e){return new ek(t=>{t(e)})}function eS(e){return new ek((t,n)=>{n(e)})}(C=F||(F={}))[C.PENDING=0]="PENDING",C[C.RESOLVED=1]="RESOLVED",C[C.REJECTED=2]="REJECTED";class ek{constructor(e){ek.prototype.__init.call(this),ek.prototype.__init2.call(this),ek.prototype.__init3.call(this),ek.prototype.__init4.call(this),this._state=F.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ek((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 ek((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(F.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(F.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===F.PENDING){if(T(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===F.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===F.RESOLVED&&e[1](this._value),this._state===F.REJECTED&&e[2](this._value),e[0]=!0)})}}}function ex(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,e_.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:eu()),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{let 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)}class eT{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=eO()}static clone(e){let t=new eT;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&ex(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof eT?t:this}return e instanceof eT?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):k(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=eO(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,e_.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};let n=t.name;n&&(e.tags={transaction:n,...e.tags})}}this._applyFingerprint(e);let n=this._getBreadcrumbs(),r=[...e.breadcrumbs||[],...n];return e.breadcrumbs=r.length>0?r:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},this._notifyEventProcessors([...eR(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyEventProcessors(e,t,n,r=0){return new ek((i,a)=>{let s=e[r];if(null===t||"function"!=typeof s)i(t);else{let o=s({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===o&&eb.log(`Event processor "${s.id}" dropped event`),T(o)?o.then(t=>this._notifyEventProcessors(e,t,n,r+1).then(i)).then(null,a):this._notifyEventProcessors(e,o,n,r+1).then(i).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?em(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function eR(){return(0,V.YO)("globalEventProcessors",()=>[])}function eI(e){eR().push(e)}function eO(){return{traceId:eu(),spanId:eu().substring(16)}}class eC{constructor(e,t=new eT,n=4){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){let t=this.getStackTop();t.client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=eT.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let n=this._lastEventId=t&&t.event_id?t.event_id:eu(),r=Error("Sentry syntheticException");return this._withClient((i,a)=>{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},a)}),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:eu(),i=Error(e);return this._withClient((a,s)=>{a.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},s)}),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:eu();return e.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=r.getOptions&&r.getOptions()||{};if(a<=0)return;let s=(0,e_.yW)(),o={timestamp:s,...e},l=i?ev(()=>i(o,t)):o;null!==l&&(r.emit&&r.emit("beforeAddBreadcrumb",l,t),n.addBreadcrumb(l,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=eN(this);try{e(this)}finally{eN(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){let e=this.getClient();e?console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop(),t=e.scope,n=t.getSession();if(n){var r;let e;e={},r?e={status:r}:"ok"===n.status&&(e={status:"exited"}),ex(n,e)}this._sendSessionUpdate(),t.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=ew}=n&&n.getOptions()||{},{userAgent:a}=V.n2.navigator||{},s=function(e){let t=(0,e_.ph)(),n={sid:eu(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>el({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&ex(n,e),n}({release:r,environment:i,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&ex(o,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=eA(),r=n.__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function eA(){return V.n2.__SENTRY__=V.n2.__SENTRY__||{extensions:{},hub:void 0},V.n2}function eN(e){let t=eA(),n=eP(t);return eL(t,e),n}function eD(){let e=eA();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=eA()){return(!(e&&e.__SENTRY__&&e.__SENTRY__.hub)||eP(e).isOlderThan(4))&&eL(e,new eC),eP(e)}(e)}function eP(e){return(0,V.YO)("hub",()=>new eC,e)}function eL(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function eU(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=eD().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}let eM=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function ej(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function eB(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}class eF{static __initStatic(){this.id="RewriteFrames"}constructor(e={}){eF.prototype.__init.call(this),this.name=eF.id,e.root&&(this._root=e.root),this._prefix=e.prefix||"app:///",e.iteratee&&(this._iteratee=e.iteratee)}setupOnce(e,t){e(e=>{let n=t().getIntegration(eF);return n?n.process(e):e})}process(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=this._processExceptionsEvent(t)),t}__init(){this._iteratee=e=>{if(!e.filename)return e;let t=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),n=/^\//.test(e.filename);if(t||n){var r;let n;let i=t?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,a=this._root?function(e,t){e=ej(e).slice(1),t=ej(t).slice(1);let n=eB(e.split("/")),r=eB(t.split("/")),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let s=[];for(let e=a;e<n.length;e++)s.push("..");return(s=s.concat(r.slice(a))).join("/")}(this._root,i):(n=function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=eM.exec(t);return n?n.slice(1):[]}(i)[2],r&&n.slice(-1*r.length)===r&&(n=n.slice(0,n.length-r.length)),n);e.filename=`${this._prefix}${a}`}return e}}_processExceptionsEvent(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:this._processStacktrace(e.stacktrace)}}))}}}catch(t){return e}}_processStacktrace(e){return{...e,frames:e&&e.frames&&e.frames.map(e=>this._iteratee(e))}}}eF.__initStatic();let e$="7.69.0",ez=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],eG=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class eq{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=eq.id,this._options=e}setupOnce(e,t){let n=e=>{let n=t();if(n){let t=n.getIntegration(eq);if(t){var r;let i=n.getClient(),a=i?i.getOptions():{},s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ez],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:eG],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,a);return(s.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Event dropped due to being internal Sentry Error.
Event: ${ed(e)}`),0):(r=s.ignoreErrors,!e.type&&r&&r.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&0===n.length&&eb.error(`Could not extract message for event ${ed(e)}`),n})(e).some(e=>ee(e,r)))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${ed(e)}`),0):!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&ee(n,t)}(e,s.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=eY(e);return!!n&&ee(n,t)}(e,s.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=eY(e);return!n||ee(n,t)}(e,s.allowUrls)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${ed(e)}.
Url: ${eY(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${ed(e)}.
Url: ${eY(e)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${ed(e)}`),0))?e:null}}return e};n.id=this.name,e(n)}}function eY(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error(`Cannot extract url for event ${ed(e)}`),null}}eq.__initStatic();class eH{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=eH.id}setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=ei(this)||this;return r.apply(t,e)}}catch(e){}}}eH.__initStatic();let eW=[];function eZ(e,t,n){if(n[t.name]=t,-1===eW.indexOf(t.name)&&(t.setupOnce(eI,eD),eW.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`Integration installed: ${t.name}`)}let eV=/\(error: (.*)\)/,eK=/captureMessage|captureException/;function eJ(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let r=[],i=e.split("\n");for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let a=eV.test(n)?n.replace(eV,"$1"):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),eK.test(t[t.length-1].function||"")&&(t.pop(),eK.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"}))}(r)}}let eX="<anonymous>";function eQ(e){try{if(!e||"function"!=typeof e)return eX;return e.name||eX}catch(e){return eX}}let e0=(0,V.Rf)();function e1(){if(!("fetch"in e0))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function e2(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let e5=(0,V.Rf)(),e6=(0,V.Rf)(),e3="__sentry_xhr_v2__",e4={},e8={};function e9(e,t){e4[e]=e4[e]||[],e4[e].push(t),function(e){if(!e8[e])switch(e8[e]=!0,e){case"console":"console"in V.n2&&ey.forEach(function(e){e in V.n2.console&&et(V.n2.console,e,function(t){return eg[e]=t,function(...t){e7("console",{args:t,level:e});let n=eg[e];n&&n.apply(V.n2.console,t)}})});break;case"dom":(function(){if(!e6.document)return;let e=e7.bind(null,"dom"),t=tn(e,!0);e6.document.addEventListener("click",t,!1),e6.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=e6[t]&&e6[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(et(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=tn(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}}),et(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let 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(e){}return e.call(this,t,n,r)}}))})})();break;case"xhr":(function(){if(!e6.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;et(e,"open",function(e){return function(...t){let n=t[1],r=this[e3]={method:E(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};E(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let e=this[e3];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}e7("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?et(this,"onreadystatechange",function(e){return function(...t){return i(),e.apply(this,t)}}):this.addEventListener("readystatechange",i),et(this,"setRequestHeader",function(e){return function(...t){let[n,r]=t,i=this[e3];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}}),e.apply(this,t)}}),et(e,"send",function(e){return function(...t){let n=this[e3];return n&&void 0!==t[0]&&(n.body=t[0]),e7("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}})})();break;case"fetch":!function(){if(!e1())return!1;if(e2(e0.fetch))return!0;let e=!1,t=e0.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=e2(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||et(V.n2,"fetch",function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:tt(t),method:te(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:tt(t),method:te(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return e7("fetch",{...i}),e.apply(V.n2,t).then(e=>(e7("fetch",{...i,endTimestamp:Date.now(),response:e}),e),e=>{throw e7("fetch",{...i,endTimestamp:Date.now(),error:e}),e})}});break;case"history":(function(){if(!function(){let e=e5.chrome,t=e&&e.app&&e.app.runtime,n="history"in e5&&!!e5.history.pushState&&!!e5.history.replaceState;return!t&&n}())return;let e=e6.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=i,t=String(n);i=t,e7("history",{from:e,to:t})}return e.apply(this,t)}}e6.onpopstate=function(...t){let n=e6.location.href,r=i;if(i=n,e7("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},et(e6.history,"pushState",t),et(e6.history,"replaceState",t)})();break;case"error":tr=e6.onerror,e6.onerror=function(e,t,n,r,i){return e7("error",{column:r,error:i,line:n,msg:e,url:t}),!!tr&&!tr.__SENTRY_LOADER__&&tr.apply(this,arguments)},e6.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":ti=e6.onunhandledrejection,e6.onunhandledrejection=function(e){return e7("unhandledrejection",e),!ti||!!ti.__SENTRY_LOADER__||ti.apply(this,arguments)},e6.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("unknown instrumentation type:",e);return}}(e)}function e7(e,t){if(e&&e4[e])for(let n of e4[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${eQ(n)}
Error:`,t)}}function te(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tt(e){return"string"==typeof e?e:e?te(e,"url")?e.url:e.toString?e.toString():"":""}function tn(e,t=!1){return n=>{if(!n||s===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;let r="keypress"===n.type?"input":n.type;void 0===a?(e({event:n,name:r,global:t}),s=n):function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(s,n)&&(e({event:n,name:r,global:t}),s=n),clearTimeout(a),a=e6.setTimeout(()=>{a=void 0},1e3)}}let tr=null,ti=null,ta=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ts(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${s}`}function to(e){let t=ta.exec(e);if(!t){console.error(`Invalid Sentry Dsn: ${e}`);return}let[n,r,i="",a,s="",o]=t.slice(1),l="",u=o,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return tl({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function tl(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function tu(e,t=100,r=Infinity){try{return function e(t,r,i=Infinity,a=Infinity,s=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){let r=t[e];if(r===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[o,l]=s;if(null==r||["number","boolean","string"].includes(typeof r)&&!R(r))return r;let u=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(O(t))return"[VueViewModel]";if(k(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${eQ(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!u.startsWith("[object "))return u;if(r.__sentry_skip_normalization__)return r;let c="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===c)return u.replace("object ","");if(o(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,c-1,a,s)}catch(e){}let d=Array.isArray(r)?[]:{},h=0,p=ea(r);for(let t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(h>=a){d[t]="[MaxProperties ~]";break}let n=p[t];d[t]=e(t,n,c-1,a,s),h++}return l(r),d}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function tc(e,t=[]){return[e,t]}function td(e,t){let n=e[1];for(let e of n){let n=e[0].type,r=t(e,n);if(r)return!0}return!1}function th(e,t){let n=t||new TextEncoder;return n.encode(e)}let tp={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function tf(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function tm(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&{dsn:ts(r)},...i&&{trace:el({...i})}}}class t_ extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function ty(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=el({environment:r.environment||ew,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function tg(e,t,n,r){let{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,s={...t,event_id:t.event_id||n.event_id||eu(),timestamp:t.timestamp||(0,e_.yW)()},o=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:ew),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=X(e.message,a));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=X(s.value,a));let o=e.request;o&&o.url&&(o.url=X(o.url,a))})(s,e),o.length>0&&(s.sdk=s.sdk||{},s.sdk.integrations=[...s.sdk.integrations||[],...o]),void 0===t.type&&function(e,t){let n;let r=V.n2._sentryDebugIds;if(!r)return;let i=tv.get(t);i?n=i:(n=new Map,tv.set(t,n));let a=Object.keys(r).reduce((e,i)=>{let a;let s=n.get(i);s?a=s:(a=t(i),n.set(i,a));for(let t=a.length-1;t>=0;t--){let n=a[t];if(n.filename){e[n.filename]=r[i];break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=a[e.filename])})})}catch(e){}}(s,e.stackParser);let l=r;n.captureContext&&(l=eT.clone(l).update(n.captureContext));let u=eE(s);if(l){if(l.getAttachments){let e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}u=l.applyToEvent(s,n)}return u.then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})})}(e),"number"==typeof i&&i>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:tu(e.data,t,n)}}))},...e.user&&{user:tu(e.user,t,n)},...e.contexts&&{contexts:tu(e.contexts,t,n)},...e.extra&&{extra:tu(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=tu(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>(e.data&&(e.data=tu(e.data,t,n)),e))),r}(e,i,a):e)}let tv=new WeakMap,tb="Not capturing exception because it's already been captured.";class tw{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},e.dsn?this._dsn=function(e){let t="string"==typeof e?to(e):tl(e);if(t&&function(e){if(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__))return!0;let{port:t,projectId:n,protocol:r}=e,i=["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(eb.error(`Invalid Sentry Dsn: ${t} missing`),!0));return!i&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(eb.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(eb.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(eb.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("No DSN provided, client will not do anything."),this._dsn){let t=function(e,t={}){var n;let r="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/?${Object.keys(n={sentry_key:e.publicKey,sentry_version:"7",...i&&{sentry_client:`${i.name}/${i.version}`}}).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`).join("&")}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(ef(e)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(tb);return}let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then(e=>this._captureEvent(e,t,n)).then(e=>{r=e})),r}captureMessage(e,t,n,r){let i=n&&n.event_id,a=S(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(a.then(e=>this._captureEvent(e,n,r)).then(e=>{i=e})),i}captureEvent(e,t,n){if(t&&t.originalException&&ef(t.originalException)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(tb);return}let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then(e=>{r=e})),r}captureSession(e){if(!this._isEnabled()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("SDK not enabled, will not capture session.");return}"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ex(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e)):eE(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,e))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&eZ(e,t,n)}),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){eZ(this,e,this._integrations)}sendEvent(e,t={}){if(this.emit("beforeSendEvent",e,t),this._dsn){let n=function(e,t,n,r){var i;let a=tf(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let o=tm(e,a,r,t);delete e.sdkProcessingMetadata;let l=[{type:s},e];return tc(o,[l])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e,t){let n="string"==typeof e.data?th(e.data,t):e.data;return[el({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}}sendSession(e){if(this._dsn){let t=function(e,t,n,r){let i=tf(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:ts(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return tc(a,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach(e=>e(...t))}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let a="ok"===e.status,s=a&&0===e.errors||a&&n;s&&(ex(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ek(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),tg(r,e,t,n).then(e=>{if(null===e)return e;let{propagationContext:t}=e.sdkProcessingMetadata||{},r=e.contexts&&e.contexts.trace;if(!r&&t){let{traceId:r,spanId:i,parentSpanId:a,dsc:s}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:a},...e.contexts};let o=s||ty(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&("log"===e.logLevel?eb.log(e.message):eb.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return eS(new t_("SDK not enabled, will not capture event.","log"));let a=tS(e),s=tE(e),o=e.type||"error",l=`before send for type \`${o}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),eS(new t_(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new t_("An event processor returned `null`, will not send event.","log");let i=t.data&&!0===t.data.__sentry__;if(i)return n;let a=function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return tE(t)&&r?r(t,n):tS(t)&&i?i(t,n):t}(r,n,t);return function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(T(e))return e.then(e=>{if(!k(e)&&null!==e)throw new t_(n);return e},e=>{throw new t_(`${t} rejected with ${e}`)});if(!k(e)&&null!==e)throw new t_(n);return e}(a,l)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new t_(`${l} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!a&&i&&this._updateSessionFromEvent(i,r);let s=r.transaction_info;return a&&s&&r.transaction!==e.transaction&&(r.transaction_info={...s,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof t_)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new t_(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("Error while sending event:",e)});("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map(t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}})}}function tE(e){return void 0===e.type}function tS(e){return"transaction"===e.type}var tk=n(6126);function tx(e,t){let n=tR(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tT(e,t){return{exception:{values:[tx(e,t)]}}}function tR(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(tI.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}let tI=/Minified React error #\d+;/i;function tO(e,t,n,r,i){let a;if(b(t)&&t.error)return tT(e,t.error);if(w(t)||v(t,"DOMException")){if("stack"in t)a=tT(e,t);else{let i=t.name||(w(t)?"DOMError":"DOMException"),s=t.message?`${i}: ${t.message}`:i;eh(a=tC(e,s,n,r),s)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return g(t)?tT(e,t):(k(t)||x(t)?ep(a=function(e,t,n,r){let i=eD(),a=i.getClient(),s=a&&a.getOptions().normalizeDepth,o={exception:{values:[{type:x(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(ea(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return X(n[0],t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return X(r,t)}}return""}(e),r=t?"promise rejection":"exception";if(b(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(x(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:{__serialized__:function e(t,n=3,r=102400){let i=tu(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}(t,s)}};if(n){let t=tR(e,n);t.length&&(o.exception.values[0].stacktrace={frames:t})}return o}(e,t,n,i),{synthetic:!0}):(eh(a=tC(e,t,n,r),`${t}`,void 0),ep(a,{synthetic:!0})),a)}function tC(e,t,n,r){let i={message:t};if(r&&n){let r=tR(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}function tA(e,t){return eD().captureException(e,{captureContext:t})}let tN=V.n2,tD=0;function tP(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(ei(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>tP(e,t));return e.apply(this,i)}catch(e){throw tD++,setTimeout(()=>{tD--}),eD().withScope(n=>{n.addEventProcessor(e=>(t.mechanism&&(eh(e,void 0,void 0),ep(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),tA(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}er(r,e),en(e,"__sentry_wrapped__",r);try{let t=Object.getOwnPropertyDescriptor(r,"name");t.configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class tL extends tw{constructor(e){let t=tN.SENTRY_SDK_SOURCE||(0,tk.S)();e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:e$}],version:e$},super(e),e.sendClientReports&&tN.document&&tN.document.addEventListener("visibilitychange",()=>{"hidden"===tN.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=n&&n.syntheticException||void 0,a=tO(e,t,i,r);return ep(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),eE(a)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let a=r&&r.syntheticException||void 0,s=tC(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),eE(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:ts(r)}};return tc(i,[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("No outcomes to send");return}if(!this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("No dsn provided, will not send outcomes");return}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("Sending outcomes:",e);let t=function(e,t,n){let r=[{type:"client_report"},{timestamp:(0,e_.yW)(),discarded_events:e}];return tc(t?{dsn:t}:{},[r])}(e,this._options.tunnel&&ts(this._dsn));this._sendEnvelope(t)}}class tU{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=tU.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:tM,onunhandledrejection:tj}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let t in e){let n=this._installFunc[t];n&&e[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`Global Handler attached: ${t}`),n(),this._installFunc[t]=void 0)}}}function tM(){e9("error",e=>{let[t,n,r]=t$();if(!t.getIntegration(tU))return;let{msg:i,url:a,line:s,column:o,error:l}=e;if(tD>0||l&&l.__sentry_own_request__)return;let u=void 0===l&&E(i)?function(e,t,n,r){let i=b(e)?e.message:e,a="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(a=s[1],i=s[2]);let o={exception:{values:[{type:a,value:i}]}};return tB(o,t,n,r)}(i,a,s,o):tB(tO(n,l||i,void 0,r,!1),a,s,o);u.level="error",tF(t,l,u,"onerror")})}function tj(){e9("unhandledrejection",e=>{var t;let[n,r,i]=t$();if(!n.getIntegration(tU))return;let a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(e){}if(tD>0||a&&a.__sentry_own_request__)return!0;let s=S(a)?(t=a,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}):tO(r,a,void 0,i,!0);s.level="error",tF(n,a,s,"onunhandledrejection")})}function tB(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=E(t)&&t.length>0?t:function(){try{return K.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:u,filename:d,function:"?",in_app:!0,lineno:c}),e}function tF(e,t,n,r){ep(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function t$(){let e=eD(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}tU.__initStatic();let tz=["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"];class tG{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=tG.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&et(tN,"setTimeout",tq),this._options.setInterval&&et(tN,"setInterval",tq),this._options.requestAnimationFrame&&et(tN,"requestAnimationFrame",tY),this._options.XMLHttpRequest&&"XMLHttpRequest"in tN&&et(XMLHttpRequest.prototype,"send",tH);let e=this._options.eventTarget;if(e){let t=Array.isArray(e)?e:tz;t.forEach(tW)}}}function tq(e){return function(...t){let n=t[0];return t[0]=tP(n,{mechanism:{data:{function:eQ(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function tY(e){return function(t){return e.apply(this,[tP(t,{mechanism:{data:{function:"requestAnimationFrame",handler:eQ(e)},handled:!1,type:"instrument"}})])}}function tH(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&et(n,e,function(t){let n={mechanism:{data:{function:e,handler:eQ(t)},handled:!1,type:"instrument"}},r=ei(t);return r&&(n.mechanism.data.handler=eQ(r)),tP(t,n)})}),e.apply(this,t)}}function tW(e){let t=tN[e]&&tN[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(et(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=tP(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:eQ(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,tP(r,{mechanism:{data:{function:"addEventListener",handler:eQ(r),target:e},handled:!1,type:"instrument"}}),i])}}),et(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}tG.__initStatic();let tZ=["fatal","error","warning","log","info","debug"];function tV(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}class tK{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=tK.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;if(this.options.console&&e9("console",tX),this.options.dom&&e9("dom",(e=this.options.dom,function(t){let n;let r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{let e=t.event;n=e&&e.target?J(e.target,{keyAttrs:r,maxStringLength:i}):J(e,{keyAttrs:r,maxStringLength:i})}catch(e){n="<unknown>"}0!==n.length&&eD().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&e9("xhr",tQ),this.options.fetch&&e9("fetch",t0),this.options.history&&e9("history",t1),this.options.sentry){let e=eD().getClient();e&&e.on&&e.on("beforeSendEvent",tJ)}}}function tJ(e){eD().addBreadcrumb({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:ed(e)},{event:e})}function tX(e){var t;let n={category:"console",data:{arguments:e.args,logger:"console"},level:"warn"===(t=e.level)?"warning":tZ.includes(t)?t:"log",message:Q(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${Q(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}eD().addBreadcrumb(n,{input:e.args,level:e.level})}function tQ(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[e3];if(!t||!n||!r)return;let{method:i,url:a,status_code:s,body:o}=r,l={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};eD().addBreadcrumb({category:"xhr",data:{method:i,url:a,status_code:s},type:"http"},l)}function t0(e){let{startTimestamp:t,endTimestamp:n}=e;if(!(!n||e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method)){if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};eD().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r={...e.fetchData,status_code:e.response&&e.response.status},i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};eD().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}}function t1(e){let t=e.from,n=e.to,r=tV(tN.location.href),i=tV(t),a=tV(n);i.path||(i=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),eD().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}function t2(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function t5(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}tK.__initStatic();class t6{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=t6.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){let r=n.getOptions();!function(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!I(s.originalException,Error))return;let o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=(function e(t,n,r,i,a,s,o,l){if(s.length>=r+1)return s;let u=[...s];if(I(i[a],Error)){t2(o,l);let s=t(n,i[a]),c=u.length;t5(s,a,c,l),u=e(t,n,r,i[a],a,[s,...u],s,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if(I(i,Error)){t2(o,l);let c=t(n,i),d=u.length;t5(c,`errors[${s}]`,d,l),u=e(t,n,r,i,a,[c,...u],c,d)}}),u})(e,t,i,s.originalException,r,a.exception.values,o,0).map(e=>(e.value&&(e.value=X(e.value,n)),e)))}(tx,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}}t6.__initStatic();class t3{static __initStatic(){this.id="HttpContext"}constructor(){this.name=t3.id}setupOnce(){eI(e=>{if(eD().getIntegration(t3)){if(!tN.navigator&&!tN.location&&!tN.document)return e;let t=e.request&&e.request.url||tN.location&&tN.location.href,{referrer:n}=tN.document||{},{userAgent:r}=tN.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};return{...e,request:a}}return e})}}t3.__initStatic();class t4{static __initStatic(){this.id="Dedupe"}constructor(){this.name=t4.id}setupOnce(e,t){let n=e=>{if(e.type)return e;let n=t().getIntegration(t4);if(n){try{var r;if((r=n._previousEvent)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&t9(e,t)&&t8(e,t))}(e,r)||function(e,t){let n=t7(t),r=t7(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&t9(e,t)&&t8(e,t))}(e,r)))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function t8(e,t){let n=ne(e),r=ne(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let 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 t9(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(e){return!1}}function t7(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ne(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){}}function nt(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}t4.__initStatic();let nn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nr=/\((\S*)(?::(\d+))(?::(\d+))\)/,ni=[30,e=>{let t=nn.exec(e);if(t){let e=t[2]&&0===t[2].indexOf("eval");if(e){let e=nr.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[n,r]=nc(t[1]||"?",t[2]);return nt(r,n,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],na=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ns=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,no=[50,e=>{let t=na.exec(e);if(t){let e=t[3]&&t[3].indexOf(" > eval")>-1;if(e){let e=ns.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let n=t[3],r=t[1]||"?";return[r,n]=nc(r,n),nt(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],nl=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nu=eJ(...[ni,no,[40,e=>{let t=nl.exec(e);return t?nt(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]]),nc=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function nd(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return eS(new t_("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new ek((n,r)=>{let i=t.length;if(!i)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{eE(e).then(()=>{--i||(clearTimeout(a),n(!0))},r)})})}}}(e.bufferSize||30)){let r={};function i(i){let a=[];if(td(i,(t,n)=>{let i=tp[n];if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,i)){let r=nh(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else a.push(t)}),0===a.length)return eE();let s=tc(i[0],a),o=t=>{td(s,(n,r)=>{let i=nh(n,r);e.recordDroppedEvent(t,tp[r],i)})};return n.add(()=>t({body:function(e,t){let[n,r]=e,i=JSON.stringify(n);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[th(i,t),e]:i.push("string"==typeof e?th(e,t):e)}for(let e of r){let[t,n]=e;if(a(`
${JSON.stringify(t)}
`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(tu(n))}a(e)}}return"string"==typeof i?i:function(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(i)}(s,e.textEncoder)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n]=e.split(":",2),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))i[e]=r+s;else i.all=r+s}else s?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(i.all=r+6e4);return i}(r,e),e),e=>{throw o("network_error"),e})).then(e=>e,e=>{if(e instanceof t_)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("Skipped sending event because buffer is full."),o("queue_overflow"),eE();throw e})}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function nh(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function np(e,t=function(){if(f)return f;if(e2(tN.fetch))return f=tN.fetch.bind(tN);let e=tN.document,t=tN.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return f=t.bind(tN)}()){let n=0,r=0;return nd(e,function(i){let a=i.body.length;n+=a,r++;let s={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(e=>(n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return f=void 0,n-=a,r--,eS(e)}})}function nf(e){return nd(e,function(t){return new ek((n,r)=>{let i=new XMLHttpRequest;for(let t in i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)})})}let nm=[new eq,new eH,new tG,new tK,new tU,new t6,new t4,new t3];function n_(e){e.startSession({ignoreDuration:!0}),e.captureSession()}let ny="baggage",ng="sentry-",nv=/^sentry-/;function nb(e){if(!e)return;let t=Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${ng}${t}`]=n),e),{});return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===r?i:`${e},${i}`;return a.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},"")}(t)}function nw(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(e[t]=n,e),{})}let nE=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function nS(e,t){let n=function(e){let t;if(!e)return;let n=e.match(nE);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),r=function(e){if(!E(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((e,t)=>{let n=nw(t);return{...e,...n}},{});else{if(!e)return;t=nw(e)}let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(nv)){let r=t.slice(ng.length);e[r]=n}return e},{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{},o={traceId:i||eu(),spanId:eu().substring(16),sampled:s};return a&&(o.parentSpanId=a),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function nk(e=eu(),t=eu().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}class nx{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class nT{constructor(e={}){this.traceId=e.traceId||eu(),this.spanId=e.spanId||eu().substring(16),this.startTimestamp=e.startTimestamp||(0,e_.ph)(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let t=new nT({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){let n=e&&e.op||"< unknown op >",r=t.transaction.name||"< unknown name >",i=t.transaction.spanId,a=`[Tracing] Starting '${n}' span on transaction '${r}' (${i}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:a},eb.log(a)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&eb.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,e_.ph)()}toTraceparent(){return nk(this.traceId,this.spanId,this.sampled)}toContext(){return el({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return el({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return el({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}class nR extends nT{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||eD(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new nx(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}let n=this.spanRecorder?this.spanRecorder.spans.filter(e=>e!==this&&e.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e).endTimestamp);let r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}},a=Object.keys(this._measurements).length>0;return a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(i)}toContext(){let e=super.toContext();return el({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||eD(),t=e.getClient();if(!t)return{};let n=e.getScope(),r=ty(this.traceId,t,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);let a=this.metadata.source;return a&&"url"!==a&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(e){this._hub=e}}let nI={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3};class nO extends nx{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,e_.ph)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class nC extends nR{constructor(e,t,n=nI.idleTimeout,r=nI.finalTimeout,i=nI.heartbeatInterval,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason="externalFinish",a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope(e=>e.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason="finalTimeout",this.finish())},this._finalTimeout)}finish(e=(0,e_.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){for(let t of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter(t=>{if(t.spanId===this.spanId)return!0;!t.endTimestamp&&(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let n=t.startTimestamp<e,r=(this._finalTimeout+this._idleTimeout)/1e3,i=t.endTimestamp-this.startTimestamp<r;if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){let e=JSON.stringify(t,void 0,2);n?i||eb.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):eb.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return n&&i}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] No active IdleTransaction");if(this._onScope){let e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){this.spanRecorder||(this.spanRecorder=new nO(e=>{this._finished||this._pushActivity(e)},e=>{this._finished||this._popActivity(e)},this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason="cancelled",this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason="idleTimeout",this.finish(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=(0,e_.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason="cancelled",this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason="heartbeatFailed",this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function nA(e){let t=e||eD(),n=t.getScope();return n.getTransaction()}let nN=!1;function nD(){let e=nA();if(e){let t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function nP(){let e=this.getScope(),t=e.getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function nL(e,t,n){var r;let i;return eU(t)?void 0!==e.sampled?e.setMetadata({sampleRate:Number(e.sampled)}):("function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setMetadata({sampleRate:Number(i)})):(i=1,e.setMetadata({sampleRate:i})),R(r=i)||!("number"==typeof r||"boolean"==typeof r)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),1):(r<0||r>1)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),1))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1):i?(e.sampled=Math.random()<i,e.sampled)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] starting ${e.op} transaction - ${e.name}`):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1):e.sampled=!1,e}function nU(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter.
The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new nR(e,this);return(s=nL(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t})).sampled&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function nM(e,t,n,r,i,a,s){let o=e.getClient(),l=o&&o.getOptions()||{},u=new nC(t,e,n,r,s,i);return(u=nL(u,l,{parentSampled:t.parentSampled,transactionContext:t,...a})).sampled&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",u),u}nD.tag="sentry_tracingErrorCallback";let nj=V.n2,nB=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&((i=t.value-(r||0))||void 0===r)&&(r=t.value,t.delta=i,e(t))}},nF=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,n$=()=>{let e=nj.performance.timing,t=nj.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n},nz=()=>nj.__WEB_VITALS_POLYFILL__?nj.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||n$()):nj.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],nG=()=>{let e=nz();return e&&e.activationStart||0},nq=(e,t)=>{let n=nz(),r="navigate";return n&&(r=nj.document.prerendering||nG()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:nF(),navigationType:r}},nY=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{t(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},nH=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===nj.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},nW=e=>{let t;let n=nq("CLS",0),r=0,i=[],a=e=>{e.forEach(e=>{if(!e.hadRecentInput){let a=i[0],s=i[i.length-1];r&&0!==i.length&&e.startTime-s.startTime<1e3&&e.startTime-a.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>n.value&&(n.value=r,n.entries=i,t&&t())}})},s=nY("layout-shift",a);if(s){t=nB(e,n);let r=()=>{a(s.takeRecords()),t(!0)};return nH(r),r}},nZ=-1,nV=()=>"hidden"!==nj.document.visibilityState||nj.document.prerendering?1/0:0,nK=()=>{nH(({timeStamp:e})=>{nZ=e},!0)},nJ=()=>(nZ<0&&(nZ=nV(),nK()),{get firstHiddenTime(){return nZ}}),nX=e=>{let t;let n=nJ(),r=nq("FID"),i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),t(!0))},a=e=>{e.forEach(i)},s=nY("first-input",a);t=nB(e,r),s&&nH(()=>{a(s.takeRecords()),s.disconnect()},!0)},nQ={},n0=e=>{let t;let n=nJ(),r=nq("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-nG(),0);e<n.firstHiddenTime&&(r.value=e,r.entries=[i],t())}},a=nY("largest-contentful-paint",i);if(a){t=nB(e,r);let n=()=>{nQ[r.id]||(i(a.takeRecords()),a.disconnect(),nQ[r.id]=!0,t(!0))};return["keydown","click"].forEach(e=>{addEventListener(e,n,{once:!0,capture:!0})}),nH(n,!0),n}};function n1(e){return"number"==typeof e&&isFinite(e)}function n2(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function n5(e){return e/1e3}function n6(){return nj&&nj.addEventListener&&nj.performance}let n3=0,n4={};function n8(e,t,n,r,i,a){let s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];o&&s&&n2(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+n5(o),endTimestamp:r+n5(s)})}let n9=["localhost",/^\/(?!\/)/],n7={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:n9,tracePropagationTargets:n9};function re(e){let t=e.data.url,n=new PerformanceObserver(r=>{let i=r.getEntries();i.forEach(r=>{if("resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)){let t=function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),e_.Z1)?[...r,["http.request.redirect_start",rt(e.redirectStart)],["http.request.fetch_start",rt(e.fetchStart)],["http.request.domain_lookup_start",rt(e.domainLookupStart)],["http.request.domain_lookup_end",rt(e.domainLookupEnd)],["http.request.connect_start",rt(e.connectStart)],["http.request.secure_connection_start",rt(e.secureConnectionStart)],["http.request.connection_end",rt(e.connectEnd)],["http.request.request_start",rt(e.requestStart)],["http.request.response_start",rt(e.responseStart)],["http.request.response_end",rt(e.responseEnd)]]:r}(r);t.forEach(t=>e.setData(...t)),n.disconnect()}})});n.observe({entryTypes:["resource"]})}function rt(e=0){return((e_.Z1||performance.timeOrigin)+e)/1e3}function rn(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ny,n)}catch(e){}}let rr={...nI,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){let r;if(!nj||!nj.location){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Could not initialize routing instrumentation due to invalid location");return}let i=nj.location.href;t&&(r=e({name:nj.location.pathname,startTimestamp:e_.Z1?e_.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&e9("history",({to:t,from:n})=>{if(void 0===n&&i&&-1!==i.indexOf(t)){i=void 0;return}n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:nj.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...n7};class ri{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,function(){let e=eA();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=nU),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=nP),nN||(nN=!0,e9("error",nD),e9("unhandledrejection",nD)))}(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...rr,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=function(){let e=n6();if(e&&e_.Z1){e.mark&&nj.performance.mark("sentry-tracing-init"),nX(e=>{let t=e.entries.pop();if(!t)return;let n=n5(e_.Z1),r=n5(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding FID"),n4.fid={value:e.value,unit:"millisecond"},n4["mark.fid"]={value:n+r,unit:"second"}});let t=nW(e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding CLS"),n4.cls={value:e.value,unit:""},l=t)}),n=n0(e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding LCP"),n4.lcp={value:e.value,unit:"millisecond"},o=t)});return()=>{t&&t(),n&&n()}}return()=>void 0}(),this.options.enableLongTask&&nY("longtask",e=>{for(let t of e){let e=nA();if(!e)return;let n=n5(e_.Z1+t.startTime),r=n5(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}),this.options._experiments.enableInteractions&&nY("event",e=>{for(let t of e){let e=nA();if(!e)return;if("click"===t.name){let n=n5(e_.Z1+t.startTime),r=n5(t.duration);e.startChild({description:J(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}},{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;let n=t(),r=n.getClient(),i=r&&r.getOptions(),{routingInstrumentation:a,startTransactionOnLocationChange:s,startTransactionOnPageLoad:o,markBackgroundTransactions:l,traceFetch:u,traceXHR:c,shouldCreateSpanForRequest:d,enableHTTPTimings:h,_experiments:p}=this.options,f=i&&i.tracePropagationTargets,m=f||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&f&&eb.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),a(e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n},o,s),l&&(nj&&nj.document?nj.document.addEventListener("visibilitychange",()=>{let e=nA();if(nj.document.hidden&&e){let t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),function(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:n7.traceFetch,traceXHR:n7.traceXHR,...e},o="function"==typeof a?a:e=>!0,l=e=>ee(e,r||i||n9),u={};t&&e9("fetch",e=>{let t=function(e,t,n,r){if(!eU()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let t=e.fetchData.__span;if(!t)return;let n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);let t=e.response&&e.response.headers&&e.response.headers.get("content-length"),r=parseInt(t);r>0&&n.setData("http.response_content_length",r)}else e.error&&n.setStatus("internal_error");n.finish(),delete r[t]}return}let a=eD(),s=a.getScope(),o=a.getClient(),l=s.getSpan(),{method:u,url:c}=e.fetchData,d=i&&l?l.startChild({data:{url:c,type:"fetch","http.method":u},description:`${u} ${c}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(e.fetchData.__span=d.spanId,r[d.spanId]=d),n(e.fetchData.url)&&o){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let a=i||n.getSpan(),s=a&&a.transaction,{traceId:o,sampled:l,dsc:u}=n.getPropagationContext(),c=a?a.toTraceparent():nk(o,void 0,l),d=s?s.getDynamicSamplingContext():u||ty(o,t,n),h=nb(d),p="undefined"!=typeof Request&&I(e,Request)?e.headers:r.headers;if(!p)return{"sentry-trace":c,baggage:h};if("undefined"!=typeof Headers&&I(p,Headers)){let e=new Headers(p);return e.append("sentry-trace",c),h&&e.append(ny,h),e}if(Array.isArray(p)){let e=[...p,["sentry-trace",c]];return h&&e.push([ny,h]),e}{let e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),h&&t.push(h),{...p,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}(t,o,s,n,d)}return d}(e,o,l,u);s&&t&&re(t)}),n&&e9("xhr",e=>{let t=function(e,t,n,r){let i=e.xhr,a=i&&i[e3];if(!eU()||i&&i.__sentry_own_request__||!i||!a)return;let s=t(a.url);if(e.endTimestamp&&s){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&(t.setHttpStatus(a.status_code),t.finish(),delete r[e]);return}let o=eD(),l=o.getScope(),u=l.getSpan(),c=s&&u?u.startChild({data:{...a.data,type:"xhr","http.method":a.method,url:a.url},description:`${a.method} ${a.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(c&&(i.__sentry_xhr_span_id__=c.spanId,r[i.__sentry_xhr_span_id__]=c),i.setRequestHeader&&n(a.url)){if(c){let e=c&&c.transaction,t=e&&e.getDynamicSamplingContext(),n=nb(t);rn(i,c.toTraceparent(),n)}else{let e=o.getClient(),{traceId:t,sampled:n,dsc:r}=l.getPropagationContext(),a=nk(t,void 0,n),s=r||(e?ty(t,e,l):void 0),u=nb(s);rn(i,a,u)}}return c}(e,o,l,u);s&&t&&re(t)})}({traceFetch:u,traceXHR:c,tracePropagationTargets:m,shouldCreateSpanForRequest:d,enableHTTPTimings:h})}_createRouteTransaction(e){if(!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="pageload"===e.op,u=s?ra("sentry-trace"):"",c=s?ra("baggage"):"",{traceparentData:d,dynamicSamplingContext:h,propagationContext:p}=nS(u,c),f={...e,...d,metadata:{...e.metadata,dynamicSamplingContext:d&&!h?{}:h},trimEnd:!0},m="function"==typeof n?n(f):f,_=void 0===m?{...f,sampled:!1}:m;_.metadata=_.name!==f.name?{..._.metadata,source:"custom"}:_.metadata,this._latestRouteName=_.name,this._latestRouteSource=_.metadata&&_.metadata.source,!1===_.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] Will not send ${_.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Tracing] Starting ${_.op} transaction on scope`);let{location:y}=nj,g=nM(t,_,r,i,!0,{location:y},a),v=t.getScope();return s&&d?v.setPropagationContext(p):v.setPropagationContext({traceId:g.traceId,spanId:g.spanId,parentSpanId:g.parentSpanId,sampled:g.sampled}),g.registerBeforeFinishCallback(e=>{this._collectWebVitals(),function(e){let t,n;let r=n6();if(!r||!nj.performance.getEntries||!e_.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Tracing] Adding & adjusting spans using Performance API");let i=n5(e_.Z1),a=r.getEntries();if(a.slice(n3).forEach(r=>{let a=n5(r.startTime),s=n5(r.duration);if("navigation"!==e.op||!(i+a<e.startTimestamp))switch(r.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(t=>{n8(e,r,t,i)}),n8(e,r,"secureConnection",i,"TLS/SSL","connectEnd"),n8(e,r,"fetch",i,"cache","domainLookupStart"),n8(e,r,"domainLookup",i,"DNS"),n2(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:i+n5(r.requestStart),endTimestamp:i+n5(r.responseEnd)}),n2(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:i+n5(r.responseStart),endTimestamp:i+n5(r.responseEnd)}),t=i+n5(r.responseStart),n=i+n5(r.requestStart);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let a=i+n;n2(e,{description:t.name,endTimestamp:a+r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})})(e,r,a,s,i);let t=nJ(),n=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding FP"),n4.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding FCP"),n4.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":{let t=r.name.replace(nj.location.origin,"");(function(e,t,n,r,i,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s={};"transferSize"in t&&(s["http.response_transfer_size"]=t.transferSize),"encodedBodySize"in t&&(s["http.response_content_length"]=t.encodedBodySize),"decodedBodySize"in t&&(s["http.decoded_response_content_length"]=t.decodedBodySize),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus);let o=a+r;n2(e,{description:n,endTimestamp:o+i,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:s})})(e,r,t,a,s,i)}}}),n3=Math.max(a.length-1,0),function(e){let t=nj.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),n1(n.rtt)&&(n4["connection.rtt"]={value:n.rtt,unit:"millisecond"})),n1(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),n1(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding TTFB"),n4.ttfb={value:(t-e.startTimestamp)*1e3,unit:"millisecond"},"number"==typeof n&&n<=t&&(n4["ttfb.requestTime"]={value:(t-n)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(t=>{if(!n4[t]||i>=e.startTimestamp)return;let n=n4[t].value,r=i+n5(n),a=Math.abs((r-e.startTimestamp)*1e3),s=a-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log(`[Measurements] Normalized ${t} from ${n} to ${a} (${s})`),n4[t].value=a});let r=n4["mark.fid"];r&&n4.fid&&(n2(e,{description:"first input delay",endTimestamp:r.value+n5(n4.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:r.value}),delete n4["mark.fid"]),"fcp"in n4||delete n4.cls,Object.keys(n4).forEach(t=>{e.setMeasurement(t,n4[t].value,n4[t].unit)}),o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding LCP Data"),o.element&&e.setTag("lcp.element",J(o.element)),o.id&&e.setTag("lcp.id",o.id),o.url&&e.setTag("lcp.url",o.url.trim().slice(0,200)),e.setTag("lcp.size",o.size)),l&&l.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Measurements] Adding CLS Data"),l.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,J(t.node))))}o=void 0,l=void 0,n4={}}(e)}),g}_registerInteractionListener(){let e;let t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",a=nA();if(a&&a.op&&["navigation","pageload"].includes(a.op)){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}let s=this._getCurrentHub(),{location:o}=nj,l={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=nM(s,l,t,n,!0,{location:o},r)};["click"].forEach(e=>{addEventListener(e,t,{once:!1,capture:!0})})}}function ra(e){var t;let n=(t=`meta[name=${e}]`,K.document&&K.document.querySelector?K.document.querySelector(t):null);return n?n.getAttribute("content"):void 0}function rs(e,t,n={}){return Array.isArray(t)?ro(e,t,n):r=>{let i=t(r);if(e.allowExclusionByUser){let t=i.find(t=>t.name===e.name);if(!t)return i}return ro(e,i,n)}}function ro(e,t,n){let r=t.find(t=>t.name===e.name);if(r){for(let[e,t]of Object.entries(n))!function e(t,n,r){let i=n.match(/([a-z_]+)\.(.*)/i);if(null===i)t[n]=r;else{let n=t[i[1]];e(n,i[2],r)}}(r,e,t);return t}return[...t,e]}var rl=n(4406),ru=n(5632),rc=n.n(ru);let rd={"routing.instrumentation":"next-router"},rh=eD().getClient();function rp(e,t=!0,n=!0){let{route:r,params:i,sentryTrace:a,baggage:s}=function(){let e;let t=tN.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:a}=e;return n.route=r,n.params=i,a&&a.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),{traceparentData:o,dynamicSamplingContext:l,propagationContext:u}=nS(a,s);eD().getScope().setPropagationContext(u),_=r||tN.location.pathname,t&&(m=e({name:_,op:"pageload",tags:rd,...i&&rh&&rh.getOptions().sendDefaultPii&&{data:i},...o,metadata:{source:r?"route":"url",dynamicSamplingContext:o&&!l?{}:l}})),n&&rc().events.on("routeChangeStart",t=>{let n,r;let i=t.split(/[\?#]/,1)[0],a=function(e){let t=(tN.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(i);a?(n=a,r="route"):(n=i,r="url");let s={...rd,from:_};_=n,m&&m.finish();let o=e({name:n,op:"navigation",tags:s,metadata:{source:r}});if(o){let e=o.startChild({op:"ui.nextjs.route-change",description:"Next.js Route Change",origin:"auto.navigation.nextjs"}),t=()=>{e.finish(),rc().events.off("routeChangeComplete",t)};rc().events.on("routeChangeComplete",t)}})}let rf=n.g,rm=n.g;var r_=n(8565),ry=n(4406);let rg=V.n2,rv="sentryReplaySession",rb="Unable to send Replay";function rw(e){let t=null==e?void 0:e.host;return!!(t&&t.shadowRoot&&t.shadowRoot===e)}function rE({maskInputOptions:e,tagName:t,type:n}){"option"===t.toLowerCase()&&(t="select");let r="string"==typeof n?n.toLowerCase():void 0;return e[t.toLowerCase()]||r&&e[r]||"password"===r||"input"===t&&!n&&e.text}function rS({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:r,tagName:i,type:a,value:s,maskInputFn:o}){let l=s||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(a="password"),(rE({maskInputOptions:r,tagName:i,type:a})||t&&e.matches(t))&&(l=o?o(l):"*".repeat(l.length))),l}(A=$||($={}))[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment";let rk="__rrweb_original__";function rx(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function rT(e,t,n){return("string"==typeof n&&n.toLowerCase(),"INPUT"===t&&("radio"===n||"checkbox"===n))?e.getAttribute("value")||"":e.value}let rR=1,rI=RegExp("[^a-z0-9-_:]");function rO(e){return e?e.replace(/[\S]/g,"*"):""}function rC(e){try{let t=e.rules||e.cssRules;return t?Array.from(t).map(rA).join(""):null}catch(e){return null}}function rA(e){let t=e.cssText;if("styleSheet"in e)try{t=rC(e.styleSheet)||t}catch(e){}return rN(t)}function rN(e){return e.indexOf(":")>-1?e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"):e}let rD=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,rP=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,rL=/^(data:)([^,]*),(.*)/i;function rU(e,t){return(e||"").replace(rD,(e,n,r,i,a,s)=>{let o=r||a||s,l=n||i||"";if(!o)return e;if(!rP.test(o)||rL.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let u=t.split("/"),c=o.split("/");for(let e of(u.pop(),c))"."!==e&&(".."===e?u.pop():u.push(e));return`url(${l}${u.join("/")}${l})`})}let rM=/^[^ \t\n\r\u000c]+/,rj=/^[, \t\n\r\u000c]+/;function rB(e,t){if(!t||""===t.trim())return t;let n=e.createElement("a");return n.href=t,n.href}function rF(){let e=document.createElement("a");return e.href="",e.href}function r$(e,t,n,r,i,a,s,o){if(!i)return i;let l=r.toLowerCase(),u=n.toLowerCase();if("src"===l||"href"===l||"xlink:href"===l&&"#"!==i[0]||"background"===l&&("table"===u||"td"===u||"th"===u))return rB(e,i);if("srcset"===l)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(rj),!(n>=t.length);){let a=r(rM);if(","===a.slice(-1))a=rB(e,a.substring(0,a.length-1)),i.push(a);else{let r="";a=rB(e,a);let s=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((a+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,i.push((a+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return i.join(", ")}(e,i);if("style"===l)return rU(i,rF());if("object"===u&&"data"===l)return rB(e,i);if(a&&!(s&&t.matches(s))&&(["placeholder","title","aria-label"].indexOf(l)>-1||"input"===u&&"value"===l&&t.hasAttribute("type")&&["submit","button"].indexOf(t.getAttribute("type").toLowerCase())>-1))return o?o(i):rO(i);return i}function rz(e,t,n,r,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return rz(e.parentNode,t,n,r,i);if(r&&(e.matches(r)||e.closest(r)))return!1;if(i)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){let r=e.classList[n];if(t.test(r))return!0}return!!(n&&e.matches(n))||rz(e.parentNode,t,n,r,i)}function rG(e){return null==e?"":e.toLowerCase()}function rq(e,t){let n;let{doc:r,map:i,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,skipChild:p=!1,inlineStylesheet:f=!0,maskInputSelector:m,unmaskInputSelector:_,maskAllText:y,maskInputOptions:g={},maskTextFn:v,maskInputFn:b,slimDOMOptions:w,dataURLOptions:E={},inlineImages:S=!1,recordCanvas:k=!1,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:R=5e3,keepIframeSrcFn:I=()=>!1}=t,{preserveWhiteSpace:O=!0}=t,C=function(e,t){let n;let{doc:r,blockClass:i,blockSelector:a,unblockSelector:s,maskTextClass:o,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputSelector:p,unmaskInputSelector:f,maskAllText:m,maskInputOptions:_={},maskTextFn:y,maskInputFn:g,dataURLOptions:v={},inlineImages:b,recordCanvas:w,keepIframeSrcFn:E}=t;if(r.__sn){let e=r.__sn.id;n=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:$.Document,childNodes:[],compatMode:e.compatMode,rootId:n};return{type:$.Document,childNodes:[],rootId:n};case e.DOCUMENT_TYPE_NODE:return{type:$.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:n};case e.ELEMENT_NODE:let S=function(e,t,n,r){if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){let r=e.classList[n];if(t.test(r))return!0}return!!n&&e.matches(n)}(e,i,a,s),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=e.tagName.toLowerCase().trim();return rI.test(t)?"div":t}(e),x={};for(let{name:t,value:n}of Array.from(e.attributes)){var T,R;("video"===k||"audio"===k)&&"autoplay"===t||(x[t]=r$(r,e,k,t,n,m,d,y))}if("link"===k&&h){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=rC(t)),n&&(delete x.rel,delete x.href,x._cssText=rU(n,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=rC(e.sheet);t&&(x._cssText=rU(t,rF()))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=rx(e),n=rT(e,k.toUpperCase(),t),r=e.checked;"submit"!==t&&"button"!==t&&n&&(x.value=rS({input:e,type:t,tagName:k,value:n,maskInputSelector:p,unmaskInputSelector:f,maskInputOptions:_,maskInputFn:g})),r&&(x.checked=r)}if("option"===k&&(e.selected&&!_.select?x.selected=!0:delete x.selected),"canvas"===k&&w){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=rk in i?i[rk]:i,s=new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer);if(s.some(e=>0!==e))return!1}return!0}(e)&&(x.rr_dataURL=e.toDataURL(v.type,v.quality));else if(!("__context"in e)){let t=e.toDataURL(v.type,v.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;let r=n.toDataURL(v.type,v.quality);t!==r&&(x.rr_dataURL=t)}}if("img"===k&&b){u||(c=(u=r.createElement("canvas")).getContext("2d"));let t=e.crossOrigin;e.crossOrigin="anonymous";let n=()=>{try{u.width=e.naturalWidth,u.height=e.naturalHeight,c.drawImage(e,0,0),x.rr_dataURL=u.toDataURL(v.type,v.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}t?x.crossOrigin=t:delete x.crossOrigin};e.complete&&0!==e.naturalWidth?n():e.onload=n}if(("audio"===k||"video"===k)&&(x.rr_mediaState=e.paused?"paused":"played",x.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(x.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(x.rr_scrollTop=e.scrollTop),S){let{width:t,height:n}=e.getBoundingClientRect();x={class:x.class,rr_width:`${t}px`,rr_height:`${n}px`}}return"iframe"!==k||E(x.src)||(e.contentDocument||(x.rr_src=x.src),delete x.src),{type:$.Element,tagName:k,attributes:x,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:S,rootId:n};case e.TEXT_NODE:let I=e.parentNode&&e.parentNode.tagName,O=e.textContent,C="STYLE"===I||void 0,A="SCRIPT"===I||void 0;if(C&&O){try{e.nextSibling||e.previousSibling||(null===(T=e.parentNode.sheet)||void 0===T?void 0:T.cssRules)&&(O=(R=e.parentNode.sheet).cssRules?Array.from(R.cssRules).map(e=>e.cssText?rN(e.cssText):"").join(""):"")}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}O=rU(O,rF())}if(A&&(O="SCRIPT_PLACEHOLDER"),"TEXTAREA"===I&&O)O="";else if("OPTION"===I&&O){let t=e.parentNode;O=rS({input:t,type:null,tagName:I,value:O,maskInputSelector:p,unmaskInputSelector:f,maskInputOptions:_,maskInputFn:g})}else!C&&!A&&rz(e,o,l,d,m)&&O&&(O=y?y(O):rO(O));return{type:$.Text,textContent:O||"",isStyle:C,rootId:n};case e.CDATA_SECTION_NODE:return{type:$.CDATA,textContent:"",rootId:n};case e.COMMENT_NODE:return{type:$.Comment,textContent:e.textContent||"",rootId:n};default:return!1}}(e,{doc:r,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,inlineStylesheet:f,maskInputSelector:m,unmaskInputSelector:_,maskAllText:y,maskInputOptions:g,maskTextFn:v,maskInputFn:b,dataURLOptions:E,inlineImages:S,recordCanvas:k,keepIframeSrcFn:I});if(!C)return console.warn(e,"not serialized"),null;n="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===$.Comment)return!0;if(e.type===$.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js"))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(rG(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===rG(e.attributes.name)||"icon"===rG(e.attributes.rel)||"apple-touch-icon"===rG(e.attributes.rel)||"shortcut icon"===rG(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&rG(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(rG(e.attributes.property).match(/^(og|twitter|fb):/)||rG(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===rG(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===rG(e.attributes.name)||"googlebot"===rG(e.attributes.name)||"bingbot"===rG(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===rG(e.attributes.name)||"generator"===rG(e.attributes.name)||"framework"===rG(e.attributes.name)||"publisher"===rG(e.attributes.name)||"progid"===rG(e.attributes.name)||rG(e.attributes.property).match(/^article:/)||rG(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===rG(e.attributes.name)||"yandex-verification"===rG(e.attributes.name)||"csrf-token"===rG(e.attributes.name)||"p:domain_verify"===rG(e.attributes.name)||"verify-v1"===rG(e.attributes.name)||"verification"===rG(e.attributes.name)||"shopify-checkout-api-token"===rG(e.attributes.name)))return!0}}return!1}(C,w)&&(O||C.type!==$.Text||C.isStyle||C.textContent.replace(/^\s+|\s+$/gm,"").length)?rR++:-2;let A=Object.assign(C,{id:n});if(e.__sn=A,-2===n)return null;i[n]=e,x&&x(e);let N=!p;if(A.type===$.Element&&(N=N&&!A.needBlock,delete A.needBlock,e.shadowRoot&&(A.isShadowHost=!0)),(A.type===$.Document||A.type===$.Element)&&N){w.headWhitespace&&C.type===$.Element&&"head"===C.tagName&&(O=!1);let t={doc:r,map:i,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,skipChild:p,inlineStylesheet:f,maskInputSelector:m,unmaskInputSelector:_,maskAllText:y,maskInputOptions:g,maskTextFn:v,maskInputFn:b,slimDOMOptions:w,dataURLOptions:E,inlineImages:S,recordCanvas:k,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:R,keepIframeSrcFn:I};for(let n of Array.from(e.childNodes)){let e=rq(n,t);e&&A.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let e=rq(n,t);e&&(e.isShadow=!0,A.childNodes.push(e))}}return e.parentNode&&rw(e.parentNode)&&(A.isShadow=!0),A.type===$.Element&&"iframe"===A.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let a=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=setTimeout(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{clearTimeout(r),a=!0,t()});return}let s="about:blank";if(i.location.href!==s||e.src===s||""===e.src){setTimeout(t,0);return}e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&T){let n=rq(t,{doc:t,map:i,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:f,maskInputSelector:m,unmaskInputSelector:_,maskAllText:y,maskInputOptions:g,maskTextFn:v,maskInputFn:b,slimDOMOptions:w,dataURLOptions:E,inlineImages:S,recordCanvas:k,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:T,iframeLoadTimeout:R,keepIframeSrcFn:I});n&&T(e,n)}},R),A}function rY(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}(N=z||(z={}))[N.DomContentLoaded=0]="DomContentLoaded",N[N.Load=1]="Load",N[N.FullSnapshot=2]="FullSnapshot",N[N.IncrementalSnapshot=3]="IncrementalSnapshot",N[N.Meta=4]="Meta",N[N.Custom=5]="Custom",N[N.Plugin=6]="Plugin",(D=G||(G={}))[D.Mutation=0]="Mutation",D[D.MouseMove=1]="MouseMove",D[D.MouseInteraction=2]="MouseInteraction",D[D.Scroll=3]="Scroll",D[D.ViewportResize=4]="ViewportResize",D[D.Input=5]="Input",D[D.TouchMove=6]="TouchMove",D[D.MediaInteraction=7]="MediaInteraction",D[D.StyleSheetRule=8]="StyleSheetRule",D[D.CanvasMutation=9]="CanvasMutation",D[D.Font=10]="Font",D[D.Log=11]="Log",D[D.Drag=12]="Drag",D[D.StyleDeclaration=13]="StyleDeclaration",(P=q||(q={}))[P.MouseUp=0]="MouseUp",P[P.MouseDown=1]="MouseDown",P[P.Click=2]="Click",P[P.ContextMenu=3]="ContextMenu",P[P.DblClick=4]="DblClick",P[P.Focus=5]="Focus",P[P.Blur=6]="Blur",P[P.TouchStart=7]="TouchStart",P[P.TouchMove_Departed=8]="TouchMove_Departed",P[P.TouchEnd=9]="TouchEnd",P[P.TouchCancel=10]="TouchCancel",(L=Y||(Y={}))[L["2D"]=0]="2D",L[L.WebGL=1]="WebGL",L[L.WebGL2=2]="WebGL2",(U=H||(H={}))[U.Play=0]="Play",U[U.Pause=1]="Pause",U[U.Seeked=2]="Seeked",U[U.VolumeChange=3]="VolumeChange",(M=W||(W={})).Start="start",M.Pause="pause",M.Resume="resume",M.Resize="resize",M.Finish="finish",M.FullsnapshotRebuilded="fullsnapshot-rebuilded",M.LoadStylesheetStart="load-stylesheet-start",M.LoadStylesheetEnd="load-stylesheet-end",M.SkipStart="skip-start",M.SkipEnd="skip-end",M.MouseInteraction="mouse-interaction",M.EventCast="event-cast",M.CustomEvent="custom-event",M.Flush="flush",M.StateChange="state-change",M.PlayBack="play-back";let rH="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.",rW={map:{},getId:()=>(console.error(rH),-1),getNode:()=>(console.error(rH),null),removeNodeFromMap(){console.error(rH)},has:()=>(console.error(rH),!1),reset(){console.error(rH)}};function rZ(e,t,n={}){let r=null,i=0;return function(a){let s=Date.now();i||!1!==n.leading||(i=s);let o=t-(s-i),l=this,u=arguments;o<=0||o>t?(r&&(clearTimeout(r),r=null),i=s,e.apply(l,u)):r||!1===n.trailing||(r=setTimeout(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,u)},o))}}function rV(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>rV(e,t,a||{},!0)}function rK(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}function rJ(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function rX(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function rQ(e,t,n,r){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let i=!1,a=r&&e.matches(r);return"string"==typeof t?i=void 0!==e.closest?!a&&null!==e.closest("."+t):!a&&e.classList.contains(t):a||e.classList.forEach(e=>{t.test(e)&&(i=!0)}),!i&&n&&(i=e.matches(n)),!a&&i||rQ(e.parentNode,t,n,r)}return e.nodeType,e.TEXT_NODE,rQ(e.parentNode,t,n,r)}function r0(e){return"__sn"in e&&-2===e.__sn.id}function r1(e){return!!e.changedTouches}function r2(e){return"__sn"in e&&e.__sn.type===$.Element&&"iframe"===e.__sn.tagName}function r5(e){return!!(null==e?void 0:e.shadowRoot)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(rW=new Proxy(rW,{get:(e,t,n)=>("map"===t&&console.error(rH),Reflect.get(e,t,n))}));class r6{constructor(){this.length=0,this.head=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=(null==t?void 0:t.next)||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let 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;this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}let r3=(e,t)=>`${e}@${t}`;class r4{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new r6,n=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},r=r=>{var i,a,s,o,l;let u=r.getRootNode?null===(i=r.getRootNode())||void 0===i?void 0:i.host:null,c=u;for(;null===(s=null===(a=null==c?void 0:c.getRootNode)||void 0===a?void 0:a.call(c))||void 0===s?void 0:s.host;)c=(null===(l=null===(o=null==c?void 0:c.getRootNode)||void 0===o?void 0:o.call(c))||void 0===l?void 0:l.host)||null;let d=!this.doc.contains(r)&&(!c||!this.doc.contains(c));if(!r.parentNode||d)return;let h=rw(r.parentNode)?this.mirror.getId(u):this.mirror.getId(r.parentNode),p=n(r);if(-1===h||-1===p)return t.addNode(r);let f=rq(r,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{r2(e)&&this.iframeManager.addIframe(e),r5(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});f&&e.push({parentId:h,nextId:p,node:f})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!r9(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&r(e);for(let e of this.addedSet)r7(this.droppedSet,e)||r9(this.removes,e,this.mirror)?r7(this.movedSet,e)?r(e):this.droppedSet.add(e):r(e);let i=null;for(;t.length;){let e=null;if(i){let t=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==t&&-1!==r&&(e=i)}if(!e)for(let r=t.length-1;r>=0;r--){let i=t.get(r);if(i){let t=this.mirror.getId(i.value.parentNode),r=n(i.value);if(-1!==t&&-1!==r){e=i;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}i=e.previous,t.removeNode(e.value),r(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>({id:this.mirror.getId(e.node),attributes:e.attributes})).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!r0(e.target))switch(e.type){case"characterData":{let t=e.target.textContent;rQ(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:rz(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=t.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=rS({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:t.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),rQ(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let r=this.attributes.find(t=>t.node===e.target);if(r||(r={node:e.target,attributes:{}},this.attributes.push(r)),"type"===e.attributeName&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),"style"===e.attributeName){let n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),(void 0===r.attributes.style||null===r.attributes.style)&&(r.attributes.style={});try{let e=r.attributes.style;for(let r of Array.from(t.style)){let i=t.style.getPropertyValue(r),a=t.style.getPropertyPriority(r);(i!==n.style.getPropertyValue(r)||a!==n.style.getPropertyPriority(r))&&(""===a?e[r]=i:e[r]=[i,a])}for(let r of Array.from(n.style))""===t.style.getPropertyValue(r)&&(e[r]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{let t=e.target;r.attributes[e.attributeName]=r$(this.doc,t,t.tagName,e.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=rw(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);rQ(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||r0(t)||(this.addedSet.has(t)?(r8(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(rw(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[r3(n,r)]?r8(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!rw(e.target)||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!(t&&rQ(t,this.blockClass,this.blockSelector,this.unblockSelector))){if("__sn"in e){if(r0(e))return;this.movedSet.add(e);let n=null;t&&"__sn"in t&&(n=t.__sn.id),n&&(this.movedMap[r3(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);rQ(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach(e=>this.genAdds(e))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].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 r8(e,t){e.delete(t),t.childNodes.forEach(t=>r8(e,t))}function r9(e,t,n){let{parentNode:r}=t;if(!r)return!1;let i=n.getId(r);return!!e.some(e=>e.id===i)||r9(e,r,n)}function r7(e,t){let{parentNode:n}=t;return!!n&&(!!e.has(n)||r7(e,n))}let ie=e=>(...t)=>{try{return e(...t)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},it=[];function ir(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function ii(e,t){var n,r;let i=new r4;it.push(i),i.init(e);let a=window.MutationObserver||window.__rrMutationObserver,s=null===(r=null===(n=null==window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");s&&window[s]&&(a=window[s]);let o=new a(ie(t=>{e.onMutation&&!1===e.onMutation(t)||i.processMutations(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function ia({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){let o=rZ(s=>{let o=ir(s);if(!o||rQ(o,r,i,a))return;let l=n.getId(o);if(o===t){let n=t.scrollingElement||t.documentElement;ie(e)({id:l,x:n.scrollLeft,y:n.scrollTop})}else ie(e)({id:l,x:o.scrollLeft,y:o.scrollTop})},s.scroll||100);return rY("scroll",ie(o),t)}function is(e,t){let n=Object.assign({},e);return t||delete n.userTriggered,n}let io=["INPUT","TEXTAREA","SELECT"],il=new WeakMap;function iu(e){return function(e,t){if(id("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||id("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||id("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||id("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules),r=n.indexOf(e);t.unshift(r)}else{let n=Array.from(e.parentStyleSheet.cssRules),r=n.indexOf(e);t.unshift(r)}return t}(e,[])}function ic(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){let{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:s,inputCb:o,mediaInteractionCb:l,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:d,fontCb:h}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),i(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),a(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),s(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),o(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),l(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),h(...e)}}(e,t);let r=ii(e,e.doc),i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=rZ(t=>{let n=Date.now()-i;ie(e)(o.map(e=>(e.timeOffset-=n,e)),t),o=[],i=null},s),u=rZ(e=>{let t=ir(e),{clientX:n,clientY:a}=r1(e)?e.changedTouches[0]:e;i||(i=Date.now()),o.push({x:n,y:a,id:r.getId(t),timeOffset:Date.now()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?G.Drag:e instanceof MouseEvent?G.MouseMove:G.TouchMove)},a,{trailing:!1}),c=[rY("mousemove",ie(u),n),rY("touchmove",ie(u),n),rY("drag",ie(u),n)];return ie(()=>{c.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:s}){if(!1===s.mouseInteraction)return()=>{};let o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,l=[],u=t=>s=>{let o=ir(s);if(rQ(o,r,i,a))return;let l=r1(s)?s.changedTouches[0]:s;if(!l)return;let u=n.getId(o),{clientX:c,clientY:d}=l;ie(e)({type:q[t],id:u,x:c,y:d})};return Object.keys(q).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(e=>{let n=e.toLowerCase(),r=ie(u(e));l.push(rY(n,r,t))}),ie(()=>{l.forEach(e=>e())})}(e),s=ia(e),o=function({viewportResizeCb:e}){let t=-1,n=-1,r=rZ(()=>{let r=rJ(),i=rX();(t!==r||n!==i)&&(ie(e)({width:Number(i),height:Number(r)}),t=r,n=i)},200);return rY("resize",ie(r),window)}(e),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:o,maskInputSelector:l,unmaskInputSelector:u,maskInputOptions:c,maskInputFn:d,sampling:h,userTriggeredOnInput:p}){function f(e){let n=ir(e),h=n&&n.tagName,f=e.isTrusted;if("OPTION"===h&&(n=n.parentElement),!n||!h||0>io.indexOf(h)||rQ(n,r,i,a))return;let _=n,y=rx(_);if(_.classList.contains(s)||o&&_.matches(o))return;let g=rT(_,h,y),v=!1;("radio"===y||"checkbox"===y)&&(v=n.checked),function({tagName:e,type:t,maskInputOptions:n,maskInputSelector:r}){return r||rE({maskInputOptions:n,tagName:e,type:t})}({maskInputOptions:c,maskInputSelector:l,tagName:h,type:y})&&(g=rS({input:_,maskInputOptions:c,maskInputSelector:l,unmaskInputSelector:u,tagName:h,type:y,value:g,maskInputFn:d})),m(n,ie(is)({text:g,isChecked:v,userTriggered:f},p));let b=n.name;"radio"===y&&b&&v&&t.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach(e=>{if(e!==n){let t=rS({input:e,maskInputOptions:c,maskInputSelector:l,unmaskInputSelector:u,tagName:h,type:y,value:rT(e,h,y),maskInputFn:d});m(e,ie(is)({text:t,isChecked:!v,userTriggered:!1},p))}})}function m(t,r){let i=il.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){il.set(t,r);let i=n.getId(t);e(Object.assign(Object.assign({},r),{id:i}))}}let _="last"===h.input?["change"]:["input","change"],y=_.map(e=>rY(e,ie(f),t)),g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),v=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return g&&g.set&&y.push(...v.map(e=>rV(e[0],e[1],{set(){ie(f)({target:this})}}))),ie(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a}){let s=s=>rZ(ie(a=>{let o=ir(a);if(!o||rQ(o,t,n,r))return;let{currentTime:l,volume:u,muted:c}=o;e({type:s,id:i.getId(o),currentTime:l,volume:u,muted:c})}),a.media||500),o=[rY("play",s(0)),rY("pause",s(1)),rY("seeked",s(2)),rY("volumechange",s(3))];return ie(()=>{o.forEach(e=>e())})}(e),c=function({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let r=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:ie((n,r,i)=>{let[a,s]=i,o=t.getId(r.ownerNode);return -1!==o&&e({id:o,adds:[{rule:a,index:s}]}),n.apply(r,i)})});let i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:ie((n,r,i)=>{let[a]=i,s=t.getId(r.ownerNode);return -1!==s&&e({id:s,removes:[{index:a}]}),n.apply(r,i)})});let a={};ih("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(ih("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),ih("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),ih("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));let s={};return Object.entries(a).forEach(([n,r])=>{s[n]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(s[n].insertRule,{apply:ie((n,r,i)=>{let[a,s]=i,o=t.getId(r.parentStyleSheet.ownerNode);return -1!==o&&e({id:o,adds:[{rule:a,index:[...iu(r),s||0]}]}),n.apply(r,i)})}),r.prototype.deleteRule=new Proxy(s[n].deleteRule,{apply:ie((n,r,i)=>{let[a]=i,s=t.getId(r.parentStyleSheet.ownerNode);return -1!==s&&e({id:s,removes:[{index:[...iu(r),a]}]}),n.apply(r,i)})})}),ie(()=>{n.CSSStyleSheet.prototype.insertRule=r,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(a).forEach(([e,t])=>{t.prototype.insertRule=s[e].insertRule,t.prototype.deleteRule=s[e].deleteRule})})}(e,{win:n}),d=function({styleDeclarationCb:e,mirror:t},{win:n}){let r=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(r,{apply:ie((n,r,i)=>{var a,s;let[o,l,u]=i,c=t.getId(null===(s=null===(a=r.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return -1!==c&&e({id:c,set:{property:o,value:l,priority:u},index:iu(r.parentRule)}),n.apply(r,i)})});let i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:ie((n,r,i)=>{var a,s;let[o]=i,l=t.getId(null===(s=null===(a=r.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===s?void 0:s.ownerNode);return -1!==l&&e({id:l,remove:{property:o},index:iu(r.parentRule)}),n.apply(r,i)})}),ie(()=>{n.CSSStyleDeclaration.prototype.setProperty=r,n.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),h=e.collectFonts?function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(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};let s=rK(t.fonts,"add",function(t){return function(n){return setTimeout(()=>{let t=i.get(n);t&&(e(t),i.delete(n))},0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(s),ie(()=>{r.forEach(e=>e())})}(e):()=>{},p=[];for(let t of e.plugins)p.push(t.observer(t.callback,n,t.options));return ie(()=>{it.forEach(e=>e.reset()),r.disconnect(),i(),a(),s(),o(),l(),u();try{c(),d()}catch(e){}h(),p.forEach(e=>e())})}function id(e){return void 0!==window[e]}function ih(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ip{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class im{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;let t=this;this.restorePatches.push(rK(HTMLElement.prototype,"attachShadow",function(e){return function(){let n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}}))}addShadowRoot(e,t){ii(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),ia(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){let t=this;this.restorePatches.push(rK(e.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(){let r=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),r}}))}}reset(){this.restorePatches.forEach(e=>e())}}for(var i_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iy="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ig=0;ig<i_.length;ig++)iy[i_.charCodeAt(ig)]=ig;var iv=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=i_[n[t]>>2]+i_[(3&n[t])<<4|n[t+1]>>4]+i_[(15&n[t+1])<<2|n[t+2]>>6]+i_[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let ib=new Map,iw=(e,t,n)=>{let r;if(!e||!(iS(e,t)||"object"==typeof e))return;let i=e.constructor.name,a=((r=ib.get(n))||(r=new Map,ib.set(n,r)),r.has(i)||r.set(i,[]),r.get(i)),s=a.indexOf(e);return -1===s&&(s=a.length,a.push(e)),s},iE=(e,t,n)=>[...e].map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){let e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(t instanceof ArrayBuffer){let e=t.constructor.name,n=iv(t);return{rr_type:e,base64:n}}else if(t instanceof DataView){let i=t.constructor.name;return{rr_type:i,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]}}else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof ImageData){let i=t.constructor.name;return{rr_type:i,args:[e(t.data,n,r),t.width,t.height]}}else if(iS(t,n)||"object"==typeof t){let e=t.constructor.name,i=iw(t,n,r);return{rr_type:e,index:i}}return t})(e,t,n)),iS=(e,t)=>{let n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return!!n.find(n=>e instanceof t[n])};function ik(e,t,n,r,i,a,s,o){let l=[],u=Object.getOwnPropertyNames(e);for(let c of u)try{if("function"!=typeof e[c])continue;let u=rK(e,c,function(l){return function(...u){let d=l.apply(this,u);if(iw(d,o,e),!rQ(this.canvas,r,a,i)){s.getId(this.canvas);let r=iE([...u],o,e),i={type:t,property:c,args:r};n(this.canvas,i)}return d}});l.push(u)}catch(i){let r=rV(e,c,{set(e){n(this.canvas,{type:t,property:c,args:[e],setter:!0})}});l.push(r)}return l}class ix{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){let n=this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId;(n||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass,e.blockSelector,e.unblockSelector)}initCanvasMutationObserver(e,t,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=function(e,t,n,r){let i=[];try{let a=rK(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...a){return rQ(this,t,n,r)||"__context"in this||(this.__context=i),e.apply(this,[i,...a])}});i.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}(e,t,r,n),a=function(e,t,n,r,i,a){let s=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let a of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;let o=rK(t.CanvasRenderingContext2D.prototype,a,function(t){return function(...s){return rQ(this.canvas,n,i,r)||setTimeout(()=>{let t=[...s];if("drawImage"===a&&t[0]&&t[0]instanceof HTMLCanvasElement){let e=t[0],n=e.getContext("2d"),r=null==n?void 0:n.getImageData(0,0,e.width,e.height),i=null==r?void 0:r.data;t[0]=JSON.stringify(i)}e(this.canvas,{type:Y["2D"],property:a,args:t})},0),t.apply(this,s)}});s.push(o)}catch(r){let n=rV(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:Y["2D"],property:a,args:[t],setter:!0})}});s.push(n)}return()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror),s=function(e,t,n,r,i,a){let s=[];return s.push(...ik(t.WebGLRenderingContext.prototype,Y.WebGL,e,n,r,i,a,t)),void 0!==t.WebGL2RenderingContext&&s.push(...ik(t.WebGL2RenderingContext.prototype,Y.WebGL2,e,n,r,i,a,t)),()=>{s.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n,this.mirror);this.resetObservers=()=>{i(),a(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["type"]);return t}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}function iT(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let iR={map:{},getId:e=>e&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){let t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function iI(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:s=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskTextClass:c="rr-mask",maskTextSelector:p=null,maskInputSelector:f=null,unmaskTextSelector:m=null,unmaskInputSelector:_=null,inlineStylesheet:y=!0,maskAllText:g=!1,maskAllInputs:v,maskInputOptions:b,slimDOMOptions:w,maskInputFn:E,maskTextFn:S,hooks:k,packFn:x,sampling:T={},mousemoveWait:R,recordCanvas:I=!1,userTriggeredOnInput:O=!1,collectFonts:C=!1,inlineImages:A=!1,plugins:N,keepIframeSrcFn:D=()=>!1,onMutation:P}=e;if(!n)throw Error("emit function is required");void 0!==R&&void 0===T.mousemove&&(T.mousemove=R);let L=!0===v?{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!==b?b:{},U=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};!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=function(e){if(!(0 in arguments))throw TypeError("1 argument is required");do if(this===e)return!0;while(e=e&&e.parentNode);return!1})}();let M=0,j=e=>{for(let t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&(e=x(e)),e};d=(e,a)=>{var s;if((null===(s=it[0])||void 0===s?void 0:s.isFrozen())&&e.type!==z.FullSnapshot&&!(e.type===z.IncrementalSnapshot&&e.data.source===G.Mutation)&&it.forEach(e=>e.unfreeze()),n(j(e),a),e.type===z.FullSnapshot)t=e,M=0;else if(e.type===z.IncrementalSnapshot){if(e.data.source===G.Mutation&&e.data.isAttachIframe)return;M++;let n=i&&M>=i,a=r&&e.timestamp-t.timestamp>r;(n||a)&&h(!0)}};let B=e=>{d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.Mutation},e)}))},F=e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.Scroll},e)})),$=e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.CanvasMutation},e)})),q=new ip({mutationCb:B}),Y=new ix({recordCanvas:I,mutationCb:$,win:window,blockClass:a,blockSelector:s,unblockSelector:o,mirror:iR}),H=new im({mutationCb:B,scrollCb:F,bypassOptions:{onMutation:P,blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:c,maskTextSelector:p,unmaskTextSelector:m,maskInputSelector:f,unmaskInputSelector:_,inlineStylesheet:y,maskAllText:g,maskInputOptions:L,maskTextFn:S,maskInputFn:E,recordCanvas:I,inlineImages:A,sampling:T,slimDOMOptions:U,iframeManager:q,canvasManager:Y},mirror:iR});h=(e=!1)=>{var t,n,r,i;d(iT({type:z.Meta,data:{href:window.location.href,width:rX(),height:rJ()}}),e),it.forEach(e=>e.lock());let[l,u]=function(e,t){let{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:i=null,maskTextClass:a="rr-mask",maskTextSelector:s=null,unmaskTextSelector:o=null,inlineStylesheet:l=!0,inlineImages:u=!1,recordCanvas:c=!1,maskInputSelector:d=null,unmaskInputSelector:h=null,maskAllText:p=!1,maskAllInputs:f=!1,maskTextFn:m,maskInputFn:_,slimDOM:y=!1,dataURLOptions:g,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:E,keepIframeSrcFn:S=()=>!1}=t||{},k={};return[rq(e,{doc:e,map:k,blockClass:n,blockSelector:r,unblockSelector:i,maskTextClass:a,maskTextSelector:s,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:l,maskInputSelector:d,unmaskInputSelector:h,maskAllText:p,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,maskTextFn:m,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:g,inlineImages:u,recordCanvas:c,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:E,keepIframeSrcFn:S}),k]}(document,{blockClass:a,blockSelector:s,unblockSelector:o,maskTextClass:c,maskTextSelector:p,unmaskTextSelector:m,maskInputSelector:f,unmaskInputSelector:_,inlineStylesheet:y,maskAllText:g,maskAllInputs:L,maskTextFn:S,slimDOM:U,recordCanvas:I,inlineImages:A,onSerialize:e=>{r2(e)&&q.addIframe(e),r5(e)&&H.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{q.attachIframe(e,t),H.observeAttachShadow(e)},keepIframeSrcFn:D});if(!l)return console.warn("Failed to snapshot the document");iR.map=u,d(iT({type:z.FullSnapshot,data:{node:l,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null==document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null==document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null==document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null==document?void 0:document.documentElement.scrollTop)||(null===(i=null===(r=null==document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===i?void 0:i.scrollTop)||(null==document?void 0:document.body.scrollTop)||0}}})),it.forEach(e=>e.unlock())};try{let e=[];e.push(rY("DOMContentLoaded",()=>{d(iT({type:z.DomContentLoaded,data:{}}))}));let t=e=>{var t;return ie(ic)({onMutation:P,mutationCb:B,mousemoveCb:(e,t)=>d(iT({type:z.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.MouseInteraction},e)})),scrollCb:F,viewportResizeCb:e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.ViewportResize},e)})),inputCb:e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.Input},e)})),mediaInteractionCb:e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.MediaInteraction},e)})),styleSheetRuleCb:e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.StyleSheetRule},e)})),styleDeclarationCb:e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.StyleDeclaration},e)})),canvasMutationCb:$,fontCb:e=>d(iT({type:z.IncrementalSnapshot,data:Object.assign({source:G.Font},e)})),blockClass:a,ignoreClass:l,ignoreSelector:u,maskTextClass:c,maskTextSelector:p,unmaskTextSelector:m,maskInputSelector:f,unmaskInputSelector:_,maskInputOptions:L,inlineStylesheet:y,sampling:T,recordCanvas:I,inlineImages:A,userTriggeredOnInput:O,collectFonts:C,doc:e,maskAllText:g,maskInputFn:E,maskTextFn:S,blockSelector:s,unblockSelector:o,slimDOMOptions:U,mirror:iR,iframeManager:q,shadowDomManager:H,canvasManager:Y,plugins:(null===(t=null==N?void 0:N.filter(e=>e.observer))||void 0===t?void 0:t.map(e=>({observer:e.observer,options:e.options,callback:t=>d(iT({type:z.Plugin,data:{plugin:e.name,payload:t}}))})))||[]},k)};q.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{h(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(rY("load",()=>{d(iT({type:z.Load,data:{}})),n()},window)),()=>{e.forEach(e=>e())}}catch(e){console.warn(e)}}function iO(e){return e>9999999999?e:1e3*e}function iC(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:z.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:tu(t,10,1e3)}}),"console"===t.category)))}function iA(e){let t=iN(e);if(!t||!(t instanceof Element))return t;let n=t.closest("button,a");return n||t}function iN(e){return"object"==typeof e&&e&&"target"in e?e.target:e}iI.addCustomEvent=(e,t)=>{if(!d)throw Error("please add custom event after start recording");d(iT({type:z.Custom,data:{tag:e,payload:t}}))},iI.freezePage=()=>{it.forEach(e=>e.freeze())},iI.takeFullSnapshot=e=>{if(!h)throw Error("please take full snapshot after start recording");h(e)},iI.mirror=iR;class iD{constructor(e,t,n=iC){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=()=>{this._lastScroll=iL()},n=(e=()=>{this._lastMutation=iL()},p||(p=[],et(rg,"open",function(e){return function(...t){if(p)try{p.forEach(e=>e())}catch(e){}return e.apply(rg,t)}})),p.push(e),()=>{let t=p?p.indexOf(e):-1;t>-1&&p.splice(t,1)}),r=e=>{if(!e.target)return;let t=iA(e);t&&this._handleMultiClick(t)},i=new MutationObserver(()=>{this._lastMutation=iL()});i.observe(rg.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),rg.addEventListener("scroll",t,{passive:!0}),rg.addEventListener("click",r,{passive:!0}),this._teardown=()=>{rg.removeEventListener("scroll",t),rg.removeEventListener("click",r),n(),i.disconnect(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n,r;if(r=this._ignoreSelector,!iP.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||r&&t.matches(r)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let i={timestamp:(n=e.timestamp)>9999999999?n/1e3:n,clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===i.node&&1>Math.abs(e.timestamp-i.timestamp))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=iL();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:a}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:rg.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,s);return}if(i>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:rg.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}let iP=["A","BUTTON","INPUT"];function iL(){return Date.now()/1e3}function iU(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(j=Z||(Z={}))[j.Document=0]="Document",j[j.DocumentType=1]="DocumentType",j[j.Element=2]="Element",j[j.Text=3]="Text",j[j.CDATA=4]="CDATA",j[j.Comment=5]="Comment";let iM=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]),ij=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?iA(e.event):iN(e.event),t=J(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return iU({category:`ui.${e.name}`,...iB(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r&&t.event;!r||!e.clickDetector||!i||i.altKey||i.metaKey||i.ctrlKey||i.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,iA(t.event)),iC(e,n)};function iB(e,t){let n=e&&"__sn"in e&&e.__sn.type===Z.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map(e=>"__sn"in e&&e.__sn.type===Z.Text&&e.__sn.textContent).filter(Boolean).map(e=>e.trim()).join(""):"",attributes:function(e){let t={};for(let n in e)if(iM.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(n.attributes)}}:{}}}let iF=["name","type","startTime","transferSize","duration"];function i$(e){return function(t){return iF.every(n=>e[n]===t[n])}}let iz=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function iG(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(eb.info(e),t&&iY(e))}function iq(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(eb.info(e),t&&setTimeout(()=>{iY(e)},0))}function iY(e){let t=eD();t.addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class iH extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class iW{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new iH;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?iO(e):null}}class iZ{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():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){iG("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let a=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",a),!t.success){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("[Replay]",t.response),i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class iV{constructor(e){this._worker=new iZ(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=iO(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new iH):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class iK{constructor(e){this._fallback=new iW,this._compression=new iV(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){iG("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("[Replay] Failed to add events when switching buffers.",e)}}}function iJ(){try{return"sessionStorage"in rg&&!!rg.sessionStorage}catch(e){return!1}}function iX(e){return void 0!==e&&Math.random()<e}function iQ(e){if(iJ())try{rg.sessionStorage.setItem(rv,JSON.stringify(e))}catch(e){}}function i0(e){let t=Date.now(),n=e.id||eu(),r=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,s=e.sampled,o=e.previousSessionId;return{id:n,started:r,lastActivity:i,segmentId:a,sampled:s,previousSessionId:o}}function i1({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=iX(e)?"session":!!t&&"buffer",a=i0({sampled:i,previousSessionId:r});return n&&iQ(a),a}function i2(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function i5(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return i2(e.started,t,r)||i2(e.lastActivity,n,r)}function i6(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!i5(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function i3({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},i){let a=i.stickySession&&function(e){if(!iJ())return null;try{let t=rg.sessionStorage.getItem(rv);if(!t)return null;let n=JSON.parse(t);return iq("[Replay] Loading existing session",e),i0(n)}catch(e){return null}}(e);return a?i6(a,{sessionIdleExpire:t,maxReplayDuration:n})?(iq("[Replay] Session in sessionStorage is expired, creating new one..."),i1(i,{previousSessionId:a.id})):a:(iq("[Replay] Creating new session",e),i1(i,{previousSessionId:r}))}function i4(e,t,n){return!!i9(e,t)&&(i8(e,t,n),!0)}async function i8(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===z.Custom)return t(e)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(r){let t=r&&r instanceof iH?"addEventSizeExceeded":"addEvent";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error(r),await e.stop({reason:t});let n=eD().getClient();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function i9(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=iO(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(iG(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function i7(e){return"transaction"===e.type}function ae(e){let t=function(){let e=eD().getClient();if(!e)return!1;let t=e.getTransport();return!!t&&(t.send.__sentry__baseTransport__||!1)}();return(n,r)=>{if(!e.isEnabled()||n.type&&!i7(n))return;let i=r&&r.statusCode;if(!t||i&&!(i<200)&&!(i>=300)){if(i7(n)){!function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,n);return}!function(e,t){let n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"===e.recordingMode&&t.tags&&t.tags.replayId&&setTimeout(()=>{e.sendBufferedReplayOrFlush()})}(e,n)}}}function at(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let s=e.throttledAddEvent({type:z.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return"string"==typeof s?Promise.resolve(null):s})}function an(e,t){var n;e.isEnabled()&&null!==t&&(n=t.name,(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)||!e.getOptions()._experiments.traceInternals)&&function(e){let t=eD().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(n)||e.addUpdate(()=>(at(e,[t]),!0)))}let ar=["true","false","null"];function ai(e){let t=function(e){let t=[];for(let n=0;n<e.length;n++)!function(e,t,n){let r=e[e.length-1],i=t[n];if(!/\s/.test(i)){if('"'===i&&!function e(t,n){let r=t[n-1];return"\\"===r&&!e(t,n-1)}(t,n)){!function(e,t){if(14===t){e.pop(),e.push(15);return}if(22===t){e.pop(),e.push(23);return}if(13===t){e.push(14);return}if(21===t){e.push(22);return}if(10===t){e.push(12);return}12===t&&(e.pop(),e.push(11))}(e,r);return}switch(i){case"{":!function(e,t){if(!t||13===t){e.push(10);return}21===t&&e.push(10),20===t&&e.push(10)}(e,r);break;case"[":!function(e,t){if(!t||13===t){e.push(20),e.push(21);return}21===t&&(e.push(20),e.push(21)),20===t&&(e.push(20),e.push(21))}(e,r);break;case":":11===r&&(e.pop(),e.push(13));break;case",":!function(e,t){if(13===t){e.pop();return}if(15===t){e.pop(),e.pop();return}21!==t&&23===t&&e.pop()}(e,r);break;case"}":10===r&&e.pop(),13===r&&(e.pop(),e.pop()),15===r&&(e.pop(),e.pop(),e.pop()),13===e[e.length-1]&&e.push(15),21===e[e.length-1]&&e.push(23);break;case"]":20===r&&e.pop(),21===r&&(e.pop(),e.pop()),23===r&&(e.pop(),e.pop(),e.pop()),13===e[e.length-1]&&e.push(15),21===e[e.length-1]&&e.push(23)}}}(t,e,n);return t}(e);return function(e,t){if(!t.length)return e;let n=e,r=t.length-1,i=t[r];n=function(e,t){switch(t){case 10:return`${e}"~~":"~~"`;case 11:return`${e}:"~~"`;case 12:return`${e}~~":"~~"`;case 13:return function(e){let t=e.lastIndexOf(":"),n=e.slice(t+1);return ar.includes(n.trim())?`${e},"~~":"~~"`:`${e.slice(0,t+1)}"~~"`}(e);case 14:case 22:return`${e}~~"`;case 15:return`${e},"~~":"~~"`;case 20:return`${e}"~~"`;case 21:return function(e){let t=function(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(","===n||"["===n)return t}return -1}(e);if(t>-1){let n=e.slice(t+1);return ar.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case 23:return`${e},"~~"`}return e}(n,i);for(let e=r;e>=0;e--){let r=t[e];switch(r){case 10:n=`${n}}`;break;case 20:n=`${n}]`}}return n}(e,t)}function aa(e,t){if(e)try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=ah(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function as(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function ao(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?ah(e):void 0}function al(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:s,request:o,response:l}=t,u={type:e,start:n/1e3,end:r/1e3,name:i,data:el({method:a,statusCode:s,request:o,response:l})};return u}function au(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function ac(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};let t=e.length>15e4;if(function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e))try{let n=t?ai(e.slice(0,15e4)):e,r=JSON.parse(n);return{body:r,warnings:t?["JSON_TRUNCATED"]:[]}}catch(n){return{body:t?`${e.slice(0,15e4)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,15e4)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(n);return r.body=i,a.length>0&&(r._meta={warnings:a}),r}function ad(e,t){return Object.keys(e).reduce((n,r)=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=e[r]),n},{})}function ah(e){return new URLSearchParams(e).toString()}function ap(e,t){let n=function(e,t=rg.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(rg.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return ee(n,t)}async function af(e,t,n){try{let r=await am(e,t,n),i=al("resource.fetch",r);an(n.replay,i)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("[Replay] Failed to capture fetch breadcrumb",e)}}async function am(e,t,n){let{startTimestamp:r,endTimestamp:i}=t,{url:a,method:s,status_code:o=0,request_body_size:l,response_body_size:u}=e.data,c=ap(a,n.networkDetailAllowUrls)&&!ap(a,n.networkDetailDenyUrls),d=c?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=1===n.length&&"string"!=typeof n[0]?ab(n[0],t):2===n.length?ab(n[1],t):{};if(!e)return ac(i,r,void 0);let a=ag(n),s=ao(a);return ac(i,r,s)}(n,t.input,l):au(l),h=await a_(c,n,t.response,u);return{startTimestamp:r,endTimestamp:i,url:a,method:s,statusCode:o,request:d,response:h}}async function a_(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},i,a){if(!e&&void 0!==a)return au(a);let s=av(i.headers,r);if(!t&&void 0!==a)return ac(s,a,void 0);try{let r=i.clone(),o=await ay(r),l=o&&o.length&&void 0===a?aa(o,n):a;if(!e)return au(l);if(t)return ac(s,l,o);return ac(s,l,void 0)}catch(e){return ac(s,a,void 0)}}async function ay(e){try{return await e.text()}catch(e){return}}function ag(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function av(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function ab(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?av(n,t):Array.isArray(n)?{}:ad(n,t):{}}async function aw(e,t,n){try{let r=function(e,t,n){let{startTimestamp:r,endTimestamp:i,input:a,xhr:s}=t,{url:o,method:l,status_code:u=0,request_body_size:c,response_body_size:d}=e.data;if(!o)return null;if(!ap(o,n.networkDetailAllowUrls)||ap(o,n.networkDetailDenyUrls)){let e=au(c),t=au(d);return{startTimestamp:r,endTimestamp:i,url:o,method:l,statusCode:u,request:e,response:t}}let h=s[e3],p=h?ad(h.request_headers,n.networkRequestHeaders):{},f=ad(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return e[n.toLowerCase()]=r,e},{}):{}}(s),n.networkResponseHeaders),m=ac(p,c,n.networkCaptureBodies?ao(a):void 0),_=ac(f,d,n.networkCaptureBodies?t.xhr.responseText:void 0);return{startTimestamp:r,endTimestamp:i,url:o,method:l,statusCode:u,request:m,response:_}}(e,t,n),i=al("resource.xhr",r);an(n.replay,i)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("[Replay] Failed to capture fetch breadcrumb",e)}}let aE=null,aS=e=>t=>{if(!e.isEnabled())return;let n=function(e){let t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return aE!==t&&t?(aE=t,!t.category||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return iU(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=tu(e,7),r=JSON.stringify(t);if(r.length>5e3){let e=ai(r.slice(0,5e3)),t=JSON.parse(e);return n=!0,t}return t}catch(e){}return e});return iU({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):iU(t):null}(t);n&&iC(e,n)};async function ak(e){try{return Promise.all(at(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(rg.performance.memory)]))}catch(e){return[]}}let ax={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:aR(a),end:aR(i),name:r,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=aR(i);return{type:n,name:r,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:h,startTime:p,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:aR(p),end:aR(a),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:h}}},"largest-contentful-paint":function(e){let{entryType:t,startTime:n,size:r}=e,i=0;if(rg.performance){let e=rg.performance.getEntriesByType("navigation")[0];i=e&&e.activationStart||0}let a=Math.max(n-i,0),s=aR(i)+a/1e3;return{type:t,name:t,start:s,end:s,data:{value:a,size:r,nodeId:iI.mirror.getId(e.element)}}}};function aT(e){return void 0===ax[e.entryType]?null:ax[e.entryType](e)}function aR(e){return((e_.Z1||rg.performance.timeOrigin)+e)/1e3}async function aI({client:e,scope:t,replayId:n,event:r}){let i="object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations),a=await tg(e.getOptions(),r,{event_id:n,integrations:i},t);if(!a)return null;a.platform=a.platform||"javascript";let s=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:l}=s&&s.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0"},a}async function aO({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){var s;let o;let l=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)}
`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder,i=t.encode(r);(n=new Uint8Array(i.length+e.length)).set(i),n.set(e,i.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:h}=r,p=eD(),f=p.getClient(),m=p.getScope(),_=f&&f.getTransport(),y=f&&f.getDsn();if(!f||!_||!y||!a.sampled)return;let g={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:n,replay_type:a.sampled},v=await aI({scope:m,client:f,replayId:t,event:g});if(!v){f.recordDroppedEvent("event_processor","replay",g),iG("An event processor returned `null`, will not send event.");return}delete v.sdkProcessingMetadata;let b=(s=f.getOptions().tunnel,tc(tm(v,tf(v),s,y),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await _.send(b)}catch(t){let e=Error(rb);try{e.cause=t}catch(e){}throw e}if(!o)return o;if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new aC(o.statusCode);return o}class aC extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function aA(e,t={count:0,interval:5e3}){let{recordingData:n,options:r}=e;if(n.length)try{return await aO(e),!0}catch(n){var i;if(n instanceof aC)throw n;if(i={_retryCount:t.count},eD().setContext("Replays",i),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&tA(n),t.count>=3){let e=Error(`${rb} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{setTimeout(async()=>{try{await aA(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let aN="__THROTTLED";class aD{constructor({options:e,recordingOptions:t}){aD.prototype.__init.call(this),aD.prototype.__init2.call(this),aD.prototype.__init3.call(this),aD.prototype.__init4.call(this),aD.prototype.__init5.call(this),aD.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEvents=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,a;let s=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function u(){return i&&clearTimeout(i),i=setTimeout(o,t),s&&void 0===a&&(a=setTimeout(o,s)),r}return u.cancel=l,u.flush=function(){return void 0!==i||void 0!==a?o():r},u}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),s=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),a()>=300){let e=s;return s=!0,e?"__SKIPPED":aN}s=!1;let o=r.get(n)||0;return r.set(n,o+1),e(...t)}}((e,t)=>i9(this,e)?i8(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new iD(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options;if(!(t<=0)||!(n<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",iq(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw Error("Replay buffering is in progress, call `flush()` to save the replay");iq("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);let e=i3({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw Error("Replay recording is already in progress");iq("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);let e=i3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;this._stopRecording=iI({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("[Replay] Received replay event after session expired.");return}let i=r||!t;t=!0,e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!i4(e,n,i))return!0;if(!i)return!1;if(i&&e.session&&0===e.session.segmentId&&i4(e,function(e){let t=e.getOptions();return{type:z.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){let t=e.eventBuffer.getEarliestTimestamp();t&&(iG(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&iQ(e.session))}return"session"===e.recordingMode&&e.flush(),!0})}),onMutation:this._onMutationHandler})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{iG(`[Replay] Stopping Replay${t?` triggered by ${t}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(iJ())try{rg.sessionStorage.removeItem(rv)}catch(e){}}(),this.session=void 0}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),iG("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),iG("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();iG("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&i2(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${rg.location.pathname}${rg.location.hash}${rg.location.search}`,t=`${rg.location.origin}${e}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===aN){let e=iU({category:"replay.throttled"});this.addUpdate(()=>!i4(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastTransaction||eD().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e}){if(e&&window.Worker)try{let e=function(){let e=new Blob([iz]);return URL.createObjectURL(e)}();iG("[Replay] Using compression worker");let t=new Worker(e);return new iK(t)}catch(e){iG("[Replay] Failed to create compression worker")}return iG("[Replay] Using simple buffer"),new iW}({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&tA(e)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=i3({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!i6(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{rg.document.addEventListener("visibilitychange",this._handleVisibilityChange),rg.addEventListener("blur",this._handleWindowBlur),rg.addEventListener("focus",this._handleWindowFocus),rg.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=eD().getScope(),n=eD().getClient();t.addScopeListener(aS(e)),e9("dom",ij(e)),e9("history",t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(at(e,[n]),!1)))}),function(e){let t=eD().getClient();try{let n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:o}=e.getOptions(),l={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:o};t&&t.on?t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t,n){let{xhr:r,input:i}=t,a=aa(i,n.textEncoder),s=r.getResponseHeader("content-length")?as(r.getResponseHeader("content-length")):aa(r.response,n.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==s&&(e.data.response_body_size=s)}(t,n,e),aw(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t,n){let{input:r,response:i}=t,a=ag(r),s=aa(a,n.textEncoder),o=i?as(i.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==o&&(e.data.response_body_size=o)}(t,n,e),af(t,n,e))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Error when enriching network breadcrumb")}})(l,e,t)):(e9("fetch",t=>{if(!e.isEnabled())return;let n=function(e){let{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;if(!n)return null;let{method:a,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:a,statusCode:i?i.status:void 0}}}(t);an(e,n)}),e9("xhr",t=>{if(!e.isEnabled())return;let n=function(e){let{startTimestamp:t,endTimestamp:n,xhr:r}=e,i=r[e3];if(!t||!n||!i)return null;let{method:a,url:s,status_code:o}=i;return void 0===s?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:a,statusCode:o}}}(t);an(e,n)}))}catch(e){}}(e),eI(function(e,t=!1){let n=t?ae(e):void 0;return(t,r)=>{if(!e.isEnabled())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!i7(t))return t;if(!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&(r.originalException&&r.originalException.__rrweb__||t.exception.values.some(e=>!!e.stacktrace&&!!e.stacktrace.frames&&!!e.stacktrace.frames.length&&e.stacktrace.frames.some(e=>e.filename&&e.filename.includes("/rrweb/src/"))))&&!e.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.log("[Replay] Ignoring error from rrweb internals",t),null;let i="buffer"===e.recordingMode&&t.message!==rb&&!!t.exception&&!t.type&&iX(e.getOptions().errorSampleRate),a=i||"session"===e.recordingMode;return a&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}}(e,!(n&&n.on))),n&&n.on&&(n.on("afterSendEvent",ae(e)),n.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(t.replay_id=n)}),n.on("startTransaction",t=>{e.lastTransaction=t}),n.on("finishTransaction",t=>{e.lastTransaction=t}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in rg&&(this._performanceObserver=function(e){let t=new PerformanceObserver(t=>{let n=function(e,t){let[n,r,i]=e.reduce((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e),[[],[],[]]),a=[],s=[],o=r.length?r[r.length-1]:void 0;return t.forEach(e=>{if("largest-contentful-paint"===e.entryType){(!o||o.startTime<e.startTime)&&(o=e);return}if("navigation"===e.entryType){!(e.duration>0)||n.find(i$(e))||s.find(i$(e))||s.push(e);return}a.push(e)}),[...o?[o]:[],...n,...i,...a,...s].sort((e,t)=>e.startTime-t.startTime)}(e.performanceEvents,t.getEntries());e.performanceEvents=n});return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(e=>{try{t.observe({type:e,buffered:!0})}catch(e){}}),t}(this))}_removeListeners(){try{rg.document.removeEventListener("visibilitychange",this._handleVisibilityChange),rg.removeEventListener("blur",this._handleWindowBlur),rg.removeEventListener("focus",this._handleWindowFocus),rg.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=void 0)}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===rg.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=iU({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=iU({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:a,key:s,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!s)return null;let l=n||i||a,u=1===s.length;if(!l&&u)return null;let c=J(o,{maxStringLength:200})||"<unknown>",d=iB(o,c);return iU({category:"ui.keyDown",message:c,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:a,key:s}})}(t);n&&iC(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;let t=i5(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire});t||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;let t=this.checkAndHandleExpiredSession();if(!t){iG("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_triggerFullSnapshot(e=!0){try{iG("[Replay] Taking full rrweb snapshot"),iI.takeFullSnapshot(e)}catch(e){this._handleException(e)}}_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:z.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(at(this,e.map(aT).filter(Boolean)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await ak(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await aA({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});let e=eD().getClient();e&&e.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error("[Replay] No session found to flush.");return}let t=this.session.started,n=Date.now(),r=n-t;this._debouncedFlush.cancel();let i=r<this._options.minReplayDuration,a=r>this._options.maxReplayDuration+5e3;if(i||a){iG(`[Replay] Session duration (${Math.floor(r/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}let s=this.eventBuffer;if(s&&0===this.session.segmentId&&!s.hasCheckout&&iG("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&iQ(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=iU({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function aP(e,t,n,r){let i="string"==typeof r?r.split(","):[],a=[...e,...i,...t];return void 0!==n&&("string"==typeof n&&a.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),a.join(",")}function aL(){return"undefined"!=typeof window&&(!(0,r_.KV)()||void 0!==ry&&"renderer"===ry.type)}let aU='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',aM=["content-length","content-type","accept"],aj=!1;class aB{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:a=!0,_experiments:s={},sessionSampleRate:o,errorSampleRate:l,maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:h=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:y=[],networkCaptureBodies:g=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],unmask:E=[],block:S=[],unblock:k=[],ignore:x=[],maskFn:T,beforeAddRecordingEvent:R,blockClass:I,blockSelector:O,maskInputOptions:C,maskTextClass:A,maskTextSelector:N,ignoreClass:D}={}){if(this.name=aB.id,this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{...C||{},password:!0},maskTextFn:T,maskInputFn:T,...function({mask:e,unmask:t,block:n,unblock:r,ignore:i,blockClass:a,blockSelector:s,maskTextClass:o,maskTextSelector:l,ignoreClass:u}){let c=aP(e,[".sentry-mask","[data-sentry-mask]"],o,l),d=aP(t,[".sentry-unmask","[data-sentry-unmask]"]),h={maskTextSelector:c,unmaskTextSelector:d,maskInputSelector:c,unmaskInputSelector:d,blockSelector:aP(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,s),unblockSelector:aP(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:aP(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return a instanceof RegExp&&(h.blockClass=a),o instanceof RegExp&&(h.maskTextClass=o),h}({mask:w,unmask:E,block:S,unblock:k,ignore:x,blockClass:I,blockSelector:O,maskTextClass:A,maskTextSelector:N,ignoreClass:D}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:i,sessionSampleRate:o,errorSampleRate:l,useCompression:a,blockAllMedia:d,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:h,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:m,networkDetailAllowUrls:_,networkDetailDenyUrls:y,networkCaptureBodies:g,networkRequestHeaders:aF(v),networkResponseHeaders:aF(b),beforeAddRecordingEvent:R,_experiments:s},"number"==typeof o&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysSessionSampleRate: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof l&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
This option is deprecated and will be removed soon.
Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
Sentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${aU}`:aU),this._isInitialized&&aL())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return aj}set _isInitialized(e){aj=e}setupOnce(){aL()&&(this._setup(),setTimeout(()=>this._initialize()))}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):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){let e=function(e){let t=eD().getClient(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...el(e)};return n?(null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate)):console.warn("SDK client is not available."),r}(this._initialOptions);this._replay=new aD({options:e,recordingOptions:this._recordingOptions})}}function aF(e){return[...aM,...e.map(e=>e.toLowerCase())]}aB.__initStatic();var a$=n(4406),az=window;az.__sentryRewritesTunnelPath__=void 0,az.SENTRY_RELEASE={id:"a1955b0db26ba091a2537e2f1c83c0dbdd1b4d4e"},az.__rewriteFramesAssetPrefixPath__="",function(e){let t=rf.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=to(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(r){let i=r[1],a=`${t}?o=${i}&p=${n.projectId}`;e.tunnel=a,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.info(`Tunneling events to "${a}"`)}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(B={dsn:"https://0e580399459c40d8927340bf0e757a30@o4505107461963776.ingest.sentry.io/4505107471990784",tracesSampleRate:.1,debug:!1,replaysOnErrorSampleRate:.1,replaysSessionSampleRate:.1,integrations:[new aB({maskAllText:!0,blockAllMedia:!0})],environment:a$.env.VERCEL_ENV}),B._metadata=B._metadata||{},B._metadata.sdk=B._metadata.sdk||{name:"sentry.javascript.nextjs",packages:["nextjs","react"].map(e=>({name:`npm:@sentry/${e}`,version:e$})),version:e$},B.environment=B.environment||function(e){let t=e?"production":rl.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",function(e){let t=e.integrations||[],n=rm.__rewriteFramesAssetPrefixPath__||"",r=new eF({iteratee:e=>{try{let{origin:t}=new URL(e.filename);e.filename=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],a=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=a(n)):("call"===i||"optionalCall"===i)&&(n=a((...e)=>n.call(t,...e)),t=void 0)}return n}([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(t,"app://"),"access",e=>e.replace,"call",e=>e(n,"")])}catch(e){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e}});if(t=rs(r,t),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&eU(e)){let e=new ri({tracingOrigins:[...n7.tracingOrigins,/^(api\/)/],routingInstrumentation:rp});t=rs(e,t,{"options.routingInstrumentation":rp})}e.integrations=t}(B),B._metadata=B._metadata||{},B._metadata.sdk=B._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:e$}],version:e$},function(e={}){var t;void 0===e.defaultIntegrations&&(e.defaultIntegrations=nm),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),tN.SENTRY_RELEASE&&tN.SENTRY_RELEASE.id&&(e.release=tN.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);let n={...e,stackParser:Array.isArray(t=e.stackParser||nu)?eJ(...t):t,integrations:function(e){let t;let n=e.defaultIntegrations||[],r=e.integrations;n.forEach(e=>{e.isDefaultInstance=!0}),t=Array.isArray(r)?[...n,...r]:"function"==typeof r?em(r(n)):n;let i=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.keys(t).map(e=>t[e])}(t),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return -1}(i,e=>"Debug"===e.name);if(-1!==a){let[e]=i.splice(a,1);i.push(e)}return i}(e),transport:e.transport||(e1()?np:nf)};(function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?eb.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));let n=eD(),r=n.getScope();r.update(t.initialScope);let i=new e(t);n.bindClient(i)})(tL,n),e.autoSessionTracking&&function(){if(void 0===tN.document){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&eb.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}let e=eD();e.captureSession&&(n_(e),e9("history",({from:e,to:t})=>{void 0===e||e===t||n_(eD())}))}()}(B),eD().configureScope(e=>{e.setTag("runtime","browser");let t=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;t.id="NextClient404Filter",e.addEventProcessor(t)})},4258:function(e,t,n){var r=n(4406);n(1633);var i=n(2784),a=i&&"object"==typeof i&&"default"in i?i:{default:i};function s(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)}}var o=void 0!==r&&r.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},StyleSheet=function(){function StyleSheet(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,a=void 0===i?o:i;u(l(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",u("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var s=document.querySelector('meta[property="csp-nonce"]');this._nonce=s?s.getAttribute("content"):null}var e,t=StyleSheet.prototype;return t.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(u(l(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var n=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];u(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,n){t&&u(l(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},s(StyleSheet.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e&&s(StyleSheet,e),StyleSheet}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return d[r]||(d[r]="jsx-"+c(e+"-"+n)),d[r]}function p(e,t){var n=e+t;return d[n]||(d[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[n]}var f=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=r||new StyleSheet({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),r&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=a,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=h(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var _=a.default.useInsertionEffect||a.default.useLayoutEffect,y=new f;function g(e){var t=y||i.useContext(m);return t&&_(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}g.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=g},7108:function(e,t,n){"use strict";e.exports=n(4258).style},1633:function(){},324:function(){},1374:function(){},3982:function(){},9231:function(e){e.exports={style:{fontFamily:"'__Poppins_199403', '__Poppins_Fallback_199403'",fontStyle:"normal"},className:"__className_199403"}},5632:function(e,t,n){e.exports=n(5123)},3534:function(e,t,n){e.exports=n(2898)},2512:function(e,t,n){"use strict";var r,i=n(3443),a=n(6552),s=n(5982),o=n(3198),l=n(1341),u=function(e){s(!1,e)},c=String.prototype.replace,d=String.prototype.split,h="||||",p=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},f={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:p,chinese:function(){return 0},croatian:p,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:p,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var _=(r={},function(e,t){var n,s,o=r[t];return o&&!e.pluralTypes[o]&&(o=null,r[t]=o),!o&&(o=(n=e.pluralTypeToLanguages,s={},i(a(n),function(e){var t=e[0];i(e[1],function(e){s[e]=t})}),s)[t]||s[d.call(t,/-/,1)[0]]||s.en)&&(r[t]=o),o}),y=/%\{(.*?)\}/g;function g(e,t,n,r,i){if("string"!=typeof e)throw TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var a=e,s="number"==typeof t?{smart_count:t}:t;if(null!=s.smart_count&&e){var u,p=i||f,m=d.call(e,h),g=_(p,n||"en");a=l(m[u=s.smart_count,p.pluralTypes[g](u)]||m[0])}return c.call(a,r||y,function(e,t){return o(s,t)&&null!=s[t]?s[t]:e})}function v(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?g:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||u,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if(t===h||n===h)throw RangeError('"'+h+'" token is reserved for pluralization');return RegExp(m(t)+"(.*?)"+m(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||f}v.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},v.prototype.extend=function(e,t){i(a(e||{}),function(e){var n=e[0],r=e[1],i=t?t+"."+n:n;"object"==typeof r?this.extend(r,i):this.phrases[i]=r},this)},v.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:i(a(e||{}),function(e){var n=e[0],r=e[1],i=t?t+"."+n:n;"object"==typeof r?this.unset(r,i):delete this.phrases[i]},this)},v.prototype.clear=function(){this.phrases={}},v.prototype.replace=function(e){this.clear(),this.extend(e)},v.prototype.t=function(e,t){var n,r,i=null==t?{}:t;return"string"==typeof this.phrases[e]?n=this.phrases[e]:"string"==typeof i._?n=i._:this.onMissingKey?r=(0,this.onMissingKey)(e,i,this.currentLocale,this.tokenRegex,this.pluralRules):(this.warn('Missing translation for key: "'+e+'"'),r=e),"string"==typeof n&&(r=g(n,i,this.currentLocale,this.tokenRegex,this.pluralRules)),r},v.prototype.has=function(e){return o(this.phrases,e)},v.transformPhrase=function(e,t,n){return g(e,t,n)},e.exports=v},9500:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&i&&"function"==typeof i.get?i.get:null,s=r&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=o&&l&&"function"==typeof l.get?l.get:null,c=o&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,m=Object.prototype.toString,_=Function.prototype.toString,y=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,b=String.prototype.toUpperCase,w=String.prototype.toLowerCase,E=RegExp.prototype.test,S=Array.prototype.concat,k=Array.prototype.join,x=Array.prototype.slice,T=Math.floor,R="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,A="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C?"object":"symbol")?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=g.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var L=n(3260),U=L.custom,M=$(U)?U:null;function j(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function B(e){return"[object Array]"===q(e)&&(!A||!("object"==typeof e&&A in e))}function F(e){return"[object RegExp]"===q(e)&&(!A||!("object"==typeof e&&A in e))}function $(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,i,o){var l=r||{};if(G(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(G(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!G(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(l,"indent")&&null!==l.indent&&"	"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(g.call(t,0,n.maxStringLength),n)+"... "+r+" more character"+(r>1?"s":"")}return j(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",n)}(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return b?P(t,E):E}if("bigint"==typeof t){var T=String(t)+"n";return b?P(t,T):T}var I=void 0===l.depth?5:l.depth;if(void 0===i&&(i=0),i>=I&&I>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var U=function(e,t){var n;if("	"===e.indent)n="	";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(l,i);if(void 0===o)o=[];else if(Y(o,t)>=0)return"[Circular]";function z(t,n,r){if(n&&(o=x.call(o)).push(n),r){var a={depth:l.depth};return G(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,i+1,o)}return e(t,l,i+1,o)}if("function"==typeof t&&!F(t)){var X=function(e){if(e.name)return e.name;var t=y.call(_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),Q=J(t,z);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(Q.length>0?" { "+k.call(Q,", ")+" }":"")}if($(t)){var ee=C?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||C?ee:W(ee)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var et,en="<"+w.call(String(t.nodeName)),er=t.attributes||[],ei=0;ei<er.length;ei++)en+=" "+er[ei].name+"="+j((et=er[ei].value,v.call(String(et),/"/g,"&quot;")),"double",l);return en+=">",t.childNodes&&t.childNodes.length&&(en+="..."),en+="</"+w.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ea=J(t,z);return U&&!function(e){for(var t=0;t<e.length;t++)if(Y(e[t],"\n")>=0)return!1;return!0}(ea)?"["+K(ea,U)+"]":"[ "+k.call(ea,", ")+" ]"}if("[object Error]"===q(t)&&(!A||!("object"==typeof t&&A in t))){var es=J(t,z);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===es.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(es,", ")+" }":"{ ["+String(t)+"] "+k.call(S.call("[cause]: "+z(t.cause),es),", ")+" }"}if("object"==typeof t&&m){if(M&&"function"==typeof t[M]&&L)return L(t,{depth:I-i});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eo=[];return s&&s.call(t,function(e,n){eo.push(z(n,t,!0)+" => "+z(e,t))}),V("Map",a.call(t),eo,U)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var el=[];return c&&c.call(t,function(e){el.push(z(e,t))}),V("Set",u.call(t),el,U)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if("[object Number]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return W(z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}(t))return W(z(R.call(t)));if("[object Boolean]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return W(f.call(t));if("[object String]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return W(z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!("[object Date]"===q(t)&&(!A||!("object"==typeof t&&A in t)))&&!F(t)){var eu=J(t,z),ec=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,ed=t instanceof Object?"":"null prototype",eh=!ec&&A&&Object(t)===t&&A in t?g.call(q(t),8,-1):ed?"Object":"",ep=(ec||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eh||ed?"["+k.call(S.call([],eh||[],ed||[]),": ")+"] ":"");return 0===eu.length?ep+"{}":U?ep+"{"+K(eu,U)+"}":ep+"{ "+k.call(eu,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return z.call(e,t)}function q(e){return m.call(e)}function Y(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}function H(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function W(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function V(e,t,n,r){return e+" ("+t+") {"+(r?K(n,r):k.call(n,", "))+"}"}function K(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function J(e,t){var n,r=B(e),i=[];if(r){i.length=e.length;for(var a=0;a<e.length;a++)i[a]=G(e,a)?t(e[a],e):""}var s="function"==typeof I?I(e):[];if(C){n={};for(var o=0;o<s.length;o++)n["$"+s[o]]=s[o]}for(var l in e)G(e,l)&&(!r||String(Number(l))!==l||!(l<e.length))&&(C&&n["$"+l]instanceof Symbol||(E.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e))));if("function"==typeof I)for(var u=0;u<s.length;u++)N.call(e,s[u])&&i.push("["+t(s[u])+"]: "+t(e[s[u]],e));return i}},5691:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=n(801),o=Object.prototype.propertyIsEnumerable,l=!o.call({toString:null},"toString"),u=o.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),f=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}};r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===a.call(e),r=s(e),o=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw TypeError("Object.keys called on a non-object");var h=u&&n;if(o&&e.length>0&&!i.call(e,0))for(var p=0;p<e.length;++p)d.push(String(p));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var _ in e)!(h&&"prototype"===_)&&i.call(e,_)&&d.push(String(_));if(l)for(var y=f(e),g=0;g<c.length;++g)!(y&&"constructor"===c[g])&&i.call(e,c[g])&&d.push(c[g]);return d}}e.exports=r},3464:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(801),a=Object.keys,s=a?function(e){return a(e)}:n(5691),o=Object.keys;s.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?o(r.call(e)):o(e)}):Object.keys=s,Object.keys||s},e.exports=s},801:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},1968:function(e,t,n){"use strict";var r=n(2977),i=n(2680),a=i("Object.prototype.propertyIsEnumerable"),s=i("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var i in t)a(t,i)&&s(n,[i,t[i]]);return n}},6552:function(e,t,n){"use strict";var r=n(4926),i=n(9429),a=n(1968),s=n(554),o=n(660),l=i(s(),Object);r(l,{getPolyfill:s,implementation:a,shim:o}),e.exports=l},554:function(e,t,n){"use strict";var r=n(1968);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},660:function(e,t,n){"use strict";var r=n(554),i=n(4926);e.exports=function(){var e=r();return i(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},4406:function(e){var t,n,r,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||o(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},6866:function(e,t){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=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,_=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,v=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 c:case d:case a:case o:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case _:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=a,t.Lazy=_,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},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)===a},t.isLazy=function(e){return w(e)===_},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===o},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===a||e===d||e===o||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y)},t.typeOf=w},8570:function(e,t,n){"use strict";e.exports=n(6866)},9251:function(e){var t=function(e){var t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return e&&n.test(e)?e.replace(t,"\\$&"):e},n=function(e){return"string"==typeof e},r=function(e){var t=[];return e.forEach(function(e){Array.isArray(e)?t=t.concat(e):t.push(e)}),t};e.exports=function(e,i,a){return Array.isArray(e)||(e=[e]),r(e.map(function(e){return n(e)?function(e,r,i){var a=0,s=0;if(""===e)return e;if(!e||!n(e))throw TypeError("First argument to react-string-replace#replaceString must be a string");var o=r;o instanceof RegExp||(o=RegExp("("+t(o)+")","gi"));for(var l=e.split(o),u=1,c=l.length;u<c;u+=2){if(void 0===l[u]||void 0===l[u-1]){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}s=l[u].length,a+=l[u-1].length,l[u]=i(l[u],u,a),a+=s}return l}(e,i,a):e}))}},3671:function(e,t,n){"use strict";var r=n(2680),i=n(8786),a=r("RegExp.prototype.exec"),s=n(5408);e.exports=function(e){if(!i(e))throw new s("`regex` must be a RegExp");return function(t){return null!==a(e,t)}}},7669:function(e,t,n){"use strict";var r=n(7286),i=n(5195),a=n(9299)(),s=n(326),o=n(5408),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new o("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(a?i(e,"length",t,!0,!0):i(e,"length",t)),e}},4454:function(e,t,n){"use strict";var r=n(2977),i=n(164),a=n(2680)("String.prototype.replace"),s=/^\s$/.test("᠎"),o=s?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=s?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){return a(a(i(r(this)),o,""),l,"")}},1341:function(e,t,n){"use strict";var r=n(9429),i=n(4926),a=n(2977),s=n(4454),o=n(3871),l=n(3607),u=r(o()),c=function(e){return a(e),u(e)};i(c,{getPolyfill:o,implementation:s,shim:l}),e.exports=c},3871:function(e,t,n){"use strict";var r=n(4454);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()&&"᠎"==="᠎".trim()&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:r}},3607:function(e,t,n){"use strict";var r=n(4926),i=n(3871);e.exports=function(){var e=i();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},493:function(e,t,n){"use strict";n.d(t,{_T:function(){return i},ev:function(){return a},pi:function(){return r}});var r=function(){return(r=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}).apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;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"==typeof SuppressedError&&SuppressedError},5982:function(e){"use strict";e.exports=function(){}},3554:function(e,t,n){"use strict";let r;n.d(t,{Ry:function(){return eP},z:function(){return e8}}),(e0=e5||(e5={})).assertEqual=e=>e,e0.assertIs=function(e){},e0.assertNever=function(e){throw Error()},e0.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e0.getValidEnumValues=e=>{let t=e0.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return e0.objectValues(n)},e0.objectValues=e=>e0.objectKeys(e).map(function(t){return e[t]}),e0.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e0.find=(e,t)=>{for(let n of e)if(t(n))return n},e0.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e0.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e0.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(e6||(e6={})).mergeShapes=(e,t)=>({...e,...t});let i=e5.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{let t=typeof e;switch(t){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}},s=e5.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r],a=r===i.path.length-1;a?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,e5.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>{let t=new o(e);return t};let l=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,e5.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${e5.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${e5.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${e5.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:e5.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,e5.assertNever(e)}return{message:n}},u=l;function c(){return u}let d=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a},o="",l=r.filter(e=>!!e).slice().reverse();for(let e of l)o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:i.message||o}};function h(e,t){let n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c(),l].filter(e=>!!e)});e.common.issues.push(n)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return f;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let e of t)n.push({key:await e.key,value:await e.value});return p.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if("aborted"===t.status||"aborted"===i.status)return f;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}}let f=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),_=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,g=e=>"dirty"===e.status,v=e=>"valid"===e.status,b=e=>"undefined"!=typeof Promise&&e instanceof Promise;(e1=e3||(e3={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},e1.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class w{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let E=(e,t)=>{if(v(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o(e.common.issues);return this._error=t,this._error}}};function S(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:i}}class k{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(b(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:r.path,parent:r});return E(r,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await (b(r)?r:Promise.resolve(r));return E(n,i)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new el({schema:this,typeName:e4.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eu.create(this,this._def)}nullable(){return ec.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Y.create(this,this._def)}promise(){return eo.create(this,this._def)}or(e){return W.create([this,e],this._def)}and(e){return K.create(this,e,this._def)}transform(e){return new el({...S(this._def),schema:this,typeName:e4.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ed({...S(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:e4.ZodDefault})}brand(){return new em({typeName:e4.ZodBranded,type:this,...S(this._def)})}catch(e){return new eh({...S(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:e4.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return e_.create(this,e)}readonly(){return ey.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let x=/^c[^\s-]{8,}$/i,T=/^[a-z][a-z0-9]*$/,R=/^[0-9A-HJKMNP-TV-Z]{26}$/,I=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,O=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,C=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,A=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,N=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class D extends k{_parse(e){let t;this._def.coerce&&(e.data=String(e.data));let n=this._getType(e);if(n!==i.string){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.string,received:t.parsedType}),f}let a=new p;for(let n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(h(t=this._getOrReturnCtx(e,t),{code:s.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),a.dirty());else if("max"===n.kind)e.data.length>n.value&&(h(t=this._getOrReturnCtx(e,t),{code:s.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),a.dirty());else if("length"===n.kind){let r=e.data.length>n.value,i=e.data.length<n.value;(r||i)&&(t=this._getOrReturnCtx(e,t),r?h(t,{code:s.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):i&&h(t,{code:s.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),a.dirty())}else if("email"===n.kind)O.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"email",code:s.invalid_string,message:n.message}),a.dirty());else if("emoji"===n.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:s.invalid_string,message:n.message}),a.dirty());else if("uuid"===n.kind)I.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:s.invalid_string,message:n.message}),a.dirty());else if("cuid"===n.kind)x.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:s.invalid_string,message:n.message}),a.dirty());else if("cuid2"===n.kind)T.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:s.invalid_string,message:n.message}),a.dirty());else if("ulid"===n.kind)R.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:s.invalid_string,message:n.message}),a.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(r){h(t=this._getOrReturnCtx(e,t),{validation:"url",code:s.invalid_string,message:n.message}),a.dirty()}else if("regex"===n.kind){n.regex.lastIndex=0;let r=n.regex.test(e.data);r||(h(t=this._getOrReturnCtx(e,t),{validation:"regex",code:s.invalid_string,message:n.message}),a.dirty())}else if("trim"===n.kind)e.data=e.data.trim();else if("includes"===n.kind)e.data.includes(n.value,n.position)||(h(t=this._getOrReturnCtx(e,t),{code:s.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),a.dirty());else if("toLowerCase"===n.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===n.kind)e.data=e.data.toUpperCase();else if("startsWith"===n.kind)e.data.startsWith(n.value)||(h(t=this._getOrReturnCtx(e,t),{code:s.invalid_string,validation:{startsWith:n.value},message:n.message}),a.dirty());else if("endsWith"===n.kind)e.data.endsWith(n.value)||(h(t=this._getOrReturnCtx(e,t),{code:s.invalid_string,validation:{endsWith:n.value},message:n.message}),a.dirty());else if("datetime"===n.kind){let r=N(n);r.test(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:s.invalid_string,validation:"datetime",message:n.message}),a.dirty())}else if("ip"===n.kind){var o,l;o=e.data,("v4"===(l=n.version)||!l)&&C.test(o)||("v6"===l||!l)&&A.test(o)||(h(t=this._getOrReturnCtx(e,t),{validation:"ip",code:s.invalid_string,message:n.message}),a.dirty())}else e5.assertNever(n);return{status:a.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:s.invalid_string,...e3.errToObj(n)})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...e3.errToObj(e)})}url(e){return this._addCheck({kind:"url",...e3.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...e3.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...e3.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...e3.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...e3.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...e3.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...e3.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...e3.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...e3.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...e3.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...e3.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...e3.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...e3.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...e3.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...e3.errToObj(t)})}nonempty(e){return this.min(1,e3.errToObj(e))}trim(){return new D({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new D({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new D({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}D.create=e=>{var t;return new D({checks:[],typeName:e4.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...S(e)})};class P extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;this._def.coerce&&(e.data=Number(e.data));let n=this._getType(e);if(n!==i.number){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.number,received:t.parsedType}),f}let r=new p;for(let n of this._def.checks)if("int"===n.kind)e5.isInteger(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:s.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty());else if("min"===n.kind){let i=n.inclusive?e.data<n.value:e.data<=n.value;i&&(h(t=this._getOrReturnCtx(e,t),{code:s.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else if("max"===n.kind){let i=n.inclusive?e.data>n.value:e.data>=n.value;i&&(h(t=this._getOrReturnCtx(e,t),{code:s.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty())}else"multipleOf"===n.kind?0!==function(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return a%s/Math.pow(10,i)}(e.data,n.value)&&(h(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(h(t=this._getOrReturnCtx(e,t),{code:s.not_finite,message:n.message}),r.dirty()):e5.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e3.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e3.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e3.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e3.toString(t))}setLimit(e,t,n,r){return new P({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:e3.toString(r)}]})}_addCheck(e){return new P({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e3.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e3.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e3.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e3.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e3.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e3.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:e3.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:e3.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:e3.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&e5.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}P.create=e=>new P({checks:[],typeName:e4.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...S(e)});class L extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;this._def.coerce&&(e.data=BigInt(e.data));let n=this._getType(e);if(n!==i.bigint){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.bigint,received:t.parsedType}),f}let r=new p;for(let n of this._def.checks)if("min"===n.kind){let i=n.inclusive?e.data<n.value:e.data<=n.value;i&&(h(t=this._getOrReturnCtx(e,t),{code:s.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else if("max"===n.kind){let i=n.inclusive?e.data>n.value:e.data>=n.value;i&&(h(t=this._getOrReturnCtx(e,t),{code:s.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty())}else"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(h(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):e5.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e3.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e3.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e3.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e3.toString(t))}setLimit(e,t,n,r){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:e3.toString(r)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:e3.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:e3.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:e3.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:e3.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e3.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}L.create=e=>{var t;return new L({checks:[],typeName:e4.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...S(e)})};class U extends k{_parse(e){this._def.coerce&&(e.data=!!e.data);let t=this._getType(e);if(t!==i.boolean){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.boolean,received:t.parsedType}),f}return _(e.data)}}U.create=e=>new U({typeName:e4.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...S(e)});class M extends k{_parse(e){let t;this._def.coerce&&(e.data=new Date(e.data));let n=this._getType(e);if(n!==i.date){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.date,received:t.parsedType}),f}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_date}),f}let r=new p;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(h(t=this._getOrReturnCtx(e,t),{code:s.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(h(t=this._getOrReturnCtx(e,t),{code:s.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):e5.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new M({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e3.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e3.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}M.create=e=>new M({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:e4.ZodDate,...S(e)});class j extends k{_parse(e){let t=this._getType(e);if(t!==i.symbol){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.symbol,received:t.parsedType}),f}return _(e.data)}}j.create=e=>new j({typeName:e4.ZodSymbol,...S(e)});class B extends k{_parse(e){let t=this._getType(e);if(t!==i.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.undefined,received:t.parsedType}),f}return _(e.data)}}B.create=e=>new B({typeName:e4.ZodUndefined,...S(e)});class F extends k{_parse(e){let t=this._getType(e);if(t!==i.null){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.null,received:t.parsedType}),f}return _(e.data)}}F.create=e=>new F({typeName:e4.ZodNull,...S(e)});class $ extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return _(e.data)}}$.create=e=>new $({typeName:e4.ZodAny,...S(e)});class z extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _(e.data)}}z.create=e=>new z({typeName:e4.ZodUnknown,...S(e)});class G extends k{_parse(e){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.never,received:t.parsedType}),f}}G.create=e=>new G({typeName:e4.ZodNever,...S(e)});class q extends k{_parse(e){let t=this._getType(e);if(t!==i.undefined){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.void,received:t.parsedType}),f}return _(e.data)}}q.create=e=>new q({typeName:e4.ZodVoid,...S(e)});class Y extends k{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==i.array)return h(t,{code:s.invalid_type,expected:i.array,received:t.parsedType}),f;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(h(t,{code:e?s.too_big:s.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(h(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(h(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new w(t,e,t.path,n)))).then(e=>p.mergeArray(n,e));let a=[...t.data].map((e,n)=>r.type._parseSync(new w(t,e,t.path,n)));return p.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new Y({...this._def,minLength:{value:e,message:e3.toString(t)}})}max(e,t){return new Y({...this._def,maxLength:{value:e,message:e3.toString(t)}})}length(e,t){return new Y({...this._def,exactLength:{value:e,message:e3.toString(t)}})}nonempty(e){return this.min(1,e)}}Y.create=(e,t)=>new Y({type:e,minLength:null,maxLength:null,exactLength:null,typeName:e4.ZodArray,...S(t)});class H extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e5.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==i.object){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),f}let{status:n,ctx:r}=this._processInputParams(e),{shape:a,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(let e in r.data)o.includes(e)||l.push(e);let u=[];for(let e of o){let t=a[e],n=r.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new w(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof G){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of l)u.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)l.length>0&&(h(r,{code:s.unrecognized_keys,keys:l}),n.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of l){let n=r.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new w(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of u){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(n,e)):p.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(e){return e3.errToObj,new H({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,s;let o=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=e3.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new H({...this._def,unknownKeys:"strip"})}passthrough(){return new H({...this._def,unknownKeys:"passthrough"})}extend(e){return new H({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new H({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:e4.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new H({...this._def,catchall:e})}pick(e){let t={};return e5.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new H({...this._def,shape:()=>t})}omit(e){let t={};return e5.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new H({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof H){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=eu.create(e(i))}return new H({...t._def,shape:()=>n})}return t instanceof Y?new Y({...t._def,type:e(t.element)}):t instanceof eu?eu.create(e(t.unwrap())):t instanceof ec?ec.create(e(t.unwrap())):t instanceof J?J.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return e5.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new H({...this._def,shape:()=>t})}required(e){let t={};return e5.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n],r=e;for(;r instanceof eu;)r=r._def.innerType;t[n]=r}}),new H({...this._def,shape:()=>t})}keyof(){return ei(e5.objectKeys(this.shape))}}H.create=(e,t)=>new H({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:e4.ZodObject,...S(t)}),H.strictCreate=(e,t)=>new H({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:e4.ZodObject,...S(t)}),H.lazycreate=(e,t)=>new H({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:e4.ZodObject,...S(t)});class W extends k{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new o(e.ctx.common.issues));return h(t,{code:s.invalid_union,unionErrors:n}),f});{let e;let r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new o(e));return h(t,{code:s.invalid_union,unionErrors:i}),f}}get options(){return this._def.options}}W.create=(e,t)=>new W({options:e,typeName:e4.ZodUnion,...S(t)});let Z=e=>{if(e instanceof en)return Z(e.schema);if(e instanceof el)return Z(e.innerType());if(e instanceof er)return[e.value];if(e instanceof ea)return e.options;if(e instanceof es)return Object.keys(e.enum);if(e instanceof ed)return Z(e._def.innerType);if(e instanceof B)return[void 0];else if(e instanceof F)return[null];else return null};class V extends k{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return h(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),f;let n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(h(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),f)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let n of t){let t=Z(n.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(r.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new V({typeName:e4.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...S(n)})}}class K extends k{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return f;let o=function e(t,n){let r=a(t),s=a(n);if(t===n)return{valid:!0,data:t};if(r===i.object&&s===i.object){let r=e5.objectKeys(n),i=e5.objectKeys(t).filter(e=>-1!==r.indexOf(e)),a={...t,...n};for(let r of i){let i=e(t[r],n[r]);if(!i.valid)return{valid:!1};a[r]=i.data}return{valid:!0,data:a}}if(r===i.array&&s===i.array){if(t.length!==n.length)return{valid:!1};let r=[];for(let i=0;i<t.length;i++){let a=t[i],s=n[i],o=e(a,s);if(!o.valid)return{valid:!1};r.push(o.data)}return{valid:!0,data:r}}return r===i.date&&s===i.date&&+t==+n?{valid:!0,data:t}:{valid:!1}}(e.value,r.value);return o.valid?((g(e)||g(r))&&t.dirty(),{status:t.value,value:o.data}):(h(n,{code:s.invalid_intersection_types}),f)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}K.create=(e,t,n)=>new K({left:e,right:t,typeName:e4.ZodIntersection,...S(n)});class J extends k{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.array)return h(n,{code:s.invalid_type,expected:i.array,received:n.parsedType}),f;if(n.data.length<this._def.items.length)return h(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),f;let r=this._def.rest;!r&&n.data.length>this._def.items.length&&(h(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let a=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new w(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(a).then(e=>p.mergeArray(t,e)):p.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new J({...this._def,rest:e})}}J.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J({items:e,typeName:e4.ZodTuple,rest:null,...S(t)})};class X extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.object)return h(n,{code:s.invalid_type,expected:i.object,received:n.parsedType}),f;let r=[],a=this._def.keyType,o=this._def.valueType;for(let e in n.data)r.push({key:a._parse(new w(n,e,n.path,e)),value:o._parse(new w(n,n.data[e],n.path,e))});return n.common.async?p.mergeObjectAsync(t,r):p.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new X(t instanceof k?{keyType:e,valueType:t,typeName:e4.ZodRecord,...S(n)}:{keyType:D.create(),valueType:e,typeName:e4.ZodRecord,...S(t)})}}class Q extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.map)return h(n,{code:s.invalid_type,expected:i.map,received:n.parsedType}),f;let r=this._def.keyType,a=this._def.valueType,o=[...n.data.entries()].map(([e,t],i)=>({key:r._parse(new w(n,e,n.path,[i,"key"])),value:a._parse(new w(n,t,n.path,[i,"value"]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of o){let r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return f;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of o){let r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return f;("dirty"===r.status||"dirty"===i.status)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}Q.create=(e,t,n)=>new Q({valueType:t,keyType:e,typeName:e4.ZodMap,...S(n)});class ee extends k{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.set)return h(n,{code:s.invalid_type,expected:i.set,received:n.parsedType}),f;let r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(h(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(h(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let a=this._def.valueType;function o(e){let n=new Set;for(let r of e){if("aborted"===r.status)return f;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let l=[...n.data.values()].map((e,t)=>a._parse(new w(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ee({...this._def,minSize:{value:e,message:e3.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:e3.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:e4.ZodSet,...S(t)});class et extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return h(t,{code:s.invalid_type,expected:i.function,received:t.parsedType}),f;function n(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:s.invalid_return_type,returnTypeError:n}})}let a={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof eo){let e=this;return _(async function(...t){let i=new o([]),s=await e._def.args.parseAsync(t,a).catch(e=>{throw i.addIssue(n(t,e)),i}),l=await Reflect.apply(u,this,s),c=await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw i.addIssue(r(l,e)),i});return c})}{let e=this;return _(function(...t){let i=e._def.args.safeParse(t,a);if(!i.success)throw new o([n(t,i.error)]);let s=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new o([r(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:J.create(e).rest(z.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new et({args:e||J.create([]).rest(z.create()),returns:t||z.create(),typeName:e4.ZodFunction,...S(n)})}}class en extends k{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}en.create=(e,t)=>new en({getter:e,typeName:e4.ZodLazy,...S(t)});class er extends k{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return h(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),f}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ei(e,t){return new ea({values:e,typeName:e4.ZodEnum,...S(t)})}er.create=(e,t)=>new er({value:e,typeName:e4.ZodLiteral,...S(t)});class ea extends k{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return h(t,{expected:e5.joinValues(n),received:t.parsedType,code:s.invalid_type}),f}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return h(t,{received:t.data,code:s.invalid_enum_value,options:n}),f}return _(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return ea.create(e)}exclude(e){return ea.create(this.options.filter(t=>!e.includes(t)))}}ea.create=ei;class es extends k{_parse(e){let t=e5.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==i.string&&n.parsedType!==i.number){let e=e5.objectValues(t);return h(n,{expected:e5.joinValues(e),received:n.parsedType,code:s.invalid_type}),f}if(-1===t.indexOf(e.data)){let e=e5.objectValues(t);return h(n,{received:n.data,code:s.invalid_enum_value,options:e}),f}return _(e.data)}get enum(){return this._def.values}}es.create=(e,t)=>new es({values:e,typeName:e4.ZodNativeEnum,...S(t)});class eo extends k{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.promise&&!1===t.common.async)return h(t,{code:s.invalid_type,expected:i.promise,received:t.parsedType}),f;let n=t.parsedType===i.promise?t.data:Promise.resolve(t.data);return _(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eo.create=(e,t)=>new eo({type:e,typeName:e4.ZodPromise,...S(t)});class el extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===e4.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{h(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){let e=r.transform(n.data,i);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?f:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))));{let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?f:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>v(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!v(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}e5.assertNever(r)}}el.create=(e,t,n)=>new el({schema:e,typeName:e4.ZodEffects,effect:t,...S(n)}),el.createWithPreprocess=(e,t,n)=>new el({schema:t,effect:{type:"preprocess",transform:e},typeName:e4.ZodEffects,...S(n)});class eu extends k{_parse(e){let t=this._getType(e);return t===i.undefined?_(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:e4.ZodOptional,...S(t)});class ec extends k{_parse(e){let t=this._getType(e);return t===i.null?_(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:e4.ZodNullable,...S(t)});class ed extends k{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===i.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:e4.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...S(t)});class eh extends k{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return b(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new o(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:e4.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...S(t)});class ep extends k{_parse(e){let t=this._getType(e);if(t!==i.nan){let t=this._getOrReturnCtx(e);return h(t,{code:s.invalid_type,expected:i.nan,received:t.parsedType}),f}return{status:"valid",value:e.data}}}ep.create=e=>new ep({typeName:e4.ZodNaN,...S(e)});let ef=Symbol("zod_brand");class em extends k{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class e_ extends k{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){let e=async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?f:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})};return e()}{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?f:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new e_({in:e,out:t,typeName:e4.ZodPipeline})}}class ey extends k{_parse(e){let t=this._def.innerType._parse(e);return v(t)&&(t.value=Object.freeze(t.value)),t}}ey.create=(e,t)=>new ey({innerType:e,typeName:e4.ZodReadonly,...S(t)});let eg=(e,t={},n)=>e?$.create().superRefine((r,i)=>{var a,s;if(!e(r)){let e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:n)||void 0===s||s;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:o})}}):$.create(),ev={object:H.lazycreate};(e2=e4||(e4={})).ZodString="ZodString",e2.ZodNumber="ZodNumber",e2.ZodNaN="ZodNaN",e2.ZodBigInt="ZodBigInt",e2.ZodBoolean="ZodBoolean",e2.ZodDate="ZodDate",e2.ZodSymbol="ZodSymbol",e2.ZodUndefined="ZodUndefined",e2.ZodNull="ZodNull",e2.ZodAny="ZodAny",e2.ZodUnknown="ZodUnknown",e2.ZodNever="ZodNever",e2.ZodVoid="ZodVoid",e2.ZodArray="ZodArray",e2.ZodObject="ZodObject",e2.ZodUnion="ZodUnion",e2.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e2.ZodIntersection="ZodIntersection",e2.ZodTuple="ZodTuple",e2.ZodRecord="ZodRecord",e2.ZodMap="ZodMap",e2.ZodSet="ZodSet",e2.ZodFunction="ZodFunction",e2.ZodLazy="ZodLazy",e2.ZodLiteral="ZodLiteral",e2.ZodEnum="ZodEnum",e2.ZodEffects="ZodEffects",e2.ZodNativeEnum="ZodNativeEnum",e2.ZodOptional="ZodOptional",e2.ZodNullable="ZodNullable",e2.ZodDefault="ZodDefault",e2.ZodCatch="ZodCatch",e2.ZodPromise="ZodPromise",e2.ZodBranded="ZodBranded",e2.ZodPipeline="ZodPipeline",e2.ZodReadonly="ZodReadonly";let eb=D.create,ew=P.create,eE=ep.create,eS=L.create,ek=U.create,ex=M.create,eT=j.create,eR=B.create,eI=F.create,eO=$.create,eC=z.create,eA=G.create,eN=q.create,eD=Y.create,eP=H.create,eL=H.strictCreate,eU=W.create,eM=V.create,ej=K.create,eB=J.create,eF=X.create,e$=Q.create,ez=ee.create,eG=et.create,eq=en.create,eY=er.create,eH=ea.create,eW=es.create,eZ=eo.create,eV=el.create,eK=eu.create,eJ=ec.create,eX=el.createWithPreprocess,eQ=e_.create;var e0,e1,e2,e5,e6,e3,e4,e8=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:h,ParseStatus:p,INVALID:f,DIRTY:m,OK:_,isAborted:y,isDirty:g,isValid:v,isAsync:b,get util(){return e5},get objectUtil(){return e6},ZodParsedType:i,getParsedType:a,ZodType:k,ZodString:D,ZodNumber:P,ZodBigInt:L,ZodBoolean:U,ZodDate:M,ZodSymbol:j,ZodUndefined:B,ZodNull:F,ZodAny:$,ZodUnknown:z,ZodNever:G,ZodVoid:q,ZodArray:Y,ZodObject:H,ZodUnion:W,ZodDiscriminatedUnion:V,ZodIntersection:K,ZodTuple:J,ZodRecord:X,ZodMap:Q,ZodSet:ee,ZodFunction:et,ZodLazy:en,ZodLiteral:er,ZodEnum:ea,ZodNativeEnum:es,ZodPromise:eo,ZodEffects:el,ZodTransformer:el,ZodOptional:eu,ZodNullable:ec,ZodDefault:ed,ZodCatch:eh,ZodNaN:ep,BRAND:ef,ZodBranded:em,ZodPipeline:e_,ZodReadonly:ey,custom:eg,Schema:k,ZodSchema:k,late:ev,get ZodFirstPartyTypeKind(){return e4},coerce:{string:e=>D.create({...e,coerce:!0}),number:e=>P.create({...e,coerce:!0}),boolean:e=>U.create({...e,coerce:!0}),bigint:e=>L.create({...e,coerce:!0}),date:e=>M.create({...e,coerce:!0})},any:eO,array:eD,bigint:eS,boolean:ek,date:ex,discriminatedUnion:eM,effect:eV,enum:eH,function:eG,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eg(t=>t instanceof e,t),intersection:ej,lazy:eq,literal:eY,map:e$,nan:eE,nativeEnum:eW,never:eA,null:eI,nullable:eJ,number:ew,object:eP,oboolean:()=>ek().optional(),onumber:()=>ew().optional(),optional:eK,ostring:()=>eb().optional(),pipeline:eQ,preprocess:eX,promise:eZ,record:eF,set:ez,strictObject:eL,string:eb,symbol:eT,transformer:eV,tuple:eB,undefined:eR,union:eU,unknown:eC,void:eN,NEVER:f,ZodIssueCode:s,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:o})},3260:function(){},5372:function(e){"use strict";e.exports=JSON.parse('{"common":{"back":"Back","boolean":{"yes-no":{"false":"No","true":"Yes"}},"car":"Car","close":"Close","confirm":"Confirm","contact-me":"Contact me","error":{"generic":"An unknown error has occurred. Please try again."},"forms":{"required":"Required"},"get-started":"Get started","home":"Home","income-period":{"ANNUALLY":"annually","BIWEEKLY":"bi-weekly","MONTHLY":"monthly","WEEKLY":"weekly"},"learn-more":"Learn more","next":"Next","not-completed":"Not completed","ok":"OK","or":"Or","popular":"Most popular","recommended":"Recommended","save":"Save","update":"Update"},"components":{"dashboard":{"verify-identity":{"action-required":"Action Required","completed-description":"Your photo has been uploaded and is being processed. You may delete the photo at any time. Note that you may be asked to provide additional documents to verify your identity.","continue":"Continue","delete":"Delete","deleting":"Deleting…","error":"We were unable to process your photo. Please try again.","preview-failed":"Failed to load preview","select-file":"Take a photo or select a file","success":"Your photo has been uploaded successfully.","upload":"Upload","uploading":"Uploading…","user-upload":"User upload","verification-complete":"Verification complete","verification-required":"We need to verify your identity before we can process your case. Please upload a photo of your ID."}},"stepper":{"confirm-account-step":{"description":"We\'ve sent an email to {{email}}. Follow the included link to create your account.","go-to-dashboard":"Go to your dashboard","temporary-data-description":"Your data will be saved temporarily until you sign in.","title":"Confirm your account"},"ineligible-step":{"create-profile":"You may still create a profile and use our tools to explore your options.","details":"Details:"},"loading":{"title":"Saving your data…"},"profile-form":{"broker-name":"Name of broker","email-address":"Email address","email-invalid":"Please enter a valid email address","first-name":"First name","last-name":"Last name","phone-number":"Phone number","phone-number-optional":"Phone number (optional)","referral":"Referred by a broker? (optional)","sign-up":"Sign up"},"verify-phone-step":{"description":"An SMS with a 6 digit verification code will be sent to +{{phone}}","errors":{"code-expired":"The code you entered has expired. Please request a new one.","internal-error":"We were unable to send a code to the number you provided. Please double-check it and try again.","invalid-code":"The code you entered is incorrect. Please try again.","invalid-phone-number":"We were unable to send a code to the number you provided. Please double-check it and try again.","invalid-verification-code":"The code you entered is incorrect. Please try again.","network-request-failed":"A network error occurred. Please wait a few minutes and try again.","operation-not-allowed":"An authorization error occurred. Please try again.","phone-number-already-exists":"The phone number you provided is already in use. Please double-check it and try again."},"go-to-dashboard":"Go to your dashboard","resend-code":"Re-send code","resend-verification-code":"did not receive a code? click here to resend it.","send-code":"Get code","temporary-data-description":"Your data will be saved temporarily until you sign in.","title":"Verify your number","verification-code":"Enter the code you will receive here"},"why-do-we-collect-this":{"title":"Why do we collect this?"}},"user-states":{"car-equity-onboarding":{"label":"Car Equity Onboarding"},"home-equity-onboarding":{"label":"Home Equity Onboarding"},"states":{"cancel":"Canceled Onboarding","complete":"Completed Onboarding","initial":"First Contact","license-type":"Provided License Type","ownership-status":"Provided Ownership Status","ownership-type":"Provided Ownership Type","proceed":"First Interaction","property-type":"Provided Property Type","reject":"Rejected","unknown-response":"Unknown","verify-identity-id-back":"Verified ID Back","verify-identity-id-front":"Verified ID Front","verify-identity-license-back":"Verified License Back","verify-identity-license-front":"Verified License Front"}}},"footer":{"description":"Experience streamlined asset management and unlock superior financing options with our cutting-edge digital platform.","links":{"careers":"Careers","contact":"Contact","cookie-policy":"Cookie Policy","privacy-policy":"Privacy Policy"},"rights":"\xa9 {{year}} MyBlynk, Inc. All rights reserved."},"pages":{"admin":{"home-equity":{"claim":"Claim","claimed-by":"Claimed by {{name}}","columns":{"additionalIncome":"Additional income","age":"Age","compound":"Compound","debt":"Debt","email":"Email","employmentStatus":"Employment status","firstName":"First name","id":"ID","income":"Income","lastName":"Last name","outstandingBalance":"Outstanding balance","plan":"Selected plan","propertyLocation":"Property location","propertyPrice":"Property price","propertyRegistered":"Property registered","propertyType":"Property type","requestAdvice":"Requested advice","residency":"Egyptian resident?"},"notes":"Notes","title":"User Home Equity Eligibility Data"}},"apps":{"car":{"dashboard":{"help-text":{"debt-capacity":{"debt":"For a monthly income of {{income}} and debt of {{debt}} the maximum payment is {{capacity}}.","no-debt":"For a monthly income of {{income}} the maximum payment is {{capacity}}."},"income-debt-ratio":"The monthly payment for a loan is limited to a debt burden ratio of {{ratio}}.","title":"Details","vehicle-value-capacity":"For a vehicle value of {{vehicleValue}}, the maximum loan amount is {{principal}}."},"income":"Income","loan-amount":"Loan amount","loan-plans":"Loan Plans","next-steps":{"car-check":"We will send you a link to upload your documents.","description":"We have received your application.","documents":"We will review your application and contact you within 24 hours.","done":"Done! You sign and the funds are deposited in your bank account.","steps":"Here’s what happens next:","title":"Thanks!","upload-documents":"Complete the flow and upload your documents through WhatsApp","whatsapp":"You will receive a WhatsApp message from us shortly.","when-completed":"When completed, we will review your application and contact you within 24 hours."},"payment":"Monthly payment","requestAdvice":"Request advice","requestedAdvice":"We\'ll contact you!","requestedAdviceNote":"We\'ve saved your preferences, and an agent will contact you shortly with the next steps!","slider":{"heading":"I want to borrow"},"subtitle":"You have been pre-approved for up to","temporary-data-description":"This data won\'t be saved. Follow the link we\'ve emailed you to create an account and save your data.","temporary-data-title":"Temporary Data","tenure":{"apply":"Apply now","flat-interest":"Flat interest rate","heading":"I want to pay back over","interest":"Interest rate","months":"months","payment":"Monthly payment","unavailable":{"description":"Your income decides what is the maximum monthly installment we can have you pay","heading":"Plan unavailable","minimum":"At your current income level, if you want to pay back over {{tenure}} months, the maximum you can borrow is {{principal}}"}},"term":"{{months}} months","title":"Hello {{name}}!","unavailable":"Sorry, we can\'t calculate any plans for this combination of factors","update-information":"If your circumstances have changed, you can {{link}}update your information{{/link}}."},"questions":{"economy":{"debt":"What are your monthly expenses, including housing costs?","description":"","income":"What is your total monthly income?","title":"Economy","validation":{"income":{"min":"Your income must be at least 10,000 EGP"}}},"employmentStatus":{"description":"","freelancer":"Freelancer","full-time":"Employed full time","part-time":"Part-time","self-employed":"Self-employed","title":"What is your employment status?"},"incomeSources":{"bank-bonds":"Bank bonds","description":"Select all that apply","employment-salary":"Salaried employment","remittance":"Remittance","rental-properties":"Rental properties","title":"What are your sources of income?"},"ineligible":{"description":"You may still create a profile and use our tools to estimate your loan options.","income-debt-ratio":"The debt burden ratio may not exceed {{ratio}}. For your monthly income of {{income}}, the maximum debt commitment is {{capacity}}.","ownership":"This service is currently only available for fully-owned cars only","title":"Sorry, we can\'t find any lenders for this combination of factors"},"profile":{"age":"Age","car-license-number":"Car license number","description":"","first-name":"First name","last-name":"Last name","national-id-number":"National ID number","phone-number":"Phone number","title":"Personal information","validation":{"age":{"max":"You must be under {{number}} years old","min":"You must be at least {{number}} years old"},"phone":{"minLength":"Your phone number must be at least {{minLength}} digits long"}}},"vehicleCondition":{"condition":"Condition","condition-good":"Good","condition-new":"Excellent (Good as new)","condition-used":"Used","description":"","title":"What\'s your vehicle condition and value?","validation":{"value":{"min":"Your vehicle\'s value must be at least 200,000 EGP"}},"value":"Estimated value"},"vehicleInfo":{"description":"","dont-see-your-car":"Don\'t see your car?","enter-manually":"Enter your car manually","make":"Brand","make-placeholder":"Select brand","model":"Model","model-placeholder":"Select model","title":"What\'s your vehicle information?","validation":{"year":{"max":"Your vehicle cannot be newer than the current model year","min":"Your vehicle must be from {{year}} or later"}},"year":"Production year","year-placeholder":"Select year"},"vehicleOwnership":{"description":"","financed":"Financed","leased":"Leased","owned":"Fully owned","title":"Do you own your car fully?"},"vehicleOwnershipRejection":{"description":"We are working on expanding the service. Add your contact information below, and we will notify you when it is available.","success":"Thank you!","title":"This service is currently only available for fully-owned cars"}}},"home-equity":{"dashboard":{"help-text":{"debt-capacity":{"additional-income-debt":"For a monthly income of {{income}}, additional income of {{additionalIncome}}, and debt of {{debt}} the maximum payment is {{capacity}}.","additional-income-no-debt":"For a monthly income of {{income}} and additional income of {{additionalIncome}} the maximum payment is {{capacity}}.","debt":"For a monthly income of {{income}} and debt of {{debt}} the maximum payment is {{capacity}}.","no-debt":"For a monthly income of {{income}} the maximum payment is {{capacity}}."},"income-debt-ratio":"The monthly payment for a loan is limited to a debt burden ratio of {{ratio}}.","property-value-capacity":"For a property value of {{propertyValue}}, the maximum loan amount is {{principal}}.","title":"Details"},"income":"Income","loan-amount":"Loan amount","loan-plans":"Loan Plans","next-steps":{"description":"We have received your application.","done":"Done! You sign and the funds are deposited in your bank account.","steps":"Here’s what happens next:","title":"Thanks!","upload-documents":"Complete the flow and upload your documents through WhatsApp","whatsapp":"You will receive a WhatsApp message from us shortly.","when-completed":"When completed, we will review your application and contact you within 24 hours."},"outstanding-balance":"Outstanding balance","payment":"Monthly payment","requestAdvice":"Request advice","requestedAdvice":"We\'ll contact you!","requestedAdviceNote":"We\'ve saved your preferences, and an agent will contact you shortly with the next steps!","subtitle":"Here\'s what you can borrow","temporary-data-description":"This data won\'t be saved. Follow the link we\'ve emailed you to create an account and save your data.","temporary-data-title":"Temporary Data","term":"{{months}} months","title":"Dashboard","unavailable":"Sorry, we can\'t calculate any plans for this combination of factors","update-information":"If your circumstances have changed, you can {{link}}update your information{{/link}}."},"questions":{"additionalIncome":{"description":"","title":"What is the monthly total of your additional sources of income?"},"age":{"description":"","title":"How old are you?","validation":{"max":"You must be under {{number}} years old","min":"You must be at least {{number}} years old"}},"compound":{"description":"","title":"In which compound is the property located?"},"debt":{"description":"","title":"What is your total monthly debt?"},"employmentStatus":{"description":"","freelancer":"Freelancer","full-time":"Employed full time","part-time":"Part-time","retired":"Pensioner","self-employed":"Self-employed","student":"Student","title":"What is your employment status?"},"financialInfo":{"description":"","fields":{"additionalIncome":"Additional monthly income","debt":"Monthly debt","hasAdditionalIncome":"Do you have additional monthly income?","hasDebt":"Do you have monthly debt?","income":"Monthly income"},"title":"What is your financial situation?"},"income":{"description":"","title":"What is your total primary monthly income?","validation":{"min":"Your income must be at least 10,000 EGP"}},"ineligible":{"age":"Loans must be paid in full by age {{age}}. The shortest loan term is {{tenure}} years.","description":"You may still create a profile and use our tools to estimate your home equity options.","full-time-duration":"Lenders require a minimum of six months of full-time employment.","income-debt-ratio":"The debt burden ratio may not exceed {{ratio}}. For your monthly income of {{income}}, the maximum debt commitment is {{capacity}}.","income-debt-ratio-additional":"The debt burden ratio may not exceed {{ratio}}. For your monthly income of {{income}} and additional income of {{additionalIncome}}, the maximum monthly debt commitment is {{capacity}}.","loan-amount":"You do not qualify for a property backed loan, the minimum amount we currently lend is {{minLoanAmount}}. Based on your data, the maximum amount you can borrow is {{maxPrincipal}}.","non-compund":"We currently only accept properties located in compounds.","self-employment-duration":"Lenders require a minimum of two years of self employment.","title":"Sorry, we can\'t find any lenders for this combination of factors"},"outstandingBalance":{"description":"","title":"What is the outstanding balance of your primary loan for the property?"},"personalInfo":{"description":"","fields":{"age":{"label":"Age","placeholder":"Enter age"},"employmentStatus":{"label":"Employment status","placeholder":"Select employment status"}},"title":"First we need a bit of information about you"},"profile":{"description":"We\'ve created your personal dashboard showing your home equity options.","title":"Your interactive report is ready!"},"propertyInfo":{"description":"","fields":{"compound":{"label":"Compound","placeholder":"Compound"},"propertyLocation":{"label":"Property location","placeholder":"Select property location"},"propertyPrice":"Property value"},"title":"What is your property information?"},"propertyLocation":{"description":"","governorate":"Governorate","title":"Where is the property located?","urban-city":"Urban city"},"propertyPrice":{"description":"","title":"What is the value of the property?","validation":{"min":"Your property must have a value of at least {{value}}"}},"propertyRegistered":{"description":"","title":"Is the property registered?"},"residency":{"description":"","domestic":"Yes","foreign":"No","title":"Do you currently reside in Egypt?"}},"why-collect":{"background":{"age":{"description":"Certain banking services or offerings may have age restrictions imposed by law. By collecting age information, we can ensure compliance with legal requirements and provide appropriate resources to individuals of eligible age.","title":"Age"},"employment-status":{"description":"Some banking services or offerings may be specific to certain employment statuses. Collecting employment status information allows us to determine eligibility for these specialized services.","title":"Employment Status"}},"financial":{"additional-income":{"description":"Collecting information about additional income helps use create a more comprehensive understanding of your financial situation. It provides a clearer picture of your overall income, beyond just your primary source of income.","title":"Additional Income"},"debt":{"description":"Banks use debt information to calculate a customer\'s debt-to-income ratio. This ratio is an important metric in determining a customer\'s ability to repay loans and manage their financial responsibilities.","title":"Debt"},"income":{"description":"Monthly income is an important factor in assessing creditworthiness. It helps us determine your ability to repay loans and meet financial obligations.","title":"Income"}},"property":{"property-location":{"description":"The location of a property can affect its value and potential risks associated with it. By knowing the property location, we can assess the risk level of lending against that property and make informed decisions about loan approvals and terms.","title":"Property Location"},"value":{"description":"The value of a property is used to calculate the loan-to-value (LTV) ratio, which compares the loan amount to the appraised value of the property. This ratio helps us determine the level of risk and the maximum loan amount that can be provided.","title":"Property Value"}}}}},"auth":{"signin":{"error":"Failed to sign in. Please try again.","get-code":"Resend code","send-code":"Send code","sign-in":"Sign in","title":"Sign in to MNZL","verification-code":"Enter the code you will receive here"}},"campaigns":{"confirmation":{"description":"Thank you for reaching out! We will get back to you as soon as possible with more information about our products.","title":"Your request has been submitted!"},"form":{"product":{"label":"Which product are you interested in?","options":{"CEL":"Car Equity Loan","HEL":"Home Equity Loan"}},"title":"Get in touch"}},"car":{"car-equity-loan":"Car Equity Loan","company":{"heading":"What drives us","text":"Many people need money to support their lives and continue growing their wealth. However, they are often left with unreasonable options or high interest rates. At MNZL, we believe that the wealth you accumulate in your assets should serve your projects and needs. This is our mission: easy, transparent, and affordable access to financing."},"comparison":{"eyebrow":"Why MNZL","heading":"Access up to 2,000,000 EGP in credit with lower interest than consumer finance","table":{"consumer":"Consumer finance","row-1":{"col-1":"Requires Insurance","col-2":"no","col-3":"yes"},"row-2":{"col-1":"Use for all Purposes"},"row-3":{"col-1":"Payback period/ year(s)","col-2":"7","col-3":"2"},"row-4":{"col-1":"Amount up to","col-2":"2M","col-3":"200k"}},"text":"Using a MNZL Car Equity Loan allows you to get financing through the value of your car, use the funds for any purpose, and pay back over up to 7 years."},"cta":"Get Pre-approved","cta-line-1":"Get pre-approved for a loan up to 65% of your car’s value in minutes. (No commitment offer).","cta-line-2":"Get pre-approved in minutes. (No commitment offer, cancel anytime).","cta-section":{"heading":"Your MNZL cash is just 3 steps away","subtitle":"With MNZL’s property backed loan, you can get larger loan amounts, with a longer payback period of up to 20 years","text":"Get pre-approved in minutes. (No commitment offer, cancel anytime).","title":"Need a bigger loan? Try our property backed loan."},"faqs":{"contact":"Didn\'t find what you were looking for? Reach out to us at hello@mnzl.co","heading":"FAQs","questions":{"q-1":{"answer":"A Car Equity Loan is a type of loan that allows you to borrow money using the equity in your car as collateral. You continue to drive your car while you repay the loan.","question":"What is a Car Backed Loan?"},"q-2":{"answer":"The amount you can borrow with a Car Equity Loan depends on the equity in your car. Typically, you can borrow up to 65% of your car\'s current market value.","question":"How much can I borrow with a Car Equity Loan?"},"q-3":{"answer":"To qualify for a Car Equity Loan, you need to own a car that is fully paid off and has a clear title. You also need to be at least 18 years old and have a steady source of income.","question":"What are the requirements for a Car Equity Loan?"},"q-4":{"answer":"The time it takes to get a Car Equity Loan varies depending on the lender and the specific loan terms. In general, you can expect to receive your funds within a few days to a week after completing the application process.","question":"How long does it take to get a Car Equity Loan?"},"q-5":{"answer":"MNZL offers competitive interest rates, flexible repayment terms, and a quick and easy application process. Our team of experienced professionals is dedicated to helping you get the funds you need with minimal hassle and maximum convenience. MNZL is also the first company in Egypt to provide the Car Equity Loans program.","question":"Why choose MNZL to get a car equity loan in Egypt?"},"q-6":{"answer":"The permissibility of Car Equity Loans in Islam depends on the specific terms and conditions of the loan. MNZL selects and prioritizes lenders who offer Sharia-compliant (Halal) loans.","question":"Are Car Equity Loans Sharia compliant (halal)?"},"q-7":{"answer":"Yes! we also support customers who wish to buy cars in securing the best auto-loan for their needs, if you are looking to buy a car, please write us on hello@mnzl.co","question":"Do you also provide loans if I want to buy a car (auto-loan)?"}}},"how-it-works":{"eyebrow":"How it works","heading":"Your MNZL cash is just 3 steps away.","step-1":{"heading":"Get pre-approved","text":"Complete our quick and easy pre-approval process online in minutes. The pre-approval also allows you to customize the different options that fit you."},"step-2":{"heading":"Get your eligibility check","text":"We require 3 documents to check that you are eligible for our offering; your National ID, car license and proof of income. Our team will verify these in 24 hrs."},"step-3":{"heading":"Get your car checked","text":"We send a certified mechanic to evaluate the car. Once your car’s condition is verified and its value is confirmed, you will receive the final approval and contract."}},"hp-section":{"7-days":"7 days","certified-by-fra":"Certified by the FRA","get-money-in-bank":"To get money in the bank","heading":"Unlock the true value of your car","secure":"Secure","text":"Just like a house, your car is a valuable asset. Leverage it to get cheaper financing at the best market terms."},"splash":{"heading":"Your car is not just for transport. Power your financial needs with low instalments","powered-by":"Powered by Drive Finance\xa9","usp-1":"Lowest monthly instalments","usp-2":"Access up to 65% of your car’s value in credit","usp-3":"Funds in your bank in 1 week"}},"hel":{"calculator":{"borrow-up-to":"You can borrow up to","cta":"Get personalized offer","monthly-income":"Monthly income","property-value":"Value of the Property","title":"Discover the wealth in your assets"},"cta-section":{"heading":"Looking for a smaller faster loan? Try our car backed loan.","subtitle":"With MNZL’s car backed loan, you can get funds in your account as fast as 7 days. Free, Online & non-binding!"},"faq-section":{"heading":"FAQs","questions":{"q-1":{"answer":"A property backed loan, is a type of loan where you get favorable interest rates and terms by using your property as a collateral to secure the loan.","question":"What is a property backed loan?"},"q-2":{"answer":"No, you can use residential properties as well as commercial, administrative of vacation homes. Just as long as you have documented ownership of the property (registered in the notary)","question":"Does it have to be a residential property?"},"q-3":{"answer":"Some properties can be used as collateral even if they are not registered; such as properties in residential compounds, or in commercial malls, schools, or hospitals. If your property doesn’t fall under the above. MNZL will register your property for you, giving you the added advantage of legally securing your ownership.","question":"What if my property is not registered in the notary?"},"q-4":{"answer":"Payback terms range from 10-20 years, if you need more flexible terms, MNZL will help connect you with a lender that can provide that","question":"How long is the payback plan for a property backed loan?"},"q-5":{"answer":"Yes! We offer conventional property backed mortgages, as well as Sharia compliant “Ijarah” loans which are approved by Dar al iftaa as halal.","question":"Is your product Halal?"},"q-6":{"answer":"It depends on the case and how much of your documentation is ready. We generally try to close our cases in 3-4 weeks, but more complicated cases -for example if your property has to be registered first- can take longer.","question":"How fast can I expect to receive funds?"},"q-7":{"answer":"Yes! we also support customers who wish to buy properties in securing the best mortgage for their needs, if you are looking for a mortgage, please write us on hello@mnzl.co","question":"Do you also provide loans if I want to buy a property (mortgage)?"}},"ready-for-support":"We hope you found what you were looking for — if not, we are always ready for support, write us at hello@mnzl.co"},"solution-section":{"heading":"Property Backed Loan","section-1":{"heading":"A property backed loan can be faster, cheaper and more flexible","subtitle":"The flexibility of a MNZL loan means that you can use your personal property to secure a loan to support your business, or vice versa. using your property as collateral also reduces the conditions to get a loan, as opposed to a business loan for example."},"section-2":{"heading":"MNZL helps you at every step","subtitle":"The biggest value in applying with MNZL is that we are experts in securing the best loans. You need only apply once with us, and we will guide you through the whole journey, from understanding your options, preparing your documents, and applying on your behalf to multiple lenders. All from the comfort of your home."},"subtitle":"A property backed loan is a loan guaranteed by your property as collateral, this allows lenders to trust you more, giving you lower interest rates, and better terms."},"splash":{"below-cta":"Find out your loan amount and payment plan in less than 5 minutes","cta":"Discover our products","eyebrow":"Property Backed Loan","subtitle":"With MNZL, you can protect your property ownership, and at the same time leverage it to get a low interest, highly flexible loan for your needs.","title":"Get the lowest interest loan, backed by your property","usp-1":"No cost — 100% free","usp-2":"Trusted partners","usp-3":"Certified & Secure","what-we-do-text":"With MNZL, you can protect your property ownership, and transform it into a digital wallet that gives you access to financing at low cost, all from the comfort of your home.","what-we-do-title":"Discover your buying power"}},"homepage":{"calculator":{"car-value":"Car value"},"cta-section":{"cta":"See how we can help","description":"Free, Online & non-binding!","title":"Get a free online loan recommendation in minutes"},"download-app-aria":"Download the phone app","featured-in":"Featured in","meta-description":"With the MNZL Wallet app, you can upload your property or car to a digital wallet, and withdraw the money you need from it. Giving you easy access to financing at the lowest cost and in the fastest time.","services":{"description":"We are dedicated to creating a digital wallet experience that makes tapping into your asset wealth seamless, transparent, and quick","title":"Why MNZL?","usp-1":{"description":"See all of your information, progress and statuses on the app. If you need help, our financial advisors are ready to support you through the entire process via chat or phone.","title":"Digital experience"},"usp-2":{"description":"Because you are tapping into your own assets, you are able to withdraw bigger amounts, for lower costs, with more flexible terms","title":"Lower costs"},"usp-3":{"description":"We guarantee to fulfill your financing needs in the shortest possible time","title":"Fast"},"usp-4":{"description":"We offer conventional as well as Islamic lending products, whatever your needs, we get you the best financing option","title":"Sharia Compliant"}},"solutions":{"cel":{"cta":"Learn more","description":"Just like a house, your car is a valuable asset. Leverage it to get cheaper financing at the best market terms.","eyebrow":"Car Backed Loan","title":"Unlock the value of your car"},"description":"We specialize in securing loans. Whatever your need, MNZL will find a way to help you get the right funding, with the right payment plan.","eyebrow":"Our Solutions","hel":{"cheapest-loan":"Cheapest Loan","cta":"Calculate my loan","description":"Get a loan backed by your property, and pay it back in up to 20 years, with the lowest interest rate in the market","eyebrow":"Property Backed Loan","lowest-rate":"Lowest interest rate in the market","title":"Your property can secure the lowest interest rate loan"},"title":"Why get a loan through MNZL?","usp-1":{"description":"You only talk to one person; your lending advisor. They help prepare your documents, apply for you at multiple lenders, and handle everything until your loan is closed.","title":"Easy application"},"usp-2":{"description":"We do not charge our customers, instead we collect fees from banks and lenders. The fee is standard for all lenders, which means we care only about getting you the best offer.","title":"100% Free"},"usp-3":{"description":"We are licensed by the Financial Regulatory Authority of Egypt. Our customers know and trust that their cases are handled in a safe and compliant manner.","title":"Licensed broker"},"usp-4":{"description":"We offer conventional as well as Islamic lending products, whatever your needs, we can match you with best suited lender to fulfil them.","title":"Sharia Compliant"}},"splash":{"cta":"Discover our solutions","description":"With the MNZL Wallet app, you can upload your property or car to a digital wallet, and withdraw the money you need from it. Giving you easy access to financing at the lowest cost and in the fastest time.","product-preview":{"car":{"subtitle":"Borrow up to 65% of your car\'s current market value","title":"I own a car"},"home":{"subtitle":"Borrow up to 80% of your property’s current market value","title":"I own a property"},"title":"Find out what you can borrow today — 100% free"},"title":"Get MNZL Wallet, the first digital wallet for your assets in Egypt"},"why-us":{"Testimonials":{"testimonial-1":{"name":"Ahmed Al-Moghazi","testimonial":"I extend my sincere thanks and appreciation to MNZL and the professional team, as I dealt with them to obtain financing services. The dealings were on a professional and distinguished level, the speed of response, the provision of service, the answers to all my inquiries, and the continuous follow-up until obtaining financing in a very short period.","title":"TV Chef"},"testimonial-2":{"name":"Wael Adel Rashad","testimonial":"They have a very professional team with excellent experience and knowledge of finance and its procedures in all banks and companies. I would like to thank them very much because they helped me very much and were supportive of me professionally in all procedures and follow-ups firsthand.","title":"Senior Procurement Specialist"},"testimonial-3":{"name":"Hassan Fawzy Hassan","testimonial":"MNZL is one of the leading and respected companies in its field, from the first time you deal with them you will experience professionalism in every aspect. They help you with every step you take, from the first time you start preparing your personal documents, they will be with you and in your back step by step until you receive your financing at the end.","title":"Head of treasury"}},"description":"At MNZL, we believe everyone should have access to credit to improve their lives and build more wealth. Asset backed financing is an established model world-wide. It allows people freedom and flexibility to pursue their projects and needs. We are on a mission to bring the same level of access to Africa.","title":"Our Mission","what-customers-say":"What Our Customers Say"}},"index":{"coming-soon":"Coming soon.","inquiries":"For inquiries, reach out to {{a}}hello@mnzl.co{{/a}}","subtitle":"The future of property financing","title":"MNZL"},"landing":{"app-cta":{"description":"It only takes 3 minutes to download our app, sign up and upload your first asset!","title":"Ready to get started?"},"calculator":{"cta":"Get personalized offer","interest-rate":"Interest rate","monthly-income":"Monthly income","monthly-payment":"Monthly payment","payment-term":"I want to pay it over","property-value":"Value of the Property","tenure":"{{tenure}} months"},"how-it-works":{"cta":"Get started now","four":"4","four-text":"Sign deal & Secure financing","one":"1","one-text":"Provide your details through our simple flow","products":{"home-equity":{"description":"Home equity investment allows you to use the wealth you have accumulated in your property for other needs. You can get financing for any large expenses you have -construction, medical bills, education- at a lower interest rate than personal loans/micro financing, and a much longer payback period -up to 20 years.{{br}}This makes it easier for you to liquidate your wealth when you need it, once you have paid back, you can get financing again and again.{{br}}How much you can get in financing depends on many factors. At MNZL we have built a digital calculator that can help you find out how much you can receive, and the different payment plans available.{{br}}Our team helps you secure the financing you need, we select the best suited bank/lender for you, and facilitate the process until completion. Best of all, it is completely free. We collect our commission from banks and lenders.","tab":"Home Equity","title":"Learn how to unlock the value of your home, and get affordable financing"}},"subtitle":"Learn how our products can help you","three":"3","three-text":"We start the process with the banks","title":"How it works","two":"2","two-text":"We build a personalized dashboard for you"},"perks":{"fast":"Fast","fast-text-1":"Build your profile once, use everywhere","fast-text-2":"Get financing within 4 weeks","free":"Free","free-text":"The service is at no cost to you. We get our commission from the bank.","personalized":"Personalized","personalized-text-1":"Your personal loan dashboard","personalized-text-2":"Our advisors will guide you and secure your loan","title":"Financing made ","title-underlined":"effortless"},"products":{"home-equity":{"cta":"See your options","description":"With MNZL’s home equity investment, you can use your home as a digital wallet, and get financing at low interest rates for any purpose you need.","pill":"This service is 100% <b>free</b> to use. Our fees are paid by lenders.","title":"Home Equity Investment"},"mortgage":{"cta":"See what you can afford","description":"Looking for financing to buy your home? MNZL’s recommendation engine will develop a custom dashboard for you, and our team will help you get the best possible financing plan for your needs.","pill":"This service is 100% <b>free</b> to use. Our fees are paid by lenders.","title":"Finance your dream home with MNZL"},"register":{"cta":"Register your home","description":"No need for endless government visits, long queues, or complex paperwork, MNZL’s Digital registration service makes getting your property legally registered in the notary an easy and quick process.","pill":"Using our registration calculator is <b>free</b>","title":"Digital Home Registration"}},"splash":{"cta":"Discover our products","subtitle":"Secure the best financing and payment plan for your property","title":"Your property is your wealth. Access it today.","what-we-do-text":"With MNZL, you can protect your property ownership, and transform it into a digital wallet that gives you access to financing at low cost, all from the comfort of your home.","what-we-do-title":"Discover your buying power"}}},"request-advice-dialog":{"description":"Thank you for requesting advice! Please confirm your phone number, and we will call you back shortly.","title":"Confirm Phone number"}}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(2095),t(6570),t(5123)}),_N_E=e.O()}]);
//# sourceMappingURL=_app-a63e55dbcf599384.js.map