!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3839d04b-3bb1-5fe6-9b34-0a0060982c74")}catch(e){}}(); (()=>{"use strict";var e={9386:(e,t,n)=>{var r=n(6357),i=n(215),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},5292:(e,t,n)=>{var r=n(6653),i=n(215),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},2834:(e,t,n)=>{var r=n(6357),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},5845:(e,t,n)=>{var r=n(3683),i=n(2104),o=n(8449).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},7157:(e,t,n)=>{var r=n(4775).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},2135:(e,t,n)=>{var r=n(5161),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},151:(e,t,n)=>{var r=n(1634),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},2372:(e,t,n)=>{var r=n(4543);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},3371:(e,t,n)=>{var r=n(2077).forEach,i=n(4486)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},2753:(e,t,n)=>{var r=n(853),i=n(7418),o=n(5526),a=function(e){return function(t,n,a){var s,c=r(t),u=o(c),l=i(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2077:(e,t,n)=>{var r=n(1232),i=n(1008),o=n(191),a=n(581),s=n(5526),c=n(797),u=i([].push),l=function(e){var t=1===e,n=2===e,i=3===e,l=4===e,d=6===e,h=7===e,p=5===e||d;return function(f,m,g,v){for(var y,E,_=a(f),b=o(_),C=r(m,g),S=s(b),I=0,w=v||c,O=t?w(f,S):n||h?w(f,0):void 0;S>I;I++)if((p||I in b)&&(E=C(y=b[I],I,_),e))if(t)O[I]=E;else if(E)switch(e){case 3:return!0;case 5:return y;case 6:return I;case 2:u(O,y)}else switch(e){case 4:return!1;case 7:u(O,y)}return d?-1:i||l?l:O}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},4486:(e,t,n)=>{var r=n(4543);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},7262:(e,t,n)=>{var r=n(9386),i=n(581),o=n(191),a=n(5526),s=TypeError,c=function(e){return function(t,n,c,u){r(n);var l=i(t),d=o(l),h=a(l),p=e?h-1:0,f=e?-1:1;if(c<2)for(;;){if(p in d){u=d[p],p+=f;break}if(p+=f,e?p<0:h<=p)throw new s("Reduce of empty array with no initial value")}for(;e?p>=0:h>p;p+=f)p in d&&(u=n(u,d[p],p,l));return u}};e.exports={left:c(!1),right:c(!0)}},231:(e,t,n)=>{var r=n(7418),i=n(5526),o=n(9904),a=Array,s=Math.max;e.exports=function(e,t,n){for(var c=i(e),u=r(t,c),l=r(void 0===n?c:n,c),d=a(s(l-u,0)),h=0;u{var r=n(6872),i=n(6653),o=n(1634),a=n(3683)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},797:(e,t,n)=>{var r=n(9929);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},668:(e,t,n)=>{var r=n(3683)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},6032:(e,t,n)=>{var r=n(1008),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},7611:(e,t,n)=>{var r=n(3644),i=n(6357),o=n(6032),a=n(3683)("toStringTag"),s=Object,c="Arguments"===o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:c?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},8137:(e,t,n)=>{var r=n(1008),i=n(6519),o=n(8907).getWeakData,a=n(2135),s=n(151),c=n(3445),u=n(1634),l=n(3308),d=n(2077),h=n(5889),p=n(4317),f=p.set,m=p.getterFor,g=d.find,v=d.findIndex,y=r([].splice),E=0,_=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},C=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=C(this,e);if(t)return t[1]},has:function(e){return!!C(this,e)},set:function(e,t){var n=C(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,i){a(e,p),f(e,{type:t,id:E++,frozen:void 0}),c(i)||l(i,e[r],{that:e,AS_ENTRIES:n})})),p=d.prototype,g=m(t),v=function(e,t,n){var r=g(e),i=o(s(t),!0);return!0===i?_(r).set(t,n):i[r.id]=n,e};return i(p,{delete:function(e){var t=g(this);if(!u(e))return!1;var n=o(e);return!0===n?_(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!u(e))return!1;var n=o(e);return!0===n?_(t).has(e):n&&h(n,t.id)}}),i(p,n?{get:function(e){var t=g(this);if(u(e)){var n=o(e);return!0===n?_(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),d}}},196:(e,t,n)=>{var r=n(6566),i=n(4523),o=n(1008),a=n(4396),s=n(9704),c=n(8907),u=n(3308),l=n(2135),d=n(6357),h=n(3445),p=n(1634),f=n(4543),m=n(668),g=n(6143),v=n(3103);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),E=-1!==e.indexOf("Weak"),_=y?"set":"add",b=i[e],C=b&&b.prototype,S=b,I={},w=function(e){var t=o(C[e]);s(C,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(E&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return E&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(E&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(b)||!(E||C.forEach&&!f((function(){(new b).entries().next()})))))S=n.getConstructor(t,e,y,_),c.enable();else if(a(e,!0)){var O=new S,T=O[_](E?{}:-0,1)!==O,P=f((function(){O.has(1)})),A=m((function(e){new b(e)})),N=!E&&f((function(){for(var e=new b,t=5;t--;)e[_](t,t);return!e.has(-0)}));A||((S=t((function(e,t){l(e,C);var n=v(new b,e,S);return h(t)||u(t,n[_],{that:n,AS_ENTRIES:y}),n}))).prototype=C,C.constructor=S),(P||N)&&(w("delete"),w("has"),y&&w("get")),(N||T)&&w(_),E&&C.clear&&delete C.clear}return I[e]=S,r({global:!0,constructor:!0,forced:S!==b},I),g(S,e),E||n.setStrong(S,e,y),S}},812:(e,t,n)=>{var r=n(5889),i=n(7527),o=n(9763),a=n(8449);e.exports=function(e,t,n){for(var s=i(t),c=a.f,u=o.f,l=0;l{var r=n(3683)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},99:(e,t,n)=>{var r=n(4543);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5025:e=>{e.exports=function(e,t){return{value:e,done:t}}},6587:(e,t,n)=>{var r=n(5180),i=n(8449),o=n(6372);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},6372:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9904:(e,t,n)=>{var r=n(9833),i=n(8449),o=n(6372);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},3642:(e,t,n)=>{var r=n(27),i=n(8449);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},9704:(e,t,n)=>{var r=n(6357),i=n(8449),o=n(27),a=n(2969);e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&o(n,u,s),s.global)c?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6519:(e,t,n)=>{var r=n(9704);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},2969:(e,t,n)=>{var r=n(4523),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5180:(e,t,n)=>{var r=n(4543);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2155:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},2679:(e,t,n)=>{var r=n(4523),i=n(1634),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},792:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},832:(e,t,n)=>{var r=n(2679)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},2224:(e,t,n)=>{var r=n(4523),i=n(6032);e.exports="process"===i(r.process)},4848:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},2844:(e,t,n)=>{var r,i,o=n(4523),a=n(4848),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},8471:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6566:(e,t,n)=>{var r=n(4523),i=n(9763).f,o=n(6587),a=n(9704),s=n(2969),c=n(812),u=n(4396);e.exports=function(e,t){var n,l,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||s(f,{}):(r[f]||{}).prototype)for(l in t){if(h=t[l],d=e.dontCallGetSet?(p=i(n,l))&&p.value:n[l],!u(m?l:f+(g?".":"#")+l,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(n,l,h,e)}}},4543:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},1644:(e,t,n)=>{n(3831);var r=n(1316),i=n(9704),o=n(8779),a=n(4543),s=n(3683),c=n(6587),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),p=!a((function(){var t={};return t[h]=function(){return 7},7!==""[e](t)})),f=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!p||!f||n){var m=r(/./[h]),g=t(h,""[e],(function(e,t,n,i,a){var s=r(e),c=t.exec;return c===o||c===l.exec?p&&!a?{done:!0,value:m(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(l,h,g[1])}d&&c(l[h],"sham",!0)}},5240:(e,t,n)=>{var r=n(4543);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},1881:(e,t,n)=>{var r=n(9944),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},1232:(e,t,n)=>{var r=n(1316),i=n(9386),o=n(9944),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},9944:(e,t,n)=>{var r=n(4543);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},2957:(e,t,n)=>{var r=n(9944),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},94:(e,t,n)=>{var r=n(5180),i=n(5889),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},2946:(e,t,n)=>{var r=n(1008),i=n(9386);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},1316:(e,t,n)=>{var r=n(6032),i=n(1008);e.exports=function(e){if("Function"===r(e))return i(e)}},1008:(e,t,n)=>{var r=n(9944),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},7735:(e,t,n)=>{var r=n(4523),i=n(6357);e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},787:(e,t,n)=>{var r=n(7611),i=n(6046),o=n(3445),a=n(7869),s=n(3683)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},6417:(e,t,n)=>{var r=n(2957),i=n(9386),o=n(151),a=n(215),s=n(787),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new c(a(e)+" is not iterable")}},6046:(e,t,n)=>{var r=n(9386),i=n(3445);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},9070:(e,t,n)=>{var r=n(1008),i=n(581),o=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var p=n+e.length,f=r.length,m=l;return void 0!==d&&(d=i(d),m=u),s(h,m,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,p);case"<":u=d[c(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>f){var h=o(l/10);return 0===h?i:h<=f?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}u=r[l-1]}return void 0===u?"":u}))}},4523:function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},5889:(e,t,n)=>{var r=n(1008),i=n(581),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},5525:e=>{e.exports={}},2093:(e,t,n)=>{var r=n(7735);e.exports=r("document","documentElement")},9053:(e,t,n)=>{var r=n(5180),i=n(4543),o=n(2679);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},191:(e,t,n)=>{var r=n(1008),i=n(4543),o=n(6032),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},3103:(e,t,n)=>{var r=n(6357),i=n(1634),o=n(7943);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},6842:(e,t,n)=>{var r=n(1008),i=n(6357),o=n(3965),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},8907:(e,t,n)=>{var r=n(6566),i=n(1008),o=n(5525),a=n(1634),s=n(5889),c=n(8449).f,u=n(9712),l=n(3834),d=n(3452),h=n(6048),p=n(5240),f=!1,m=h("meta"),g=0,v=function(e){c(e,m,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},f=!0;var e=u.f,t=i([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,o=r.length;i{var r,i,o,a=n(158),s=n(4523),c=n(1634),u=n(6587),l=n(5889),d=n(3965),h=n(9847),p=n(5525),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new m(f);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var y=h("state");p[y]=!0,r=function(e,t){if(l(e,y))throw new m(f);return t.facade=e,u(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},5745:(e,t,n)=>{var r=n(3683),i=n(7869),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},6872:(e,t,n)=>{var r=n(6032);e.exports=Array.isArray||function(e){return"Array"===r(e)}},6357:(e,t,n)=>{var r=n(2155),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},6653:(e,t,n)=>{var r=n(1008),i=n(4543),o=n(6357),a=n(7611),s=n(7735),c=n(6842),u=function(){},l=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,p=r(h.exec),f=!h.test(u),m=function(e){if(!o(e))return!1;try{return d(u,l,e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!p(h,c(e))}catch(e){return!0}};g.sham=!0,e.exports=!d||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},4396:(e,t,n)=>{var r=n(4543),i=n(6357),o=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n===l||n!==u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},3445:e=>{e.exports=function(e){return null==e}},1634:(e,t,n)=>{var r=n(6357),i=n(2155),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},7051:e=>{e.exports=!1},2388:(e,t,n)=>{var r=n(1634),i=n(6032),o=n(3683)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},2357:(e,t,n)=>{var r=n(7735),i=n(6357),o=n(5161),a=n(2496),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},3308:(e,t,n)=>{var r=n(1232),i=n(2957),o=n(151),a=n(215),s=n(5745),c=n(5526),u=n(5161),l=n(6417),d=n(787),h=n(2675),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,n){var g,v,y,E,_,b,C,S=n&&n.that,I=!(!n||!n.AS_ENTRIES),w=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),P=r(t,S),A=function(e){return g&&h(g,"normal",e),new f(!0,e)},N=function(e){return I?(o(e),T?P(e[0],e[1],A):P(e[0],e[1])):T?P(e,A):P(e)};if(w)g=e.iterator;else if(O)g=e;else{if(!(v=d(e)))throw new p(a(e)+" is not iterable");if(s(v)){for(y=0,E=c(e);E>y;y++)if((_=N(e[y]))&&u(m,_))return _;return new f(!1)}g=l(e,v)}for(b=w?e.next:g.next;!(C=i(b,g)).done;){try{_=N(C.value)}catch(e){h(g,"throw",e)}if("object"==typeof _&&_&&u(m,_))return _}return new f(!1)}},2675:(e,t,n)=>{var r=n(2957),i=n(151),o=n(6046);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},714:(e,t,n)=>{var r=n(793).IteratorPrototype,i=n(2104),o=n(6372),a=n(6143),s=n(7869),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,l,!1,!0),s[l]=c,e}},3952:(e,t,n)=>{var r=n(6566),i=n(2957),o=n(7051),a=n(94),s=n(6357),c=n(714),u=n(7763),l=n(7943),d=n(6143),h=n(6587),p=n(9704),f=n(3683),m=n(7869),g=n(793),v=a.PROPER,y=a.CONFIGURABLE,E=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,b=f("iterator"),C="keys",S="values",I="entries",w=function(){return this};e.exports=function(e,t,n,a,f,g,O){c(n,t,a);var T,P,A,N=function(e){if(e===f&&x)return x;if(!_&&e&&e in L)return L[e];switch(e){case C:case S:case I:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",R=!1,L=e.prototype,k=L[b]||L["@@iterator"]||f&&L[f],x=!_&&k||N(f),M="Array"===t&&L.entries||k;if(M&&(T=u(M.call(new e)))!==Object.prototype&&T.next&&(o||u(T)===E||(l?l(T,E):s(T[b])||p(T,b,w)),d(T,D,!0,!0),o&&(m[D]=w)),v&&f===S&&k&&k.name!==S&&(!o&&y?h(L,"name",S):(R=!0,x=function(){return i(k,this)})),f)if(P={values:N(S),keys:g?x:N(C),entries:N(I)},O)for(A in P)(_||R||!(A in L))&&p(L,A,P[A]);else r({target:t,proto:!0,forced:_||R},P);return o&&!O||L[b]===x||p(L,b,x,{name:f}),m[t]=x,P}},793:(e,t,n)=>{var r,i,o,a=n(4543),s=n(6357),c=n(1634),u=n(2104),l=n(7763),d=n(9704),h=n(3683),p=n(7051),f=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):m=!0),!c(r)||a((function(){var e={};return r[f].call(e)!==e}))?r={}:p&&(r=u(r)),s(r[f])||d(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},7869:e=>{e.exports={}},5526:(e,t,n)=>{var r=n(5966);e.exports=function(e){return r(e.length)}},27:(e,t,n)=>{var r=n(1008),i=n(4543),o=n(6357),a=n(5889),s=n(5180),c=n(94).CONFIGURABLE,u=n(6842),l=n(4317),d=l.enforce,h=l.get,p=String,f=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),E=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=v(E,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return o(this)&&h(this).source||u(this)}),"toString")},4469:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},495:(e,t,n)=>{var r=n(2388),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},3280:(e,t,n)=>{var r=n(4523),i=n(4543),o=n(1008),a=n(2255),s=n(8906).trim,c=n(8908),u=o("".charAt),l=r.parseFloat,d=r.Symbol,h=d&&d.iterator,p=1/l(c+"-0")!=-1/0||h&&!i((function(){l(Object(h))}));e.exports=p?function(e){var t=s(a(e)),n=l(t);return 0===n&&"-"===u(t,0)?-0:n}:l},3957:(e,t,n)=>{var r=n(5180),i=n(1008),o=n(2957),a=n(4543),s=n(2528),c=n(2981),u=n(5),l=n(581),d=n(191),h=Object.assign,p=Object.defineProperty,f=i([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==h({},e)[n]||s(h({},t)).join("")!==i}))?function(e,t){for(var n=l(e),i=arguments.length,a=1,h=c.f,p=u.f;i>a;)for(var m,g=d(arguments[a++]),v=h?f(s(g),h(g)):s(g),y=v.length,E=0;y>E;)m=v[E++],r&&!o(p,g,m)||(n[m]=g[m]);return n}:h},2104:(e,t,n)=>{var r,i=n(151),o=n(8337),a=n(8471),s=n(5525),c=n(2093),u=n(2679),l=n(9847),d="prototype",h="script",p=l("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+""},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&r?g(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var i=a.length;i--;)delete v[d][a[i]];return v()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[d]=i(e),n=new f,f[d]=null,n[p]=e):n=v(),void 0===t?n:o.f(n,t)}},8337:(e,t,n)=>{var r=n(5180),i=n(7310),o=n(8449),a=n(151),s=n(853),c=n(2528);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=c(t),u=i.length,l=0;u>l;)o.f(e,n=i[l++],r[n]);return e}},8449:(e,t,n)=>{var r=n(5180),i=n(9053),o=n(7310),a=n(151),s=n(9833),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=l(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},9763:(e,t,n)=>{var r=n(5180),i=n(2957),o=n(5),a=n(6372),s=n(853),c=n(9833),u=n(5889),l=n(9053),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),l)try{return d(e,t)}catch(e){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},3834:(e,t,n)=>{var r=n(6032),i=n(853),o=n(9712).f,a=n(231),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},9712:(e,t,n)=>{var r=n(1156),i=n(8471).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},2981:(e,t)=>{t.f=Object.getOwnPropertySymbols},7763:(e,t,n)=>{var r=n(5889),i=n(6357),o=n(581),a=n(9847),s=n(99),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},3452:(e,t,n)=>{var r=n(4543),i=n(1634),o=n(6032),a=n(2372),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||a?function(e){return!!i(e)&&(!a||"ArrayBuffer"!==o(e))&&(!s||s(e))}:s},5161:(e,t,n)=>{var r=n(1008);e.exports=r({}.isPrototypeOf)},1156:(e,t,n)=>{var r=n(1008),i=n(5889),o=n(853),a=n(2753).indexOf,s=n(5525),c=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);for(;t.length>u;)i(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},2528:(e,t,n)=>{var r=n(1156),i=n(8471);e.exports=Object.keys||function(e){return r(e,i)}},5:(e,t)=>{var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7943:(e,t,n)=>{var r=n(2946),i=n(151),o=n(2834);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},5221:(e,t,n)=>{var r=n(5180),i=n(4543),o=n(1008),a=n(7763),s=n(2528),c=n(853),u=o(n(5).f),l=o([].push),d=r&&i((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),h=function(e){return function(t){for(var n,i=c(t),o=s(i),h=d&&null===a(i),p=o.length,f=0,m=[];p>f;)n=o[f++],r&&!(h?n in i:u(i,n))||l(m,e?[n,i[n]]:i[n]);return m}};e.exports={entries:h(!0),values:h(!1)}},5774:(e,t,n)=>{var r=n(2957),i=n(6357),o=n(1634),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},7527:(e,t,n)=>{var r=n(7735),i=n(1008),o=n(9712),a=n(2981),s=n(151),c=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?c(t,n(e)):t}},4192:(e,t,n)=>{var r=n(8449).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},6010:(e,t,n)=>{var r=n(2957),i=n(151),o=n(6357),a=n(6032),s=n(8779),c=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var u=r(n,e,t);return null!==u&&i(u),u}if("RegExp"===a(e))return r(s,e,t);throw new c("RegExp#exec called on incompatible receiver")}},8779:(e,t,n)=>{var r,i,o=n(2957),a=n(1008),s=n(2255),c=n(4315),u=n(9933),l=n(9441),d=n(2104),h=n(4317).get,p=n(3027),f=n(8702),m=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,y=a("".charAt),E=a("".indexOf),_=a("".replace),b=a("".slice),C=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=u.BROKEN_CARET,I=void 0!==/()??/.exec("")[1];(C||I||S||p||f)&&(v=function(e){var t,n,r,i,a,u,l,p=this,f=h(p),w=s(e),O=f.raw;if(O)return O.lastIndex=p.lastIndex,t=o(v,O,w),p.lastIndex=O.lastIndex,t;var T=f.groups,P=S&&p.sticky,A=o(c,p),N=p.source,D=0,R=w;if(P&&(A=_(A,"y",""),-1===E(A,"g")&&(A+="g"),R=b(w,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(w,p.lastIndex-1))&&(N="(?: "+N+")",R=" "+R,D++),n=new RegExp("^(?:"+N+")",A)),I&&(n=new RegExp("^"+N+"$(?!\\s)",A)),C&&(r=p.lastIndex),i=o(g,P?n:p,R),P?i?(i.input=b(i.input,D),i[0]=b(i[0],D),i.index=p.lastIndex,p.lastIndex+=i[0].length):p.lastIndex=0:C&&i&&(p.lastIndex=p.global?i.index+i[0].length:r),I&&i&&i.length>1&&o(m,i[0],n,(function(){for(a=1;a{var r=n(151);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},1274:(e,t,n)=>{var r=n(2957),i=n(5889),o=n(5161),a=n(4315),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},9933:(e,t,n)=>{var r=n(4543),i=n(4523).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},3027:(e,t,n)=>{var r=n(4543),i=n(4523).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},8702:(e,t,n)=>{var r=n(4543),i=n(4523).RegExp;e.exports=r((function(){var e=i("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},9286:(e,t,n)=>{var r=n(3445),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},9089:(e,t,n)=>{var r=n(7735),i=n(3642),o=n(3683),a=n(5180),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},6143:(e,t,n)=>{var r=n(8449).f,i=n(5889),o=n(3683)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},9847:(e,t,n)=>{var r=n(9441),i=n(6048),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},3965:(e,t,n)=>{var r=n(4523),i=n(2969),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},9441:(e,t,n)=>{var r=n(7051),i=n(3965);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},8581:(e,t,n)=>{var r=n(151),i=n(5292),o=n(3445),a=n(3683)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},4775:(e,t,n)=>{var r=n(1008),i=n(4827),o=n(2255),a=n(9286),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,d=o(a(t)),h=i(n),p=d.length;return h<0||h>=p?e?"":void 0:(r=c(d,h))<55296||r>56319||h+1===p||(l=c(d,h+1))<56320||l>57343?e?s(d,h):r:e?u(d,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4567:(e,t,n)=>{var r=n(4848);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},613:(e,t,n)=>{var r=n(1008),i=n(5966),o=n(2255),a=n(4458),s=n(9286),c=r(a),u=r("".slice),l=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=o(s(t)),p=i(n),f=h.length,m=void 0===r?" ":o(r);return p<=f||""===m?h:((d=c(m,l((a=p-f)/m.length))).length>a&&(d=u(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},4458:(e,t,n)=>{var r=n(4827),i=n(2255),o=n(9286),a=RangeError;e.exports=function(e){var t=i(o(this)),n="",s=r(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},82:(e,t,n)=>{var r=n(94).PROPER,i=n(4543),o=n(8908);e.exports=function(e){return i((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||r&&o[e].name!==e}))}},8906:(e,t,n)=>{var r=n(1008),i=n(9286),o=n(2255),a=n(8908),s=r("".replace),c=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},4687:(e,t,n)=>{var r=n(2844),i=n(4543),o=n(4523).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},3048:(e,t,n)=>{var r=n(1008);e.exports=r(1..valueOf)},7418:(e,t,n)=>{var r=n(4827),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},853:(e,t,n)=>{var r=n(191),i=n(9286);e.exports=function(e){return r(i(e))}},4827:(e,t,n)=>{var r=n(4469);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},5966:(e,t,n)=>{var r=n(4827),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},581:(e,t,n)=>{var r=n(9286),i=Object;e.exports=function(e){return i(r(e))}},9113:(e,t,n)=>{var r=n(2957),i=n(1634),o=n(2357),a=n(6046),s=n(5774),c=n(3683),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,c=a(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},9833:(e,t,n)=>{var r=n(9113),i=n(2357);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},3644:(e,t,n)=>{var r={};r[n(3683)("toStringTag")]="z",e.exports="[object z]"===String(r)},2255:(e,t,n)=>{var r=n(7611),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},215:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6048:(e,t,n)=>{var r=n(1008),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},2496:(e,t,n)=>{var r=n(4687);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7310:(e,t,n)=>{var r=n(5180),i=n(4543);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},158:(e,t,n)=>{var r=n(4523),i=n(6357),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},3683:(e,t,n)=>{var r=n(4523),i=n(9441),o=n(5889),a=n(6048),s=n(4687),c=n(2496),u=r.Symbol,l=i("wks"),d=c?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(u,e)?u[e]:d("Symbol."+e)),l[e]}},8908:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},935:(e,t,n)=>{var r=n(6566),i=n(2753).includes,o=n(4543),a=n(5845);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6656:(e,t,n)=>{var r=n(853),i=n(5845),o=n(7869),a=n(4317),s=n(8449).f,c=n(3952),u=n(5025),l=n(7051),d=n(5180),h="Array Iterator",p=a.set,f=a.getterFor(h);e.exports=c(Array,"Array",(function(e,t){p(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(n){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(e){}},6104:(e,t,n)=>{var r=n(6566),i=n(7262).left,o=n(4486),a=n(2844);r({target:"Array",proto:!0,forced:!n(2224)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},7156:(e,t,n)=>{var r=n(6566),i=n(3280);r({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},6460:(e,t,n)=>{var r=n(6566),i=n(1008),o=n(4827),a=n(3048),s=n(4458),c=n(4543),u=RangeError,l=String,d=Math.floor,h=i(s),p=i("".slice),f=i(1..toFixed),m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)},g=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=d(i/1e7)},v=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==f(8e-5,3)||"1"!==f(.9,0)||"1.25"!==f(1.255,2)||"1000000000000000128"!==f(0xde0b6b3a7640080,0)}))||!c((function(){f({})}))},{toFixed:function(e){var t,n,r,i,s=a(this),c=o(e),d=[0,0,0,0,0,0],f="",E="0";if(c<0||c>20)throw new u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(f="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*m(2,69,1))-69)<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(d,0,n),r=c;r>=7;)g(d,1e7,0),r-=7;for(g(d,m(10,r,1),0),r=t-1;r>=23;)v(d,1<<23),r-=23;v(d,1<0?f+((i=E.length)<=c?"0."+h("0",c-i)+E:p(E,0,i-c)+"."+p(E,i-c)):f+E}})},2221:(e,t,n)=>{var r=n(6566),i=n(3957);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},8370:(e,t,n)=>{var r=n(6566),i=n(5221).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},3249:(e,t,n)=>{var r=n(6566),i=n(3308),o=n(9904);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},9170:(e,t,n)=>{var r=n(6566),i=n(5221).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},1152:(e,t,n)=>{var r=n(5180),i=n(4523),o=n(1008),a=n(4396),s=n(3103),c=n(6587),u=n(9712).f,l=n(5161),d=n(2388),h=n(2255),p=n(1274),f=n(9933),m=n(4192),g=n(9704),v=n(4543),y=n(5889),E=n(4317).enforce,_=n(9089),b=n(3683),C=n(3027),S=n(8702),I=b("match"),w=i.RegExp,O=w.prototype,T=i.SyntaxError,P=o(O.exec),A=o("".charAt),N=o("".replace),D=o("".indexOf),R=o("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,k=/a/g,x=/a/g,M=new w(k)!==k,j=f.MISSED_STICKY,U=f.UNSUPPORTED_Y;if(a("RegExp",r&&(!M||j||C||S||v((function(){return x[I]=!1,w(k)!==k||w(x)===x||"/a/i"!==String(w(k,"i"))}))))){for(var B=function(e,t){var n,r,i,o,a,u,f=l(O,this),m=d(e),g=void 0===t,v=[],_=e;if(!f&&m&&g&&e.constructor===B)return e;if((m||l(O,e))&&(e=e.source,g&&(t=p(_))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),_=e,C&&"dotAll"in k&&(r=!!t&&D(t,"s")>-1)&&(t=N(t,/s/g,"")),n=t,j&&"sticky"in k&&(i=!!t&&D(t,"y")>-1)&&U&&(t=N(t,/y/g,"")),S&&(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,c=!1,u=0,l="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:P(L,R(e,r+1))&&(r+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===l||y(a,l))throw new T("Invalid capture group name");a[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e),e=o[0],v=o[1]),a=s(w(e,t),f?this:O,B),(r||i||v.length)&&(u=E(a),r&&(u.dotAll=!0,u.raw=B(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=A(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+A(e,++r);return i}(e),n)),i&&(u.sticky=!0),v.length&&(u.groups=v)),e!==_)try{c(a,"source",""===_?"(?:)":_)}catch(e){}return a},q=u(w),H=0;q.length>H;)m(B,w,q[H++]);O.constructor=B,B.prototype=O,g(i,"RegExp",B,{constructor:!0})}_("RegExp")},3831:(e,t,n)=>{var r=n(6566),i=n(8779);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},4237:(e,t,n)=>{var r=n(94).PROPER,i=n(9704),o=n(151),a=n(2255),s=n(4543),c=n(1274),u="toString",l=RegExp.prototype[u],d=s((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),h=r&&l.name!==u;(d||h)&&i(RegExp.prototype,u,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},1257:(e,t,n)=>{var r,i=n(6566),o=n(1316),a=n(9763).f,s=n(5966),c=n(2255),u=n(495),l=n(9286),d=n(6412),h=n(7051),p=o("".endsWith),f=o("".slice),m=Math.min,g=d("endsWith");i({target:"String",proto:!0,forced:!(!h&&!g&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||g)},{endsWith:function(e){var t=c(l(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:m(s(n),r),o=c(e);return p?p(t,o,i):f(t,i-o.length,i)===o}})},8291:(e,t,n)=>{var r=n(6566),i=n(1008),o=n(495),a=n(9286),s=n(2255),c=n(6412),u=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},9964:(e,t,n)=>{var r=n(6566),i=n(613).start;r({target:"String",proto:!0,forced:n(4567)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},8304:(e,t,n)=>{var r=n(1881),i=n(2957),o=n(1008),a=n(1644),s=n(4543),c=n(151),u=n(6357),l=n(3445),d=n(4827),h=n(5966),p=n(2255),f=n(9286),m=n(7157),g=n(6046),v=n(9070),y=n(6010),E=n(3683)("replace"),_=Math.max,b=Math.min,C=o([].concat),S=o([].push),I=o("".indexOf),w=o("".slice),O="$0"==="a".replace(/./,"$0"),T=!!/./[E]&&""===/./[E]("a","$0");a("replace",(function(e,t,n){var o=T?"$":"$0";return[function(e,n){var r=f(this),o=l(e)?void 0:g(e,E);return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var a=c(this),s=p(e);if("string"==typeof i&&-1===I(i,o)&&-1===I(i,"$<")){var l=n(t,a,s,i);if(l.done)return l.value}var f=u(i);f||(i=p(i));var g,E=a.global;E&&(g=a.unicode,a.lastIndex=0);for(var O,T=[];null!==(O=y(a,s))&&(S(T,O),E);)""===p(O[0])&&(a.lastIndex=m(s,h(a.lastIndex),g));for(var P,A="",N=0,D=0;D=N&&(A+=w(s,N,k)+R,N=k+L.length)}return A+w(s,N)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!O||T)},488:(e,t,n)=>{var r=n(1881),i=n(2957),o=n(1008),a=n(1644),s=n(151),c=n(3445),u=n(2388),l=n(9286),d=n(8581),h=n(7157),p=n(5966),f=n(2255),m=n(6046),g=n(231),v=n(6010),y=n(8779),E=n(9933),_=n(4543),b=E.UNSUPPORTED_Y,C=4294967295,S=Math.min,I=[].push,w=o(/./.exec),O=o(I),T=o("".slice);a("split",(function(e,t,n){var o;return o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=f(l(this)),a=void 0===n?C:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!u(e))return i(t,o,e,a);for(var s,c,d,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=new RegExp(e.source,p+"g");(s=i(y,v,o))&&!((c=v.lastIndex)>m&&(O(h,T(o,m,s.index)),s.length>1&&s.index=a));)v.lastIndex===s.index&&v.lastIndex++;return m===o.length?!d&&w(v,"")||O(h,""):O(h,T(o,m)),h.length>a?g(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=l(this),a=c(t)?void 0:m(t,e);return a?i(a,t,r,n):i(o,f(r),t,n)},function(e,r){var i=s(this),a=f(e),c=n(o,i,a,r,o!==t);if(c.done)return c.value;var u=d(i,RegExp),l=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),g=new u(b?"^(?:"+i.source+")":i,m),y=void 0===r?C:r>>>0;if(0===y)return[];if(0===a.length)return null===v(g,a)?[a]:[];for(var E=0,_=0,I=[];_{var r,i=n(6566),o=n(1316),a=n(9763).f,s=n(5966),c=n(2255),u=n(495),l=n(9286),d=n(6412),h=n(7051),p=o("".startsWith),f=o("".slice),m=Math.min,g=d("startsWith");i({target:"String",proto:!0,forced:!(!h&&!g&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||g)},{startsWith:function(e){var t=c(l(this));u(e);var n=s(m(arguments.length>1?arguments[1]:void 0,t.length)),r=c(e);return p?p(t,r,n):f(t,n,n+r.length)===r}})},9098:(e,t,n)=>{var r=n(6566),i=n(8906).trim;r({target:"String",proto:!0,forced:n(82)("trim")},{trim:function(){return i(this)}})},7250:(e,t,n)=>{var r,i=n(5240),o=n(4523),a=n(1008),s=n(6519),c=n(8907),u=n(196),l=n(8137),d=n(1634),h=n(4317).enforce,p=n(4543),f=n(158),m=Object,g=Array.isArray,v=m.isExtensible,y=m.isFrozen,E=m.isSealed,_=m.freeze,b=m.seal,C={},S={},I=!o.ActiveXObject&&"ActiveXObject"in o,w=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},O=u("WeakMap",w,l),T=O.prototype,P=a(T.set);if(f)if(I){r=l.getConstructor(w,"WeakMap",!0),c.enable();var A=a(T.delete),N=a(T.has),D=a(T.get);s(T,{delete:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),A(this,e)||t.frozen.delete(e)}return A(this,e)},has:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),N(this,e)||t.frozen.has(e)}return N(this,e)},get:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),N(this,e)?D(this,e):t.frozen.get(e)}return D(this,e)},set:function(e,t){if(d(e)&&!v(e)){var n=h(this);n.frozen||(n.frozen=new r),N(this,e)?P(this,e,t):n.frozen.set(e,t)}else P(this,e,t);return this}})}else i&&p((function(){var e=_([]);return P(new O,e,1),!y(e)}))&&s(T,{set:function(e,t){var n;return g(e)&&(y(e)?n=C:E(e)&&(n=S)),P(this,e,t),n===C&&_(e),n===S&&b(e),this}})},5372:(e,t,n)=>{n(7250)},2892:(e,t,n)=>{var r=n(4523),i=n(792),o=n(832),a=n(3371),s=n(6587),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in i)i[u]&&c(r[u]&&r[u].prototype);c(o)},5993:(e,t,n)=>{var r=n(4523),i=n(792),o=n(832),a=n(6656),s=n(6587),c=n(3683),u=c("iterator"),l=c("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[l]||s(e,l,t),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var p in i)h(r[p]&&r[p].prototype,p);h(o,"DOMTokenList")}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(6656),n(2221),n(5993),n(935),n(3831),n(8291),n(2892);var r=/android/i;function i(){var e=window.navigator.userAgent;return!!e&&Boolean((e.includes("Safari")&&(e.includes("iPhone")||e.includes("iPad"))&&!e.includes("Trident")||e.includes("AppleWebKit")&&!(e.includes("Android")||e.includes("Linux")||e.includes("Trident"))&&(e.includes("Mobile")||e.includes("iPhone")||e.includes("iPad"))&&!e.includes("Macintosh")&&!e.includes("Windows"))&&!(e.includes("Chrome")||e.includes("CriOS")||e.includes("Edg")))}function o(){var e=window.navigator.userAgent;return!!e&&Boolean((e.includes("Safari")||e.includes("AppleWebKit"))&&(e.includes("Macintosh")||e.includes("Windows"))&&!e.includes("iPhone")&&!e.includes("iPad")&&!e.includes("Chrome")&&!e.includes("Edg")&&!e.includes("Firefox"))}var a={get documentBody(){return window.document.body},get documentReferrer(){return window.document.referrer},get documentVisibilityState(){return document.visibilityState},getQueryParams:function(e,t){var n=new URL(e),r={};return t.forEach((e=>{var t=n.searchParams.get(e);null!==t&&(r[e]=t)})),r},isAndroid:function(){return r.test(window.navigator.userAgent)},isDesktopSafari:o,isMobileSafari:i,isSafari:function(){return i()||o()},get isSecureContext(){return window.isSecureContext},isSupported:function(){return void 0!==window.postMessage&&void 0!==window.fetch&&void 0!==document.createElement("a").classList},get isTopLevelWindow(){return window.parent===window},get supportsCryptoDigest(){var e;return void 0!==(null===(e=crypto.subtle)||void 0===e?void 0:e.digest)},get supportsDocumentVisibilityState(){return void 0!==document.visibilityState},get supportsPerformanceEntries(){return"performance"in window&&"function"==typeof window.performance.getEntriesByType},get supportsSendBeacon(){return"function"==typeof window.navigator.sendBeacon},get windowInnerHeight(){return window.innerHeight},get windowInnerWidth(){return window.innerWidth},get windowLocation(){return window.location},get windowNavigationBeacon(){return(e,t)=>window.navigator.sendBeacon(e,t)},get windowNavigatorLanguages(){var{language:e,languages:t}=window.navigator;return Array.isArray(t)?e&&e!==t[0]?[e,...t]:t:e?[e]:["en-US"]},get windowParentLocation(){return window.parent.location},get windowPerformance(){return window.performance}};const s="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function c(e){return e&&e.Math==Math?e:void 0}const u="object"==typeof globalThis&&c(globalThis)||"object"==typeof window&&c(window)||"object"==typeof self&&c(self)||"object"==typeof n.g&&c(n.g)||function(){return this}()||{};function l(){return u}function d(e,t,n){const r=n||u,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const h=["debug","info","warn","error","log","assert","trace"],p={};function f(e){if(!("console"in u))return e();const t=u.console,n={},r=Object.keys(p);r.forEach((e=>{const r=p[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const m=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return s?h.forEach((n=>{t[n]=(...t)=>{e&&f((()=>{u.console[n](`Sentry Logger [${n}]:`,...t)}))}})):h.forEach((e=>{t[e]=()=>{}})),t}(),g=Object.prototype.toString;function v(e){switch(g.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return T(e,Error)}}function y(e,t){return g.call(e)===`[object ${t}]`}function E(e){return y(e,"ErrorEvent")}function _(e){return y(e,"DOMError")}function b(e){return y(e,"String")}function C(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function S(e){return null===e||C(e)||"object"!=typeof e&&"function"!=typeof e}function I(e){return y(e,"Object")}function w(e){return"undefined"!=typeof Event&&T(e,Event)}function O(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function T(e,t){try{return e instanceof t}catch(e){return!1}}function P(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const A=l();function N(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",c=s.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++1&&a+i.length*c+u.length>=d));)i.push(u),a+=u.length,n=n.parentNode;return i.reverse().join(s)}catch(e){return""}}function D(e,t){const n=e,r=[];let i,o,a,s,c;if(!n||!n.tagName)return"";if(A.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&b(i))for(o=i.split(/\s+/),c=0;cfunction(e,t,n=!1){return!!b(e)&&(y(t,"RegExp")?t.test(e):!!b(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function x(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);"function"==typeof i&&j(i,r),e[t]=i}function M(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){s&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function j(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,M(e,"__sentry_original__",t)}catch(e){}}function U(e){return e.__sentry_original__}function B(e){if(v(e))return{message:e.message,name:e.name,stack:e.stack,...H(e)};if(w(e)){const t={type:e.type,target:q(e.target),currentTarget:q(e.currentTarget),...H(e)};return"undefined"!=typeof CustomEvent&&T(e,CustomEvent)&&(t.detail=e.detail),t}return e}function q(e){try{return"undefined"!=typeof Element&&T(e,Element)?N(e):Object.prototype.toString.call(e)}catch(e){return""}}function H(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function F(e){return V(e,new Map)}function V(e,t){if(function(e){if(!I(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=V(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(V(e,t))})),r}return e}function G(){const e=u,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function z(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Y(e){const{message:t,event_id:n}=e;if(t)return t;const r=z(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function $(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function W(e,t){const n=z(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function K(e){if(e&&e.__sentry_captured__)return!0;try{M(e,"__sentry_captured__",!0)}catch(e){}return!1}const J="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var X;function Z(e){return new ee((t=>{t(e)}))}function Q(e){return new ee(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(X||(X={}));class ee{constructor(e){ee.prototype.__init.call(this),ee.prototype.__init2.call(this),ee.prototype.__init3.call(this),ee.prototype.__init4.call(this),this._state=X.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ee(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new ee(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(X.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(X.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===X.PENDING&&(O(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===X.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===X.RESOLVED&&e[1](this._value),this._state===X.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function te(){return d("globalEventProcessors",(()=>[]))}function ne(e){te().push(e)}function re(e,t,n,r=0){return new ee(((i,o)=>{const a=e[r];if(null===t||"function"!=typeof a)i(t);else{const s=a({...t},n);J&&a.id&&null===s&&m.log(`Event processor "${a.id}" dropped event`),O(s)?s.then((t=>re(e,t,n,r+1).then(i))).then(null,o):re(e,s,n,r+1).then(i).then(null,o)}}))}function ie(){return Date.now()/1e3}const oe=function(){const{performance:e}=u;if(!e||!e.now)return ie;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let ae;(()=>{const{performance:e}=u;if(!e||!e.now)return void(ae="none");const t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const ue=/\(error: (.*)\)/,le=/captureMessage|captureException/;const de="";function he(e){try{return e&&"function"==typeof e&&e.name||de}catch(e){return de}}function pe(e,t=100,n=1/0){try{return me("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function fe(e,t=3,n=102400){const r=pe(e,t);return i=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?fe(e,t-1,n):r;var i}function me(e,t,r=1/0,i=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=i){h[e]="[MaxProperties ~]";break}const t=f[e];h[e]=me(e,t,l-1,i,o),p++}return s(t),h}function ge(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:c}=ve(e);return F({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:c})}function ve(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}const ye=new WeakMap;const Ee=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function _e(e,t){return Be().captureEvent(e,t)}function be(e,t){Be().addBreadcrumb(e,t)}function Ce(){return Be().getClient()}function Se(){return Be().getScope()}function Ie(e){return e.transaction}function we(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=F({environment:r.environment||se,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function Oe(e){const t=Ce();if(!t)return{};const n=we(ve(e).trace_id||"",t,Se()),r=Ie(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:a}=r.metadata;null!=o&&(n.sample_rate=`${o}`);const s=ve(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(1&t)}(r)),t.emit&&t.emit("createDsc",n),n}function Te(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;!function(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,c=F(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=F(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=F(i);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=F(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:ge(t),...e.contexts};const n=Ie(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Oe(t),...e.sdkProcessingMetadata};const r=ve(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){var n;e.fingerprint=e.fingerprint?(n=e.fingerprint,Array.isArray(n)?n:[n]):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,o)}function Pe(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:h,transactionName:p,span:f}=t;Ae(e,"extra",n),Ae(e,"tags",r),Ae(e,"user",i),Ae(e,"contexts",o),Ae(e,"sdkProcessingMetadata",s),a&&(e.level=a),p&&(e.transactionName=p),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function Ae(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let Ne;class De{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Re()}static clone(e){return e?e.clone():new De}clone(){const e=new De;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ce(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e;if(t instanceof De){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if(I(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Re(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ie(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:i,_user:o,_level:a,_fingerprint:s,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:d,_span:h}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:i,user:o,level:a,fingerprint:s||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:d,span:h}}applyToEvent(e,t={},n=[]){return Te(e,this.getScopeData()),re([...n,...te(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:G();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:G();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),r;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:G();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(m.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function Re(){return{traceId:G(),spanId:G().substring(16)}}const Le="7.120.4",ke=parseFloat(Le),xe=100;class Me{constructor(e,t,n,r=ke){let i,o;this._version=r,t?i=t:(i=new De,i.setClient(e)),n?o=n:(o=new De,o.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:G(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:G(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:G();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=xe}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:ie(),...e},s=i?f((()=>i(a,t))):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=Ue(this);try{e(this)}finally{Ue(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return J&&m.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return J&&!n&&(this.getClient()?m.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):m.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),ce(e,t)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=se}=n&&n.getOptions()||{},{userAgent:o}=u.navigator||{},a=function(e){const t=oe(),n={sid:G(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return F({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&ce(n,e),n}({release:r,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&ce(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=je().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);J&&m.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function je(){return u.__SENTRY__=u.__SENTRY__||{extensions:{},hub:void 0},u}function Ue(e){const t=je(),n=qe(t);return He(t,e),n}function Be(){const e=je();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=je()){return t=e,!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)&&!qe(e).isOlderThan(ke)||He(e,new Me),qe(e);var t}(e)}function qe(e){return d("hub",(()=>new Me),e)}function He(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const Fe=[];function Ve(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Ge(e,t,n){if(n[t.name])J&&m.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Fe.indexOf(t.name)&&(t.setupOnce(ne,Be),Fe.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=(t,r)=>n(t,r,e);r.id=t.name,e.addEventProcessor(r)}J&&m.log(`Integration installed: ${t.name}`)}}function ze(e,t){const n=function(...e){return t(...e)};return n.id=e,n}const Ye=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],$e=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],We="InboundFilters",Ke=(e={})=>({name:We,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ye],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:$e],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(J&&m.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Y(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),J&&0===t.length&&m.error(`Could not extract message for event ${Y(e)}`),t}(e).some((e=>k(e,t)))}(e,t.ignoreErrors)?(J&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Y(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&k(n,t)}(e,t.ignoreTransactions)?(J&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Y(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Je(e);return!!n&&k(n,t)}(e,t.denyUrls)?(J&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Y(e)}.\nUrl: ${Je(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Je(e);return!n||k(n,t)}(e,t.allowUrls)&&(J&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Y(e)}.\nUrl: ${Je(e)}`),!0)}(t,o)?null:t}});function Je(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return J&&m.error(`Cannot extract url for event ${Y(e)}`),null}}let Xe;ze(We,Ke);const Ze="FunctionToString",Qe=new WeakMap,et=()=>({name:Ze,setupOnce(){Xe=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=U(this),n=Qe.has(Ce())&&void 0!==t?t:this;return Xe.apply(n,e)}}catch(e){}},setup(e){Qe.set(e,!0)}}),tt=(ze(Ze,et),{}),nt={};function rt(e,t){tt[e]=tt[e]||[],tt[e].push(t)}function it(e,t){nt[e]||(t(),nt[e]=!0)}function ot(e,t){const n=e&&tt[e];if(n)for(const r of n)try{r(t)}catch(t){s&&m.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${he(r)}\nError:`,t)}}function at(){"console"in u&&h.forEach((function(e){e in u.console&&x(u.console,e,(function(t){return p[e]=t,function(...t){ot("console",{args:t,level:e});const n=p[e];n&&n.apply(u.console,t)}}))}))}const st=u;let ct,ut,lt;function dt(){if(!st.document)return;const e=ot.bind(null,"dom"),t=ht(e,!0);st.document.addEventListener("click",t,!1),st.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=st[t]&&st[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(x(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=ht(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(e){}return t.call(this,n,r,i)}})),x(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function ht(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;M(n,"_sentryCaptured",!0),r&&!r._sentryId&&M(r,"_sentryId",G());const i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==ut)return!1;try{if(!e.target||e.target._sentryId!==lt)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),ut=n.type,lt=r?r._sentryId:void 0),clearTimeout(ct),ct=st.setTimeout((()=>{lt=void 0,ut=void 0}),1e3)}}const pt=u,ft="__sentry_xhr_v3__";function mt(){if(!pt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;x(e,"open",(function(e){return function(...t){const n=Date.now(),r=b(t[0])?t[0].toUpperCase():void 0,i=function(e){if(b(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!i)return e.apply(this,t);this[ft]={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const e=this[ft];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}ot("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?x(this,"onreadystatechange",(function(e){return function(...t){return o(),e.apply(this,t)}})):this.addEventListener("readystatechange",o),x(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,i=this[ft];return i&&b(n)&&b(r)&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),x(e,"send",(function(e){return function(...t){const n=this[ft];return n?(void 0!==t[0]&&(n.body=t[0]),ot("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)):e.apply(this,t)}}))}const gt=l();function vt(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yt(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in gt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(vt(gt.fetch))return!0;let e=!1;const t=gt.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=vt(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){s&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&x(u,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:_t(t),method:Et(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:_t(t),method:Et(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ot("fetch",{...i}),e.apply(u,t).then((e=>(ot("fetch",{...i,endTimestamp:Date.now(),response:e}),e)),(e=>{throw ot("fetch",{...i,endTimestamp:Date.now(),error:e}),e}))}}))}function Et(e,t){return!!e&&"object"==typeof e&&!!e[t]}function _t(e){return"string"==typeof e?e:e?Et(e,"url")?e.url:e.toString?e.toString():"":""}const bt=l(),Ct=u;let St;function It(){if(!function(){const e=bt.chrome,t=e&&e.app&&e.app.runtime,n="history"in bt&&!!bt.history.pushState&&!!bt.history.replaceState;return!t&&n}())return;const e=Ct.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=St,t=String(n);St=t,ot("history",{from:e,to:t})}return e.apply(this,t)}}Ct.onpopstate=function(...t){const n=Ct.location.href,r=St;if(St=n,ot("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},x(Ct.history,"pushState",t),x(Ct.history,"replaceState",t)}const wt=["fatal","error","warning","log","info","debug"];function Ot(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}}const Tt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Pt=u;let At=0;function Nt(){return At>0}function Dt(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(U(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((e=>Dt(e,t)));return e.apply(this,i)}catch(e){throw At++,setTimeout((()=>{At--})),function(...e){const t=Be();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}t.withScope(e[0])}((n=>{var i;n.addEventProcessor((e=>(t.mechanism&&($(e,void 0,void 0),W(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),i=e,Be().captureException(i,function(e){if(e)return function(e){return e instanceof De||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Ee.includes(e)))}(e)?{captureContext:e}:e}(undefined))})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}j(r,e),M(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}const Rt="Breadcrumbs",Lt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Rt,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";rt(t,e),it(t,at)}(function(e){return function(t){if(Ce()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":wt.includes(r)?r:"log"),message:L(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${L(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}be(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if(Ce()!==e)return;let r,i,o="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>1024&&(Tt&&m.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=N(t,{keyAttrs:o,maxStringLength:a}),i=function(e){if(!A.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}(t)}catch(e){r=""}if(0===r.length)return;const s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),be(s,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),rt("dom",n),it("dom",dt)),t.xhr&&function(e){rt("xhr",e),it("xhr",mt)}(function(e){return function(t){if(Ce()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[ft];if(!n||!r||!i)return;const{method:o,url:a,status_code:s,body:c}=i;be({category:"xhr",data:{method:o,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&function(e){const t="fetch";rt(t,e),it(t,yt)}(function(e){return function(t){if(Ce()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)be({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;be({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&function(e){const t="history";rt(t,e),it(t,It)}(function(e){return function(t){if(Ce()!==e)return;let n=t.from,r=t.to;const i=Ot(Pt.location.href);let o=n?Ot(n):void 0;const a=Ot(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),be({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){Ce()===e&&be({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Y(t)},{event:t})}}(e))}}};ze(Rt,Lt);const kt="Dedupe",xt=()=>{let e;return{name:kt,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!jt(e,t)&&!!Mt(e,t))))}(e,t)||!!function(e,t){const n=Ut(t),r=Ut(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!jt(e,t)&&!!Mt(e,t)))}(e,t))}(t,e))return Tt&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Mt(e,t){let n=Bt(e),r=Bt(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e=t)return R(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:R(r,t)}return""}(e),r=t?"promise rejection":"exception";return E(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:w(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const Zt="GlobalHandlers",Qt=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Zt,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";rt(t,(t=>{const{stackParser:n,attachStacktrace:r}=nn();if(Ce()!==e||Nt())return;const{msg:i,url:o,line:a,column:s,error:c}=t,u=void 0===c&&b(i)?function(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=E(e)?e.message:e,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);return en({exception:{values:[{type:a,value:o}]}},t,n,r)}(i,o,a,s):en(Kt(n,c||i,void 0,r,!1),o,a,s);u.level="error",_e(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})),it(t,Ht)}()}(e),tn("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";rt(t,(t=>{const{stackParser:n,attachStacktrace:r}=nn();if(Ce()!==e||Nt())return;const i=function(e){if(S(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return e}(t),o=S(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Kt(n,i,void 0,r,!0);o.level="error",_e(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})),it(t,Vt)}()}(e),tn("onunhandledrejection"))}}};function en(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=b(t)&&t.length>0?t:function(){try{return A.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),e}function tn(e){Tt&&m.log(`Global Handler attached: ${e}`)}function nn(){const e=Ce();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}ze(Zt,Qt);const rn="HttpContext",on=()=>({name:rn,setupOnce(){},preprocessEvent(e){if(!Pt.navigator&&!Pt.location&&!Pt.document)return;const t=e.request&&e.request.url||Pt.location&&Pt.location.href,{referrer:n}=Pt.document||{},{userAgent:r}=Pt.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function an(e,t,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&T(a.originalException,Error)))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var c,u;s&&(o.exception.values=(c=sn(e,t,i,a.originalException,r,o.exception.values,s,0),u=n,c.map((e=>(e.value&&(e.value=R(e.value,u)),e)))))}function sn(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let c=[...o];if(T(r[i],Error)){cn(a,s);const o=e(t,r[i]),u=c.length;un(o,i,u,s),c=sn(e,t,n,r[i],i,[o,...c],o,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(T(r,Error)){cn(a,s);const u=e(t,r),l=c.length;un(u,`errors[${o}]`,l,s),c=sn(e,t,n,r,i,[u,...c],u,l)}})),c}function cn(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function un(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}}ze(rn,on);const ln="LinkedErrors",dn=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:ln,setupOnce(){},preprocessEvent(e,r,i){const o=i.getOptions();an(Gt,o.stackParser,o.maxValueLength,n,t,e,r)}}},hn=(ze(ln,dn),["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"]),pn="TryCatch",fn=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:pn,setupOnce(){t.setTimeout&&x(Pt,"setTimeout",mn),t.setInterval&&x(Pt,"setInterval",mn),t.requestAnimationFrame&&x(Pt,"requestAnimationFrame",gn),t.XMLHttpRequest&&"XMLHttpRequest"in Pt&&x(XMLHttpRequest.prototype,"send",vn);const e=t.eventTarget;e&&(Array.isArray(e)?e:hn).forEach(yn)}}};function mn(e){return function(...t){const n=t[0];return t[0]=Dt(n,{mechanism:{data:{function:he(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function gn(e){return function(t){return e.apply(this,[Dt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:he(e)},handled:!1,type:"instrument"}})])}}function vn(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&x(n,e,(function(t){const n={mechanism:{data:{function:e,handler:he(t)},handled:!1,type:"instrument"}},r=U(t);return r&&(n.mechanism.data.handler=he(r)),Dt(t,n)}))})),e.apply(this,t)}}function yn(e){const t=Pt,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(x(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Dt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:he(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Dt(r,{mechanism:{data:{function:"addEventListener",handler:he(r),target:e},handled:!1,type:"instrument"}}),i])}})),x(n,"removeEventListener",(function(e){return function(t,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,i,r)}})))}ze(pn,fn);const En=[Ke(),et(),fn(),Lt(),Qt(),dn(),xt(),on()];const _n="?";function bn(e,t,n,r){const i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const Cn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sn=/\((\S*)(?::(\d+))(?::(\d+))\)/,In=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,wn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,On=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Tn=function(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],i=e.split("\n");for(let e=n;e1024)continue;const o=ue.test(n)?n.replace(ue,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),le.test(t[t.length-1].function||"")&&(t.pop(),le.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}([30,e=>{const t=Cn.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Sn.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Pn(t[1]||_n,t[2]);return bn(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=In.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=wn.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||_n;return[n,e]=Pn(n,e),bn(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=On.exec(e);return t?bn(t[2],t[1]||_n,+t[3],t[4]?+t[4]:void 0):void 0}]),Pn=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:_n,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class An extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const Nn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Dn(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Rn(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ln(e,t=[]){return[e,t]}function kn(e,t){const[n,r]=e;return[n,[...r,t]]}function xn(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function Mn(e,t){return(t||new TextEncoder).encode(e)}function jn(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(e){"string"==typeof i?i="string"==typeof e?i+e:[Mn(i,t),e]:i.push("string"==typeof e?Mn(e,t):e)}for(const e of r){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(pe(n))}o(e)}}return"string"==typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(i)}function Un(e,t){const n="string"==typeof e.data?Mn(e.data,t):e.data;return[F({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Bn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function qn(e){return Bn[e]}function Hn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Fn(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new ee(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Z(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};function i(i){const o=[];if(xn(i,((t,n)=>{const i=qn(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){const r=Vn(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)})),0===o.length)return Z();const a=Ln(i[0],o),s=t=>{xn(a,((n,r)=>{const i=Vn(n,r);e.recordDroppedEvent(t,qn(r),i)}))};return n.add((()=>t({body:jn(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&J&&m.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))"metric_bucket"===e&&o&&!o.split(";").includes("custom")||(i[e]=r+s);else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof An)return J&&m.error("Skipped sending event because buffer is full."),s("queue_overflow"),Z();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function Vn(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let Gn;function zn(e,t=function(){if(Gn)return Gn;if(vt(Pt.fetch))return Gn=Pt.fetch.bind(Pt);const e=Pt.document;let t=Pt.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){Tt&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Gn=t.bind(Pt)}()){let n=0,r=0;return Fn(e,(function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Gn=void 0,n-=o,r--,Q(e)}}))}function Yn(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}const $n="Not capturing exception because it's already been captured.";class Wn{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=Nn.exec(e);if(!t)return void f((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,i="",o,a="",s]=t.slice(1);let c="",u=s;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return Rn({host:o,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}(e):Rn(e);if(t&&function(e){if(!s)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(m.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(m.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):J&&m.warn("No DSN provided, client will not send events."),this._dsn){const t=Yn(this._dsn,e);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(K(e))return void(J&&m.log($n));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id;const o=C(e)?e:String(e),a=S(e)?this.eventFromMessage(o,t,n):this.eventFromException(e,n);return this._process(a.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&K(t.originalException))return void(J&&m.log($n));let r=t&&t.event_id;const i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,i||n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?J&&m.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),ce(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):Z(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return J&&m.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];Ge(this,e,this._integrations),t||Ve(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const i=Hn(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){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,n&&n.sdk);const a=function(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Dn(r)},...i&&{trace:F({...i})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,Ln(a,[[{type:o},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=kn(n,Un(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const i=Hn(n);return Ln({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Dn(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const r="number"==typeof n?n:1,i=`${e}:${t}`;J&&m.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}captureAggregateMetrics(e){J&&m.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=Dn(t));const o=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return Ln(i,[o])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&Ge(e,t,n)})),n}(this,e),Ve(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const i=t.exception&&t.exception.values;if(i){r=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&(ce(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ee((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=function(){return Be().getIsolationScope()}()){const i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),function(e,t,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||G(),timestamp:t.timestamp||ie()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:se),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=R(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=R(a.value,o));const s=e.request;s&&s.url&&(s.url=R(s.url,o))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),void 0===t.type&&function(e,t){const n=u._sentryDebugIds;if(!n)return;let r;const i=ye.get(t);i?r=i:(r=new Map,ye.set(t,r));const o=Object.keys(n).reduce(((e,i)=>{let o;const a=r.get(i);a?o=a:(o=t(i),r.set(i,o));for(let t=o.length-1;t>=0;t--){const r=o[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(e){}}(c,e.stackParser);const d=function(e,t){if(!t)return e;const n=e?e.clone():new De;return n.update(t),n}(r,n.captureContext);n.mechanism&&W(c,n.mechanism);const h=i&&i.getEventProcessors?i.getEventProcessors():[],p=(Ne||(Ne=new De),Ne).getScopeData();o&&Pe(p,o.getScopeData()),d&&Pe(p,d.getScopeData());const f=[...n.attachments||[],...p.attachments];return f.length&&(n.attachments=f),Te(c,p),re([...h,...te(),...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:pe(e.data,t,n)}})))},...e.user&&{user:pe(e.user,t,n)},...e.contexts&&{contexts:pe(e.contexts,t,n)},...e.extra&&{extra:pe(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=pe(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>{const r=ve(e).data;return r&&(e.data=pe(r,t,n)),e}))),r}(e,a,s):e)))}(i,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:i,parent_span_id:o},...e.contexts};const s=a||we(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(J){const t=e;"log"===t.logLevel?m.log(t.message):m.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:i}=r,o=Jn(e),a=Kn(e),s=e.type||"error",c=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),Q(new An(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===s?"replay":s,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,l).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new An("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(Kn(t)&&r)return r(t,n);if(Jn(t)&&i){if(t.spans){const e=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(t,n)}return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(O(e))return e.then((e=>{if(!I(e)&&null!==e)throw new An(n);return e}),(e=>{throw new An(`${t} rejected with ${e}`)}));if(!I(e)&&null!==e)throw new An(n);return e}(i,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,e),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new An(`${c} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){const e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=r.transaction_info;if(o&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof An)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new An(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{J&&m.error("Error while sending event:",e)}));J&&m.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Kn(e){return void 0===e.type}function Jn(e){return"transaction"===e.type}class Xn extends Wn{constructor(e){!function(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:Le}))),version:Le}),e._metadata=i}(e,"browser",["browser"],Pt.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&Pt.document&&Pt.document.addEventListener("visibilitychange",(()=>{"hidden"===Pt.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const i=Kt(e,t,n&&n.syntheticException||void 0,r);return W(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Z(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){const o=Jt(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Z(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Tt&&m.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Dn(r)}},o=function(e){return[{type:"user_report"},e]}(e);return Ln(i,[o])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(Tt&&m.log("No outcomes to send"));if(!this._dsn)return void(Tt&&m.log("No dsn provided, will not send outcomes"));Tt&&m.log("Sending outcomes:",e);const t=(n=e,Ln((r=this._options.tunnel&&Dn(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:ie(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}class Zn{constructor(e){this.debug=e.debug??!1;const t={debug:this.debug,dist:`${e.release.split("@")[1]}-${e.environment}`,dsn:e.dsn,environment:e.environment,integrations:[...En,Qt({onerror:e.useGlobalHandlers??!1,onunhandledrejection:e.useGlobalHandlers??!1})],release:e.release,stackParser:Tn,transport:e.transport??zn};e.beforeSend&&(t.beforeSend=e.beforeSend),this.client=new Xn(t),!0===e.useGlobalHandlers?(function(e){const t=Be().getStackTop();t.client=e,t.scope.setClient(e)}(this.client),this.scope=Se(),this.scope.clear()):this.scope=new De,e.initialScope&&this.scope.update(e.initialScope),this.scope.setClient(this.client),this.client.init()}setCustomTags(e){Object.entries(e).forEach((([e,t])=>{this.scope.setTag(e,t)}))}setUser(e){this.scope.setUser({id:e})}captureException(e,t){this.debug&&console.error("[Sentry exception]",e,t),this.scope.captureException(e,t)}addBreadcrumb(e){this.debug&&console.log("[Sentry Breadcrumb]",e),this.scope.addBreadcrumb(e)}}async function Qn(e,t,n=new Error("Promise timeout exceeded")){let r=-1;const i=new Promise(((e,i)=>{r=window.setTimeout((()=>{i(n)}),t)})),o=await Promise.race([i,e()]);return window.clearTimeout(r),o}const er=(e,t)=>Math.min(200*Math.pow(2,e-1)+Math.floor(1e3*Math.random()),t);class tr extends Error{constructor(e,t,n){super(`Request timeout exceeded (attempts=${e}; duration=${t}ms; url=${n})`),this.name="HttpRequestTimeoutError",Object.setPrototypeOf(this,tr.prototype)}}class nr extends Error{constructor(e,t,n){super(`Invalid JSON received (status=${t}; url=${e})`),this.originalErrorMessage=n,this.name="HttpRequestInvalidJsonError",Object.setPrototypeOf(this,nr.prototype)}}class rr extends Error{constructor(e,t,n){super(`Network error during request (attempts=${e}; duration=${t}ms; url=${n})`),this.name="HttpRequestNetworkError",Object.setPrototypeOf(this,rr.prototype)}}function ir(e,t){return{body:e,status:t.status,statusText:t.statusText}}function or(e){const t=new Headers([["Accept","application/json"],["Content-Type","application/json; charset=utf-8"]]);for(const n in e){const r=e[n];void 0!==r&&t.set(n,r)}return t}async function ar(e,t,n=1,r=Date.now()){const i=Date.now()-r,{body:o,headers:a={},credentials:s="include",mode:c="cors",timeoutMs:u=1e4,maxAttempts:l=3,maxBackoffMs:d=32e3}=t;let h=null;void 0!==window.AbortController&&null!==window.AbortController&&(h=new window.AbortController);const p={...t,body:null!=o?JSON.stringify(o):null,credentials:s,headers:or(a),mode:c,signal:h?h.signal:null};try{const t=await Qn(window.fetch.bind(null,e,p),u,new tr(n,i,e));return await async function(e,t){let n={};const r=e.status;if(!(r<500))return ir(n,e);{let i;try{return 204!==r&&(n=await e.json()),ir(n,e)}catch(n){if(n instanceof Error){const r=n.toString();try{i=await e.text(),i=`${i} ${r}`}catch{i=r}throw new nr(t,e.status,i)}throw new nr(t,e.status,JSON.stringify(n))}}}(t,e)}catch(o){if(o instanceof tr)h?.abort();else{if(o instanceof nr)throw o;if(n===l)throw new rr(n,i,e)}if(n===l)throw o;const a=er(n,d);return new Promise((i=>{setTimeout((()=>{i(ar(e,t,n+1,r))}),a)}))}}const sr=function(e,t){return ar(e,{...t,method:"POST"})};var cr=null!=="production"?"production":"development",ur="local",lr={get ANALYTICS_CLIENT_VERSION(){},get API_PROTOCOL(){return"https://"},get API_PUBLIC_HOST(){switch(cr){case"production":return"squareup.com";case"sandbox":return"squareupsandbox.com";default:return"squareupstaging.com"}},get API_URL(){return"".concat(this.API_PROTOCOL).concat(this.PCI_CONNECT_API_HOST)},get ASSET_BASE_URL(){return function(e){switch(e){case"production":return"https://web.squarecdn.com";case"sandbox":return"https://sandbox.web.squarecdn.com";case"development":return"https://localhost:1779";default:return"https://staging.web.squarecdn.com"}}(cr)},get ASSET_URL(){return this.VERSION===ur?this.ASSET_BASE_URL:"".concat(this.ASSET_BASE_URL,"/").concat(this.VERSION)},get ASYNC_TRANSACTION_NONCE_ENDPOINT(){return"".concat(this.API_URL,"/v2/async-transaction-nonce")},get BANK_IFRAME(){return"".concat(this.ASSET_URL,"/bank/enclave.html")},get BANK_NONCE_ENDPOINT(){return"".concat(this.API_URL,"/v2/bank-nonce")},get BITCOIN_STYLES(){return"".concat(this.ASSET_URL,"/bitcoin.css")},get CARD_NONCE_ENDPOINT(){return"".concat(this.API_URL,"/v2/card-nonce")},get CONNECT_API_URL(){return"https://connect.".concat(this.API_PUBLIC_HOST)},get CREATE_OAUTH_PLAID_LINK_SESSION_ENDPOINT(){return"".concat(this.API_URL,"/digital-wallets/plaid/oauth-link-session")},get ENABLE_ERROR_LOGGING(){return"development"!==cr},GET_ASYNC_NONCE_STATUS_ENDPOINT(e){return"".concat(this.API_URL,"/v2/async-transaction-nonce/").concat(e,"/status")},get GET_PRODUCT_INFORMATION_ENDPOINT(){return"".concat(this.API_URL,"/v2/tokenization/product-information")},get GIFT_CARD_IFRAME(){return"".concat(this.ASSET_URL,"/gift-card-element-iframe.html")},get GOOGLE_PAY_GENERATE_TOKEN_ENDPOINT(){return"".concat(this.API_URL,"/digital-wallets/google-pay/token")},get HYDRATION_ENDPOINT(){return"".concat(this.API_URL,"/payments/hydrate")},get IFRAME_SRC(){return"".concat(this.ASSET_URL,"/main-iframe.html")},get INITIALIZE_THREE_DS_METHOD_ENDPOINT(){return"".concat(this.API_URL,"/v2/analytics/three-ds-method")},get INSTANT_WALLET_NONCE_ENDPOINT(){return"".concat(this.API_URL,"/v2/instant-wallet-nonce")},get METRICS_URL(){return"".concat(this.API_URL,"/payments/mtx")},get METRICS_V2_URL(){return"".concat(this.API_URL,"/payments/mtx/v2")},get PCI_CONNECT_API_HOST(){return"pci-connect.".concat(this.API_PUBLIC_HOST)},get QR_CODE_GENERATOR_SCRIPT(){return"".concat(this.ASSET_URL,"/qr-code-generator.js")},get SENTRY_DSN(){switch(cr){case"test":case"development":return"https://acacaeaccacacacabcaacdacdacadaca@sentry.io/000001";default:return"https://565ee38bb5ff45dabc25ab6d7b8bebe3@o160250.ingest.sentry.io/3478832"}},get SINGLE_CARD_IFRAME(){return"".concat(this.ASSET_URL,"/single-card-element-iframe.html")},get SINGLE_CARD_WRAPPER_STYLES(){return"".concat(this.ASSET_URL,"/card-wrapper.css")},THREE_DS_AUTHENTICATE_ENDPOINT(e){return"".concat(this.VERIFICATION_ENDPOINT,"/").concat(e,"/three-ds-authentication")},get VERIFICATION_ENDPOINT(){return"".concat(this.API_URL,"/v2/analytics/verifications")},VERIFICATION_UPDATE_ENDPOINT(e){return"".concat(this.VERIFICATION_ENDPOINT,"/").concat(e)},get VERSION(){return null!=="1.83.6"?"1.83.6":ur},env:cr,staticAsset(e){return"".concat(this.ASSET_URL,"/static-assets/").concat(e)}};class dr extends Error{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unknown Error",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e;t.length>0&&(n=function(e,t){return"".concat(e,"\n ").concat(t.map((e=>{switch(!0){case"message"in e:return e.message;case"detail"in e:return e.detail;default:return"[Unspecified Error]"}})).join("\n "))}(e,t)),super(n),this.errors=t,this.name="SqError",Object.setPrototypeOf(this,dr.prototype)}fromSerializedError(e){this.name=e.name,this.message=e.message,e.errors&&Object.assign(this,{errors:e.errors})}}n(4237),n(9170);var hr,pr,fr,mr,gr,vr,yr,Er,_r,br,Cr,Sr,Ir,wr,Or,Tr=Object.freeze({SHIPPING_CONTACT_CHANGED:"shippingcontactchanged",SHIPPING_OPTION_CHANGED:"shippingoptionchanged"}),Pr=Object.freeze({AFTERPAY_SHIPPING_ADDRESS_CHANGED:"afterpay_shippingaddresschanged",AFTERPAY_SHIPPING_OPTION_CHANGED:"afterpay_shippingoptionchanged"}),Ar=Object.freeze({ACH:"ACH",AFTERPAY_CLEARPAY:"AfterpayClearpay",APPLE_PAY:"Apple Pay",CARD:"Card",CASH_APP_PAY:"Cash App Pay",GIFT_CARD:"Gift Card",GOOGLE_PAY:"Google Pay"}),Nr="Cancel",Dr="Error",Rr="Invalid",Lr="OK";class kr extends dr{constructor(){super("Tokenization has failed. `accountHolderName` is a required option when calling ach.tokenize()"),this.name="PlaidMissingNameError",Object.setPrototypeOf(this,kr.prototype)}}class xr extends dr{constructor(){super("You cannot call `tokenize` when using an `onTokenize` callback"),this.name="AfterpayOnTokenizeListenerError",Object.setPrototypeOf(this,xr.prototype)}}class Mr extends dr{constructor(e,t){super("This instance of ".concat(e," is missing the ").concat(t," listener.")),this.name="PaymentMethodMissingListener",Object.setPrototypeOf(this,Mr.prototype)}}class jr extends dr{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super("The payment request used for Afterpay/Clearpay caused a failure",e),this.errors=e,this.name="AfterpayRequestError",Object.setPrototypeOf(this,jr.prototype)}}class Ur extends dr{constructor(){super("The amount is outside of the merchant's Afterpay payment limits."),this.name="AfterpayAmountOutsideLimitsError",Object.setPrototypeOf(this,Ur.prototype)}}class Br extends dr{constructor(){super("The currency provided is not supported for use with Afterpay/Clearpay"),this.name="AfterpayUnsupportedCurrencyError",Object.setPrototypeOf(this,Br.prototype)}}class qr extends dr{constructor(){super("Afterpay/Clearpay is not enabled for this merchant."),this.name="AfterpayMerchantError",Object.setPrototypeOf(this,qr.prototype)}}class Hr extends dr{constructor(e){super(e),this.name="AfterpayInvalidPaymentRequestError",Object.setPrototypeOf(this,Hr.prototype)}}class Fr extends dr{constructor(e){super("An issue occurred while verifying the buyer",[e]),this.name="VerifyBuyerError",Object.setPrototypeOf(this,Fr.prototype)}toJSON(){return{errors:this.errors.map((e=>{var t={};return["name","message","type","code","token"].forEach((function(n){n in e&&(t[n]=e[n])})),t})),name:this.name}}}function Vr(e){return"type"in e&&"message"in e}class Gr extends dr{constructor(e){var t=e instanceof HTMLElement?e.nodeName:e;super("The element ".concat(t," was not found")),this.name="ElementNotFoundError",Object.setPrototypeOf(this,Gr.prototype)}}class zr extends dr{constructor(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{var[t,n]=e;return'expected property: "'.concat(t,'" of type "').concat(n,'"')})).concat(e);super("Please ensure you call payments.paymentRequest (https://developer.squareup.com/reference/sdks/web/payments#Payments.paymentRequest) with the appropriate options.\n".concat(t.join("\n"))),this.name="InvalidPaymentRequestError",Object.setPrototypeOf(this,zr.prototype)}}class Yr extends dr{constructor(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{var[t,n]=e;return'expected property: "'.concat(t,'" of type "').concat(n,'"')})).join("\n");super("\n".concat(e)),this.name="InvalidPaymentRequestUpdateError",Object.setPrototypeOf(this,Yr.prototype)}}class $r extends dr{constructor(e,t){super("The callback provided to the event listener ".concat(e," threw an error with message: ").concat(t)),this.name="InvalidEventListenerCallbackError",Object.setPrototypeOf(this,$r.prototype)}}class Wr extends dr{constructor(e){super(e),this.name="InvalidOptionError",Object.setPrototypeOf(this,Wr.prototype)}}!function(e){e.FOCUS_CLASS_ADDED="focusClassAdded",e.FOCUS_CLASS_REMOVED="focusClassRemoved",e.ERROR_CLASS_ADDED="errorClassAdded",e.ERROR_CLASS_REMOVED="errorClassRemoved",e.CARD_BRAND_CHANGED="cardBrandChanged",e.POSTAL_CODE_CHANGED="postalCodeChanged",e.ESCAPE="escape",e.SUBMIT="submit"}(hr||(hr={})),function(e){e.CARD_NUMBER="cardNumber",e.CVV="cvv",e.EXPIRATION_DATE="expirationDate",e.POSTAL_CODE="postalCode"}(pr||(pr={})),function(e){e.CARD_INPUT="input",e.CARD_INPUT_FOCUS="input.is-focus",e.CARD_INPUT_PLACEHOLDER="input::placeholder",e.CARD_INPUT_FOCUS_PLACEHOLDER="input.is-focus::placeholder",e.CARD_INPUT_ERROR="input.is-error",e.CARD_INPUT_ERROR_PLACEHOLDER="input.is-error::placeholder",e.CARD_COMPONENT=".input-container",e.CARD_COMPONENT_FOCUS=".input-container.is-focus",e.CARD_COMPONENT_ERROR=".input-container.is-error",e.CARD_INPUT_HELPER_TEXT=".message-text",e.CARD_INPUT_HELPER_ICON=".message-icon",e.CARD_INPUT_ERROR_TEXT=".message-text.is-error",e.CARD_INPUT_ERROR_ICON=".message-icon.is-error"}(fr||(fr={})),function(e){e.GIFT_CARD_NUMBER="giftCardNumber"}(mr||(mr={})),function(e){e.FOCUS_CLASS_ADDED="focusClassAdded",e.FOCUS_CLASS_REMOVED="focusClassRemoved",e.ERROR_CLASS_ADDED="errorClassAdded",e.ERROR_CLASS_REMOVED="errorClassRemoved",e.CARD_BRAND_CHANGED="cardBrandChanged",e.ESCAPE="escape",e.SUBMIT="submit"}(gr||(gr={})),function(e){e.UNKNOWN="Unknown"}(vr||(vr={})),function(e){e.GIFT="Gift"}(yr||(yr={}));class Kr extends dr{constructor(e){super("".concat(e," is not a valid field name. Valid field names are ").concat([...Object.values(pr),...Object.values(mr)].join(", "))),this.name="InvalidFieldNameError",Object.setPrototypeOf(this,Kr.prototype)}}class Jr extends dr{constructor(e){super("Configuration property '".concat(e,"' is invalid")),this.name="InvalidConfigurationPropertyError",Object.setPrototypeOf(this,Jr.prototype)}}class Xr extends dr{constructor(e,t,n){super("Configuration property '".concat(e,"' has an invalid value '").concat(t,"'.").concat(void 0!==n?" ".concat(n,"."):"")),this.name="InvalidConfigurationValueError",Object.setPrototypeOf(this,Xr.prototype)}}class Zr extends dr{constructor(e){var t=e.map((e=>{var[t,n]=e;return'expected property: "'.concat(t,'" of type "').concat(n,'"')})).join("\n");super("\n".concat(t)),this.name="InvalidCashAppPayV1OptionsFieldTypes",Object.setPrototypeOf(this,Zr.prototype)}}class Qr extends dr{constructor(e){var t=e.map((e=>{var[t,n]=e;return'accepted property: "'.concat(t,'" values are "').concat(n,'"')})).join("\n");super("\n".concat(t)),this.name="InvalidCashAppPayV1OptionsFieldValues",Object.setPrototypeOf(this,Qr.prototype)}}class ei extends dr{constructor(e){super(e),this.name="CashAppPayInvalidPaymentRequestError",Object.setPrototypeOf(this,ei.prototype)}}class ti extends dr{constructor(){super("A redirect url is always required for requests. This must also be a secure link."),this.name="CashAppPayMissingRedirectUrlError",Object.setPrototypeOf(this,ti.prototype)}}class ni extends dr{constructor(){super("Non function passed as shouldTokenize checker"),this.name="CashAppPayInvalidShouldTokenizeError",Object.setPrototypeOf(this,ni.prototype)}}class ri extends dr{constructor(e,t){super("amount '".concat(e,"' in ").concat(t," is not expressed in a valid format")),this.name="InvalidCurrencyFormatError",Object.setPrototypeOf(this,ri.prototype)}}class ii extends dr{constructor(){super("Web Payments SDK does not support this browser"),this.name="BrowserNotSupportedError",Object.setPrototypeOf(this,ii.prototype)}}class oi extends dr{constructor(){super("Web Payments SDK can only be embedded on sites that use HTTPS and have a secure context"),this.name="WebSdkEmbedError",Object.setPrototypeOf(this,oi.prototype)}}class ai extends dr{constructor(e,t){var n=null!=t?t:null==e?void 0:e.field;super("Method unsupported: ".concat(null==e?void 0:e.message).concat(void 0!==n?" (field=".concat(n,")"):"")),this.name="PaymentMethodUnsupportedError",Object.setPrototypeOf(this,ai.prototype)}}class si extends dr{constructor(e){super("This instance of ".concat(e," has already been attached to the page.")),this.name="PaymentMethodAlreadyAttachedError",Object.setPrototypeOf(this,si.prototype)}}class ci extends dr{constructor(e){super("".concat(e," has not been attached to the page. It must be attached before you can call this method.")),this.name="PaymentMethodNotAttachedError",Object.setPrototypeOf(this,ci.prototype)}}class ui extends dr{constructor(e){super("This instance of ".concat(e," has already been destroyed.")),this.name="PaymentMethodAlreadyDestroyedError",Object.setPrototypeOf(this,ui.prototype)}}class li extends dr{constructor(e,t){var n=e instanceof HTMLElement?e.nodeName:e;super("The value ".concat(n," is not a valid element type or selector. Only valid elements or selectors referring to ").concat([...t].join(", ")," elements are allowed.")),this.name="InvalidElementTypeError",Object.setPrototypeOf(this,li.prototype)}}class di extends dr{constructor(e,t){super("An element with one of the following conflicting IDs was found on the page: ".concat(t,". You must change those elements' ID before you can use ").concat(e)),this.name="InvalidElementPresentError",Object.setPrototypeOf(this,di.prototype)}}class hi extends dr{constructor(e){super("Invalid style property '".concat(e,"'.")),this.name="InvalidInputStylePropertyError",Object.setPrototypeOf(this,hi.prototype)}}class pi extends dr{constructor(e,t){super("Invalid style value '".concat(t,"' for property '").concat(e,"'.")),this.name="InvalidInputStyleValueError",Object.setPrototypeOf(this,pi.prototype)}}class fi extends dr{constructor(e){super("Invalid style selector '".concat(e,"'.")),this.name="InvalidInputStyleSelectorError",Object.setPrototypeOf(this,fi.prototype)}}class mi extends dr{constructor(e){super("One or more style selectors and/or CSS properties are invalid",e),this.errors=e,this.name="InvalidStylesError",Object.setPrototypeOf(this,mi.prototype)}}class gi extends dr{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];super("Tokenization has failed",e),this.errors=e,this.name="TokenizationError",Object.setPrototypeOf(this,gi.prototype)}}class vi extends dr{constructor(e){var t="An unexpected error occurred";e&&(t+=" while ".concat(e)),super("".concat(t,".")),this.name="UnexpectedError",Object.setPrototypeOf(this,vi.prototype)}}!function(e){e.ON_TOKENIZATION="ontokenization",e.CLOSE_OAUTH="CLOSE_OAUTH",e.ERROR="ERROR",e.EXIT="EXIT",e.FAIL_OAUTH="FAIL_OAUTH",e.HANDOFF="HANDOFF",e.MATCHED_SELECT_INSTITUTION="MATCHED_SELECT_INSTITUTION",e.MATCHED_SELECT_VERIFY_METHOD="MATCHED_SELECT_VERIFY_METHOD",e.OPEN="OPEN",e.OPEN_MY_PLAID="OPEN_MY_PLAID",e.OPEN_OAUTH="OPEN_OAUTH",e.SEARCH_INSTITUTION="SEARCH_INSTITUTION",e.SELECT_BRAND="SELECT_BRAND",e.SELECT_INSTITUTION="SELECT_INSTITUTION",e.SUBMIT_CREDENTIALS="SUBMIT_CREDENTIALS",e.SUBMIT_MFA="SUBMIT_MFA",e.TRANSITION_VIEW="TRANSITION_VIEW"}(Er||(Er={})),function(e){e.BLACK="black",e.MINT="mint",e.GREEN="green"}(_r||(_r={})),function(e){e.CheckoutWithAfterpay="checkout_with_afterpay",e.BuyNowWithAfterpay="buy_now_with_afterpay",e.PlaceOrderWithAfterpay="place_order_with_afterpay"}(br||(br={})),function(e){e.REVIEW_MY_ORDER="review_my_order",e.BUY_NOW="buy_now"}(Cr||(Cr={})),function(e){e.BLACK_ON_MINT="black-on-mint",e.BLACK_ON_WHITE="black-on-white",e.MINT_ON_BLACK="mint-on-black",e.WHITE_ON_BLACK="white-on-black"}(Sr||(Sr={})),function(e){e.XS="xs",e.SM="sm",e.MD="md",e.LG="lg"}(Ir||(Ir={})),function(e){e.CIRCLED_INFO_ICON="circled-info-icon",e.CIRCLED_QUESTION_ICON="circled-question-icon",e.LEARN_MORE_TEXT="learn-more-text",e.MORE_INFO_TEXT="more-info-text",e.NONE="none"}(wr||(wr={})),function(e){e.MINT="mint",e.WHITE="white"}(Or||(Or={}));var yi,Ei,_i,bi,Ci,Si,Ii,wi,Oi,Ti,Pi,Ai,Ni=["CLASSIC","TIMELINE","COLLAPSIBLE","MODAL"],Di=["borderColor","borderRadius","borderWidth"],Ri=["borderColor","borderWidth"],Li=["color"],ki=["color"];!function(e){e.UNKNOWN="OTHER_BRAND",e.AMERICAN_EXPRESS="AMERICAN_EXPRESS",e.DINERS_CLUB="DISCOVER_DINERS",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MASTERCARD="MASTERCARD",e.UNION_PAY="CHINA_UNIONPAY",e.VISA="VISA"}(yi||(yi={})),function(e){e.UNKNOWN_CARD_TYPE="UNKNOWN_CARD_TYPE",e.CREDIT="CREDIT",e.DEBIT="DEBIT"}(Ei||(Ei={})),function(e){e.UNKNOWN_PAYMENT_TYPE="UNKNOWN_PREPAID_TYPE",e.NOT_PREPAID="NOT_PREPAID",e.PREPAID="PREPAID"}(_i||(_i={})),function(e){e.ROUND="round",e.SEMIROUND="semiround"}(bi||(bi={})),function(e){e.MEDIUM="medium",e.SMALL="small"}(Ci||(Ci={})),function(e){e.DARK="dark",e.LIGHT="light"}(Si||(Si={})),function(e){e.FULL="full",e.STATIC="static"}(Ii||(Ii={})),function(e){e.ONTOKENIZATION="ontokenization",e.CUSTOMER_INTERACTION="customerInteraction",e.CUSTOMER_DISMISSED="customerDismissed"}(wi||(wi={})),function(e){e.DEFAULT="default",e.BLACK="black",e.WHITE="white"}(Oi||(Oi={})),function(e){e.STATIC="static",e.FILL="fill"}(Ti||(Ti={})),function(e){e.LONG="long",e.SHORT="short"}(Pi||(Pi={})),function(e){e.PAYMENT_METHOD_DESTROYED="PAYMENT_METHOD_DESTROYED",e.SHIPPING_ADDRESS_UNSERVICEABLE="SHIPPING_ADDRESS_UNSERVICEABLE",e.SHIPPING_ADDRESS_INVALID="SHIPPING_ADDRESS_INVALID"}(Ai||(Ai={}));class xi{constructor(e,t){this.type=e,this.detail=t,this.type=e,this.detail=t}}class Mi extends dr{constructor(){super("The Payment 'applicationId' option is not in the correct format."),this.name="InvalidApplicationIdError",Object.setPrototypeOf(this,Mi.prototype)}}class ji extends dr{constructor(e,t){super("Web Payments SDK was initialized with an application ID created in ".concat(e," however you are currently using ").concat(t,".")),this.name="ApplicationIdEnvironmentMismatchError ",Object.setPrototypeOf(this,ji.prototype)}}class Ui extends dr{constructor(){super("The Payment 'locationId' option is not in the correct format."),this.name="InvalidLocationIdError",Object.setPrototypeOf(this,Ui.prototype)}}var Bi={message:"An internal error has occurred. Unable to complete the request.",type:"INTERNAL_SERVER_ERROR"},qi={message:"The requested resource was not found.",type:"NOT_FOUND"},Hi={message:"The endpoint is currently unavailable.",type:"SERVICE_UNAVAILABLE"},Fi={message:"Too many requests in progress.",type:"TOO_MANY_REQUESTS"},Vi={message:"Request not authorized.",type:"UNAUTHORIZED"},Gi={message:"An unknown error has occurred",type:"UNKNOWN"};class zi extends dr{constructor(e){super(e),this.name="InternalError",Object.setPrototypeOf(this,zi.prototype)}}class Yi extends dr{constructor(e){super(e),this.name="AlreadyCapturedError",Object.setPrototypeOf(this,Yi.prototype)}}class $i extends dr{constructor(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=function(e){switch(e){case 401:return Vi;case 404:return qi;case 429:return Fi;case 500:return Bi;case 503:return Hi;default:return Gi}}(t);super("".concat(i.message," (message=").concat(n,"; url=").concat(e,")"),r),this.name="InternalHttpError",Object.setPrototypeOf(this,$i.prototype)}}class Wi extends dr{constructor(e,t){super("".concat(e," (payment_method=").concat(t,")")),this.name="InternalPaymentMethodError",Object.setPrototypeOf(this,Wi.prototype)}}class Ki extends dr{constructor(e){super(e),this.name="InvalidIframeError",Object.setPrototypeOf(this,Ki.prototype)}}class Ji extends dr{constructor(e){super("Received error event from iframe"),this.event=e,this.name="IframeErrorEventError",Object.setPrototypeOf(this,Ji.prototype)}}class Xi extends dr{constructor(e,t,n){super("Request timeout exceeded (attempts=".concat(e,"; duration=").concat(t,"ms; url=").concat(n,")")),this.name="InternalTimeoutError",Object.setPrototypeOf(this,Xi.prototype)}}n(7156),n(6460),n(8370),n(1152),n(1257),n(8304),n(7680);var Zi=new RegExp(/^[\w.-]+$/i),Qi=new RegExp(/sq0at/i);function eo(e){return lr.env===e}function to(){return eo("production")}var no=/^_/g,ro=/(?!^)([A-Z])/g,io=/[\s_]+(?=[A-Za-z])/g;function oo(e){return"JPY"===e.toUpperCase()?0:2}function ao(e,t){var[n,r,i=""]=e;if(0===t)return Number(r);var o="0".repeat(t-i.length);return Number(r+i+o)}function so(e,t){var n=oo(t);return(e/Math.pow(10,n)).toFixed(n)}var co={buildUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.entries(t).map((e=>{var[t,n]=e;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n))})).join("&");return encodeURI(e)+(n.length>0?"?".concat(n):"")},convertLocaleToUnderscore:function(e){return e.replace(/-/,"_")},cssProperty:function(e){return e.replace(no,"-").replace(ro," $1").replace(io,"-").toLowerCase()},decimalPlaces:oo,delay:function(e){return new Promise((t=>{setTimeout(t,e)}))},enumValues:function(e){return Object.values(e)},formatCSSKeyValuePair:function(e,t){return"".concat(e,": ").concat(t,";")},isInstanceOf:function(e,t){return t.some((function(t){return e instanceof t}))},isNonBlankString:function(e){return void 0!==e&&""!==e},isProduction:to,isStaging:function(){return eo("staging")},isValidUrl:function(e){try{return new URL(e),!0}catch(e){return!1}},moneyAmountToInternationalizedCurrency:function(e,t,n){var r=oo(t),i=e/Math.pow(10,r);return new Intl.NumberFormat(n,{currency:t,style:"currency"}).format(i)},moneyAmountToPaymentRequestAmount:so,paymentRequestAmountToMoneyAmount:function(e,t){var n=oo(t),r="^(-?[0-9]+)";n>0&&(r="".concat(r,"(?:\\.([0-9]{1,").concat(n,"})[0-9]*)?")),r="".concat(r,"$");var i=new RegExp(r).exec(e);if(!i)throw new ri(e,t);return ao(i,n)},requestId:function(){return Date.now()+Number.parseFloat(Math.random().toFixed(8))},sanitizePaymentRequestAmount:function(e,t){var n=oo(t),r="^(-?[0-9]+)(?:\\.([0-9]{0,".concat(n,"})[0-9]*)?$"),i=new RegExp(r).exec(e);return i?so(ao(i,n),t):e}},uo={message:"An unknown error has occurred",type:"UNKNOWN"},lo={message:"An error occurred while verifying the buyer",type:"VERIFICATION_ERROR"},ho={UNKNOWN:uo};new Set(["EXPIRED_PLAID_SESSION","INVALID_SELECTED_PLAID_BANK_ACCOUNT_ID","DATABASE_INSIGHTS_VERIFICATION_FAILURE"]);class po extends dr{constructor(e){super("Internal Validation Error",e),this.errors=e,this.name="InternalValidationError",Object.setPrototypeOf(this,po.prototype)}}function fo(e,t){return{field:e,message:"".concat(e," is required and must be a(n) ").concat(t,"."),type:"VALIDATION_ERROR"}}function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function go(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:1e4;if("string"==typeof e)return e.length>t?"".concat(e.slice(0,t),"...[truncated]"):e;if(void 0===e)return"undefined";try{var n=JSON.stringify(e,((e,t)=>"bigint"==typeof t?t.toString():t));return n&&n.length>t?"".concat(n.slice(0,t),"...[truncated]"):n}catch(e){return"[Error]"}}(e))}function Co(e){return bo(e).message}var So,Io=function(e){var t,n=new(null!==(t=_o[e.name])&&void 0!==t?t:dr);return n.fromSerializedError(e),n},wo=function(e){return{_isSerializedError:!0,errors:e.errors,message:e.message,name:e.name}};class Oo{constructor(e){var t={beforeSend:(e,t)=>{var n;return lr.ENABLE_ERROR_LOGGING?e:(console.error(e.exception),null!==(n=e.exception)&&void 0!==n&&n.values&&e.exception.values.forEach((e=>{console.error(e)})),null)},dsn:lr.SENTRY_DSN,environment:lr.env,release:"web-payments-sdk@".concat(lr.VERSION),transport:e.transport,useGlobalHandlers:e.useGlobalHandlers};this.browserErrorLogger=new Zn(t),this.browserErrorLogger.setCustomTags({applicationId:e.applicationId,applicationUrl:e.applicationUrl,source:e.source,version:lr.VERSION})}setCustomTags(e){this.browserErrorLogger.setCustomTags(e)}setUser(e){this.browserErrorLogger.setUser(e)}addBreadcrumb(e){this.browserErrorLogger.addBreadcrumb(e)}captureException(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};co.isInstanceOf(e,[rr,tr])||e instanceof Error&&"AnalyticsError"===e.name||(e instanceof nr&&this.browserErrorLogger.addBreadcrumb({category:"invalid json error message",message:e.originalErrorMessage}),this.browserErrorLogger.captureException(bo(e),{captureContext:{tags:t}}))}}var To=["en","ja","fr","es"],Po=["en-US","en-IE","en-CA","en-GB","en-AU","ja-JP","fr-FR","fr-CA","es-ES","es-US"];function Ao(e){return Po.includes(e)}var No={"en-AU":{paymentMethods:{cards:{errors:{cardNumberError:"Enter a valid card number.",cvvError:"Enter a valid security code.",expirationDateError:"Enter a valid expiration date.",multipleErrors:"Fix the highlighted errors.",postalCodeErrors:{CA:"Enter a valid postal code.",GB:"Enter a valid postcode.",US:"Enter a valid ZIP code."}},formTitle:"Secure credit card form",helperText:{cardNumber:"Enter your card number",cvv:"Enter the security code",expirationDate:"Enter the expiration date",postalCodes:{CA:"Enter the postal code",GB:"Enter the postcode",US:"Enter the ZIP code"}},inputFieldTitles:{cardNumber:"Credit card number",cvv:"CVV",expirationDate:"Expiration date",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP Code"}},placeholderText:{cardNumber:"Card number",cvv:"CVV",expirationDate:"MM/YY",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP"}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Square gift card",unionPay:"UnionPay",unknown:"Unknown card",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"Enter a valid gift card number."},formTitle:"Secure gift card form",helperText:{giftCardNumber:"Enter your gift card number"},inputFieldTitles:{giftCardNumber:"Gift card number"},placeholderText:{giftCardNumber:"Gift card"}},afterpay:{checkoutWidget:{today:"Today",weeks:"weeks",title:"Your 4 interest-free payments"}},wallets:{callbackErrors:{contactError:"There was an error processing your selected shipping contact. Please try again.",optionsError:"There was an error processing your selected shipping option. Please try again."}},clickToPay:{modal:{headerTitle:"Credit or Debit card",cardNetworksAlt:"Mastercard, Visa",cancelAriaLabel:"Cancel",continueButton:"Continue"}},bitcoin:{buttonText:"Continue with Bitcoin",modalTitle:"Scan to Pay",lightningPayButtonText:"Open Lightning wallet",lightningPayButtonAriaLabel:"Open Lightning wallet",qrCodeAltText:"Bitcoin Lightning payment QR code",closeButtonAriaLabel:"Close"}}},"en-CA":{paymentMethods:{cards:{errors:{cardNumberError:"Enter a valid card number.",cvvError:"Enter a valid security code.",expirationDateError:"Enter a valid expiration date.",multipleErrors:"Fix the highlighted errors.",postalCodeErrors:{CA:"Enter a valid postal code.",GB:"Enter a valid postcode.",US:"Enter a valid zip code."}},formTitle:"Secure Credit Card Form",helperText:{cardNumber:"Enter your card number",cvv:"Enter the security code",expirationDate:"Enter the expiration date",postalCodes:{CA:"Enter the postal code",GB:"Enter the postcode",US:"Enter the ZIP code"}},inputFieldTitles:{cardNumber:"Credit card number",cvv:"CVV",expirationDate:"Expiration date",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP Code"}},placeholderText:{cardNumber:"Card number",cvv:"CVV",expirationDate:"MM/YY",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP"}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Square gift card",unionPay:"UnionPay",unknown:"Unknown card",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"Enter a valid gift card number."},formTitle:"Secure Gift Card Form",helperText:{giftCardNumber:"Enter your gift card number"},inputFieldTitles:{giftCardNumber:"Gift card number"},placeholderText:{giftCardNumber:"Gift card"}},afterpay:{checkoutWidget:{today:"Today",weeks:"weeks",title:"Your 4 interest-free payments"}},wallets:{callbackErrors:{contactError:"There was an error processing your selected shipping contact. Please try again.",optionsError:"There was an error processing your selected shipping option. Please try again."}},clickToPay:{modal:{headerTitle:"Credit or Debit Card",cardNetworksAlt:"Mastercard, Visa",cancelAriaLabel:"Cancel",continueButton:"Continue"}},bitcoin:{buttonText:"Continue with bitcoin",modalTitle:"Scan to pay",lightningPayButtonText:"Open Lightning wallet",lightningPayButtonAriaLabel:"Open Lightning wallet",qrCodeAltText:"Bitcoin Lightning Payment QR Code",closeButtonAriaLabel:"Close"}}},"en-GB":{paymentMethods:{cards:{errors:{cardNumberError:"Enter a valid card number.",cvvError:"Enter a valid security code.",expirationDateError:"Enter a valid expiration date.",multipleErrors:"Fix the highlighted errors.",postalCodeErrors:{CA:"Enter a valid postal code.",GB:"Enter a valid postcode.",US:"Enter a valid ZIP code."}},formTitle:"Secure card form",helperText:{cardNumber:"Enter your card number",cvv:"Enter the security code",expirationDate:"Enter the expiration date",postalCodes:{CA:"Enter the postal code",GB:"Enter the postcode",US:"Enter the zip code"}},inputFieldTitles:{cardNumber:"Credit card number",cvv:"CVV",expirationDate:"Expiration date",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP Code"}},placeholderText:{cardNumber:"Card number",cvv:"CVV",expirationDate:"MM/YY",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP"}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Square Gift Card",unionPay:"UnionPay",unknown:"Unknown card",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"Enter a valid gift card number."},formTitle:"Secure gift card form",helperText:{giftCardNumber:"Enter your gift card number"},inputFieldTitles:{giftCardNumber:"Gift card number"},placeholderText:{giftCardNumber:"Gift card"}},afterpay:{checkoutWidget:{today:"Today",weeks:"weeks",title:"Your 4 interest-free payments"}},wallets:{callbackErrors:{contactError:"There was an error processing your selected delivery contact. Please try again.",optionsError:"There was an error processing your selected delivery option. Please try again."}},clickToPay:{modal:{headerTitle:"Credit or debit card",cardNetworksAlt:"Mastercard, Visa",cancelAriaLabel:"Cancel",continueButton:"Continue"}},bitcoin:{buttonText:"Continue with bitcoin",modalTitle:"Scan to pay",lightningPayButtonText:"Open Lightning wallet",lightningPayButtonAriaLabel:"Open Lightning wallet",qrCodeAltText:"Bitcoin Lightning payment QR code",closeButtonAriaLabel:"Close"}}},"en-IE":{paymentMethods:{cards:{errors:{cardNumberError:"Enter a valid card number.",cvvError:"Enter a valid security code.",expirationDateError:"Enter a valid expiry date.",multipleErrors:"Fix the highlighted errors.",postalCodeErrors:{CA:"Enter a valid postal code.",GB:"Enter a valid postcode.",US:"Enter a valid zip code."}},formTitle:"Secure card form",helperText:{cardNumber:"Enter your card number",cvv:"Enter the security code",expirationDate:"Enter the expiry date",postalCodes:{CA:"Enter the postal code",GB:"Enter the postcode",US:"Enter the ZIP code"}},inputFieldTitles:{cardNumber:"Credit card number",cvv:"CVV",expirationDate:"Expiration date",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP Code"}},placeholderText:{cardNumber:"Card number",cvv:"CVV",expirationDate:"MM/YY",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP"}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Square Gift Card",unionPay:"UnionPay",unknown:"Unknown card",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"Enter a valid gift card number."},formTitle:"Secure gift card form",helperText:{giftCardNumber:"Enter your gift card number"},inputFieldTitles:{giftCardNumber:"Gift card number"},placeholderText:{giftCardNumber:"Gift card"}},afterpay:{checkoutWidget:{today:"Today",weeks:"weeks",title:"Your 4 interest-free payments"}},wallets:{callbackErrors:{contactError:"There was an error processing your selected delivery contact. Please try again.",optionsError:"There was an error processing your selected delivery option. Please try again."}},clickToPay:{modal:{headerTitle:"Credit or Debit Card",cardNetworksAlt:"Mastercard, Visa",cancelAriaLabel:"Cancel",continueButton:"Continue"}},bitcoin:{buttonText:"Continue with bitcoin",modalTitle:"Scan to Pay",lightningPayButtonText:"Open Lightning wallet",lightningPayButtonAriaLabel:"Open Lightning wallet",qrCodeAltText:"Bitcoin Lightning payment QR code",closeButtonAriaLabel:"Close"}}},"en-US":{paymentMethods:{cards:{errors:{cardNumberError:"Enter a valid card number.",cvvError:"Enter a valid security code.",expirationDateError:"Enter a valid expiration date.",multipleErrors:"Fix the highlighted errors.",postalCodeErrors:{CA:"Enter a valid postal code.",GB:"Enter a valid postcode.",US:"Enter a valid zip code."}},formTitle:"Secure Credit Card Form",helperText:{cardNumber:"Enter your card number",cvv:"Enter the security code",expirationDate:"Enter the expiration date",postalCodes:{CA:"Enter the postal code",GB:"Enter the postcode",US:"Enter the zip code"}},cardIcon:{brandNames:{visa:"Visa",masterCard:"Mastercard",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",JCB:"JCB",unionPay:"UnionPay",squareGiftCardV2:"Square gift card",unknown:"Unknown card"}},inputFieldTitles:{cardNumber:"Credit card number",cvv:"CVV",expirationDate:"Expiration date",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP Code"}},placeholderText:{cardNumber:"Card number",cvv:"CVV",expirationDate:"MM/YY",postalCodes:{CA:"Postal Code",GB:"Postcode",US:"ZIP"}}},giftCards:{errors:{giftCardNumberError:"Enter a valid gift card number."},formTitle:"Secure Gift Card Form",helperText:{giftCardNumber:"Enter your gift card number"},inputFieldTitles:{giftCardNumber:"Gift card number"},placeholderText:{giftCardNumber:"Gift card"}},afterpay:{checkoutWidget:{today:"Today",weeks:"weeks",title:"Your 4 interest-free payments"}},wallets:{callbackErrors:{contactError:"There was an error processing your selected shipping contact. Please try again.",optionsError:"There was an error processing your selected shipping option. Please try again."}},clickToPay:{modal:{headerTitle:"Credit or Debit Card",cardNetworksAlt:"Mastercard, Visa",cancelAriaLabel:"Cancel",continueButton:"Continue"}},bitcoin:{buttonText:"Continue with bitcoin",modalTitle:"Scan to pay",lightningPayButtonText:"Open Lightning wallet",lightningPayButtonAriaLabel:"Open Lightning wallet",qrCodeAltText:"Bitcoin Lightning Payment QR Code",closeButtonAriaLabel:"Close"}}},"es-ES":{paymentMethods:{afterpay:{checkoutWidget:{title:"Tus 4 pagos sin intereses",today:"Hoy",weeks:"semanas"}},cards:{errors:{cardNumberError:"Introduce un número de tarjeta válido.",cvvError:"Introduce un código de seguridad válido.",expirationDateError:"Introduce una fecha de caducidad válida.",multipleErrors:"Corrige los errores resaltados.",postalCodeErrors:{CA:"Introduce un código postal válido.",GB:"Introduce un código postal válido.",US:"Introduce un código postal válido."}},formTitle:"Formulario seguro para tarjetas de crédito",helperText:{cardNumber:"Introduce tu número de tarjeta",cvv:"Introduce el código de seguridad",expirationDate:"Introduce la fecha de caducidad",postalCodes:{CA:"Introduce el código postal",GB:"Introduce el código postal",US:"Introduce el código postal"}},inputFieldTitles:{cardNumber:"Número de la tarjeta de crédito",cvv:"Código CVV",expirationDate:"Fecha de vencimiento",postalCodes:{CA:"Código postal",GB:"Código postal",US:"Código postal"}},placeholderText:{cardNumber:"Número de tarjeta",cvv:"Código CVV",expirationDate:"MM/AA",postalCodes:{CA:"Código postal",GB:"Código postal",US:"C.P."}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Tarjeta regalo de Square",unionPay:"UnionPay",unknown:"Tarjeta desconocida",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"Introduce un número de tarjeta de regalo válido."},formTitle:"Formulario seguro para tarjetas regalo",helperText:{giftCardNumber:"Introduce el número de tu tarjeta de regalo"},inputFieldTitles:{giftCardNumber:"Número de la tarjeta regalo"},placeholderText:{giftCardNumber:"Tarjeta de regalo"}},wallets:{callbackErrors:{contactError:"Se ha producido un error al procesar el contacto de envío que has seleccionado. Inténtalo de nuevo.",optionsError:"Se ha producido un error al procesar la opción de envío que has seleccionado. Inténtalo de nuevo."}},clickToPay:{modal:{headerTitle:"Tarjeta de crédito o débito",cardNetworksAlt:"Mastercard o Visa",cancelAriaLabel:"Cancelar",continueButton:"Continuar"}},bitcoin:{buttonText:"Continuar con bitcoines",modalTitle:"Escanear para pagar",lightningPayButtonText:"Abrir la billetera Lightning",lightningPayButtonAriaLabel:"Abrir la billetera Lightning",qrCodeAltText:"Código QR de pago con bitcóin y Lightning",closeButtonAriaLabel:"Cerrar"}}},"es-US":{paymentMethods:{afterpay:{checkoutWidget:{title:"Tus pagos de 4 cuotas sin interés",today:"Hoy",weeks:"semanas"}},cards:{errors:{cardNumberError:"Introduce un número de tarjeta válido.",cvvError:"Ingresa un código de seguridad válido.",expirationDateError:"Ingresar una fecha de vencimiento válida.",multipleErrors:"Arregla los errores resaltados.",postalCodeErrors:{CA:"Introduce un código postal válido.",GB:"Introduce un código postal válido.",US:"Introduce un código zip válido."}},formTitle:"Formulario seguro para tarjetas de crédito",helperText:{cardNumber:"Ingresa el número de la tarjeta",cvv:"Ingresa el código de seguridad",expirationDate:"Ingresa la fecha de vencimiento",postalCodes:{CA:"Ingresa el código postal",GB:"Ingresa el código postal",US:"Ingresar el código ZIP"}},inputFieldTitles:{cardNumber:"Número de la tarjeta de crédito",cvv:"CVV",expirationDate:"Fecha de vencimiento",postalCodes:{CA:"Código postal",GB:"Código postal",US:"Código ZIP"}},placeholderText:{cardNumber:"Número de tarjeta",cvv:"CVV",expirationDate:"MM/AA",postalCodes:{CA:"Código postal",GB:"Código postal",US:"ZIP"}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Descubre",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Tarjeta de regalo Square",unionPay:"UnionPay",unknown:"Tarjeta desconocida",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"Ingresa un número válido de tarjeta de regalo."},formTitle:"Formulario seguro para tarjetas de regalo",helperText:{giftCardNumber:"Ingresar el número de la tarjeta de regalo"},inputFieldTitles:{giftCardNumber:"Número de la tarjeta de regalo"},placeholderText:{giftCardNumber:"Tarjeta de regalo"}},wallets:{callbackErrors:{contactError:"Ocurrió un error al procesar el contacto de envío seleccionado. Vuelve a intentarlo.",optionsError:"Ocurrió un error al procesar la opción de envío seleccionada. Vuelve a intentarlo."}},clickToPay:{modal:{headerTitle:"Tarjeta de crédito o débito",cardNetworksAlt:"Mastercard, Visa",cancelAriaLabel:"Cancelar",continueButton:"Continuar"}},bitcoin:{buttonText:"Continuar con bitcoins",modalTitle:"Escanear para pagar",lightningPayButtonText:"Abrir cartera Lightning",lightningPayButtonAriaLabel:"Abrir cartera Lightning",qrCodeAltText:"Código QR del pago Lightning con bitcoin",closeButtonAriaLabel:"Cerrar"}}},"fr-CA":{paymentMethods:{cards:{errors:{cardNumberError:"Saisissez un numéro de carte valide.",cvvError:"Veuillez saisir un code de sécurité valide.",expirationDateError:"Veuillez saisir une date d’expiration valide.",multipleErrors:"Corrigez les erreurs mises en évidence.",postalCodeErrors:{CA:"Saisissez un code postal valide.",GB:"Saisissez un code postal valide.",US:"Saisissez un code postal valide."}},formTitle:"Formulaire de carte de crédit sécurisé",helperText:{cardNumber:"Saisir votre numéro de carte",cvv:"Saisir le code de sécurité",expirationDate:"Saisir la date d’expiration",postalCodes:{CA:"Saisir le code postal",GB:"Saisir le code postal",US:"Saisir le code postal"}},inputFieldTitles:{cardNumber:"Numéro de carte bancaire",cvv:"CVV",expirationDate:"Date d’expiration",postalCodes:{CA:"Code postal",GB:"Code postal",US:"Code postal"}},placeholderText:{cardNumber:"Numéro de la carte",cvv:"CVV",expirationDate:"MM/AA",postalCodes:{CA:"Code postal",GB:"Code postal",US:"Code postal"}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Carte cadeau Square",unionPay:"UnionPay",unknown:"Carte inconnue",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"Saisissez un numéro de carte cadeau valide."},formTitle:"Formulaire de carte cadeau sécurisé",helperText:{giftCardNumber:"Saisir le numéro de votre carte cadeau"},inputFieldTitles:{giftCardNumber:"Numéro de carte cadeau"},placeholderText:{giftCardNumber:"Carte cadeau"}},afterpay:{checkoutWidget:{title:"Vos quatre paiements sans intérêts",today:"Aujourd’hui",weeks:"semaines"}},wallets:{callbackErrors:{contactError:"Une erreur s‘est produite lors du traitement du contact de livraison sélectionné. Veuillez réessayer.",optionsError:"Une erreur s‘est produite lors du traitement de l‘option d‘expédition sélectionnée. Veuillez réessayer."}},clickToPay:{modal:{headerTitle:"Carte de crédit ou débit",cardNetworksAlt:"Mastercard, Visa",cancelAriaLabel:"Annuler",continueButton:"Continuer"}},bitcoin:{buttonText:"Continuer avec bitcoin",modalTitle:"Lisez le code pour payer",lightningPayButtonText:"Ouvrir le portefeuille Lightning",lightningPayButtonAriaLabel:"Ouvrir le portefeuille Lightning",qrCodeAltText:"Code QR de paiement avec Bitcoin Lightning",closeButtonAriaLabel:"Fermer"}}},"fr-FR":{paymentMethods:{afterpay:{checkoutWidget:{title:"Vos quatre paiements sans intérêts",today:"Aujourd’hui",weeks:"semaines"}},cards:{errors:{cardNumberError:"Saisissez un numéro de carte valide",cvvError:"Veuillez saisir un code de sécurité valide.",expirationDateError:"Saisir une date d’expiration valide",multipleErrors:"Corrigez les erreurs mises en évidence.",postalCodeErrors:{CA:"Saisissez un code postal valide",GB:"Saisissez un code postal valide",US:"Saisissez un code ZIP valide"}},formTitle:"Formulaire de carte bancaire sécurisé",helperText:{cardNumber:"Saisir votre numéro de carte",cvv:"Saisir le code de sécurité",expirationDate:"Saisir la date d’expiration",postalCodes:{CA:"Saisir un code postal",GB:"Saisir un code postal",US:"Saisir un code ZIP"}},inputFieldTitles:{cardNumber:"Numéro de carte bancaire",cvv:"CVV",expirationDate:"Date d’expiration",postalCodes:{CA:"Code postal",GB:"Code postal",US:"Code postal"}},placeholderText:{cardNumber:"Numéro de carte",expirationDate:"MM/AA",cvv:"CVV",postalCodes:{CA:"Code postal",GB:"Code postal",US:"Code ZIP"}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Carte cadeau Square",unionPay:"UnionPay",unknown:"Carte inconnue",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"Saisir un numéro de carte cadeau valide"},formTitle:"Formulaire de carte cadeau sécurisé",helperText:{giftCardNumber:"Saisir le numéro de votre carte cadeau"},inputFieldTitles:{giftCardNumber:"Numéro de carte cadeau"},placeholderText:{giftCardNumber:"Carte cadeau"}},wallets:{callbackErrors:{contactError:"Une erreur s‘est produite lors du traitement du contact de livraison sélectionné. Veuillez réessayer.",optionsError:"Une erreur s‘est produite lors du traitement de l‘option d‘expédition sélectionnée. Veuillez réessayer."}},clickToPay:{modal:{headerTitle:"Carte bancaire",cardNetworksAlt:"Mastercard, Visa",cancelAriaLabel:"Annuler",continueButton:"Continuer"}},bitcoin:{buttonText:"Continuer avec les bitcoins",modalTitle:"Scanner pour payer",lightningPayButtonText:"Ouvrir le portefeuille Lightning",lightningPayButtonAriaLabel:"Ouvrir le portefeuille Lightning",qrCodeAltText:"Code QR de paiement avec Bitcoin Lightning",closeButtonAriaLabel:"Fermer"}}},"ja-JP":{paymentMethods:{afterpay:{checkoutWidget:{title:"無利息の4回払い",today:"今日",weeks:"週間"}},cards:{errors:{cardNumberError:"正しいカード番号を入力してください。",cvvError:"有効なセキュリティコードを入力してください。",expirationDateError:"正しい有効期限を入力してください。",multipleErrors:"強調表示されたエラーを修正してください。",postalCodeErrors:{CA:"正しい郵便番号を入力してください。",GB:"有効な郵便番号を入力してください。",US:"正しいZIPコードを入力してください。"}},formTitle:"セキュアクレジットカードフォーム",helperText:{cardNumber:"カード番号を入力してください",cvv:"セキュリティコードを入力してください",expirationDate:"有効期限を入力してください",postalCodes:{CA:"郵便番号を入力してください",GB:"郵便番号を入力してください",US:"ZIPコードを入力してください"}},inputFieldTitles:{cardNumber:"クレジットカード番号",cvv:"CVV",expirationDate:"有効期限",postalCodes:{CA:"郵便番号",GB:"郵便番号",US:"ZIPコード"}},placeholderText:{cardNumber:"カード番号",cvv:"CVV",expirationDate:"MM/YY",postalCodes:{CA:"郵便番号",GB:"郵便番号",US:"ZIP"}},cardIcon:{brandNames:{JCB:"JCB",americanExpress:"American Express",discover:"Discover",discoverDiners:"Diners Club",masterCard:"Mastercard",squareGiftCardV2:"Square ギフトカード",unionPay:"UnionPay",unknown:"不明なカード",visa:"Visa"}}},giftCards:{errors:{giftCardNumberError:"有効なギフトカード番号を入力してください。"},formTitle:"セキュアギフトカードフォーム",helperText:{giftCardNumber:"ギフトカード番号を入力してください"},inputFieldTitles:{giftCardNumber:"ギフトカード番号"},placeholderText:{giftCardNumber:"ギフトカード"}},wallets:{callbackErrors:{contactError:"選択された配送住所を処理する際にエラーが発生しました。もう一度やり直してください。",optionsError:"選択された配送方法を処理する際にエラーが発生しました。もう一度やり直してください。"}},clickToPay:{modal:{headerTitle:"クレジットカードまたはデビットカード",cardNetworksAlt:"Mastercard、Visa",cancelAriaLabel:"キャンセル",continueButton:"続行"}},bitcoin:{buttonText:"ビットコインで続行",modalTitle:"セルフ会計",lightningPayButtonText:"ライトニング対応ウォレットを開く",lightningPayButtonAriaLabel:"ライトニング対応ウォレットを開く",qrCodeAltText:"ライトニング対応ビットコイン決済QRコード",closeButtonAriaLabel:"閉じる"}}}},Do={en:"en-US",es:"es-ES",fr:"fr-FR",ja:"ja-JP"};class Ro{constructor(e){this.currentLocale="en-US",this.setLocale(e)}setLocale(e){var[t,n]=e.split("-"),r=this.currentLocale;return Ao(e)?(this.currentLocale=e,{newLocale:this.currentLocale,previousLocale:r}):function(e){return To.includes(e)}(t)?(this.currentLocale=Do[t],{message:"Locale ".concat(e," is not supported. Language ").concat(t," is supported, but region ").concat(n," is not. Falling back to ").concat(this.currentLocale,"."),newLocale:this.currentLocale,previousLocale:r}):{message:"Locale ".concat(e," is not supported. Language ").concat(t," and region ").concat(n," are both unsupported."),newLocale:this.currentLocale,previousLocale:r}}getCurrentLocale(){return this.currentLocale}getLocaleString(){return No[this.currentLocale]}}function Lo(e){return"[object Object]"===Object.prototype.toString.call(e)}function ko(e){return"object"==typeof e&&null!==e}var xo="INVALID_VALUE",Mo="SANITIZED",jo=new Set(["countryCode","currencyCode","requestBillingContact","requestShippingContact","lineItems","total","shippingOptions","shippingContact"]),Uo=new Set(["error","shippingErrors","lineItems","total","shippingOptions","taxLineItems","shippingLineItems","discounts"]),Bo=new Set([...Uo.values(),"eventName"]),qo=new Set(["accountHolderName","amount","bankAccountId","currency","total"]),Ho=new Set([...qo.values(),"intent","cadence","startDate"]),Fo=new Set(["amount","currencyCode","total","billingContact"]),Vo=new Set([...Fo.values(),"intent","customerInitiated","sellerKeyedIn"]),Go=new Set(["includeInputLabels","postalCode","style"]),zo=new Set(["includeInputLabels","style"]),Yo=new Set(["lineItems","total","shippingOptions","shippingContact"]),$o=new Set(["buttonColor","buttonSizeMode","buttonType"]),Wo=new Set(["shape","size","values","theme","width"]),Ko=da(Er),Jo=da(hr),Xo=da(gr),Zo=da(Tr),Qo=da(pr),ea=da(mr),ta=da(Oi),na=da(Ti),ra=da(Pi),ia=da(Ci),oa=da(bi),aa=da(Si),sa=da(Ii),ca=new Set(["shippingOption"]),ua=new Set([...ca.values(),"error"]),la=new Set(["checkoutWidgetLaunch","locale","selectorOrElement"]);function da(e){return new Set(Object.values(e))}function ha(e){return JSON.stringify({value:e})}function pa(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Lo(e)){var a={};return Object.entries(e).forEach((e=>{var[n,s]=e;if(t.has(n)){var c=s;r.has(n)?c=Mo:n in i&&(c=i[n].has(s)?s:xo),a[n]=c}else o&&(a[n]=Mo)})),JSON.stringify(a)}return"invalid non-struct type: ".concat("object"!=typeof(n=e)?typeof n:Array.isArray(n)?"array":null===n?"null":Object.prototype.toString.call(n))}var fa=function(e,t,n){switch(e){case"TOKENIZE_CONFIGURED":return function(e,t){switch(e){case"ACH":return function(e){return pa(e,Ho,qo)}(t);case"Card":return function(e){var{verificationDetails:t={},cofToken:n}=e,r=pa(t,Vo,Fo,void 0,!0),i={verificationDetails:JSON.parse(r)};return void 0!==n&&(i.cofToken=function(e){return"string"==typeof e&&e.startsWith("ccof:")?Mo:xo}(n)),JSON.stringify(i)}(t)}return xo}(t,n);case"CONFIGURED":case"CONFIG_UPDATED":return function(e,t){switch(e){case"Card":case"Gift Card":return function(e,t){return pa(t,"Card"===e?Go:zo)}(e,t);case"Google Pay":return function(e){return pa(e,$o,void 0,{buttonColor:ta,buttonSizeMode:na,buttonType:ra})}(t);case"Payment Request":return function(e){return pa(e,jo,Yo)}(t);case Ar.CASH_APP_PAY:return function(e){return pa(e,Wo,void 0,{shape:oa,size:ia,theme:aa,values:aa,width:sa})}(t)}return xo}(t,n);case"FOCUSED":return ha(function(e,t){if("string"!=typeof t)return xo;switch(e){case"Card":if(Qo.has(t))return t;break;case"Gift Card":if(ea.has(t))return t}return xo}(t,n));case"SET_LOCALE":return ha(function(e){return"string"!=typeof e?xo:Ao(e)?e:xo}(n));case"EVENT_LISTENER_ADDED":return ha(function(e,t){if("string"!=typeof t)return xo;switch(e){case"ACH":if(Ko.has(t))return t;break;case"Card":if(Jo.has(t))return t;break;case"Gift Card":if(Xo.has(t))return t;break;case"Payment Request":if(Zo.has(t))return t}return xo}(t,n));case"EVENT_LISTENER_ON_COMPLETE_RESPONSE":return function(e,t){return"Payment Request"===e?function(e){return pa(e,Bo,Uo,{eventName:Zo})}(t):xo}(t,n);case"SHIPPING_OPTION_UPDATE_RECEIVED":return pa(n,ua,ca,void 0,!0);case"AFTERPAY_CHECKOUT_WIDGET_CONFIGURED":return pa(n,la);default:return""}};function ma(e,t){return void 0!==e.document.body&&null!==e.document.createNodeIterator(e.document.body,NodeFilter.SHOW_ELEMENT,{acceptNode:t}).nextNode()}function ga(e,t){return Boolean(e.querySelector(t))}n(3249);var va=function(e){var t,n=void 0!==e.angular,r=ga(e.document,"[ng-version]")||void 0!==e.getAllAngularRootElements||void 0!==e.getAngularVersion,i=void 0!==e.bootstrap,o=void 0!==e.Ember,a=void 0!==e.jQuery,s=ga(e.document,'form[action*="paypal.com"]'),c=function(e){return ma(e,(function(e){return"__k"in e||"_component"in e||"__c"in e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}))}(e),u=function(e){var t=ga(e.document,"*[data-reactroot]");if(t)return t;return ma(e,(function(e){return"_reactRootContainer"in e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}))}(e),l=function(e){var t=void 0!==e.__NUXT__||void 0!==e.$nuxt,n=void 0!==e.__VUE__;if(n||t)return n||t;return ma(e,(function(e){return"__vue__"in e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}))}(e),d={angular:r,angularJS:n,bootstrap:i,ember:o,jquery:a,nextJS:void 0!==(null===(t=e.__NEXT_DATA__)||void 0===t?void 0:t.buildId),paypalBuyNow:s,preact:c,react:u,vue:l};return Object.fromEntries(Object.entries(d).filter((e=>{var[t,n]=e;return n})))},ya=new Set(["AFTERPAY_CHECKOUT_WIDGET_CONFIGURED","CLEAR","CONFIG_UPDATED","CONFIGURED","DESTROYED","DETACHED","EVENT_LISTENER_ADDED","EVENT_LISTENER_ON_COMPLETE_RESPONSE","FOCUSED","RECALCULATED_SIZE","SET_LOCALE","SET_ERROR","SHIPPING_OPTION_UPDATE_RECEIVED","TOKENIZE_CONFIGURED"]),Ea=new Set(["PAYMENTS_REUSE","PAYMENTS_ENV_METADATA","DEVELOPER_ERROR","DEVELOPER_ERROR_PENDING","REQUEST_AFTERPAY_INVALID"]),_a=new Set(["GET_PRODUCT_INFORMATION","LOAD","MAIN_IFRAME","NONCE"]),ba={ATTACH:!0,BUILD:!0,CONFIGURE:!0,EXTERNAL_SESSION:!0,INITIALIZATION:!1,PROOF_OF_WORK:!1,TOKENIZE:!1};function Ca(e){return e in ba}var Sa=/[$()*+.?[\\\]^{|}]/g,Ia=new RegExp(Sa.source),wa=function(e){return Ia.test(e)?e.replace(Sa,"\\$&"):e},Oa={CARD_NONCE_ENDPOINT:new RegExp(wa(lr.CARD_NONCE_ENDPOINT)),GET_PRODUCT_INFORMATION_ENDPOINT:new RegExp(wa(lr.GET_PRODUCT_INFORMATION_ENDPOINT)),LIBRARY_RESOURCE:new RegExp("".concat(wa(lr.ASSET_BASE_URL),"/([\\w\\d.-]*/)?square\\.js")),MAIN_IFRAME_RESOURCE:new RegExp("".concat(wa(lr.ASSET_URL),"/main-iframe"))};function Ta(e,t){if(!a.supportsPerformanceEntries)return null;var n=a.windowPerformance,r=function(e,t,n){var r=e.filter((e=>e.initiatorType===t&&n.test(e.name)));return r[r.length-1]}([...n.getEntriesByType("resource"),...n.getEntriesByType("navigation")],e,t);return r?Math.round(function(e){return e.duration>0?e.duration:Math.max(Math.trunc(e.responseEnd-e.startTime),0)}(r)):null}var Pa=function(e){switch(e){case"GET_PRODUCT_INFORMATION":return Ta("fetch",Oa.GET_PRODUCT_INFORMATION_ENDPOINT);case"MAIN_IFRAME":return Ta("navigation",Oa.MAIN_IFRAME_RESOURCE);case"LOAD":return Ta("script",Oa.LIBRARY_RESOURCE);case"NONCE":return Ta("fetch",Oa.CARD_NONCE_ENDPOINT);default:return null}};function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Na(e){for(var t=1;t{var e={event:"visible"===a.documentVisibilityState?"VISIBILITY:VISIBLE":"VISIBILITY:HIDDEN",eventSource:"WebSDK"},t=this.getMetricsLoggerBody(e,this.session.instanceId,this.session.sessionId,this.session.paymentMethodTrackingId);this.metricsBuffer.push(t)},this.flushAllMetrics=()=>{"hidden"===a.documentVisibilityState&&(this.buildAndSendBeacon(),clearInterval(this.currentInterval),this.currentInterval=void 0)},this.sdkVersion=lr.VERSION,this.jsFramework="",this.applicationData=t,this.metricsBuffer=[],this.errorLogger=e,this.disableBeacon=!1}setAvt(e){this.avt=e}setFeatureFlagValues(e){this.featureFlagValues=e}logEvent(e,t,n,r){try{var i=this.getMetricsLoggerBody(e,t,n,r);if(this.session=i.session,this.disableBeacon||!a.supportsSendBeacon||!a.supportsDocumentVisibilityState)return void sr(Ra,{body:i}).catch((e=>{this.errorLogger.captureException(e)}));this.metricsBuffer.push(i),"NONCE:OK"!==e.event&&"DESTROYED"!==e.event||this.buildAndSendBeacon(),void 0===this.currentInterval&&(document.addEventListener("visibilitychange",this.logVisibilityEvent),document.addEventListener("visibilitychange",this.flushAllMetrics),this.currentInterval=window.setInterval((()=>{this.buildAndSendBeacon()}),1e3))}catch(e){this.errorLogger.captureException(e)}}clearEventListener(){document.removeEventListener("visibilitychange",this.logVisibilityEvent),document.removeEventListener("visibilitychange",this.flushAllMetrics)}getJSFrameworkValue(){return 0===this.jsFramework.length&&(this.jsFramework=JSON.stringify(va(window))),this.jsFramework}eventDuration(e,t){var n,[r,i]=e.event.split(":");if(Ca(r)){var o;if(Ca(n=r)&&!ba[n]?o=r:void 0!==t&&(o="".concat(r,":").concat(t)),void 0===o)return null;if("START"===i){var a=Date.now();return this.manualTelemetryStarts.set(o,a),null}if("OK"===i||"ERROR"===i||"CANCEL"===i){var s=this.manualTelemetryStarts.get(o);return void 0===s?null:(this.manualTelemetryStarts.delete(o),Date.now()-s)}}return"START"!==i&&function(e){return _a.has(e)}(r)?Pa(r):null}buildAndSendBeacon(){if(0!==this.metricsBuffer.length){try{var e=new Blob([JSON.stringify({metrics:this.metricsBuffer})],{type:"text/plain;charset=UTF-8"});window.navigator.sendBeacon(La,e)}catch(e){(function(e){return e instanceof Error&&"TypeError"===e.name&&(e.message.includes("Not implemented")||e.message.includes("Illegal invocation"))})(e)||this.errorLogger.captureException(e),this.disableBeacon=!0,void 0!==this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=void 0),sr(La,{body:{metrics:this.metricsBuffer}}).catch((e=>{this.errorLogger.captureException(e)}))}this.metricsBuffer=[]}}metricsSession(e,t,n){var r=Na(Na({},this.applicationData),{},{instanceId:e,sessionId:t});return void 0!==n&&(r.paymentMethodTrackingId=n),r}getMetricsLoggerBody(e,t,n,r){var i=function(){if(a.isTopLevelWindow)return{origin:a.windowLocation.origin,pathname:a.windowLocation.pathname};var e=a.documentReferrer;return e&&0!==e.length?(null!=So||(So=document.createElement("a")),So.href=e,{origin:So.origin,pathname:""}):{origin:"",pathname:""}}(),o={innerHeight:a.windowInnerHeight,innerWidth:a.windowInnerWidth,isSecureContext:a.isSecureContext,language:a.windowNavigatorLanguages[0]},s=this.eventDuration(e,r),{event:c,eventSource:u}=e,{sdkVersion:l}=this,d=this.metricsSession(t,n,r),h={appLocation:i,avt:this.avt,browserData:o,event:c,eventSource:u,paymentMethodTrackingId:r,sdkVersion:l,session:d};return ka(e)&&void 0!==e.eventConfigurationValues&&(h.eventConfigurationValues=fa(e.event,u,e.eventConfigurationValues)),xa(e)?h.internalConfigurationValues=e.errorMessage:Ma(e)&&void 0!==this.featureFlagValues&&(h.internalConfigurationValues=JSON.stringify(this.featureFlagValues)),null!==s&&s>0&&(h.duration=s),Ma(e)&&void 0!==e.sloStatus&&(h.sloStatus=e.sloStatus),"INITIALIZATION:OK"===c&&(h.jsFramework=this.getJSFrameworkValue()),h}}n(5372);class Ua{constructor(e,t){this.errorLogger=e,this.messenger=t}}function Ba(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}var qa="LOCALE_CHANGED_EVENT";class Ha extends Ua{constructor(e,t,n,r,i,o,a,s,c){super(e,t),this.session=r,this.localeStrings=o,this.paymentMethodSupportDetail=i,this.metricsHandler=n,this.eventTarget=a,this.featureFlagValues=s,this.analyticsBackend=c}addLocaleChangedListener(e){this.eventTarget.addEventListener(qa,e)}removeLocaleChangedListener(e){this.eventTarget.removeEventListener(qa,e)}getSession(){return this.session.serialize()}getFeatureFlagValues(){return this.featureFlagValues}getLocaleString(){return this.localeStrings.getLocaleString()}setLocale(e){var t=this.localeStrings.setLocale(e);if(t.previousLocale===t.newLocale)return t;var n=this.localeStrings.getCurrentLocale();return this.session.setLocale(n),this.eventTarget.dispatchEvent(qa,n),this.messenger.sendOneWayMessage("UPDATE_SESSION",{session:this.session.serialize()}),t}updateSession(e){var t,n=this;return(t=function*(){n.session.setSessionId(e),n.errorLogger.setCustomTags({sessionId:e}),yield n.messenger.sendOneWayMessage("UPDATE_SESSION",{session:n.session.serialize()})},function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){Ba(o,r,i,a,s,"next",e)}function s(e){Ba(o,r,i,a,s,"throw",e)}a(void 0)}))})()}setPaymentMethodTrackingId(e){this.metricsHandler.setPaymentMethodTrackingId(e)}getPaymentMethodTrackingId(){return this.metricsHandler.getPaymentMethodTrackingId()}}var Fa={attach:[Gr,li,Xr,hi,fi,pi,mi,si,ui,ai,Zr,Qr,ni],attachMessaging:[Gr,li,ui],build:[Jr,Xr,di,Wr,zr,ai,Hr,jr,ei,ti,ri],configure:[Gr,Jr,Xr,hi,fi,pi,Wr,mi,ci,ui],tokenize:[Wr,ui,ci,ai,gi,xr]};function Va(e){return Fa[e]}var Ga={APPLE_PAY_BROWSER_NOT_SUPPORTED:{message:"Apple Pay is only available on Safari.",type:"BROWSER_NOT_SUPPORTED"},APPLE_PAY_CONSISTENT_DOMAIN_REQUIRED:{message:"Apple Pay should be hosted on the same domain as its top-level frame.",type:"CONSISTENT_DOMAIN_REQUIRED"},APPLE_PAY_DEVICE_NOT_SUPPORTED:{message:"Device does not support Apple Pay.\nSee: https://developer.squareup.com/docs/web-payments/apple-pay#prerequisites-and-assumptions",type:"DEVICE_NOT_SUPPORTED"},APPLE_PAY_NOT_REGISTERED:{message:"No active card available in the Apple Wallet or domain not registered.",type:"NOT_REGISTERED"},APPLE_PAY_REQUIRES_SECURE_CONTEXT:{message:"Apple Pay requires a fully secure HTTPS context.\nSee: https://developer.squareup.com/docs/web-payments/apple-pay#prerequisites-and-assumptions",type:"IFRAME_NOT_ALLOWED"},GOOGLE_PAY_BROWSER_NOT_SUPPORTED:{message:"Browser does not support Google Pay. \nSee: https://developer.squareup.com/docs/web-payments/google-pay#prerequisites-and-assumptions",type:"BROWSER_NOT_SUPPORTED"},GOOGLE_PAY_REQUIRES_HTTPS:{message:"Google Pay requires HTTPS. \nSee: https://developer.squareup.com/docs/web-payments/google-pay#prerequisites-and-assumptions",type:"BROWSER_NOT_SUPPORTED"},INVALID_CONFIG:{message:"Configuration is invalid.",type:"INVALID_CONFIG"},MISC_THIRD_PARTY_IFRAME_NOT_ALLOWED:{message:"Third-party iframes are not allowed to request payments unless explicitly allowed via Permissions-Policy Configuration.\n Please configure the relevant permissions policy (via the Permissions-Policy header or