@icanbwell/composite 1.1304.7 → 1.1305.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(globalThis.webpackChunk_icanbwell_composite||=[]).push([[964],{5964(F,d,n){n.r(d),n.d(d,{DefaultErrorBoundaryFallback:()=>E});function l(r,t,o,e){if(o==="a"&&!e)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!e:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?e:o==="a"?e.call(r):e?e.value:t.get(r)}var u=n(934);const f="Looks like something went wrong when loading this page. Please try refreshing it.",h=r=>f;var c=n(9226);function C(r){var t;let o=h(c.O4.UNKNOWN),e=c.O4.UNKNOWN;return r instanceof u.b&&(e=(t=r.errorCode)!==null&&t!==void 0?t:e,o=h()),{message:o,errorCode:e}}var w=n(9609),s,i,g;const m="bwell-error-component";class b extends HTMLElement{static get observedAttributes(){return["message"]}constructor(){super(),s.add(this),this.attachShadow({mode:"open"})}connectedCallback(){var t,o;const{message:e}=C(),a=l(this,s,"m",g).call(this);this.shadowRoot.appendChild(a),l(this,s,"m",i).call(this,"message",this.getAttribute("message")||e),(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.getElementById("refresh"))===null||o===void 0||o.addEventListener("click",()=>{this.resetError()})}attributeChangedCallback(t,o,e){l(this,s,"m",i).call(this,t,e)}resetError(){w.b.reloadView()}}s=new WeakSet,i=function(t,o){var e;const a=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(t);a&&(a.innerHTML=o)},g=function(){var t,o;let e=(o=(t=document.getElementById("bwell-custom-error-template"))===null||t===void 0?void 0:t.content)===null||o===void 0?void 0:o.cloneNode(!0);return e||(e=document.createElement("article"),e.innerHTML=`
1
+ "use strict";(globalThis.webpackChunk_icanbwell_composite||=[]).push([[284],{40284(F,d,r){r.r(d),r.d(d,{DefaultErrorBoundaryFallback:()=>w});var a=r(55478),u=r(30934);const f="Looks like something went wrong when loading this page. Please try refreshing it.",h=n=>f;var c=r(29226);function v(n){var t;let o=h(c.O4.UNKNOWN),e=c.O4.UNKNOWN;return n instanceof u.b&&(e=(t=n.errorCode)!==null&&t!==void 0?t:e,o=h()),{message:o,errorCode:e}}var C=r(79609),s,i,g;const m="bwell-error-component";class b extends HTMLElement{static get observedAttributes(){return["message"]}constructor(){super(),s.add(this),this.attachShadow({mode:"open"})}connectedCallback(){var t,o;const{message:e}=v(),l=(0,a.__classPrivateFieldGet)(this,s,"m",g).call(this);this.shadowRoot.appendChild(l),(0,a.__classPrivateFieldGet)(this,s,"m",i).call(this,"message",this.getAttribute("message")||e),(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.getElementById("refresh"))===null||o===void 0||o.addEventListener("click",()=>{this.resetError()})}attributeChangedCallback(t,o,e){(0,a.__classPrivateFieldGet)(this,s,"m",i).call(this,t,e)}resetError(){C.b.reloadView()}}s=new WeakSet,i=function(t,o){var e;const l=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(t);l&&(l.innerHTML=o)},g=function(){var t,o;let e=(o=(t=document.getElementById("bwell-custom-error-template"))===null||t===void 0?void 0:t.content)===null||o===void 0?void 0:o.cloneNode(!0);return e||(e=document.createElement("article"),e.innerHTML=`
2
2
  <style>
3
3
  :host {
4
4
  --background: #FFFFFF;
@@ -64,6 +64,6 @@
64
64
  <button id="refresh">
65
65
  <span>Refresh</span>
66
66
  </button>
67
- `),e},customElements.get(m)||customElements.define(m,b);var v=n(1085),p=n(4041);const E=({errorDetails:r,resetError:t})=>{const o=(0,p.useRef)();return(0,p.useEffect)(()=>{const e=o.current;e&&(e.resetError=t)},[]),(0,v.jsx)("bwell-error-component",{message:r.message,ref:o})}}}]);
67
+ `),e},customElements.get(m)||customElements.define(m,b);var E=r(31085),p=r(14041);const w=({errorDetails:n,resetError:t})=>{const o=(0,p.useRef)(void 0);return(0,p.useEffect)(()=>{const e=o.current;e&&(e.resetError=t)},[]),(0,E.jsx)("bwell-error-component",{message:n.message,ref:o})}}}]);
68
68
 
69
- //# sourceMappingURL=964.index.js.map
69
+ //# sourceMappingURL=284.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"284.index.js","mappings":"uKACA,MAAMA,EAAkB,oFAClBC,EAAkBC,GAEfF,E,eCAT,SAASG,EAAgBC,EAAO,CAC9B,IAAIC,EACJ,IAAIC,EAAUL,EAAgB,KAAU,OAAO,EAC3CC,EAAY,KAAU,QAC1B,OAAIE,aAAiB,MACnBF,GAAaG,EAAKD,EAAM,aAAe,MAAQC,IAAO,OAASA,EAAKH,EACpEI,EAAUL,EAAgB,GAErB,CACL,QAAAK,EACA,UAAAJ,CACF,CACF,C,eCZIK,EAAkCC,EAAiCC,EACvE,MAAMC,EAA2B,wBACjC,MAAMC,UAA8B,WAAY,CAC9C,WAAW,oBAAqB,CAC9B,MAAO,CAAC,SAAS,CACnB,CACA,aAAc,CACZ,MAAM,EACNJ,EAAiC,IAAI,IAAI,EACzC,KAAK,aAAa,CAChB,KAAM,MACR,CAAC,CACH,CACA,mBAAoB,CAClB,IAAIF,EAAIO,EACR,KAAM,CACJ,QAASC,CACX,EAAIV,EAAgB,EACdW,KAAW,0BAAuB,KAAMP,EAAkC,IAAKE,CAA+B,EAAE,KAAK,IAAI,EAC/H,KAAK,WAAW,YAAYK,CAAQ,KACpC,0BAAuB,KAAMP,EAAkC,IAAKC,CAA+B,EAAE,KAAK,KAAM,UAAW,KAAK,aAAa,SAAS,GAAKK,CAAc,GACxKD,GAAMP,EAAK,KAAK,cAAgB,MAAQA,IAAO,OAAS,OAASA,EAAG,eAAe,SAAS,KAAO,MAAQO,IAAO,QAAkBA,EAAG,iBAAiB,QAAS,IAAM,CACtK,KAAK,WAAW,CAClB,CAAC,CACH,CACA,yBAAyBG,EAAMC,EAAWC,EAAU,IAClD,0BAAuB,KAAMV,EAAkC,IAAKC,CAA+B,EAAE,KAAK,KAAMO,EAAME,CAAQ,CAChI,CACA,YAAa,CAEX,IAAa,WAAW,CAC1B,CACF,CACAV,EAAmC,IAAI,QAAWC,EAAkC,SAAyCO,EAAMG,EAAO,CACxI,IAAIb,EACJ,MAAMc,GAAMd,EAAK,KAAK,cAAgB,MAAQA,IAAO,OAAS,OAASA,EAAG,eAAeU,CAAI,EACzFI,IACFA,EAAG,UAAYD,EAEnB,EAAGT,EAAkC,UAA2C,CAC9E,IAAIJ,EAAIO,EACR,IAAIE,GAAYF,GAAMP,EAAK,SAAS,eAAe,6BAA6B,KAAO,MAAQA,IAAO,OAAS,OAASA,EAAG,WAAa,MAAQO,IAAO,OAAS,OAASA,EAAG,UAAU,EAAI,EAC1L,OAAKE,IACHA,EAAW,SAAS,cAAc,SAAS,EAE3CA,EAAS,UAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAoEhBA,CACT,EACK,eAAe,IAAIJ,CAAwB,GAC9C,eAAe,OAAOA,EAA0BC,CAAqB,E,0BCrHvE,MAAMS,EAA+B,CAAC,CACpC,aAAAC,EACA,WAAAC,CACF,IAAM,CACJ,MAAMC,KAAM,UAAO,MAAS,EAC5B,sBAAU,IAAM,CACd,MAAMC,EAAiBD,EAAI,QACvBC,IACFA,EAAe,WAAaF,EAEhC,EAAG,CAAC,CAAC,KACE,OAAI,wBAAyB,CAClC,QAASD,EAAa,QACtB,IAAKE,CACP,CAAC,CACH,C","sources":["webpack://@icanbwell/composite/../../node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-messsage.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-details.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/ui-toolkit-v2/web-components/error-web-component.js","webpack://@icanbwell/composite/../../node_modules/@icanbwell/ui-toolkit-v2/components/DefaultErrorBoundaryFallback.js"],"sourcesContent":["// TODO: Come up with a translation strategy. I18next?\nconst genericMesssage = 'Looks like something went wrong when loading this page. Please try refreshing it.';\nconst getErrorMessage = errorCode => {\n // Custom error messages here\n return genericMesssage;\n};\n\nexport { getErrorMessage };\n","import { BwellError } from './bwell-error.js';\nimport { getErrorMessage } from './get-error-messsage.js';\nimport { ErrorCode } from '@icanbwell/types';\n\nfunction getErrorDetails(error) {\n var _a;\n let message = getErrorMessage(ErrorCode.UNKNOWN);\n let errorCode = ErrorCode.UNKNOWN;\n if (error instanceof BwellError) {\n errorCode = (_a = error.errorCode) !== null && _a !== void 0 ? _a : errorCode;\n message = getErrorMessage();\n }\n return {\n message,\n errorCode\n };\n}\n\nexport { getErrorDetails };\n","import { __classPrivateFieldGet } from 'tslib';\nimport { getErrorDetails } from '@icanbwell/frontend-telemetry';\nimport { nativeBridge } from '@icanbwell/native-bridge';\n\nvar _ErrorPageWebComponent_instances, _ErrorPageWebComponent_setValue, _ErrorPageWebComponent_template;\nconst ERROR_COMPONENT_TAG_NAME = 'bwell-error-component';\nclass ErrorPageWebComponent extends HTMLElement {\n static get observedAttributes() {\n return ['message'];\n }\n constructor() {\n super();\n _ErrorPageWebComponent_instances.add(this);\n this.attachShadow({\n mode: 'open'\n });\n }\n connectedCallback() {\n var _a, _b;\n const {\n message: defaultMessage\n } = getErrorDetails();\n const template = __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_template).call(this);\n this.shadowRoot.appendChild(template);\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, 'message', this.getAttribute('message') || defaultMessage);\n (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('refresh')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', () => {\n this.resetError();\n });\n }\n attributeChangedCallback(name, _oldValue, newValue) {\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, name, newValue);\n }\n resetError() {\n // default behavior that can be overridden\n nativeBridge.reloadView();\n }\n}\n_ErrorPageWebComponent_instances = new WeakSet(), _ErrorPageWebComponent_setValue = function _ErrorPageWebComponent_setValue(name, value) {\n var _a;\n const el = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(name);\n if (el) {\n el.innerHTML = value;\n }\n}, _ErrorPageWebComponent_template = function _ErrorPageWebComponent_template() {\n var _a, _b;\n let template = (_b = (_a = document.getElementById('bwell-custom-error-template')) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.cloneNode(true);\n if (!template) {\n template = document.createElement('article');\n // TODO: Do an accessibility review. Does body present any challenges?\n template.innerHTML = `\n <style>\n :host {\n --background: #FFFFFF;\n --messageTextColor: #6F6F6F;\n }\n article {\n background: var(--background);\n font-family: regular,sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n letter-spacing: 0px;\n line-height: 20px;\n margin: auto;\n max-width: 340px;\n text-align: center;\n }\n h3 {\n color: #2E3586;\n font-size: 28px;\n font-style: normal;\n font-weight: 400;\n line-height: 34px;\n }\n p {\n color: var(--messageTextColor);\n }\n button {\n background: #2E3586;\n border-radius: 5px;\n height: 55px;\n width: 200px;\n border: none;\n cursor: pointer;\n }\n button>span {\n color: #FFFFFF;\n font-size: 18px;\n font-style: normal;\n font-weight: 700;\n line-height: 22px;\n }\n </style>\n <header>\n <svg width=\"100\" height=\"100\" viewBox=\"0 0 100 100\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_645_19)\">\n <path d=\"M98.1598 74.7658L62.8319 11.0741C60.1952 6.38657 55.3902 3.51562 50 3.51562C44.6099 3.51562 39.8049 6.38657 37.1681 11.0741L1.84023 74.7658C-0.679762 79.3358 -0.621016 84.7855 2.07445 89.2967C4.71117 93.8087 9.45742 96.5042 14.6721 96.5042H85.3279C90.5426 96.5042 95.2889 93.8087 97.9256 89.2967C100.621 84.7855 100.68 79.3358 98.1598 74.7658Z\" fill=\"#FDBF00\"/>\n <path d=\"M97.9255 89.2967C95.2888 93.8087 90.5433 96.5042 85.3279 96.5042H50V3.51562C55.3902 3.51562 60.1952 6.38657 62.8319 11.0741L98.1598 74.7658C100.68 79.3358 100.621 84.7855 97.9255 89.2967Z\" fill=\"#FF9F00\"/>\n <path d=\"M41.2109 20.3325V64.2778H58.7891V20.3325H41.2109Z\" fill=\"#5A5A5A\"/>\n <path d=\"M50 70.137C45.1363 70.137 41.2109 74.0623 41.2109 78.926C41.2109 83.789 45.1363 87.7151 50 87.7151C54.8637 87.7151 58.7891 83.789 58.7891 78.926C58.7891 74.0623 54.8637 70.137 50 70.137Z\" fill=\"#5A5A5A\"/>\n <path d=\"M58.7891 78.926C58.7891 83.789 54.8637 87.7151 50 87.7151V70.137C54.8637 70.137 58.7891 74.0623 58.7891 78.926Z\" fill=\"#444444\"/>\n <path d=\"M50 20.3323H58.7891V64.2776H50V20.3323Z\" fill=\"#444444\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_645_19\">\n <rect width=\"100\" height=\"100\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>\n </header>\n <h3>Oops!</h3>\n <p id=\"message\">Looks like something went wrong when loading this page. Please try refreshing it.</p>\n <button id=\"refresh\">\n <span>Refresh</span>\n </button>\n `;\n }\n return template;\n};\nif (!customElements.get(ERROR_COMPONENT_TAG_NAME)) {\n customElements.define(ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent);\n}\n\nexport { ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent };\n","import { jsx } from 'react/jsx-runtime';\nimport { useRef, useEffect } from 'react';\n\nconst DefaultErrorBoundaryFallback = ({\n errorDetails,\n resetError\n}) => {\n const ref = useRef(undefined);\n useEffect(() => {\n const errorComponent = ref.current;\n if (errorComponent) {\n errorComponent.resetError = resetError;\n }\n }, []);\n return jsx(\"bwell-error-component\", {\n message: errorDetails.message,\n ref: ref\n });\n};\n\nexport { DefaultErrorBoundaryFallback };\n"],"names":["genericMesssage","getErrorMessage","errorCode","getErrorDetails","error","_a","message","_ErrorPageWebComponent_instances","_ErrorPageWebComponent_setValue","_ErrorPageWebComponent_template","ERROR_COMPONENT_TAG_NAME","ErrorPageWebComponent","_b","defaultMessage","template","name","_oldValue","newValue","value","el","DefaultErrorBoundaryFallback","errorDetails","resetError","ref","errorComponent"],"sourceRoot":""}
package/642.index.js ADDED
@@ -0,0 +1,29 @@
1
+ "use strict";(globalThis.webpackChunk_icanbwell_composite||=[]).push([[642],{91361(_,w,u){var h=u(80866),S=u(13174),T=TypeError;_.exports=function(E){if(h(E))return E;throw new T(S(E)+" is not a constructor")}},40286(_,w,u){var h=u(4578),S=TypeError;_.exports=function(T,E){if(h(E,T))return T;throw new S("Incorrect invocation")}},27825(_,w,u){var h=u(16881);_.exports=h([].slice)},7283(_,w,u){var h=u(4282),S=h("iterator"),T=!1;try{var E=0,y={next:function(){return{done:!!E++}},return:function(){T=!0}};y[S]=function(){return this},Array.from(y,function(){throw 2})}catch{}_.exports=function(O,I){try{if(!I&&!T)return!1}catch{return!1}var U=!1;try{var $={};$[S]=function(){return{next:function(){return{done:U=!0}}}},O($)}catch{}return U}},10997(_,w,u){var h=u(74530),S=u(64466);_.exports=function(T,E,y){return y.get&&h(y.get,E,{getter:!0}),y.set&&h(y.set,E,{setter:!0}),S.f(T,E,y)}},36168(_,w,u){var h=u(98060);_.exports=/ipad|iphone|ipod/i.test(h)&&typeof Pebble<"u"},81129(_,w,u){var h=u(98060);_.exports=/web0s(?!.*chrome)/i.test(h)},85821(_,w,u){var h=u(95691),S=u(44977),T=u(89055),E=h(h.bind);_.exports=function(y,O){return S(y),O===void 0?y:T?E(y,O):function(){return y.apply(O,arguments)}}},95691(_,w,u){var h=u(38689),S=u(16881);_.exports=function(T){if(h(T)==="Function")return S(T)}},59042(_,w,u){var h=u(39944),S=u(14188),T=u(3770),E=u(13174),y=u(54366),O=TypeError;_.exports=function(I,U){var $=arguments.length<2?y(I):U;if(S($))return T(h($,I));throw new O(E(I)+" is not iterable")}},54366(_,w,u){var h=u(38689),S=u(44318),T=u(12913),E=u(4282),y=E("iterator"),O=Array.prototype;_.exports=function(I){if(!S(I))return T(I,y)||T(I,"@@iterator")||(h(I)==="Arguments"?O[y]:void 0)}},3306(_){_.exports=function(w,u){try{arguments.length===1?console.error(w):console.error(w,u)}catch{}}},28146(_,w,u){var h=u(4282),S=u(49164),T=h("iterator"),E=Array.prototype;_.exports=function(y){return y!==void 0&&(S.Array===y||E[T]===y)}},80866(_,w,u){var h=u(16881),S=u(5234),T=u(14188),E=u(65438),y=u(5604),O=u(13029),I=function(){},U=y("Reflect","construct"),$=/^\s*(?:class|function)\b/,W=h($.exec),be=!$.test(I),Z=function(B){if(!T(B))return!1;try{return U(I,[],B),!0}catch{return!1}},ue=function(B){if(!T(B))return!1;switch(E(B)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return be||!!W($,O(B))}catch{return!0}};ue.sham=!0,_.exports=!U||S(function(){var j;return Z(Z.call)||!Z(Object)||!Z(function(){j=!0})||j})?ue:Z},38873(_,w,u){var h=u(85821),S=u(39944),T=u(3770),E=u(13174),y=u(28146),O=u(69389),I=u(4578),U=u(59042),$=u(54366),W=u(88500),be=TypeError,Z=function(j,B){this.stopped=j,this.result=B},ue=Z.prototype;_.exports=function(j,B,G){var Te=G&&G.that,Ce=!!(G&&G.AS_ENTRIES),me=!!(G&&G.IS_RECORD),Ge=!!(G&&G.IS_ITERATOR),Q=!!(G&&G.INTERRUPTED),ge=h(B,Te),ne,ve,le,Et,te,St,bt,Ne=function(Y){var Tt=ne;return ne=void 0,Tt&&W(Tt,"normal"),new Z(!0,Y)},lt=function(Y){return Ce?(T(Y),Q?ge(Y[0],Y[1],Ne):ge(Y[0],Y[1])):Q?ge(Y,Ne):ge(Y)};if(me)ne=j.iterator;else if(Ge)ne=j;else{if(ve=$(j),!ve)throw new be(E(j)+" is not iterable");if(y(ve)){for(le=0,Et=O(j);Et>le;le++)if(te=lt(j[le]),te&&I(ue,te))return te;return new Z(!1)}ne=U(j,ve)}for(St=me?j.next:ne.next;!(bt=S(St,ne)).done;){var en=bt.value;try{te=lt(en)}catch(Y){if(ne)W(ne,"throw",Y);else throw Y}if(typeof te=="object"&&te&&I(ue,te))return te}return new Z(!1)}},88500(_,w,u){var h=u(39944),S=u(3770),T=u(12913);_.exports=function(E,y,O){var I,U;S(E);try{if(I=T(E,"return"),!I){if(y==="throw")throw O;return O}I=h(I,E)}catch($){U=!0,I=$}if(y==="throw")throw O;if(U)throw I;return S(I),O}},49164(_){_.exports=Object.create?Object.create(null):{}},59444(_,w,u){var h=u(44977),S=TypeError,T=function(E){var y,O;this.promise=new E(function(I,U){if(y!==void 0||O!==void 0)throw new S("Bad Promise constructor");y=I,O=U}),this.resolve=h(y),this.reject=h(O)};_.exports.f=function(E){return new T(E)}},69456(_,w,u){var h=u(96893),S=u(16881),T=u(39944),E=u(5234),y=u(57137),O=u(30156),I=u(74416),U=u(83628),$=u(47568),W=Object.assign,be=Object.defineProperty,Z=S([].concat);_.exports=!W||E(function(){if(h&&W({b:1},W(be({},"a",{enumerable:!0,get:function(){be(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ue={},j={},B=Symbol("assign detection"),G="abcdefghijklmnopqrst";return ue[B]=7,G.split("").forEach(function(Te){j[Te]=Te}),W({},ue)[B]!==7||y(W({},j)).join("")!==G})?function(j,B){for(var G=U(j),Te=arguments.length,Ce=1,me=O.f,Ge=I.f;Te>Ce;)for(var Q=$(arguments[Ce++]),ge=me?Z(y(Q),me(Q)):y(Q),ne=ge.length,ve=0,le;ne>ve;)le=ge[ve++],(!h||T(Ge,Q,le))&&(G[le]=Q[le]);return G}:W},49120(_,w,u){var h=u(79117);_.exports=h},96042(_){_.exports=function(w){try{return{error:!1,value:w()}}catch(u){return{error:!0,value:u}}}},48787(_,w,u){var h=u(3770),S=u(80831),T=u(59444);_.exports=function(E,y){if(h(E),S(y)&&y.constructor===E)return y;var O=T.f(E),I=O.resolve;return I(y),O.promise}},68648(_){var w=function(){this.head=null,this.tail=null};w.prototype={add:function(u){var h={item:u,next:null},S=this.tail;S?S.next=h:this.head=h,this.tail=h},get:function(){var u=this.head;if(u){var h=this.head=u.next;return h===null&&(this.tail=null),u.item}}},_.exports=w},35268(_,w,u){var h=u(79117),S=u(96893),T=Object.getOwnPropertyDescriptor;_.exports=function(E){if(!S)return h[E];var y=T(h,E);return y&&y.value}},43900(_,w,u){var h=u(5604),S=u(10997),T=u(4282),E=u(96893),y=T("species");_.exports=function(O){var I=h(O);E&&I&&!I[y]&&S(I,y,{configurable:!0,get:function(){return this}})}},93754(_,w,u){var h=u(64466).f,S=u(74418),T=u(4282),E=T("toStringTag");_.exports=function(y,O,I){y&&!I&&(y=y.prototype),y&&!S(y,E)&&h(y,E,{configurable:!0,value:O})}},97964(_,w,u){var h=u(3770),S=u(91361),T=u(44318),E=u(4282),y=E("species");_.exports=function(O,I){var U=h(O).constructor,$;return U===void 0||T($=h(U)[y])?I:S($)}},89445(_){var w=TypeError;_.exports=function(u,h){if(u<h)throw new w("Not enough arguments");return u}},87050(_,w,u){var h=u(5613),S=u(69456);h({target:"Object",stat:!0,arity:2,forced:Object.assign!==S},{assign:S})},62642(_,w,u){u.r(w),u.d(w,{default:()=>Sl});var h=()=>u(44977),S=()=>u(40286),T=()=>u(27825),E=()=>u(7283),y=()=>u(38689),O=()=>u(97509),I=()=>u(65926),U=()=>u(36168),$=u.cw(function(e,t){var n=Z();e.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)}),W=u.cw(function(e,t){var n=j();e.exports=n==="NODE"}),be=()=>u(81129),Z=()=>u(98060),ue=()=>u(63008),j=u.cw(function(e,t){var n=Q(),r=Z(),s=y(),o=function(i){return r.slice(0,i.length)===i};e.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&typeof Bun.version=="string"?"BUN":n.Deno&&typeof Deno.version=="object"?"DENO":s(n.process)==="process"?"NODE":n.window&&n.document?"BROWSER":"REST"}()}),B=()=>u(5613),G=()=>u(5234),Te=()=>u(40646),Ce=()=>u(85821),me=()=>u(39944),Ge=()=>u(5604),Q=()=>u(79117),ge=()=>u(74418),ne=()=>u(3306),ve=()=>u(67458),le=()=>u(13029),Et=()=>u(43086),te=()=>u(14188),St=()=>u(68489),bt=()=>u(80831),Ne=()=>u(1942),lt=()=>u(38873),en=u.cw(function(e,t){var n=Q(),r=eo(),s=Ce(),o=ar().h,i=ir(),a=$(),c=U(),f=be(),d=W(),l=n.MutationObserver||n.WebKitMutationObserver,m=n.document,g=n.process,v=n.Promise,L=r("queueMicrotask"),x,k,H,z,he;if(!L){var K=new i,V=function(){var X,ae;for(d&&(X=g.domain)&&X.exit();ae=K.get();)try{ae()}catch(ce){throw K.head&&x(),ce}X&&X.enter()};!a&&!d&&!f&&l&&m?(k=!0,H=m.createTextNode(""),new l(V).observe(H,{characterData:!0}),x=function(){H.data=k=!k}):!c&&v&&v.resolve?(z=v.resolve(void 0),z.constructor=v,he=s(z.then,z),x=function(){he(V)}):d?x=function(){g.nextTick(V)}:(o=s(o,n),x=function(){o(V)}),L=function(X){K.head||x(),K.add(X)}}e.exports=L}),Y=()=>u(59444),Tt=()=>u(5054),Qs=()=>u(49120),tn=()=>u(96042),ft=u.cw(function(e,t){var n=Q(),r=dt(),s=te(),o=St(),i=le(),a=oo(),c=j(),f=Ne(),d=ue(),l=r&&r.prototype,m=a("species"),g=!1,v=s(n.PromiseRejectionEvent),L=o("Promise",function(){var x=i(r),k=x!==String(r);if(!k&&d===66||f&&!(l.catch&&l.finally))return!0;if(!d||d<51||!/native code/.test(x)){var H=new r(function(K){K(1)}),z=function(K){K(function(){},function(){})},he=H.constructor={};if(he[m]=z,g=H.then(function(){})instanceof z,!g)return!0}return!k&&(c==="BROWSER"||c==="DENO")&&!v});e.exports={CONSTRUCTOR:L,REJECTION_EVENT:v,SUBCLASSING:g}}),dt=u.cw(function(e,t){var n=Q();e.exports=n.Promise}),qs=()=>u(48787),or=u.cw(function(e,t){var n=dt(),r=E(),s=ft().CONSTRUCTOR;e.exports=s||!r(function(o){n.all(o).then(void 0,function(){})})}),ir=()=>u(68648),eo=()=>u(35268),to=()=>u(43900),no=()=>u(93754),ro=()=>u(97964),ar=u.cw(function(e,t){var n=Q(),r=Te(),s=Ce(),o=te(),i=ge(),a=G(),c=ve(),f=T(),d=I(),l=so(),m=$(),g=W(),v=n.setImmediate,L=n.clearImmediate,x=n.process,k=n.Dispatch,H=n.Function,z=n.MessageChannel,he=n.String,K=0,V={},X="onreadystatechange",ae,ce,xe,nt;a(function(){ae=n.location});var yt=function(M){if(i(V,M)){var ee=V[M];delete V[M],ee()}},_t=function(M){return function(){yt(M)}},rt=function(M){yt(M.data)},Xt=function(M){n.postMessage(he(M),ae.protocol+"//"+ae.host)};(!v||!L)&&(v=function(ee){l(arguments.length,1);var st=o(ee)?ee:H(ee),Zt=f(arguments,1);return V[++K]=function(){r(st,void 0,Zt)},ce(K),K},L=function(ee){delete V[ee]},g?ce=function(M){x.nextTick(_t(M))}:k&&k.now?ce=function(M){k.now(_t(M))}:z&&!m?(xe=new z,nt=xe.port2,xe.port1.onmessage=rt,ce=s(nt.postMessage,nt)):n.addEventListener&&o(n.postMessage)&&!n.importScripts&&ae&&ae.protocol!=="file:"&&!a(Xt)?(ce=Xt,n.addEventListener("message",rt,!1)):X in d("script")?ce=function(M){c.appendChild(d("script"))[X]=function(){c.removeChild(this),yt(M)}}:ce=function(M){setTimeout(_t(M),0)}),e.exports={h:v}}),so=()=>u(89445),oo=()=>u(4282),io=u.cw(function(e,t){var n=B(),r=me(),s=h(),o=Y(),i=tn(),a=lt(),c=or();n({target:"Promise",stat:!0,forced:c},{all:function(d){var l=this,m=o.f(l),g=m.resolve,v=m.reject,L=i(function(){var x=s(l.resolve),k=[],H=0,z=1;a(d,function(he){var K=H++,V=!1;z++,r(x,l,he).then(function(X){V||(V=!0,k[K]=X,--z||g(k))},v)}),--z||g(k)});return L.error&&v(L.value),m.promise}})}),ao=u.cw(function(e,t){var n=B(),r=Ne(),s=ft().CONSTRUCTOR,o=dt(),i=Ge(),a=te(),c=O(),f=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(l){return this.then(void 0,l)}}),!r&&a(o)){var d=i("Promise").prototype.catch;f.catch!==d&&c(f,"catch",d,{unsafe:!0})}}),co=u.cw(function(e,t){var n=B(),r=Ne(),s=W(),o=Q(),i=Qs(),a=me(),c=O(),f=Tt(),d=no(),l=to(),m=h(),g=te(),v=bt(),L=S(),x=ro(),k=ar().h,H=en(),z=ne(),he=tn(),K=ir(),V=Et(),X=dt(),ae=ft(),ce=Y(),xe="Promise",nt=ae.CONSTRUCTOR,yt=ae.REJECTION_EVENT,_t=ae.SUBCLASSING,rt=V.getterFor(xe),Xt=V.set,M=X&&X.prototype,ee=X,st=M,Zt=o.TypeError,er=o.document,tr=o.process,nr=ce.f,bl=nr,Tl=!!(er&&er.createEvent&&o.dispatchEvent),Ls="unhandledrejection",Il="rejectionhandled",Us=0,$s=1,Rl=2,rr=1,Bs=2,Qt,Hs,Gs,zs,Ws=function(p){var R;return v(p)&&g(R=p.then)?R:!1},Ys=function(p,R){var N=R.value,A=R.state===$s,F=A?p.ok:p.fail,at=p.resolve,qt=p.reject,ct=p.domain,ut,Xs,Zs;try{F?(A||(R.rejection===Bs&&wl(R),R.rejection=rr),F===!0?ut=N:(ct&&ct.enter(),ut=F(N),ct&&(ct.exit(),Zs=!0)),ut===p.promise?qt(new Zt("Promise-chain cycle")):(Xs=Ws(ut))?a(Xs,ut,at,qt):at(ut)):qt(N)}catch(xl){ct&&!Zs&&ct.exit(),qt(xl)}},Js=function(p,R){p.notified||(p.notified=!0,H(function(){for(var N=p.reactions,A;A=N.get();)Ys(A,p);p.notified=!1,R&&!p.rejection&&Ol(p)}))},Ks=function(p,R,N){var A,F;Tl?(A=er.createEvent("Event"),A.promise=R,A.reason=N,A.initEvent(p,!1,!0),o.dispatchEvent(A)):A={promise:R,reason:N},!yt&&(F=o["on"+p])?F(A):p===Ls&&z("Unhandled promise rejection",N)},Ol=function(p){a(k,o,function(){var R=p.facade,N=p.value,A=Vs(p),F;if(A&&(F=he(function(){s?tr.emit("unhandledRejection",N,R):Ks(Ls,R,N)}),p.rejection=s||Vs(p)?Bs:rr,F.error))throw F.value})},Vs=function(p){return p.rejection!==rr&&!p.parent},wl=function(p){a(k,o,function(){var R=p.facade;s?tr.emit("rejectionHandled",R):Ks(Il,R,p.value)})},ot=function(p,R,N){return function(A){p(R,A,N)}},it=function(p,R,N){p.done||(p.done=!0,N&&(p=N),p.value=R,p.state=Rl,Js(p,!0))},sr=function(p,R,N){if(!p.done){p.done=!0,N&&(p=N);try{if(p.facade===R)throw new Zt("Promise can't be resolved itself");var A=Ws(R);A?H(function(){var F={done:!1};try{a(A,R,ot(sr,F,p),ot(it,F,p))}catch(at){it(F,at,p)}}):(p.value=R,p.state=$s,Js(p,!1))}catch(F){it({done:!1},F,p)}}};if(nt&&(ee=function(R){L(this,st),m(R),a(Qt,this);var N=rt(this);try{R(ot(sr,N),ot(it,N))}catch(A){it(N,A)}},st=ee.prototype,Qt=function(R){Xt(this,{type:xe,done:!1,notified:!1,parent:!1,reactions:new K,rejection:!1,state:Us,value:null})},Qt.prototype=c(st,"then",function(R,N){var A=rt(this),F=nr(x(this,ee));return A.parent=!0,F.ok=g(R)?R:!0,F.fail=g(N)&&N,F.domain=s?tr.domain:void 0,A.state===Us?A.reactions.add(F):H(function(){Ys(F,A)}),F.promise}),Hs=function(){var p=new Qt,R=rt(p);this.promise=p,this.resolve=ot(sr,R),this.reject=ot(it,R)},ce.f=nr=function(p){return p===ee||p===Gs?new Hs(p):bl(p)},!r&&g(X)&&M!==Object.prototype)){zs=M.then,_t||c(M,"then",function(R,N){var A=this;return new ee(function(F,at){a(zs,A,F,at)}).then(R,N)},{unsafe:!0});try{delete M.constructor}catch{}f&&f(M,st)}n({global:!0,constructor:!0,wrap:!0,forced:nt},{Promise:ee}),Gs=i.Promise,d(ee,xe,!1,!0),l(xe)}),uo=u.cw(function(e,t){co(),io(),ao(),lo(),fo(),po()}),lo=u.cw(function(e,t){var n=B(),r=me(),s=h(),o=Y(),i=tn(),a=lt(),c=or();n({target:"Promise",stat:!0,forced:c},{race:function(d){var l=this,m=o.f(l),g=m.reject,v=i(function(){var L=s(l.resolve);a(d,function(x){r(L,l,x).then(m.resolve,g)})});return v.error&&g(v.value),m.promise}})}),fo=u.cw(function(e,t){var n=B(),r=Y(),s=ft().CONSTRUCTOR;n({target:"Promise",stat:!0,forced:s},{reject:function(i){var a=r.f(this),c=a.reject;return c(i),a.promise}})}),po=u.cw(function(e,t){var n=B(),r=Ge(),s=Ne(),o=dt(),i=ft().CONSTRUCTOR,a=qs(),c=r("Promise"),f=s&&!i;n({target:"Promise",stat:!0,forced:s||i},{resolve:function(l){return a(f&&this===c?o:this,l)}})}),ho=10,mo=20,cr=30,go=40,nn=50,ur=60,rn={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},lr={};function Cl(e){return typeof e=="string"?rn[e.toLowerCase()]:e}Object.keys(rn).forEach(function(e){lr[rn[e]]=e});var fr={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},vo=function(){function e(t){var n=t===void 0?{}:t,r=n.logByLevel,s=n.css,o=s===void 0?fr:s;this.logByLevel=r!==void 0&&r,this.css=o}return e.prototype.write=function(t){var n,r,s=this.css.def,o=this.css.msg,i=this.css.src,a=t.childName?t.name+"/"+t.childName:t.name,c=lr[t.level],f=(Array(6-c.length).join(" ")+c).toUpperCase();this.logByLevel?(t.level===ho?c="debug":t.level===ur&&(c="error"),r=typeof console[c]=="function"?console[c]:console.log):r=console.log,n=t.level<mo?this.css.levels.trace:t.level<cr?this.css.levels.debug:t.level<go?this.css.levels.info:t.level<nn?this.css.levels.warn:t.level<ur?this.css.levels.error:this.css.levels.fatal;var d=function(m,g){return Array(g+1-(m+"").length).join("0")+m},l=[];l.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(t.src?"%c%s":"")),l.push(d(t.time.getHours(),2)),l.push(d(t.time.getMinutes(),2)),l.push(d(t.time.getSeconds(),2)),l.push(d(t.time.getMilliseconds(),4)),l.push(n),l.push(f),l.push(s),l.push(a),l.push(o),l.push(t.msg),t.src&&(l.push(i),l.push(t.src)),t.obj&&(l.push(`
2
+ `),l.push(t.obj)),t.err&&t.err.stack&&(l.push(`
3
+ `),l.push(t.err.stack)),r.apply(console,l)},e.getDefaultCss=function(){return fr},e}(),Nl=u(97107),Al=u(87050);uo();const sn="production",C=globalThis;function It(e,t,n){const r=n||C,s=r.__SENTRY__=r.__SENTRY__||{},o=s["8.55.2"]=s["8.55.2"]||{};return o[e]||(o[e]=t())}function Rt(){return on(C),C}function on(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"8.55.2",t["8.55.2"]=t["8.55.2"]||{}}const dr=Object.prototype.toString;function an(e){switch(dr.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ae(e,Error)}}function ze(e,t){return dr.call(e)===`[object ${t}]`}function pr(e){return ze(e,"ErrorEvent")}function hr(e){return ze(e,"DOMError")}function yo(e){return ze(e,"DOMException")}function ye(e){return ze(e,"String")}function cn(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function un(e){return e===null||cn(e)||typeof e!="object"&&typeof e!="function"}function We(e){return ze(e,"Object")}function Ot(e){return typeof Event<"u"&&Ae(e,Event)}function _o(e){return typeof Element<"u"&&Ae(e,Element)}function Eo(e){return ze(e,"RegExp")}function wt(e){return!!(e&&e.then&&typeof e.then=="function")}function So(e){return We(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ae(e,t){try{return e instanceof t}catch{return!1}}function mr(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Ye=C,bo=80;function gr(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let f;const d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||bo;for(;n&&o++<r&&(f=To(n,d),!(f==="html"||o>1&&i+s.length*c+f.length>=l));)s.push(f),i+=f.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function To(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Ye.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&ye(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function Io(){try{return Ye.document.location.href}catch{return""}}function Pl(e){return Ye.document&&Ye.document.querySelector?Ye.document.querySelector(e):null}function Ro(e){if(!Ye.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const Pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Oo="Sentry Logger ",ln=["debug","info","warn","error","log","assert","trace"],xt={};function De(e){if(!("console"in C))return e();const t=C.console,n={},r=Object.keys(xt);r.forEach(s=>{const o=xt[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function wo(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Pe?ln.forEach(n=>{t[n]=(...r)=>{e&&De(()=>{C.console[n](`${Oo}[${n}]:`,...r)})}}):ln.forEach(n=>{t[n]=()=>{}}),t}const b=It("logger",wo);function Je(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Dl(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function vr(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{mr(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function xo(e,t,n=!1){return ye(e)?Eo(t)?t.test(e):ye(t)?n?e===t:e.includes(t):!1:!1}function Ct(e,t=[],n=!1){return t.some(r=>xo(e,r,n))}var Co;function re(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&yr(s,r);try{e[t]=s}catch{Pe&&b.log(`Failed to replace method "${t}" in object`,e)}}function Me(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Pe&&b.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function yr(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Me(e,"__sentry_original__",t)}catch{}}function fn(e){return e.__sentry_original__}function Ml(e){return Object.entries(e).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&")}function _r(e){if(an(e))return{message:e.message,name:e.name,stack:e.stack,...Sr(e)};if(Ot(e)){const t={type:e.type,target:Er(e.target),currentTarget:Er(e.currentTarget),...Sr(e)};return typeof CustomEvent<"u"&&Ae(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Er(e){try{return _o(e)?gr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Sr(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function No(e,t=40){const n=Object.keys(_r(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Je(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:Je(o,t)}return""}function se(e){return dn(e,new Map)}function dn(e,t){if(Ao(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=dn(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(dn(s,t))}),r}return e}function Ao(e){if(!We(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function kl(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case Co(e):t=new e.constructor(e);break;default:t=e;break}return t}const br=1e3;function pt(){return Date.now()/br}function Po(){const{performance:e}=C;if(!e||!e.now)return pt;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/br}const _e=Po();let Nt;const Fl=(()=>{const{performance:e}=C;if(!e||!e.now){Nt="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,f=c<t;return o||f?s<=c?(Nt="timeOrigin",e.timeOrigin):(Nt="navigationStart",i):(Nt="dateNow",r)})();var pn;function oe(){const e=C,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Tr(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Ie(e){const{message:t,event_id:n}=e;if(t)return t;const r=Tr(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function hn(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Ke(e,t){const n=Tr(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const Do=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function mn(e){return parseInt(e||"",10)}function jl(e){const t=e.match(Do)||[],n=mn(t[1]),r=mn(t[2]),s=mn(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Ll(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>pn(i,0));const o=Math.min(r-1,s);t.context_line=pn(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>pn(i,0))}function Ir(e){if(Mo(e))return!0;try{Me(e,"__sentry_captured__",!0)}catch{}return!1}function Mo(e){try{return e.__sentry_captured__}catch{}}function Ul(e){return Array.isArray(e)?e:[e]}function ko(e){const t=_e(),n={sid:oe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>jo(n)};return e&&Ve(n,e),n}function Ve(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||_e(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:oe()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Fo(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Ve(e,n)}function jo(e){return se({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}function $l(){return{traceId:gn(),spanId:At()}}function gn(){return oe()}function At(){return oe().substring(16)}function Pt(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Pt(r[s],t[s],n-1));return r}const vn="_sentrySpan";function Rr(e,t){t?Me(e,vn,t):delete e[vn]}function Or(e){return e[vn]}const Lo=100;class yn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:gn(),spanId:At()}}clone(){const t=new yn;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Rr(t,Or(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ve(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,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},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,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof Re?[n.getScopeData(),n.getRequestSession()]:We(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:f,fingerprint:d=[],propagationContext:l}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),f&&(this._level=f),d.length&&(this._fingerprint=d),l&&(this._propagationContext=l),s&&(this._requestSession=s),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._session=void 0,Rr(this,void 0),this._attachments=[],this.setPropagationContext({traceId:gn()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Lo;if(r<=0)return this;const s={timestamp:pt(),...t};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Or(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Pt(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext={spanId:At(),...t},this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:oe();if(!this._client)return b.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:oe();if(!this._client)return b.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:oe();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(b.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const Re=yn;function Uo(){return It("defaultCurrentScope",()=>new Re)}function $o(){return It("defaultIsolationScope",()=>new Re)}class Bo{constructor(t,n){let r;t?r=t:r=new Re;let s;n?s=n:s=new Re,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return wt(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Xe(){const e=Rt(),t=on(e);return t.stack=t.stack||new Bo(Uo(),$o())}function Ho(e){return Xe().withScope(e)}function Go(e,t){const n=Xe();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function wr(e){return Xe().withScope(()=>e(Xe().getIsolationScope()))}function zo(){return{withIsolationScope:wr,withScope:Ho,withSetScope:Go,withSetIsolationScope:(e,t)=>wr(t),getCurrentScope:()=>Xe().getScope(),getIsolationScope:()=>Xe().getIsolationScope()}}var Wo,Yo;function Bl(e){const t=Wo(),n=Yo(t);n.acs=e}function _n(e){const t=on(e);return t.acs?t.acs:zo()}var Jo,Ko;function pe(){const e=Rt();return _n(e).getCurrentScope()}function ht(){const e=Rt();return _n(e).getIsolationScope()}function xr(){return It("globalScope",()=>new Re)}function Vo(...e){const t=Rt(),n=_n(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Hl(...e){const t=Ko(),n=Jo(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function J(){return pe().getClient()}function Xo(e){const t=e.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=t;return se({trace_id:n,span_id:r,parent_span_id:s})}const P=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Ee;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ee||(Ee={}));function ke(e){return new ie(t=>{t(e)})}function Dt(e){return new ie((t,n)=>{n(e)})}class ie{constructor(t){ie.prototype.__init.call(this),ie.prototype.__init2.call(this),ie.prototype.__init3.call(this),ie.prototype.__init4.call(this),this._state=Ee.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new ie((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ie((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(Ee.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ee.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Ee.PENDING){if(wt(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ee.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ee.RESOLVED&&n[1](this._value),this._state===Ee.REJECTED&&n[2](this._value),n[0]=!0)})}}}function En(e,t,n,r=0){return new ie((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);P&&i.id&&a===null&&b.log(`Event processor "${i.id}" dropped event`),wt(a)?a.then(c=>En(e,c,n,r+1).then(s)).then(null,o):En(e,a,n,r+1).then(s).then(null,o)}})}let Mt,Cr,kt;function Nr(e){const t=C._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return kt&&n.length===Cr||(Cr=n.length,kt=n.reduce((r,s)=>{Mt||(Mt={});const o=Mt[s];if(o)r[o[0]]=o[1];else{const i=e(s);for(let a=i.length-1;a>=0;a--){const c=i[a],f=c&&c.filename,d=t[s];if(f&&d){r[f]=d,Mt[s]=[f,d];break}}}return r},{})),kt}function Gl(e,t){const n=Nr(e);if(!n)return[];const r=[];for(const s of t)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function Zo(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}const Ar=50,Qo="?",Pr=/\(error: (.*)\)/,Dr=/captureMessage|captureException/;function Mr(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
4
+ `);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const f=Pr.test(c)?c.replace(Pr,"$1"):c;if(!f.match(/\S*Error: /)){for(const d of t){const l=d(f);if(l){o.push(l);break}}if(o.length>=Ar+s)break}}return ei(o.slice(s))}}function qo(e){return Array.isArray(e)?Mr(...e):e}function ei(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ft(t).function||"")&&t.pop(),t.reverse(),Dr.test(Ft(t).function||"")&&(t.pop(),Dr.test(Ft(t).function||"")&&t.pop()),t.slice(0,Ar).map(n=>({...n,filename:n.filename||Ft(t).filename,function:n.function||Qo}))}function Ft(e){return e[e.length-1]||{}}const Sn="<anonymous>";function Oe(e){try{return!e||typeof e!="function"?Sn:e.name||Sn}catch{return Sn}}function kr(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function Se(e,t=100,n=1/0){try{return bn("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Fr(e,t=3,n=100*1024){const r=Se(e,t);return si(r)>n?Fr(e,t-1,n):r}function bn(e,t,n=1/0,r=1/0,s=Zo()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=ti(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const f=t;if(f&&typeof f.toJSON=="function")try{const g=f.toJSON();return bn("",g,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let l=0;const m=_r(t);for(const g in m){if(!Object.prototype.hasOwnProperty.call(m,g))continue;if(l>=r){d[g]="[MaxProperties ~]";break}const v=m[g];d[g]=bn(g,v,c-1,r,s),l++}return i(t),d}function ti(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof globalThis<"u"&&t===globalThis)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(mr(t))return"[VueViewModel]";if(So(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Oe(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=ni(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ni(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function ri(e){return~-encodeURI(e).split(/%..|./).length}function si(e){return ri(JSON.stringify(e))}function zl(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}const oi="sentry.source",ii="sentry.sample_rate",ai="sentry.op",ci="sentry.origin",Wl="sentry.idle_span_finish_reason",Yl="sentry.measurement_unit",Jl="sentry.measurement_value",Kl="sentry.custom_span_name",Vl="sentry.profile_id",Xl="sentry.exclusive_time",Zl="cache.hit",Ql="cache.key",ql="cache.item_size",ef="http.request.method",tf="url.full";var ui,li;const nf="baggage",jr="sentry-",fi=/^sentry-/,di=8192;function pi(e){const t=hi(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(fi)){const i=s.slice(jr.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function rf(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${jr}${r}`]=s),n),{});return mi(t)}function hi(e){if(!(!e||!ye(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Lr(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):Lr(e)}function Lr(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function mi(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>di?(ui&&li.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}function gi(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=J(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const Tn="_sentryMetrics";function vi(e){const t=e[Tn];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(se(s));return n}function sf(e,t,n,r,s,o,i){const c=e[Tn]||(e[Tn]=new Map),f=`${t}:${n}@${s}`,d=c.get(i);if(d){const[,l]=d;c.set(i,[f,{min:Math.min(l.min,r),max:Math.max(l.max,r),count:l.count+=1,sum:l.sum+=r,tags:l.tags}])}else c.set(i,[f,{min:r,max:r,count:1,sum:r,tags:o}])}var yi,_i,Ei,Si,bi,Ti,Ii,Ur,Ri,Oi;const of=0,wi=1;let $r=!1;function af(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=jt(e);return Ii({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function xi(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:jt(e).parent_span_id,o=r?At():t;return se({parent_span_id:s,span_id:o,trace_id:n})}function cf(e){const{traceId:t,spanId:n}=e.spanContext(),r=In(e);return Ri(t,n,r)}function Br(e){return typeof e=="number"?Hr(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Hr(e.getTime()):_e()}function Hr(e){return e>9999999999?e/1e3:e}function jt(e){if(Ni(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(Ci(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return se({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Br(s),timestamp:Br(i)||void 0,status:Ai(c),op:r[ai],origin:r[ci],_metrics_summary:vi(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function Ci(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Ni(e){return typeof e.getSpanJSON=="function"}function In(e){const{traceFlags:t}=e.spanContext();return t===wi}function Ai(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}const Fe="_sentryChildSpans",Rn="_sentryRootSpan";function uf(e,t){const n=e[Rn]||e;Ur(t,Rn,n),e[Fe]?e[Fe].add(t):Ur(e,Fe,new Set([t]))}function lf(e,t){e[Fe]&&e[Fe].delete(t)}function ff(e){const t=new Set;function n(r){if(!t.has(r)&&In(r)){t.add(r);const s=r[Fe]?Array.from(r[Fe]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function Gr(e){return e[Rn]||e}function Pi(){const e=_i(),t=yi(e);return t.getActiveSpan?t.getActiveSpan():Oi(Ei())}function df(e,t,n,r,s,o){const i=Pi();i&&Si(i,e,t,n,r,s,o)}function Di(){$r||(De(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),$r=!0)}function pf(e,t){e.updateName(t),e.setAttributes({[bi]:"custom",[Ti]:t})}var Mi,ki;const zr="_frozenDsc";function hf(e,t){ki(e,zr,t)}function Wr(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=se({environment:n.environment||sn,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function Fi(e,t){const n=t.getPropagationContext();return n.dsc||Wr(n.traceId,e)}function Yr(e){const t=J();if(!t)return{};const n=Gr(e),r=n[zr];if(r)return r;const s=n.spanContext().traceState,o=s&&s.get("sentry.dsc"),i=o&&pi(o);if(i)return i;const a=Wr(e.spanContext().traceId,t),c=jt(n),f=c.data||{},d=f[ii];d!=null&&(a.sample_rate=`${d}`);const l=f[oi],m=c.description;return l!=="url"&&m&&(a.transaction=m),gi()&&(a.sampled=String(In(n))),t.emit("createDsc",a,n),a}function mf(e){const t=Yr(e);return Mi(t)}function ji(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;Li(e,t),r&&Bi(e,r),Hi(e,n),Ui(e,s),$i(e,o)}function Jr(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:f,eventProcessors:d,attachments:l,propagationContext:m,transactionName:g,span:v}=t;Lt(e,"extra",n),Lt(e,"tags",r),Lt(e,"user",s),Lt(e,"contexts",o),e.sdkProcessingMetadata=Pt(e.sdkProcessingMetadata,a,2),i&&(e.level=i),g&&(e.transactionName=g),v&&(e.span=v),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),f.length&&(e.fingerprint=[...e.fingerprint,...f]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...m}}function Lt(e,t,n){e[t]=Pt(e[t],n,1)}function Li(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=se(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const f=se(r);f&&Object.keys(f).length&&(e.tags={...f,...e.tags});const d=se(s);d&&Object.keys(d).length&&(e.user={...d,...e.user});const l=se(o);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function Ui(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function $i(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Bi(e,t){e.contexts={trace:xi(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Yr(t),...e.sdkProcessingMetadata};const n=Gr(t),r=jt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Hi(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function Gi(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||oe(),timestamp:t.timestamp||pt()},f=n.integrations||e.integrations.map(x=>x.name);zi(c,e),Ji(c,f),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&Wi(c,e.stackParser);const d=Vi(r,n.captureContext);n.mechanism&&Ke(c,n.mechanism);const l=s?s.getEventProcessors():[],m=xr().getScopeData();if(o){const x=o.getScopeData();Jr(m,x)}if(d){const x=d.getScopeData();Jr(m,x)}const g=[...n.attachments||[],...m.attachments];g.length&&(n.attachments=g),ji(c,m);const v=[...l,...m.eventProcessors];return En(v,c,n).then(x=>(x&&Yi(x),typeof i=="number"&&i>0?Ki(x,i,a):x))}function zi(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;e.environment=e.environment||n||sn,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s),e.message&&(e.message=Je(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=Je(i.value,o));const a=e.request;a&&a.url&&(a.url=Je(a.url,o))}function Wi(e,t){const n=Nr(t);try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function Yi(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Ji(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Ki(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Se(s.data,t,n)}}))},...e.user&&{user:Se(e.user,t,n)},...e.contexts&&{contexts:Se(e.contexts,t,n)},...e.extra&&{extra:Se(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=Se(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:Se(s.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Se(e.contexts.flags,3,n)),r}function Vi(e,t){if(!t)return e;const n=e?e.clone():new Re;return n.update(t),n}function Xi(e){if(e)return Zi(e)?{captureContext:e}:qi(e)?{captureContext:e}:e}function Zi(e){return e instanceof Re||typeof e=="function"}const Qi=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function qi(e){return Object.keys(e).some(t=>Qi.includes(t))}var we,ea,Ut,ta,$t,na,Bt,ra,Kr;function Vr(e,t){return pe().captureException(e,Xi(t))}function sa(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return pe().captureMessage(e,n,r)}function Xr(e,t){return pe().captureEvent(e,t)}function gf(e,t){we().setContext(e,t)}function vf(e){we().setExtras(e)}function yf(e,t){we().setExtra(e,t)}function _f(e){we().setTags(e)}function Ef(e,t){we().setTag(e,t)}function Sf(e){we().setUser(e)}function bf(){return we().lastEventId()}function Zr(e,t){const n=ea(),r=Ut();if(!r)$t&&Bt.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)$t&&Bt.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return ra()}function Tf(e,t,n){const r=Zr({monitorSlug:e,status:"in_progress"},n),s=Kr();function o(i){Zr({monitorSlug:e,status:i,checkInId:r,duration:Kr()-s})}return ta(()=>{let i;try{i=t()}catch(a){throw o("error"),a}return na(i)?Promise.resolve(i).then(()=>{o("ok")},a=>{throw o("error"),a}):o("ok"),i})}async function If(e){const t=Ut();return t?t.flush(e):($t&&Bt.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Rf(e){const t=Ut();return t?t.close(e):($t&&Bt.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function oa(){return!!J()}function Of(){const e=Ut();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function wf(e){we().addEventProcessor(e)}function Qr(e){const t=J(),n=ht(),r=pe(),{release:s,environment:o=sn}=t&&t.getOptions()||{},{userAgent:i}=C.navigator||{},a=ko({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&Ve(c,{status:"exited"}),qr(),n.setSession(a),r.setSession(a),a}function qr(){const e=ht(),t=pe(),n=t.getSession()||e.getSession();n&&Fo(n),es(),e.setSession(),t.setSession()}function es(){const e=ht(),t=pe(),n=J(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function ts(e=!1){if(e){qr();return}es()}var ia,aa,ca;const ns=[];function ua(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function la(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;const s=ua(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function fa(e,t){const n={};return t.forEach(r=>{r&&ss(e,r,n)}),n}function rs(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function ss(e,t,n){if(n[t.name]){P&&b.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,ns.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),ns.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}P&&b.log(`Integration installed: ${t.name}`)}function xf(e){const t=ia();if(!t){aa&&ca.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function Cf(e){return e}const da=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],pa="InboundFilters",ha=(e={})=>({name:pa,processEvent(t,n,r){const s=r.getOptions(),o=ma(e,s);return ga(t,o)?null:t}});function ma(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:da],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function ga(e,t){return t.ignoreInternal&&ba(e)?(P&&b.warn(`Event dropped due to being internal Sentry Error.
5
+ Event: ${Ie(e)}`),!0):va(e,t.ignoreErrors)?(P&&b.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
6
+ Event: ${Ie(e)}`),!0):Ia(e)?(P&&b.warn(`Event dropped due to not having an error message, error type or stacktrace.
7
+ Event: ${Ie(e)}`),!0):ya(e,t.ignoreTransactions)?(P&&b.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
8
+ Event: ${Ie(e)}`),!0):_a(e,t.denyUrls)?(P&&b.warn(`Event dropped due to being matched by \`denyUrls\` option.
9
+ Event: ${Ie(e)}.
10
+ Url: ${Ht(e)}`),!0):Ea(e,t.allowUrls)?!1:(P&&b.warn(`Event dropped due to not being matched by \`allowUrls\` option.
11
+ Event: ${Ie(e)}.
12
+ Url: ${Ht(e)}`),!0)}function va(e,t){return e.type||!t||!t.length?!1:Sa(e).some(n=>Ct(n,t))}function ya(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Ct(n,t):!1}function _a(e,t){if(!t||!t.length)return!1;const n=Ht(e);return n?Ct(n,t):!1}function Ea(e,t){if(!t||!t.length)return!0;const n=Ht(e);return n?Ct(n,t):!0}function Sa(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function ba(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Ta(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ht(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Ta(t):null}catch{return P&&b.error(`Cannot extract url for event ${Ie(e)}`),null}}function Ia(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}let os;const Ra="FunctionToString",is=new WeakMap,Oa=()=>({name:Ra,setupOnce(){os=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=fn(this),n=is.has(J())&&t!==void 0?t:this;return os.apply(n,e)}}catch{}},setup(e){is.set(e,!0)}}),wa="Dedupe",xa=()=>{let e;return{name:wa,processEvent(t){if(t.type)return t;try{if(Ca(t,e))return P&&b.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Ca(e,t){return t?!!(Na(e,t)||Aa(e,t)):!1}function Na(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!cs(e,t)||!as(e,t))}function Aa(e,t){const n=us(t),r=us(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!cs(e,t)||!as(e,t))}function as(e,t){let n=kr(e),r=kr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function cs(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function us(e){return e.exception&&e.exception.values&&e.exception.values[0]}const Gt=C;function Df(){try{return new ErrorEvent(""),!0}catch{return!1}}function Mf(){try{return new DOMError(""),!0}catch{return!1}}function kf(){try{return new DOMException(""),!0}catch{return!1}}function On(){if(!("fetch"in Gt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function wn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Pa(){if(typeof EdgeRuntime=="string")return!0;if(!On())return!1;if(wn(Gt.fetch))return!0;let e=!1;const t=Gt.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=wn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Pe&&b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Ff(){return"ReportingObserver"in Gt}function jf(){if(!On())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}function Da(e,t){t.debug===!0&&(P?b.enable():De(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),pe().update(t.initialScope);const r=new e(t);return Ma(r),r.init(),r}function Ma(e){pe().setClient(e)}var ka,Fa;const ja="7";function ls(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function La(e){return`${ls(e)}${e.projectId}/envelope/`}function Ua(e,t){const n={sentry_version:ja};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function $a(e,t,n){return t||`${La(e)}?${Ua(e,n)}`}function Lf(e,t){const n=ka(e);if(!n)return"";const r=`${ls(n)}embed/error-page/`;let s=`dsn=${Fa(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}const Ba=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ha(e){return e==="http"||e==="https"}function zt(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Ga(e){const t=Ba.exec(e);if(!t){De(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",f=a;const d=f.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),f=d.pop()),f){const l=f.match(/^\d+/);l&&(f=l[0])}return fs({host:o,pass:s,path:c,projectId:f,port:i,protocol:n,publicKey:r})}function fs(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function za(e){if(!Pe)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(b.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?Ha(r)?t&&isNaN(parseInt(t,10))?(b.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(b.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(b.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Wa(e){const t=typeof e=="string"?Ga(e):fs(e);if(!(!t||!za(t)))return t}var xn;function mt(e,t=[]){return[e,t]}function Ya(e,t){const[n,r]=e;return[n,[...r,t]]}function Cn(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Uf(e,t){return Cn(e,(n,r)=>t.includes(r))}function Wt(e){return C.__SENTRY__&&C.__SENTRY__.encodePolyfill?C.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function Ja(e){return xn.__SENTRY__&&xn.__SENTRY__.decodePolyfill?xn.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)}function Ka(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Wt(r),o]:r.push(typeof o=="string"?Wt(o):o)}for(const o of n){const[i,a]=o;if(s(`
13
+ ${JSON.stringify(i)}
14
+ `),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Se(a))}s(c)}}return typeof r=="string"?r:Va(r)}function Va(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function $f(e){let t=typeof e=="string"?Wt(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(Ja(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function Bf(e){return[{type:"span"},e]}function Xa(e){const t=typeof e.data=="string"?Wt(e.data):e.data;return[se({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Za={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function ds(e){return Za[e]}function ps(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Qa(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:zt(r)},...s&&{trace:se({...s})}}}var qa,ec,tc,nc,hs,rc;function sc(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function oc(e,t,n,r){const s=ps(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:zt(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return mt(o,[i])}function ic(e,t,n,r){const s=ps(n),o=e.type&&e.type!=="replay_event"?e.type:"event";sc(e,n&&n.sdk);const i=Qa(e,s,r,t);return delete e.sdkProcessingMetadata,mt(i,[[{type:o},e]])}function Hf(e,t){function n(d){return!!d.trace_id&&!!d.public_key}const r=qa(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:ec(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?d=>{const l=a(hs(d));return l||rc(),l}:d=>hs(d),f=[];for(const d of e){const l=c(d);l&&f.push(tc(l))}return nc(i,f)}function ac(e,t,n){const r=[{type:"client_report"},{timestamp:n||pt(),discarded_events:e}];return mt(t?{dsn:t}:{},[r])}class fe extends Error{constructor(t,n="warn"){super(t),this.message=t,this.logLevel=n}}function cc(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){P&&b.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const ms="Not capturing exception because it's already been captured.";class uc{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=Wa(t.dsn):P&&b.warn("No DSN provided, client will not send events."),this._dsn){const s=$a(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:s})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in t&&t[s]==null);r&&De(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(t,n,r){const s=oe();if(Ir(t))return P&&b.log(ms),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:oe(),...r},i=cn(t)?t:String(t),a=un(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=oe();if(n&&n.originalException&&Ir(n.originalException))return P&&b.log(ms),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?P&&b.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Ve(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):ke(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];ss(this,t,this._integrations),n||rs(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=ic(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Ya(r,Xa(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=oc(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;P&&b.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(P&&b.error("Error while sending envelope:",n),n)):(P&&b.error("Transport disabled"),ke({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=fa(this,t),rs(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const f=c.mechanism;if(f&&f.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Ve(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new ie(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r=pe(),s=ht()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),Gi(o,t,n,r,this,s).then(a=>{if(a===null)return a;a.contexts={trace:Xo(r),...a.contexts};const c=Fi(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{P&&(s instanceof fe&&s.logLevel==="log"?b.log(s.message):b.warn(s))})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=vs(t),a=gs(t),c=t.type||"error",f=`before send for type \`${c}\``,d=typeof o>"u"?void 0:cc(o);if(a&&typeof d=="number"&&Math.random()>d)return this.recordDroppedEvent("sample_rate","error",t),Dt(new fe(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l=c==="replay_event"?"replay":c,g=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,g).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",l,t),new fe("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return v;const x=fc(this,s,v,n);return lc(x,f)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",l,t),i){const H=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",H)}throw new fe(`${f} returned \`null\`, will not send event.`,"log")}const L=r&&r.getSession();if(!i&&L&&this._updateSessionFromEvent(L,v),i){const k=v.sdkProcessingMetadata&&v.sdkProcessingMetadata.spanCountBeforeProcessing||0,H=v.spans?v.spans.length:0,z=k-H;z>0&&this.recordDroppedEvent("before_send","span",z)}const x=v.transaction_info;if(i&&x&&v.transaction!==t.transaction){const k="custom";v.transaction_info={...x,source:k}}return this.sendEvent(v,n),v}).then(null,v=>{throw v instanceof fe?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),new fe(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
15
+ Reason: ${v}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){P&&b.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){P&&b.log("No outcomes to send");return}if(!this._dsn){P&&b.log("No dsn provided, will not send outcomes");return}P&&b.log("Sending outcomes:",t);const n=ac(t,this._options.tunnel&&zt(this._dsn));this.sendEnvelope(n)}}function lc(e,t){const n=`${t} must return \`null\` or a valid event.`;if(wt(e))return e.then(r=>{if(!We(r)&&r!==null)throw new fe(n);return r},r=>{throw new fe(`${t} rejected with ${r}`)});if(!We(e)&&e!==null)throw new fe(n);return e}function fc(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(gs(n)&&s)return s(n,r);if(vs(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const f=i(c);f?a.push(f):(Di(),e.recordDroppedEvent("before_send","span"))}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function gs(e){return e.type===void 0}function vs(e){return e.type==="transaction"}function Gf(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function dc(){return"npm"}function pc(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:"8.55.2"})),version:"8.55.2"}),e._metadata=s}const gt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Nn(e,t){const n=Pn(e,t),r={type:yc(t),value:_c(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function hc(e,t,n,r){const s=J(),o=s&&s.getOptions().normalizeDepth,i=Ic(t),a={__serialized__:Fr(t,o)};if(i)return{exception:{values:[Nn(e,i)]},extra:a};const c={exception:{values:[{type:Ot(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:bc(t,{isUnhandledRejection:r})}]},extra:a};if(n){const f=Pn(e,n);f.length&&(c.exception.values[0].stacktrace={frames:f})}return c}function An(e,t){return{exception:{values:[Nn(e,t)]}}}function Pn(e,t){const n=t.stacktrace||t.stack||"",r=gc(t),s=vc(t);try{return e(n,r,s)}catch{}return[]}const mc=/Minified React error #\d+;/i;function gc(e){return e&&mc.test(e.message)?1:0}function vc(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function ys(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function yc(e){const t=e&&e.name;return!t&&ys(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function _c(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:ys(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function Ec(e,t,n,r){const s=n&&n.syntheticException||void 0,o=Dn(e,t,s,r);return Ke(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),ke(o)}function Sc(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=Mn(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),ke(i)}function Dn(e,t,n,r,s){let o;if(pr(t)&&t.error)return An(e,t.error);if(hr(t)||yo(t)){const i=t;if("stack"in t)o=An(e,t);else{const a=i.name||(hr(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=Mn(e,c,n,r),hn(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return an(t)?An(e,t):We(t)||Ot(t)?(o=hc(e,t,n,s),Ke(o,{synthetic:!0}),o):(o=Mn(e,t,n,r),hn(o,`${t}`,void 0),Ke(o,{synthetic:!0}),o)}function Mn(e,t,n,r){const s={};if(r&&n){const o=Pn(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),Ke(s,{synthetic:!0})}if(cn(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function bc(e,{isUnhandledRejection:t}){const n=No(e),r=t?"promise rejection":"exception";return pr(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ot(e)?`Event \`${Tc(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Tc(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Ic(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const D=C;let kn=0;function _s(){return kn>0}function Rc(){kn++,setTimeout(()=>{kn--})}function Ze(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(fn(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>Ze(i,t));return e.apply(this,o)}catch(o){throw Rc(),Vo(i=>{i.addEventProcessor(a=>(t.mechanism&&(hn(a,void 0,void 0),Ke(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Vr(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}yr(r,e),Me(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Oc(e,{metadata:t,tunnel:n,dsn:r}){const s={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:zt(r)}},o=wc(e);return mt(s,[o])}function wc(e){return[{type:"user_report"},e]}class xc extends uc{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=D.SENTRY_SDK_SOURCE||dc();pc(n,"browser",["browser"],r),super(n),n.sendClientReports&&D.document&&D.document.addEventListener("visibilitychange",()=>{D.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Ec(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Sc(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){gt&&b.warn("SDK not enabled, will not capture user feedback.");return}const n=Oc(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const Qe={},Es={};function je(e,t){Qe[e]=Qe[e]||[],Qe[e].push(t)}function zf(){Object.keys(Qe).forEach(e=>{Qe[e]=void 0})}function Le(e,t){if(!Es[e]){Es[e]=!0;try{t()}catch(n){Pe&&b.error(`Error while instrumenting ${e}`,n)}}}function de(e,t){const n=e&&Qe[e];if(n)for(const r of n)try{r(t)}catch(s){Pe&&b.error(`Error while triggering instrumentation handler.
16
+ Type: ${e}
17
+ Name: ${Oe(r)}
18
+ Error:`,s)}}const q=C,Cc=1e3;let Ss,Fn,jn;function Nc(e){const t="dom";je(t,e),Le(t,Ac)}function Ac(){if(!q.document)return;const e=de.bind(null,"dom"),t=bs(e,!0);q.document.addEventListener("click",t,!1),q.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=q[n],o=s&&s.prototype;!o||!o.hasOwnProperty||!o.hasOwnProperty("addEventListener")||(re(o,"addEventListener",function(i){return function(a,c,f){if(a==="click"||a=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=d[a]=d[a]||{refCount:0};if(!l.handler){const m=bs(e);l.handler=m,i.call(this,a,m,f)}l.refCount++}catch{}return i.call(this,a,c,f)}}),re(o,"removeEventListener",function(i){return function(a,c,f){if(a==="click"||a=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},l=d[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,f),l.handler=void 0,delete d[a]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,c,f)}}))})}function Pc(e){if(e.type!==Fn)return!1;try{if(!e.target||e.target._sentryId!==jn)return!1}catch{}return!0}function Dc(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function bs(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Mc(n);if(Dc(n.type,r))return;Me(n,"_sentryCaptured",!0),r&&!r._sentryId&&Me(r,"_sentryId",oe());const s=n.type==="keypress"?"input":n.type;Pc(n)||(e({event:n,name:s,global:t}),Fn=n.type,jn=r?r._sentryId:void 0),clearTimeout(Ss),Ss=q.setTimeout(()=>{jn=void 0,Fn=void 0},Cc)}}function Mc(e){try{return e.target}catch{return null}}const vt="__sentry_xhr_v3__";function kc(e){const t="xhr";je(t,e),Le(t,Fc)}function Fc(){if(!q.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=_e()*1e3,i=ye(r[0])?r[0].toUpperCase():void 0,a=jc(r[1]);if(!i||!a)return t.apply(n,r);n[vt]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const f=n[vt];if(f&&n.readyState===4){try{f.status_code=n.status}catch{}const d={endTimestamp:_e()*1e3,startTimestamp:o,xhr:n,virtualError:s};de("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(f,d,l){return c(),f.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(f,d,l){const[m,g]=l,v=d[vt];return v&&ye(m)&&ye(g)&&(v.request_headers[m.toLowerCase()]=g),f.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[vt];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:_e()*1e3,xhr:n};return de("xhr",o),t.apply(n,r)}})}function jc(e){if(ye(e))return e;try{return e.toString()}catch{}}const Yt=C;function Lc(){const e=Yt.chrome,t=e&&e.app&&e.app.runtime,n="history"in Yt&&!!Yt.history.pushState&&!!Yt.history.replaceState;return!t&&n}let Jt;function Ts(e){const t="history";je(t,e),Le(t,Uc)}function Uc(){if(!Lc())return;const e=q.onpopstate;q.onpopstate=function(...n){const r=q.location.href,s=Jt;if(Jt=r,de("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=Jt,i=String(s);Jt=i,de("history",{from:o,to:i})}return n.apply(this,r)}}re(q.history,"pushState",t),re(q.history,"replaceState",t)}function $c(e){const t="console";je(t,e),Le(t,Bc)}function Bc(){"console"in C&&ln.forEach(function(e){e in C.console&&re(C.console,e,function(t){return xt[e]=t,function(...n){de("console",{args:n,level:e});const s=xt[e];s&&s.apply(C.console,n)}})})}var Hc,Gc,zc,Wc;function Yc(e,t){const n="fetch";je(n,e),Le(n,()=>Is(void 0,t))}function Wf(e){const t="fetch-body-resolved";Gc(t,e),zc(t,()=>Is(Kc))}function Is(e,t=!1){t&&!Pa()||re(C,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Vc(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:_e()*1e3,virtualError:s};return e||de("fetch",{...a}),n.apply(C,r).then(async c=>(e?e(c):de("fetch",{...a,endTimestamp:_e()*1e3,response:c}),c),c=>{throw de("fetch",{...a,endTimestamp:_e()*1e3,error:c}),an(c)&&c.stack===void 0&&(c.stack=s.stack,Me(c,"framesToPop",1)),c})}})}async function Jc(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Kc(e){let t;try{t=e.clone()}catch{return}Jc(t,()=>{Wc("fetch-body-resolved",{endTimestamp:Hc()*1e3,response:e})})}function Ln(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Rs(e){return typeof e=="string"?e:e?Ln(e,"url")?e.url:e.toString?e.toString():"":""}function Vc(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Rs(n),method:Ln(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Rs(t),method:Ln(t,"method")?String(t.method).toUpperCase():"GET"}}const Xc=100;function Ue(e,t){const n=J(),r=ht();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Xc}=n.getOptions();if(o<=0)return;const a={timestamp:pt(),...e},c=s?De(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}const Yf=null;function Zc(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function Os(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function Un(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Jf(e){return e.split(/[?#]/,1)[0]}function Kf(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Vf(e){const{protocol:t,host:n,path:r}=e,s=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}const Kt=1024,Qc="Breadcrumbs",qc=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Qc,setup(n){t.console&&$c(nu(n)),t.dom&&Nc(tu(n,t.dom)),t.xhr&&kc(ru(n)),t.fetch&&Yc(su(n)),t.history&&Ts(ou(n)),t.sentry&&n.on("beforeSendEvent",eu(n))}}};function eu(e){return function(n){J()===e&&Ue({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ie(n)},{event:n})}}function tu(e,t){return function(r){if(J()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Kt&&(gt&&b.warn(`\`dom.maxStringLength\` cannot exceed ${Kt}, but a value of ${a} was configured. Sentry will use ${Kt} instead.`),a=Kt),typeof i=="string"&&(i=[i]);try{const f=r.event,d=iu(f)?f.target:f;s=gr(d,{keyAttrs:i,maxStringLength:a}),o=Ro(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),Ue(c,{event:r.event,name:r.name,global:r.global})}}function nu(e){return function(n){if(J()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Zc(n.level),message:vr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${vr(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ue(r,{input:n.args,level:n.level})}}function ru(e){return function(n){if(J()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[vt];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:f}=o,d={method:i,url:a,status_code:c},l={xhr:n.xhr,input:f,startTimestamp:r,endTimestamp:s},m=Os(c);Ue({category:"xhr",data:d,type:"http",level:m},l)}}function su(e){return function(n){if(J()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};Ue({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=Os(i.status_code);Ue({category:"fetch",data:i,type:"http",level:c},a)}}}function ou(e){return function(n){if(J()!==e)return;let r=n.from,s=n.to;const o=Un(D.location.href);let i=r?Un(r):void 0;const a=Un(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),Ue({category:"navigation",data:{from:r,to:s}})}}function iu(e){return!!e&&!!e.target}const au=["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"],cu="BrowserApiErrors",uu=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:cu,setupOnce(){t.setTimeout&&re(D,"setTimeout",ws),t.setInterval&&re(D,"setInterval",ws),t.requestAnimationFrame&&re(D,"requestAnimationFrame",lu),t.XMLHttpRequest&&"XMLHttpRequest"in D&&re(XMLHttpRequest.prototype,"send",fu);const n=t.eventTarget;n&&(Array.isArray(n)?n:au).forEach(du)}}};function ws(e){return function(...t){const n=t[0];return t[0]=Ze(n,{mechanism:{data:{function:Oe(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function lu(e){return function(t){return e.apply(this,[Ze(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Oe(e)},handled:!1,type:"instrument"}})])}}function fu(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&re(n,s,function(o){const i={mechanism:{data:{function:s,handler:Oe(o)},handled:!1,type:"instrument"}},a=fn(o);return a&&(i.mechanism.data.handler=Oe(a)),Ze(o,i)})}),e.apply(this,t)}}function du(e){const n=D[e],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(re(r,"addEventListener",function(s){return function(o,i,a){try{pu(i)&&(i.handleEvent=Ze(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Oe(i),target:e},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[o,Ze(i,{mechanism:{data:{function:"addEventListener",handler:Oe(i),target:e},handled:!1,type:"instrument"}}),a])}}),re(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function pu(e){return typeof e.handleEvent=="function"}const hu=()=>({name:"BrowserSession",setupOnce(){if(typeof D.document>"u"){gt&&b.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Qr({ignoreDuration:!0}),ts(),Ts(({from:e,to:t})=>{e!==void 0&&e!==t&&(Qr({ignoreDuration:!0}),ts())})}});let $n=null;function mu(e){const t="error";je(t,e),Le(t,gu)}function gu(){$n=C.onerror,C.onerror=function(e,t,n,r,s){return de("error",{column:r,error:s,line:n,msg:e,url:t}),$n?$n.apply(this,arguments):!1},C.onerror.__SENTRY_INSTRUMENTED__=!0}let Bn=null;function vu(e){const t="unhandledrejection";je(t,e),Le(t,yu)}function yu(){Bn=C.onunhandledrejection,C.onunhandledrejection=function(e){return de("unhandledrejection",e),Bn?Bn.apply(this,arguments):!0},C.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const _u="GlobalHandlers",Eu=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:_u,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Su(n),xs("onerror")),t.onunhandledrejection&&(bu(n),xs("onunhandledrejection"))}}};function Su(e){mu(t=>{const{stackParser:n,attachStacktrace:r}=Cs();if(J()!==e||_s())return;const{msg:s,url:o,line:i,column:a,error:c}=t,f=Ru(Dn(n,c||s,void 0,r,!1),o,i,a);f.level="error",Xr(f,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function bu(e){vu(t=>{const{stackParser:n,attachStacktrace:r}=Cs();if(J()!==e||_s())return;const s=Tu(t),o=un(s)?Iu(s):Dn(n,s,void 0,r,!0);o.level="error",Xr(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Tu(e){if(un(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Iu(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ru(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],f=r,d=n,l=ye(t)&&t.length>0?t:Io();return c.length===0&&c.push({colno:f,filename:l,function:"?",in_app:!0,lineno:d}),e}function xs(e){gt&&b.log(`Global Handler attached: ${e}`)}function Cs(){const e=J();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ou=()=>({name:"HttpContext",preprocessEvent(e){if(!D.navigator&&!D.location&&!D.document)return;const t=e.request&&e.request.url||D.location&&D.location.href,{referrer:n}=D.document||{},{userAgent:r}=D.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}});function wu(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!Ae(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=xu(Hn(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function Hn(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(Ae(r[s],Error)){Ns(i,a);const f=e(t,r[s]),d=c.length;As(f,s,d,a),c=Hn(e,t,n,r[s],s,[f,...c],f,d)}return Array.isArray(r.errors)&&r.errors.forEach((f,d)=>{if(Ae(f,Error)){Ns(i,a);const l=e(t,f),m=c.length;As(l,`errors[${d}]`,m,a),c=Hn(e,t,n,f,s,[l,...c],l,m)}}),c}function Ns(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function As(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function xu(e,t){return e.map(n=>(n.value&&(n.value=Je(n.value,t)),n))}const Cu="cause",Nu=5,Au="LinkedErrors",Pu=(e={})=>{const t=e.limit||Nu,n=e.key||Cu;return{name:Au,preprocessEvent(r,s,o){const i=o.getOptions();wu(Nn,i.stackParser,i.maxValueLength,n,t,r,s)}}},ed=10,td=20,Du=30,nd=40,Mu=50;function qe(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const ku=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Fu=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ju=/\((\S*)(?::(\d+))(?::(\d+))\)/,Lu=[Du,e=>{const t=ku.exec(e);if(t){const[,r,s,o]=t;return qe(r,"?",+s,+o)}const n=Fu.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=ju.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=Ps(n[1]||"?",n[2]);return qe(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Uu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Bu=[Mu,e=>{const t=Uu.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=$u.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||"?";return[s,r]=Ps(s,r),qe(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Hu=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,od=e=>{const t=Hu.exec(e);return t?qe(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},id=null,Gu=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,ad=e=>{const t=Gu.exec(e);return t?qe(t[2],t[3]||"?",+t[1]):void 0},cd=null,zu=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ud=e=>{const t=zu.exec(e);return t?qe(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0},ld=null,Wu=Mr(...[Lu,Bu]),Ps=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Yu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vt={};function Gn(e){const t=Vt[e];if(t)return t;let n=q[e];if(wn(n))return Vt[e]=n.bind(q);const r=q.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){Yu&&b.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Vt[e]=n.bind(q))}function Ds(e){Vt[e]=void 0}function dd(...e){return Gn("fetch")(...e)}function pd(...e){return Gn("setTimeout")(...e)}function Ju(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return Dt(new fe("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new ie((a,c)=>{let f=t.length;if(!f)return a(!0);const d=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(l=>{ke(l).then(()=>{--f||(clearTimeout(d),a(!0))},c)})})}return{$:t,add:s,drain:o}}const Ku=60*1e3;function Vu(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Ku:r-t}function Xu(e,t){return e[t]||e.all||0}function Zu(e,t,n=Date.now()){return Xu(e,t)>n}function Qu(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,f,,,d]=a.split(":",5),l=parseInt(c,10),m=(isNaN(l)?60:l)*1e3;if(!f)s.all=r+m;else for(const g of f.split(";"))g==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[g]=r+m):s[g]=r+m}else i?s.all=r+Vu(i,r):t===429&&(s.all=r+60*1e3);return s}const qu=64;function el(e,t,n=Ju(e.bufferSize||qu)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(Cn(i,(l,m)=>{const g=ds(m);if(Zu(r,g)){const v=Ms(l,m);e.recordDroppedEvent("ratelimit_backoff",g,v)}else a.push(l)}),a.length===0)return ke({});const c=mt(i[0],a),f=l=>{Cn(c,(m,g)=>{const v=Ms(m,g);e.recordDroppedEvent(l,ds(g),v)})},d=()=>t({body:Ka(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&P&&b.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Qu(r,l),l),l=>{throw f("network_error"),l});return n.add(d).then(l=>l,l=>{if(l instanceof fe)return P&&b.error("Skipped sending event because buffer is full."),f("queue_overflow"),ke({});throw l})}return{send:o,flush:s}}function Ms(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function tl(e,t=Gn("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Ds("fetch"),Dt("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Ds("fetch"),n-=i,r--,Dt(c)}}return el(e,s)}var nl,rl,sl,ol,zn,Wn,et;function il(e){const t=[ha(),Oa(),uu(),qc(),Eu(),Pu(),xa(),Ou()];return e.autoSessionTracking!==!1&&t.push(hu()),t}function al(e={}){const t={defaultIntegrations:il(e),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:D.SENTRY_RELEASE&&D.SENTRY_RELEASE.id?D.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function cl(){const e=typeof D.window<"u"&&D;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=D.location&&D.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&D===D.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function ul(e={}){const t=al(e);if(!t.skipBrowserExtensionCheck&&cl()){De(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}gt&&(On()||b.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:qo(t.stackParser||Wu),integrations:la(t),transport:t.transport||tl};return Da(xc,n)}function hd(e={}){if(!et.document){Wn&&zn.error("Global document not defined in showReportDialog call");return}const t=rl(),n=t.getClient(),r=n&&n.getDsn();if(!r){Wn&&zn.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=nl();a&&(e.eventId=a)}const s=et.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=ol(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{et.removeEventListener("message",a)}};et.addEventListener("message",a)}const i=et.document.head||et.document.body;i?i.appendChild(s):Wn&&zn.error("Not injecting report dialog. No injection point found in HTML")}function md(){}function gd(e){e()}function vd(e){const t=sl();t&&t.captureUserFeedback(e)}class ll{constructor(t){if(!oa())ul(Object.assign(Object.assign({environment:t.environment,dsn:t.dsn},t.appVersion&&{release:t.appVersion}),{beforeSend(n){var r;return!((r=n.extra)===null||r===void 0)&&r.log?n:null}}));else if(t.clientSlug!==void 0&&t.environment!==void 0){const n=xr();n.clear(),n.setTag("client.slug",t.clientSlug),n.addEventProcessor(r=>new Promise(s=>s(Object.assign(Object.assign(Object.assign({},r),{environment:t.environment}),t.appVersion&&{release:t.appVersion}))))}}write(t){if(t.err){const n=new Error(t.err.message);n.name=t.msg?`${t.msg} - ${t.err.name}`:t.err.name,n.stack=t.err.stack,Vr(n,{extra:{log:!0}})}else t.msg&&sa(t.msg,{extra:{log:!0}})}}function Yn(){return Yn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yn.apply(this,arguments)}var ks=typeof window<"u"?window.navigator.userAgent:"no-window",fl=/bot|crawler|spider|crawling/i.test(ks),dl={"Content-Type":"application/json"},pl=function(){function e(n){var r=this;n===void 0&&(n={});var s=n.method,o=s===void 0?"PUT":s,i=n.url,a=i===void 0?"/log":i,c=n.headers,f=c===void 0?{}:c,d=n.throttleInterval,l=d===void 0?3e3:d,m=n.withCredentials,g=m!==void 0&&m,v=n.onError,L=n.flushOnClose,x=L!==void 0&&L,k=n.writeCondition;this.writeCondition=k===void 0?e.defaultWriteCondition:k,this.records={},this.headers=Yn({},dl,f),this.start({method:o,url:a,throttleInterval:l,withCredentials:g,onError:v}),x&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){r.currentThrottleTimeout&&window.clearTimeout(r.currentThrottleTimeout);var H=r.recordsAsArray();H.length&&window.fetch(a,{method:o,body:JSON.stringify(H),headers:r.headers,credentials:g?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(n){var r=this,s=n.method,o=n.url,i=n.throttleInterval,a=n.withCredentials,c=n.onError;(function f(){r.currentThrottleTimeout=setTimeout(function(){var d=r.recordsAsArray();if(d.length){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===XMLHttpRequest.DONE&&(l.status>=400&&(typeof c=="function"?c.call(r,d,l):console.warn("Browser Bunyan: A server log write failed")),r.records={},f())},l.open(s,o);for(var m=0,g=Object.entries(r.headers);m<g.length;m++){var v=g[m];l.setRequestHeader(v[0],v[1])}l.withCredentials=a,l.send(JSON.stringify(d))}else f()},i)})()},t.stop=function(){var n=this;setTimeout(function(){n.currentThrottleTimeout&&(clearTimeout(n.currentThrottleTimeout),n.currentThrottleTimeout=null)},1)},t.write=function(n){n.url=typeof window<"u"&&window.location.href,n.userAgent=ks,this.currentThrottleTimeout&&this.writeCondition(n)&&(this.records[n.msg]?this.records[n.msg].count++:(n.count=1,this.records[n.msg]=n))},t.recordsAsArray=function(){var n=this;return Object.keys(this.records).map(function(r){return n.records[r]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!fl},e}(),yd=10,_d=20,Ed=30,Sd=40,bd=50,Td=60,Jn={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Fs={};function Kn(e){return typeof e=="string"?Jn[e.toLowerCase()]:e}function Vn(e,t){return Vn=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Vn(e,t)}function hl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xn(e,t,n){return Xn=hl()?Reflect.construct:function(r,s,o){var i=[null];i.push.apply(i,s);var a=new(Function.bind.apply(r,i));return o&&Vn(a,o.prototype),a},Xn.apply(null,arguments)}function $e(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}return e}function Zn(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return Zn(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function Be(e){if(typeof e!="string"){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=Zn(arguments[n]);return t.join(" ")}for(var r=/%[sdj%]/g,s=1,o=arguments,i=o.length,a=String(e).replace(r,function(f){if(f==="%%")return"%";if(s>=i)return f;switch(f){case"%s":return String(o[s++]);case"%d":return Number(o[s++]);case"%j":try{return JSON.stringify(o[s++])}catch{return"[Circular]"}default:return f}}),c=o[s];s<i;c=o[++s])a+=c===null||typeof c!="object"?" "+c:" "+Zn(c);return a}function ml(e,t){var n=e.split(`
19
+ `);n[0]&&n[0].indexOf("call-stack-error")>=0&&n.shift();var r=n[t],s=null;if(r){var o=/^\s*(at|.*@)\s*(.+)?$/.exec(r);s=Array.isArray(o)&&o[2]?o[2]:r}return s}Object.keys(Jn).forEach(function(e){Fs[Jn[e]]=e});var Qn={};function qn(e,t){if(t){if(Qn[t])return;Qn[t]=!0}console.error(e+`
20
+ `)}function gl(e){return Qn[e]}function vl(){var e=[];return function(t,n){return n&&typeof n=="object"?e.indexOf(n)!==-1?"[Circular]":(e.push(n),n):n}}var yl=function(){function e(){}return e.prototype.write=function(t){t.level<30?console.log(t):t.level<40?console.info(t):t.level<50?console.warn(t):console.error(t),t.err&&t.err.stack&&console.error(t.err.stack),t.obj&&console.log(t.obj)},e}(),He=function(){function e(n,r,s){var o,i,a,c,f=this;if(!(this instanceof e))return new e(n,r);if(r!==void 0&&(o=n,n=r,!(o instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!n)throw new TypeError("options (object) is required");if(o){if(n.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!n.name)throw new TypeError("options.name (string) is required");if(n.stream&&n.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(n.streams&&!Array.isArray(n.streams))throw new TypeError("invalid options.streams: must be an array");if(n.serializers&&(typeof n.serializers!="object"||Array.isArray(n.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(o&&s){this._level=o._level,this.streams=o.streams,this.serializers=o.serializers,this.src=o.src,i=this.fields={};var d=Object.keys(o.fields);for(c=0;c<d.length;c++)i[a=d[c]]=o.fields[a];var l=Object.keys(n);for(c=0;c<l.length;c++)i[a=l[c]]=n[a]}else{if(o){for(this._level=o._level,this.streams=[],c=0;c<o.streams.length;c++){var m=$e(o.streams[c]);this.streams.push(m)}this.serializers=$e(o.serializers),this.src=o.src,this.fields=$e(o.fields),n.level&&this.level(n.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};n.stream?this.addStream({type:"stream",stream:n.stream,level:n.level}):n.streams?n.streams.forEach(function(g){f.addStream(g,n.level)}):o&&n.level?this.level(n.level):o||this.addStream({type:"raw",stream:new yl,level:n.level}),n.serializers&&this.addSerializers(n.serializers),n.src&&(this.src=!0),delete(i=$e(n)).stream,delete i.level,delete i.streams,delete i.serializers,delete i.src,this.serializers&&this._applySerializers(i),Object.keys(i).forEach(function(g){f.fields[g]=i[g]})}}var t=e.prototype;return t.addStream=function(n,r){r===void 0&&(r=30),(n=$e(n)).type="raw",n.level=Kn(n.level||r),n.level<this._level&&(this._level=n.level),this.streams.push(n),delete this.haveNonRawStreams},t.addSerializers=function(n){var r=this;this.serializers||(this.serializers={}),Object.keys(n).forEach(function(s){var o=n[s];if(typeof o!="function")throw new TypeError(Be('invalid serializer for "%s" field: must be a function',s));r.serializers[s]=o})},t.child=function(n,r){return new this.constructor(this,n||{},r)},t.level=function(n){if(n===void 0)return this._level;for(var r=Kn(n),s=this.streams.length,o=0;o<s;o++)this.streams[o].level=r;this._level=r},t.levels=function(n,r){if(n===void 0)return this.streams.map(function(f){return f.level});var s;if(typeof n=="number"){if((s=this.streams[n])===void 0)throw new Error("invalid stream index: "+n)}else{for(var o=this.streams.length,i=0;i<o;i++){var a=this.streams[i];if(a.name===n){s=a;break}}if(!s)throw new Error(Be('no stream with name "%s"',n))}if(r===void 0)return s.level;var c=Kn(r);s.level=c,c<this._level&&(this._level=c)},t._applySerializers=function(n,r){var s=this;Object.keys(this.serializers).forEach(function(o){if(!(n[o]===void 0||r&&r[o]))try{n[o]=s.serializers[o](n[o])}catch(i){qn(Be(`bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.
21
+ %s`,o,i.stack||i)),n[o]=Be('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',o)}})},t._emit=function(n,r){var s,o;if(this.haveNonRawStreams===void 0){for(this.haveNonRawStreams=!1,s=0;s<this.streams.length;s++)if(!this.streams[s].raw){this.haveNonRawStreams=!0;break}}if(r||this.haveNonRawStreams)try{o=JSON.stringify(n,vl())+`
22
+ `}catch(f){var i=f.stack.split(/\n/g,2).join(`
23
+ `);qn('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(d,l){return l||(l=" "),l+d.split(/\r?\n/g).join(`
24
+ `+l)}(Be(`%s
25
+ %s`,n,f.stack)),i),o=Be(`(Exception in JSON.stringify(rec): %j. See stderr for details.)
26
+ `,f.message)}if(r)return o;var a=n.level;for(s=0;s<this.streams.length;s++){var c=this.streams[s];c.level<=a&&c.stream.write(n)}return o},e}();function tt(e){return function(){var t=this;function n(i){var a;i[0]instanceof Error?(r={err:t.serializers&&t.serializers.err?t.serializers.err(i[0]):_l.err(i[0])},a={err:!0},s=i.length===1?[r.err.message]:Array.prototype.slice.call(i,1)):typeof i[0]!="object"&&i[0]!==null||Array.isArray(i[0])?(r=null,s=Array.prototype.slice.call(i)):(r=i[0],s=i.length===1&&r.err&&r.err instanceof Error?[r.err.message]:Array.prototype.slice.call(i,1));var c=$e(t.fields);c.level=e;var f=r?$e(r):null;if(f&&(t.serializers&&t._applySerializers(f,a),Object.keys(f).forEach(function(l){c[l]=f[l]})),c.levelName=Fs[e],c.msg=s.length?Be.apply(t,s):"",c.time||(c.time=new Date),t.src&&!c.src)try{throw new Error("call-stack-error")}catch(l){var d=l.stack?ml(l.stack,2):"";d||gl("src")||qn("Unable to determine src line info","src"),c.src=d||""}return c.v=1,c}var r=null,s=arguments,o=null;if(arguments.length===0)return this._level<=e;this._level>e||(o=n(s),this._emit(o))}}function js(e){var t=e.stack||e.toString();if(e.cause&&typeof e.cause=="function"){var n=e.cause();n&&(t+=`
27
+ Caused by: `+js(n))}return t}He.prototype.trace=tt(10),He.prototype.debug=tt(20),He.prototype.info=tt(30),He.prototype.warn=tt(40),He.prototype.error=tt(50),He.prototype.fatal=tt(60);var _l={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:js(e),code:e.code,signal:e.signal}:e}};function El(){return Xn(He,[].slice.call(arguments))}var Id=null,Rd=null,Od=null;function Sl({environment:e,clientSlug:t,url:n,telemetry:r,appVersion:s}={}){const{logging:o}=Object.assign({},r),i=[{level:cr,stream:new vo({logByLevel:!0})}];return o&&i.push({level:nn,stream:new ll({dsn:"https://509e6f450227e178643e414fe50bd969@o4507853291716608.ingest.us.sentry.io/4508132363141120",environment:e,clientSlug:t,appVersion:s})}),n&&i.push({level:nn,stream:new pl({url:n,method:"POST",throttleInterval:5e3,flushOnClose:!0})}),El({name:"embeddable-logger",streams:i,environment:e,clientSlug:t})}}}]);
28
+
29
+ //# sourceMappingURL=642.index.js.map