(()=>{"use strict";const e={unstructured:{message:"string"},event:{kind:"string",detail:"string"},exception:{"exception.type":"string","exception.message":"string","exception.stacktrace":"string","exception.url":"string"}},t=JSON.parse('{"logs":"https://ir.ebaystatic.com/cr/v/c01/logs.dae067de06d6d3663c6f.bundle.js"}');const r=(e,t)=>{const r="undefined"!=typeof window?window.location.href:"/index.js";return{type:"exception","exception.context":t||"","exception.type":e?.name||"","exception.message":e?.message||"","exception.stacktrace":e?.stack||"","exception.url":r}},n=(e,r,n)=>{let o=!1;const i=[];let a=e=>{o?(e=>{console.warn("Logger failed initialization (see earlier error logs) — failed to send log: ",e)})(e):i.push(e)};return n({event:"Preload",value:a}),(async e=>{let r=2;const n=async()=>{let o;r--;try{o=await import(t[e])}catch(e){if(r>0)return console.error("@ebay/rum-web failed to lazy load module; retrying",e),n();throw console.error("@ebay/rum-web failed to lazy load module; fatal",e),e}return function(e,t){if("object"!=typeof(r=e)||null===r||Array.isArray(r)||e.key!==t||void 0===e.factory)throw new Error("Invalid module loaded");var r}(o,e),o};return n()})("logs").then((t=>{const{factory:n}=t;return n(e,r)})).then((e=>{a=e,n({event:"Complete",value:a}),i.forEach((e=>a(e))),i.length=0})).catch((e=>{console.error(e.message),o=!0,n({event:"Error",value:e}),i.forEach((e=>a(e))),i.length=0})),t=>{((e,t)=>"shouldIgnore"in e&&void 0!==e.shouldIgnore?e.shouldIgnore(t):"ignoreList"in e&&void 0!==e.ignoreList&&((e,t)=>null!==Object.values(e).filter(Boolean).join(" ").match(t))(t,e.ignoreList))(e,t)||a(t)}},o=e=>({log:t=>e({type:"unstructured",message:t}),error:(t,n)=>e(r(t,n)),event:t=>e(t)}),i="@ebay/rum/request-status",a=Symbol.for("@ebay/rum/logger"),s=e=>{window.dispatchEvent(new CustomEvent("@ebay/rum/ack-status",{detail:e}))};function c(e,t){!1===e&&new Error(`RUM_INLINE_ERR_CODE: ${t}`)}(t=>{const c=(()=>{let e={status:"Initialize"};const t=()=>s(e);return window.addEventListener(i,t),{updateInlinerState:t=>{e=t,s(e)},dispose:()=>window.removeEventListener(i,t)}})();try{const i=((t,i=(()=>{}))=>{if((e=>{if(!e.endpoint)throw new Error('Unable to initialize logger. "endpoint" is a required property in the input object.');if(!e.serviceName)throw new Error('Unable to initialize logger. "serviceName" is a required property in the input object.');if(e.customSchemas&&!e.namespace)throw new Error('Unable to initialize logger. "namespace" is a required property in the input object if you provide customeSchemas.')})(t),"undefined"==typeof window)return{...o((()=>{})),noop:!0};const a={...t.customSchemas,...e},s=n((e=>{return"ignoreList"in e?{...e,ignoreList:(t=e.ignoreList,new RegExp(t.map((e=>`(${e})`)).join("|"),"g"))}:e;var t})(t),a,i);return t.captureUncaught&&(e=>{window.addEventListener("error",(t=>{if(t.error instanceof Error){const n=r(t.error,"Uncaught Error Handler");e(n)}}))})(s),t.captureUnhandledRejections&&(e=>{window.addEventListener("unhandledrejection",(t=>{if(t.reason instanceof Error){const n=r(t.reason,"Unhandled Rejection Handler");e(n)}}))})(s),o(s)})(t.loggerProps,(e=>t=>{if("Error"===t.event)return((e,t)=>{e.updateInlinerState({status:"Failure",error:t.value})})(e,t);var r;e.updateInlinerState({status:(r=t.event,"Complete"===r?"Success":r),logger:o(t.value)})})(c));t.onLoggerLoad&&t.onLoggerLoad(i),window[a]=i}catch(e){c.updateInlinerState({status:"Failure",error:e})}})({onLoggerLoad:()=>{},...(()=>{c(null!==document.currentScript,1);const e=document.currentScript.dataset.inlinepayload;return c(void 0!==e,2),JSON.parse(e)})()})})();