(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253450,705568,e=>{"use strict";var t=e.i(824627),r=e.i(186442),n=e.i(307629),a=e.i(307180),o=e.i(243367),i=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function l(e,n,a,o){var l=e.locale,s=e.formats,u=e.onError,c=e.timeZone;void 0===o&&(o={});var m=o.format,f=(0,t.__assign)((0,t.__assign)({},c&&{timeZone:c}),m&&(0,r.getNamedFormat)(s,n,m,u)),d=(0,r.filterProps)(o,i,f);return"time"!==n||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=(0,t.__assign)((0,t.__assign)({},d),{hour:"numeric",minute:"numeric"})),a(l,d)}function s(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],s="string"==typeof a?new Date(a||0):a;try{return l(e,"date",t,void 0===i?{}:i).format(s)}catch(t){e.onError(new o.IntlFormatError("Error formatting date.",e.locale,t))}return String(s)}function u(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],s="string"==typeof a?new Date(a||0):a;try{return l(e,"time",t,void 0===i?{}:i).format(s)}catch(t){e.onError(new o.IntlFormatError("Error formatting time.",e.locale,t))}return String(s)}function c(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],s=r[2],u="string"==typeof a?new Date(a||0):a,c="string"==typeof i?new Date(i||0):i;try{return l(e,"dateTimeRange",t,void 0===s?{}:s).formatRange(u,c)}catch(t){e.onError(new o.IntlFormatError("Error formatting date time range.",e.locale,t))}return String(u)}function m(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],s="string"==typeof a?new Date(a||0):a;try{return l(e,"date",t,void 0===i?{}:i).formatToParts(s)}catch(t){e.onError(new o.IntlFormatError("Error formatting date.",e.locale,t))}return[]}function f(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],s="string"==typeof a?new Date(a||0):a;try{return l(e,"time",t,void 0===i?{}:i).formatToParts(s)}catch(t){e.onError(new o.IntlFormatError("Error formatting time.",e.locale,t))}return[]}var d=e.i(113556),g=["style","type","fallback","languageDisplay"];function _(e,t,n,a){var i=e.locale,l=e.onError;Intl.DisplayNames||l(new d.FormatError('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',d.ErrorCode.MISSING_INTL_API));var s=(0,r.filterProps)(a,g);try{return t(i,s).of(n)}catch(e){l(new o.IntlFormatError("Error formatting display name.",i,e))}}var h=["type","style"],p=Date.now();function v(e,t,r,n){void 0===n&&(n={});var a=b(e,t,r,n).reduce(function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[]);return 1===a.length?a[0]:0===a.length?"":a}function b(e,n,a,i){var l=e.locale,s=e.onError;void 0===i&&(i={}),Intl.ListFormat||s(new d.FormatError('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',d.ErrorCode.MISSING_INTL_API));var u=(0,r.filterProps)(i,h);try{var c={},m=a.map(function(e,t){if("object"==typeof e){var r="".concat(p,"_").concat(t,"_").concat(p);return c[r]=e,r}return String(e)});return n(l,u).formatToParts(m).map(function(e){return"literal"===e.type?e:(0,t.__assign)((0,t.__assign)({},e),{value:c[e.value]||e.value})})}catch(e){s(new o.IntlFormatError("Error formatting list.",l,e))}return a}e.i(890690);var y=e.i(48389),E=e.i(814726);function w(e,r){return Object.keys(e).reduce(function(n,a){return n[a]=(0,t.__assign)({timeZone:r},e[a]),n},{})}function I(e,r){return Object.keys((0,t.__assign)((0,t.__assign)({},e),r)).reduce(function(n,a){return n[a]=(0,t.__assign)((0,t.__assign)({},e[a]||{}),r[a]||{}),n},{})}function T(e,r){if(!r)return e;var n=E.IntlMessageFormat.formats;return(0,t.__assign)((0,t.__assign)((0,t.__assign)({},n),e),{date:I(w(n.date,r),w(e.date||{},r)),time:I(w(n.time,r),w(e.time||{},r))})}var C=function(e,n,a,i,l){var s=e.locale,u=e.formats,c=e.messages,m=e.defaultLocale,f=e.defaultFormats,d=e.fallbackOnEmptyString,g=e.onError,_=e.timeZone,h=e.defaultRichTextElements;void 0===a&&(a={id:""});var p=a.id,v=a.defaultMessage;(0,r.invariant)(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(p),E=c&&Object.prototype.hasOwnProperty.call(c,b)&&c[b];if(Array.isArray(E)&&1===E.length&&E[0].type===y.TYPE.literal)return E[0].value;if(!i&&E&&"string"==typeof E&&!h)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=(0,t.__assign)((0,t.__assign)({},h),i||{}),u=T(u,_),f=T(f,_),!E){if(!1===d&&""===E)return E;if((!v||s&&s.toLowerCase()!==m.toLowerCase())&&g(new o.MissingTranslationError(a,s)),v)try{var w=n.getMessageFormat(v,m,f,l);return w.format(i)}catch(e){return g(new o.MessageFormatError('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),s,a,e)),"string"==typeof v?v:b}return b}try{var w=n.getMessageFormat(E,s,u,(0,t.__assign)({formatters:n},l||{}));return w.format(i)}catch(e){g(new o.MessageFormatError('Error formatting message: "'.concat(b,'", using ').concat(v?"default message":"id"," as fallback."),s,a,e))}if(v)try{var w=n.getMessageFormat(v,m,f,l);return w.format(i)}catch(e){g(new o.MessageFormatError('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),s,a,e))}return"string"==typeof E?E:"string"==typeof v?v:b},F=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function x(e,t,n){var a=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var l=n.format,s=l&&(0,r.getNamedFormat)(o,"number",l,i)||{};return t(a,(0,r.filterProps)(n,F,s))}function N(e,t,r,n){void 0===n&&(n={});try{return x(e,t,n).format(r)}catch(t){e.onError(new o.IntlFormatError("Error formatting number.",e.locale,t))}return String(r)}function S(e,t,r,n){void 0===n&&(n={});try{return x(e,t,n).formatToParts(r)}catch(t){e.onError(new o.IntlFormatError("Error formatting number.",e.locale,t))}return[]}var k=["type"];function P(e,t,n,a){var i=e.locale,l=e.onError;void 0===a&&(a={}),Intl.PluralRules||l(new d.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',d.ErrorCode.MISSING_INTL_API));var s=(0,r.filterProps)(a,k);try{return t(i,s).select(n)}catch(e){l(new o.IntlFormatError("Error formatting plural.",i,e))}return"other"}var O=["numeric","style"];function D(e,t,n,a,i){void 0===i&&(i={}),a||(a="second"),Intl.RelativeTimeFormat||e.onError(new d.FormatError('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',d.ErrorCode.MISSING_INTL_API));try{var l,s,u,c,m,f;return(l=i,s=e.locale,u=e.formats,c=e.onError,void 0===l&&(l={}),f=!!(m=l.format)&&(0,r.getNamedFormat)(u,"relative",m,c)||{},t(s,(0,r.filterProps)(l,O,f))).format(n,a)}catch(t){e.onError(new o.IntlFormatError("Error formatting relative time.",e.locale,t))}return String(n)}var R=e.i(598013);function j(e){return e?Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=(0,R.isFormatXMLElementFn)(n)?(0,a.assignUniqueKeysToParts)(n):n,t},{}):e}var L=function(e,r,a,o){for(var i=[],l=4;l<arguments.length;l++)i[l-4]=arguments[l];var s=j(o),u=C.apply(void 0,(0,t.__spreadArray)([e,r,a,s],i,!1));return Array.isArray(u)?n.Children.toArray(u):u},A=function(e,n){var i,l,d,g,h,p,y,E=e.defaultRichTextElements,w=(0,t.__rest)(e,["defaultRichTextElements"]),I=j(E),T=(i=(0,t.__assign)((0,t.__assign)((0,t.__assign)({},a.DEFAULT_INTL_CONFIG),w),{defaultRichTextElements:I}),l=(0,r.createFormatters)(n),g=(d=(0,t.__assign)((0,t.__assign)({},r.DEFAULT_INTL_CONFIG),i)).locale,h=d.defaultLocale,p=d.onError,g?!Intl.NumberFormat.supportedLocalesOf(g).length&&p?p(new o.MissingDataError('Missing locale data for locale: "'.concat(g,'" in Intl.NumberFormat. Using default locale: "').concat(h,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(g).length&&p&&p(new o.MissingDataError('Missing locale data for locale: "'.concat(g,'" in Intl.DateTimeFormat. Using default locale: "').concat(h,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(p&&p(new o.InvalidConfigError('"locale" was not configured, using "'.concat(h,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),d.locale=d.defaultLocale||"en"),d.onWarn&&d.defaultRichTextElements&&"string"==typeof(y=d.messages||{})[Object.keys(y)[0]]&&d.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.github.io/docs/getting-started/message-distribution'),(0,t.__assign)((0,t.__assign)({},d),{formatters:l,formatNumber:N.bind(null,d,l.getNumberFormat),formatNumberToParts:S.bind(null,d,l.getNumberFormat),formatRelativeTime:D.bind(null,d,l.getRelativeTimeFormat),formatDate:s.bind(null,d,l.getDateTimeFormat),formatDateToParts:m.bind(null,d,l.getDateTimeFormat),formatTime:u.bind(null,d,l.getDateTimeFormat),formatDateTimeRange:c.bind(null,d,l.getDateTimeFormat),formatTimeToParts:f.bind(null,d,l.getDateTimeFormat),formatPlural:P.bind(null,d,l.getPluralRules),formatMessage:C.bind(null,d,l),$t:C.bind(null,d,l),formatList:v.bind(null,d,l.getListFormat),formatListToParts:b.bind(null,d,l.getListFormat),formatDisplayName:_.bind(null,d,l.getDisplayNames)})),F={locale:T.locale,timeZone:T.timeZone,fallbackOnEmptyString:T.fallbackOnEmptyString,formats:T.formats,defaultLocale:T.defaultLocale,defaultFormats:T.defaultFormats,messages:T.messages,onError:T.onError,defaultRichTextElements:I};return(0,t.__assign)((0,t.__assign)({},T),{formatMessage:L.bind(null,F,T.formatters),$t:L.bind(null,F,T.formatters)})};e.s(["createIntl",0,A],705568);var M=e.i(15885);function W(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var J=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,r.createIntlCache)(),t.state={cache:t.cache,intl:A(W(t.props),t.cache),prevConfig:W(t.props)},t}return(0,t.__extends)(o,e),o.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=W(e);return(0,a.shallowEqual)(r,o)?null:{intl:A(o,n),prevConfig:o}},o.prototype.render=function(){return(0,a.invariantIntlContext)(this.state.intl),n.createElement(M.Provider,{value:this.state.intl},this.props.children)},o.displayName="IntlProvider",o.defaultProps=a.DEFAULT_INTL_CONFIG,o}(n.PureComponent);e.s(["default",0,J],253450)},197042,e=>{"use strict";var t=e.i(260659),r=e.i(895519),n=e.i(307629),a=e.i(976726),o=e.i(963787),i=e.i(676910),l=e.i(557258),s={"unit-base":"4",checkbox:"web_ui__Checkbox__checkbox",button:"web_ui__Checkbox__button","text-center":"web_ui__Checkbox__text-center","button-right":"web_ui__Checkbox__button-right","button-left":"web_ui__Checkbox__button-left","experimental-checkbox-background-color":"web_ui__Checkbox__experimental-checkbox-background-color",inverse:"web_ui__Checkbox__inverse","button-indeterminate":"web_ui__Checkbox__button-indeterminate",label:"web_ui__Checkbox__label"},u=a.c.bind(s),c=function(e){var n=e.name,a=e.id,c=e.value,m=e.text,f=void 0===m?"":m,d=e.labelPosition,g=void 0===d?"right":d,_=e.labelAlignment,h=void 0===_?"top":_,p=e.checked,v=e.defaultChecked,b=void 0!==v&&v,y=e.disabled,E=e.inverse,w=e.tabIndex,I=e.onClick,T=e.onBlur,C=e.aria,F=e.testId,x=e.indeterminate,N=e.experimentalApplyBackground,S=e.noLabelWrapper,k=e.forwardedRef,P="onChange"in e?e.onChange:void 0,O=(0,i.idFromName)(n),D=(0,i.computeId)(a,O),R=u(s.checkbox,{inverse:E,"experimental-checkbox-background-color":N}),j=u(s.button,{"button-left":"right"===g,"button-right":"left"===g,"text-top":"top"===h,"text-center":"center"===h,"button-indeterminate":x}),L=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("input",(0,t.default)((0,t.default)({type:"checkbox",id:D,name:n,value:c||"1",checked:p},b&&{defaultChecked:b}),{},{disabled:y,onClick:I,onBlur:T,onChange:P,tabIndex:w,"data-testid":(0,o.getTestId)(F,"input"),"aria-checked":x?"mixed":void 0,ref:function(e){e&&(0,r.default)(e,{indeterminate:!!x}),"function"==typeof k?k(e):k&&(k.current=e)}},C)),(0,l.jsx)("span",{className:j,children:f?(0,l.jsx)("span",{className:s.label,"data-testid":(0,o.getTestId)(F,"text"),children:f}):null})]});return S?(0,l.jsx)("span",{"data-testid":F,className:R,children:L}):(0,l.jsx)("label",{htmlFor:D,"data-testid":F,className:R,children:L})},m=(0,n.forwardRef)(function(e,r){return(0,l.jsx)(c,(0,t.default)({forwardedRef:r},e))});m.displayName=c.name,e.s(["CheckboxWithForwardedRef",0,m])},28011,e=>{"use strict";var t=e.i(197042);e.s(["Checkbox",()=>t.CheckboxWithForwardedRef])},306050,e=>{"use strict";new TextEncoder;let t=new TextDecoder;class r extends Error{constructor(e,t){var r,n;super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null==(r=(n=Error).captureStackTrace)||r.call(n,this,this.constructor)}}r.code="ERR_JOSE_GENERIC";class n extends r{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}n.code="ERR_JWT_INVALID",e.s(["decodeJwt",0,function(e){let r,a;if("string"!=typeof e)throw new n("JWTs must use Compact JWS serialization, JWT must be a string");let{1:o,length:i}=e.split(".");if(5===i)throw new n("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new n("Invalid JWT");if(!o)throw new n("JWTs must contain a payload");try{r=(e=>{let r=e;r instanceof Uint8Array&&(r=t.decode(r)),r=r.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{var n=r;let e=atob(n),t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}catch{throw TypeError("The input to be decoded is not correctly encoded.")}})(o)}catch{throw new n("Failed to base64url decode the payload")}try{a=JSON.parse(t.decode(r))}catch{throw new n("Failed to parse the decoded payload as JSON")}if(!function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(a))throw new n("Invalid JWT Claims Set");return a}],306050)},490812,e=>{"use strict";var t=e.i(557258),r=e.i(374048);e.s(["HelpCenterFaqEntryUrl",0,e=>{let{type:n,render:a,accessChannel:o}=e,i=`/help/${n}`,l=o?(0,r.urlWithParams)(i,{access_channel:o}):i;return(0,t.jsx)(t.Fragment,{children:a(l,n)})}],490812)},536437,e=>{"use strict";var t=e.i(895519),r=e.i(976726),n=e.i(1263),a=e.i(557258),o={"unit-base":"4",note:"web_ui__Note__note",default:"web_ui__Note__default",narrow:"web_ui__Note__narrow",wide:"web_ui__Note__wide",inverse:"web_ui__Note__inverse",left:"web_ui__Note__left",center:"web_ui__Note__center",right:"web_ui__Note__right"},i=r.c.bind(o),l=(0,t.default)(function(e){var t=e.text,r=e.styling,l=e.alignment,s=e.inverse,u=e.html,c=e.testId,m=i(o.note,void 0===r?"default":r,void 0===l?"left":l,{inverse:s}),f=(0,a.jsx)("div",{className:m,"data-testid":c,children:t});return u?(0,n.interpolateWithHtml)(f):f},{Styling:{Default:"default",Narrow:"narrow",Wide:"wide"},Alignment:{Left:"left",Center:"center",Right:"right"}});e.s(["Note",0,l])},661642,(e,t,r)=>{var n=e.r(796847);t.exports=function(e,t){return n(e,t)}},648250,(e,t,r)=>{var n=e.r(787331),a=e.r(878524);t.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return a(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),n(e,t,{leading:o,maxWait:t,trailing:i})}},290708,e=>{"use strict";async function t(){let{requestContentCardsRefresh:t}=await e.A(334588);return new Promise((e,r)=>{t(e,r)})}let r=(0,e.i(648250).default)(t,1e4,{leading:!0,trailing:!1});async function n(){let{disableSDK:t}=await e.A(334588);t()}async function a(){let{requestImmediateDataFlush:t}=await e.A(334588);return new Promise(e=>{t(e)})}async function o(){let{getUser:t}=await e.A(334588),r=t();return r?r.getUserId():null}e.s(["disableBraze",0,n,"flushBraze",0,a,"getBrazeUserId",0,o,"requestContentCardsRefreshThrottled",0,r])},369536,e=>{"use strict";var t=e.i(661642),r=e.i(648250),n=e.i(592369),a=e.i(237011),o=e.i(786830);let i=new a.ApiGatewayClient,l=async e=>{let{eventName:t,modelId:r,isEventPayloadFromCrmEventProcessorEnabled:a=!1}=e;return!0===a&&t===n.BrazeCustomEvent.AddedToFavourites?(e=>{let{eventName:t,modelId:r}=e;return i.get("/crm-event-processor/v1/event_payload",{params:{event_name:t,model_id:r}})})({eventName:t,modelId:r}):(e=>{let{eventName:t,modelId:r}=e;return o.api.get("/external_crm/event_payload",{params:{event_name:t,model_id:r}})})({eventName:t,modelId:r})};var s=e.i(410802),u=e.i(150245),c=e.i(290708),m=e.i(372958),f=e.i(23026),d=e.i(354392),g=e.i(124211),_=e.i(799617);let h=()=>{var e;let t=new f.ClientCookieManager,r=t.get(_.CONSENT_VERSION_COOKIE)||m.CookieConsentVersion.None;return e=t.get(_.OPTANON_CONSENT_COOKIE)||"",r===m.CookieConsentVersion.None||!r||(0,d.checkConsentGroup)(g.ConsentGroup.Functional,e)||(0,d.checkConsentGroup)(g.ConsentGroup.PersonalisedAds,e)},p="cached_braze_custom_events",v=()=>{try{let e=(0,u.getLocalStorageItem)(p);return e?JSON.parse(e):[]}catch{return[]}},b=e=>{(0,u.setLocalStorageItem)(p,JSON.stringify([...v(),e]))},y=e=>{(0,u.setLocalStorageItem)(p,JSON.stringify(v().filter(r=>!e.some(e=>(0,t.default)(e,r)))))},E=(e,t)=>`was_braze_${e}_logged_or_deferred_${t}`,w=async(t,r)=>{let{event:a,userExternalId:o,extra:i,screen:c,modelId:m}=t;if(!o||!h())return!1;let f=async()=>{let e=c?{screen:c}:{};if(i)return{...e,...i};if(!n.EVENTS_WITH_PROPERTIES_FROM_BACKEND.includes(a)||!m)return e;let t=await l({modelId:m,eventName:a,isEventPayloadFromCrmEventProcessorEnabled:(null==r?void 0:r.isEventPayloadFromCrmEventProcessorEnabled)===!0});if("errors"in t)throw Error("failed retrieving properties");return{...e,...t.properties}};try{if(null==r?void 0:r.oncePerUser){if(((e,t)=>{try{return"true"===(0,u.getLocalStorageItem)(E(e,t))}catch{return!1}})(a,o))return!1;try{(0,u.setLocalStorageItem)(E(a,o),"true")}catch{}}if(null==r?void 0:r.defer)return b(t),!1;let{logCustomEvent:n}=await e.A(334588);if(!n(a,await f()))throw Error("failed logging custom event");return!0}catch(n){(null==r?void 0:r.requeueOnFailure)!==!1&&b(t);let e=n instanceof Error?n.message:"";if("Braze must be initialized before calling methods"===e)return!1;return(0,s.logBrazeMessage)(`eventLoggingError(event: ${a}, reason: ${e})`,`userExternalId: ${String(o)}`),!1}},I=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=v().filter(t=>t.userExternalId===e);if(0===r.length)return;if(!h())return void y(r);y(r);let n=await Promise.allSettled(r.map(e=>w(e,{requeueOnFailure:!1,isEventPayloadFromCrmEventProcessorEnabled:t})));r.forEach((e,t)=>{let r=n[t];((null==r?void 0:r.status)!=="fulfilled"||!0!==r.value)&&b(e)})},T=(0,r.default)(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Promise.allSettled([I(e,t)]).then(c.flushBraze)},7e3,{leading:!0,trailing:!0});e.s(["brazeLogCustomEvent",0,w,"flushCustomEventsThrottled",0,T,"removeAllDeferredBrazeCustomEvents",0,()=>{(0,u.removeLocalStorageItem)(p)}],369536)}]);