!function(){"use strict";var t={518:function(t,e,n){function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{S:function(){return i},n:function(){return r}})},422:function(t,e,n){n.d(e,{KV:function(){return i},l$:function(){return o}});var r=n(518);function i(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}t=n.hmd(t)},170:function(t,e,n){n.d(e,{ph:function(){return l},yW:function(){return u}});var r=n(422),i=n(235);t=n.hmd(t);const o=(0,i.Rf)(),s={nowSeconds:()=>Date.now()/1e3},a=(0,r.KV)()?function(){try{return(0,r.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=o;if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===a?s:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=s.nowSeconds.bind(s),l=c.nowSeconds.bind(c);let h;(()=>{const{performance:t}=o;if(!t||!t.now)return void(h="none");const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function i(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function a(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;it instanceof Error?t:new Error(String(t)));function d(t){return"function"==typeof t}function f(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var _=f((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function y(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var g=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var u=o(c),l=u.next();!l.done;l=u.next())l.value.remove(this)}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else c.remove(this);var h=this.initialTeardown;if(d(h))try{h()}catch(t){i=t instanceof _?t.errors:[t]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var f=o(p),y=f.next();!y.done;y=f.next()){var g=y.value;try{E(g)}catch(t){i=null!=i?i:[],t instanceof _?i=a(a([],s(i)),s(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{y&&!y.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}if(i)throw new _(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)E(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&y(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&y(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),m=g.EMPTY;function v(t){return t instanceof g||t&&"closed"in t&&d(t.remove)&&d(t.add)&&d(t.unsubscribe)}function E(t){d(t)?t():t.unsubscribe()}var b=null,w=null,S=void 0,x=!1,T=!1,k={setTimeout:function(t,e){for(var n=[],r=2;r0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var e=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?m:(this.currentObservers=null,o.push(t),new g((function(){e.currentObservers=null,y(o,t)})))},n.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},n.prototype.asObservable=function(){var t=new M;return t.source=this,t},n.create=function(t,e){return new W(t,e)},n}(M),W=function(t){function n(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return e(n,t),n.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},n.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},n.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},n.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:m},n}(F);const H=new(function(t){function n(e){var n=t.call(this)||this;return n._value=e,n}return e(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},n.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},n.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},n}(F))(!1);Error,Error;class J extends Error{constructor(){super(...arguments),this.name="IgnoredError"}}class K extends J{constructor(){super("Отмена действия"),this.name="CancelledError"}}class X extends Error{constructor(t,e){super(t),this.extra=e,this.name="ExtraError"}}!function(t){let e;!function(t){t[t.Debug=1]="Debug",t[t.Info=2]="Info",t[t.Warning=3]="Warning",t[t.Error=4]="Error"}(e=t.Level||(t.Level={}))}(X=X||(X={}));class Z extends Error{constructor(t){super(`\n${t.map((t=>`\t${t.message.replaceAll("\n","\t\n")}`)).join("\n")}`),this.errors=t,this.name="MultiError"}}class Q extends Error{constructor(){super("Exception: Undefined metadata."),this.name="SerializerUndefinedMetadataError"}}const tt=t=>String(t).split("\n").map((t=>`\t${t}`)).join("\n");class et extends Error{constructor(t,e){super(`Ошибка десериализации значения ${String(e)}:\n${tt(t)}`),this.baseError=t,this.name="SerializerDeserializePropertyError"}}class nt extends Z{constructor(){super(...arguments),this.name="SerializerDeserializePropertiesError"}}class rt extends Error{constructor(t,e){super(`Ошибка десериализации объекта ${e.objectName||e.name}:\n${tt(t)}`),this.baseError=t,this.objectConstructor=e}}class it extends Error{constructor(t,e){super(`Ошибка сериализации значения ${String(e)}:\n${tt(t)}`),this.baseError=t,this.name="SerializerSerializePropertyError"}}class ot extends Error{constructor(t,e,n){super(`Не удалось десериализовать значение: ${e}.\n\tЧтобы игнорировать это, добавьте значение по-умолчанию`),this.value=n,this.name=`SerializerInvalidValueError[${t}]`}}class st{constructor(t,e){this.objectConstructor=t,this.data=e}static isInvalidValueError(t){let e=t;for(;e instanceof et||e instanceof rt;)e=e.baseError;return e instanceof ot||e instanceof nt&&e.errors.every((t=>this.isInvalidValueError(t)))}handleError(t,e,n){if(st.isInvalidValueError(t)&&n in e)return H.value&&console.debug(new rt(new nt([new et(t,n)]),this.objectConstructor)),e[n];throw new et(t,n)}deserialize(){if(this.metadata=this.objectConstructor[h],!this.metadata)throw new Q;const t=new this.objectConstructor;return this.deserializeProperties(t),t}deserializeProperties(t){var e,n;const r=[];for(const{config:i,key:o}of null!==(n=null===(e=this.metadata)||void 0===e?void 0:e.properties)&&void 0!==n?n:[])try{this.deserializeProperty(i,t,o)}catch(t){r.push(p(t))}if(r.length>0)throw new rt(new nt(r),this.objectConstructor)}deserializeProperty(t,e,n){const r=new t.matcher(t.path);let i;try{i=r.deserialize(this.data)}catch(t){i=this.handleError(p(t),e,n)}e[n]=i}}function at(t,e){if(!e)return t;if("object"!=typeof e)return e;const n=t;return Object.entries(e).forEach((([t,e])=>{n.hasOwnProperty(t)?e&&(n[t]=at(n[t]||{},e)):n[t]=e})),t}class ct{constructor(t,e,n){this.cleanObject=t,this.object=e,this.metadata=n}serialize(){if(!this.metadata)throw new Q;const t={};return this.serializeDynamicProperties(),this.serializeProperties(t),t}getDefaultValue(t){return this.cleanObject[t]}serializeDynamicProperties(){for(const{key:t,set:e}of this.metadata.dynamicProperties)this.object.hasOwnProperty(t)&&e(this.object,this.object[t])}}class ut extends ct{serializeProperties(t){for(const{config:e,key:n}of this.metadata.properties){const r=this.getDefaultValue(n),i=this.object.hasOwnProperty(n),o=new e.matcher(e.path),s=void 0===r||i?this.object[n]:r;let a;try{a=o.serialize(s)}catch(t){if(t instanceof Error)throw new it(t,n);throw t}Object.assign(t,at(t,a))}return t}}class lt extends ct{serializeProperties(t){for(const{config:e,key:n}of this.metadata.properties){const r=new e.matcher(e.path);let i;try{i=r.serialize(this.object[n])}catch(t){if(t instanceof Error)throw new it(t,n);throw t}Object.assign(t,at(t,i))}}}class ht extends st{constructor(t,e,n){super(t,e),this.initialValue=n}deserializeProperty(t,e,n){this.setInitialValue(e,n)||super.deserializeProperty(t,e,n)}setInitialValue(t,e){if(this.initialValue&&e in this.initialValue){const n=this.initialValue[e];if([void 0,null].includes(n))return t[e]=n,!0}return!1}}class pt{static create(t){if(t instanceof this)return t;const e=new ut(new this,t||{},this[h]).serialize();return new ht(this,e,t).deserialize()}static deserialize(t){return new st(this,t).deserialize()}static deserializeJSON(t){return this.deserialize(JSON.parse(t))}static deserializeArray(t){return t.map((t=>this.deserialize(t)))}static serialize(t){return this.create(t).serialize()}static serializeArray(t){return t.map((t=>this.create(t).serialize()))}serialize(){const t=this.constructor;return new lt(new this.constructor,this,t[h]).serialize()}serializeJSON(){return JSON.stringify(this.serialize())}copy(){const t=this.constructor;return new ht(t,new ut(new this.constructor,this,t[h]).serialize(),this).deserialize()}}pt[h]={constructor:pt,dynamicProperties:[],properties:[]},pt.objectName="",function(t){t.Strict=class extends t{static create(t){return super.create(t)}static serialize(t){return super.serialize(t)}}}(pt=pt||(pt={}));class dt{constructor(t,e,n){this.key=t,this.config=e,this.isOptional=n}}class ft extends String{constructor(t,e){super(t),this.words=e;const n=new.target.prototype;Object.setPrototypeOf(this,n)}}class _t extends ft{constructor(t){super(t.reduce(((t,e,n)=>(0===n?t.push(e.toLowerCase()):t.push(e.slice(0,1).toUpperCase()+e.slice(1).toLowerCase()),t)),[]).join(""),t)}static fromText(t){if(!this.pattern.test(t))throw new Error(`[CamelCase] Переданный текст "${t}", не прошел валидацию`);const e=[],n=this.firstWordPattern.exec(t);if(!n)throw new Error(`[CamelCase] Переданный текст "${t}", не прошел валидацию`);e.push(n[1]);let r=t.slice(n[1].length);for(;r.length>0;){const n=this.secondWordPattern.exec(r);if(!n)throw new Error(`[CamelCase] Переданный текст "${t}", не прошел валидацию`);const i=n[1]||n[2];e.push(i),r=r.slice(i.length)}return new _t(e)}toSnakeCase(){return new yt(this.words)}}_t.pattern=/^([a-z]+)(([0-9]+)|([A-Z][a-z]*))*$/,_t.firstWordPattern=/^([a-z]+)/,_t.secondWordPattern=/^([0-9]+)|([A-Z][a-z]*)/;class yt extends ft{constructor(t){super(t.map((t=>t.toLowerCase())).join("_"),t)}static fromText(t){if(!this.pattern.test(t))throw new Error(`[SnakeCase] Переданный текст "${t}", не прошел валидацию`);return new yt(t.toLowerCase().split("_"))}toCamelCase(){return new _t(this.words)}}function gt(t){return(e,n)=>{var r,i;i=function(t){let e=t[h];return e||(e={constructor:t,dynamicProperties:[],properties:[]}),e.constructor!==t&&(e={constructor:t,dynamicProperties:e.dynamicProperties.slice(),properties:e.properties.slice()}),t[h]=e,e}(e.constructor).properties,[new dt(n,{matcher:t.matcher,path:null!==(r=t.path)&&void 0!==r?r:[n]},void 0)].forEach((t=>{const e=i.findIndex((e=>e.key===t.key));e>=0&&i.splice(e,1),i.push(t)}))}}function mt(t){return(e,n)=>{if("string"!=typeof n)throw new Error("[Serializer] CamelCasePropertyDecorator может применяться только для строковые ключей.");gt({matcher:t,path:[_t.fromText(n).toSnakeCase().toString()]})(e,n)}}yt.pattern=/^([a-z]+)([_]+([a-z]+|[0-9]+))*$/;const vt=function(){const t=this;return class extends t{constructor(){super(...arguments),this.base=new t(this.path)}deserialize(t){if(void 0!==this.resolveValue(t))return this.base.deserialize(t)}serialize(t){return void 0===t?this.repackData(void 0):this.base.serialize(t)}}},Et=function(){const t=this;return class extends t{constructor(){super(...arguments),this.base=new t(this.path)}deserialize(t){return null===this.resolveValue(t)?null:this.base.deserialize(t)}serialize(t){return null===t?this.repackData(null):this.base.serialize(t)}}};class bt{constructor(t){this.path=t}static property(...t){return gt({path:t.length?t:void 0,matcher:this})}static camelCaseProperty(){return mt(this)}resolveValue(t,e=this.path){for(const n of e){if(!t||"object"!=typeof t)return;t=t[n]}return t}repackData(t){if(!this.path.length)return t;const e={};let n=e;for(const t of this.path.slice(0,-1))n[t]={},n=n[t];return n[this.path.slice(-1)[0]]=t,e}}bt.decorate=function(t){var e,n;const r=this;return n=class extends bt{constructor(){super(...arguments),e.set(this,new r(this.path))}deserialize(n){return t.deserialize(c(this,e,"f").deserialize(n))}serialize(n){return c(this,e,"f").serialize(t.serialize(n))}},e=new WeakMap,n};class wt extends ot{constructor(t){super("ArrayMatcher","не является массивом",t)}}class St extends bt{get matcher(){throw new Error("matcher не задан")}assertNoErrors(t,e){if(e.length>0)throw new nt(e)}deserialize(t){const e=this.resolveValue(t);if(Array.isArray(e)){const t=new this.matcher([]),n=[],r=e.map(((e,r)=>{try{return t.deserialize(e)}catch(t){return void n.push(new et(t instanceof Error?t:new Error(String(t)),`(index: ${r})`))}}));return this.assertNoErrors(r,n),r}throw new wt(e)}serialize(t){if(t){const e=new this.matcher([]);return this.repackData(t.map((t=>e.serialize(t))))}return this.repackData(void 0)}}St.allowNull=Et,St.allowUndefined=vt;class xt extends ot{constructor(t){super("BooleanMatcher","не является логическим значением",t)}}class Tt extends bt{deserialize(t){const e=this.resolveValue(t);if("boolean"==typeof e)return e;throw new xt(e)}serialize(t){return this.repackData(t)}}Tt.allowNull=Et,Tt.allowUndefined=vt;class kt extends ot{constructor(t){super("EnumMatcher","не является числом или строкой",t)}}class Dt extends bt{deserialize(t){const e=this.resolveValue(t);if("string"==typeof e||"number"==typeof e)return e;throw new kt(e)}serialize(t){return this.repackData(t)}}Dt.allowNull=Et,Dt.allowUndefined=vt;class Ot extends ot{constructor(t){super("NumberMatcher","не является числом",t)}}class Rt extends bt{deserialize(t){const e=this.resolveValue(t);if("number"==typeof e)return e;throw new Ot(e)}serialize(t){return this.repackData(t)}}Rt.allowNull=Et,Rt.allowUndefined=vt;class Nt extends ot{constructor(t){super("ObjectMatcher","не является объектом",t)}}class jt extends bt{get object(){throw new Error("object не задан")}deserialize(t){const e=this.resolveValue(t);if("object"==typeof e&&e)return this.object.deserialize(e);throw new Nt(e)}serialize(t){return t?this.repackData(this.object.serialize(t)):this.repackData(void 0)}}jt.allowNull=Et,jt.allowUndefined=vt;class Ut extends ot{constructor(t){super("SetMatcher","не является массивом",t)}}class $t extends bt{get matcher(){throw new Error("BaseMatcher не задан")}deserialize(t){const e=this.resolveValue(t);if(Array.isArray(e)){const t=new this.matcher([]);return new Set(e.map((e=>t.deserialize(e))))}throw new Ut(e)}serialize(t){if(t){const e=new this.matcher([]);return this.repackData(Array.from(t).map((t=>e.serialize(t))))}return this.repackData(void 0)}}$t.allowNull=Et,$t.allowUndefined=vt;class Pt extends ot{constructor(t){super("StringMatcher","не является строкой",t)}}class It extends bt{deserialize(t){const e=this.resolveValue(t);if("string"==typeof e)return e;throw new Pt(e)}serialize(t){return this.repackData(t)}}It.allowNull=Et,It.allowUndefined=vt;let Ct={getRandomValues(){throw new Error("Not implemented")}};var Bt;!function(t){const e=[];for(let t=0;t<256;t++)e[t]=(t+256).toString(16).slice(1);const n=/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/;let r;!function(t){class e extends Error{constructor(t){super(`UUID: невозможно провести сравнение с объектом "${JSON.stringify(t)}"`)}}t.InvalidCompareObject=e;class n extends Error{constructor(t){super(`UUID: Некорректный формат: "${t}"`)}}t.InvalidFormat=n}(r=t.Errors||(t.Errors={})),t.generate=()=>{const t=Ct.getRandomValues(new Uint8Array(16));t[6]=t[6]?15:64,t[8]=t[8]?63:128;let n=0;return[e[t[n++]],e[t[n++]],e[t[n++]],e[t[n++]],"-",e[t[n++]],e[t[n++]],"-",e[t[n++]],e[t[n++]],"-",e[t[n++]],e[t[n++]],"-",e[t[n++]],e[t[n++]],e[t[n++]],e[t[n++]],e[t[n++]],e[t[n++]]].join("")},t.isValidString=t=>n.test(t),t.from=e=>{if(!t.isValidString(e))throw new r.InvalidFormat(e);return e},t.equals=(...t)=>{if(!t[0])return!1;for(let e=1;e{this.callback()}),null!==(t=this.timing)&&void 0!==t?t:0)),this}cancel(){return this.interval&&(clearInterval(this.interval),this.interval=void 0),this}}e.setInterval=(...t)=>setInterval(...t),t.Interval=e;class n{constructor(t,e){this.callback=t,this.timing=e}static decorate(t){n.setTimeout=t(n.setTimeout)}start(){var t;return this.timeout||(this.timeout=n.setTimeout((()=>{this.timeout=void 0,this.callback()}),null!==(t=this.timing)&&void 0!==t?t:0)),this}cancel(){return this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0),this}}n.setTimeout=(...t)=>setTimeout(...t),t.Timeout=n}(Lt=Lt||(Lt={}));const qt=Symbol("TimeoutStorageKey"),Ft=Symbol("ResolveStorageKey");function Wt(t){return t[qt]||(t[qt]=new Map),t[qt]}function Ht(t){return t[Ft]||(t[Ft]=new Map),t[Ft]}const Jt=(t,e)=>{var n;const r=Wt(t),i=Ht(t),o=r.get(e);o&&(o.cancel(),r.delete(e),null===(n=i.get(e))||void 0===n||n())};function Kt(t=0,e){var n,r;let i,o=()=>{throw new K};return"object"==typeof t?(({key:e}=t),i=null!==(n=t.interval)&&void 0!==n?n:0,o=null!==(r=t.stubValue)&&void 0!==r?r:o):(i=t,o=()=>{}),function(t){if(t>3e4)throw new Error("[MethodWithInterval] Задан интервал более 30с");t>1e3&&console.warn("[MethodWithInterval] Задан интервал более 1с")}(i),(t,n,r)=>{const s=null!=e?e:n,a=r.value;return a?Object.assign(Object.assign({},r),{value:function(...t){return new Promise(((e,n)=>{Jt(this,s);const r=Wt(this),c=Ht(this);c.set(s,(()=>{try{e(o())}catch(t){n(t)}})),r.set(s,new Lt.Timeout((()=>{return n=this,i=void 0,u=function*(){c.delete(s),r.delete(s),e(yield a.apply(this,t))},new((o=void 0)||(o=Promise))((function(t,e){function r(t){try{a(u.next(t))}catch(t){e(t)}}function s(t){try{a(u.throw(t))}catch(t){e(t)}}function a(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(t){t(n)}))).then(r,s)}a((u=u.apply(n,i||[])).next())}));var n,i,o,u}),i).start())}))}}):r}}const Xt=t=>(e,n,r)=>{const i=r.value;i&&(r.value=function(...e){return Jt(this,t),i.apply(this,e)})};Kt.cancel=function(t,e){if(!e)return Xt(t);Jt(e,t)};var Zt=n(235);const Qt=["debug","info","warn","error","log","assert","trace"];function te(t){if(!("console"in Zt.n2))return t();const e=Zt.n2.console,n={};Qt.forEach((t=>{const r=e[t]&&e[t].__sentry_original__;t in e&&r&&(n[t]=e[t],e[t]=r)}));try{return t()}finally{Object.keys(n).forEach((t=>{e[t]=n[t]}))}}function ee(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Qt.forEach((n=>{e[n]=(...e)=>{t&&te((()=>{Zt.n2.console[n](`Sentry Logger [${n}]:`,...e)}))}})):Qt.forEach((t=>{e[t]=()=>{}})),e}let ne;ne="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,Zt.YO)("logger",ee):ee();const re=Object.prototype.toString;function ie(t){switch(re.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return de(t,Error)}}function oe(t,e){return re.call(t)===`[object ${e}]`}function se(t){return oe(t,"ErrorEvent")}function ae(t){return oe(t,"DOMError")}function ce(t){return oe(t,"String")}function ue(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function le(t){return oe(t,"Object")}function he(t){return"undefined"!=typeof Event&&de(t,Event)}function pe(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function de(t,e){try{return t instanceof e}catch(t){return!1}}const fe=(0,Zt.Rf)();function _e(t,e={}){try{let n=t;const r=5,i=[];let o=0,s=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&o++1&&s+i.length*c+u.length>=h));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(a)}catch(t){return""}}function ye(t,e){const n=t,r=[];let i,o,s,a,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&ce(i))for(o=i.split(/\s+/),c=0;cfunction(t,e,n=!1){return!!ce(t)&&(oe(e,"RegExp")?e.test(t):!!ce(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}function Ee(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{we(i,r)}catch(t){}t[e]=i}function be(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function we(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,be(t,"__sentry_original__",e)}function Se(t){return t.__sentry_original__}function xe(t){if(ie(t))return{message:t.message,name:t.name,stack:t.stack,...ke(t)};if(he(t)){const e={type:t.type,target:Te(t.target),currentTarget:Te(t.currentTarget),...ke(t)};return"undefined"!=typeof CustomEvent&&de(t,CustomEvent)&&(e.detail=t.detail),e}return t}function Te(t){try{return"undefined"!=typeof Element&&de(t,Element)?_e(t):Object.prototype.toString.call(t)}catch(t){return""}}function ke(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function De(t,e=40){const n=Object.keys(xe(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return ge(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:ge(r,e)}return""}function Oe(t){return Re(t,new Map)}function Re(t,e){if(le(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=Re(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(Re(t,e))})),r}return t}function Ne(){const t=Zt.n2,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function je(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Ue(t){const{message:e,event_id:n}=t;if(e)return e;const r=je(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function $e(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function Pe(t,e){const n=je(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function Ie(t){if(t&&t.__sentry_captured__)return!0;try{be(t,"__sentry_captured__",!0)}catch(t){}return!1}function Ce(t){return Array.isArray(t)?t:[t]}const Be=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ze{static __initStatic(){this.id="InboundFilters"}__init(){this.name=ze.id}constructor(t={}){this._options=t,ze.prototype.__init.call(this)}setupOnce(t,e){const n=t=>{const n=e();if(n){const e=n.getIntegration(ze);if(e){const r=n.getClient(),i=r?r.getOptions():{},o=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...Be],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(e._options,i);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Ue(t)}`),!0):function(t,e){return!(!e||!e.length)&&function(t){if(t.message)return[t.message];if(t.exception)try{const{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.error(`Cannot extract message for event ${Ue(t)}`),[]}return[]}(t).some((t=>ve(t,e)))}(t,e.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Ue(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=Ye(t);return!!n&&ve(n,e)}(t,e.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Ue(t)}.\nUrl: ${Ye(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=Ye(t);return!n||ve(n,e)}(t,e.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Ue(t)}.\nUrl: ${Ye(t)}`),!0)}(t,o)?null:t}}return t};n.id=this.name,t(n)}}function Ye(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.error(`Cannot extract url for event ${Ue(t)}`),null}}let Ae;ze.__initStatic();class Le{constructor(){Le.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Le.id}setupOnce(){Ae=Function.prototype.toString,Function.prototype.toString=function(...t){const e=Se(this)||this;return Ae.apply(e,t)}}}Le.__initStatic();var Ge,Me=n(170),Ve=n(422);function qe(t){return new We((e=>{e(t)}))}function Fe(t){return new We(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(Ge||(Ge={}));class We{__init(){this._state=Ge.PENDING}__init2(){this._handlers=[]}constructor(t){We.prototype.__init.call(this),We.prototype.__init2.call(this),We.prototype.__init3.call(this),We.prototype.__init4.call(this),We.prototype.__init5.call(this),We.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new We(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new We(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init3(){this._resolve=t=>{this._setResult(Ge.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(Ge.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===Ge.PENDING&&(pe(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===Ge.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===Ge.RESOLVED&&t[1](this._value),this._state===Ge.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function He(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,Me.ph)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Ne()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class Je{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const e=new Je;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&He(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof Je?e:this}return t instanceof Je?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):le(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.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(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,Me.yW)(),...t};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(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction&&this._span.transaction.name;e&&(t.tags={transaction:e,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...Ke(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,r=0){return new We(((i,o)=>{const s=t[r];if(null===e||"function"!=typeof s)i(e);else{const a=s({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===a&&ne.log(`Event processor "${s.id}" dropped event`),pe(a)?a.then((e=>this._notifyEventProcessors(t,e,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(t,a,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?Ce(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Ke(){return(0,Zt.YO)("globalEventProcessors",(()=>[]))}function Xe(t){Ke().push(t)}const Ze=100;class Qe{__init(){this._stack=[{}]}constructor(t,e=new Je,n=4){this._version=n,Qe.prototype.__init.call(this),this.getStackTop().scope=e,t&&this.bindClient(t)}isOlderThan(t){return this._version{i.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},o)})),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Ne(),i=new Error(t);return this._withClient(((o,s)=>{o.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},s)})),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Ne();return t.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Ze}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const s={timestamp:(0,Me.yW)(),...t},a=i?te((()=>i(s,e))):s;null!==a&&n.addBreadcrumb(a,o)}setUser(t){const e=this.getScope();e&&e.setUser(t)}setTags(t){const e=this.getScope();e&&e.setTags(t)}setExtras(t){const e=this.getScope();e&&e.setExtras(t)}setTag(t,e){const n=this.getScope();n&&n.setTag(t,e)}setExtra(t,e){const n=this.getScope();n&&n.setExtra(t,e)}setContext(t,e){const n=this.getScope();n&&n.setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();e&&n&&t(e)}run(t){const e=en(this);try{t(this)}finally{en(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){return this._callExtensionMethod("startTransaction",t,e)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&function(t,e){let n={};"ok"===t.status&&(n={status:"exited"}),He(t,n)}(n),this._sendSessionUpdate(),e&&e.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{},{userAgent:o}=Zt.n2.navigator||{},s=function(t){const e=(0,Me.ph)(),n={sid:Ne(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return Oe({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&He(n,t),n}({release:r,environment:i,...e&&{user:e.getUser()},...o&&{userAgent:o},...t});if(e){const t=e.getSession&&e.getSession();t&&"ok"===t.status&&He(t,{status:"exited"}),this.endSession(),e.setSession(s)}return s}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop();if(!t)return;const n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=tn().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function tn(){return Zt.n2.__SENTRY__=Zt.n2.__SENTRY__||{extensions:{},hub:void 0},Zt.n2}function en(t){const e=tn(),n=on(e);return sn(e,t),n}function nn(){const t=tn();return rn(t)&&!on(t).isOlderThan(4)||sn(t,new Qe),(0,Ve.KV)()?function(t){try{const e=tn().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return on(t);if(!rn(n)||on(n).isOlderThan(4)){const e=on(t).getStackTop();sn(n,new Qe(e.client,Je.clone(e.scope)))}return on(n)}catch(e){return on(t)}}(t):on(t)}function rn(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function on(t){return(0,Zt.YO)("hub",(()=>new Qe),t)}function sn(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}const an=[];function cn(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?Ce(n(e)):e;const i=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.values(e)}(r),o=i.findIndex((t=>"Debug"===t.name));if(-1!==o){const[t]=i.splice(o,1);i.push(t)}return i}function un(t,e){e[t.name]=t,-1===an.indexOf(t.name)&&(t.setupOnce(Xe,nn),an.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.log(`Integration installed: ${t.name}`))}const ln=new Map;function hn(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[];for(const t of e){let e=ln.get(t);e||(e=new Map,ln.set(t,e));const n=Zt.n2._sentryDebugIds;n&&Object.keys(n).forEach((r=>{r.split("\n").forEach((i=>{const o=t(i);o&&o.filename&&e.set(o.filename,n[r])}))}))}for(const i of t.split("\n").slice(n)){if(i.length>1024)continue;const t=i.replace(/\(error: (.*)\)/,"$1");for(const n of e){const e=n(t);if(e){const t=ln.get(n);if(t&&e.filename){const n=t.get(e.filename);n&&(e.debug_id=n)}r.push(e);break}}}return function(t){if(!t.length)return[];let e=t;const n=e[0].function||"",r=e[e.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((t=>({...t,filename:t.filename||e[0].filename,function:t.function||"?"}))).reverse()}(r)}}const pn="";function dn(t){try{return t&&"function"==typeof t&&t.name||pn}catch(t){return pn}}const fn=(0,Zt.Rf)();function _n(){if(!("fetch"in fn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function yn(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const gn=(0,Zt.Rf)(),mn={},vn={};function En(t,e){mn[t]=mn[t]||[],mn[t].push(e),function(t){if(!vn[t])switch(vn[t]=!0,t){case"console":"console"in gn&&Qt.forEach((function(t){t in gn.console&&Ee(gn.console,t,(function(e){return function(...n){bn("console",{args:n,level:t}),e&&e.apply(gn.console,n)}}))}));break;case"dom":!function(){if(!("document"in gn))return;const t=bn.bind(null,"dom"),e=Dn(t,!0);gn.document.addEventListener("click",e,!1),gn.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=gn[e]&&gn[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Ee(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){const r=Dn(t);s.handler=r,e.call(this,n,r,i)}s.refCount++}catch(t){}return e.call(this,n,r,i)}})),Ee(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in gn))return;const t=XMLHttpRequest.prototype;Ee(t,"open",(function(t){return function(...e){const n=this,r=e[1],i=n.__sentry_xhr__={method:ce(e[0])?e[0].toUpperCase():e[0],url:e[1]};ce(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const o=function(){if(4===n.readyState){try{i.status_code=n.status}catch(t){}bn("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?Ee(n,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(n,e)}})):n.addEventListener("readystatechange",o),t.apply(n,e)}})),Ee(t,"send",(function(t){return function(...e){return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),bn("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":(function(){if(!_n())return!1;if(yn(fn.fetch))return!0;let t=!1;const e=fn.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=yn(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&Ee(gn,"fetch",(function(t){return function(...e){const n={args:e,fetchData:{method:wn(e),url:Sn(e)},startTimestamp:Date.now()};return bn("fetch",{...n}),t.apply(gn,e).then((t=>(bn("fetch",{...n,endTimestamp:Date.now(),response:t}),t)),(t=>{throw bn("fetch",{...n,endTimestamp:Date.now(),error:t}),t}))}}));break;case"history":!function(){if(!function(){const t=fn.chrome,e=t&&t.app&&t.app.runtime,n="history"in fn&&!!fn.history.pushState&&!!fn.history.replaceState;return!e&&n}())return;const t=gn.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=xn,e=String(n);xn=e,bn("history",{from:t,to:e})}return t.apply(this,e)}}gn.onpopstate=function(...e){const n=gn.location.href,r=xn;if(xn=n,bn("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},Ee(gn.history,"pushState",e),Ee(gn.history,"replaceState",e)}();break;case"error":On=gn.onerror,gn.onerror=function(t,e,n,r,i){return bn("error",{column:r,error:i,line:n,msg:t,url:e}),!!On&&On.apply(this,arguments)};break;case"unhandledrejection":Rn=gn.onunhandledrejection,gn.onunhandledrejection=function(t){return bn("unhandledrejection",t),!Rn||Rn.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn("unknown instrumentation type:",t)}}(t)}function bn(t,e){if(t&&mn[t])for(const n of mn[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${dn(n)}\nError:`,e)}}function wn(t=[]){return"Request"in gn&&de(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function Sn(t=[]){return"string"==typeof t[0]?t[0]:"Request"in gn&&de(t[0],Request)?t[0].url:String(t[0])}let xn,Tn,kn;function Dn(t,e=!1){return n=>{if(!n||kn===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===Tn||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(kn,n))&&(t({event:n,name:r,global:e}),kn=n),clearTimeout(Tn),Tn=gn.setTimeout((()=>{Tn=void 0}),1e3)}}let On=null,Rn=null;class Nn extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const jn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Un(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}function $n(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Pn(t,e=1/0,n=1/0){try{return Cn("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function In(t,e=3,n=102400){const r=Pn(t,e);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>n?In(t,e-1,n):r;var i}function Cn(t,e,r=1/0,i=1/0,o=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t=i){h[t]="[MaxProperties ~]";break}const e=d[t];h[t]=Cn(t,e,r-1,i,o),p++}return a(e),h}function Bn(t,e=[]){return[t,e]}function zn(t,e){const[n,r]=t;return[n,[...r,e]]}function Yn(t,e){t[1].forEach((t=>{const n=t[0].type;e(t,n)}))}function An(t,e){return(e||new TextEncoder).encode(t)}function Ln(t,e){const[n,r]=t;let i=JSON.stringify(n);function o(t){"string"==typeof i?i="string"==typeof t?i+t:[An(i,e),t]:i.push("string"==typeof t?An(t,e):t)}for(const t of r){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(Pn(n))}o(t)}}return"string"==typeof i?i:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(i)}function Gn(t,e){const n="string"==typeof t.data?An(t.data,e):t.data;return[Oe({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Mn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function Vn(t){return Mn[t]}function qn(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function Fn(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return n={sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}(t,r)}`}const Wn="Not capturing exception because it's already been captured.";class Hn{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(t){if(Hn.prototype.__init.call(this),Hn.prototype.__init2.call(this),Hn.prototype.__init3.call(this),Hn.prototype.__init4.call(this),this._options=t,t.dsn){this._dsn=function(t){const e="string"==typeof t?function(t){const e=jn.exec(t);if(!e)throw new Nn(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",o,s="",a]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return $n({host:o,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}(t):$n(t);return function(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:e,projectId:n,protocol:r}=t;if(["protocol","publicKey","host","projectId"].forEach((e=>{if(!t[e])throw new Nn(`Invalid Sentry Dsn: ${e} missing`)})),!n.match(/^\d+$/))throw new Nn(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(t){return"http"===t||"https"===t}(r))throw new Nn(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(e&&isNaN(parseInt(e,10)))throw new Nn(`Invalid Sentry Dsn: Invalid port ${e}`)}(e),e}(t.dsn);const e=Fn(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn("No DSN provided, client will not do anything.")}captureException(t,e,n){if(Ie(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.log(Wn));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let i=n&&n.event_id;const o=ue(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(o.then((t=>this._captureEvent(t,n,r))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&Ie(e.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.log(Wn));let r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((t=>{r=t}))),r}captureSession(t){this._isEnabled()?"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),He(t,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t)))):qe(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t){const e={};return t.forEach((t=>{t&&un(t,e)})),e}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){un(t,this._integrations)}sendEvent(t,e={}){if(this._dsn){let n=function(t,e,n,r){const i=qn(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const s=function(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:Un(r)},..."transaction"===t.type&&i&&{trace:Oe({...i})}}}(t,i,r,e);return delete t.sdkProcessingMetadata,Bn(s,[[{type:o},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=zn(n,Gn(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(n)}}sendSession(t){if(this._dsn){const e=function(t,e,n,r){const i=qn(n);return Bn({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:Un(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(He(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new We((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(t,e,n){const r=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),function(t,e,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=t,s={...e,event_id:e.event_id||n.event_id||Ne(),timestamp:e.timestamp||(0,Me.yW)()},a=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=ge(t.message,o));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=ge(s.value,o));const a=t.request;a&&a.url&&(a.url=ge(a.url,o))}(s,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(s,a);let c=r;n.captureContext&&(c=Je.clone(c).update(n.captureContext));let u=qe(s);if(c){if(c.getAttachments){const t=[...n.attachments||[],...c.getAttachments()];t.length&&(n.attachments=t)}u=c.applyToEvent(s,n)}return u.then((t=>"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Pn(t.data,e,n)}})))},...t.user&&{user:Pn(t.user,e,n)},...t.contexts&&{contexts:Pn(t.contexts,e,n)},...t.extra&&{extra:Pn(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Pn(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=Pn(t.data,e,n)),t)))),r}(t,i,o):t))}(r,t,e,n)}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=t;"log"===e.logLevel?ne.log(e.message):ne.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return Fe(new Nn("SDK not enabled, will not capture event.","log"));const o=Kn(t),s=Jn(t),a=t.type||"error",c=`before send for type \`${a}\``;if(s&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Fe(new Nn(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===a?"replay":a;return this._prepareEvent(t,e,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new Nn("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const i=function(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;return Jn(e)&&r?r(e,n):Kn(e)&&i?i(e,n):e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(pe(t))return t.then((t=>{if(!le(t)&&null!==t)throw new Nn(n);return t}),(t=>{throw new Nn(`${e} rejected with ${t}`)}));if(!le(t)&&null!==t)throw new Nn(n);return t}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,t),new Nn(`${c} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);const s=r.transaction_info;if(o&&s&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...s,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof Nn)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new Nn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){this._transport&&this._dsn?this._transport.send(t).then(null,(t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.error("Error while sending event:",t)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function Jn(t){return void 0===t.type}function Kn(t){return"transaction"===t.type}const Xn="7.38.0";var Zn=n(518);function Qn(t,e){const n=er(t,e),r={type:e&&e.name,value:rr(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tr(t,e){return{exception:{values:[Qn(t,e)]}}}function er(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(nr.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const nr=/Minified React error #\d+;/i;function rr(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function ir(t,e,n,r,i){let o;if(se(e)&&e.error)return tr(t,e.error);if(ae(e)||oe(e,"DOMException")){const i=e;if("stack"in e)o=tr(t,e);else{const e=i.name||(ae(i)?"DOMError":"DOMException"),s=i.message?`${e}: ${i.message}`:e;o=or(t,s,n,r),$e(o,s)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return ie(e)?tr(t,e):le(e)||he(e)?(o=function(t,e,n,r){const i=nn().getClient(),o=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:he(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${De(e)}`}]},extra:{__serialized__:In(e,o)}};if(n){const e=er(t,n);e.length&&(s.exception.values[0].stacktrace={frames:e})}return s}(t,e,n,i),Pe(o,{synthetic:!0}),o):(o=or(t,e,n,r),$e(o,`${e}`,void 0),Pe(o,{synthetic:!0}),o)}function or(t,e,n,r){const i={message:e};if(r&&n){const r=er(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}return i}function sr(t,e){return nn().captureException(t,{captureContext:e})}function ar(t){nn().withScope(t)}const cr=Zt.n2;let ur=0;function lr(){return ur>0}function hr(){ur++,setTimeout((()=>{ur--}))}function pr(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(Se(t))return t}catch(e){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((t=>pr(t,e)));return t.apply(this,i)}catch(t){throw hr(),ar((n=>{n.addEventProcessor((t=>(e.mechanism&&($e(t,void 0,void 0),Pe(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),sr(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}we(r,t),be(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch(t){}return r}const dr=["fatal","error","warning","log","info","debug"];function fr(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}const _r="Breadcrumbs";class yr{static __initStatic(){this.id=_r}__init(){this.name=yr.id}constructor(t){yr.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){var t;this.options.console&&En("console",gr),this.options.dom&&En("dom",(t=this.options.dom,function(e){let n,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.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{n=e.event.target?_e(e.event.target,{keyAttrs:r,maxStringLength:i}):_e(e.event,{keyAttrs:r,maxStringLength:i})}catch(t){n=""}0!==n.length&&nn().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})})),this.options.xhr&&En("xhr",mr),this.options.fetch&&En("fetch",vr),this.options.history&&En("history",Er)}addSentryBreadcrumb(t){this.options.sentry&&nn().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Ue(t)},{event:t})}}function gr(t){for(let e=0;e{"hidden"===cr.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const i=ir(t,e,n&&n.syntheticException||void 0,r);return Pe(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),qe(i)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){const o=or(t,e,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),qe(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}sendEvent(t,e){const n=this.getIntegrationById(_r);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(t),super.sendEvent(t,e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.log("Sending outcomes:",t);const e=Fn(this._dsn,this._options),n=(r=t,Bn((i=this._options.tunnel&&Un(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:(0,Me.yW)(),discarded_events:r}]]));var r,i;try{"[object Navigator]"===Object.prototype.toString.call(cr&&cr.navigator)&&"function"==typeof cr.navigator.sendBeacon&&!this._options.transportOptions?cr.navigator.sendBeacon.bind(cr.navigator)(e,Ln(n)):this._sendEnvelope(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.error(t)}}}class wr{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=wr.id}__init2(){this._installFunc={onerror:Sr,onunhandledrejection:xr}}constructor(t){wr.prototype.__init.call(this),wr.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}var e}}function Sr(){En("error",(t=>{const[e,n,r]=Dr();if(!e.getIntegration(wr))return;const{msg:i,url:o,line:s,column:a,error:c}=t;if(lr()||c&&c.__sentry_own_request__)return;const u=void 0===c&&ce(i)?function(t,e,n,r){let i=se(t)?t.message:t,o="Error";const s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(o=s[1],i=s[2]),Tr({exception:{values:[{type:o,value:i}]}},e,n,r)}(i,o,s,a):Tr(ir(n,c||i,void 0,r,!1),o,s,a);u.level="error",kr(e,c,u,"onerror")}))}function xr(){En("unhandledrejection",(t=>{const[e,n,r]=Dr();if(!e.getIntegration(wr))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(lr()||i&&i.__sentry_own_request__)return!0;const o=ue(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ir(n,i,void 0,r,!0);o.level="error",kr(e,i,o,"onunhandledrejection")}))}function Tr(t,e,n,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,h=ce(e)&&e.length>0?e:function(){try{return fe.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:u,filename:h,function:"?",in_app:!0,lineno:l}),t}function kr(t,e,n,r){Pe(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Dr(){const t=nn(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}wr.__initStatic();const Or=["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 Rr{static __initStatic(){this.id="TryCatch"}__init(){this.name=Rr.id}constructor(t){Rr.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&Ee(cr,"setTimeout",Nr),this._options.setInterval&&Ee(cr,"setInterval",Nr),this._options.requestAnimationFrame&&Ee(cr,"requestAnimationFrame",jr),this._options.XMLHttpRequest&&"XMLHttpRequest"in cr&&Ee(XMLHttpRequest.prototype,"send",Ur);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:Or).forEach($r)}}function Nr(t){return function(...e){const n=e[0];return e[0]=pr(n,{mechanism:{data:{function:dn(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function jr(t){return function(e){return t.apply(this,[pr(e,{mechanism:{data:{function:"requestAnimationFrame",handler:dn(t)},handled:!0,type:"instrument"}})])}}function Ur(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&Ee(n,t,(function(e){const n={mechanism:{data:{function:t,handler:dn(e)},handled:!0,type:"instrument"}},r=Se(e);return r&&(n.mechanism.data.handler=dn(r)),pr(e,n)}))})),t.apply(this,e)}}function $r(t){const e=cr,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Ee(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=pr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:dn(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.apply(this,[n,pr(r,{mechanism:{data:{function:"addEventListener",handler:dn(r),target:t},handled:!0,type:"instrument"}}),i])}})),Ee(n,"removeEventListener",(function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}})))}Rr.__initStatic();class Pr{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Pr.id}constructor(t={}){Pr.prototype.__init.call(this),this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){const t=nn().getClient();t&&Xe(((e,n)=>{const r=nn().getIntegration(Pr);return r?function(t,e,n,r,i){if(!(r.exception&&r.exception.values&&i&&de(i.originalException,Error)))return r;const o=Ir(t,n,i.originalException,e);return r.exception.values=[...o,...r.exception.values],r}(t.getOptions().stackParser,r._key,r._limit,e,n):e}))}}function Ir(t,e,n,r,i=[]){if(!de(n[r],Error)||i.length+1>=e)return i;const o=Qn(t,n[r]);return Ir(t,e,n[r],r,[o,...i])}Pr.__initStatic();class Cr{constructor(){Cr.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Cr.id}setupOnce(){Xe((t=>{if(nn().getIntegration(Cr)){if(!cr.navigator&&!cr.location&&!cr.document)return t;const e=t.request&&t.request.url||cr.location&&cr.location.href,{referrer:n}=cr.document||{},{userAgent:r}=cr.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};return{...t,request:o}}return t}))}}Cr.__initStatic();class Br{constructor(){Br.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Br.id}setupOnce(t,e){const n=t=>{if(t.type)return t;const n=e().getIntegration(Br);if(n){try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Yr(t,e)&&!!zr(t,e))))}(t,e)||!!function(t,e){const n=Ar(e),r=Ar(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Yr(t,e)&&!!zr(t,e)))}(t,e))}(t,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n._previousEvent=t}return n._previousEvent=t}return t};n.id=this.name,t(n)}}function zr(t,e){let n=Lr(t),r=Lr(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,qr=/\((\S*)(?::(\d+))(?::(\d+))\)/,Fr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Wr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Hr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jr=hn([30,t=>{const e=Vr.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=qr.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Kr(e[1]||Gr,e[2]);return Mr(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=Fr.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=Wr.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Gr;return[n,t]=Kr(n,t),Mr(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=Hr.exec(t);return e?Mr(e[2],e[1]||Gr,+e[3],e[4]?+e[4]:void 0):void 0}]),Kr=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Gr,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function Xr(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new We(((n,r)=>{let i=e.length;if(!i)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{qe(t).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(t.bufferSize||30)){let r={};return{send:function(i){const o=[];if(Yn(i,((e,n)=>{const i=Vn(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,i)){const r=Zr(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(e)})),0===o.length)return qe();const s=Bn(i[0],o),a=e=>{Yn(s,((n,r)=>{const i=Zr(n,r);t.recordDroppedEvent(e,Vn(r),i)}))};return n.add((()=>e({body:Ln(s,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n]=t.split(":",2),o=parseInt(e,10),s=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))i[t]=r+s;else i.all=r+s}else s?i.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(s,r):429===e&&(i.all=r+6e4);return i}(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof Nn)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.error("Skipped sending event because buffer is full."),a("queue_overflow"),qe();throw t}))},flush:t=>n.drain(t)}}function Zr(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let Qr;function ti(t,e=function(){if(Qr)return Qr;if(yn(cr.fetch))return Qr=cr.fetch.bind(cr);const t=cr.document;let e=cr.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Qr=e.bind(cr)}()){return Xr(t,(function(n){const r={body:n.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n.body.length<=65536,...t.fetchOptions};try{return e(t.url,r).then((t=>({statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Qr=void 0,Fe(t)}}))}function ei(t){return Xr(t,(function(e){return new We(((n,r)=>{const i=new XMLHttpRequest;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",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)}))}))}const ni=[new ze,new Le,new Rr,new yr,new wr,new Pr,new Br,new Cr];function ri(t){t.startSession({ignoreDuration:!0}),t.captureSession()}var ii;!function(t){t.escape=function(t){return t.replace(/[-[\]{}()*+?.,\\^$#|]/g,"\\$&").replace(/\s/g,"\\\\s")},t.toStringWithoutSlashes=function(t,e){const n=String(t).replace(/\\\\s/,"\\s").replace(/\/(.*)\/(.*)/,"$1");return e?n.replace(/^\^|\$$/g,""):n}}(ii=ii||(ii={}));const oi=document.currentScript.getAttribute("src"),si=new RegExp(`at (.*\\()?${ii.escape(oi)}(\\))?:[\\d]+:[\\d]+`);class ai{constructor(t){this.document=t,this.selfScript=this.document.currentScript}static initSentry(t){!function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=ni),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),cr.SENTRY_RELEASE&&cr.SENTRY_RELEASE.id&&(t.release=cr.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(n=t.stackParser||Jr,Array.isArray(n)?hn(...n):n),integrations:cn(t),transport:t.transport||(_n()?ti:ei)};var n;!function(t,e){!0===e.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?ne.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=nn(),r=n.getScope();r&&r.update(e.initialScope);const i=new t(e);n.bindClient(i)}(br,e),t.autoSessionTracking&&function(){if(void 0===cr.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&ne.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const t=nn();t.captureSession&&(ri(t),En("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&ri(nn())})))}()}({dsn:"https://a48683acc4c840e0b2ce4f44f6a5b003@sentry.b2bpolis.ru/3",release:"nosok.24.01.0",beforeSend(e,n){return e.tags=e.tags||{},e.tags.application=t,n.originalException instanceof Error?si.test(n.originalException.stack?.split("\n")[1]||"")?e:null:e}})}updateViewport(){const t=this.parseMetaData();t.width="device-width",t.height="device-height",t["viewport-fit"]="cover",t["initial-scale"]="1",t["maximum-scale"]="1";const e=Object.entries(t).map((t=>t.join("="))).join(",");this.getOrCreateViewport().content=e}throwError(t){throw new Error(t)}getOrCreateViewport(){const t=this.document.querySelector('meta[name="viewport"]');if(t)return t;const e=document.createElement("meta");return e.name="viewport",e.content="",this.document.head.appendChild(e),e}parseMetaData(){const t={},e=this.getOrCreateViewport().content.replace(/\s/g,"");return e?(e.split(",").forEach((e=>{const[n,r]=e.split("=");t[n]=r})),t):t}}window.B2CWidgetParams?.isSentryDisabled||ai.initSentry("Frame Loader");const ci=Symbol("frameEventHandlersKey"),ui=t=>(e,n,r)=>(e[ci]={...e[ci]||void 0,[t]:n},r);class li extends ai{constructor(t){super(t),this.frame=this.document.createElement("iframe"),this.frameId=Bt.generate(),li.location||this.throwError("[B2CFrameLoader]: Не найден B2CWidgetLocation"),li.location.endsWith("/")||(li.location+="/"),this.initFrame()}static get location(){return window.B2CWidgetLocation}static set location(t){window.B2CWidgetLocation=t}initFrame(){const t=new URL(li.location);t.searchParams.set("domain",encodeURI(window.location.hostname)),t.searchParams.set("frameId",this.frameId.toString()),t.searchParams.set("parentHref",encodeURI(window.location.href));const e=new URL(location.href);e.searchParams.forEach(((e,n)=>{t.searchParams.set(n,e)})),e.searchParams.get(u)&&(e.searchParams.delete(u),history.pushState({},"",e.href));const n=window.B2CWidgetParams;n&&t.searchParams.set("b2c-params",JSON.stringify(n)),n?.doNotModifyViewport||this.updateViewport(),Object.assign(this.frame.style,{width:"0",minWidth:"100%",border:"none",background:"transparent",transition:"200ms ease-in-out"}),n?.isMainPageCollapsed&&(this.frame.style.minHeight="400px"),this.frame.onload=()=>{this.onLoad()},window.addEventListener("message",(t=>{let e;try{if(e=Vt.deserializeJSON(t.data),e.frameId!==this.frameId)return}catch{}e&&((t,e)=>{t[t[ci][e.event]]?.(e)})(this,e)})),this.frame.setAttribute("src",t.href),this.frame.id="b2c-frame",this.selfScript.parentNode.insertBefore(this.frame,this.selfScript)}onScrollTo(t){const{top:e}=t.params,n=this.frame.getBoundingClientRect(),r=n.top+e+window.pageYOffset;return n.height>window.innerHeight?window.innerHeight>n.height-e?window.scrollTo({top:r-(window.innerHeight-n.height+e),behavior:"smooth"}):window.scrollTo({top:r,behavior:"smooth"}):window.scrollTo({top:n.top+window.pageYOffset,behavior:"smooth"}),Promise.resolve()}onResize(t){const{offsetHeight:e}=t.params;this.frame.style.height=`${e}px`,this.frame.contentWindow.postMessage(JSON.stringify({event:"autoheight"}),"*")}onScrollToTop(){this.frame.scrollIntoView({block:"start",behavior:"smooth"})}onEvent(t){const e=new CustomEvent("b2c-module-event",{detail:t.params,cancelable:!1});window.dispatchEvent(e)}onLoad(){this.frame.contentWindow.postMessage(JSON.stringify({event:"setBodyOverflow",data:"hidden"}),"*")}}r([ui(l.ScrollTo),Kt(200),i("design:type",Function),i("design:paramtypes",[Vt]),i("design:returntype",Promise)],li.prototype,"onScrollTo",null),r([ui(l.Resize),i("design:type",Function),i("design:paramtypes",[Vt]),i("design:returntype",void 0)],li.prototype,"onResize",null),r([ui(l.ScrollToTop),i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],li.prototype,"onScrollToTop",null),r([ui(l.Event),i("design:type",Function),i("design:paramtypes",[Vt]),i("design:returntype",void 0)],li.prototype,"onEvent",null),pr((()=>new li(document)))()}()}();