PageSourceSearch

https://care.siriusxm.com/accountcenter/main-5XYBHQDL.js

js siriusxm.com collected 2026-09-24 08:27:40 UTC 584,572 bytes, 10 lines download raw bytes

1import{e as bm}from"./chunk-4Y3FPIGA.js";import{$ as Mu,A as Ze,Aa as em,B as wu,Ba as tm,Ca as rm,Da as nm,E as Ha,Ea as ri,F as Cu,G as Iu,Ga as im,H as Tu,Ha as am,I as Au,Ia as om,J as ku,Ja as ze,K as Ya,Ka as ni,L as _u,La as sm,Ma as cm,Na as dm,O as yr,Oa as lm,P as Pu,Pa as um,Q as Nu,Qa as mm,R as Ge,Ra as Re,S as Ou,Sa as je,T as Xn,Ta as fm,U as Jn,Ua as ii,V as rn,Va as pm,Wa,X as Ru,Y as Du,Ya as hm,Z as Lu,Za as gm,_ as xu,a as Oe,aa as Uu,b as lu,ba as Fu,c as uu,ca as vr,d as vt,da as Bu,e as mu,ea as qu,f as fu,fa as Vu,g as pu,ga as Gu,ha as zu,ia as Jt,j as ct,ja as ju,k as hu,la as Ku,m as $n,ma as Hu,n as gu,na as br,o as yu,oa as Pt,p as hr,pa as Yu,q as vu,qa as Wu,r as gr,ra as Zn,s as bu,sa as Qn,t as _t,ta as $u,u as Su,ua as Xu,v as tn,va as Ju,w as Eu,wa as Zu,wb as ym,xa as ei,xb as vm,y as Mt,ya as Qu,za as ti}from"./chunk-KATEZOHF.js";import{b as cu,d as du}from"./chunk-2LSKMBCM.js";import{a as su}from"./chunk-WVZWCWDO.js";import"./chunk-VSEAKPOK.js";import"./chunk-MGGKLSKG.js";import{a as ru}from"./chunk-6CD6PNFS.js";import{a as ql,b as Vl,c as Gl,d as zl,e as ou}from"./chunk-PN36LI6L.js";import"./chunk-NPWLU3FF.js";import{c as jl}from"./chunk-LDYKRPYP.js";import{a as Wn}from"./chunk-JLUCQGPF.js";import{h as Ka}from"./chunk-X72SQNGV.js";import{a as au}from"./chunk-Z5NREVYA.js";import{b as Ga,h as Yn,s as $l,t as Xl,u as Jl,v as Zl,w as Ql,x as eu,y as tu,z as ja}from"./chunk-KZAY7NVX.js";import{a as za}from"./chunk-G4ZY7JFK.js";import{b as nu}from"./chunk-ZTIEMCFU.js";import{Ba as Yl,Ub as Wl,wa as Hl}from"./chunk-XJWSUVQ4.js";import"./chunk-67HI2W2E.js";import"./chunk-4TCDFOMC.js";import"./chunk-5GO7VENV.js";import"./chunk-LPUVZF6T.js";import{b as iu}from"./chunk-YWXVJ3J6.js";import{a as Bl,b as Hn}from"./chunk-VSCNX4KP.js";import{g as Kl}from"./chunk-DIMPJ3WT.js";import"./chunk-SU6BI5DG.js";import{c as en,d as Nl,e as Ol,f as Rl,h as Dl,k as pr,n as Ll,o as xl,p as Ml,q as Ul,r as Fl}from"./chunk-VHPZKCN4.js";import{b as Al,d as kl,f as _l,g as Pl}from"./chunk-PLEU77LE.js";import"./chunk-VUVEY76X.js";import{Ab as wl,Da as El,H as mr,K as pl,Pb as Kn,Qb as fr,Sb as Cl,U as hl,Wc as Tl,Y as gl,Z as yl,fc as Il,ga as jn,ja as xt,ka as vl,la as Ee,oa as bl,r as fl,w as zn,ya as Sl}from"./chunk-CSSHMB2L.js";import{a as g,b as C,c as st,f as l,g as Qr,h as qa,i as Va,j as ml}from"./chunk-JQMSBYWQ.js";var Sm=new xt("microserviceApiBaseUrl");var ai=new xt("appSettings",{providedIn:"root",factory:()=>({chatProvider:""})});var oi=new xt("externalUrls",{providedIn:"root",factory:()=>({careBaseUrl:"",nhtBaseUrl:"",accountCenterUSBaseUrl:"",accountCenterCanadaBaseUrl:""})});function Em({appSettings:e,appUrls:t,thirdParty:r,countryCode:n}){let a=Ee(Yn),o=Ee(Hn),s=Ee(ai),c=Ee(pr),d=Ee(oi),u=new Vl,f=new zl,v=new Gl,p;return()=>l(null,null,function*(){switch(r.chatProvider){case"sierra":{p=u;break}case"247":{p=f;break}default:p=v}s.chatProvider=r.chatProvider,o.countryCode=n,c.events.pipe(mr(m=>m instanceof Nl||m instanceof en),yl(()=>c.routerState.root.queryParamMap.pipe(jl("langpref"))),zn(m=>m?m.toLowerCase()==="fr"?"fr-CA":o.countryCode.toLowerCase()==="ca"?"en-CA":"en-US":null),mr(m=>!!m)).subscribe(m=>{a.setHtmlLang(m)}),d.careBaseUrl=n==="us"?t.careUSBaseUrl:t.careCanadaBaseUrl,d.nhtBaseUrl=e.externalUrls.nhtBaseUrl,d.accountCenterUSBaseUrl=t.accountCenterUSBaseUrl,d.accountCenterCanadaBaseUrl=t.accountCenterCanadaBaseUrl})}var wm=[{path:"",children:[{path:"third-party-message",loadChildren:()=>import("./chunk-TVXRAJK3.js").then(e=>e.routes)},{path:"delete",canActivate:[()=>Ee(Wn).variation("enableDeleteAccountFeature",!1)?!0:Ee(pr).createUrlTree(["./dashboard"])],loadChildren:()=>import("./chunk-376X4PIG.js").then(e=>e.routes)},{path:"tokenized",loadChildren:()=>import("./chunk-CC5TU5LI.js").then(e=>e.routes)},{path:"",pathMatch:"full",redirectTo:"dashboard"},{path:"login",pathMatch:"full",loadChildren:()=>import("./chunk-CGCJGEUF.js").then(e=>e.routes)},{path:"error",pathMatch:"full",loadChildren:()=>import("./chunk-NG46RKTP.js").then(e=>e.routes)},{path:"",loadChildren:()=>import("./chunk-P6MLKNXK.js").then(e=>e.routes)},{path:"no-payment",loadChildren:()=>import("./chunk-ORS6I2LB.js").then(e=>e.routes)},{path:"tokenized-payment",loadChildren:()=>import("./chunk-4DVXFGJR.js").then(e=>e.routes)}]}];function Cm(e){return[{provide:du,useValue:e}]}function Im({locale:e}){return[{provide:Kn,useFactory:()=>{let t=Ee(Bl);return()=>{t.canToggleLanguage=e.languages.default!=="en-US",t.defaultLanguage=e.languages.default,t.languagesSupported=e.languages.supported}},multi:!0}]}function $a(){return[fr(()=>{let e={log:a=>{}};performance.mark("sxm-wc-ng-start"),performance.mark("bootstrap-start");let t=Ee(pr),r=Ee(Cl);t.events.subscribe(a=>{if(a instanceof Ol&&performance.mark(`route-${a.route.path}-start`),a instanceof Rl){let o=`route-${a.route.path}-end`;performance.mark(o),performance.measure(`route-${a.route.path}`,`route-${a.route.path}-start`,o)}}),t.events.pipe(mr(a=>
1a instanceof en),gl(new en(0,t.url,t.url))).subscribe(a=>{let o=a.urlAfterRedirects,c=`route-${o.replace(/^\/+/,"").split("/")[0]||""}`,[d]=performance.getEntriesByName(c);d&&e.log(`[PerfMetrics] (Angular) Navigation to "${o}" took ${d.duration.toFixed(1)} ms`)});let n=r.isStable.pipe(mr(a=>a)).subscribe(()=>{performance.mark("app-stable"),performance.measure("time-to-stable","bootstrap-start","app-stable");let[a]=performance.getEntriesByName("time-to-stable");a&&e.log(`[PerfMetrics] (Angular) Time to stable: ${a.duration.toFixed(1)} ms`),n.unsubscribe()})})]}var si=class{constructor(){this.featureFlags={}}setAllFlags(t){this.featureFlags=t}variation(t,r){return this.featureFlags?.[t]||r}};var Tm=e=>{let t=Object.keys(e).reduce((n,a)=>C(g({},n),{[a]:typeof e[a]=="boolean"?e[a]:e[a].toLowerCase()==="true"}),{}),r=new si;return r.setAllFlags(t),r};function Am({featureFlags:e}){return[{provide:Wn,useFactory:()=>Tm(e)}]}function Sr(e,t,r){let n=r.getHandler(),a=Array.isArray(n)?n:[n];return km[e]>=km[r.getLevel()]&&a.includes(t)}var W={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},km={[W.ok]:0,[W.debug]:1,[W.info]:2,[W.notice]:4,[W.warn]:5,[W.error]:6,[W.critical]:7,[W.alert]:8,[W.emerg]:9};function Ut(e,{includeMessage:t=!1}={}){return{stack:e.stack,kind:e.type,message:t?e.message:void 0,causes:e.causes,fingerprint:e.fingerprint,handling:e.handling}}var c1=function(e,t,r,n){var a=arguments.length,o=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(o=(a<3?s(o):a>3?s(t,r,o):s(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o},Zt={console:"console",http:"http",silent:"silent"},_m=Object.keys(W),Ke=class{constructor(t,r,n=Zt.http,a=W.debug,o={}){this.handleLogStrategy=t,this.handlerType=n,this.level=a,this.contextManager=om("logger"),this.tags=[],this.contextManager.setContext(o),r&&this.contextManager.setContextProperty("logger",{name:r})}logImplementation(t,r,n=W.info,a,o){let s=yr(r),c;if(a!=null){let d=Pu({originalError:a,nonErrorPrefix:"Provided",source:Ge.LOGGER,handling:"handled",startClocks:hu()});c=vr({error:Ut(d,{includeMessage:!0})},d.context,s)}else c=s;this.handleLogStrategy({message:yr(t),context:c,status:n},this,o)}log(t,r,n=W.info,a){let o;Sr(n,Zt.http,this)&&(o=Ya("log")),this.logImplementation(t,r,n,a,o)}setContext(t){this.contextManager.setContext(t)}getContext(){return this.contextManager.getContext()}setContextProperty(t,r){this.contextManager.setContextProperty(t,r)}removeContextProperty(t){this.contextManager.removeContextProperty(t)}clearContext(){this.contextManager.clearContext()}addTag(t,r){this.tags.push(xu(t,r))}removeTagsWithKey(t){let r=Mu(t);this.tags=this.tags.filter(n=>n!==r&&!n.startsWith(`${r}:`))}getTags(){return this.tags.slice()}setHandler(t){this.handlerType=t}getHandler(){return this.handlerType}setLevel(t){this.level=t}getLevel(){return this.level}};c1([bu],Ke.prototype,"logImplementation",null);Ke.prototype.ok=Nt(W.ok);Ke.prototype.debug=Nt(W.debug);Ke.prototype.info=Nt(W.info);Ke.prototype.notice=Nt(W.notice);Ke.prototype.warn=Nt(W.warn);Ke.prototype.error=Nt(W.error);Ke.prototype.critical=Nt(W.critical);Ke.prototype.alert=Nt(W.alert);Ke.prototype.emerg=Nt(W.emerg);function Nt(e){return function(t,r,n){let a;Sr(e,Zt.http,this)&&(a=Ya("log")),this.logImplementation(t,r,e,n,a)}}function Xa(){return gr?{}:{view:{referrer:document.referrer,url:window.location.href}}}var l1=32*1024;function Nm(e,t){e.usePciIntake===!0&&e.site&&e.site!=="datadoghq.com"&&vt.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");let r=Tu(e,t),n=Pm(e.forwardConsoleLogs,Ha(Oe),"Forward Console Logs"),a=Pm(e.forwardReports,Ha(Ru),"Forward Reports");if(!(!r||!n||!a))return e.forwardErrorsToLogs&&!n.includes(Oe.error)&&n.push(Oe.error),g({forwardErrorsToLogs:e.forwardErrorsToLogs!==!1,forwardConsoleLogs:n,forwardReports:a,requestErrorResponseLengthLimit:l1},r)}function Pm(e,t,r){if(e===void 0)return[];if(!(e==="all"||Array.isArray(e)&&e.every(n=>t.includes(n)))){vt.error(`${r} should be "all" or an array with allowed values "${t.join('", "')}"`);return}return e==="all"?t:Zu(e)}
1function Om(e){let t=Au(e);return g({forward_errors_to_logs:e.forwardErrorsToLogs,forward_console_logs:e.forwardConsoleLogs,forward_reports:e.forwardReports,use_pci_intake:e.usePciIntake},t)}function Rm(e,t,r){let n=am(),a=lm();ni(a,Re.globalContext,n);let o=cm();ni(o,Re.accountContext,n);let s=mm();ni(s,Re.userContext,n);let c,d,u=t.observable.subscribe(f);function f(){if(!d||!c||!t.isGranted())return;u.unsubscribe();let v=r(c,d);n.drain(v)}return{init(v,p){if(!v){vt.error("Missing configuration");return}if(wu(v.enableExperimentalFeatures),Jt()&&(v=u1(v)),c=v,$u(Om(v)),d){Jn("DD_LOGS",v);return}let m=Nm(v,p);m&&(d=m,ri().subscribe(Ze),t.tryToInit(m.trackingConsent),f())},get initConfiguration(){return c},globalContext:a,accountContext:o,userContext:s,getInternalContext:Ze,handleLog(v,p,m,h=e(),y=ct()){n.add(b=>b.handleLog(v,p,m,h,y))}}}function u1(e){return C(g({},e),{clientToken:"empty"})}function Dm(e){let t=Cu(),r=pm().observable,n=Rm(Xa,t,(c,d)=>{let u=e(d,Xa,t,r);return n=m1(c,u),u}),a=()=>n,o={},s=new Ke((...c)=>n.handleLog(...c));return Ou({logger:s,init:c=>{let d=new Error().stack;Su(()=>n.init(c,d))},setTrackingConsent:_t(c=>{t.update(c),Ju({feature:"set-tracking-consent",tracking_consent:c})}),getGlobalContext:ze(a,Re.globalContext,je.getContext),setGlobalContext:ze(a,Re.globalContext,je.setContext),setGlobalContextProperty:ze(a,Re.globalContext,je.setContextProperty),removeGlobalContextProperty:ze(a,Re.globalContext,je.removeContextProperty),clearGlobalContext:ze(a,Re.globalContext,je.clearContext),createLogger:_t((c,d={})=>(o[c]=new Ke((...u)=>n.handleLog(...u),yr(c),d.handler,d.level,yr(d.context)),o[c])),getLogger:_t(c=>o[c]),getInitConfiguration:_t(()=>Fu(n.initConfiguration)),getInternalContext:_t(c=>n.getInternalContext(c)),setUser:ze(a,Re.userContext,je.setContext),getUser:ze(a,Re.userContext,je.getContext),setUserProperty:ze(a,Re.userContext,je.setContextProperty),removeUserProperty:ze(a,Re.userContext,je.removeContextProperty),clearUser:ze(a,Re.userContext,je.clearContext),setAccount:ze(a,Re.accountContext,je.setContext),getAccount:ze(a,Re.accountContext,je.getContext),setAccountProperty:ze(a,Re.accountContext,je.setContextProperty),removeAccountProperty:ze(a,Re.accountContext,je.removeContextProperty),clearAccount:ze(a,Re.accountContext,je.clearContext)})}function m1(e,t){return g({init:r=>{Jn("DD_LOGS",r)},initConfiguration:e},t)}var f1="logs";function Lm(e,t){let r=Qu(e,f1,n=>Mm(e,n),t);return{findTrackedSession:(n,a={returnInactive:!1})=>{let o=r.findSession(n,a);return o&&o.trackingType==="1"?{id:o.id,anonymousId:o.anonymousId}:void 0},expireObservable:r.expireObservable}}function xm(e){let r=Mm(e)==="1"?{}:void 0;return{findTrackedSession:()=>r,expireObservable:new Mt}}function Mm(e,t){return p1(t)?t:fu(e.sessionSampleRate)?"1":"0"}function p1(e){return e==="0"||e==="1"}function Um(e,t,r,n,a){let o=_m.concat(["custom"]),s={};o.forEach(c=>{s[c]=tm(c,e.eventRateLimiterThreshold,a)}),t.subscribe(0,({rawLogsEvent:c,messageContext:d=void 0,savedCommonContext:u=void 0,domainContext:f,ddtags:v=[]})=>{var p,m;let h=gu(c.date),y=u||n(),b=r.triggerHook(0,{startTime:h});if(b===br)return;let _=Lu(e),N=vr({view:y.view},b,c,d,{ddtags:_.concat(v).join(",")});((p=e.beforeSend)===null||p===void 0?void 0:p.call(e,N,f))===!1||N.origin!==Ge.AGENT&&((m=s[N.status])!==null&&m!==void 0?m:s.custom).isLimitReached()||t.notify(1,N)})}var h1={[Oe.log]:W.info,[Oe.debug]:W.debug,[Oe.info]:W.info,[Oe.warn]:W.warn,[Oe.error]:W.error};function Fm(e,t){let r=im(e.forwardConsoleLogs).subscribe(n=>{var a;let o={rawLogsEvent:{date:ct(),message:n.message,origin:Ge.CONSOLE,error:n.error&&Ut(n.error),status:h1[n.api]},messageContext:(a=n.error)===null||a===void 0?void 0:a.context,domainContext:{handlingStack:n.handlingStack}};t.notify(0,o)});return{stop:()=>{r.unsubscribe()}}}function Bm(e,t){let r=Du(e,e.forwardReports).subscribe(n=>{let a=n.message,o,s=n.originalError.type==="deprecation"?W.warn:W.error;s===W.error?o=Ut(n):n.stack&&(a+=` Found in ${Nu(n.stack)}`),t.notify(0,{rawLogsEvent:{date:ct(),message:a,origin:Ge.REPORT,error:o,status:s}})});return{stop:()=>{r.unsubscribe()}}}function qm(e,t){if(!e.forwardErrorsToLogs)return{stop:Ze};let r=(gr?new Mt:nm(e)).subscribe(o=>{o.state==="complete"&&a(ii.XHR,o)}),n=ri().subscribe(o=>{o.state==="resolve"&&a(ii.FETCH,o)});function a(o,s){!Iu(s.url)&&(b1(s)||Bu(s.status))&&("xhr"in s?g1(s.xhr,e,c):s.response?v1(s.response,e,c):s.error&&y1(s.error,e,c));function c(d){let u={isAborted:s.isAborted,handlingStack:s.handlingStack};t.notify(0,{rawLogsEvent:{message:`${S1(o)} error ${s.method} ${s.url}`,date:s.startClocks.timeStamp,error:{stack:d||"Failed to load",handling:void 0},http:{method:s.method,status_code:s.status,url:s.url},status:W.error,origin:Ge.NETWORK},domainContext:u})}}return{stop:()=>{r.unsubscribe(),n.unsubscribe()}}}function g1(e,t,r){typeof e.response=="string"?r(Ja(e.response,t)):r(e.response)}function y1(e,t,r){r(Ja(_u(ku(e)),t))}function v1(e,t,r){let n=qu(e);!n||!n.body?r():window.TextDecoder?E1(n.body,t.requestErrorResponseLengthLimit,(a,o)=>{r(a?`Unable to retrieve response: ${a}`:o)}):n.text().then(_t(a=>r(Ja(a,t))),_t(a=>r(`Unable to retrieve response: ${a}`)))}function b1(e){return e.status===0&&e.responseType!=="opaque"}function Ja(e,t){return e.length>t.requestErrorResponseLengthLimit?`${e.substring(0,t.requestErrorResponseLengthLimit)}...`:e}function S1(e){return ii.XHR===e?"XHR":"Fetch"}function E1(e,t,r){fm(e,(n,a,o)=>
1{if(n)r(n);else{let s=new TextDecoder().decode(a);o&&(s+="..."),r(void 0,s)}},{bytesLimit:t,collectStreamBody:!0})}function Vm(e,t,r){if(!e.forwardErrorsToLogs)return{stop:Ze};let n=r.subscribe(a=>{if(a.type===0){let o=a.error;t.notify(0,{rawLogsEvent:{message:o.message,date:o.startClocks.timeStamp,error:Ut(o),origin:Ge.SOURCE,status:W.error},messageContext:o.context})}});return{stop:()=>{n.unsubscribe()}}}var Gm=em;function zm(e){function t(r,n,a,o,s){let c=vr(n.getContext(),r.context);if(Sr(r.status,Zt.console,n)&&C1(r,c),Sr(r.status,Zt.http,n)){let d={rawLogsEvent:{date:s||ct(),message:r.message,status:r.status,origin:Ge.LOGGER},messageContext:c,savedCommonContext:o,ddtags:n.getTags()};a&&(d.domainContext={handlingStack:a}),e.notify(0,d)}}return{handleLog:t}}var w1={[W.ok]:Oe.debug,[W.debug]:Oe.debug,[W.info]:Oe.info,[W.notice]:Oe.info,[W.warn]:Oe.warn,[W.error]:Oe.error,[W.critical]:Oe.error,[W.alert]:Oe.error,[W.emerg]:Oe.error};function C1({status:e,message:t},r){uu[w1[e]].call(lu,t,r)}function jm(e,t,r,n,a){let o=[e.logsEndpointBuilder];e.replica&&o.push(e.replica.logsEndpointBuilder);let s=Ku({encoder:ti(),request:Vu(o,e.batchBytesLimit,r),flushController:Hu({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageMayExitObservable:n,sessionExpireObservable:a.expireObservable}),messageBytesLimit:e.messageBytesLimit});return t.subscribe(1,c=>{s.add(c)}),s}function Km(e){let t=Gu();e.subscribe(1,r=>{t.send("log",r)})}function Hm(e){return{get:t=>{let r=e.findTrackedSession(t);if(r)return{session_id:r.id}}}}function Ym(e){return t=>{e.notify(0,{rawLogsEvent:{message:t.message,date:t.startClocks.timeStamp,origin:Ge.AGENT,status:W.error}}),Zn("Error reported to customer",{"error.message":t.message})}}var Wm=Yu;function $m(e){let t=vu;e.register(0,({startTime:a})=>{let o=r(a);return o||Pt}),e.register(1,({startTime:a})=>{var o,s;let c=r(a);return c?{application:{id:c.application_id},view:{id:(o=c.view)===null||o===void 0?void 0:o.id},action:{id:(s=c.user_action)===null||s===void 0?void 0:s.id}}:Pt});function r(a){let s=ei()?t.DD_RUM_SYNTHETICS:t.DD_RUM,c=n(a,s);if(c)return c}function n(a,o){if(o&&o.getInternalContext)return o.getInternalContext(a)}}function Xm(e,t,r){e.register(0,({startTime:n})=>{let a=r.findTrackedSession(n);return r.findTrackedSession(n,{returnInactive:!0})?{service:t.service,session_id:a?a.id:void 0,session:a?{id:a.id}:void 0}:br}),e.register(1,({startTime:n})=>{let a=r.findTrackedSession(n);return!a||!a.id?Pt:{session:{id:a.id}}})}function Jm(e,t){function r(){return t.isGranted()?Pt:br}e.register(0,r),e.register(1,r)}var Za="logs";function Zm(e,t,r,n){let a=new Gm,o=Wm(),s=[];a.subscribe(1,b=>Uu("logs",b));let c=Ym(a),d=gr?new Mt:ju(e),u=Wu("browser-logs-sdk",e,o,c,d,ti);s.push(u.stop);let f=e.sessionStoreStrategyType&&!Jt()&&!ei()?Lm(e,r):xm(e);Jm(o,r),Xm(o,e,f);let v=sm(o,e,Za),p=um(o,e,f,Za),m=dm(o,e,Za,!1);$m(o),qm(e,a),Vm(e,a,n),n.unbuffer(),Fm(e,a),Bm(e,a);let{handleLog:h}=zm(a);if(Um(e,a,o,t,c),Jt())Km(a);else{let{stop:b}=jm(e,a,c,d,f);s.push(()=>b())}let y=Hm(f);return{handleLog:h,getInternalContext:y.get,accountContext:v,globalContext:m,userContext:p,stop:()=>{s.forEach(b=>b())}}}var nn=Dm(Zm);Xn(hr(),"DD_LOGS",nn);function Qa(e){return e?.querySelector('meta[name="sxm:version"]')?.getAttribute("content")||""}var di=new xt("loggerService"),ci=class{constructor(t){this.document=Ee(Sl);let r=Qa(this.document);nn.init(C(g(g({},t),r?{version:r}:{}),{forwardErrorsToLogs:!0}))}error(t,r){nn.logger.error(t,r)}info(t,r){nn.logger.info(t,r)}};var li=(()=>{class e{constructor(){this.logger=Ee(di)}handleError(r){this.logger.error("Angular ErrorHandler caught an error",{error:r})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=jn({token:e,factory:e.\u0275fac})}}return e})();function ef(e){return[{provide:di,useFactory:()=>new ci(e)},{provide:El,useClass:li}]}var tf=(()=>{class e{constructor(r){this._erroHandler=r}intercept(r,n){return n.handle(r).pipe(hl(0),zn(a=>a),pl(a=>(this._erroHandler.handleError(a),fl(a))))}static{this.\u0275fac=function(n){return new(n||e)(vl(li))}}static{this.\u0275prov=jn({token:e,factory:e.\u0275fac})}}return e})();function rf(){return[{provide:kl,useClass:tf,multi:!0}]}function an(e,t,r){let n=0,a=[],o,s=!0,c=0,d=[],{stop:u}=rn(e,t,"message",({data:p})=>{if(p.type!=="wrote"||p.streamId!==r)return;let m=d[0];
1m&&(m.id===p.id?(d.shift(),n+=p.additionalBytesCount,a.push(p.result),o=p.trailer,m.writeCallback?m.writeCallback(p.result.byteLength):m.finishCallback&&m.finishCallback()):m.id<p.id&&u())});function f(){let p=a.length===0?new Uint8Array(0):yu(a.concat(o)),m={rawBytesCount:n,output:p,outputBytesCount:p.byteLength,encoding:"deflate"};return n=0,a=[],m}function v(){s||(t.postMessage({action:"reset",streamId:r}),s=!0)}return{isAsync:!0,get isEmpty(){return s},write(p,m){t.postMessage({action:"write",id:c,data:p,streamId:r}),d.push({id:c,writeCallback:m,data:p}),s=!1,c+=1},finish(p){v(),d.length?(d.forEach(m=>{delete m.writeCallback}),d[d.length-1].finishCallback=()=>p(f())):p(f())},finishSync(){v();let p=d.map(m=>m.data).join("");return d.length=0,C(g({},f()),{pendingData:p})},estimateEncodedBytesCount(p){return p.length/8},stop(){u()}}}function Er({configuredUrl:e,error:t,source:r,scriptType:n}){if(vt.error(`${r} failed to start: an error occurred while initializing the ${n}:`,t),t instanceof Event||t instanceof Error&&T1(t.message)){let a;e?a=`Please make sure the ${n} URL ${e} is correct and CSP is correctly configured.`:a="Please make sure CSP is correctly configured.",vt.error(`${a} See documentation at ${mu}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else n==="worker"&&Qn(t)}function T1(e){return e.includes("Content Security Policy")||e.includes("requires 'TrustedScriptURL'")}var A1=30*pu;function nf(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;
1)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},D=!1,M=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},j=M,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),T=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},O={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=j,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=O[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?M(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=T(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]
1);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){D||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),D=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t||!t.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=T(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
1=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.23.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}var Ne={status:0};function on(e,t,r,n=nf){switch(Ne.status===0&&k1(e,t,n),Ne.status){case 1:return Ne.initializationFailureCallbacks.push(r),Ne.worker;case 3:return Ne.worker}}function ui(){return Ne.status}function k1(e,t,r=nf){try{let n=r(e),{stop:a}=rn(e,n,"error",c=>{eo(e,t,c)}),{stop:o}=rn(e,n,"message",({data:c})=>{c.type==="errored"?eo(e,t,c.error,c.streamId):c.type==="initialized"&&P1(c.version)});n.postMessage({action:"init"}),Eu(()=>_1(t),A1),Ne={status:1,worker:n,stop:()=>{a(),o()},initializationFailureCallbacks:[]}}catch(n){eo(e,t,n)}}function _1(e){Ne.status===1&&(vt.error(`${e} failed to start: a timeout occurred while initializing the Worker`),Ne.initializationFailureCallbacks.forEach(t=>t()),Ne={status:2})}function P1(e){Ne.status===1&&(Ne={status:3,worker:Ne.worker,stop:Ne.stop,version:e})}function eo(e,t,r,n){Ne.status===1||Ne.status===0?(Er({configuredUrl:e.workerUrl,error:r,source:t,scriptType:"worker"}),Ne.status===1&&Ne.initializationFailureCallbacks.forEach(a=>a()),Ne={status:2}):Qn(r,{worker_version:Ne.status===3&&Ne.version,stream_id:n})}function mi(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function af(e,t,r,n){let a=t.findTrackedSession(),o=N1(a,n),s=r.findView();return vm(e,{viewContext:s,errorType:o,session:a})}function N1(e,t){if(!mi())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function of(e,t){if(!e.metricsEnabled)return{stop:Ze};let r,n,a,{unsubscribe:o}=t.subscribe(s=>{switch(s.type){case"start":r={forced:s.forced,timestamp:ct()},n=void 0,a=void 0;break;case"document-ready":r&&(n=$n(r.timestamp,ct()));break;
1case"recorder-settled":r&&(a=$n(r.timestamp,ct()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":o(),r&&Xu("Recorder init metrics",{metrics:O1(r.forced,a,$n(r.timestamp,ct()),s.type,n)});break}});return{stop:o}}function O1(e,t,r,n,a){return{forced:e,loadRecorderModuleDuration:t,recorderInitDuration:r,result:n,waitForDocReadyDuration:a}}function cf(e,t,r,n,a,o,s){let c=0,d;t.subscribe(9,()=>{(c===2||c===3)&&(p(),c=1)}),t.subscribe(10,()=>{c===1&&v()});let u=new Mt;of(s,u);let f=m=>l(null,null,function*(){u.notify({type:"start",forced:m});let[h]=yield Promise.all([sf(u,{type:"recorder-settled"},a()),sf(u,{type:"document-ready"},rm(e,"interactive"))]);if(c!==2){u.notify({type:"aborted"});return}if(!h){c=0,u.notify({type:"recorder-load-failed"});return}let y=o();if(!y){c=0,u.notify({type:"deflate-encoder-load-failed"});return}({stop:d}=h(t,e,r,n,y,s)),c=3,u.notify({type:"succeeded"})});function v(m){let h=r.findTrackedSession();if(R1(h,m)){c=1;return}if(D1(c))return;c=2;let y=L1(h,m)||!1;f(y).catch(tn),y&&r.setForcedReplay()}function p(){c===3&&d?.(),c=0}return{start:v,stop:p,getSessionReplayLink(){return af(e,r,n,c!==0)},isRecording:()=>c===3}}function R1(e,t){return!e||e.sessionReplay===0&&(!t||!t.force)}function D1(e){return e===2||e===3}function L1(e,t){return t&&t.force&&e.sessionReplay===0}function sf(e,t,r){return l(this,null,function*(){try{return yield r}finally{e.notify(t)}})}function df(){let e=0;return{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:Ze},shouldStartImmediately(t){return e===1||e===0&&!t.startSessionReplayRecordingManually}}}function lf(e,t){if(Jt()&&!zu("records")||!mi())return{start:Ze,stop:Ze,getReplayStats:()=>{},onRumStart:Ze,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:r,shouldStartImmediately:n}=df();return{start:o=>r.start(o),stop:()=>r.stop(),getSessionReplayLink:()=>r.getSessionReplayLink(),onRumStart:a,isRecording:()=>ui()===3&&r.isRecording(),getReplayStats:o=>ui()===3?bm(o):void 0};function a(o,s,c,d,u,f){let v;function p(){return v||(u??(u=on(s,"Datadog Session Replay",()=>{r.stop()},t)),u&&(v=an(s,u,1))),v}r=cf(s,o,c,d,e,p,f),n(s)&&r.start()}}function uf(){return l(this,arguments,function*(e=x1){try{return yield e()}catch(t){Er({error:t,source:"Recorder",scriptType:"module"})}})}function x1(){return l(this,null,function*(){return(yield import("./chunk-ARRCEUYD.js")).startRecording})}function mf(){return hr().Profiler!==void 0}var ff=e=>{let t={status:"starting"};return e.register(0,({eventType:r})=>r!==Wa.VIEW&&r!==Wa.LONG_TASK?Pt:{type:r,_dd:{profiling:t}}),{get:()=>t,set:r=>{t=r}}};function pf(){return l(this,arguments,function*(e=M1){try{return yield e()}catch(t){Er({error:t,source:"Profiler",scriptType:"module"})}})}function M1(){return l(this,null,function*(){return(yield import("./chunk-LMEKZTVQ.js")).createRumProfiler})}function hf(){let e;function t(r,n,a,o,s,c){let d=o.findTrackedSession();if(!d||!hm(d.id,a.profilingSampleRate))return;let u=ff(n);if(!mf()){u.set({status:"error",error_reason:"not-supported-by-browser"});return}pf().then(f=>{if(!f){Zn("[DD_RUM] Failed to lazy load the RUM Profiler"),u.set({status:"error",error_reason:"failed-to-lazy-load"});return}e=f(a,r,o,u,c),e.start(s.findView())}).catch(tn)}return{onRumStart:t,stop:()=>{e?.stop().catch(tn)}}}var U1=lf(uf),F1=hf(),fi=gm(ym,U1,F1,{startDeflateWorker:on,createDeflateEncoder:an,sdkName:"rum"});Xn(hr(),"DD_RUM",fi);function gf(e){return[fr(()=>{Ka({microservicesSettings:e.microservices,clientSdk:Ee(Ga),analyticsSdk:Ee(za),contentfulSettings:e.contentful,campaignFlagSdk:e.salesforce?new ja(e.salesforce):null})})]}function yf(){return nu({factory:iu})}function vf({countryCode:e}){return[{provide:Hn,useValue:{countryCode:e}},{provide:Yl,useValue:{countryCode:e}}]}var bf=(e,t)=>{let{microservices:r,contentful:n,countryCode:a,thirdParty:o,locale:s,featureFlags:c,appUrls:d}=e,u=a==="us"?r.baseUrlUS:r.baseUrlCanada;return{providers:[...o.dataDog.enabled?[ef({clientToken:o.dataDog.clientToken,env:o.dataDog.env,service:o.dataDog.service,site:o.dataDog.site}),rf()]:[],$a(),Zl(t),gf({microservices:{baseUrlUS:r.baseUrlUS,baseUrlCanada:r.baseUrlCanada,currentCountryCode:a},contentful:n,salesforce:o.salesforce}),Cm(o.stripe),Am({featureFlags:c}
1),{provide:Sm,useValue:u},{provide:Kn,useFactory:()=>Em(e),multi:!0},{provide:ru,useFactory:()=>Ee(oi)?.nhtBaseUrl},Ll(wm,Ml(),Ul(),xl({scrollPositionRestoration:"top"})),_l(Pl()),bl(Hl,Kl.forRoot()),Ql({locale:s}),eu({locale:s}),Im({locale:s}),cu(),fr(()=>{Ee(au)}),Xl(),$l(d,a),yf(),Jl(),Wl({locale:()=>Ee(Yn).currentLocale}),vf({countryCode:a}),ou({chatProvider:o.chatProvider}),tu(o.oneTrust.enabled,()=>{t.domains.auth.isAuthenticated()&&t.domains.account.recordPrivacyOption()})]}};var Sf=(()=>{class e{constructor(){this.mobileViewportService=Ee(su)}ngOnInit(){this.mobileViewportService.disableAutoZoomViewport()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=wl({type:e,selectors:[["de-ac-root"]],features:[Tl([{provide:ql,useFactory:r=>r.chatProvider,deps:[ai]}])],decls:1,vars:0,template:function(n,a){n&1&&Il(0,"router-outlet")},dependencies:[Fl,Dl],encapsulation:2})}}return e})();function Ef(e){let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].trim();if(n.startsWith(e+"="))return n.substring(e.length+1)}return null}function pi(e){let{hostname:t,port:r}=e;if(/localhost\.siriusxm\.(com|ca)$/.test(t)){let n=Ef(`variantName${r}`);return n?JSON.parse(n):{variantName:"",variantNameForApp:""}}return{variantName:wf(C(g({},e),{regex:/(variant-([a-z0-9-]*))/gi})),variantNameForApp:wf(C(g({},e),{regex:/(variantapp-([a-z0-9-]*))/gi}))}}function wf({hostname:e,regex:t}){let r=e.split(".")?.find(o=>o.includes("variant-")||o.includes("variantapp-"));if(!r)return"";let n="",a;for(;(a=t.exec(r))!==null;)a?.index===t.lastIndex&&t.lastIndex++,a?.forEach((o,s)=>{s===2&&a?.[s]&&(n=a[s])});return n.split("--")?.[0]}var B1={ca:"canada",com:"us"},Cf={us:"us",canada:"ca"},hi=e=>e.toLowerCase()in Cf?Cf[e.toLowerCase()]:null,gi=e=>{if(e===null)return null;if(e.split("?")[0].includes("/CAN-SIT"))return"canada";let r=e.replace(/^https?:\/\//gi,"").split(":")[0],n=r.split(".");if([n[0],n[1]].includes("can")||n[0].startsWith("can-")||n[1].startsWith("can-")||n[0].toLowerCase()==="uatca")return"canada";let o=r.split("/")[0].split("?")[0].split(".").pop();return o&&B1[o]||null},q1={us:{supported:["en-US"],default:"en-US"},ca:{supported:["en-CA","fr-CA"],default:"en-CA"}},yi=e=>({languages:g({},q1[e])});function to(){if(typeof window>"u")return"";let e=V1();return e?`?v=${e}`:""}function V1(){return document.querySelector("meta[name='sxm:buildHash']")?.getAttribute("content")}var vi=class{constructor(){if(typeof window>"u"){this.replacementParts={originWithoutPortUS:"",originWithoutPortCanada:""};return}let{origin:t,port:r,host:n}=document.location,a=r?t.replace(`:${r}`,""):t,o=["www.siriusxm.com","can.siriusxm.com","care.siriusxm.com","care.siriusxm.ca"].includes(n),s=["ffcare.siriusxm.com","care-qa.siriusxm.ca"].includes(n),c=n.startsWith("uat.")||n.startsWith("can.uat."),d=["localhost.siriusxm.com","can.localhost.siriusxm.com","localhost.siriusxm.ca"].includes(n.replace(`:${r}`,"")),u,f;o?(u="care.siriusxm.com",f="care.siriusxm.ca"):s?(u="ffcare.siriusxm.com",f="care-qa.siriusxm.ca"):c?n.startsWith("uatca.")?(u=a.replace(/uatca\./,"uatwww."),f=a):(u=a,f=a.replace("://uatwww.","://uatca.")):d?n.startsWith("can.")?(u=a.replace(/can\./,""),f=a):n.indexOf("siriusxm.ca")!=-1?(u=a.replace(/\.ca/,".com"),f=a):(u=a,f=a.replace("://","://can.")):n.startsWith("can--")?(u=a.replace(/can--/,""),f=a):n.startsWith("variant")?(u=a,f=a):(u=a,f=a.replace("://","://can--")),this.replacementParts={originWithoutPortUS:u,originWithoutPortCanada:f}}replaceToken(t,r){let{originWithoutPortUS:n,originWithoutPortCanada:a}=this.replacementParts,o=r=="us"?n:a;return t.replace("{originWithoutPort}",o)}};function ro(e){let t=new vi;e.careUSBaseUrl=t.replaceToken(e.careUSBaseUrl,"us"),e.careCanadaBaseUrl=t.replaceToken(e.careCanadaBaseUrl,"ca"),e.phxWCUSBaseUrl=t.replaceToken(e.phxWCUSBaseUrl,"us"),e.phxWCCanadaBaseUrl=t.replaceToken(e.phxWCCanadaBaseUrl,"ca"),e.accountCenterUSBaseUrl=t.replaceToken(e.accountCenterUSBaseUrl,"us"),e.accountCenterCanadaBaseUrl=t.replaceToken(e.accountCenterCanadaBaseUrl,"ca"),e.onboardingClaimTrialUSBaseUrl=t.replaceToken(e.onboardingClaimTrialUSBaseUrl,"us"),e.onboardingClaimTrialCanadaBaseUrl=t.replaceToken(e.onboardingClaimTrialCanadaBaseUrl,"ca"),e.onboardingDeviceLinkingUSBaseUrl=t.replaceToken(e.onboardingDeviceLinkingUSBaseUrl,"us"),e.onboardingDeviceLinkingCanadaBaseUrl=t.replaceToken(e.onboardingDeviceLinkingCanadaBaseUrl,"ca"),e.onboardingNativeCanadaBaseUrl=t.replaceToken(e.onboardingNativeCanadaBaseUrl,"ca"),e.onboardingNativeUSBaseUrl=t.replaceToken(e.onboardingNativeUSBaseUrl,"us"),e.acquisitionsSelfPayUSBaseUrl=t.replaceToken(e.acquisitionsSelfPayUSBaseUrl,"us"),e.acquisitionsSelfPayCanadaB
1aseUrl=t.replaceToken(e.acquisitionsSelfPayCanadaBaseUrl,"ca"),e.stellaUSBaseUrl=t.replaceToken(e.stellaUSBaseUrl,"us"),e.stellaCanadaBaseUrl=t.replaceToken(e.stellaCanadaBaseUrl,"ca"),e.cuwiOnlineAccountCenterUSBaseUrl=t.replaceToken(e.cuwiOnlineAccountCenterUSBaseUrl,"us"),e.cuwiOnlineAccountCenterCanadaBaseUrl=t.replaceToken(e.cuwiOnlineAccountCenterCanadaBaseUrl,"ca")}function no(){return l(this,null,function*(){let e="us",t,r,n=!1;if(typeof window<"u"){e=gi(window.location.href)||"us";let b=pi(window.location);t=b.variantName,r=b.variantNameForApp,r==="sim-login"&&(n=!0)}let a="./assets/configs",o=to(),s=`${e}.app-settings.json`,y=yield G1({countryUrl:`${a}/${e}.json${o}`,commonUrl:`${a}/common.json${o}`,appSettingsUrl:`${a}/${s}${o}`,variantUrl:t?`${a}/variant-${t}/common.json${o}`:null,variantCountryUrl:t?`${a}/variant-${t}/${e}.json${o}`:null,variantAppUrl:r?`${a}/variantapp-${r}/${s}${o}`:null}),{variant:c,variantForCountry:d,variantForApp:u}=y,f=st(y,["variant","variantForCountry","variantForApp"]),v=hi(e)||"us",p=yi(v);c&&(c.microservices&&(f.microservices=g({},c.microservices)),c.contentful&&(f.contentful=g({},c.contentful))),d&&n&&d.settings?.clientSdkConfig?.baseUrl&&(f.settings.clientSdkConfig.baseUrl=d.settings.clientSdkConfig.baseUrl),u&&u.featureFlags&&(f.featureFlags=g(g({},f.featureFlags),u.featureFlags));let m=f.settings.clientSdkConfig,h=f.contentful;return m.baseUrlContentful=h.baseUrl,m.contentfulSpaceId=h.spaceId,m.contentfulEnvironmentId=h.environmentId,m.contentfulAccessToken=h.accessToken,C(g({},f),{countryCode:v,locale:p})})}function G1(s){return l(this,arguments,function*({countryUrl:e,commonUrl:t,appSettingsUrl:r,variantUrl:n,variantCountryUrl:a,variantAppUrl:o}){let[c,d,u,f,v,p]=yield Promise.all([wr(e),wr(t),wr(r),n?wr(n):Promise.resolve(null),a?wr(a):Promise.resolve(null),o?wr(o):Promise.resolve(null)]);return ro(d.appUrls),{settings:c.settings,thirdParty:c.thirdParty,appUrls:d.appUrls,logging:d.logging,microservices:d.microservices,contentful:d.contentful,appSettings:u.appSettings,featureFlags:u.featureFlags,variant:f,variantForCountry:v,variantForApp:p}})}function wr(e){return l(this,null,function*(){return yield fetch(e).then(t=>t.status===404?null:t.json()).catch(t=>{throw typeof document<"u"&&document.defaultView?.DD_RUM?.addError(t),new Error(`Failed to load configs from ${e}!`)})})}function io({settings:e,countryCode:t,locale:r,microservices:n,thirdParty:a}){return{edge:{baseApiUrl:e.clientSdkConfig.baseUrl,baseCdnUrl:e.clientSdkConfig.baseUrlCDN},localeContext:{countryCode:t,languages:{supported:r.languages.supported,default:r.languages.default}},microservices:{baseUrlUS:n.baseUrlUS,baseUrlCanada:n.baseUrlCanada},thirdParty:{contentful:{accessToken:e.clientSdkConfig.contentfulAccessToken,baseUrl:e.clientSdkConfig.baseUrlContentful,environmentId:e.clientSdkConfig.contentfulEnvironmentId,spaceId:e.clientSdkConfig.contentfulSpaceId},salesforce:{accountName:a.salesforce.accountName,apiKey:a.salesforce.apiKey,clientSecret:a.salesforce.clientSecret,disabled:a.salesforce.disabled,environment:a.salesforce.environment},stripe:{allowedPaymentTypes:{applePay:a.stripe.allowedPaymentTypes.applePay},publishableApiKey:a.stripe.publishableKey}}}}var z1=Object.create,_n=Object.defineProperty,j1=Object.getOwnPropertyDescriptor,K1=Object.getOwnPropertyNames,H1=Object.getPrototypeOf,Y1=Object.prototype.hasOwnProperty,W1=(e,t,r)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t)=>_n(e,"name",{value:t,configurable:!0}),xr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$1=(e,t)=>{for(var r in t)_n(e,r,{get:t[r],enumerable:!0})},X1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of K1(t))!Y1.call(e,a)&&a!==r&&_n(e,a,{get:()=>t[a],enumerable:!(n=j1(t,a))||n.enumerable});return e},Ct=(e,t,r)=>(r=e!=null?z1(H1(e)):{},X1(t||!e||!e.__esModule?_n(r,"default",{value:e,enumerable:!0}):r,e)),w=(e,t,r)=>W1(e,typeof t!="symbol"?t+"":t,r),Mr=xr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=i(function(){return t=Object.assign||i(function(k){for(var T,Z=1,F=arguments.length;Z<F;Z++){T=arguments[Z];for(var re in T)Object.prototype.hasOwnProperty.call(T,re)&&(k[re]=T[re])}return k},"__assign"),t.apply(this,arguments)},"__assign"),r=/["'&<>]/,n=a;function a(k){var T=""+k,Z=r.exec(T);
1if(!Z)return T;var F,re="",ge=0,ye=0;for(ge=Z.index;ge<T.length;ge++){switch(T.charCodeAt(ge)){case 34:F="&quot;";break;case 38:F="&amp;";break;case 39:F="&#39;";break;case 60:F="&lt;";break;case 62:F="&gt;";break;default:continue}ye!==ge&&(re+=T.substring(ye,ge)),ye=ge+1,re+=F}return ye!==ge?re+T.substring(ye,ge):re}i(a,"escapeHtml");var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function s(k){return k&&k.__esModule&&Object.prototype.hasOwnProperty.call(k,"default")?k.default:k}i(s,"unwrapExports");function c(k,T){return T={exports:{}},k(T,T.exports),T.exports}i(c,"createCommonjsModule");var d=c(function(k,T){Object.defineProperty(T,"__esModule",{value:!0}),T.BLOCKS=void 0;var Z;(function(F){F.DOCUMENT="document",F.PARAGRAPH="paragraph",F.HEADING_1="heading-1",F.HEADING_2="heading-2",F.HEADING_3="heading-3",F.HEADING_4="heading-4",F.HEADING_5="heading-5",F.HEADING_6="heading-6",F.OL_LIST="ordered-list",F.UL_LIST="unordered-list",F.LIST_ITEM="list-item",F.HR="hr",F.QUOTE="blockquote",F.EMBEDDED_ENTRY="embedded-entry-block",F.EMBEDDED_ASSET="embedded-asset-block",F.EMBEDDED_RESOURCE="embedded-resource-block",F.TABLE="table",F.TABLE_ROW="table-row",F.TABLE_CELL="table-cell",F.TABLE_HEADER_CELL="table-header-cell"})(Z=T.BLOCKS||(T.BLOCKS={}))});s(d);var u=d.BLOCKS,f=c(function(k,T){Object.defineProperty(T,"__esModule",{value:!0}),T.INLINES=void 0;var Z;(function(F){F.HYPERLINK="hyperlink",F.ENTRY_HYPERLINK="entry-hyperlink",F.ASSET_HYPERLINK="asset-hyperlink",F.RESOURCE_HYPERLINK="resource-hyperlink",F.EMBEDDED_ENTRY="embedded-entry-inline",F.EMBEDDED_RESOURCE="embedded-resource-inline"})(Z=T.INLINES||(T.INLINES={}))});s(f);var v=f.INLINES,p=c(function(k,T){Object.defineProperty(T,"__esModule",{value:!0});var Z;(function(F){F.BOLD="bold",F.ITALIC="italic",F.UNDERLINE="underline",F.CODE="code",F.SUPERSCRIPT="superscript",F.SUBSCRIPT="subscript"})(Z||(Z={})),T.default=Z});s(p);var m=c(function(k,T){var Z=o&&o.__spreadArray||function(ye,Be,ne){if(ne||arguments.length===2)for(var ve=0,Ae=Be.length,Je;ve<Ae;ve++)(Je||!(ve in Be))&&(Je||(Je=Array.prototype.slice.call(Be,0,ve)),Je[ve]=Be[ve]);return ye.concat(Je||Array.prototype.slice.call(Be))},F=o&&o.__importDefault||function(ye){return ye&&ye.__esModule?ye:{default:ye}},re;Object.defineProperty(T,"__esModule",{value:!0}),T.V1_MARKS=T.V1_NODE_TYPES=T.TEXT_CONTAINERS=T.HEADINGS=T.CONTAINERS=T.VOID_BLOCKS=T.TABLE_BLOCKS=T.LIST_ITEM_BLOCKS=T.TOP_LEVEL_BLOCKS=void 0;var ge=F(p);T.TOP_LEVEL_BLOCKS=[d.BLOCKS.PARAGRAPH,d.BLOCKS.HEADING_1,d.BLOCKS.HEADING_2,d.BLOCKS.HEADING_3,d.BLOCKS.HEADING_4,d.BLOCKS.HEADING_5,d.BLOCKS.HEADING_6,d.BLOCKS.OL_LIST,d.BLOCKS.UL_LIST,d.BLOCKS.HR,d.BLOCKS.QUOTE,d.BLOCKS.EMBEDDED_ENTRY,d.BLOCKS.EMBEDDED_ASSET,d.BLOCKS.EMBEDDED_RESOURCE,d.BLOCKS.TABLE],T.LIST_ITEM_BLOCKS=[d.BLOCKS.PARAGRAPH,d.BLOCKS.HEADING_1,d.BLOCKS.HEADING_2,d.BLOCKS.HEADING_3,d.BLOCKS.HEADING_4,d.BLOCKS.HEADING_5,d.BLOCKS.HEADING_6,d.BLOCKS.OL_LIST,d.BLOCKS.UL_LIST,d.BLOCKS.HR,d.BLOCKS.QUOTE,d.BLOCKS.EMBEDDED_ENTRY,d.BLOCKS.EMBEDDED_ASSET,d.BLOCKS.EMBEDDED_RESOURCE],T.TABLE_BLOCKS=[d.BLOCKS.TABLE,d.BLOCKS.TABLE_ROW,d.BLOCKS.TABLE_CELL,d.BLOCKS.TABLE_HEADER_CELL],T.VOID_BLOCKS=[d.BLOCKS.HR,d.BLOCKS.EMBEDDED_ENTRY,d.BLOCKS.EMBEDDED_ASSET,d.BLOCKS.EMBEDDED_RESOURCE],T.CONTAINERS=(re={},re[d.BLOCKS.OL_LIST]=[d.BLOCKS.LIST_ITEM],re[d.BLOCKS.UL_LIST]=[d.BLOCKS.LIST_ITEM],re[d.BLOCKS.LIST_ITEM]=T.LIST_ITEM_BLOCKS,re[d.BLOCKS.QUOTE]=[d.BLOCKS.PARAGRAPH],re[d.BLOCKS.TABLE]=[d.BLOCKS.TABLE_ROW],re[d.BLOCKS.TABLE_ROW]=[d.BLOCKS.TABLE_CELL,d.BLOCKS.TABLE_HEADER_CELL],re[d.BLOCKS.TABLE_CELL]=[d.BLOCKS.PARAGRAPH],re[d.BLOCKS.TABLE_HEADER_CELL]=[d.BLOCKS.PARAGRAPH],re),T.HEADINGS=[d.BLOCKS.HEADING_1,d.BLOCKS.HEADING_2,d.BLOCKS.HEADING_3,d.BLOCKS.HEADING_4,d.BLOCKS.HEADING_5,d.BLOCKS.HEADING_6],T.TEXT_CONTAINERS=Z([d.BLOCKS.PARAGRAPH],T.HEADINGS,!0),T.V1_NODE_TYPES=[d.BLOCKS.DOCUMENT,d.BLOCKS.PARAGRAPH,d.BLOCKS.HEADING_1,d.BLOCKS.HEADING_2,d.BLOCKS.HEADING_3,d.BLOCKS.HEADING_4,d.BLOCKS.HEADING_5,d.BLOCKS.HEADING_6,d.BLOCKS.OL_LIST,d.BLOCKS.UL_LIST,d.BLOCKS.LIST_ITEM,d.BLOCKS.HR,d.BLOCKS.QUOTE,d.BLOCKS.EMBEDDED_ENTRY,d.BLOCKS.EMBEDDED_ASSET,f.INLINES.HYPERLINK,f.INLINES.ENTRY_HYPERLINK,f.INLINES.ASSET_HYPERLINK,f.INLINES.EMBEDDED_ENTRY,"text"],T.V1_MARKS=[ge.default.BOLD,ge.default.CODE,ge.default.ITALIC,ge.default.UNDERLINE]});s(m);var h=m.V1_MARKS,y=m.V1_NODE_TYPES,b=m.TEXT_CONTAINERS,_=m.HEADINGS,N=m.CONTAINERS,O=m.VOID_BLOCKS,P=m.TABLE_BLOCKS,j=m.LIST_ITEM_BLOCKS,V=m.TOP_LEVEL_BLOCKS,R=c(function(k,T){Object.defineProperty(T,"__esMo
1dule",{value:!0})});s(R);var D=c(function(k,T){Object.defineProperty(T,"__esModule",{value:!0})});s(D);var L=c(function(k,T){Object.defineProperty(T,"__esModule",{value:!0});var Z={nodeType:d.BLOCKS.DOCUMENT,data:{},content:[{nodeType:d.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};T.default=Z});s(L);var U=c(function(k,T){Object.defineProperty(T,"__esModule",{value:!0}),T.isText=T.isBlock=T.isInline=void 0;function Z(ye,Be){for(var ne=0,ve=Object.keys(ye);ne<ve.length;ne++){var Ae=ve[ne];if(Be===ye[Ae])return!0}return!1}i(Z,"hasValue");function F(ye){return Z(f.INLINES,ye.nodeType)}i(F,"isInline"),T.isInline=F;function re(ye){return Z(d.BLOCKS,ye.nodeType)}i(re,"isBlock"),T.isBlock=re;function ge(ye){return ye.nodeType==="text"}i(ge,"isText"),T.isText=ge});s(U);var be=U.isText,ie=U.isBlock,x=U.isInline,H=c(function(k,T){var Z=o&&o.__createBinding||(Object.create?function(ne,ve,Ae,Je){Je===void 0&&(Je=Ae);var gt=Object.getOwnPropertyDescriptor(ve,Ae);(!gt||("get"in gt?!ve.__esModule:gt.writable||gt.configurable))&&(gt={enumerable:!0,get:i(function(){return ve[Ae]},"get")}),Object.defineProperty(ne,Je,gt)}:function(ne,ve,Ae,Je){Je===void 0&&(Je=Ae),ne[Je]=ve[Ae]}),F=o&&o.__setModuleDefault||(Object.create?function(ne,ve){Object.defineProperty(ne,"default",{enumerable:!0,value:ve})}:function(ne,ve){ne.default=ve}),re=o&&o.__exportStar||function(ne,ve){for(var Ae in ne)Ae!=="default"&&!Object.prototype.hasOwnProperty.call(ve,Ae)&&Z(ve,ne,Ae)},ge=o&&o.__importStar||function(ne){if(ne&&ne.__esModule)return ne;var ve={};if(ne!=null)for(var Ae in ne)Ae!=="default"&&Object.prototype.hasOwnProperty.call(ne,Ae)&&Z(ve,ne,Ae);return F(ve,ne),ve},ye=o&&o.__importDefault||function(ne){return ne&&ne.__esModule?ne:{default:ne}};Object.defineProperty(T,"__esModule",{value:!0}),T.helpers=T.EMPTY_DOCUMENT=T.MARKS=T.INLINES=T.BLOCKS=void 0,Object.defineProperty(T,"BLOCKS",{enumerable:!0,get:i(function(){return d.BLOCKS},"get")}),Object.defineProperty(T,"INLINES",{enumerable:!0,get:i(function(){return f.INLINES},"get")}),Object.defineProperty(T,"MARKS",{enumerable:!0,get:i(function(){return ye(p).default},"get")}),re(m,T),re(R,T),re(D,T),Object.defineProperty(T,"EMPTY_DOCUMENT",{enumerable:!0,get:i(function(){return ye(L).default},"get")});var Be=ge(U);T.helpers=Be});s(H);var ue=H.helpers,Y=H.EMPTY_DOCUMENT,G=H.MARKS,J=H.INLINES,oe=H.BLOCKS,te,se,Fe=i(function(k){return'"'.concat(k.replace(/"/g,"&quot;"),'"')},"attributeValue"),Ve=(te={},te[oe.PARAGRAPH]=function(k,T){return"<p>".concat(T(k.content),"</p>")},te[oe.HEADING_1]=function(k,T){return"<h1>".concat(T(k.content),"</h1>")},te[oe.HEADING_2]=function(k,T){return"<h2>".concat(T(k.content),"</h2>")},te[oe.HEADING_3]=function(k,T){return"<h3>".concat(T(k.content),"</h3>")},te[oe.HEADING_4]=function(k,T){return"<h4>".concat(T(k.content),"</h4>")},te[oe.HEADING_5]=function(k,T){return"<h5>".concat(T(k.content),"</h5>")},te[oe.HEADING_6]=function(k,T){return"<h6>".concat(T(k.content),"</h6>")},te[oe.EMBEDDED_ENTRY]=function(k,T){return"<div>".concat(T(k.content),"</div>")},te[oe.EMBEDDED_RESOURCE]=function(k,T){return"<div>".concat(T(k.content),"</div>")},te[oe.UL_LIST]=function(k,T){return"<ul>".concat(T(k.content),"</ul>")},te[oe.OL_LIST]=function(k,T){return"<ol>".concat(T(k.content),"</ol>")},te[oe.LIST_ITEM]=function(k,T){return"<li>".concat(T(k.content),"</li>")},te[oe.QUOTE]=function(k,T){return"<blockquote>".concat(T(k.content),"</blockquote>")},te[oe.HR]=function(){return"<hr/>"},te[oe.TABLE]=function(k,T){return"<table>".concat(T(k.content),"</table>")},te[oe.TABLE_ROW]=function(k,T){return"<tr>".concat(T(k.content),"</tr>")},te[oe.TABLE_HEADER_CELL]=function(k,T){return"<th>".concat(T(k.content),"</th>")},te[oe.TABLE_CELL]=function(k,T){return"<td>".concat(T(k.content),"</td>")},te[J.ASSET_HYPERLINK]=function(k){return we(J.ASSET_HYPERLINK,k)},te[J.ENTRY_HYPERLINK]=function(k){return we(J.ENTRY_HYPERLINK,k)},te[J.RESOURCE_HYPERLINK]=function(k){return Xe(J.RESOURCE_HYPERLINK,k)},te[J.EMBEDDED_ENTRY]=function(k){return we(J.EMBEDDED_ENTRY,k)},te[J.EMBEDDED_RESOURCE]=function(k){return Xe(J.EMBEDDED_RESOURCE,k)},te[J.HYPERLINK]=function(k,T){var Z=typeof k.data.uri=="string"?k.data.uri:"";return"<a href=".concat(Fe(Z),">").concat(T(k.content),"</a>")},te),Pe=(se={},se[G.BOLD]=function(k){return"<b>".concat(k,"</b>")},se[G.ITALIC]=function(k){return"<i>".concat(k,"</i>")},se[G.UNDERLINE]=function(k){return"<u>".concat(k,"</u>")},se[G.CODE]=function(k){return"<code>".concat(k,"</code>")},se[G.SUPERSCRIPT]=function(k){return"<sup>".concat(k,"</sup>")},se[G.SUBSCRIPT]=function(k){return"<sub>".concat(k,"</sub>")},se),we=i(function(k,T){return"<span>type: ".concat(n(k)," id: ").concat(n(T.data.target.sys.id),"</span>")},"defaultInline"),Xe=i(function(k,T){return"<span>type: ".concat(n(k)," urn: ").concat(n(T.data.target.sys.urn),"</span>")},"defaultInlineResource");function Tt(k,T){return T===void 0&&(T={}
1),!k||!k.content?"":at(k.content,{renderNode:t(t({},Ve),T.renderNode),renderMark:t(t({},Pe),T.renderMark),preserveWhitespace:T.preserveWhitespace})}i(Tt,"documentToHtmlString");function at(k,T){var Z=T.renderNode,F=T.renderMark,re=T.preserveWhitespace;return k.map(function(ge){return Xt(ge,{renderNode:Z,renderMark:F,preserveWhitespace:re})}).join("")}i(at,"nodeListToHtmlString");function Xt(k,T){var Z=T.renderNode,F=T.renderMark,re=T.preserveWhitespace;if(ue.isText(k)){var ge=n(k.value);return re&&(ge=ge.replace(/\n/g,"<br/>").replace(/ {2,}/g,function(Be){return"&nbsp;".repeat(Be.length)})),k.marks.length>0?k.marks.reduce(function(Be,ne){return F[ne.type]?F[ne.type](Be):Be},ge):ge}else{var ye=i(function(Be){return at(Be,{renderMark:F,renderNode:Z,preserveWhitespace:re})},"nextNode");return!k.nodeType||!Z[k.nodeType]?"":Z[k.nodeType](k,ye)}}i(Xt,"nodeToHtmlString"),e.documentToHtmlString=Tt}),J1=xr((e,t)=>{(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self,r["fast-copy"]=n())})(e,function(){"use strict";var r=Function.prototype.toString,n=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getPrototypeOf,u=Object.prototype,f=u.hasOwnProperty,v=u.propertyIsEnumerable,p=typeof c=="function",m=typeof WeakMap=="function",h=(function(){if(m)return function(){return new WeakMap};var R=(function(){function D(){this._keys=[],this._values=[]}return i(D,"Cache"),D.prototype.has=function(L){return!!~this._keys.indexOf(L)},D.prototype.get=function(L){return this._values[this._keys.indexOf(L)]},D.prototype.set=function(L,U){this._keys.push(L),this._values.push(U)},D})();return function(){return new R}})(),y=i(function(R,D){var L=R.__proto__||d(R);if(!L)return n(null);var U=L.constructor;if(U===D.Object)return L===D.Object.prototype?{}:n(L);if(~r.call(U).indexOf("[native code]"))try{return new U}catch(be){}return n(L)},"getCleanClone"),b=i(function(R,D,L,U){var be=y(R,D);U.set(R,be);for(var ie in R)f.call(R,ie)&&(be[ie]=L(R[ie],U));if(p)for(var x=c(R),H=0,ue=x.length,Y=void 0;H<ue;++H)Y=x[H],v.call(R,Y)&&(be[Y]=L(R[Y],U));return be},"getObjectCloneLoose"),_=i(function(R,D,L,U){var be=y(R,D);U.set(R,be);for(var ie=p?s(R).concat(c(R)):s(R),x=0,H=ie.length,ue=void 0,Y=void 0;x<H;++x)if(ue=ie[x],ue!=="callee"&&ue!=="caller")if(Y=o(R,ue),Y){!Y.get&&!Y.set&&(Y.value=L(R[ue],U));try{a(be,ue,Y)}catch(G){be[ue]=Y.value}}else be[ue]=L(R[ue],U);return be},"getObjectCloneStrict"),N=i(function(R){var D="";return R.global&&(D+="g"),R.ignoreCase&&(D+="i"),R.multiline&&(D+="m"),R.unicode&&(D+="u"),R.sticky&&(D+="y"),D},"getRegExpFlags"),O=Array.isArray,P=Object.getPrototypeOf,j=(function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)})();function V(R,D){var L=!!(D&&D.isStrict),U=D&&D.realm||j,be=L?_:b,ie=i(function(x,H){if(!x||typeof x!="object")return x;if(H.has(x))return H.get(x);var ue=x.__proto__||P(x),Y=ue&&ue.constructor;if(!Y||Y===U.Object)return be(x,U,ie,H);var G;if(O(x)){if(L)return _(x,U,ie,H);G=new Y,H.set(x,G);for(var J=0,oe=x.length;J<oe;++J)G[J]=ie(x[J],H);return G}if(x instanceof U.Date)return new Y(x.getTime());if(x instanceof U.RegExp)return G=new Y(x.source,x.flags||N(x)),G.lastIndex=x.lastIndex,G;if(U.Map&&x instanceof U.Map)return G=new Y,H.set(x,G),x.forEach(function(te,se){G.set(se,ie(te,H))}),G;if(U.Set&&x instanceof U.Set)return G=new Y,H.set(x,G),x.forEach(function(te){G.add(ie(te,H))}),G;if(U.Blob&&x instanceof U.Blob)return x.slice(0,x.size,x.type);if(U.Buffer&&U.Buffer.isBuffer(x))return G=U.Buffer.allocUnsafe?U.Buffer.allocUnsafe(x.length):new Y(x.length),H.set(x,G),x.copy(G),G;if(U.ArrayBuffer){if(U.ArrayBuffer.isView(x))return G=new Y(x.buffer.slice(0)),H.set(x,G),G;if(x instanceof U.ArrayBuffer)return G=x.slice(0),H.set(x,G),G}return typeof x.then=="function"||x instanceof Error||U.WeakMap&&x instanceof U.WeakMap||U.WeakSet&&x instanceof U.WeakSet?x:be(x,U,ie,H)},"handleCopy");return ie(R,h())}
1return i(V,"copy"),V.default=V,V.strict=i(function(R,D){return V(R,{isStrict:!0,realm:D?D.realm:void 0})},"strictCopy"),V})}),Z1=xr((e,t)=>{"use strict";var r=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);t.exports=n=>!r.has(n&&n.code)}),Q1=xr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toSeconds=e.end=e.parse=e.pattern=void 0;var t="\\d+",r="".concat(t,"(?:[\\.,]").concat(t,")?"),n="(".concat(t,"Y)?(").concat(t,"M)?(").concat(t,"W)?(").concat(t,"D)?"),a="T(".concat(r,"H)?(").concat(r,"M)?(").concat(r,"S)?"),o="P(?:".concat(n,"(?:").concat(a,")?)"),s=["years","months","weeks","days","hours","minutes","seconds"],c=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0});e.pattern=new RegExp(o);var d=i(function(v){var p=v.replace(/,/g,".").match(e.pattern);if(!p)throw new RangeError("invalid duration: ".concat(v));var m=p.slice(1);if(m.filter(function(h){return h!=null}).length===0)throw new RangeError("invalid duration: ".concat(v));if(m.filter(function(h){return/\./.test(h||"")}).length>1)throw new RangeError("only the smallest unit can be fractional");return m.reduce(function(h,y,b){return h[s[b]]=parseFloat(y||"0")||0,h},{})},"parse");e.parse=d;var u=i(function(v,p){p===void 0&&(p=new Date);var m=Object.assign({},c,v),h=p.getTime(),y=new Date(h);y.setFullYear(y.getFullYear()+m.years),y.setMonth(y.getMonth()+m.months),y.setDate(y.getDate()+m.days);var b=m.hours*3600*1e3,_=m.minutes*60*1e3;return y.setMilliseconds(y.getMilliseconds()+m.seconds*1e3+b+_),y.setDate(y.getDate()+m.weeks*7),y},"end");e.end=u;var f=i(function(v,p){p===void 0&&(p=new Date);var m=Object.assign({},c,v),h=p.getTime(),y=new Date(h),b=(0,e.end)(m,y),_=p.getTimezoneOffset(),N=b.getTimezoneOffset(),O=(_-N)*60,P=(b.getTime()-y.getTime())/1e3;return P+O},"toSeconds");e.toSeconds=f,e.default={end:e.end,toSeconds:e.toSeconds,pattern:e.pattern,parse:e.parse}}),eD=xr((e,t)=>{(function(r,n){"use strict";var a="1.0.41",o="",s="?",c="function",d="undefined",u="object",f="string",v="major",p="model",m="name",h="type",y="vendor",b="version",_="architecture",N="console",O="mobile",P="tablet",j="smarttv",V="wearable",R="embedded",D=500,L="Amazon",U="Apple",be="ASUS",ie="BlackBerry",x="Browser",H="Chrome",ue="Edge",Y="Firefox",G="Google",J="Honor",oe="Huawei",te="Lenovo",se="LG",Fe="Microsoft",Ve="Motorola",Pe="Nvidia",we="OnePlus",Xe="Opera",Tt="OPPO",at="Samsung",Xt="Sharp",k="Sony",T="Xiaomi",Z="Zebra",F="Facebook",re="Chromium OS",ge="Mac OS",ye=" Browser",Be=i(function(ce,me){var X={};for(var Ce in ce)me[Ce]&&me[Ce].length%2===0?X[Ce]=me[Ce].concat(ce[Ce]):X[Ce]=ce[Ce];return X},"extend"),ne=i(function(ce){for(var me={},X=0;X<ce.length;X++)me[ce[X].toUpperCase()]=ce[X];return me},"enumerize"),ve=i(function(ce,me){return typeof ce===f?Ae(me).indexOf(Ae(ce))!==-1:!1},"has"),Ae=i(function(ce){return ce.toLowerCase()},"lowerize"),Je=i(function(ce){return typeof ce===f?ce.replace(/[^\d\.]/g,o).split(".")[0]:n},"majorize"),gt=i(function(ce,me){if(typeof ce===f)return ce=ce.replace(/^\s\s*/,o),typeof me===d?ce:ce.substring(0,D)},"trim"),Jr=i(function(ce,me){for(var X=0,Ce,At,yt,pe,$,kt;X<me.length&&!$;){var Ba=me[X],ul=me[X+1];for(Ce=At=0;Ce<Ba.length&&!$&&Ba[Ce];)if($=Ba[Ce++].exec(ce),$)for(yt=0;yt<ul.length;yt++)kt=$[++At],pe=ul[yt],typeof pe===u&&pe.length>0?pe.length===2?typeof pe[1]==c?this[pe[0]]=pe[1].call(this,kt):this[pe[0]]=pe[1]:pe.length===3?typeof pe[1]===c&&!(pe[1].exec&&pe[1].test)?this[pe[0]]=kt?pe[1].call(this,kt,pe[2]):n:this[pe[0]]=kt?kt.replace(pe[1],pe[2]):n:pe.length===4&&(this[pe[0]]=kt?pe[3].call(this,kt.replace(pe[1],pe[2])):n):this[pe]=kt||n;X+=2}},"rgxMapper"),Zr=i(function(ce,me){for(var X in me)if(typeof me[X]===u&&me[X].length>0){for(var Ce=0;Ce<me[X].length;Ce++)if(ve(me[X][Ce],ce))return X===s?n:X}else if(ve(me[X],ce))return X===s?n:X;return me.hasOwnProperty("*")?me["*"]:ce},"strMapper"),s1={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},dl={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ll={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,b],[/opios[\/ ]+([\w\.]+)/i],[b,[m,Xe+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[b,[m,Xe+" GX"]],[/\bopr\/([\w\.]+)/i],[b,[m,Xe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[m,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[b,[m,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,b],[/quark(?:pc)?\/([-\w\.]+)/i],[b,[m,"Quark"]],[/\bddg\/([\w\.]+)/i],[b,[m,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[m,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[m,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[m,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+
vendor: 11,044 bytes, line 1
1)/,"$1 Secure "+x],b],[/\bfocus\/([\w\.]+)/i],[b,[m,Y+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[m,Xe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[m,Xe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[m,"MIUI"+ye]],[/fxios\/([\w\.-]+)/i],[b,[m,Y]],[/\bqihoobrowser\/?([\w\.]*)/i],[b,[m,"360"]],[/\b(qq)\/([\w\.]+)/i],[[m,/(.+)/,"$1Browser"],b],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1"+ye],b],[/samsungbrowser\/([\w\.]+)/i],[b,[m,at+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[b,[m,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[m,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[m,b],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[m],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[b,m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,F],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[m,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[m,H+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,H+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[m,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[b,Zr,s1]],[/(webkit|khtml)\/([\w\.]+)/i],[m,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],b],[/(wolvic|librewolf)\/([\w\.]+)/i],[m,b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[m,Y+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[m,[b,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[m,[b,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[_,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[_,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[_,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[_,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[_,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[_,/ower/,o,Ae]],[/ sun4\w[;\)]/i],[[_,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[_,Ae]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[p,[y,at],[h,P]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[p,[y,at],[h,O]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[y,U],[h,O]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[y,U],[h,P]],[/(macintosh);/i],[p,[y,U]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[y,Xt],[h,O]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[p,[y,J],[h,P]],[/honor([-\w ]+)[;\)]/i],[p,[y,J],[h,O]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[p,[y,oe],[h,P]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[y,oe],[h,O]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[p,/_/g," "],[y,T],[h,P]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[p,/_/g," "],[y,T],[h,O]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[y,Tt],[h,O]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[p,[y,Zr,{OnePlus:["304","403","203"],"*":Tt}],[h,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[y,"Vivo"],[h,O]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[y,"Realme"],[h,O]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[y,Ve],[h,O]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[y,Ve],[h,P]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[y,se],[h,P]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[y,se],[h,O]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[p,[y,te],[h,P]],[/(nokia) (t[12][01])/i],[y,p,[h,P]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[p,/_/g," "],[h,O],[y,"Nokia"]],[/(pixel (c|tablet))\b/i],[p,[y,G],[h,P]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[y,G],[h,O]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[y,k],[h,O]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[y,k],[h,P]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[y,we],[h,O]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[y,L],[h,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[y,L],[h,O]],[/(playbook);[-\w\),; ]+(rim)/i],[p,y,[h,P]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[y,ie],[h,O]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[y,be],[h,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[y,be],[h,O]],[/(nexus 9)/i],[p,[y,"HTC"],[h,P]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[y,[p,/_/g," "],[h,O]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[p,[y,"TCL"],[h,P]],[/(itel) ((\w+))/i],[[y,Ae],p,[h,Zr,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[y,"Acer"],[h,P]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[y,"Meizu"],[h,O]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[y,"Ulefone"],[h,O]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[p,[y,"Energizer"],[h,O]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[p,[y,"Cat"],[h,O]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[p,[y,"Smartfren"],[h,O]],[/droid.+; (a(?:015|06[35]|142p?))/i],[p,[y,"Nothing"],[h,O]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[p,[y,"Archos"],[h,P]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[p,[y,"Archos"],[h,O]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[y,p,[h,P]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[y,p,[h,O]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[y,p,[h,P]],[/(surface duo)/i],[p,[y,Fe],[h,P]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[y,"Fairphone"],[h,O]],[/(u304aa)/i],[p,[y,"AT&T"],[h,O]],[/\bsie-(\w*)/i],[p,[y,"Siemens"],[h,O]],[/\b(rct\w+) b/i],[p,[y,"RCA"],[h,P]],[/\b(venue[\d ]{2,7}) b/i],[p,[y,"Dell"],[h,P]],[/\b(q(?:mv|ta)\w+) b/i],[p,[y,"Verizon"],[h,P]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[y,"Barnes & Noble"],[h,P]],[/\b(tm\d{3}\w+) b/i],[p,[y,"NuVision"],[h,P]],[/\b(k88) b/i],[p,[y,"ZTE"],[h,P]],[/\b(nx\d{3}j) b/i],[p,[y,"ZTE"],[h,O]],[/\b(gen\d{3}) b.+49h/i],[p,[y,"Swiss"],[h,O]],[/\b(zur\d{3}) b/i],[p,[y,"Swiss"],[h,P]],[/\b((zeki)?tb.*\b) b/i],[p,[y,"Zeki"],[h,P]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[y,"Dragon Touch"],p,[h,P]],[/\b(ns-?\w{0,9}) b/i],[p,[y,"Insignia"],[h,P]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[y,"NextBook"],[h,P]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],p,[h,O]],[/\b(lvtel\-)?(v1[12]) b/i],[[y,"LvTel"],p,[h,O]],[/\b(ph-1) /i],[p,[y,"Essential"],[h,O]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[y,"Envizen"],[h,P]],[/\b(trio[-\w\. ]+) b/i],[p,[y,"MachSpeed"],[h,P]],[/\btu_(1491) b/i],[p,[y,"Rotor"],[h,P]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[p,[y,Pe],[h,P]],[/(sprint) (\w+)/i],[y,p,[h,O]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[y,Fe],[h,O]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[y,Z],[h,P]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[y,Z],[h,O]],[/smart-tv.+(samsung)/i],[y,[h,j]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[y,at],[h,j]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[y,se],[h,j]],[/(apple) ?tv/i],[y,[p,U+" TV"],[h,j]],[/crkey/i],[[p,H+"cast"],[y,G],[h,j]],[/droid.+aft(\w+)( bui|\))/i],[p,[y,L],[h,j]],[/(shield \w+ tv)/i],[p,[y,Pe],[h,j]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[y,Xt],[h,j]],[/(bravia[\w ]+)( bui|\))/i],[p,[y,k],[h,j]],[/(mi(tv|box)-?\w+) bui/i],[p,[y,T],[h,j]],[/Hbbtv.*(technisat) (.*);/i],[y,p,[h,j]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[y,gt],[p,gt],[h,j]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[p,[h,j]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,j]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,p,[h,N]],[/droid.+; (shield)( bui|\))/i],[p,[y,Pe],[h,N]],[/(playstation \w+)/i],[p,[y,k],[h,N]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[y,Fe],[h,N]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[p,[y,at],[h,V]],[/((pebble))app/i,/(asu
vendor: 2,013 bytes, line 1
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[y,p,[h,V]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[p,[y,Tt],[h,V]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[y,U],[h,V]],[/(opwwe\d{3})/i],[p,[y,we],[h,V]],[/(moto 360)/i],[p,[y,Ve],[h,V]],[/(smartwatch 3)/i],[p,[y,k],[h,V]],[/(g watch r)/i],[p,[y,se],[h,V]],[/droid.+; (wt63?0{2,3})\)/i],[p,[y,Z],[h,V]],[/droid.+; (glass) \d/i],[p,[y,G],[h,V]],[/(pico) (4|neo3(?: link|pro)?)/i],[y,p,[h,V]],[/; (quest( \d| pro)?)/i],[p,[y,F],[h,V]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[y,[h,R]],[/(aeobc)\b/i],[p,[y,L],[h,R]],[/(homepod).+mac os/i],[p,[y,U],[h,R]],[/windows iot/i],[[h,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[h,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[h,P]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,P]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,O]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[p,[y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[m,ue+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[m,b],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,b],[/ladybird\//i],[[m,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,b],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[m,[b,Zr,dl]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,Zr,dl],[m,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,ge],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,m],[/(ubuntu) ([\w\.]+) like android/i],[[m,/(.+
1)/,"$1 Touch"],b],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[m,b],[/\(bb(10);/i],[b,[m,ie]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[b,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[m,Y+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[m,H+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,re],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[m,b],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,b]]},ot=i(function(ce,me){if(typeof ce===u&&(me=ce,ce=n),!(this instanceof ot))return new ot(ce,me).getResult();var X=typeof r!==d&&r.navigator?r.navigator:n,Ce=ce||(X&&X.userAgent?X.userAgent:o),At=X&&X.userAgentData?X.userAgentData:n,yt=me?Be(ll,me):ll,pe=X&&X.userAgent==Ce;return this.getBrowser=function(){var $={};return $[m]=n,$[b]=n,Jr.call($,Ce,yt.browser),$[v]=Je($[b]),pe&&X&&X.brave&&typeof X.brave.isBrave==c&&($[m]="Brave"),$},this.getCPU=function(){var $={};return $[_]=n,Jr.call($,Ce,yt.cpu),$},this.getDevice=function(){var $={};return $[y]=n,$[p]=n,$[h]=n,Jr.call($,Ce,yt.device),pe&&!$[h]&&At&&At.mobile&&($[h]=O),pe&&$[p]=="Macintosh"&&X&&typeof X.standalone!==d&&X.maxTouchPoints&&X.maxTouchPoints>2&&($[p]="iPad",$[h]=P),$},this.getEngine=function(){var $={};return $[m]=n,$[b]=n,Jr.call($,Ce,yt.engine),$},this.getOS=function(){var $={};return $[m]=n,$[b]=n,Jr.call($,Ce,yt.os),pe&&!$[m]&&At&&At.platform&&At.platform!="Unknown"&&($[m]=At.platform.replace(/chrome os/i,re).replace(/macos/i,ge)),$},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Ce},this.setUA=function($){return Ce=typeof $===f&&$.length>D?gt($,D):$,this},this.setUA(Ce),this},"UAParser");ot.VERSION=a,ot.BROWSER=ne([m,b,v]),ot.CPU=ne([_]),ot.DEVICE=ne([p,y,h,N,O,j,P,V,R]),ot.ENGINE=ot.OS=ne([m,b]),typeof e!==d?(typeof t!==d&&t.exports&&(e=t.exports=ot),e.UAParser=ot):typeof define===c&&define.amd?define(function(){return ot}):typeof r!==d&&(r.UAParser=ot);var ur=typeof r!==d&&(r.jQuery||r.Zepto);if(ur&&!ur.ua){var Gn=new ot;ur.ua=Gn.getResult(),ur.ua.get=function(){return Gn.getUA()},ur.ua.set=function(ce){Gn.setUA(ce);var me=Gn.getResult();for(var X in me)ur.ua[X]=me[X]}}})(typeof window=="object"?window:e)}),tD=xr((e,t)=>{t.exports={$schema:"https://sdk.client-config.siriusxm.com/4.0.0-env.json",config:{domains:{autoadapt:{baseUrl:"",endPoints:{getRadioState:{headers:{},href:"radio-manager/v1/drss/radios/{radioId}",method:"GET",timeout:15,isExemptFromNearZeroMode:!0}},retry:{delaySeconds:2,maxRetryCount:3},extras:{isNearZeroModeAvailable:!1}},clientorch:{baseUrl:"",endPoints:{getFeatureTipsEnabled:{headers:{Authorization:"Bearer {accessToken}"},href:"nudges/v1/nudges/settings/feature-tips-enabled",method:"GET",timeout:15},getNudge:{headers:{Authorization:"Bearer {accessToken}"},href:"nudges/v1/nudges",method:"GET",timeout:15},poll:{headers:{Authorization:"Bearer {accessToken}"},href:"state-sync/v1/poll",method:"POST",timeout:15,isDisabled:!0},putFeatureTipsEnabled:{headers:{Authorization:"Bearer {accessToken}"}
1,href:"nudges/v1/nudges/settings/feature-tips-enabled",method:"PUT",timeout:15},putNudgeFeedback:{headers:{Authorization:"Bearer {accessToken}"},href:"nudges/v1/nudges/{nudgeId}/feedback",method:"PUT",timeout:15}},retry:{delaySeconds:2,maxRetryCount:3}},cmcd:{baseUrl:"",endPoints:{report:{headers:{"Content-Type":"application/cmcd"},href:"",method:"POST",timeout:15}},retry:{delaySeconds:2,maxRetryCount:3},extras:{cmcdBufferConfig:{flushOnBackground:!0,flushOnEventCount:50,flushOnLaunch:!0,flushOnLogout:!0,flushOnMinInterval:"PT30S",flushOnPowerDown:!0,maxEventBatchCount:100,maxStoredSizeBytes:1048576}}},commerce:{baseUrl:"",endPoints:{activatePartnerEntitlement:{headers:{Authorization:"Bearer {accessToken}"},href:"partnerentitlements/v1/activate/{partnerEntitlementId}",method:"PUT",timeout:15},confirmOrder:{headers:{Authorization:"Bearer {accessToken}"},href:"order/v1/orders/{orderId}/confirm",method:"PUT",timeout:15},createBillingProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles",method:"POST",timeout:15},createOrder:{headers:{Authorization:"Bearer {accessToken}"},href:"order/v1/orders",method:"POST",timeout:15},createPayment:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods/{paymentMethodId}/pay",method:"POST",timeout:15},createPaymentMethodsCardSetupToken:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods/card/setup-token",method:"POST",timeout:15},createPaymentMethodsFirstCardSetupToken:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/payment-methods/card/setup-token",method:"POST",timeout:15},createPaymentSetupToken:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/pay",method:"POST",timeout:15},deletePaymentMethod:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods/{paymentMethodId}",method:"DELETE",timeout:15},getBalanceDueDetails:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/balance-due",method:"GET",timeout:15},getBillingProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}",method:"GET",timeout:15},getBillingProfileNextBill:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/next-bill",method:"GET",timeout:15},getBillingProfilePaymentHistory:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-history",method:"GET",timeout:15},getDefaultBillingProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profile/default",method:"GET",timeout:15},getEffectiveEntitlements:{headers:{Authorization:"Bearer {accessToken}"},href:"entitlement/v1/effective-entitlements",method:"GET",timeout:15},getEntitlements:{headers:{Authorization:"Bearer {accessToken}"},href:"entitlement/v1/entitlements",method:"GET",timeout:15},getInvoice:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/invoices/{id}",method:"GET",timeout:15},getInvoices:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/invoices",method:"GET",timeout:15},getOrder:{headers:{Authorization:"Bearer {accessToken}"},href:"order/v1/orders/{orderId}",method:"GET",timeout:15},getPartnerEntitlements:{headers:{Authorization:"Bearer {accessToken}"},href:"partnerentitlements/v1/entitlements",method:"GET",timeout:15},getPaymentMethod:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods/{paymentMethodId}",method:"GET",timeout:15},getPaymentMethodHistory:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods/{paymentMethodId}/history",method:"GET",timeout:15},getPaymentMethods:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods",method:"GET",timeout:15},getDeviceSubscriptionStatus:{headers:{Authorization:"Bearer {accessToken}"},href:"screens-orchestrator/v1/dynamic-screens/subscription",method:"GET",timeout:15},getServiceLevel:{headers:{Authorization:"Bearer {accessToken}"},href:"trial-orchestrator/v1/service-level",method:"GET",timeout:15},grantAccessPartner:{headers:{Authorization:"Bearer {deviceGrant}"},href:"activation/v1/grant-access/partner",method:"PUT",timeout:15},grantEntitlement:{headers:{Authorization:"Bearer {accessToken}"},href:"entitlement/v1/entitlements",method:"POST",timeout:15},offerDetails:{headers:{Authorization:"Bearer {accessToken}"},href:"eligibility/v1/offers/catalog/{offerId}",method:"GET",timeout:15},offersChange:{headers:{Authorization:"Bearer {accessToken}"},href:"eligibility/v1/offers/change",method:"GET",timeout:15},offersNew:{headers:{Authorization:"Bearer {accessToken}"},href:"eligibility/v1/offers/new",method:"GET",timeout:15},offersSave:{headers:{Authorization:"Bearer {accessToken}"},href:"eligibility/v1/offers/save",method:"GET",timeout:15},postBalanceDuePaySelf:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/balance-due/pay",method:"POST",timeout:15},postPaymentMethods:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods",method:"POST",timeout:15},redeemGiftCard:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/balance/redeem-giftcard",method:"POST",timeout:15},registerGiftCard:{headers:{Authorization:"Bearer {accessToken}"},href:"giftcard/v1/giftcards",method:"POST",timeout:15},restore:{headers:{Authorization:"Bearer {accessToken}"},href:"activation/v1/restore/{restoreTarget}",method:"PUT",timeout:15},setBillingProfileDefaultPaymentMethod:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods/{paymentMethodId}/default",method:"POST",timeout:15},subscriptionForId:{headers:{Authorization:"Bearer {accessToken}"},href:"subscription/v1/subscriptions/{id}",method:"GET",timeout:15},subscriptions:{headers:{Authorization:"Bearer {accessToken}"},href:"subscription/v1/subscriptions",method:"GET",timeout:15},sync:{headers:{Authorization:"Bearer {accessToken}"},href:"activation/v1/sync/{syncTarget}",method:"PUT",timeout:15},updateBillingProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}",method:"PATCH",timeout:15},updatePaymentMethod:{headers:{Authorization:"Bearer {accessToken}"},href:"billing/v1/billing-profiles/{billingProfileId}/payment-methods/{paymentMethodId}",method:"PATCH",timeout:15}},retry:{delaySeconds:2,maxRetryCount:3}},config:{baseUrl:"",endPoints:{getLocalizations:{headers:{},href:"localizationservice/v1/localizations",method:"GET",timeout:15},renderApplicationConfigWithSession:{headers:{Authorization:"Bearer {accessToken}"},href:"configservice/v1/applications/{id}/configs/{version}/me",method:"GET",timeout:15,doesNotTriggerSessionRefresh:!0},renderApplicationConfigV2WithSession:{headers:{Authorization:"Bearer {accessToken}"},href:"configservice/v2/applications/{id}/configs/{version}/me",method:"GET",timeout:15,doesNotTriggerSessionRefresh:!0},renderApplicationConfigV2WithSessionInternal:{headers:{Authorization:"Bearer {accessToken}"},href:"configservice/v2/applications/{id}/configs/{version}/me",method:"GET",timeout:15,doesNotTriggerSessionRefresh:!0,retry:{delaySeconds:0,maxRetryCount:0}}},retry:{delaySeconds:2,maxRetryCount:3}},content:{baseUrl:"",endPoints:{browseContainerView:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v1/pages/{pageEntityType}/{pageEntityId}/containers/{containerId}/view",method:"POST",timeout:15},browseContainerViewV2:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v2/pages/{pageEntityType}/{pageEntityId}/containers/{containerId}/view",method:"POST",timeout:15},browsePageView:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v1/pages/{pageEntityType}/{pageEntityId}/view",method:"POST",timeout:15},browsePageViewExportV2:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v2/pages/{pageEntityType}/{pageEntityId}/view/export",method:"POST",timeout:15},browsePageViewV2:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v2/pages/{pageEntityType}/{pageEntityId}/view",method:"POST",timeout:15},bulkEdit:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/bulk-edit",method:"POST",timeout:15},bulkEditV2:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v2/library/bulk-edit",method:"POST",timeout:15},channelPeek:{headers:{Authorization:"Bearer {accessToken}"},href:"channel-guide/v1/channel/{entityId}/peek",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},confirmInteractiveSubmissionUpload:{headers:{Authorization:"Bearer {accessToken}"},href:"interactive/v1/interactives/{interactiveId}/submissions/{submissionId}/confirm",method:"PUT",timeout:15},createInteractivePresignedUrl:{headers:{Authorization:"Bearer {accessToken}"},href:"interactive/v1/interactives/{interactiveId}/submissions/presigned-url",method:"POST",timeout:15},createInteractiveSubmission:{headers:{Authorization:"Bearer {accessToken}"},href:"interactive/v1/interactives/{interactiveId}/submissions",method:"POST",timeout:15},getActiveEventChannelsForTeams:{headers:{Authorization:"Bearer {accessToken}"}
1,href:"relationship/v1/presets/teams",method:"GET",timeout:15},getAllGlobalNotificationItemsV2:{headers:{Authorization:"Bearer {accessToken}"},href:"content-global-notification/v2/notification/all",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getAllLibraryItems:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/all",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getAllNotificationItems:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/notification/all",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getItemCoreEntityHydrationV2:{headers:{Authorization:"Bearer {accessToken}"},href:"hydration/v2/hydration/item-core/{entityType}/{entityId}",method:"GET",timeout:15},getAutoDownloadFilterViews:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v3/autodownload/filter-views",method:"POST",timeout:15},getAutoDownloadNewEpisodes:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v2/autodownload/new-podcast-episodes",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getAutoDownloadShowPodcasts:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v2/autodownload/show-podcast",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getBrowseAtEdgeMetadataV2:{headers:{Authorization:"Bearer {accessToken}"},href:"https://browse-at-edge.siriusxm.com/public/v2/all-channels/metadata",method:"GET",timeout:15},getBrowseAtEdgePageView:{headers:{Authorization:"Bearer {accessToken}"},href:"https://browse-at-edge.siriusxm.com/v1/all-channels",method:"GET",timeout:15},getBrowseAtEdgePageViewV2:{headers:{Authorization:"Bearer {accessToken}"},href:"https://browse-at-edge.siriusxm.com/v2/all-channels",method:"GET",timeout:15},getBrowseContainerView:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v1/pages/{pageEntityType}/{pageEntityId}/containers/{containerId}",method:"GET",timeout:15},getBrowseContainerViewV2:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v2/pages/{pageEntityType}/{pageEntityId}/containers/{containerId}",method:"GET",timeout:15},getBrowsePageView:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v1/pages/{pageEntityType}/{pageEntityId}",method:"GET",timeout:15},getBrowsePageViewV2:{headers:{Authorization:"Bearer {accessToken}"},href:"browse/v2/pages/{pageEntityType}/{pageEntityId}",method:"GET",timeout:15},getContainer:{headers:{Authorization:"Bearer {accessToken}"},href:"{containerUrl}",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"},{name:"supportedEntityTypes",required:!1,value:"{supportedEntityTypes}"}],timeout:15},getFeedback:{headers:{Authorization:"Bearer {accessToken}"},href:"stations/v1/feedback/type/{contentEntityType}/id/{contentEntityId}",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getInteractives:{headers:{Authorization:"Bearer {accessToken}"},href:"interactive/v1/interactives",method:"GET",timeout:15},getLibraryFilters:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/filters",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getLibraryFilterViews:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/filter-views",method:"POST",timeout:15},getNewEpisodesView:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/new-episodes-view",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getNotificationFilters:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/notification/filters",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getNotificationFilterViews:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/notification/filter-views",method:"POST",timeout:15},getPage:{headers:{Authorization:"Bearer {accessToken}"},href:"page/v1/page/{entityType}/{entityId}",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getPivotingContainer:{headers:{Authorization:"Bearer {accessToken}"},href:"recommender/v1/container/pivoting",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getRelatedTaste:{headers:{Authorization:"Bearer {accessToken}"},href:"recommender/v1/get-related-taste",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getSetSegment:{headers:{Authorization:"Bearer {accessToken}"},href:"{paginationUrl}",method:"GET",queryParams:[{name:"offset",required:!0,value:"{offset}"},{name:"size",required:!0,value:"{size}"},{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getStationFeedback:{headers:{Authorization:"Bearer {accessToken}"},href:"stations/v1/station-feedback/station/type/{contentEntityType}/id/{contentEntityId}",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getTaste:{headers:{Authorization:"Bearer {accessToken}"},href:"recommender/v1/get-taste",method:"POST",timeout:15},getUserProgress:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/user-progress",method:"POST",timeout:15},getYourEpisodesView:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/your-episodes-view",method:"GET",queryParams:[{name:"entitlementHash",required:!1,value:"{entitlementHash}"}],timeout:15},getYourTastepicks:{headers:{Authorization:"Bearer {accessToken}"},href:"recommender/v1/your-tastepicks",method:"GET",timeout:15},getYourTastepicksSet:{headers:{Authorization:"Bearer {accessToken}"},href:"recommender/v1/container/your-tastepicks-set",method:"GET",timeout:15},globalNotificationBulkEditV2:{headers:{Authorization:"Bearer {accessToken}"},href:"content-global-notification/v2/notification/bulk-edit",method:"POST",timeout:15},lookupEntityOverviewsV2:{headers:{Authorization:"Bearer {accessToken}"}
1,href:"hydration/v2/hydration/entity-overview",method:"POST",timeout:15},migrateDownloads:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/download/migration",method:"POST",timeout:15},removeAllContentActivities:{headers:{Authorization:"Bearer {accessToken}"},href:"content-activity-service/v1/content-activity",method:"DELETE",timeout:15},removeAllGlobalNotificationItemsV2:{headers:{Authorization:"Bearer {accessToken}"},href:"content-global-notification/v2/notification/all",method:"DELETE",timeout:15},satelliteUpdateGlobalNotificationV2:{headers:{Authorization:"Bearer {accessToken}"},href:"content-global-notification/v2/notification/satellite-update",method:"POST",timeout:15},setTaste:{headers:{Authorization:"Bearer {accessToken}"},href:"recommender/v1/set-taste",method:"POST",timeout:15},settingsUpdateGlobalNotificationV2:{headers:{Authorization:"Bearer {accessToken}"},href:"content-global-notification/v2/notification/settings-update",method:"POST",timeout:15},subscribeAutoDownloadShowPodcast:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v2/autodownload/show-podcast/{entityId}",method:"PUT",timeout:15},tastePickerBulkUpdate:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/taste-picker-bulk-update",method:"POST",timeout:15},unsubscribeAutoDownloadShowPodcast:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v2/autodownload/show-podcast/{entityId}",method:"DELETE",timeout:15},updateContentActivity:{headers:{Authorization:"Bearer {accessToken}"},href:"content-activity-service/v1/content-activity",method:"POST",timeout:15},updateLibrary:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/update",method:"POST",timeout:15},updateLibraryV2:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v2/library/update",method:"POST",timeout:15},updateGlobalNotificationV2:{headers:{Authorization:"Bearer {accessToken}"},href:"content-global-notification/v2/notification/update",method:"POST",timeout:15},updateNotification:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/notification/update",method:"POST",timeout:15},updatePinsState:{headers:{Authorization:"Bearer {accessToken}"},href:"ondemand/v1/library/update-pins-state",method:"POST",timeout:15}},retry:{delaySeconds:2,maxRetryCount:3}},dynamicScreen:{baseUrl:"",endPoints:{dynamicPost:{headers:{Authorization:"Bearer {accessToken}"},href:"{url}",method:"POST",timeout:15}},retry:{delaySeconds:2,maxRetryCount:3}},image:{baseUrl:"https://imgsrv-sxm-prod-device.streaming.siriusxm.com/{encodedImageParams}",extras:{sizeMultiplier:1,defaultResize:{width:1080,height:1080},maxResize:{width:1920,height:1920}}},otel:{baseUrl:"",endPoints:{logs:{headers:{Authorization:"Bearer {accessToken}"},href:"otel/v1/logs",method:"POST",timeout:15},metrics:{headers:{Authorization:"Bearer {accessToken}"},href:"otel/v1/metrics",method:"POST",timeout:15},traces:{headers:{Authorization:"Bearer {accessToken}"},href:"otel/v1/traces",method:"POST",timeout:15}}},outreach:{baseUrl:"",endPoints:{getMessage:{headers:{Authorization:"Bearer {accessToken}"},href:"ivm/v1/ivm/message",method:"GET",timeout:15},getMessages:{headers:{Authorization:"Bearer {accessToken}"},href:"msg/v1/msg/message",method:"GET",timeout:15},marketingSMSOptIn:{headers:{Authorization:"Bearer {accessToken}"},href:"outreach/v1/sms/marketing/optin",method:"POST",timeout:15},postFeedbackEvent:{headers:{Authorization:"Bearer {accessToken}"},href:"ivm/v1/ivm/fev",method:"POST",timeout:15},sendJourneyLinkSms:{headers:{Authorization:"Bearer {accessToken}"},href:"outreach/v1/sms/journeys",method:"POST",timeout:15}},retry:{delaySeconds:2,maxRetryCount:3}},partnerIntegration:{baseUrl:"",endPoints:{acceptTermsAndConditions:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v1/accept-terms",method:"POST",timeout:15},acceptTermsAndConditionsV2:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v2/accept-terms",method:"POST",timeout:15},getDetailedDeviceState:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v1/detailed-state/device",method:"GET",timeout:15},getDetailedStateBySubscriptionId:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v1/detailed-state/subscription/{subscriptionId}",method:"GET",timeout:15},getDetailedStateHandoff:{headers:{Authorization:"Bearer {magicLinkGrant}"},href:"client-orchestration/v1/detailed-state-handoff/device",method:"GET",timeout:15},getDeviceVehicleState:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v1/device-vehicle-state",method:"GET",timeout:15},getStateByRadioId:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v1/state/radioId/{radioId}",method:"GET",timeout:15},getStateByVin:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v1/state/vin/{vin}",method:"GET",timeout:15},magicLinkRequest:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v1/request-magic-link",method:"POST",timeout:15},magicLinkRequestV2:{headers:{Authorization:"Bearer {accessToken}"},href:"client-orchestration/v2/request-magic-link",method:"POST",timeout:15},register:{headers:{"X-SXM-Tenant":"{tenantId}"},href:"client-orchestration/v1/register",method:"POST",timeout:15},registerSofaDevice:{headers:{},href:"client-orchestration/v2/virtual-devices",method:"POST",timeout:15},registerSofaDeviceKey:{headers:{},href:"client-orchestration/v2/register-key",method:"POST",timeout:15}},retry:{delaySeconds:2,maxRetryCount:3}},playback:{baseUrl:"",endPoints:{checkThumbprintRadioEligibility:{headers:{Authorization:"Bearer {accessToken}"},href:"playback/signal/v1/thumbprint-radio-eligibility",method:"GET",timeout:15},getDecryptionKeyFromKeyId:{headers:{Authorization:"Bearer {accessToken}"},href:"playback/key/v1/{keyId}",method:"GET",timeout:15},getDecryptionKeyFromURL:{headers:{Authorization:"Bearer {accessToken}"},href:"{url}",method:"GET",timeout:15},getAdContentHostname:{headers:{Authorization:"Bearer {accessToken}"},href:"playback/play/v1/sat-ad-content-hostname/{contentType}",method:"GET",timeout:15},getLookaround:{headers:{Authorization:"Bearer {accessToken}"},href:"https://lookaround-cache-prod.streaming.siriusxm.com/playbackservices/v1/live/lookAround",method:"GET",queryParams:[{name:"delta",required:!0,value:"{delta}"}],timeout:15},getLookaroundEpisodes:{headers:{Authorization:"Bearer {accessToken}"},href:"https://lookaround-cache-prod.streaming.siriusxm.com/playbackservices/v1/live/lookAroundEpisodes",method:"GET",timeout:15},getLookaroundEvents:{headers:{Authorization:"Bearer {accessToken}"},href:"https://lookaround-cache-prod.streaming.siriusxm.com/playbackservices/v1/live/lookAroundEvents",method:"GET",timeout:15},getPlaybackState:{headers:{Authorization:"Bearer {accessToken}"},href:"playbackservices/v1/playback-state/{entityType}/{entityId}",method:"GET",timeout:15},liveUpdate:{codingOptions:{dateFormat:"yyyy-MM-dd'T'HH:mm:ss.SSSZ"},headers:{Authorization:"Bearer {accessToken}"},href:"playback/play/v1/liveUpdate",method:"POST",timeout:15},peek:{codingOptions:{dateFormat:"yyyy-MM-dd'T'HH:mm:ss.SSSZ"},headers:{Authorization:"Bearer {accessToken}"},href:"playback/play/v1/peek",method:"POST",timeout:15},previous:{codingOptions:{dateFormat:"yyyy-MM-dd'T'HH:mm:ss.SSSZ"},headers:{Authorization:"Bearer {accessToken}"},href:"playback/play/v1/previous",method:"POST",timeout:15},sendFeedbackSignal:{headers:{Authorization:"Bearer {accessToken}"},href:"playback/signal/v1/feedback",method:"POST",timeout:15},skip:{codingOptions:{dateFormat:"yyyy-MM-dd'T'HH:mm:ss.SSSZ"},headers:{Authorization:"Bearer {accessToken}"},href:"playback/play/v1/skip",method:"POST",timeout:15},sportEvent:{headers:{Authorization:"Bearer {accessToken}"},href:"https://sports-cache-prod.streaming.siriusxm.com/playbackservices/v1/sports/event/{eventId}/summary",method:"GET",timeout:15},sportScores:{disableCaching:!0,headers:{Authorization:"Bearer {accessToken}"},href:"https://sports-cache-prod.streaming.siriusxm.com/playbackservices/v1/sports/event/{eventId}/scores",method:"GET",timeout:15}
1,telemetryBatchAction:{headers:{Authorization:"Bearer {accessToken}"},href:"playback/telemetry/v2/actions",method:"POST",timeout:15},telemetryEventV3:{headers:{Authorization:"Bearer {accessToken}"},href:"playback/telemetry/v3/events",method:"POST",timeout:15},tuneSource:{codingOptions:{dateFormat:"yyyy-MM-dd'T'HH:mm:ss.SSSZ"},headers:{Authorization:"Bearer {accessToken}"},href:"playback/play/v1/tuneSource",method:"POST",timeout:15},updatePlaybackState:{headers:{Authorization:"Bearer {accessToken}"},href:"playbackservices/v1/playback-state/{entityType}/{entityId}",method:"PATCH",timeout:15},verifyEnforcement:{disableCaching:!0,headers:{Authorization:"Bearer {accessToken}"},href:"playback/stream-enforcement/v1/status",method:"GET",timeout:15}},extras:{encryptedSources:["artist-station","channel-linear","channel-xtra","episode-audio","episode-podcast","episode-video","station"],keyRegex:"^https:[/][/].*?[/]key[/]v[0-9]+[/]([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})[/]?$",manifestVariantMap:{},mediaFormat:{"artist-station":"HLS"},telemetryBufferConfig:{flushOnBackground:!0,flushOnEventCount:1,flushOnLaunch:!0,flushOnLogout:!0,flushOnMinInterval:"PT10S",flushOnPowerDown:!0,maxEventBatchCount:1,maxStoredSizeBytes:1048576},telemetryBufferConfigV3:{flushOnBackground:!0,flushOnEventCount:10,flushOnLaunch:!0,flushOnLogout:!1,flushOnMinInterval:"PT10S",flushOnPowerDown:!0,maxEventBatchCount:20,maxStoredSizeBytes:1048576}},retry:{delaySeconds:2,maxRetryCount:3}},search:{baseUrl:"",endPoints:{autosuggest:{headers:{Authorization:"Bearer {accessToken}"},href:"search/v1/autosuggest",method:"POST",timeout:15},experienceAutosuggest:{headers:{Authorization:"Bearer {accessToken}"},href:"search/v2/autosuggest",method:"POST",timeout:15},experienceHistory:{headers:{Authorization:"Bearer {accessToken}"},href:"search/v2/history",method:"POST",timeout:15},getExperienceSearchResults:{headers:{Authorization:"Bearer {accessToken}"},href:"search/v2/search",method:"POST",timeout:15},getHistory:{headers:{Authorization:"Bearer {accessToken}"},href:"search/v1/history",method:"POST",timeout:15},getSearchFilters:{headers:{Authorization:"Bearer {accessToken}"},href:"search/v1/getSearchFilters",method:"GET",timeout:15},getSearchResults:{headers:{Authorization:"Bearer {accessToken}"},href:"search/v1/search",method:"POST",timeout:15}},retry:{delaySeconds:2,maxRetryCount:0}},time:{baseUrl:"",endPoints:{getMetronome:{headers:{},href:"time/v1/metronome",method:"GET",timeout:15}},extras:{metronomeEnabled:!0,initializationPollInterval:"PT5S",latencyBufferLength:3,maxDiscrepancyInterval:"PT5S",maxTwoWayLatency:"PT15S",postInitializationPollInterval:"PT30M",latencyBufferMinWeight:.2,latencyBufferMaxWeight:1,longMetronomeLatencyEventEnabled:!0,driftDetectionEnabled:!0,maxAllowedDrift:"PT5S"},retry:{delaySeconds:0,maxRetryCount:0}},user:{baseUrl:"",endPoints:{anonymous:{headers:{Authorization:"Bearer {deviceGrant}"},href:"session/v1/sessions/anonymous",method:"POST",timeout:15},authenticated:{headers:{Authorization:"Bearer {identityGrant}"},href:"session/v1/sessions/authenticated",method:"POST",timeout:15},authenticateMagicLink:{headers:{Authorization:"Bearer {magicLinkGrant}"},href:"identity/v2/identities/authenticate/magic-link",method:"POST",timeout:15},authenticatePassword:{headers:{Authorization:"Bearer {accessToken}"},href:"identity/v1/identities/authenticate/password",method:"POST",timeout:15},b2bTrialClaim:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v1/b2btrial/claim",method:"POST",timeout:15},bypassTastePickingPreference:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v2/profiles/tastepicker",method:"PATCH",timeout:15},changeHandleToEmailHandle:{headers:{Authorization:"Bearer {accessToken}"},href:"identity-group/v1/identitygroups/change-handle",method:"PUT",timeout:15},changePassword:{headers:{Authorization:"Bearer {accessToken}"},href:"identity-group/v1/identitygroups/change-password",method:"POST",timeout:15},changePhoneNumber:{headers:{Authorization:"Bearer {accessToken}"},href:"identity-group/v1/identitygroups/change-phone-number",method:"POST",timeout:15},checkSalStatus:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v3/sal",method:"GET",timeout:15},create:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v1/identities/create",method:"POST",timeout:15},createAdditionalRootAccountProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v3/profiles/root-account",method:"POST",timeout:15},createAutomotiveSession:{headers:{Authorization:"Bearer {profileGrant}"},href:"session/v1/sessions/device/automotive",method:"POST",timeout:15},createDeviceAuthorizationSessionHelios:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/device-authorization/automotive/sessions/create",method:"POST",timeout:15},createV2:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v2/identities/create",method:"POST",timeout:15},createAuthenticationChallenge:{headers:{},href:"device/v2/device-authentication/challenge",method:"POST",timeout:15},createDeviceSession:{headers:{Authorization:"Bearer {vehicleProfileGrant}"},href:"session/v1/sessions/device",method:"POST",timeout:15},createSamplingSession:{headers:{Authorization:"Bearer {profileGrant}"},href:"session/v1/sessions/sampling",method:"POST",timeout:15},createSubmissionContact:{headers:{Authorization:"Bearer {accessToken}"},href:"user-meta/v1/submissionContact",method:"POST",timeout:15},deactivateProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v3/profiles/deactivate",method:"PATCH",timeout:15},delete:{headers:{Authorization:"Bearer {accessToken}"},href:"orchestration/v1/identities",method:"DELETE",timeout:15},devices:{headers:{"X-SXM-Platform":"{platformName}","X-SXM-Tenant":"{tenantId}"},href:"device/v1/devices",method:"POST",timeout:15},devicesV2:{headers:{},href:"device/v2/devices",method:"POST",timeout:15},dmpCreateLWALinking:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/alexa/lwa/link",method:"POST",timeout:15},dmpGenerateLWAUrl:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/alexa/lwa/generate-url",method:"POST",timeout:15},dmpListConnectedDevices:{headers:{Authorization:"Bearer {accessToken}"},href:"dmp/v1/connected-devices",method:"GET",timeout:15},dmpListLinkedServices:{headers:{Authorization:"Bearer {accessToken}"},href:"dmp/v1/linked-services",method:"GET",timeout:15},dmpRenameDevice:{headers:{Authorization:"Bearer {accessToken}"},href:"dmp/v1/connected-device/rename/{deviceId}",method:"POST",timeout:15},dmpRevokeSessions:{headers:{Authorization:"Bearer {accessToken}"},href:"dmp/v1/sessions/revoke",method:"POST",timeout:15},getAccount:{headers:{Authorization:"Bearer {accessToken}"},href:"account/v3/accounts/me",method:"GET",timeout:15},getAllRootAccountProfiles:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v3/profiles/root-account",method:"GET",timeout:15},getIdentity:{headers:{Authorization:"Bearer {accessToken}"},href:"identity/v1/identities/me",method:"GET",timeout:15},getOrCreateRootAccountProfile:{headers:{Authorization:"Bearer {deviceGrant}"},href:"uso-service/v1/profiles/root-account",method:"POST",timeout:15},getProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v3/profiles/me",method:"GET",timeout:15},getUserProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v4/profiles/me",method:"GET",timeout:15},getSubmissionContact:{headers:{Authorization:"Bearer {accessToken}"},href:"user-meta/v1/submissionContact/me",method:"GET",timeout:15},createAutoProfile:{headers:{Authorization:"Bearer {deviceGrant}"},href:"profile/v2/profiles/auto",method:"POST",timeout:15},generateUserCodeHelios:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/device-authorization/automotive/user-codes/generate",method:"POST",timeout:15},issueCastingGrant:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/casting/grants/issue",method:"POST",timeout:15},linkCodeAuthorize:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/sonos/link-codes/authorize",method:"POST",timeout:15},magicLinkRedeem:{headers:{Authorization:"Bearer {accessToken}"},href:"magic-link/v1/redeem/{magicLinkId}",method:"POST",timeout:15},magicLinkRequest:{headers:{},href:"client-orchestration/v1/request-magic-link",method:"POST",timeout:15},migrateDeviceGrant:{headers:{Authorization:"Bearer {deviceGrant}"},href:"device/v1/grant/migration",method:"POST",timeout:15},migrateDeviceGrantV2:{headers:{Authorization:"Bearer {deviceGrant}"},href:"device/v2/grant/migration",method:"POST",timeout:15},migrateSession:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/sessions/migrate",method:"POST",timeout:15},oauthThirdParty:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/oauth/auth-code",method:"POST",timeout:15},otpAuthenticate:{headers:{Authorization:"Bearer {otpGrant}"},href:"identity/v1/identities/authenticate/otp",method:"POST",timeout:15},otpInitiate:{headers:{Authorization:"Bearer {accessToken}"},href:"otp/v1/otp/initiate",method:"POST",timeout:15},otpInitiateVerification:{headers:{Authorization:"Bearer {accessToken}"},href:"otp/v1/otp/initiate/verification",method:"POST",timeout:15},otpRedeem:{headers:{Authorization:"Bearer {accessToken}"},href:"otp/v1/otp/redeem",method:"PUT",timeout:15},passkeyAuthenticateFinish:{headers:{Authorization:"Bearer {challenge}"},href:"identity/v1/identities/authenticate/webauthn/finish",method:"POST",timeout:15},passkeyAuthenticateStart:{headers:{Authorization:"Bearer {accessToken}"},href:"identity/v1/identities/authenticate/webauthn/start",method:"POST",timeout:15},passkeyCreateFinish:{headers:{Authorization:"Bearer {challenge}"},href:"identity/v1/identities/create/webauthn/finish",method:"POST",timeout:15},passkeyCreateStart:{headers:{Authorization:"Bearer {accessToken}"},href:"identity/v1/identities/create/webauthn/start",method:"POST",timeout:15},preaccessCreate:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v1/preaccess",method:"POST",timeout:15},recordOfSaleExists:{headers:{Authorization:"Bearer {accessToken}"},href:"record-of-sale/v1/exists",method:"GET",timeout:15},recordOfSaleStatus:{headers:{Authorization:"Bearer {accessToken}"},href:"record-of-sale/v1/records/{smsSubscriptionId}/status",method:"GET",timeout:15},recordPrivacyOptionByIdentityId:{headers:{Authorization:"Bearer {accessToken}"},href:"privacy-options/v1/record/opt-out",method:"PUT",timeout:15},recordsLink:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v1/records/link",method:"PUT",timeout:15},recordsStatus:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v1/records/status",method:"GET",timeout:15},refresh:{headers:{Authorization:"Bearer {refreshToken}"},href:"session/v1/sessions/refresh",method:"POST",timeout:15,doesNotTriggerSessionRefresh:!0},refreshAutomotiveSession:{headers:{Authorization:"Bearer {refreshToken}"},href:"session/v1/sessions/refresh/automotive",method:"POST",timeout:15,doesNotTriggerSessionRefresh:!0},refreshDeviceGrant:{headers:{},href:"device/v1/grant/refresh",method:"POST",timeout:15,doesNotTriggerSessionRefresh:!0},refreshDeviceGrantV2:{headers:{},href:"device/v2/grant/refresh",method:"POST",timeout:15,doesNotTriggerSessionRefresh:!0},resetProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v3/profiles/reset",method:"PATCH",timeout:15},revokeSessions:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/sessions/revoke/all",method:"POST",timeout:15},sample:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v1/sample",method:"POST",timeout:15},status:{headers:{Authorization:"Bearer {accessToken}"},href:"identity/v1/identities/status",method:"GET",timeout:15},statusForSignUp:{headers:{Authorization:"Bearer {accessToken}"},href:"uso-service/v1/identities/status",method:"GET",timeout:15},switchProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v3/profiles/switch",method:"POST",timeout:15},updateAccount:{headers:{Authorization:"Bearer {accessToken}"},href:"account/v3/accounts",method:"PATCH",timeout:15},updateProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v3/profiles",method:"PATCH",timeout:15},updateUserProfile:{headers:{Authorization:"Bearer {accessToken}"},href:"profile/v2/profiles",method:"PATCH",timeout:15},userCodeAuthenticate:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/device-authorization/sessions/create",method:"POST",timeout:15},userCodeAuthorize:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/device-authorization/user-codes/authorize",method:"POST",timeout:15},userCodeGenerate:{headers:{Authorization:"Bearer {accessToken}"},href:"session/v1/device-authorization/user-codes/generate",method:"POST",timeout:15},verifyAuthenticationChallenge:{headers:{},href:"device/v2/device-authentication/grant",method:"POST",timeout:15}},extras:{minIntervalBetweenDeviceGrantRefreshes:"PT24H",minIntervalBetweenSessionPurges:"PT30S",isPasskeyEnabled:!0},retry:{delaySeconds:2,maxRetryCount:3}},userEvents:{baseUrl:"",endPoints:{submit:{compression:"gzip",headers:{Authorization:"Bearer {accessToken}"},href:"user-event/v1/events/submit",method:"POST",timeout:15}}
1,extras:{userEventsBufferConfig:{flushOnBackground:!0,flushOnEventCount:300,flushOnLaunch:!0,flushOnLogout:!0,flushOnMinInterval:"PT30M",flushOnPowerDown:!0,maxEventBatchCount:1024,maxStoredSizeBytes:1048576}},retry:{delaySeconds:2,maxRetryCount:3}},voice:{baseUrl:"",endPoints:{voiceAsText:{headers:{Authorization:"Bearer {accessToken}"},href:"voice/v1/voiceAsText",method:"POST",timeout:15},voiceAsTextV2:{headers:{Authorization:"Bearer {accessToken}"},href:"voice/v2/voiceAsText",method:"POST",timeout:15},voiceAsTextV3:{headers:{Authorization:"Bearer {accessToken}"},href:"voice/v3/voiceAsText",method:"POST",timeout:15},voiceSearchV3:{headers:{Authorization:"Bearer {accessToken}"},href:"voice/v3/voiceSearch",method:"POST",timeout:15}},retry:{delaySeconds:2,maxRetryCount:3}}},extras:{isTest:!1}}}});function dy({url:e,queryParams:t}){let r=new URL(e),n=new URLSearchParams(r.search);return Object.keys(t).forEach(a=>{n.set(a,t[a])}),r.search=n.toString(),r.toString()}i(dy,"addQueryParamsToExistingUrl");function Ue(){return typeof window>"u"}i(Ue,"inServerContext");function zt(){return Ue()?void 0:(decodeURIComponent(document.cookie)?.split(";")||[]).find(e=>e.trim().startsWith("AUTH_TOKEN"))?.trim()?.split("=")?.[1]}i(zt,"getAuthTokenCookieValue");function na(){if(Ue())return"";let[e,t]=document.domain.split(".").reverse();return e.toLowerCase()==="localhost"?"localhost":`.${t}.${e}`}i(na,"getDomainForCookie");function ly(){if(!Ue()&&zt()){let e="AUTH_TOKEN",t=na();document.cookie=e+"=;path=/"+(t?";domain="+t:"")+";expires=Thu, 01 Jan 1970 00:00:01 GMT"}}i(ly,"clearAuthCookie");function pc(){if(Ue())return;let e=window.location.hostname;if(e.split(".").length<=2)return;let t=new Set(["/",window.location.pathname]);for(let r of t)document.cookie=`LOGICAL_CLOCK=;path=${r};domain=${e};expires=Thu, 01 Jan 1970 00:00:01 GMT`}i(pc,"clearLegacyLogicalClockCookies");function Ur(){if(Ue())return"";let e=zt();return e&&JSON.parse(e)?.session?.accessToken||""}i(Ur,"getAccessToken");function qi(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}i(qi,"removeTime");function Lo(e){return qi(e)}i(Lo,"getDateWithoutTime");function uy(e){return Math.floor(Math.abs((Lo(new Date).getTime()-Lo(new Date(e)).getTime())/(1e3*3600*24)))}i(uy,"getDaysFromToday");function xo(e,t){let r=qi(e).getTime()-qi(t).getTime();return r<0?-1:r>0?1:0}i(xo,"compareDates");function my({referenceDate:e,startDate:t,endDate:r}){e=e??new Date;let n=t?xo(t,e)<=0:!0,a=r?xo(r,e)>=0:!0;return n&&a}i(my,"isInDateRange");function bn(e){return e.toUpperCase()}i(bn,"normalizeCountryCodeForClientSDK");function ir(e,t,r){let n=e.replace("-","_");return t.toLowerCase()==="ca"&&r&&["qc"].includes(r?.toLowerCase())?`${n}_${r.toUpperCase()}`:n}i(ir,"normalizeLangToLocaleForServiceCall");function Mo(e){return e.replace(/\s/g,"").toUpperCase()}i(Mo,"normalizeZipCodeForComparison");function Fr(e){return e.toUpperCase()}i(Fr,"normalizeVinForServiceCall");function Br(e){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e)?e:e.toUpperCase()}i(Br,"normalizeRadioIdForServiceCallWithSupportForUUID");function jt(){let e=zt();return e&&JSON.parse(e)?.session?.sessionType||"anonymous"}i(jt,"getAuthState");function fy(e){return Ue(),(decodeURIComponent(document.cookie)?.split(";")||[]).find(t=>t.trim().startsWith(e+"="))?.trim()!==void 0}i(fy,"cookieExists");function hc(e){if(!e)return null;let{region:t,countryCode:r}=e;return{countryCode:r,region:t,regionCode:gc({countryCode:r,region:t})}}i(hc,"getGeoLocationFromLocation");function py(){let e=zt();if(!e)return null;let t=JSON.parse(e);if(!t?.session?.location)return null;let{region:r,countryCode:n}=t.session.location;return{countryCode:n,region:r,regionCode:gc({countryCode:n,region:r})}}i(py,"getGeoLocation");function gc({countryCode:e,region:t}){return hy({countryCode:e,region:t,regions:rD})?.code||""}i(gc,"getRegionCode");function hy({countryCode:e,region:t,regions:r}){return r[e.toLowerCase()]?.find(({name:n})=>t.toUpperCase()===n.toUpperCase())||null}i(hy,"getRegionRecord");var rD={us:[{name:"ALABAMA",code:"AL"},{name:"ALASKA",code:"AK"},{name:"ARIZONA",code:"AZ"},{name:"ARKANSAS",code:"AR"},{name:"CALIFORNIA",code:"CA"},{name:"COLORADO",code:"CO"},{name:"CONNECTICUT",code:"CT"},{name:"DELAWARE",code:"DE"},{name:"FLORIDA",code:"FL"},{name:"GEORGIA",code:"GA"},{name:"HAWAII",code:"HI"},{name:"IDAHO",code:"ID"},{name:"ILLINOIS",code:"IL"},{name:"INDIANA",code:"IN"},{name:"IOWA",code:"IA"},{name:"KANSAS",code:"KS"},{name:"KENTUCKY",code:"KY"},{name:"LOUISIANA",code:"LA"},{name:"MAINE",code:"ME"},{name:"MARYLAND",code:"MD"},{name:"MASSACHUSETTS",code:"MA"},{name:"MICHIGAN",code:"MI"},{name:"MINNESOTA",code:"MN"},{name:"MISSISSIPPI",code:"MS"},{name:"MISSOURI",code:"MO"},{name:"MONTANA",code:"MT"},{name:"NEBRASKA",code:"NE"},{name:"NEVADA",code:"NV"},{name:"NEW HAMPSHIRE",code:"NH"},{name:"NEW JERSEY",code:"NJ"},{name:"NEW MEXICO",code:"NM"},{name:"NEW YORK",code:"NY"},{name:"NORTH CAROLINA",code:"NC"},{name:"NORTH DAKOTA",code:"ND"},{name:"OHIO",code:"OH"},{name:"OKLAHOMA",code:"OK"},{name:"OREGON",code:"OR"},{name:"PENNSYLVANIA",code:"PA"},{name:"RHODE ISLAND",code:"RI"},{name:"SOUTH CAROLINA",code:"SC"},{name:"SOUTH DAKOTA",code:"SD"},{name:"TENNESSEE",code:"TN"},{name:"TEXAS",code:"TX"},{name:"UTAH",code:"UT"},{name:"VERMONT",code:"VT"},{name:"VIRGINIA",code:"VA"},{name:"WASHINGTON",code:"WA"},{name:"WEST VIRGINIA",code:"WV"},{name:"WISCONSIN",code:"WI"},{name:"WYOMING",code:"WY"}],ca:[{name:"ALBERTA",code:"AB"},{name:"BRITISH COLUMBIA",code:"BC"},{name:"MANITOBA",code:"MB"},{name:"NEW BRUNSWICK",code:"NB"},{name:"NEWFOUNDLAND & LABRADOR",code:"NL"},{name:"NORTHWEST TERRITORIES",code:"NT"},{name:"NOVA SCOTIA",code:"NS"},{name:"NUNAVUT",code:"NU"},{name:"ONTARIO",code:"ON"},{name:"PRINCE EDWARD ISLAND",code:"PE"},{name:"QUEBEC",code:"QC"},{name:"SASKATCHEWAN",code:"SK"},{name:"YUKON",code:"YT"}]};function Uo(e,t){let r;return r=(t.getFullYear()-e.getFullYear())*12,r-=e.getMonth(),r+=t.getMonth(),r}i(Uo,"differenceInMonths");function gy(e,t,r){let n=Fo(e,t),a=_r(e),o=_r(t),s=_r(r);if(s<a)return{totalNumberOfDays:n,daysIn:0,percentageIn:0};if(s>o)return{totalNumberOfDays:n,daysIn:n,percentageIn:100};let c=Math.abs(Fo(e,r)),d=n===0?100:Math.floor(c/n*100);return{totalNumberOfDays:n,daysIn:c,percentageIn:d}}i(gy,"daysIntoDateRange");function _r(e){return new Date(Date.parse(e)).getTime()}i(_r,"getTimeFromUTC");function Fo(e,t){let r=_r(e),n=_r(t);if(r>n)throw new Error("The utcStart must be less than or equal to the utcEnd");return yy(r,n)}i(Fo,"getDaysBetweenUTC");function yy(e,t){return Math.round((t-e)/(1e3*3600*24))}i(yy,"getDaysBetweenTimestamp");var yc=i(e=>e,"getAuthTokenParsed");function vy(){let e=zt();if(!e)return null;let t=JSON.parse(e);return t.handle||t.username}
1i(vy,"getHandleFromCookie");function vc(e){return e.status?e.status>=400&&e.status<500&&e.status!==429&&e.status!==408:!1}i(vc,"isClientSdkBusinessError");function by(e){return{type:Sy(e)}}i(by,"getInfoByCapabilities");function Sy(e){return Ey(e)?"marine":wy(e)?"aviation":"car"}i(Sy,"getType");function Ey(e){return bc(nD,e)}i(Ey,"isMarine");function wy(e){return bc(iD,e)}i(wy,"isAviation");function bc(e,t){return e.some(r=>t?.includes(r))}i(bc,"hasIntersect");var nD=["IND","OFF","CST","SKY","MAR","INL","FSH","CHA","VOY","FISHMAP"],iD=["PIL","AVI","FORFLT","RSP"];function Bo(e){return{addressLine1:e.streetAddress??"",addressLine2:"",city:e.city??"",state:e.state??"",zip:e.postalCode??"",country:Cy(e.country)}}i(Bo,"mapSmsAddressToAddress");function Cy(e){let t=e;return e?e.toLowerCase()==="usa"?t="US":e.toLowerCase()==="canada"&&(t="CA"):t="",t}i(Cy,"getCountry");function Iy({expirationMonth:e,expirationYear:t}){return new Date(t,e,0)}i(Iy,"mapSmsExpirationDateToDate");var aD=new Map([["active","active"],["about_to_expire","aboutToExpire"],["expired","expired"]]);function Ty(e){if(!e)return null;let{last4Digits:t,type:r,status:n,expiryMonth:a,expiryYear:o}=e,s=Iy({expirationMonth:a,expirationYear:o});return{last4Digits:t,type:r,expirationMonth:a,expirationYear:o,status:aD.get(n.toLowerCase()),expirationDate:s,daysUntilExpiration:uy(s)}}i(Ty,"mapSmsCreditCardToCreditCard");function Ay(e){return e?.paymentType?{type:e.paymentType,creditCard:Ty(e?.creditCard)}:null}i(Ay,"mapSmsBillingSummaryToPaymentMethod");function ia(e){return new Date(e)}i(ia,"parseDate");function mt(e){return e?ia(e):null}i(mt,"parseDateOptional");function Vi(e){return ky(e)?"trial":_y(e)?"promo":"fullPrice"}i(Vi,"mapSmsPlanTypeToPhase");function ky(e){return["TRIAL","TRIAL_EXT","TRIAL_EXT_RTC","TRIAL_RTP","TRIAL_GGLE"].includes(e)}i(ky,"isTrialPlan");function _y(e){return["PROMO","PROMO_MCP"].includes(e)}i(_y,"isPromoPlan");function Py(e,t){let r=e?.billingSummary;if(!r)return null;let n=r.isAccountInCollection===!0,a=Ny(r,t),o=Ii(r.nextPaymentDate,r.nextPaymentAmount);if(r.isPaymentTypeInvoice===!0&&r.nextPaymentDate===null&&r.nextPaymentAmount===null){let s=e.subscriptions.find(f=>f.isPrimary),c=s?.plans[0],d=s?.followonPlans,u=Ry(s,c,d);u&&(o=Ii(u,r.amountDue))}return{amountDue:a,credit:(r?.amountDue??0)<0?r.amountDue*-1:0,isEBill:r.isEBill===!0,isInvoice:r.isPaymentTypeInvoice===!0,isPastDue:n,lastPayment:Ii(r.lastPaymentDate,r.lastPaymentAmount),nextPayment:o,paymentType:r.paymentType??null}}i(Py,"mapSmsBillingSummaryToBillingStatus");function Ny(e,t){return t?parseFloat(t.totalAmount):e.amountDue&&e.amountDue>0?e.amountDue:e?.amountDue+e?.nextPaymentAmount>0?e?.amountDue+e?.nextPaymentAmount:0}i(Ny,"getAmountDue");function Ii(e,t){let r=mt(e),n=r?Oy(r):null;return{date:e??null,amount:t??null,offsetDaysFromToday:n}}i(Ii,"getDateAmount");function Oy(e){return Math.floor(Math.abs((new Date().getTime()-e.getTime())/(1e3*3600*24)))}i(Oy,"getDaysFromToday");function Ry(e,t,r){return!e||!t?null:Vi(t?.type)==="trial"?t.endDate:[t,...r??[]].filter(n=>Vi(n?.type)!=="trial").map(n=>n.startDate)[0]??null}i(Ry,"getInvoiceNextPaymentDate");function Sc(e,t){return{accountNumber:e.accountNumber,username:e.userName,firstName:e.firstName,lastName:e.lastName,phone:e.phone,email:e.email,serviceAddress:e.serviceAddress?Bo(e.serviceAddress):null,billingAddress:e.billingAddress?Bo(e.billingAddress):null,paymentMethod:Ay(e.billingSummary),billingStatus:Py(e,t)}}i(Sc,"mapSmsAccountToAccount");function qo(e){let t=e,r={};return r.transactionDate=ia(e.transactionDate),r.billNumber=e.billNumber,r.eventType=e.eventType,r.startDate=mt(e.startDate)??new Date,r.endDate=mt(e.endDate)??new Date,r.serviceFor=e.serviceFor,r.description=e.description,r.descriptionKey=t.descriptionKey,r.amount=e.amount,r.radioId=e.radioId,r.packageId=t.packageId,r.planLabel=e.planLabel,r.packageName=e.packageName,r.packageNameInFR=e.packageNameInFR,r.planType=e.planType,r.term=e.term,r.feeLabel=e.feeLabel,r.isRefundOnAndCreationOnDifferentDate=e.isRefundOnAndCreationOnDifferentDate,r.isShowCustomLabel=e.isShowCustomLabel,r.isShowGenericLabel=e.isShowGenericLabel,r.sXIRLogin=e.sXIRLogin,r}i(qo,"mapSmsBillItemToBillItem");function Dy(e){if(!e)return null;let t=[e.vehicle?.year,e.vehicle?.make,e.vehicle?.model].filter(r=>!!r).join(" ");
1return{id:e.radioId??"",isVirtualId:!1,type:Ly("CAR",t),radioIdLastFour:e.radioId.slice(-4)??"",nickname:"",vehicle:e.vehicle?{make:e.vehicle.make??"",model:e.vehicle.model??"",year:e.vehicle.year?.toString()??"",vin:e.vehicle.vin??"",yearMakeModel:t}:null}}i(Dy,"mapSmsDeviceInformationToDevice");function Ly(e,t){let r="car";switch(e){case"CAR":case"IP":r=t?"car":"radio";break;case"AVIATION":r="aviation";break;case"MARINE":r="marine";break}return r}i(Ly,"getType");function Sn(e,t=!1){if(!e)throw new Error("DEVICE_INFORMATION_REQUIRED");return{device:Dy(e),isEligible:t}}i(Sn,"mapSmsDeviceInformationToEligibilityDevice");function Nr(e){if(!e)return null;let t=[e.vehicleInfo?.year,e.vehicleInfo?.make,e.vehicleInfo?.model].filter(r=>!!r).join(" ");return{id:e.radioId??"",isVirtualId:!1,type:xy(e.deviceType,t),radioIdLastFour:e.last4DigitsOfRadioId??"",nickname:"",vehicle:e.vehicleInfo?{make:e.vehicleInfo.make??"",model:e.vehicleInfo.model??"",year:e.vehicleInfo.year??"",vin:e.vehicleInfo.vin??"",yearMakeModel:t}:null}}i(Nr,"mapSmsDeviceToDevice");function xy(e,t){let r="car";switch(e){case"CAR":case"IP":r=t?"car":"radio";break;case"AVIATION":r="aviation";break;case"MARINE":r="marine";break}return r}i(xy,"getType");function Pn(e){if(!e)throw new Error("ELIGIBILITY_SUBSCRIPTION_REQUIRED");let t=Nr(e?.subscription?.radioService);if(!t)throw new Error("DEVICE_NOT_FOUND");let r=e?.subscription?.plans.find(n=>!n.dataCapable);return{device:C(g({},t),{nickname:e?.subscription?.nickname||"",subscription:{id:e?.subscription?.id,isActive:e?.subscription?.status==="Active",planInfo:e?.subscription?.plans?.map(n=>({planOfferId:n.packageName,planEndDate:mt(n.endDate),isTrial:n.type==="TRIAL",isDataCapable:n.dataCapable,metadata:{offerId:My(n.packageName),code:n.code,type:n.type}}))??[],planOfferId:r?.packageName,planEndDate:mt(r?.endDate),isTrial:r?.type==="TRIAL",isCompanion:(e?.subscription?.plans||[]).some(n=>n.type.toUpperCase()==="COMPANION"),isCompanionDriver:!!e?.subscription?.isCompanionSubscriptionDriving},eligibilityStatus:e?.eligibilityStatus}),isEligible:e?.eligibilityStatus==="LINK"}}i(Pn,"mapSmsEligibilitySubscriptionDeviceToEligibilityDevice");function My(e){return e.startsWith("3_")?e.replace(/^3_/,"SXM_"):e}i(My,"normalizePackageId");function qr(e){return e.plans.map(t=>{let r={id:`${e.id}-${t.packageName}`,subscriptionId:e.id,category:Fy(t),phases:[],streamingAvaliable:t.hasStreamingService===!0,includesRadio:t.hasRadioService===!0,isDeviceLess:e?.isDeviceLess===!0,flags:Ec(t),priceChangeMessagingType:t.priceChangeMessagingType};return{plan:t,mappedPlan:r}}).map(({plan:t,mappedPlan:r})=>{let n=(e.followonPlans||[]).filter(o=>{if(r.id===`${e.id}-${o.packageName}`)return!0;let s=t.capabilities.some(d=>d==="AUD"||d==="IPAUD"),c=o.capabilities.some(d=>d==="AUD"||d==="IPAUD");return!!(s&&c||t.dataCapable&&o.dataCapable)}),a=[Vo(t),...n.map(o=>Vo(o))];return r.phases=a.sort((o,s)=>o.term.startDate.getTime()-s.term.startDate.getTime()),r})}i(qr,"mapSmsPlanToPlan");function Vo(e){let t=ia(e.startDate),r=mt(e.endDate)??mt(e.nextCycleOn),n=Vi(e.type);return{phase:n,isActivePhase:my({startDate:t,endDate:r}),isPrepaid:n==="promo"&&e.type!=="PROMO_MCP",term:{length:e.termLength,startDate:t,endDate:r,price:e.price,renewalDate:mt(e.nextCycleOn)},metadata:{offerId:Uy(e.packageName),code:e.code,type:e.type},flags:Ec(e)}}i(Vo,"mapPhase");function Ec(e){let t=By(e.code),r=e.isLifetime===!0,n=qy(e.type),a=e.isAdvantagePlan===!0,o=e.isFamiliyDiscountApplied==!0,s=e.code.toLocaleLowerCase().includes("veteran"),c=e.type==="INTRODUCTORY",d=e.type==="DEMO",u=e.isChangePlanAllowed===!0;return{isDemo:d,isEmployee:t,isLifetime:r,isExtended:n,isAdvantage:a,isFamily:o,isMilitary:s,isIntroductory:c,canChange:u}}i(Ec,"mapFlags");function Uy(e){return e.startsWith("3_")?e.replace(/^3_/,"SXM_"):e}i(Uy,"normalizePackageId");function Fy(e){let{type:t}=by(e.capabilities),r=t==="marine",n=t==="aviation";return e.dataCapable===!0&&!r&&!n?"infotainment":r?"marine":n?"aviation":"entertainment"}i(Fy,"getPlanCategory");function By(e){return e?.toLocaleLowerCase().includes("employee")??!1}i(By,"isPlanEmployee");function qy(e){return e?.toLocaleLowerCase()==="extended-service"}i(qy,"accountPlanTypeIsExtendedService");function Vy(e){let t=e?.quote??null;return t===null?{id:null,currentQuote:null,futureQuote:null,proRatedRenewalQuote:null,promoRenewalQuote:null,renew
1alQuote:null}:{id:t.id,currentQuote:Tr(t.currentQuote),futureQuote:Tr(t.futureQuote),proRatedRenewalQuote:Tr(t.proRatedRenewalQuote),promoRenewalQuote:Tr(t.promoRenewalQuote),renewalQuote:Tr(t.renewalQuote)}}i(Vy,"mapSmsQuote");function Tr(e){return e===null?null:C(g({},e),{totalTaxAmount:Ye(e.totalTaxAmount),totalFeesAmount:Ye(e.totalFeesAmount),totalTaxesAndFeesAmount:Ye(e.totalTaxesAndFeesAmount),totalAmount:Ye(e.totalAmount),discountAmount:Ye(e.discountAmount),pricePerMonth:Ye(e.pricePerMonth),currentBalance:Ye(e.currentBalance),consolidatedCreditAmount:Ye(e.consolidatedCreditAmount),previousBalance:Ye(e.previousBalance),fees:En(e.fees),taxes:En(e.taxes),packageUpgradeFees:Go(e.packageUpgradeFees),details:Go(e.details)})}i(Tr,"mapQuoteData");function En(e){return(e??[]).map(t=>C(g({},t),{amount:Ye(t.amount)}))}i(En,"mapQuoteLineItems");function Go(e){return(e??[]).map(t=>C(g({},t),{termLength:Ye(t.termLength),priceAmount:Ye(t.priceAmount),taxAmount:Ye(t.taxAmount),feeAmount:Ye(t.feeAmount),totalTaxesAndFeesAmount:Ye(t.totalTaxesAndFeesAmount),fees:En(t.fees),taxes:En(t.taxes),isAudioCapable:t.isAudioCapable===!0}))}i(Go,"mapQuoteDetails");function Ye(e){return typeof e!="string"?e:e===""?null:Number(e)}i(Ye,"stringToNumber");function Gy(e){let t=e?.options??[],r=e?.cancelSubscriptionOptionInfo??{showCancelOnline:!1,showCancelViaChat:!1,showTransferRadio:!1,showViewOffer:!1,triggeredRuleId:""};return g({canCancelSubscription:t.includes("CANCEL_SUBSCRIPTION"),canChangePlan:t.includes("CHANGE_PLAN"),canChangeTerm:t.includes("CHANGE_TERM"),canDownloadManual:t.includes("DOWNLOAD_MANUAL"),canPurchaseAudioPlan:t.includes("PURCHASE_AUDIO_PLAN"),canRefreshRadio:t.includes("REFRESH_RADIO"),canReplaceRadio:t.includes("REPLACE_RADIO"),canTransferSubscription:t.includes("TRANSFER_SUBSCRIPTION"),canAddRenewalPlan:t.includes("ADD_RENEWAL_PLAN")},t.includes("CANCEL_SUBSCRIPTION")?{cancelSubscriptionOptions:{canCancelOnline:r.showCancelOnline,canCancelViaChat:r.showCancelViaChat,canTransferRadio:r.showTransferRadio,canViewOffer:r.showViewOffer,triggeredRuleId:r.triggeredRuleId}}:void 0)}i(Gy,"mapSubscriptionOptionsToSubscriptionOptions");function aa(e){return{id:e.id,deviceId:e.radioService?.radioId??"",last4DigitsOfRadioId:e.radioService?.last4DigitsOfRadioId??"",radioService:e?.radioService,inactiveReason:e.hasInactiveServiceDueToNonPay===!0?"nonPay":e.hasInactiveServiceDueToSuspension===!0?"suspension":null,isActive:e.status==="Active",isCancelled:e.status==="Closed",isCancelledAtEndOfCurrentTerm:e.isCancelledAtEndOfCurrentTerm===!0,hasTrialInsertion:e.hasTrialInsertion===!0,isDeviceEligible:(e.plans||[]).some(t=>t.hasRadioService===!0),isDeviceLess:e?.isDeviceLess===!0,isCompanion:(e.plans||[]).some(t=>t.type.toUpperCase()==="COMPANION"),isCompanionDriver:!!e.isCompanionSubscriptionDriving,isEvSubscription:e.isEVSubscription===!0,isPaused:e.status==="Inactive",isPrimary:e.isPrimary,isSuspended:e.status==="Suspended",planIds:(e.plans??[]).map(t=>`${e.id}-${t.packageName}`),streamingCredentials:e.streamingService?{username:e.streamingService.userName,maskedUsername:e.streamingService.maskedUserName??"",hasRandomCredentials:e.streamingService.randomCredentials===!0}:null}}i(aa,"mapSmsSubscriptionToSubscription");function zy(e,t){return t.some(r=>e.endsWith(r))}i(zy,"valueSuffixInList");function zo(e){return zy(e,["AUD_VIP","CAN_VIP","IP_VIP"])}i(zo,"packageNameIsPlatinumVip");function jy(e){let t=(e||[]).filter(r=>r.plans?.length>0&&r.plans?.some(n=>zo(n?.packageName))||r.followonPlans?.length>0&&r.followonPlans?.some(n=>zo(n?.packageName)));return t?.length===1?{type:"pvip",primarySubscriptionId:t[0].id,secondarySubscriptionId:null}:t?.length>=2?{type:"pvip",primarySubscriptionId:t[0].id,secondarySubscriptionId:t[1].id}:null}i(jy,"mapSmsSubscriptionsToSubscriptionBundlePlatinumVip");function Gi(e,t){return t.some(r=>e?.toLocaleLowerCase().includes(r))}i(Gi,"valueInList");function jo(e){return Gi(e,["next-bundle","forward-bundle"])||Gi(e,["promo-next-bundle","promo-forward-bundle"])}i(jo,"planTypeIsNextOrForwardBundle");function Ky(e){let t=e?.filter(r=>r.plans?.some(n=>jo(n?.type))||r.followonPlans?.some(n=>jo(n?.type)));
1return t?.length===1?{type:"nextOrForwardBundle",primarySubscriptionId:t[0]?.id,secondarySubscriptionId:null}:null}i(Ky,"mapSmsSubscriptionsToSubscriptionBundleNextOrForward");function un(e){return Gi(e,["vega-bundle","promo-vega-bundle"])}i(un,"planTypeIsVegaBundle");function Hy(e){let t=e?.filter(n=>n.plans?.some(a=>un(a?.type))||n.followonPlans?.some(a=>un(a?.type)));if(t?.length!==1)return null;let r=t[0];return{type:(r.plans?.find(n=>un(n?.type))||r.followonPlans?.find(n=>un(n?.type)))?.type?.toLocaleLowerCase()==="promo-vega-bundle"?"promoVegaBundle":"vegaBundle",primarySubscriptionId:r?.id,secondarySubscriptionId:null}}i(Hy,"mapSmsSubscriptionsToSubscriptionBundleVega");function Yy(e){let t=jy(e),r=Ky(e),n=Hy(e);return[...t?[t]:[],...r?[r]:[],...n?[n]:[]]}i(Yy,"mapSmsSubscriptionsToSubscriptionBundles");function wc(e){return e.map(t=>({addressLine1:t.addressLine1?.trim()||"",addressLine2:t.addressLine2?.trim()||"",city:t.city?.trim()||"",state:t.state?.trim()||"",zip:t.zip?.trim()||"",country:t.country?.trim()||""})).filter(t=>t.addressLine1&&t.city&&t.state&&t.zip)}i(wc,"mapSmsCorrectedAddressesToAddresses");function Wy(e,t){let r=e?.confidenceLevel,n;switch(r){case"Verified":n="verified";break;case"InteractionRequired":n="interactionRequired";break;default:n="none"}let a=e?.validationStatus==="VALID"?"valid":"notValid",o=e?.correctedAddress?.map(s=>C(g({},s),{country:t}))||[];return{confidenceLevel:n,status:a,correctedAddresses:wc(o)}}i(Wy,"mapSmsValidateBillingAddressToAddressValidation");function $y(e,t){let r=e?.confidenceLevel,n;switch(r){case"Verified":n="verified";break;case"InteractionRequired":n="interactionRequired";break;default:n="none"}let a=e?.validationStatus==="VALID"?"valid":"notValid",o=e?.correctedAddress?.map(s=>C(g({},s),{country:t}))||[];return{confidenceLevel:n,status:a,correctedAddresses:wc(o)}}i($y,"mapSmsValidateServiceAddressToAddressValidation");function q(e,t){let{errorLoggerSdk:r}=t;r.logError({message:`${e.errorCode||e?.fieldErrors?.[0]?.errorCode}`,stacktrace:e.errorStackTrace})}i(q,"logErrorFromMicroservicesSdk");function B(e,t){e.trackEvent({event:"business-error",errors:[{errorType:"BUSINESS",errorName:t.message,errorCode:t.code}]})}i(B,"trackBusinessError");var If="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Cc=new Uint8Array(512),Ko=0,Tf=!1;function Xy(){Ko>=512&&(Ko=0,crypto.getRandomValues(Cc))}i(Xy,"genRandomNumbers");function Jy(){Xy();let e=Cc[Ko++]%If.length;return If[e]}i(Jy,"generateRandomLetter");function Zy(e=20){let t="";for(let r=e;r--;)t+=Jy();return t}i(Zy,"randomId");function Ic(e=20){return Tf||(crypto.getRandomValues(Cc),Tf=!0),Zy(e)}i(Ic,"generateRandomId");function rt(e,t){let{errorLoggerSdk:r}=t;r.logError({message:`[${e.code}]: ${e.message}`,stacktrace:e.stack})}i(rt,"logErrorFromClientSdk");function Ho(e){return Array.from(new Set(e))}i(Ho,"removeDuplicates");function Vr(e,t){let{errorLoggerSdk:r}=t;r.logInfo({message:e})}i(Vr,"logInfoMessage");var Qy=class extends Error{constructor(){super("ACCOUNT_NOT_REGISTERED"),w(this,"type","accountNotRegistered")}};i(Qy,"ErrorAccountNotRegistered");var oD=Qy,ev=class extends Error{constructor(){super("CREDIT_CARD_FAILURE"),w(this,"type","creditCardFailure")}};i(ev,"ErrorCreditCardFailure");var Tc=ev,tv=class extends Error{constructor(){super("PASSWORD_HAS_PII_DATA"),w(this,"type","passwordHasPiiData")}};i(tv,"ErrorPasswordHasPiiData");var rv=tv,nv=class extends Error{constructor(){super("PASSWORD_INVALID"),w(this,"type","passwordInvalid")}};i(nv,"ErrorPasswordInvalid");var iv=nv,av=class extends Error{constructor(){super("SESSION_TIMED_OUT"),w(this,"type","sessionTimedOut")}};i(av,"ErrorSessionTimedOut");var sD=av,ov=class extends Error{constructor(){super("UNAUTHENTICATED"),w(this,"type","unauthenticated")}};i(ov,"ErrorUnauthenticated");var cD=ov;function sv(e){return e instanceof Error&&e.message==="MICROSERVICES_CREDIT_CARD_FAILURE"}i(sv,"isMicroservicesSdkErrorCreditCardFailure");function cv(e){return e instanceof Error&&e.message==="MICROSERVICES_GIFT_CARD_NO_BALANCE"}i(cv,"isMicroservicesSdkErrorGiftCardNoBalance");function dv(e){return e instanceof Error&&e.message==="MICROSERVICES_GIFT_CARD_NOT_REDEEMABLE"}i(dv,"isMicroservicesSdkErrorGiftCardNotRedeemable");function lv(e){return e instanceof Error&&e.message==="MICROSERVICES_GIFT_CARD_NUMBER_INVALID"}i(lv,"isMicroservicesSdkErrorGiftCardNumberInvalid");function uv(e){return e instanceof Error&&e.message==="MICROSERVICES_INSUFFICIENT_CREDIT_BALANCE"}i(uv,"isMicroservicesSdkErrorInsufficientCreditBalance");function mv(e){return e instanceof Error&&e.message==="MICROSERVICES_INVALID_DEVICE_ID"}i(mv,"isMicroservicesSdkErrorInvalidDeviceId");function fv(e){return e instanceof Error&&e.message==="MICROSERVICES_INVALID_EMAIL_ADDRESS"}i(fv,"isMicroservicesSdkErrorInvalidEmailAddress");function pv(e){return e instanceof Error&&e.message==="MICROSERVICES_INVALID_MISSING_VIN"}i(pv,"isMicroservicesSdkErrorInvalidMissingVin");function hv(e){return e instanceof Error&&e.message==="MICROSERVICES_INVALID_OR_MISSING_INPUT"}i(hv,"isMicroservicesSdkErrorInvalidOrMissingInput");
1function gv(e){return e instanceof Error&&e.message==="MICROSERVICES_MULTI_PROMO_CODE_REDEMPTION_NOT_ALLOWED"}i(gv,"isMicroservicesSdkErrorMultiPromoCodeRedemptionNotAllowed");function yv(e){return e instanceof Error&&e.message==="MICROSERVICES_MULTIPLE_VIN_FOUND"}i(yv,"isMicroservicesSdkErrorMultipleVinFound");function vv(e){return e instanceof Error&&e.message==="MICROSERVICES_PASSWORD_HAS_PII_DATA"}i(vv,"isMicroservicesSdkErrorPasswordHasPiiData");function bv(e){return e instanceof Error&&e.message==="MICROSERVICES_PASSWORD_INVALID"}i(bv,"isMicroservicesSdkErrorPasswordInvalid");function Sv(e){return e instanceof Error&&e.message==="MICROSERVICES_PROMO_CODE_ALREADY_REDEEMED"}i(Sv,"isMicroservicesSdkErrorPromoCodeAlreadyRedeemed");function Ev(e){return e instanceof Error&&e.message==="MICROSERVICES_PROMO_CODE_INELIGIBLE"}i(Ev,"isMicroservicesSdkErrorPromoCodeIneligible");function wv(e){return e instanceof Error&&e.message==="MICROSERVICES_PROMO_CODE_INVALID_PREFIX"}i(wv,"isMicroservicesSdkErrorPromoCodeInvalidPrefix");function Cv(e){return e instanceof Error&&e.message==="MICROSERVICES_PROMO_CODE_NOT_ACTIVE"}i(Cv,"isMicroservicesSdkErrorPromoCodeNotActive");function Iv(e){return e instanceof Error&&e.message==="MICROSERVICES_PROMO_CODE_NOT_APPLICABLE_FOR_SERVICE_TYPE"}i(Iv,"isMicroservicesSdkErrorPromoCodeNotApplicableForServiceType");function Tv(e){return e instanceof Error&&e.message==="MICROSERVICES_PROMO_CODE_NOT_CONFIGURED_FOR_ADJUSTMENT"}i(Tv,"isMicroservicesSdkErrorPromoCodeNotConfiguredForAdjustment");function Av(e){return e instanceof Error&&e.message==="MICROSERVICES_PROMO_CODE_NOT_FOUND"}i(Av,"isMicroservicesSdkErrorPromoCodeNotFound");function kv(e){return e instanceof Error&&e.message==="MICROSERVICES_PROMO_CODE_OUTSIDE_START_AND_END_DATE"}i(kv,"isMicroservicesSdkErrorPromoCodeOutsideStartAndEndDate");function _v(e){return e instanceof Error&&e.message==="MICROSERVICES_SESSION_TIMED_OUT"}i(_v,"isMicroservicesSdkErrorSessionTimedOut");function Pv(e){return e instanceof Error&&e.message==="MICROSERVICES_UNAUTHENTICATED_CUSTOMER"}i(Pv,"isMicroservicesSdkErrorUnauthenticatedCustomer");function Nv(e){return e instanceof Error&&e.message==="MICROSERVICES_USER_NAME_ALREADY_EXISTS"}i(Nv,"isMicroservicesSdkErrorUsernameAlreadyExists");function Ov(e){return e instanceof Error&&e.message==="MICROSERVICES_ACCOUNT_NOT_REGISTERED"}i(Ov,"isMicroservicesSdkErrorAccountNotRegistered");var Rv=class extends Error{constructor(){super("USERNAME_IN_USE"),w(this,"type","usernameInUse")}};i(Rv,"ErrorUsernameInUse");var dD=Rv,Dv=class extends Error{constructor(){super("PROMO_CODE_ALREADY_REDEEMED"),w(this,"type","promoCodeAlreadyRedeemed")}};i(Dv,"ErrorPromoCodeAlreadyRedeemed");var lD=Dv,Lv=class extends Error{constructor(){super("PROMO_CODE_INVALID_PREFIX"),w(this,"type","promoCodeInvalidPrefix")}};i(Lv,"ErrorPromoCodeInvalidPrefix");var uD=Lv,xv=class extends Error{constructor(){super("PROMO_CODE_NOT_FOUND"),w(this,"type","promoCodeNotFound")}};i(xv,"ErrorPromoCodeNotFound");var mD=xv,Mv=class extends Error{constructor(){super("PROMO_CODE_OUTSIDE_START_AND_END_DATE"),w(this,"type","promoCodeOutsideStartAndEndDate")}};i(Mv,"ErrorPromoCodeOutsideStartAndEndDate");var fD=Mv,Uv=class extends Error{constructor(){super("PROMO_CODE_NOT_ACTIVE"),w(this,"type","promoCodeNotActive")}};i(Uv,"ErrorPromoCodeNotActive");var pD=Uv,Fv=class extends Error{constructor(){super("PROMO_CODE_NOT_APPLICABLE_FOR_SERVICE_TYPE"),w(this,"type","promoCodeNotApplicableForServiceType")}};i(Fv,"ErrorPromoCodeNotApplicableForServiceType");var hD=Fv,Bv=class extends Error{constructor(){super("PROMO_CODE_INELIGIBLE"),w(this,"type","promoCodeIneligible")}};i(Bv,"ErrorPromoCodeIneligible");var gD=Bv,qv=class extends Error{constructor(){super("INVALID_EMAIL_ADDRESS"),w(this,"type","invali
1dEmailAddress")}};i(qv,"ErrorInvalidEmailAddress");var yD=qv,Vv=class extends Error{constructor(){super("PROMO_CODE_NOT_CONFIGURED_FOR_ADJUSTMENT"),w(this,"type","promoCodeNotConfiguredForAdjustment")}};i(Vv,"ErrorPromoCodeNotConfiguredForAdjustment");var vD=Vv,Gv=class extends Error{constructor(){super("INSUFFICIENT_CREDIT_BALANCE"),w(this,"type","insufficientCreditBalance")}};i(Gv,"ErrorInsufficientCreditBalance");var bD=Gv,zv=class extends Error{constructor(){super("INVALID_OR_MISSING_INPUT"),w(this,"type","invalidOrMissingInput")}};i(zv,"ErrorInvalidOrMissingInput");var SD=zv,jv=class extends Error{constructor(){super("INVALID_MISSING_VIN"),w(this,"type","invalidMissingVin")}};i(jv,"ErrorInvalidMissingVin");var ED=jv,Kv=class extends Error{constructor(){super("GIFT_CARD_NUMBER_INVALID"),w(this,"type","giftCardNumberInvalid")}};i(Kv,"ErrorGiftCardNumberInvalid");var wD=Kv,Hv=class extends Error{constructor(){super("NO_GIFT_CARD_BALANCE"),w(this,"type","giftCardNoBalance")}};i(Hv,"ErrorGiftCardNoBalance");var CD=Hv,Yv=class extends Error{constructor(){super("GIFT_CARD_NOT_REDEEMABLE"),w(this,"type","giftCardNotRedeemable")}};i(Yv,"ErrorGiftCardNotRedeemable");var ID=Yv,Wv=class extends Error{constructor(){super("MULTIPLE_VIN_FOUND"),w(this,"type","multipleVinFound")}};i(Wv,"ErrorMultipleVinFound");var TD=Wv,$v=class extends Error{constructor(){super("INVALID_DEVICE_ID"),w(this,"type","invali
1dDeviceId")}};i($v,"ErrorInvalidDeviceId");var AD=$v,Xv=class extends Error{constructor(){super("MULTI_PROMO_CODE_REDEMPTION_NOT_ALLOWED"),w(this,"type","multiPromoCodeRedemptionNotAllowed")}};i(Xv,"ErrorMultiPromoCodeRedemptionNotAllowed");var kD=Xv;function he({appEventSdk:e,eventSdk:t},r){let n=null;return Pv(r)&&(B(e,{code:r.errorCode,message:"Unauthenticated customer - session expired"}),n=new cD),_v(r)&&(B(e,{code:r.errorCode,message:"Unauthenticated customer - session expired"}),n=new sD),Ov(r)&&(B(e,{code:r.errorCode,message:"Account not registered"}),n=new oD),fv(r)&&(n=new yD),vv(r)&&(n=new rv),bv(r)&&(n=new iv),sv(r)&&(n=new Tc),Nv(r)&&(n=new dD),uv(r)&&(B(e,{code:r.errorCode,message:"Insufficient credti balance"}),n=new bD),hv(r)&&(B(e,{code:r.errorCode,message:"Invalid or missing input"}),n=new SD),wv(r)&&(B(e,{code:r.errorCode,message:"Promotion code invalid prefix"}),n=new uD),Av(r)&&(B(e,{code:r.errorCode,message:"Promotion code not found"}),n=new mD),Sv(r)&&(B(e,{code:r.errorCode,message:"Promotion code already redeemed"}),n=new lD),kv(r)&&(B(e,{code:r.errorCode,message:"Promotion code outside start and end date"}),n=new fD),Cv(r)&&(B(e,{code:r.errorCode,message:"Promotion code not active"}),n=new pD),Iv(r)&&(B(e,{code:r.errorCode,message:"Promotion code not applicable for service type"}),n=new hD),Ev(r)&&(B(e,{code:r.errorCode,message:"Promotion code ineligible"}),n=new gD),Tv(r)&&(B(e,{code:r.errorCode,message:"Promotion code not configured for adjustment"}),n=new vD),pv(r)&&(B(e,{code:r.errorCode,message:"Invalid missing vin"}),n=new ED),lv(r)&&(B(e,{code:r.errorCode,message:"Gift card number invalid"}),n=new wD),cv(r)&&(B(e,{code:r.errorCode,message:"Gift card no balance"}),n=new CD),dv(r)&&(B(e,{code:r.errorCode,message:"Gift card not redeemable"}),n=new ID),yv(r)&&(B(e,{code:r.errorCode,message:"Two or more VINs are returned"}),n=new TD),mv(r)&&(B(e,{code:r.errorCode,message:"Invalid device id"}),n=new AD),gv(r)&&(B(e,{code:r.errorCode,message:"Multiple promo code redemption is not allowed"}),n=new kD),n&&t.emit({type:"error",error:n}),n}i(he,"mapMicroservicesSdkErrorToError");function Jv(e){if(Ue())return e.replace(/&#(\d+);/g,(t,r)=>String.fromCharCode(Number(r))).replace(/&#x([a-fA-F0-9]+);/g,(t,r)=>String.fromCharCode(parseInt(r,16))).replace(/&([a-zA-Z]+);/g,(t,r)=>_D[r]||`&${r};`);{let t=document.createElement("textarea");return t.innerHTML=e,t.value}}i(Jv,"decodeHtml");var _D={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",euro:"\u20AC",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",nlarr:"\u219A",nrarr:"\u219B",rarrw:"\u219D",Larr:"\u219E",Uarr:"\u219F",Rarr:"\u21A0",Darr:"\u21A1",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"'",rsquo:"'",sbquo:"\u201A",ldquo:'"',rdquo:'"',bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil
1:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF"};function Gr(t){return l(this,arguments,function*({clientSdk:e}){return i(r=>C(g({},r),{contact:{emailAddress:r.contact?.emailAddress||"",phoneNumber:r.contact?.phoneNumber||""},handle:{emailAddress:"emailAddress"in r.handle?r.handle.emailAddress:void 0,username:"username"in r.handle?r.handle.username:void 0},state:r.state||"ATLAS"}),"mapClientSdkToWebSdk")(yield e.user.identity())})}i(Gr,"getIdentity");function Nn(r,n){return l(this,arguments,function*({clientSdk:e},t){try{return yield e.user.status({handle:t})}catch(a){throw a?.code?.includes("identityDoesNotExist")?new Error("INVALID_HANDLE"):new Error("SYSTEM")}})}i(Nn,"getStatusForHandle");function Zv({dependencies:e}){let{appEventSdk:t,clientSdk:r}=e,n="passkey-event",a="SXM_PK_PROMPT";return()=>l(null,null,function*(){try{if(Ue())return;if(fy(a))t.trackEvent({event:n,passkeyInfo:{passkeyEvent:"not shown-ss denied"}});else{if(yield r.user.isPasskeySupported()){t.trackEvent({event:n,passkeyInfo:{passkeySupported:"supported"}});let{handle:o}=yield Gr(e),s=String(o.emailAddress||o.username),{hasPasskey:c}=yield Nn(e,s);if(t.trackEvent({event:n,passkeyInfo:{passkeyOnFile:c?"on file":"not on file"}}),!c)try{t.trackEvent({event:n,passkeyInfo:{passkeyEvent:"shown"}}),yield r.user.startPasskey(),t.trackEvent({event:n,passkeyInfo:{passkeyEvent:"accepted"}})}catch(d){d.name==="NotAllowedError"&&t.trackEvent({event:n,passkeyInfo:{passkeyEvent:"denied"}})}}t.trackEvent({event:n,passkeyInfo:{passkeySupported:"not supported"}}),document.cookie=`${a}=;sameSite=lax;path=/;domain=.siriusxm.com`;return}}catch(o){throw o}})}i(Zv,"initStartPasskeyIfSupportedFn");function Qv(e,t){e.trackEvent(g({event:"eddl-update"},t))}i(Qv,"recordEddlUpdate");function eb(e,t){Qv(e,{customerInfo:{email:t}})}i(eb,"trackUserEmail");function oa(a,o){return l(this,arguments,function*({emailAddress:e,password:t,language:r},n){let{clientSdk:s,appEventSdk:c}=n;try{let d=g(g({emailAddress:e},t?{password:t}:{}),r?{language:r}:{});yield s.user.createUserV2(d),eb(c,e)}catch(d){switch(d?.code){case"userServices.identity.identityAlreadyExists":case"userServices.userSubscriptionOrchestration.eligibilityRequirementsNotMet":throw B(c,d),new Error("IDENTITY_ALREADY_EXISTS_ERROR");case"userServices.userSubscriptionOrchestration.waitingOnOneTimePassword":if(d?.extras?.identityId){B(c,d);let u=new Error("WAITING_ON_ONE_TIME_PASSWORD_ERROR");throw u.identityIdToVerifyWithOtpViaEmail=d.extras.identityId,u.emailAddress=tb(e),u}else throw rt(d,n),new Error("SYSTEM");case"userServices.identity.invalidEmail":throw B(c,d),new Error("INVALID_EMAIL_ERROR");case"userServices.identity.invalidPassword":throw B(c,d),new Error("INVALID_PASSWORD_ERROR");default:throw rt(d,n),new Error("SYSTEM")}}})}i(oa,"createIdentity");function tb(e){let t=e.split(""),r=t.splice(t.indexOf("@"),t.length).join("");return`${t[0]}******${r}`}i(tb,"maskEmail");function rb({dependencies:e}){let{clientSdk:t,microservicesSdk:r,appEventSdk:n}=e;return c=>l(null,[c],function*({emailAddress:a,password:o,locale:s}){let d;try{d=!(yield r.domains.identity.getAccountByEmail({email:a})).length}catch(u){throw rt(u,e),new Error("SYSTEM")}if(!d)throw new Error("IDENTITY_NOT_ELIGIBLE_ERROR");jt()==="authenticated"&&(yield t.user.anonymousLogin(!0)),yield oa(C(g({emailAddress:a},o?{password:o}:{}),{language:s}),e),n.trackEvent({event:"customer-info",data:{customerType:"NEW_SXIR_ACCOUNT"}})})}i(rb,"initCreateIdentityIfEmailEligibleFn");function sa(a,o){return l(this,arguments,function*({vehicleDeviceId:e,oemDriverId:t},{clientSdk:r,appEventSdk:n}){try{yield r.user.b2bTrialClaim({body:g({vehicleDeviceId:e},t?{oemDriverId:t,useExistingOEMProfile:!1}:{useExistingOEMProfile:!0})}),n.trackEvent({event:"customer-info",data:{customerType:"SXIR_TRIAL"}})}catch(s){throw new Error("SYSTEM")}})}i(sa,"claimTrial");function Ac(e){return{deviceId:"",radioId:e.deviceInformation.radioId||"",oemDriverId:"",lifecycleState:null,vehicleState:{year:e.deviceInformation.vehicle?.year||0,make:e.deviceInformation.vehicle?.make||"",model:e.deviceInformation.vehicle?.model||"",vin:e.deviceInformation.vehicle?.vin||""},deviceSource:"SMS"}}i(Ac,"mapVehicleState");function On(n,a){return l(this,arguments,function*({radioId:e},{clientSdk:t,microservicesSdk:r}){try{return C(g({},yield t.partnerIntegration.getStateByRadioId({radioId:e})),{deviceSource:"ATLAS"})}catch(o){try{let s=yield r.domains.device.validate({radioId:e}),c=yield r.domains.device.info({radioId:s.last4DigitsOfRadioId});return g(C(g({},Ac(c)),{radioId:e}),s?.atlasVehicleDeviceState?.billingSystem?{billingSystem:s.atlasVehicleDeviceState.billingSystem}:{})}catch(s){throw new Error("SYSTEM")}}})}i(On,"getDeviceByRadioId");function Rn(n,a){return l(this,arguments,function*({vin:e},{clientSdk:t,microservicesSdk:r}){try{return C(g({},yield t.partnerIntegration.getStateByVin({vin:e})),{deviceSource:"ATLAS"})}catch(o){try{let s=yield r.domains.device.validate({vin:e}),c=yield r.domains.device.info({radioId:s.last4DigitsOfRadioId});return g(g({},Ac(c)),s?.atlasVehicleDeviceState?.billingSystem?{billingSystem:s.atlasVehicleDeviceState.billingSystem}:{})}catch(s){throw new Error("SYSTEM")}}})}i(Rn,"getDeviceByVin");function kc(r,n){return l(this,arguments,function*({vin:e},t){try{let{deviceId:a}=yield Rn({vin:Fr(e)},t);return a}catch(a){throw new Error("SYSTEM")}})}i(kc,"getDeviceIdByVin");function _c(r,n){return l(this,arguments,function*({radioId:e},t){try{let{deviceId:a}=yield On({radioId:Br(e)},t);return a}catch(a){throw new Error("SYSTEM")}})}i(_c,"getDeviceIdByRadioId");function Pc(n,a){return l(this,arguments,function*({licensePlate:e,state:t},r){let{microservicesSdk:o}=r;try{let s=yield o.domains.identity.deviceLicensePlate({licensePlate:e,state:t}),c=yield o.domains.device.validate({vin:s.last4DigitsOfVin}),d=yield o.domains.device.info({radioId:c.last4DigitsOfRadioId});return C(g({},d),{deviceInformation:g(C(g({},d.deviceInformation),{billingSystem:c.atlasVehicleDeviceState?.billingSystem||null,lifecycleState:c.atlasVehicleDeviceState?.lifecycleState||null}),c.atlasVehicleDeviceState?.vehicleState?{vehicle:{year:c.atlasVehicleDeviceState.vehicleState?.year,make:c.atlasVehicleDeviceState.vehicleState?.make,model:c.atlasVehicleDeviceState.vehicleState?.model,vin:null}}:{})})}catch(s){throw q(s,r),new Error("SYSTEM")}})}i(Pc,"getRadioInformationForLicensePlateSms");function Nc(r,n){return l(this,arguments,function*({radioId:e},t){let{microservicesSdk:a}=t;try{let o=yield a.domains.device.validate({radioId:e}),s=yield a.domains.device.info({radioId:o.last4DigitsOfRadioId});return C(g({},s),{deviceInformation:g(C(g({},s.deviceInformation),{billingSystem:o.atlasVehicleDeviceState?.billingSystem||null,lifecycleState:o.atlasVehicleDeviceState?.lifecycleState||null}),o.atlasVehicleDeviceState?.vehicleState?{vehicle:{year:o.atlasVehicleDeviceState.vehicleState?.year,make:o.atlasVehicleDeviceState.vehicleState?.make,model:o.atlasVehicleDeviceState.vehicleState?.model,vin:null}}:{})})}catch(o){throw q(o,t),new Error("SYSTEM")}})}
1i(Nc,"getRadioInformationForRadioIdSms");function Oc(r,n){return l(this,arguments,function*({vin:e},t){let{microservicesSdk:a}=t;try{let o=yield a.domains.device.validate({vin:e}),s=yield a.domains.device.info({radioId:o.last4DigitsOfRadioId});return C(g({},s),{deviceInformation:g(C(g({},s.deviceInformation),{billingSystem:o.atlasVehicleDeviceState?.billingSystem||null,lifecycleState:o.atlasVehicleDeviceState?.lifecycleState||null}),o.atlasVehicleDeviceState?.vehicleState?{vehicle:{year:o.atlasVehicleDeviceState.vehicleState?.year,make:o.atlasVehicleDeviceState.vehicleState?.make,model:o.atlasVehicleDeviceState.vehicleState?.model,vin:null}}:{})})}catch(o){throw q(o,t),new Error("SYSTEM")}})}i(Oc,"getRadioInformationForVinSms");function nb({dependencies:e}){return r=>l(null,[r],function*({radioId:t}){let n=yield _c({radioId:Br(t)},e);yield sa({vehicleDeviceId:n},e)})}i(nb,"initClaimTrialForRadioIdFn");function ib({dependencies:e}){return r=>l(null,[r],function*({vin:t}){let n=yield kc({vin:Fr(t)},e);yield sa({vehicleDeviceId:n},e)})}i(ib,"initClaimTrialForVinFn");function ab(n,a){return l(this,arguments,function*({subscriptionId:e},{clientSdk:t,appEventSdk:r}){try{let o=yield t.partnerIntegration.getDetailedStateBySubscriptionId({subscriptionId:e});return r.trackEvent({event:"device-info",deviceInfo:{vin:o.vehicleState?.vin,vid:o.radioId,year:o.vehicleState?.year,make:o.vehicleState?.make,model:o.vehicleState?.model}}),C(g({},o),{deviceSource:"ATLAS"})}catch(o){throw new Error("SYSTEM")}})}i(ab,"getSubscriptionDetailedState");function zr(r,n){return l(this,arguments,function*({subscription:e},t){let a=null;return e.beneficiaries?.find(o=>o.type==="device")&&(a=yield ab({subscriptionId:e.id},t)),{detailedState:a}})}i(zr,"getSubscriptionAdditionalData");function Dn(e){return l(this,null,function*(){let{clientSdk:t}=e;return i(r=>r.items.map(n=>C(g({},n),{beneficiaries:n.beneficiaries,billingProfileId:n.billingProfileId||"",currentPhase:{billingPeriod:g(g(g(g({},"days"in n.currentPhase.billingPeriod?{days:g({},n.currentPhase.billingPeriod.days)}:{days:{count:0}}),"weeks"in n.currentPhase.billingPeriod?{weeks:g({},n.currentPhase.billingPeriod.weeks)}:{weeks:{count:0}}),"months"in n.currentPhase.billingPeriod?{months:g({},n.currentPhase.billingPeriod.months)}:{months:{count:0}}),"years"in n.currentPhase.billingPeriod?{years:g({},n.currentPhase.billingPeriod.years)}:{years:{count:0}}),billingPeriodCount:n.currentPhase.billingPeriodCount||0,ends:n.currentPhase.ends||"",started:n.currentPhase.started||"",type:n.currentPhase.type},expires:n.expires||"",offerPhases:n.offerPhases,offers:n.offers,started:n.started||"",terminated:n.terminated||"",detailedState:null,offerPromo:null,offerSelfPay:null,offerTrial:null})),"mapClientSdkToWebSdk")(yield t.commerce.subscription.getSubscriptions())})}i(Dn,"getSubscriptionsAll");function Or(e){if(!e)throw new Error("VEHICLE_NOT_FOUND");if(e.trialEligible)return"TRIAL_ELIGIBLE";if(e.trial?.phase){if(e.trial.phase.anonymous)return"TRIAL_NOT_CLAIMED";if(e.trial.phase.claimed)return"TRIAL_CLAIMED";if(e.trial.phase.followOn)return"TRIAL_WITH_FOLLOW_ON"}else{if(e.selfPay)return"SELF_PAY";if(e.inactive)return"INACTIVE"}throw new Error("VEHICLE_NOT_FOUND")}i(Or,"getAutomotiveSubscriptionStatusFromLifecycleState");function Rc(e,t){return l(this,null,function*(){let{microservicesSdk:r}=t;try{let n=yield r.domains.accountManagement.modifySubscriptionOptions({subscriptionId:e});return Gy(n)}catch(n){throw q(n,t),new Error("SYSTEM")}})}i(Rc,"getSubscriptionOptionsSms");function Dc(r,n){return l(this,arguments,function*({vehicleStateResponse:e},t){let{appEventSdk:a}=t,o=(yield Dn(t)).filter(d=>!d.source.sms),s=o.some(d=>["active","pending_cancellation"].some(u=>u.toLowerCase()===d.state.toLowerCase())),c=!1;if(s){a.trackEvent({event:"customer-info",data:{subscriptions:o.map(u=>({id:u?.id,planCode:u?.products?.[0]?.name,termLength:u?.currentPhase?.billingPeriod?.months?.count,status:u?.state,startDate:u?.started,terminatedDate:u?.terminated,offerId:u?.offerId,currentPhaseType:u?.currentPhase?.type,billingSource:Object.keys(u?.source)?.[0]}))}});for(let u=0;u<o.length;u++){let f=o[u],{detailedState:v}=yield zr({subscription:f},t);f.detailedState=v}let d=o.find(u=>u.detailedState);
1if(!d)throw new Error("IDENTITY_NOT_ELIGIBLE_ERROR");switch(d.detailedState&&Or(d.detailedState.lifecycleState)){case"SELF_PAY":case"TRIAL_WITH_FOLLOW_ON":throw new Error("EXISTING_SELF_PAY_SUBSCRIPTION_ERROR");case"TRIAL_CLAIMED":{if(!o.some(u=>u.detailedState?.deviceId===e.deviceId))throw new Error("IDENTITY_NOT_RELATED_TO_VEHICLE_ERROR");c=!0}}}switch(Or(e.lifecycleState)){case"TRIAL_NOT_CLAIMED":{yield sa({vehicleDeviceId:e.deviceId},t);return}case"TRIAL_ELIGIBLE":throw new Error("TRIAL_PENDING_ACTIVATION_ERROR");case"TRIAL_CLAIMED":{if(!c)throw new Error("IDENTITY_NOT_RELATED_TO_VEHICLE_ERROR");return}case"INACTIVE":return;default:throw new Error("SYSTEM")}})}i(Dc,"checkIdentityEligibilityAndAutomotiveStatus");function ob({dependencies:e}){return r=>l(null,[r],function*({radioId:t}){let{appEventSdk:n}=e,a;try{a=yield On({radioId:Br(t)},e),n.trackEvent({event:"device-info",deviceInfo:{vid:t,year:a.vehicleState?.year,make:a.vehicleState?.make,model:a.vehicleState?.model}})}catch(o){throw new Error("SYSTEM")}return Dc({vehicleStateResponse:a},e)})}i(ob,"initCheckIdentityEligibilityAndVehicleStatusByRadioIdFn");function sb({dependencies:e}){return r=>l(null,[r],function*({vin:t}){let{appEventSdk:n}=e,a;try{a=yield Rn({vin:Fr(t)},e),n.trackEvent({event:"device-info",deviceInfo:{vin:t,year:a.vehicleState?.year,make:a.vehicleState?.make,model:a.vehicleState?.model}})}catch(o){throw new Error("SYSTEM")}return Dc({vehicleStateResponse:a},e)})}i(sb,"initCheckIdentityEligibilityAndVehicleStatusByVinFn");function Lc(n,a){return l(this,arguments,function*({activationCode:e,vendor:t},r){let{clientSdk:o,appEventSdk:s}=r;try{t&&t.toLowerCase()==="sonos"?yield o.user.linkCodeAuthorize({linkCode:e}):yield o.user.userCodeAuthorize({userCode:e})}catch(c){throw c.code==="tokenServicesTeam.sessionService.invalid-user-code"||c.code==="tokenServicesTeam.sessionService.invalid-link-code"?(B(s,c),new Error("INVALID_ACTIVATION_CODE")):(rt(c,r),new Error("SYSTEM"))}})}i(Lc,"activateUserCode");function cb({dependencies:e}){return t=>l(null,null,function*(){return yield Lc(t,e)})}i(cb,"initActivateUserCodeFn");function ca(n,a,o){return l(this,arguments,function*(e,{request:t},{clientSdk:r}){return r.user.updateAccount({privacyAgreements:[C(g({},t),{consentType:e,countryCode:t.countryCode?.toUpperCase(),platform:"Web",appVersion:"1.0"})]})})}i(ca,"acceptAgreement");function xc(e,t){return l(this,null,function*(){try{yield ca("Customer Agreement and Privacy policy",{request:e},t)}catch(r){throw rt(r,t),new Error("SYSTEM")}})}i(xc,"acceptCustomerAgreementAndPrivacyPolicy");function Ln(e,t){return l(this,null,function*(){try{yield ca("Marketing offers",{request:e},t)}catch(r){throw rt(r,t),new Error("SYSTEM")}})}i(Ln,"acceptMarketingOffers");function Mc(e,t){return l(this,null,function*(){try{yield ca("Offer and Renewal terms",{request:e},t)}catch(r){throw rt(r,t),new Error("SYSTEM")}})}i(Mc,"acceptOfferAndRenewalTerms");function db({dependencies:e,countryCodeDefault:t}){return s=>l(null,[s],function*({emailAddress:r,marketingConsentVersion:n,activationCode:a,locale:o}){return yield oa({emailAddress:r},e),yield Ln({version:n,language:o,countryCode:t.toUpperCase()},e),a?(yield Lc({activationCode:a},e),!0):!1})}i(db,"initCreateIdentityAndActivateUserCodeFn");function lb({dependencies:{appEventSdk:e,microservicesSdk:t}}){return o=>l(null,[o],function*({magicLinkGrant:r,email:n,countryCode:a}){let s=Ur();try{return a.toLowerCase()==="ca"?yield t.domains.identity.createSalIdentityCanada({magicLinkGrant:r,email:n,accessToken:s}):yield t.domains.identity.createSalIdentity({magicLinkGrant:r,email:n,accessToken:s})}catch(c){if(c.errorCode==="userServices.userSubscriptionOrchestration.subscriptionAlreadyExistsForIdentity"||c.errorCode=="SUBSCRIPTION_ALREADY_EXISTS_FOR_IDENTITY")throw B(e,{code:"Email in use",message:"SUBSCRIPTION_ALREADY_EXISTS_FOR_IDENTITY"}),new Error("SUB_ALREADY_EXISTS_FOR_IDENTITY");if(c.errorCode=="CLAIMING_WITH_UNAUTHORIZED_USER")throw B(e,c),new Error("CLAIMING_WITH_UNAUTHORIZED_USER");if(Array.isArray(c.fieldErrors)&&c.fieldErrors.find(d=>d.errorCode==="INVALID_EMAIL_ADDRESS")){let d=c.fieldErrors.find(u=>u.errorCode==="INVALID_EMAIL_ADDRESS");throw B(e,d),new Error("INVALID_EMAIL_ADDRESS")}throw new Error("SYSTEM")}})}i(lb,"initCreateSalIdentityFn");function ub({dependencies:{microservicesSdk:e}}){return n=>l(null,[n],function*({token:t,countryCode:r}){try{return(r.toLowerCase()==="ca"?yield e.domains.account.convertDtokToMagicLinkCanada({token:t}):yield e.domains.account.convertDtokToMagicLink({token:t})).magicLinkId}catch(a){throw new Error("SYSTEM")}})}i(ub,"initConvertDtokToMagicLinkFn");function mb({dependencies:{clientSdk:e,appEventSdk:t}}){return n=>l(null,[n],function*({magicLinkGrant:r}){try{let a=yield e.user.checkSalStatus({magicLinkGrant:r});if("subscriptionUnclaimedEmailAvailable"in a)return{status:"SUB_UNCLAIMED_EMAIL_AVAILABLE",email:a.subscriptionUnclaimedEmailAvailable.rosEmail};if("subscriptionUnclaimedEmailAvailableUnauthorized"in a)return{status:"SUB_UNCLAIMED_EMAIL_AVAILABLE_SIGNIN_TO_REUSE_EMAIL",email:a.subscriptionUnclaimedEmailAvailableUnauthorized.rosEmail};if("subscriptionUnclaimedNoEmail"in a)return{status:"SUB_UNCLAIMED_NO_EMAIL"};
1if("subscriptionUnclaimedEmailTaken"in a)return B(t,{code:"Email in use",message:"SUB_UNCLAIMED_EMAIL_TAKEN"}),{status:"SUB_UNCLAIMED_EMAIL_TAKEN"};if("subscriptionClaimed"in a)return{status:"SUB_CLAIMED",grant:a.subscriptionClaimed.grant};throw new Error("INVALID_SAL_STATUS")}catch(a){throw new Error("SYSTEM")}})}i(mb,"initCheckSalStatusFn");function fb({dependencies:{clientSdk:e,appEventSdk:t}}){return n=>l(null,[n],function*({magicLinkId:r}){try{return yield e.user.magicLinkRedeem({magicLinkId:r})}catch(a){switch(a.code){case"userServices.magicLink.magicLinkNotFound":throw B(t,a),new Error("MAGIC_LINK_NOT_FOUND");case"userServices.magicLink.magicLinkExpired":throw B(t,a),new Error("MAGIC_LINK_EXPIRED");case"userServices.magicLink.invalidBaseUrl":throw B(t,a),new Error("INVALID_BASE_URL");default:throw new Error("SYSTEM")}}})}i(fb,"initRedeemMagicLinkSalFn");function pb({dependencies:e}){return()=>l(null,null,function*(){let{appEventSdk:t}=e,r=(yield Dn(e)).filter(n=>!n.source.sms);if(r.some(n=>["active","pending_cancellation"].some(a=>a.toLowerCase()===n.state.toLowerCase()))){t.trackEvent({event:"customer-info",data:{subscriptions:r.map(a=>({id:a?.id,planCode:a?.products?.[0]?.name,termLength:a?.currentPhase?.billingPeriod?.months?.count,status:a?.state,startDate:a?.started,terminatedDate:a?.terminated,offerId:a?.offerId,currentPhaseType:a?.currentPhase?.type,billingSource:Object.keys(a?.source)?.[0]}))}});for(let a=0;a<r.length;a++){let o=r[a],{detailedState:s}=yield zr({subscription:o},e);o.detailedState=s}let n=r.find(a=>a.detailedState);if(!n)throw new Error("IDENTITY_NOT_ELIGIBLE_ERROR");switch(n.detailedState&&Or(n.detailedState.lifecycleState)){case"SELF_PAY":case"TRIAL_WITH_FOLLOW_ON":throw new Error("EXISTING_SELF_PAY_SUBSCRIPTION_ERROR")}}})}i(pb,"initCheckIdentityEligibilityForAutomotiveSubscriptionFn");function hb({dependencies:e}){let{appEventSdk:t,clientSdk:r}=e;return s=>l(null,[s],function*({email:n,password:a,language:o}){let c;try{let d={emailAddress:n,password:a,language:o};yield r.user.anonymousLogin(!0),yield oa(d,e),t.trackEvent({event:"customer-info",data:{customerType:"NEW_SXIR_ACCOUNT"}}),c="create"}catch(d){if(a&&d.message==="IDENTITY_ALREADY_EXISTS_ERROR")try{yield r.user.login({handle:n,password:a}),c="login"}catch(u){throw u.code==="userServices.identity.invalidCredentials"?(B(t,u),new Error("INVALID_CREDENTIALS_ERROR")):(rt(u,e),new Error("SYSTEM"))}else throw d}return c==="create"?"create":"login"})}i(hb,"initCreateIdentityOrLoginFn");function gb({dependencies:e,countryCodeDefault:t}){return s=>l(null,[s],function*({language:r,consentToMarket:n,marketingConsentVersion:a,privacyAgreementVersion:o}){if(n)try{yield Ln({version:a,language:r,countryCode:t.toUpperCase()},e)}catch(c){}try{yield xc({version:o,language:r,countryCode:t.toUpperCase()},e)}catch(c){}})}i(gb,"initAcceptAgreementsForIdentityCreateFn");function yb({dependencies:e,countryCodeDefault:t}){return a=>l(null,[a],function*({language:r,marketingConsentVersion:n}){yield Ln({version:n,language:r,countryCode:t.toUpperCase()},e)})}i(yb,"initAcceptMarketingAgreementForDeviceLinkingFn");function vb(e){return{acceptAgreementsForIdentityCreate:gb(e),acceptMarketingAgreementForDeviceLinking:yb(e),activateUserCode:cb(e),checkIdentityEligibilityAndVehicleStatusByRadioId:ob(e),checkIdentityEligibilityAndVehicleStatusByVin:sb(e),checkIdentityEligibilityForAutomotiveSubscription:pb(e),checkSalStatus:mb(e),claimTrialForRadioId:nb(e),claimTrialForVin:ib(e),convertDtokToMagicLink:ub(e),createIdentityAndActivateUserCode:db(e),createIdentityIfEmailEligible:rb(e),createIdentityOrLogin:hb(e),createSalIdentity:lb(e),redeemMagicLinkSal:fb(e),startPasskeyIfSupported:Zv(e)}}i(vb,"domainOnboarding");function xn(n,a){return l(this,arguments,function*({phoneNumber:e},{clientSdk:t,appEventSdk:r}){try{yield t.user.updatePhoneNumber({body:{phoneNumber:e}})}catch(o){throw o?.code==="userServices.identity.invalidPhoneNumber"?(B(r,o),new Error("INVALID_PHONE_NUMBER")):new Error("SYSTEM")}})}i(xn,"updatePhoneNumber");function bb({dependencies:e}){return t=>l(null,null,function*(){try{yield xn(t,e)}catch(r){return}})}i(bb,"initAddPhoneNumberFn");function Sb({dependencies:e}){return t=>l(null,null,function*(){yield xn(t,e)})}i(Sb,"initUpdatePhoneNumberFn");function Eb({dependencies:e}){return r=>l(null,[r],function*({request:t}){yield xc(t,e)})}i(Eb,"acceptCustomerAgreementAndPrivacyPolicyFn");function wb({dependencies:e}){return r=>l(null,[r],function*({request:t}){yield Ln(t,e)})}i(wb,"acceptMarketingOffersFn");function Cb({dependencies:e}){return r=>l(null,[r],function*({request:t}){yield Mc(t,e)})}i(Cb,"acceptOfferAndRenewalTermsFn");function Ib({dependencies:e}){return()=>l(null,null,function*(){try{return yield Gr(e)}catch(t){throw new Error("SYSTEM")}})}i(Ib,"initGetIdentityFn");function Tb(r){return l(this,arguments,function*({clientSdk:e,appEventSdk:t}){try{yield e.user.recordPrivacyOptionByIdentityId()}catch(n){}})}i(Tb,"recordPrivacyOptionForIdentity");function Ab({dependencies:e}){let{appEventSdk:t,clientSdk:r}=e;return()=>l(null,null,function*(){try{let n=i(a=>C(g({},a),{accountNumber:a.accountNumber||"",privacyAgreements:a.privacyAgreements||[],specialHandlingFlag:a.specialHandlingFlag||null,userOptedOut:a.userOptedOut}),"mapClientSdkToWebSdk")(yield r.user.account());return n.userOptedOut?t.trackEvent({event:"optout-update",customerInfo:{optOut:!0}}):window.OnetrustActiveGroups&&!window.OnetrustActiveGroups?.split(",").includes("C0004")&&(yield Tb(e)),n}catch(n){throw new Error("SYSTEM")}})}i(Ab,"initGetAccountFn");function xe(r){return l(this,arguments,function*({clientSdk:e,appEventSdk:t}){try{let n=i(a=>C(g({},a),{defaultPaymentMethodId:a.defaultPaymentMethodId||"",serviceAddress:{addressLine1:a.serviceAddress?.addressLine1||"",city:a.serviceAddress?.city||"",state:a.serviceAddress?.state||"",zipCode:a.serviceAddress?.zipCode||"",country:a.serviceAddress?.country},status:"open"in a.status?{open:{activeDisputes:a.status.open.activeDisputes,serviceAddressStatus:a.status.open.serviceAddressStatus,subscriptions:a.status.open.subscriptions}}:{open:null}}),"mapClientSdkToWebSdk")(yield e.commerce.billing.getDefaultBillingProfile());return t.trackEvent({event:"customer-info",customerInfo:{firstName:n?.b
1illingProfileName?.firstAndLastName?.firstName,lastName:n?.billingProfileName?.firstAndLastName?.lastName,serviceAddress:{state:n?.serviceAddress?.state}}}),n}catch(n){throw new Error("SYSTEM")}})}i(xe,"getDefaultBillingProfile");function kb({dependencies:e}){return()=>l(null,null,function*(){return yield xe(e)})}i(kb,"initGetDefaultBillingProfileFn");function _b({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{return yield t.domains.accountManagement.getContactPreferences(r)}catch(n){throw he(e,n)||new Error("SYSTEM")}})}i(_b,"initGetContactPreferencesFn");function Uc(e){return l(this,null,function*(){let{clientSdk:t,appEventSdk:r}=e;try{let n=yield xe(e),a=n.id,o=n.defaultPaymentMethodId,s=i(({paymentMethod:d})=>({paymentMethod:{card:C(g({},d.card),{billingAddress:{addressLine1:d.card.billingAddress?.addressLine1||"",city:d.card.billingAddress?.city||"",state:d.card.billingAddress?.state||"",zipCode:d.card.billingAddress?.zipCode||"",country:d.card.billingAddress?.country||""},last4:d.card.last4,wallet:d.card.wallet})}}),"mapClientSdkToWebSdk"),{paymentMethod:c}=s(yield t.commerce.billing.getPaymentMethod({billingProfileId:a,paymentMethodId:o}));return r.trackEvent({event:"customer-info",customerInfo:{billingAddress:{state:c?.card?.billingAddress?.state}}}),c}catch(n){throw new Error("SYSTEM")}})}i(Uc,"getDefaultPaymentMethod");function Pb(e,t){let r=new Date(e,t-1);return r?Uo(new Date,r)<0?"EXPIRED":Uo(new Date,r)===0?"SOON_EXPIRED":"VALID":null}i(Pb,"getCardExpirationState");function Nb({dependencies:e}){return()=>l(null,null,function*(){return yield Uc(e)})}i(Nb,"initGetDefaultPaymentMethodFn");function Ob(r,n){return l(this,arguments,function*({billingProfileId:e},{clientSdk:t}){let a=i(({items:s})=>({items:s.map(c=>C(g({},c),{offerId:c.offerId||""}))}),"mapClientSdkToWebSdk"),{items:o}=a(yield t.commerce.billing.getBillingProfileNextBill({billingProfileId:e}));return{items:o}})}i(Ob,"getBillingProfileNextBill");function Rb({dependencies:e}){let{clientSdk:t}=e;return()=>l(null,null,function*(){try{let{id:r}=yield xe(e),n=yield t.commerce.billing.getBalanceDueDetails({billingProfileId:r}),{items:a}=yield Ob({billingProfileId:r},e);return{balanceDue:n.balanceDue.value,items:a}}catch(r){throw new Error("SYSTEM")}})}i(Rb,"initGetNextBillFn");function Db(a,o){return l(this,arguments,function*({billingProfileId:e,startDateTime:t,endDateTime:r},{clientSdk:n}){let s=i(({items:d})=>({items:d.map(u=>"payment"in u?{payment:C(g({},u.payment),{invoiceId:u.payment.invoiceIds?.[0]||"",paidAt:new Date(u.payment.paidAt),wallet:u.payment.wallet})}:"balance"in u?{balance:C(g({},u.balance),{invoiceId:u.balance.invoiceId||"",paidAt:new Date(u.balance.paidAt)})}:"refund"in u?{refund:C(g({},u.refund),{invoiceId:u.refund.invoiceId||"",paidAt:new Date(u.refund.paidAt),invoiceAdjustmentId:u.refund.invoiceAdjustmentId||""})}:{})}),"mapClientSdkToWebSdk"),{items:c}=s(yield n.commerce.billing.getBillingProfilePaymentHistory({billingProfileId:e,startDateTime:t,endDateTime:r}));return{items:c}})}i(Db,"getBillingProfilePaymentHistory");
1function Lb({dependencies:e}){return n=>l(null,[n],function*({startDateTime:t,endDateTime:r}){try{let{id:a}=yield xe(e),{items:o}=yield Db({billingProfileId:a,startDateTime:t,endDateTime:r},e);return o}catch(a){throw new Error("SYSTEM")}})}i(Lb,"initGetPaymentHistoryFn");function Fc(n,a){return l(this,arguments,function*({billingProfileId:e,invoiceId:t},{clientSdk:r}){return i(o=>C(g({},o),{amountDue:o.amountDue||{value:0},amountPaid:o.amountPaid||{value:0},amountTotal:o.amountTotal,appliedBalance:o.appliedBalance||{value:0},dueDate:o.dueDate||"",lines:o.lines.reduce((s,c)=>{if("invoiceLine"in c){let{invoiceLine:d}=c;return[...s,{invoiceLine:C(g({},d),{amountAllocation:C(g({},d.amountAllocation),{taxAmount:d.amountAllocation.taxAmount||{value:0},prorationAdjustmentApplied:d.amountAllocation.prorationAdjustmentApplied||{value:0},mrfAmount:d.amountAllocation.mrfAmount||{value:0}}),offerId:d.offerId||"",productId:d.productId||"",subscriptionId:d.subscriptionId||"",taxes:{total:d.taxes?.total||{value:0},breakdown:d.taxes?.breakdown.map(u=>C(g({},u),{jurisdiction:u.jurisdiction||"",jurisdictionLevel:u.jurisdictionLevel||"",taxType:u.taxType||""}))||[]}})}]}else return s},[]),number:o.number||"",paymentMethodId:o.paymentMethodId||"",serviceAddress:C(g({},o.serviceAddress),{addressLine1:o.serviceAddress?.addressLine1||"",city:o.serviceAddress?.city||"",state:o.serviceAddress?.state||"",zipCode:o.serviceAddress?.zipCode||""}),subscriptionId:o.subscriptionId||""}),"mapClientSdkToWebSdk")(yield r.commerce.billing.getInvoice({billingProfileId:e,id:t}))})}i(Fc,"getInvoice");function xb({dependencies:e,countryCodeDefault:t,locale:r}){let{clientSdk:n,microservicesSdk:a}=e;return c=>l(null,[c],function*({startDateTime:o,endDateTime:s}){try{let{id:d}=yield xe(e),{items:u}=yield n.commerce.billing.getInvoices({billingProfileId:d,startDateTime:o,endDateTime:s}),f=yield Promise.all(u.map(h=>Fc({billingProfileId:d,invoiceId:h.id},e))),v=[].concat(...f.map(h=>h.lines))?.map(h=>h?.invoiceLine?.offerId)?.filter(h=>!!h),p={offerIds:[...new Set(v)],accessToken:Ur(),locales:r.supported.map(h=>ir(h,t,void 0))},m=yield a.domains.offers.getOffersCommerceInfo(p);return{details:f,offersInfo:m}}catch(d){throw new Error("SYSTEM")}})}i(xb,"initGetInvoicesFn");function Bc(s,c){return l(this,arguments,function*({clientSdk:e,appEventSdk:t},{cvc:r,expDate:n,cardNumber:a,country:o}){try{let d;if(!r&&!n)d={giftCard:{incomm:{cardIdentifier:a}}};else{let f=n.split("/")[0],v="20"+n.split("/")[1];d={giftCard:{blackHawk:{cvv2:r,expirationDate:f+v,cardNumber:a}}}}let u=yield e.commerce.giftCard.registerGiftCard({giftCard:d.giftCard,clientLocation:o});return t.trackEvent({event:"gift-card-applied",giftCardInfo:{giftCardApplied:!0}}),{giftCardTokenId:u.giftCardTokenId,giftCardAmount:u.actualBalance.amount.value}}catch(d){throw d?.code==="commerceTeam.giftCardServiceError.location_conflict"?new Error("COUNTRY_ERROR"):d?.payload?.path||d?.code==="commerceTeam.giftCardServiceError.gift_card_bad_data"?new Error("BAD_DATA_RETURNED"):d?.payload?.path||d?.code==="commerceTeam.giftCardServiceError.gift_card_already_redeemed"?new Error("ALREADY_REDEEMED"):new Error("SYSTEM")}})}i(Bc,"registerGiftCard");function Mb({dependencies:e,countryCodeDefault:t}){return r=>l(null,null,function*(){let{giftCardAmount:n,giftCardTokenId:a}=yield Bc(e,g({country:t.toUpperCase()},r));return{giftCardAmount:n,giftCardTokenId:a}})}i(Mb,"initRegisterGiftCardFn");function Ub({dependencies:e,countryCodeDefault:t}){let{clientSdk:r}=e;return s=>l(null,[s],function*({cvc:n,expDate:a,cardNumber:o}){let{giftCardTokenId:c,giftCardAmount:d}=yield Bc(e,{cvc:n,expDate:a,cardNumber:o,country:t.toUpperCase()});try{let{id:u}=yield xe(e);return yield r.commerce.billing.redeemGiftCard({billingProfileId:u,giftCardTokenId:c}),{giftCardAmount:d}}catch(u){throw u?.code==="commerceTeam.giftCardServiceError.location_conflict"?new Error("COUNTRY_ERROR"):u?.payload?.path||u?.code==="commerceTeam.giftCardServiceError.gift_card_bad_data"?new Error("BAD_DATA_RETURNED"):new Error("SYSTEM")}})}i(Ub,"initRegisterAndRedeemGiftCardFn");var PD=Ct(Mr(),1);function Fb({dependencies:e}){let{contentfulSdk:t}=e;return()=>l(null,null,function*(){try{let r="https://www.siriusxm.com",n=(yield t?.getProperties({include:"10"}))?.find(f=>f?.key==="component.id-hot-and-trending")?.value,a=yield t?.getEntryById({id:n}),o=a?.fields,s=a?.sys,c=[],d=o?.default_asset_list;for(let f of d){let v=yield t?.getEntryById({id:f?.sys?.id});c.push(C(g({},v?.fields),{id:f.sys?.id}))}let u={items:c.map(f=>{let v=(0,PD.documentToHtmlString)(f.description,{preserveWhitespace:!0});return{imageUrl:`${r}${f.media?.url}`,imageAltText:f.media?.altText,bodyHtml:ND(v,"_blank"),id:f.id}}),locale:s?.locale};return{[u.locale]:{items:u.items}}}catch(r){throw new Error("SYSTEM")}})}i(Fb,"initGetNewHotAndTrendingFn");var ND=i((e,t)=>{let r=/<a\s+(?!.*?\btarget=)[^>]*>/g;return e.replace(r,n=>n.slice(0,-1)+` target="${t}">`)},"updateAnchorTagsWithTarget");function Bb({dependencies:e}){return r=>l(null,[r],function*({invoiceId:t}){let{id:n}=yield xe(e);try{return yield Fc({billingProfileId:n,invoiceId:t},e)}catch(a){throw new Error("SYSTEM")}})}i(Bb,"initGetInvoiceFn");function qb({dependencies:e,clientSdkBaseUrl:t}){let{clientSdk:r,clientSdkStorageProvider:n}=e;return()=>l(null,null,function*(){try{let a=JSON.parse(n?.getItem("AUTH_TOKEN")??""),o=yc(a)?.session?.accessToken||"";yield Vb(t,o),yield r.user.anonymousLogin(!0)}catch(a){throw new Error("SYSTEM")}})}i(qb,"initDeleteFn");function Vb(e,t){return l(this,null,function*(){let r=yield fetch(`${e}/orchestration/v1/identities`,{method:"DELETE",headers:{Accept:"application/json; charset=utf-8",Authorization:"Bearer {accessToken}".replace("{accessToken}",t),"Content-Type":"application/json"}});return r.ok?{}:Promise.reject(yield r.json())})}i(Vb,"deleteUserIdentity");function Gb({dependencies:e}){let{appEventSdk:t,clientSdk:r}=e;return o=>l(null,[o],function*({newEmailHandle:n,identityId:a}){try{yield r.user.changeHandleToEmailHandle({body:{targetIdentityId:a,newEmailHandle:n}})}catch(s){throw s?.code==="userServices.identityGroup.handleAlreadyInUse"?
1(B(t,s),new Error("HANDLE_ALREADY_IN_USE")):s?.code==="userServices.identityGroup.invalidEmail"?(B(t,s),new Error("EMAIL_INVALID")):new Error("SYSTEM")}})}i(Gb,"initUpdateEmailAddressFn");function zb({dependencies:e}){let{clientSdk:t}=e;return a=>l(null,[a],function*({password:r,identityId:n}){try{yield t.user.updatePassword({body:{newPassword:r,targetIdentityId:n}})}catch(o){throw new Error("SYSTEM")}})}i(zb,"initUpdatePasswordFn");function jb(e,t,r){return l(this,null,function*(){let{clientSdk:n}=r;try{let{id:a}=yield xe(r);yield n.commerce.billing.updateBillingProfile({billingProfileId:a,billingProfileName:{firstAndLastName:{firstName:e,lastName:t}}})}catch(a){throw new Error("SYSTEM")}})}i(jb,"UpdateBillingProfileName");function Kb({dependencies:e}){return n=>l(null,[n],function*({firstName:t,lastName:r}){yield jb(t,r,e)})}i(Kb,"initUpdateFirstAndLastNameFn");function Hb({dependencies:e}){let{clientSdk:t}=e;return n=>l(null,[n],function*({serviceAddress:r}){try{let{id:a}=yield xe(e);yield t.commerce.billing.updateBillingProfile({billingProfileId:a,serviceAddress:r})}catch(a){throw new Error("SYSTEM")}})}i(Hb,"initUpdateServiceAddressFn");function Yb({dependencies:e}){let{clientSdk:t}=e;return n=>l(null,[n],function*({address:r}){try{let{id:a,defaultPaymentMethodId:o}=yield xe(e);yield t.commerce.billing.updatePaymentMethod({billingProfileId:a,paymentMethodId:o,update:{card:{billingAddress:{setBillingAddress:{billingAddress:g({},r)}}}}})}catch(a){throw new Error("SYSTEM")}})}i(Yb,"initUpdateBillingAddressFn");function Wb({dependencies:e}){return()=>l(null,null,function*(){try{if(jt()==="anonymous")throw new Error("SYSTEM");let{serviceAddress:{state:t,country:r}}=yield xe(e);return{regionCode:t,countryCode:r}}catch(t){let{regionCode:r="",countryCode:n=""}=py()||{};return{regionCode:r,countryCode:n}}})}i(Wb,"initGetDefaultRegionCodeFn");function da(a,o,s){return l(this,arguments,function*(e,t,{clientSdk:r,appEventSdk:n}){try{let c=yield r.commerce.billing.postPaymentMethods({billingProfileId:e,stripePaymentMethodId:t});c.paymentMethod?.card?.id&&(yield r.commerce.billing.setBillingProfileDefaultPaymentMethod({billingProfileId:e,paymentMethodId:c.paymentMethod.card.id,stripePaymentMethodId:t}))}catch(c){throw c?.code==="commerceTeam.billingServiceService.payment_method_failed"||c?.code==="commerceTeam.billingServiceService.payment_method_declined"?(B(n,c),new Error("CREDIT_CARD_ERROR")):new Error("SYSTEM")}})}i(da,"UpdateBillingProfilePaymentMethod");function $b({dependencies:e}){return r=>l(null,[r],function*({stripePaymentMethodId:t}){let{id:n}=yield xe(e);yield da(n,t,e)})}i($b,"initAddPaymentMethodStripeFn");function Xb({dependencies:e}){let{clientSdk:t,appEventSdk:r}=e;return a=>l(null,[a],function*({password:n}){try{let o=yield t.user.getIdentityId();if(!o)throw new Error;yield t.user.updatePassword({body:{targetIdentityId:o,newPassword:n}})}catch(o){throw vc(o)?B(r,C(g({},o),{message:"Password creation unsuccessful"})):rt(o,e),new Error("SYSTEM")}})}i(Xb,"initAddPasswordFn");function Jb({dependencies:e}){return()=>l(null,null,function*(){let{card:t}=yield Uc(e);if(t&&!t.wallet?.applePay){let r=Pb(t.expiryDate.year,t.expiryDate.month);return{brand:t.brand,last4:t.last4,isExpired:r==="EXPIRED"||r==="SOON_EXPIRED"}}else return null})}i(Jb,"initGetDefaultPaymentMethodCreditCardFn");function Zb({dependencies:e}){return()=>l(null,null,function*(){try{let{billingProfileName:t}=yield xe(e);return t.firstAndLastName.firstName+" "+t.firstAndLastName.lastName}catch(t){throw new Error("SYSTEM")}})}i(Zb,"initGetFullNameFn");function qc(s,c){return l(this,arguments,function*({firstName:e,lastName:t,serviceAddress:r,stripePaymentMethodId:n},{clientSdk:a,appEventSdk:o}){let d={firstAndLastName:{firstName:e,lastName:t}};try{yield a.commerce.billing.createBillingProfile({billingProfileName:d,serviceAddress:C(g({},r),{country:r.country.toUpperCase()}),stripePaymentMethodId:n})}catch(u){throw u?.code==="commerceTeam.billingServiceService.payment_method_failed"||u?.code==="commerceTeam.billingServiceService.payment_method_declined"?(B(o,u),new Error("CREDIT_CARD_ERROR")):new Error("SYSTEM")}})}i(qc,"CreateBillingProfileWithDefaultPaymentMethod");function Qb({dependencies:e,state:t}){return c=>l(null,[c],function*({firstName:r,lastName:n,phoneNumber:a,stripePaymentMethodId:o,serviceAddress:s}){let{clientSdk:d}=e;t.stripePaymentMethodId=o;try{yield xn({phoneNumber:a},e)}catch(u){Vr(`Error while calling updatePhoneNumber: ${a} ${u.code} - ${u.message}`,e)}try{let{id:u}=yield xe(e);yield d.commerce.billing.updateBillingProfile({billingProfileId:u,billingProfileName:{firstAndLastName:{firstName:r,lastName:n}},serviceAddress:C(g({},s),{country:s.country.toUpperCase()})}),yield da(u,o,e)}catch(u){yield qc({firstName:r,lastName:n,serviceAddress:s,stripePaymentMethodId:o},e)}})}i(Qb,"initAddPaymentMethodStripeWithNamePhoneZipFn");function eS({dependencies:e,state:t}){return c=>l(null,[c],function*({firstName:r,lastName:n,phoneNumber:a,stripePaymentMethodId:o,serviceAddress:s}){let{clientSdk:d}=e;t.stripePaymentMethodId=o;try{yield xn({phoneNumber:a},e)}catch(u){}try{let{id:u}=yield xe(e);yield d.commerce.billing.updateBillingProfile({billingProfileId:u,billingProfileName:{firstAndLastName:{firstName:r,lastName:n}},serviceAddress:C(g({},s),{country:s.country.toUpperCase()})}),yield da(u,o,e)}catch(u){yield qc({firstName:r,lastName:n,serviceAddress:s,stripePaymentMethodId:o},e)}})}i(eS,"initAddPaymentMethodStripeWithNamePhoneAddressFn");function tS({dependencies:e}){return a=>l(null,[a],function*({stripePaymentMethodId:t,giftCardId:r,acceptAgreementRequest:n}){let{appEventSdk:o,clientSdk:s}=e;try{let{id:c}=yield xe(e),d=yield s.commerce.billing.postBalanceDuePaySelf(g({billingProfileId:c,stripePaymentMethodId:t},r?{giftCardId:r}:{}));return n&&(yield Mc(g({},n),e)),r?{billingProfileBalanceAfter:d?.billingProfileBalanceAfter?.value}:{billingProfileBalanceAfter:0}}catch(c){throw c?.code==="commerceTeam.billingServiceService.payment_method_failed"||c?.code==="commerceTeam.billingServiceService.payment_method_declined"?(B(o,c),new Error("CREDIT_CARD_ERROR")):new Error("SYSTEM")}})}i(tS,"initPayInvoiceStripeFn");function rS({dependencies:e}){let{appEventSdk:t}=e;return r=>l(null,null,function*(){let{code:n,message:a,type:o}=r;
1o==="card_error"&&B(t,{code:n,message:a})})}i(rS,"initLogCreateStripePaymentMethodErrorFn");function nS({dependencies:e}){let{clientSdk:t}=e;return s=>l(null,[s],function*({firstName:r,lastName:n,zipCode:a,country:o}){try{let c={firstAndLastName:{firstName:r,lastName:n}},d={zipCode:a,country:o.toUpperCase()},u="";try{u=(yield xe(e)).id}catch(f){}u?yield t.commerce.billing.updateBillingProfile({billingProfileId:u,billingProfileName:c,serviceAddress:d}):yield t.commerce.billing.createBillingProfile({billingProfileName:c,serviceAddress:d})}catch(c){throw new Error("SYSTEM")}})}i(nS,"initUpdateFirstLastNameZipAndCountryFn");function iS({dependencies:e}){let{clientSdk:t}=e;return c=>l(null,[c],function*({firstName:r,lastName:n,state:a,zipCode:o,country:s}){try{let d={firstAndLastName:{firstName:r,lastName:n}},u={state:a,zipCode:o,country:s.toUpperCase()},f="";try{f=(yield xe(e)).id}catch(v){}f?yield t.commerce.billing.updateBillingProfile({billingProfileId:f,billingProfileName:d,serviceAddress:u}):yield t.commerce.billing.createBillingProfile({billingProfileName:d,serviceAddress:u})}catch(d){throw new Error("SYSTEM")}})}i(iS,"initUpdateFirstLastNameStateZipAndCountryFn");function aS({dependencies:e}){let{clientSdk:t}=e;return n=>l(null,[n],function*({address:r}){try{let{id:a,serviceAddress:o}=yield xe(e),s=Mo(o.zipCode),c=Mo(r.zipCode);s===c&&(yield t.commerce.billing.updateBillingProfile({billingProfileId:a,serviceAddress:C(g({},r),{country:r.country.toUpperCase()})}))}catch(a){throw new Error("SYSTEM")}})}i(aS,"initUpdateServiceAddressWhenExistingZipMatchesFn");function oS(){return()=>vy()}i(oS,"initHandleFn");function sS({dependencies:e}){return()=>l(null,null,function*(){try{return!!(yield Gr(e)).contact?.phoneNumber}catch(t){throw new Error("SYSTEM")}})}i(sS,"initHasPhoneNumberFn");function cS({dependencies:e}){let{clientSdk:t}=e;return()=>{Ue()||window.addEventListener("OneTrustGroupsUpdated",r=>{dS(r,t)})}}i(cS,"initPrivacyOptionsOptOutFn");function dS(e,t){if(!e.detail?.includes("C0004")&&jt()==="authenticated")try{t.user.account().then(r=>{r.userOptedOut||t.user.recordPrivacyOptionByIdentityId().then(n=>{})})}catch(r){}}i(dS,"processOneTrustGroupsUpdated");function lS({dependencies:e}){let{microservicesSdk:t}=e;return o=>l(null,[o],function*({lastName:r,phoneNumber:n,zipCode:a}){try{return yield t.domains.account.verify({lastName:r,phoneNumber:n,zipCode:a})}catch(s){throw q(s,e),new Error("SYSTEM")}})}i(lS,"initVerifyAccountLpzFn");function uS(e){let t=null,r=e.phases.find(({type:c})=>c==="Free");r&&(t=Ti(r));let n=null,a=e.phases.find(({type:c})=>c==="Introductory");a&&(n=Ti(a));let o=null,s=e.phases.find(({type:c})=>c==="AutoRenewing");return s&&(o=Ti(s)),{free:t,introductory:n,autoRenewing:o}}i(uS,"offerPricing");function mS(e){return"finite"in e?e.finite.length:1}i(mS,"getTermLength");function Ti(e){let{price:t,duration:r}=e,n=mS(r),a=t?.total.value||0;return{priceMonthly:a,termLength:n,priceTerm:n*a}}i(Ti,"buildPriceAndTerm");function Vc(r,n){return l(this,arguments,function*({offerId:e},{clientSdk:t}){return i(({offer:a,campaignId:o,productGroups:s})=>{let c="Direct";return"amazonAppStore"in a.billingPlatform?c="AmazonAppStore":"appleAppStore"in a.billingPlatform?c="AppleAppStore":"googlePlayStore"in a.billingPlatform?c="GooglePlayStore":"rokuPay"in a.billingPlatform&&(c="RokuPay"),{offer:C(g({},a),{name:a.name||"",products:a.products.map(d=>C(g({},d),{productType:d.productType})),billingPlatform:c,basePrice:{productAmount:{value:a.basePrice?.productAmount.value||0},total:{value:a.basePrice?.total.value||0}},phases:a.phases?.map(d=>C(g({},d),{duration:{finite:"finite"in d.duration?d.duration.finite:{length:0,timeUnit:"Months"},infinite:"infinite"in d.duration?d.duration.infinite:{}},billingPeriod:d.billingPeriod||{length:0,timeUnit:"Months"},price:d.price?C(g({},d.price),{mrfAmount:d.price.mrfAmount||{value:0},calculatedAs:{basePrice:0,fixedDiscount:0,percentageDiscount:0}}):{productAmount:{value:0},total:{value:0},mrfAmount:{value:0},calculatedAs:{basePrice:0,fixedDiscount:0,percentageDiscount:0}}}))||[]}),campaignId:o,productGroups:s}},"mapClientSdkToWebSdk")(yield t.commerce.eligibility.getOfferDetails({offerId:e}))})}i(Vc,"getOfferDetailsCall");function Gc(r,n){return l(this,arguments,function*({offerId:e},t){try{let a=yield Vc({offerId:e},t),o=uS(a.offer),s="SelfPay";return a.offer.phases.some(({type:c})=>c==="Free")?s="Trial":a.offer.phases.some(({type:c})=>c==="Introductory")&&(s="Promo"),{offer:{id:e,phases:a.offer.phases,priceAndTerm:o,type:s}}}catch(a){throw new Error("SYSTEM")}})}i(Gc,"getOfferDetails");var OD=Ct(Mr(),1);function zc(e){return Array.isArray(e)?e.map(t=>t.startsWith("{")?JSON.parse(t)?.headline:t):[]}i(zc,"mapListeningOptions");function fS(e,t){if(Array.isArray(e)){let r=RD[pS(t)],n=e.map(a=>a.startsWith("{")?JSON.parse(a)?.headline:a);return{inside:{isActive:n.indexOf("Satellite")!==-1,label:r?.SATELLITE},outside:{isActive:n.indexOf("Streaming")!==-1,label:r?.STREAMING},pandora:{isActive:n.indexOf("Pandora")!==-1||n.indexOf("Custom Stations")!==-1,label:r?.PANDORA},perks:{isActive:n.indexOf("Perks")!==-1,label:r?.PERKS}}}else return null}i(fS,"mapIcons");function pS(e){switch(e.replace("_","-")){case"en-CA":return"en-CA";case"fr-CA":return"fr-CA";default:return"en-US"}}i(pS,"normalizeLocale");var RD={"en-US":{SATELLITE:"Inside<br/>the Car",STREAMING:"On the<br/>SiriusXM app",PANDORA:"Custom<br/>Stations",PERKS:"VIP<br/>Perks"},"en-CA":{SATELLITE:"Inside<br/>the Car",STREAMING:"On the<br/>SiriusXM app",PANDORA:"Custom<br/>Stations",PERKS:"VIP<br/>Perks"},"fr-CA":{SATELLITE:"Dans<br/>la voiture",STREAMING:"Sur l\u2019appli<br/>SiriusXM",PANDORA:"Stations<br/>personnalis\xE9es",PERKS:"Avantages<br/>VIP"}};function Yo(e){if(e&&e.trim().startsWith("{"))try{let t=JSON.parse(e),{name:r,href:n,link_text:a,aria_label:o,link_type:s}=t;return{name:r,href:n,link_text:a,aria_label:o,link_type:s}}catch(t){return console.error("Error parsing JSON:",t),null}else return console.warn("Input is not a valid JSON string."),null}i(Yo,"mapDealRedemptionCtaLinkInfo");var hS=i(e=>{let t="https://www.siriusxm.com",r=[];
1return Object.keys(e.locales).forEach(n=>{e.locales[n].map(a=>{let o=a.offerDescription||null,s=zc(o?.listeningOptions),c=fS(o?.listeningOptions,n);r.push({locale:n,planCode:a.planCode,salesHero:C(g({},a.salesHero),{presentation:a.salesHero?.presentation,subTitle:ke(a.salesHero?.subTitle),title:ke(a.salesHero?.title)}),paymentInterstitialBullets:a.paymentInterstitialBullets?.map(ke),offerDescription:C(g({},o),{packageName:ke(o?.packageName),highlightsTitle:ke(o?.highlightsTitle),highlightsText:o?.highlightsText?.map(ke),listeningOptions:s,longDescription:ke(o?.longDescription),priceAndTermDescTitle:ke(o?.priceAndTermDescTitle),processingFeeDisclaimer:ke(o?.processingFeeDisclaimer),recapDescription:ke(o?.recapDescription),recapLongDescription:ke(o?.recapLongDescription),icons:c,footer:ke(o?.footer)}),offerDetails:a.offerDetails?LD(ke(a.offerDetails),"_blank"):null,renewalOfferDetails:ke(a.renewalOfferDetails),deals:a.deals?.map(d=>C(g({},d),{description:ke(d.description),title:ke(d.title),deviceImage:d.deviceImage?d.deviceImage.startsWith("http")?d.deviceImage:`${t}${d.deviceImage}`:null,productImage:d.productImage?d.productImage.startsWith("http")?d.productImage:`${t}${d.productImage}`:null,dealRedemptionCTAInfo:C(g({},d.dealRedemptionCTAInfo),{description:ke(d.dealRedemptionCTAInfo.description),image:d.dealRedemptionCTAInfo.image?d.dealRedemptionCTAInfo.image.startsWith("http")?d.dealRedemptionCTAInfo.image:`${t}${d.dealRedemptionCTAInfo.image}`:null,cTALinkInfo:Yo(d.dealRedemptionCTAInfo.cTALinkInfo),mobileCTALinkInfo:Yo(d.dealRedemptionCTAInfo.mobileCTALinkInfo)})})),packageDescription:{packageName:ke(o?.packageName),highlightsTitle:ke(o?.highlightsTitle),highlightsText:o?.highlightsText?.map(ke),listeningOptions:s,longDescription:ke(o?.longDescription),icons:c,footer:ke(o?.footer),packageFeatures:o?.packageFeatures?.map(d=>C(g({},d),{features:d.features?.map(u=>C(g({},u),{shortDescription:ke(u?.shortDescription),toolTipText:u?.tooltipText,name:u?.name,learnMoreLinkText:u?.learnMoreLinkText,learnMoreInformation:ke(u?.learnMoreInformation)}))})),packageHideToggleText:o?.hideToggleLabel,packageShowToggleText:o?.showToggleLabel},addonHeaderOverride:a.addonHeaderOverride,presentation:a.presentation,numberOfBullets:a.numberOfBullets,offerDisplayName:a.offerDisplayName})})}),r},"mapOffersInfoByLocale"),DD=i(e=>{let t=document.createElement("textarea");return t.innerHTML=e,t.value},"decodeHtmlCharacters"),ke=i(e=>{if(e?.startsWith("{")){let t=(0,OD.documentToHtmlString)(JSON.parse(e),{preserveWhitespace:!0});return DD(t)}else return e},"convertIfContentfulDocument"),LD=i((e,t)=>{let r=/<a\s+(?!.*?\btarget=)[^>]*>/g;return e.replace(r,n=>n.slice(0,-1)+` target="${t}">`)},"updateAnchorTagsWithTarget");function jc(s,c){return l(this,arguments,function*({offerIds:e,countryCode:t,province:r,locale:n},{appEventSdk:a,microservicesSdk:o}){let d;try{let u=C(g({offerIds:e,accessToken:Ur()},r&&t.toLowerCase()==="ca"?{province:r}:{}),{locales:n.supported.map(v=>ir(v,t,r))}),f=yield o.domains.offers.getOffersCommerceInfo(u);return d=hS(f),d}catch(u){throw u.errorType==="BUSINESS"&&B(a,u),new Error("SYSTEM")}})}i(jc,"getOffersInfoMappedByLocale");function gS(s,c){return l(this,arguments,function*({offerIds:e,countryCode:t,province:r,locale:n},{appEventSdk:a,microservicesSdk:o}){try{let d=C(g({offerIds:e,accessToken:Ur()},r&&t.toLowerCase()==="ca"?{province:r}:{}),{locales:n.supported.map(u=>ir(u,t,r))});return yield o.domains.offers.getOffersCommerceInfo(d)}catch(d){throw d.errorType==="BUSINESS"&&B(a,d),new Error("SYSTEM")}})}i(gS,"getOffersCommerceInfo");var xD=Ct(Mr(),1);function yS(r,n){return l(this,arguments,function*({offerIds:e},{contentfulSdk:t}){try{let a=yield t?.getOffers({offerIds:e,locale:"*",select:"sys.id,fields.offer_id,fields.packages,fields.care_marketing_info"});if(Array.isArray(a)&&a.length>0){let o=new Set;return e.reduce((s,c)=>{let{entry:d,keyName:u}=MD(a),f=Object.keys(d.fields[u]).reduce((p,m)=>(o.add(m),C(g({},p),{[m]:{displayName:d.fields[u][m]}})),{}),v=null;return d?.fields?.offer_addons&&(v=Object.keys(d.fields.offer_addons).reduce((p,m)=>(o.add(m),C(g({},p),{[m]:{products:UD(d.fields.offer_addons[m],m)}}
1)),{})),C(g({},s),{[c]:[...o].reduce((p,m)=>C(g({},p),{[m]:{displayName:f?.[m]?.displayName,products:v?.[m]?.products||{}}}),{})})},{})}else return{}}catch(a){throw new Error("SYSTEM")}})}i(yS,"getOfferCmsDisplayName");var MD=i(e=>{let t=e[0].fields?.packages?.["en-US"][0],r=e[0].fields?.care_marketing_info?.["en-US"],n=r.fields?.offer_display_name?r:t,a=r.fields?.offer_display_name?"offer_display_name":"package_display_name";return{entry:n,keyName:a}},"getEntryInfo"),UD=i((e,t)=>{let r={};return e.forEach(n=>{r=g(g({},r),FD(n,t))}),r},"getOfferProductsInfo"),FD=i((e,t)=>({[e.fields?.addon_id?.[t]]:{name:e.fields?.name?.[t],title:e.fields?.header?.[t],subTitle:e.fields?.addon_note_text?.[t],description:Af(e.fields?.description?.[t]),imageUrl:e.fields?.product_image?.[t]?.url,imageAltText:e.fields?.product_image?.[t]?.altText,redeemInfo:{title:e.fields?.post_purchase_cta_module?.[t]?.fields?.headline?.[t],description:Af(e.fields?.post_purchase_cta_module?.[t]?.fields?.description?.[t]),cta:{buttonLabel:e.fields?.post_purchase_cta_module?.[t]?.fields?.cta?.[t]?.fields?.link_text?.[t],buttonAriaLabel:e.fields?.post_purchase_cta_module?.[t]?.fields?.cta?.[t]?.fields?.aria_label?.[t],href:e.fields?.post_purchase_cta_module?.[t]?.fields?.cta?.[t]?.fields?.href?.[t]}}}}),"toProductInfoFromOfferAddon"),Af=i(e=>(0,xD.documentToHtmlString)(e,{preserveWhitespace:!0}),"convertDocumentToHtmlString");function vS(r,n){return l(this,arguments,function*({smsPackageIds:e},{contentfulSdk:t}){let a=yield t?.getPackages({smsPackageIds:e,locale:"*",select:"fields.package_display_name,fields.sms_package_id"});return e.reduce((o,s)=>{let c=a?.items?.find(d=>d.fields.sms_package_id["en-US"]===s);return C(g({},o),{[s]:c?Object.keys(c.fields.package_display_name).reduce((d,u)=>C(g({},d),{[u]:{displayName:c.fields.package_display_name[u],products:{}}}),{}):{}})},{})})}i(vS,"getPackageCmsDisplayName");function la(r,n){return l(this,arguments,function*({countryCodeDefault:e},{microservicesSdk:t}){let a=(e==="ca"?["en-CA","fr-CA"]:["en-US"]).map(s=>t.domains.offers.allPackageDesc({locale:s.replace("-","_")}).then(c=>({[s]:c}))),o=(yield Promise.all(a)).reduce((s,c)=>g(g({},s),c),{});return bS(o)})}i(la,"getPackageCmsDisplayNames");function bS(e){let t={};for(let r in e){let n=e[r].packagesDescription;for(let{packageName:a,name:o,channelLineUpURL:s,packageOverride:c}of n)t[a]||(t[a]={}),t[a][r]={displayName:SS(o),channelLineUpUrl:s||"",packageOverrides:(c??[])?.map(d=>({name:d.name,type:d.type,footer:d.promoFooter})),products:{}}}return t}i(bS,"groupByPackage");function SS(e){if(!e||e.length===0)return e;let t=["sirius","xm","siriusxm"],r=e.split(" "),n=r.findIndex(o=>t.some(s=>o.toLowerCase()===s)),a=r.findIndex(o=>o.toLowerCase()==="de");return n>=0&&(r.splice(n,1),a>=0&&r.splice(a,1)),r.join(" ")}i(SS,"getPackageDisplayNameWithoutAnyPlatform");function Kc(o,s){return l(this,arguments,function*({promoCode:e,country:t,serviceType:r,stripePaymentMethodId:n},{clientSdk:a}){return i(({offers:c,promoCodeStatus:d,fallbackOffers:u})=>({offers:c.map(({offer:f,campaignId:v,productGroups:p})=>{let m="Direct";return"amazonAppStore"in f.billingPlatform?m="AmazonAppStore":"appleAppStore"in f.billingPlatform?m="AppleAppStore":"googlePlayStore"in f.billingPlatform?m="GooglePlayStore":"rokuPay"in f.billingPlatform&&(m="RokuPay"),{offer:C(g({},f),{name:f.name||"",products:f.products.map(h=>C(g({},h),{productType:h.productType})),billingPlatform:m,basePrice:{productAmount:{value:f.basePrice?.productAmount.value||0},total:{value:f.basePrice?.total.value||0}},phases:f.phases?.map(h=>C(g({},h),{duration:{finite:"finite"in h.duration?h.duration.finite:{length:0,timeUnit:"Months"},infinite:"infinite"in h.duration?h.duration.infinite:{}},billingPeriod:h.billingPeriod||{length:0,timeUnit:"Months"},price:h.price?C(g({},h.price),{mrfAmount:h.price.mrfAmount||{value:0},calculatedAs:{basePrice:0,fixedDiscount:0,percentageDiscount:0}}):{productAmount:{value:0},total:{value:0},mrfAmount:{value:0},calculatedAs:{basePrice:0,fixedDiscount:0,percentageDiscount:0}}}))||[]}),campaignId:v,productGroups:p}}),promoCodeStatus:{invalid:d&&"invalid"in d?d.invalid:null,valid:d&&"valid"in d?{offersAffectTrialEligibility:d.valid.offersAffectTrialEligibility||!1}:{offersAffectTrialEligibility:!1}},fallbackOffers:u||!1}),"mapClientSdkToWebSdk")(yield a.commerce.eligibility.getOffersNew(g(C(g({},e?{promoCode:e}:{}),{clientLocation:t,serviceType:r}),n?{stripePaymentMethodId:n}:{})))})}i(Kc,"getOffersNew");
1function ES({dependencies:e,countryCodeDefault:t}){let{microservicesSdk:r,appEventSdk:n}=e;return()=>l(null,null,function*(){let a;try{a=yield r.domains.account.getAccount({includeFuturePaymentInfo:!0,refreshAccount:!0})}catch(m){throw he(e,m)||(B(n,{code:m?.errorCode,message:m?.errorCode||"Failed to load account data"}),new Error("SYSTEM"))}let o=a.subscriptions?.length>0&&a.subscriptions.every(m=>m.hasInactiveServiceDueToNonPay)?(yield r.domains.quotes.quote({})).quote.currentQuote:null,s=la({countryCodeDefault:t},{microservicesSdk:r}),c=Sc(a,o),d=(a.subscriptions??[]).map(m=>aa(m)),u=d.map(m=>l(null,null,function*(){let h=yield Rc(m.id,e);return g({subscriptionId:m.id},h)})),f=(a.subscriptions??[]).map(m=>qr(m)).flat(),v=[...a.closedDevices.map(m=>Nr({radioId:m.radioId??m?.subscription?.radioService?.radioId??"",last4DigitsOfRadioId:m.last4DigitsOfRadioId,vehicleInfo:m.vehicleInfo,deviceType:m?.subscription?.radioService?.deviceType})),...a.subscriptions.filter(m=>m.radioService).map(m=>C(g({},Nr(m.radioService)),{nickname:m.nickname??""}))].filter(m=>m!==null);n.trackEvent(wS(c,d,f)),n.trackEvent(CS(v));let p=Yy(a.subscriptions);return{account:c,plans:f,offerDisplayInfo:yield s,subscriptions:d,subscriptionOptions:yield Promise.all(u),devices:v,subscriptionBundles:p,sourceData:{account:a,quote:o}}})}i(ES,"initGetSmsAccountDataFn");function wS(e,t,r){return{event:"customer-info",customerInfo:{accountNumber:e.accountNumber,authenticationType:"LOGIN",authenticationStatus:"Authenticated users",billingAddress:e.billingAddress,email:e.email,firstName:e.firstName,lastName:e.lastName,phone:e.phone,serviceAddress:e.serviceAddress,subscriptions:t.map(n=>{let a=r.filter(c=>n.planIds.includes(c.id)),o=a.find(c=>c.phases.some(d=>d.isActivePhase))??a[0],s=o.phases.find(c=>
1c.isActivePhase)??o.phases[0];return{id:n.id,currentPhaseType:s.phase,deviceId:n.deviceId,radioService:n.radioService??null,isCompanion:n.isCompanion,isCompanionDriver:n.isCompanionDriver,isDeviceLess:n.isDeviceLess,offerId:s.metadata.offerId,planCode:s.metadata.code,startDate:s.term.startDate.toISOString(),endDate:s.term.endDate?.toISOString(),status:IS(n),terminatedDate:n.isCancelledAtEndOfCurrentTerm?s.term.endDate?.toISOString():null,termLength:s.term.length,streamingCredentials:n.streamingCredentials?{hasRandomCredentials:!!n.streamingCredentials.hasRandomCredentials}:null}})}}}i(wS,"buildCustomerInfoEventPayload");function CS(e){return{event:"device-info",deviceInfo:e.map(t=>({id:t?.id,isVirtualId:t?.isVirtualId,make:t?.vehicle?.make,model:t?.vehicle?.model,year:t?.vehicle?.year,vin:t?.vehicle?.vin}))}}i(CS,"buildDeviceInfoEventPayload");function IS(e){if(e.isActive)return"Active";if(e.isCancelled)return"Closed";if(e.isPaused)return"Inactive";if(e.isSuspended)return"Suspended";throw new Error("Unsupported subscription status")}i(IS,"getSubscriptionStatus");function TS({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{if((yield t.domains.device.refresh(r))?.status?.toUpperCase()==="FAILURE")throw new Error("FAILED_TO_REFRESH_DEVICE")}catch(n){if(n?.message==="FAILED_TO_REFRESH_DEVICE")throw n;switch(n?.fieldErrors?.[0]?.errorCode){case"INVALID_VIRTUAL_RADIO_ID":throw new Error("DEVICE_REFRESH_NOT_SUPPORTED");case"NO_ACTIVE_SUBSCRIPTION":case"PHONE_OR_VIN_NO_ACTIVE_SUBSCRIPTION":let a=Object.keys(r)[0];if(a==="phone")throw new Error("NO_SUBSCRIPTION");try{let{last4DigitsOfRadioId:o}=yield t.domains.device.validate({[a]:r[a]}),{nonPIIAccount:s}=yield t.domains.account.nonPii({radioId:o});throw s?.billingSummary?.isAccountInCollection?new Error("PAST_DUE"):new Error("NO_SUBSCRIPTION")}catch(o){switch(o?.message){case"NO_SUBSCRIPTION":case"PAST_DUE":throw o;default:throw q(o,e),new Error("SYSTEM")}}case"NO_ACCOUNT_FOUND":case"CLOSED_RADIO":throw new Error("NO_SUBSCRIPTION");case"INVALID_DEVICE_ID":case"DEVICE_NOT_FOUND":case"DEVICE_NOT_FOUND_FOR_VIN":case"PHONE_NOT_FOUND":throw new Error("DEVICE_NOT_FOUND");case"MAXIMUM_REHIT_LIMIT_REACHED":throw new Error("REFRESH_LIMIT_REACHED");case"PHONE_HAS_MORE_THAN_FIVE_RADIOS":throw new Error("DEVICE_LIMIT_EXCEEDED_FOR_PHONE_NUMBER");default:throw q(n,e),new Error("SYSTEM")}}})}i(TS,"initSendRefreshSignalFn");function AS({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{return yield t.domains.device.sendRefreshInstruction(r)}catch(n){throw q(n,e),new Error("SYSTEM")}})}i(AS,"initSendRefreshInstructionsFn");function kS({dependencies:e}){let{microservicesSdk:t}=e;return o=>l(null,[o],function*({transactionType:r,startDate:n,endDate:a}){let s=n?.toISOString(),c=a?.toISOString(),d=g(g({},s?{startDate:s}:{}),c?{endDate:c}:{});try{let u=Promise.resolve({billItems:[]}),f=r==="all"||r==="payment"?t.domains.billing.activity(C(g({},d),{transactionType:"payment"})):u,v=r==="all"||r==="invoice"?t.domains.billing.activity(C(g({},d),{transactionType:"subscription"})):u;return{payments:(yield f).billItems.map(qo),invoices:yield(yield v).billItems.map(qo)}}catch(u){throw he(e,u)||new Error("SYSTEM")}})}i(kS,"initGetBillingActivityFn");function _S({dependencies:e}){let{microservicesSdk:t}=e;return a=>l(null,[a],function*({accessToken:r,refreshToken:n}){try{return(yield t.domains.account.oem({accessToken:r,refreshToken:n})).region}catch(o){throw q(o,e),new Error("SYSTEM")}})}i(_S,"initGetOemRegionFn");function PS({dependencies:e}){let{microservicesSdk:t}=e;return()=>l(null,null,function*(){try{let r=yield t.domains.account.nextBestAction();return Object.fromEntries(Object.entries(r).map(([n,a])=>[n,C(g({},a),{actions:a.actions.map(o=>C(g({},o),{noOfDaysLeftInTrial:typeof o?.noOfDaysLeftInTrial=="bigint"?Number(o.noOfDaysLeftInTrial):o.noOfDaysLeftInTrial}))})]))}catch(r){throw he(e,r)||(q(r,e),new Error("SYSTEM"))}})}i(PS,"initGetNextBestActionsFn");function Hc(r,n){return l(this,arguments,function*({microservicesSdk:e},{username:t}){try{let{valid:a}=yield e.domains.validate.uniqueLogin({userName:t,reuseUserName:!0});if(!a)throw new Error("USERNAME_IN_USE")}catch(a){throw a.message?a:new Error("SYSTEM")}})}i(Hc,"validateUsername");
1function NS({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({username:r}){try{yield Hc(e,{username:r}),yield t.domains.accountManagement.updateAccountLogin({userName:r})}catch(a){throw he(e,a)||(a.message?a:(q(a,e),new Error("SYSTEM")))}})}i(NS,"initUpdateAccountUsernameFn");function Yc(r,n){return l(this,arguments,function*({microservicesSdk:e},{password:t}){try{let a=yield e.domains.validate.password({value:t});if(!a.valid)switch(a.validationErrorKey){case"validation.password.new.dictionaryWords":throw new BD("PASSWORD_DISALLOWED_WORDS",a.validationErrorFailedWord||"");case"validation.password.new.charsAllowed":throw new Error("PASSWORD_POLICY_NOT_MET")}}catch(a){throw a.message?a:new Error("SYSTEM")}})}i(Yc,"validatePassword");var OS=class extends Error{constructor(t,r){super(t),w(this,"word"),this.word=r}};i(OS,"PasswordDisallowedWordError");var BD=OS;function RS({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({password:r}){try{yield Yc(e,{password:r}),yield t.domains.accountManagement.updateAccountPassword({password:r})}catch(a){throw he(e,a)||(a.message?a:(q(a,e),new Error("SYSTEM")))}})}i(RS,"initUpdateAccountPasswordFn");function DS({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{let n=r.address,{country:a}=n,o=st(n,["country"]),s=yield t.domains.validate.customerInfo({billingAddress:o});return s?.billingAddressValidation?Wy(s.billingAddressValidation,r.address.country):{confidenceLevel:"none",status:"valid",correctedAddresses:[]}}catch(a){return q(a,e),{confidenceLevel:"none",status:"valid",correctedAddresses:[]}}})}i(DS,"initValidateBillingAddressSmsFn");function LS({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{let n=r.address,{country:a}=n,o=st(n,["country"]),s=yield t.domains.validate.customerInfo({serviceAddress:o});return s?.serviceAddressValidation?$y(s.serviceAddressValidation,r.address.country):{confidenceLevel:"none",status:"valid",correctedAddresses:[]}}catch(a){return q(a,e),{confidenceLevel:"none",status:"valid",correctedAddresses:[]}}})}i(LS,"initValidateServiceAddressSmsFn");function xS({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{yield t.domains.accountManagement.updateBillingInfo({billingAddress:{addressLine1:r.address.addressLine1,city:r.address.city,state:r.address.state,zipCode:r.address.zip}})}catch(n){throw he(e,n)||(q(n,e),new Error("SYSTEM"))}})}i(xS,"initUpdateBillingAddressSmsFn");function MS({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{yield t.domains.accountManagement.updateCustomerInfo({firstName:r.firstName,lastName:r.lastName,phoneNumber:r.phone,email:r.email,billingAddressSameAsService:r.syncBillingAddress,serviceAddress:{addressLine1:r.address.addressLine1,city:r.address.city,state:r.address.state,zipCode:r.address.zip}})}catch(n){throw he(e,n)||(q(n,e),new Error("SYSTEM"))}})}i(MS,"initUpdateContactInfoSmsFn");function US({dependencies:e}){let{microservicesSdk:t}=e;return a=>l(null,[a],function*({deviceId:r,reason:n}){try{let o="Other";n==="vehicleSold"?o="Vehicle sold or traded":n==="radioLost"?o="Radio lost, broken or stolen":n==="radioSold"&&(o="Radio sold, given away, or discarded"),yield t.domains.accountManagement.removeDevice({radioId:r,reason:o})}catch(o){throw q(o,e),new Error("SYSTEM")}})}i(US,"initRemoveDeviceFromAccountSmsFn");
1function FS({dependencies:e}){let{microservicesSdk:t,appEventSdk:r}=e;return s=>l(null,[s],function*({username:n,password:a,subscriptionId:o}){try{yield Hc(e,{username:n}),yield Yc(e,{password:a});let c=BS(n)?n:void 0;yield t.domains.account.updateStreaming({email:c,username:n,password:a,subscriptionId:o}),r.trackEvent({event:"companion-subscription-claimed-via-streaming-credentials",companionSubscriptionClaimedInfo:{subscriptionId:o}})}catch(c){throw he(e,c)||(c.message?c:(q(c,e),new Error("SYSTEM")))}})}i(FS,"initUpdateStreamingCredentialsFn");function BS(e){return/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(e)}i(BS,"isEmail");function qS({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({email:r}){try{yield t.domains.payment.updateEBillEnrollment({email:r,ebillEnrollment:!0})}catch(a){throw new Error("SYSTEM")}})}i(qS,"initEBillSignUpFn");function VS({dependencies:e}){let{microservicesSdk:t}=e;return()=>l(null,null,function*(){try{yield t.domains.payment.updateEBillEnrollment({ebillEnrollment:!1})}catch(r){throw new Error("SYSTEM")}})}i(VS,"initEBillOptOutFn");function GS({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({email:r}){try{yield t.domains.payment.updateEBillEnrollment({email:r,ebillEnrollment:!0})}catch(a){throw new Error("SYSTEM")}})}i(GS,"initEBillUpdateEmailFn");function zS({dependencies:e}){let{microservicesSdk:t,appEventSdk:r}=e;return a=>l(null,[a],function*({radioId:n}){try{let o=yield t.domains.account.eligibleRadioAccount({radioId:n.slice(-4)}),s=o?.nonPIIAccount?.subscriptions?.length>0?o.nonPIIAccount.subscriptions[0]?.radioService:o?.nonPIIAccount?.closedDevices?.length>0?o.nonPIIAccount.closedDevices[0]:null;return r.trackEvent({event:"device-info",deviceInfo:{esn:n,vin:s?.vehicleInfo?.vin,vid:null,year:s?.vehicleInfo?.year,make:s?.vehicleInfo?.make,model:s?.vehicleInfo?.model}}),{nonPIIAccount:o.nonPIIAccount}}catch(o){throw he(e,o)||(q(o,e),new Error("SYSTEM"))}})}i(zS,"initGetEligibleDeviceAccountSmsFn");function jS({dependencies:e}){let{microservicesSdk:t}=e;return s=>l(null,[s],function*({cardNumber:r,cardExpMonth:n,cardExpYear:a,cvv:o}){try{let c=KS(a??""),d=yield t.domains.payment.giftCardInfo(g(g(g({giftCardNumber:r},n?{giftCardExpMonth:n}:{}),a?{giftCardExpYear:c}:{}),o?{securityCode:o}:{}));return{amount:d.amount,currency:d.currency,cardNumber:r,cardExpiration:d.giftCardExpiry??null,status:d.isSuccess?"Success":"Failure"}}catch(c){throw he(e,c)||(q(c,e),new Error("SYSTEM"))}})}i(jS,"initGetGiftCardInfoSmsFn");function KS(e){return e.length===2?"20"+e:e}i(KS,"makeFourDigitYear");function HS({dependencies:e}){let{microservicesSdk:t}=e;return c=>l(null,[c],function*({accountNumber:r,cardNumber:n,cardExpMonth:a,cardExpYear:o,cvv:s}){let d,u=YS(o??"");try{if(d=yield t.domains.payment.giftCardInfo(g(g(g({giftCardNumber:n},a?{giftCardExpMonth:a}:{}),o?{giftCardExpYear:u}:{}),s?{securityCode:s}:{})),!d)throw Object.assign(new Error("MICROSERVICES_GIFT_CARD_NUMBER_INVALID"),{errorCode:"GIFT_CARD_NO_INVALID"});if(!d.amount||d.amount<=0)throw Object.assign(new Error("MICROSERVICES_GIFT_CARD_NO_BALANCE"),{errorCode:"NO_BALANCE_ON_CARD"})}catch(f){throw he(e,f)||(q(f,e),new Error("SYSTEM"))}try{let f=yield t.domains.payment.giftCardRedeem(C(g(g(g({accountNumber:r,giftCardNumber:n},a?{giftCardExpMonth:a}:{}),o?{giftCardExpYear:u}:{}),s?{securityCode:s}:{}),{giftCardAmount:d.amount}));return{amount:f.amount,currency:f.currency,cardType:f.cardType,vendorType:f.vendorType,status:f.success?"Success":"Failure"}}catch(f){throw he(e,f)||(q(f,e),new Error("SYSTEM"))}})}i(HS,"initRedeemGiftCardSmsFn");function YS(e){return e.length===2?"20"+e:e}i(YS,"makeFourDigitYear");function WS({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{yield t.domains.account.updateCna(r)}catch(n){throw q(n,e),new Error("SYSTEM")}})}i(WS,"initUpdateCnaSmsFn");function $S({dependencies:e}){let{microservicesSdk:t}=e;return a=>l(null,[a],function*({accountNumber:r,radioId:n}){try{return{nonPIIAccount:yield t.domains.account.lookupRegistrationAccount({accountNumber:r,radioId:n})}}catch(o){throw q(o,e),new Error("SYSTEM")}})}i($S,"initGetRegistrationAccountSmsFn");
1function XS({dependencies:e}){let{microservicesSdk:t}=e;return o=>l(null,[o],function*({userName:r,password:n,cna:a}){try{return yield t.domains.account.register(g(g(g({},r?{userName:r}:{}),n?{password:n}:{}),a?{cna:a}:{}))}catch(s){throw q(s,e),new Error("SYSTEM")}})}i(XS,"initRegisterAccountSmsFn");function JS({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({email:r}){try{let{atlasSubscriptionStatus:a,valid:o}=yield t.domains.validate.uniqueLogin({userName:r,reuseUserName:!0}),s=yield t.domains.identity.getAccountByEmail({email:r,includeInactiveSubscriptions:!0});return{emailIsUnique:o,emailIsAssociatedWithAccount:s.length>0&&s.reduce((c,d)=>c||d.status.toLowerCase()==="active"||d.status.toLowerCase()==="inactive",!1),emailIsAssociatedWithSelfPaySubscriptions:s.length>0&&s.some(c=>!c.closed&&c.plans?.some(d=>d.type.toUpperCase()==="SELF_PAY")),emailIsAssociatedWithInactiveAtlasSubscriptions:a?.toLowerCase()==="closed",emailIsAssociatedWithInactiveSubscriptions:s.length>0&&s.some(c=>c.closed)}}catch(a){throw q(a,e),new Error("SYSTEM")}})}i(JS,"initGetAccountAssociationByEmailSmsFn");function ZS({dependencies:e}){let{microservicesSdk:t,appEventSdk:r}=e;return()=>l(null,null,function*(){let n;try{n=yield t.domains.account.getAccount({includeFuturePaymentInfo:!0,refreshAccount:!0})}catch(c){throw he(e,c)||(B(r,{code:c?.errorCode,message:c?.errorCode||"Failed to load account data"}),new Error("SYSTEM"))}let a=Sc(n,null),o=(n.subscriptions||[]).map(c=>aa(c)),s=(n.subscriptions||[]).map(c=>qr(c)).flat();return{account:a,subscriptions:o,plans:s}})}i(ZS,"initGetSmsAccountForSubscriptionPurchaseFn");
1function QS({dependencies:e}){return()=>l(null,null,function*(){let{microservicesSdk:t}=e;try{return{status:(yield t.domains.payment.giftCardRemove()).toUpperCase()==="SUCCESS"?"Success":"Failure"}}catch(r){throw q(r,e),new Error("SYSTEM")}})}i(QS,"initRemoveGiftCardSmsFn");function eE({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{return(yield t.domains.identity.flepz(r)).map(n=>({closed:n.closed,id:n.id,status:n.status,email:n.email,plans:qr({id:n.id??Ic(6),plans:n.plans,followonPlans:n.followonPlans}),radioService:n.radioService?Nr(n.radioService):null,nickname:n.nickname,closedDate:n.closedDate,duplicateVehicleInfo:n.duplicateVehicleInfo,isEVSubscription:n.isEVSubscription}))}catch(n){throw q(n,e),new Error("SYSTEM")}})}i(eE,"initGetFlepzSmsFn");function tE({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{return yield t.domains.validate.email(r),!0}catch(n){return q(n,e),!1}})}i(tE,"initValidateEmailSmsFn");function rE({dependencies:e}){let{microservicesSdk:t}=e;return()=>l(null,null,function*(){try{return{subscriptions:(yield t.domains.account.acEligibleRadios()).subscriptions.map(r=>({status:r.status,id:r.id,plans:qr({id:r.id,plans:r.plans,followonPlans:r.followonPlans}),radioService:r.radioService?Nr(r.radioService):null,closedDate:r.closedDate,nickname:r.nickname,isEVSubscription:r.isEVSubscription,isRadioOnSameAccount:r.isRadioOnSameAccount}))}}catch(r){throw he(e,r)||(q(r,e),new Error("SYSTEM"))}})}i(rE,"initGetConsolidationDevicesForAccountSmsFn");function nE({dependencies:e}){let{microservicesSdk:t,appEventSdk:r}=e;return a=>l(null,[a],function*({trialRadioId:n}){try{let o=yield t.domains.account.acEligibleRadioAccount({trialRadioId:n.slice(-4)}),s=o?.nonPIIAccount?.subscriptions?.length>0?o.nonPIIAccount.subscriptions[0]?.radioService:o?.nonPIIAccount?.closedDevices?.length>0?o.nonPIIAccount.closedDevices[0]:null;return r.trackEvent({event:"device-info",deviceInfo:{esn:n,vin:s?.vehicleInfo?.vin,vid:null,year:s?.vehicleInfo?.year,make:s?.vehicleInfo?.make,model:s?.vehicleInfo?.model}}),{nonPIIAccount:o.nonPIIAccount}}catch(o){throw he(e,o)||(q(o,e),new Error("SYSTEM"))}})}i(nE,"initGetAcEligibleDeviceAccountSmsFn");function iE({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({trialRadioId:r}){try{return{status:(yield t.domains.trialActivation.accountConsolidate({trialRadioId:r})).status?"Success":"Failure"}}catch(a){throw he(e,a)||(q(a,e),new Error("SYSTEM"))}})}i(iE,"initConsolidateTrialSmsFn");function aE({dependencies:e}){let{microservicesSdk:t}=e;return a=>l(null,[a],function*({accountNumber:r,marketingPromoCode:n}){try{return yield t.domains.accountManagement.redeemPromotionalCredit({accountNumber:r,marketingPromoCode:n})}catch(o){throw he(e,o)||(q(o,e),new Error("SYSTEM"))}})}i(aE,"initRedeemPromotionalCreditSmsFn");function oE({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{return yield t.domains.account.nonPii(r)}catch(n){throw q(n,e),new Error("SYSTEM")}})}i(oE,"initGetSmsAccountNonPiiFn");function sE({dependencies:e}){let{clientSdk:t}=e;return()=>l(null,null,function*(){try{(yield t.user.account()).userOptedOut||(yield t.user.recordPrivacyOptionByIdentityId())}catch(r){}})}i(sE,"initRecordPrivacyOptionFn");var qD=Ct(Mr(),1);function cE({dependencies:e}){let{contentfulSdk:t}=e;return()=>l(null,null,function*(){try{let r="https://www.siriusxm.com",n=yield t?.getProperties({include:"10"}),a=dE(n,"component.id-hot-and-trending-content-card"),o=yield t?.getEntryById({id:a}),s=o?.fields,c=o?.sys,d=(yield Promise.all(s?.default_asset_list.map(u=>l(null,null,function*(){return C(g({},(yield t?.getEntryById({id:u.sys.id}))?.fields),{id:u.sys.id})})))).map(u=>({imageUrl:`${r}${u.image?.url}`,imageAltText:u.image?.altText,bodyHtml:lE((0,qD.documentToHtmlString)(u.description,{preserveWhitespace:!0}),"_blank"),id:u.id}));return{[c?.locale]:{items:d}}}catch(r){throw new Error("SYSTEM")}})}i(cE,"initGetContentCardNewHotAndTrendingFn");function dE(e,t){return e?.find(r=>r.key===t)?.value}i(dE,"getPropertyIdByKey");function lE(e,t){let r=/<a\s+(?!.*?\btarget=)[^>]*>/g;return e.replace(r,n=>n.slice(0,-1)+` target="${t}">`)}i(lE,"updateAnchorTagsWithTarget");function uE(e){return{acceptCustomerAgreementAndPrivacyPolicy:Eb(e),acceptMarketingOffers:wb(e),acceptOfferAndRenewalTerms:Cb(e),addPassword:Xb(e),addPaymentMethodStripe:$b(e),addPaymentMethodStripeWithNamePhoneAddress:eS(e),addPaymentMethodStripeWithNamePhoneZip:Qb(e),addPhoneNumber:bb(e),consolidateTrialSms:iE(e),delete:qb(e),eBillOptOut:VS(e),eBillSignUp:qS(e),eBillUpdateEmail:GS(e),getAccount:Ab(e),getAccountAssociationByEmailSms:JS(e),getAcEligibleDeviceAccountSms:nE(e),getBillingActivity:kS(e),getConsolidationDevicesForAccountSms:rE(e),getContactPreferences:_b(e),getContentCardNewHotAndTrending:cE(e),getDefaultBillingProfile:kb(e),getDefaultPaymentMethod:Nb(e),getDefaultPaymentMethodCreditCard:Jb(e),getDefaultRegionCode:Wb(e),getEligibleDeviceAccountSms:zS(e),getFlepzSms:eE(e),getFullName:Zb(e),getGiftCardInfoSms:jS(e),getIdentity:Ib(e),getInvoice:Bb(e),getInvoices:xb(e),getNewHotAndTrending:Fb(e),getNextBestActions:PS(e),getNextBill:Rb(e),getOemRegion:_S(e),getPaymentHistory:Lb(e),getRegistrationAccountSms:$S(e),getSmsAccount:ES(e),getSmsAccountForSubscriptionPurchase:ZS(e),getSmsAccountNonPii:oE(e),handle:oS(),hasPhoneNumber:sS(e),logCreateStripePaymentMethodError:rS(e),payInvoiceStripe:tS(e),privacyOptionsOptOut:cS(e),recordPrivacyOption:sE(e),redeemGiftCardSms:HS(e),redeemPromotionalCreditSms:aE(e),registerAccountSms:XS(e),registerAndRedeemGiftCard:Ub(e),registerGiftCard:Mb(e),removeDeviceFromAccountSms:US(e),removeGiftCardSms:QS(e),sendRefreshInstructions:AS(e),sendRefreshSignal:TS(e),updateAccountPassword:RS(e),updateAccountUsername:NS(e),updateBillingAddress:Yb(e),updateBillingAddressSms:xS(e),updateCna:WS(e),updateContactInfoSms:MS(e),updateEmailAddress:Gb(e),updateFirstAndLastName:Kb(e),updateFirstLastNameStateZipAndCountry:iS(e),updateFirstLastNameZipAndCountry:nS(e),updatePassword:zb(e),updatePhoneNumber:Sb(e),updateServiceAddress:Hb(e),updateServiceAddressWhe
1nExistingZipMatches:aS(e),updateStreamingCredentials:FS(e),validateBillingAddressSms:DS(e),validateEmailSms:tE(e),validateServiceAddressSms:LS(e),verifyAccountLpz:lS(e)}}i(uE,"domainAccount");function zi(a,o){return l(this,arguments,function*({identityId:e,otpOption:t,language:r},{clientSdk:n}){try{yield n.user.initializeOTP({identityId:e,otpOption:t==="email"?"EMAIL":"PHONE",otpContext:"sign-in",language:r})}catch(s){throw s?.code&&s.code.includes("otpRateLimitExceeded")?new Error("RATE_LIMIT_EXCEEDED"):s?.code&&s.code.includes("otp.badRequest")?new Error("BAD_REQUEST"):new Error("SYSTEM")}})}i(zi,"startOneTimePasscode");function mE({dependencies:e}){let{appEventSdk:t}=e;return a=>l(null,[a],function*({handle:r,language:n}){try{let o=yield Nn(e,r),s={identityId:o.identityId,status:"AwaitingAuthMethod",authMethodOptions:[]};return t.trackEvent({event:"signin-verification-methods",flowInfo:{verificationMethodsShown:[...o.contactOptions.some(c=>c.type==="PHONE")?["phone"]:[],...o.contactOptions.some(c=>c.type==="EMAIL")?["email"]:[],...o.hasPassword?["password"]:[]]}}),o.contactOptions.length===1&&o.contactOptions[0].type==="EMAIL"&&!o.hasPassword?(yield zi({identityId:o.identityId,otpOption:"email",language:n},e),s.authMethodOptions=[{type:"EMAIL",hint:o.contactOptions[0].maskedValue}],s.status="AwaitingOTP"):o.contactOptions.length===1&&o.contactOptions[0].type==="PHONE"&&!o.hasPassword?(yield zi({identityId:o.identityId,otpOption:"phone",language:n},e),s.authMethodOptions=[{type:"PHONE",hint:o.contactOptions[0].maskedValue}],s.status="AwaitingOTP"):(s.status="AwaitingAuthMethod",s.authMethodOptions=o.contactOptions.map(c=>({type:c.type,hint:c.maskedValue})),o.hasPassword&&s.authMethodOptions.push({type:"PASSWORD"})),s}catch(o){throw o?.message==="INVALID_HANDLE"?o:new Error("SYSTEM")}})}i(mE,"initStartLoginFn");function fE({dependencies:{appEventSdk:e,clientSdk:t}}){return n=>l(null,[n],function*({magicLinkId:r}){try{let{grant:a}=yield t.user.magicLinkRedeem({magicLinkId:r}),o=yield t.partnerIntegration.getDetailedStateHandoff(a),s="TrialNotStarted",c=0;if(o.lifecycleState.trialEligible)s="TrialNotStarted";else if(o.lifecycleState.inactive)s="TrialClaimed";else if(o.lifecycleState.trial?.phase){let{totalNumberOfDays:d,daysIn:u}=gy(o.lifecycleState.trial.startsAt,o.lifecycleState.trial.expiresAt,new Date(Date.now()).toUTCString());c=d-u,o.lifecycleState.trial.phase.anonymous?s="TrialNotClaimed":o.lifecycleState.trial.phase.claimed?s="TrialClaimed":o.lifecycleState.trial.phase.followOn&&(s="TrialWithFollowOn")}else o.lifecycleState.selfPay&&(s="SelfPay");return e.trackEvent({event:"device-info",deviceInfo:{vin:o.vehicleState?.vin,vid:o.radioId,year:o.vehicleState?.year,make:o.vehicleState?.make,model:o.vehicleState?.model}}),g({status:s,oemId:o.oemDriverId,radioId:o.radioId,vehicle:o.vehicleState,daysBeforeTrialEndDate:c},o.billingSystem?{billingSystem:o.billingSystem}:{})}catch(a){switch(a.code){case"userServices.magicLink.magicLinkNotFound":throw B(e,a),new Error("MAGIC_LINK_NOT_FOUND");case"userServices.magicLink.magicLinkExpired":throw B(e,a),new Error("MAGIC_LINK_EXPIRED");case"userServices.magicLink.invalidBaseUrl":throw B(e,a),new Error("INVALID_BASE_URL");default:throw new Error("SYSTEM")}}})}i(fE,"initRedeemMagicLinkForDeviceClaimTrialFn");function pE(){return()=>jt()}i(pE,"initStatusFn");function hE({dependencies:e}){let{appEventSdk:t,clientSdk:r,eventSdk:n}=e;return a=>l(null,null,function*(){try{Vr(`Login with password. Handle: ${a?.handle}`,e),yield r.user.anonymousLogin(!0),yield r.user.login(a),n.emit({type:"command",commandType:"authStatusChange",authenticated:!0})}catch(o){throw o.code==="userServices.identity.invalidCredentials"?(B(t,o),new Error("INVALID_CREDENTIALS")):(rt(o,e),new Error("SYSTEM"))}})}i(hE,"initLoginWithPasswordFn");function gE({dependencies:e}){let{appEventSdk:t,clientSdk:r,eventSdk:n}=e;return s=>l(null,[s],function*({identityId:a,code:o}){try{Vr(`Login with OTP. IdentityId: ${a}`,e),yield r.user.anonymousLogin(!0),yield r.user.authenticateOTP(a,o),n.emit({type:"command",commandType:"authStatusChange",authenticated:!0})}
1catch(c){throw c.code.includes("expiredOtp")?(B(t,c),new Error("EXPIRED")):c.code.includes("invalidOtp")?(B(t,c),new Error("INVALID")):c.code.includes("otpNotFound")?(B(t,c),new Error("NOT_FOUND")):c.code.includes("otpRateLimitExceeded")?(B(t,c),new Error("RATE_LIMIT_EXCEEDED")):(rt(c,e),new Error("SYSTEM"))}})}i(gE,"initLoginWithVerificationCodeFn");function yE({dependencies:e}){return a=>l(null,[a],function*({identityId:t,otpOption:r,language:n}){yield zi({identityId:t,otpOption:r,language:n},e)})}i(yE,"initStartOneTimePasscodeFn");function vE({dependencies:e}){let{clientSdk:t}=e;return()=>l(null,null,function*(){ly(),yield t.user.anonymousLogin(!0)})}i(vE,"initStartAnonymousSessionFn");function Wc(n){return l(this,arguments,function*({microservicesSdk:e,clientSdk:t,eventSdk:r}){try{try{yield e.domains.authenticate.logout({source:"PHX"})}catch(a){}yield t.user.anonymousLogin(!0),r.emit({type:"command",commandType:"authStatusChange",authenticated:!1})}catch(a){throw new Error("SYSTEM")}})}i(Wc,"logout");function bE({dependencies:e}){let{clientSdk:t,microservicesSdk:r,eventSdk:n}=e;return()=>l(null,null,function*(){yield Wc({microservicesSdk:r,clientSdk:t,eventSdk:n})})}i(bE,"initLogoutFn");function SE({dependencies:e}){let{clientSdk:t}=e;return r=>l(null,null,function*(){try{let n=r,{state:a}=n,o=st(n,["state"]),s=(yield t.user.oauthThirdParty(o)).authCode;return{authCode:s,redirectUrl:dy({url:r.redirectUri,queryParams:{code:s,state:r.state}})}}catch(a){throw new Error("SYSTEM")}})}i(SE,"initGetOAuthFinalRedirectUriFn");function EE(){return()=>jt()==="anonymous"}i(EE,"initIsAnonymousFn");function wE(){return()=>jt()==="authenticated"}i(wE,"initIsAuthenticatedFn");function CE({dependencies:e}){return r=>l(null,[r],function*({handle:t}){return yield Nn(e,t)})}i(CE,"initGetIdentityLoginInfoFn");function IE(t){return l(this,arguments,function*({clientSdk:e}){try{return yield e.user.getAuthenticatedSession()}catch(r){throw new Error("SYSTEM")}})}i(IE,"GetAuthenticatedSession");function TE({dependencies:e}){return()=>l(null,null,function*(){return yield IE(e)})}i(TE,"initGetAuthenticatedUserInfoFn");function AE({dependencies:e}){let{microservicesSdk:t,eventSdk:r}=e;return n=>l(null,null,function*(){let a=n?.grant;if(!a){let s=JSON.parse(zt()||"");if(!s)throw new Error("SYSTEM");a=yc(s)?.identityGrant?.grant}if(!a)throw new Error("SYSTEM");let o=g({identityGrant:a},n);try{let s=yield t.domains.authenticate.login(o);return r.emit({type:"command",commandType:"authStatusChange",authenticated:!0}),s}catch(s){throw s?.errorCode==="ACCOUNT_IN_DIFFERENT_COUNTRY"?new Error("ACCOUNT_IN_DIFFERENT_COUNTRY"):s?.errorCode==="SXIR_ACCOUNT_TYPE_NOT_SUPPORTED"?new Error("ACCOUNT_TYPE_NOT_SUPPORTED"):s?.errorCode==="PROSPECT_ACCOUNT_TYPE_NOT_SUPPORTED"?new Error("PROSPECT_ACCOUNT_TYPE_NOT_SUPPORTED"):s?.errorCode==="CUSTOMER_TYPE_NOT_SUPPORTED"?new Error("CUSTOMER_TYPE_NOT_SUPPORTED"):(Vr(s?.errorCode,e),new Error("SYSTEM"))}})}i(AE,"initLoginSMSFn");function kE({dependencies:e}){let{clientSdk:t}=e;return()=>l(null,null,function*(){try{yield t.user.refreshToken()}catch(r){throw new Error("SYSTEM")}})}i(kE,"initRefreshFn");function _E({dependencies:e}){let{microservicesSdk:t}=e;return()=>l(null,null,function*(){let r;try{r=yield Gr(e)}catch(n){throw new Error("SYSTEM")}if(r.state==="STREAMING")throw new Error("IDENTITY_NOT_ELIGIBLE_ERROR");if(r.state==="ACCOUNT"){let n=JSON.parse(zt()||"");if(!n)throw new Error("SYSTEM");let a=yc(n)?.identityGrant?.grant;if(!a)throw new Error("SYSTEM");try{yield t.domains.authenticate.login({identityGrant:a})}catch(o){throw new Error("IDENTITY_NOT_ELIGIBLE_ERROR")}}})}i(_E,"initCheckIdentityStateAndLoginSMSIfAccountIdentity");function PE({dependencies:e}){let{microservicesSdk:t}=e;return a=>l(null,[a],function*({email:r,password:n}){try{let{status:o,magicLinkId:s}=yield t.domains.account.updateStreaming({email:r,password:n,generateMagicLink:!0});return{status:o,magicLinkId:s??""}}catch(o){throw q(o,e),new Error("SYSTEM")}})}i(PE,"initGenerateMagicLinkWithEmailAndPasswordFn");function NE({dependencies:e}){let{clientSdk:t,microservicesSdk:r,eventSdk:n}=e;return()=>l(null,null,function*(){try{jt()==="authenticated"&&(yield Wc({clientSdk:t,microservicesSdk:r,eventSdk:n}))}catch(a){}})}i(NE,"initLogoutIfAuthenticatedFn");function OE({dependencies:e}){return r=>l(null,[r],function*({handle:t}){let n=yield Nn(e,t);return RE(n)})}i(OE,"initGetIdentityLoginMethodsFn");function RE(e){return{loginMethods:[...e.contactOptions.map(t=>({type:DE(t.type),details:t.maskedValue})),...e.hasPassword?[{type:"password"}]:[]].filter(t=>t.type!==null),hasPasskey:e.hasPasskey,identityId:e.identityId}}i(RE,"mapIdentityLoginMethods");
1function DE(e){return e==="EMAIL"?"email":"phone"}i(DE,"mapVerificationType");function LE(e){return{checkIdentityStateAndLoginSMSIfAccountIdentity:_E(e),generateMagicLinkWithEmailAndPassword:PE(e),getAuthenticatedUserInfo:TE(e),getIdentityLoginInfo:CE(e),getIdentityLoginMethods:OE(e),getOAuthFinalRedirectUri:SE(e),isAnonymous:EE(),isAuthenticated:wE(),loginSMS:AE(e),loginWithPassword:hE(e),loginWithVerificationCode:gE(e),logout:bE(e),logoutIfAuthenticated:NE(e),redeemMagicLinkForDeviceClaimTrial:fE(e),refresh:kE(e),startAnonymousSession:vE(e),startLogin:mE(e),startOneTimePasscode:yE(e),status:pE()}}i(LE,"domainAuth");function $c(e,{offers:t,promoCode:r}){e.trackEvent({event:"offers-presented",offerInfo:{offers:t.map(({offer:n})=>({id:n.id,planCode:n.name,price:n.phases[0]?.price?.total?.value,packageName:n.products?.[0]?.id,retailPrice:n.basePrice.total.value,promoCode:r??"",phases:n.phases.map(({type:a})=>a)}))}})}i($c,"trackOffersPresented");function xE({dependencies:e,countryCodeDefault:t,locale:r,state:n}){let{appEventSdk:a,microservicesSdk:o}=e;return s=>l(null,null,function*(){let c=bn(s.countryCode||t),{stripePaymentMethodId:d}=n,u;try{u=yield Kc(g(C(g({},s.promoCode?{promoCode:s.promoCode}:{}),{country:bn(c),serviceType:s.serviceType}),d?{stripePaymentMethodId:d}:{}),e)}catch(p){throw new Error("SYSTEM")}if(u.promoCodeStatus?.invalid)switch(u.promoCodeStatus.invalid.reason){case"Expired":throw new Error("OFFER_EXPIRED");case"Redeemed":throw new Error("OFFER_REDEEMED");default:throw new Error("INVALID_OFFER_DATA")}if(u.offers.length>1){let p=u.offers.filter(m=>m.offer.baseTerm==="Monthly");u=C(g({},u),{offers:p})}let f=u.offers[0].offer;$c(a,{offers:u.offers,promoCode:s.promoCode});let v;try{let p=C(g({offerIds:[f.id]},s.province&&c.toLowerCase()==="ca"?{province:s.province}:{}),{locales:r.supported.map(h=>ir(h,c,s.province)),accessToken:Ur()}),m=yield o.domains.offers.getOffersCommerceInfo(p);if(v=hS(m),v.length===0)throw new Error("INVALID_OFFER_DATA")}catch(p){throw p.errorType==="BUSINESS"&&B(a,p),new Error("SYSTEM")}return{offer:f,offersInfo:v,campaignId:u.offers[0].campaignId||""}})}i(xE,"initOfferForPresentmentFn");
1function ME({dependencies:e}){return r=>l(null,[r],function*({radioId:t}){try{return yield On({radioId:Br(t)},e)}catch(n){throw new Error("SYSTEM")}})}i(ME,"initCheckVehicleStatusByRadioIdFn");function UE({dependencies:e}){return r=>l(null,[r],function*({vin:t}){try{return yield Rn({vin:Fr(t)},e)}catch(n){throw new Error("SYSTEM")}})}i(UE,"initCheckVehicleStatusByVinFn");function Xc(c,d){return l(this,arguments,function*({clientSdk:e,appEventSdk:t},{offerId:r,promoCode:n,deviceId:a,giftCardId:o,stripePaymentMethodId:s}){try{let u=i(f=>C(g({},f),{subscriptionId:f.subscriptionId||"",created:new Date(f.created),charges:f.charges.map(v=>g(g(g(g({},"oneTimeCharge"in v&&v.oneTimeCharge?{oneTimeCharge:C(g({},v.oneTimeCharge),{period:{start:new Date(v.oneTimeCharge.period?.start||""),end:new Date(v.oneTimeCharge.period?.end||"")},count:0,lines:v.oneTimeCharge.lines.map(p=>C(g({},p),{taxes:{total:p.taxes?.total||{currency:{code:""},value:0},breakdown:p.taxes?.breakdown.map(m=>C(g({},m),{jurisdiction:m.jurisdiction||"",jurisdictionLevel:m.jurisdictionLevel||"",taxType:m.taxType||"",displayName:m.displayName||""}))||[]},fees:p.fees?.map(m=>g({},m)),total:p.total||{value:0,currency:{code:""}}})),billingPeriod:v.oneTimeCharge.billingPeriod||{},previousBalance:v.oneTimeCharge.previousBalance||{value:0,currency:{code:""}},postPurchaseBalance:v.oneTimeCharge.postPurchaseBalance||{value:0,currency:{code:""}},giftCardBalance:v.oneTimeCharge.giftCardBalance||null})}:{}),"repeatingCharge"in v&&v.repeatingCharge?{repeatingCharge:C(g({},v.repeatingCharge),{period:{start:new Date(v.repeatingCharge.period?.start||""),end:new Date(v.repeatingCharge.period?.end||"")},count:0,lines:v.repeatingCharge.lines.map(p=>C(g({},p),{taxes:{total:p.taxes?.total||{currency:{code:""},value:0},breakdown:p.taxes?.breakdown.map(m=>C(g({},m),{jurisdiction:m.jurisdiction||"",jurisdictionLevel:m.jurisdictionLevel||"",taxType:m.taxType||"",displayName:m.displayName||""}))||[]},fees:p.fees?.map(m=>g({},m)),total:p.total||{value:0,currency:{code:""}}})),billingPeriod:v.repeatingCharge.billingPeriod||{}})}:{}),"ongoingCharge"in v&&v.ongoingCharge?{ongoingCharge:C(g({},v.ongoingCharge),{period:{start:new Date(v.ongoingCharge.period?.start||""),end:new Date(v.ongoingCharge.period?.end||"")},count:0,lines:v.ongoingCharge.lines.map(p=>C(g({},p),{taxes:{total:p.taxes?.total||{currency:{code:""},value:0},breakdown:p.taxes?.breakdown.map(m=>C(g({},m),{jurisdiction:m.jurisdiction||"",jurisdictionLevel:m.jurisdictionLevel||"",taxType:m.taxType||"",displayName:m.displayName||""}))||[]},fees:p.fees?.map(m=>g({},m)),total:p.total||{value:0,currency:{code:""}}})),billingPeriod:v.ongoingCharge.billingPeriod||{}})}:{}),"zeroCharge"in v&&v.zeroCharge?{zeroCharge:C(g({},v.zeroCharge),{previousBalance:v.zeroCharge.previousBalance||{value:0,currency:{code:""}},postPurchaseBalance:v.zeroCharge.postPurchaseBalance||{value:0,currency:{code:""}},giftCardBalance:v.zeroCharge.giftCardBalance||null})}:{})),offerId:f.offerId||""}),"mapClientSdkToWebSdk")(yield e.commerce.order.newSubscription(g(g(g(g({offerId:r},n?{promoCode:n}:{}),a?{deviceId:a}:{}),o?{giftCardId:o}:{}),s?{stripePaymentMethodId:s}:{})));return t.trackEvent({event:"order-quoted",orderInfo:[{id:u.id,planCode:u.charges[0]?.oneTimeCharge?.lines[0]?.name,total:u.charges[0]?.oneTimeCharge?.total?.value,subtotal:u.charges[0]?.oneTimeCharge?.subtotal?.value,totalTax:u.charges[0]?.oneTimeCharge?.totalTax?.value,royaltyFee:u.charges[0]?.oneTimeCharge?.lines[0]?.fees?.find(f=>f.type==="mrf")?.amount?.value}],giftCardInfo:{giftCardApplied:!!o}}),u}catch(u){throw new Error("SYSTEM")}})}i(Xc,"CreateOrderForNewSubscription");function FE({dependencies:e,state:t}){return d=>l(null,[d],function*({offerId:r,promoCode:n,deviceId:a,radioId:o,vin:s,giftCardId:c}){o&&(a=yield _c({radioId:o},e)),s&&(a=yield kc({vin:s},e));let{stripePaymentMethodId:u}=t;return yield Xc(e,{offerId:r,promoCode:n,deviceId:a,giftCardId:c,stripePaymentMethodId:u})})}i(FE,"initCreateOrderForAutomotiveFn");function ua(n,a){return l(this,arguments,function*({orderId:e,stripePaymentMethodId:t},{clientSdk:r}){return i(o=>({newSubscription:"newSubscription"in o?o.newSubscription:void 0,cancelSubscription:"cancelSubscription"in o?o.cancelSubscription:void 0,subscriptionPlanSwitch:"subscriptionPlanSwitch"in o?o.subscriptionPlanSwitch:void 0}),"mapClientSdkToWebSdk")(yield r.commerce.order.confirmOrder({orderId:e}))})}i(ua,"confirmOrder");
1function BE({dependencies:e}){let{appEventSdk:t}=e;return n=>l(null,[n],function*({orderId:r}){try{let a=yield ua({orderId:r},e);if(!a?.newSubscription?.subscriptionId)throw new Error("New subscription not created.");let o=a.newSubscription.subscriptionId;return t.trackEvent({event:"customer-info",customerInfo:{customerType:"SXIR_SELFPAY",subscriptions:[{id:o}]}}),t.trackEvent({event:"order-confirmed",subscriptionInfo:[{id:o,orderId:r}]}),{newSubscription:{subscriptionId:a.newSubscription.subscriptionId}}}catch(a){throw new Error("SYSTEM")}})}i(BE,"initConfirmOrderFn");function qE({dependencies:e,countryCodeDefault:t,locale:r}){let{clientSdk:n}=e;return o=>l(null,[o],function*({orderId:a}){try{let s=yield n.commerce.order.getOrder({orderId:a}),c=s.offerId||"",d=yield Vc({offerId:c},e),u=yield jc({offerIds:[c],countryCode:t,locale:r},e),f=!!d?.offer?.phases?.find(v=>["introductory","free"].some(p=>v.type.toLowerCase().includes(p))&&"finite"in v.duration&&v.duration.finite.length>0);return{order:s,hasPromotionalTerm:f,offersInfo:u}}catch(s){throw new Error("SYSTEM")}})}i(qE,"initGetOrderFn");function VE({dependencies:e}){return r=>l(null,[r],function*({radioId:t}){let{appEventSdk:n}=e,a;try{a=yield On({radioId:Br(t)},e),n.trackEvent({event:"device-info",deviceInfo:{vid:t,year:a.vehicleState?.year,make:a.vehicleState?.make,model:a.vehicleState?.model}})}catch(o){throw new Error("SYSTEM")}return Or(a.lifecycleState)})}i(VE,"initGetAutomotiveSubscriptionStatusByRadioId");function GE({dependencies:e}){let{appEventSdk:t}=e;return n=>l(null,[n],function*({vin:r}){let a;try{a=yield Rn({vin:Fr(r)},e),t.trackEvent({event:"device-info",deviceInfo:{vin:r,year:a.vehicleState?.year,make:a.vehicleState?.make,model:a.vehicleState?.model}})}catch(o){throw new Error("SYSTEM")}return Or(a.lifecycleState)})}i(GE,"initGetAutomotiveSubscriptionStatusByVin");var kf=Ct(Mr(),1);function Jc(n,a){return l(this,arguments,function*({contentfulSdk:e},{campaignId:t,locale:r}){try{let o={};for(let s of r.supported){let c=yield e?.getCampaign({name:t,locale:s,include:"10",select:"fields.name,fields.hero,fields.confirmation_hero,fields.confirmation_hero_theme,fields.post_purchase_primary_cta_component,sys.id"}),d=zE(c,"https://www.siriusxm.com");o[s]=g({campaignId:t},d)}return o}catch(o){throw new Error("SYSTEM")}})}i(Jc,"GetCampaignContent");function zE(e,t){let r=e?.items?.[0],n=r?.fields?.hero?.sys?.id,a=e?.includes?.Entry?.find(h=>h?.sys?.id===n),o=a?.fields?.foreground_image?.url,s=a?.fields?.background_image?.url,c=a?.fields?.foreground_image?.altText,d=mn(e,r?.fields?.confirmation_hero?.sys?.id),u=d?C(g({},jE(d,t)),{headlineHtml:(0,kf.documentToHtmlString)(d?.fields?.headline,{preserveWhitespace:!0}),theme:d?.fields?.confirmation_hero_theme||"Theme1"}):void 0,f=mn(e,r?.fields?.post_purchase_primary_cta_component?.sys?.id),v=mn(e,f?.fields?.cta?.sys?.id),p=mn(e,f?.fields?.mobile_cta?.sys?.id),m=f&&v&&p?{headline:f?.fields?.headline,headlineTheme:f?.fields?.headline_theme||"Theme1",descriptionHtml:(0,kf.documentToHtmlString)(f?.fields?.description,{preserveWhitespace:!0}),image:f?.fields?.image,imageUrl:f?.fields?.image_override?.url,cta:Wo(v),ctaMobile:Wo(p)}:void 0;return{foregroundImageUrl:o?`${t}${o}`:"",backgroundImageUrl:s?`${t}${s}`:"",imageAltText:c,confirmation:u,streamingPostPurchase:m}}i(zE,"mapCampaignData");function mn(e,t){return e?.includes?.Entry?.find(r=>r.sys?.id===t)}i(mn,"getEntry");function jE(e,t){let r=e?.fields?.foreground_image?.url,n=e?.fields?.background_image?.url;return{foregroundImageUrl:r?`${t}${r}`:"",backgroundImageUrl:n?`${t}${n}`:"",imageAltText:e?.fields?.foreground_image?.altText||""}}i(jE,"getImageData");function Wo(e){return{href:e?.fields?.href,linkText:e?.fields?.link_text,ariaLabel:e?.fields?.aria_label}}i(Wo,"getLink");function KE({dependencies:e,locale:t}){return n=>l(null,[n],function*({campaignId:r}){return yield Jc(e,{campaignId:r,locale:t})})}i(KE,"initGetCampaignContentForOfferFn");function HE({dependencies:e,state:t}){return r=>l(null,null,function*(){let{stripePaymentMethodId:n}=t;return yield Xc(e,C(g({},r),{stripePaymentMethodId:n}))})}i(HE,"initCreateOrderForStreamingFn");function YE({dependencies:e}){let{clientSdk:t}=e;return o=>l(null,[o],function*({subscriptionId:r,cancellationType:n,cancellationReason:a}){try{return yield t.commerce.order.cancelSubscription(C(g({subscriptionId:r},n&&{cancellationType:n}),{cancellationReason:{code:a}}))}catch(s){throw new Error("SYSTEM")}})}i(YE,"initCreateOrderForSubscriptionCancellationFn");function WE({dependencies:e}){return r=>l(null,[r],function*({orderId:t}){try{let{cancelSubscription:n}=yield ua({orderId:t},e);if(!n)throw new Error("Cancel subscription not created.");return n}catch(n){throw new Error("SYSTEM")}})}i(WE,"initConfirmOrderForSubscriptionCancellationFn");function $E({dependencies:e,countryCodeDefault:t,locale:r}){let{appEventSdk:n,clientSdk:a}=e;return s=>l(null,[s],function*({subscriptionId:o}){let c;try{c=yield a.commerce.eligibility.getOffersSave({subscriptionId:o,clientLocation:t.toUpperCase()}),c.offers?.length>0&&$c(n,{offers:c.offers})}catch(u){throw new Error("SYSTEM")}let d=yield jc({offerIds:c.offers?.map(({offer:u})=>u.id),countryCode:t,locale:r},e);return{offers:c.offers,offersInfo:d}})}i($E,"initOffersSaveForPresentmentFn");
1function XE({dependencies:e,state:t}){let{clientSdk:r}=e;return c=>l(null,[c],function*({subscriptionId:n,offerId:a,flow:o,giftCardId:s}){let{stripePaymentMethodId:d}=t;try{return i(u=>C(g({},u),{subscriptionId:u.subscriptionId||"",created:new Date(u.created),charges:u.charges.map(f=>({oneTimeCharge:"oneTimeCharge"in f&&f.oneTimeCharge?C(g({},f.oneTimeCharge),{period:{start:new Date(f.oneTimeCharge.period?.start||""),end:new Date(f.oneTimeCharge.period?.end||"")},count:0,lines:f.oneTimeCharge.lines.map(v=>C(g({},v),{taxes:{total:v.taxes?.total||{currency:{code:""},value:0},breakdown:v.taxes?.breakdown.map(p=>C(g({},p),{jurisdiction:p.jurisdiction||"",jurisdictionLevel:p.jurisdictionLevel||"",taxType:p.taxType||"",displayName:""}))||[]},fees:v.fees?.map(p=>g({},p)),total:v.total||{value:0,currency:{code:""}}})),billingPeriod:f.oneTimeCharge.billingPeriod||{},previousBalance:f.oneTimeCharge.previousBalance||{value:0,currency:{code:""}},postPurchaseBalance:f.oneTimeCharge.postPurchaseBalance||{value:0,currency:{code:""}},giftCardBalance:f.oneTimeCharge.giftCardBalance||null}):void 0})),offerId:u.offerId||""}),"mapClientSdkToWebSdk")(yield r.commerce.order.planSwitch(g(g(g({subscriptionId:n,offerId:a},s&&{giftCardId:s}),o&&{flow:o}),d?{stripePaymentMethodId:d}:{})))}catch(u){throw new Error("SYSTEM")}})}i(XE,"initCreateOrderForSubscriptionChangeFn");function JE({dependencies:e,locale:t,countryCodeDefault:r}){return a=>l(null,[a],function*({campaignId:n}){return n||(n=r==="ca"?"CA_default_conf_campaign":"default_conf_campaign"),yield Jc(e,{campaignId:n,locale:t})})}i(JE,"initGetCampaignContentForConfirmationFn");function ZE({dependencies:e,state:t,countryCodeDefault:r}){let{appEventSdk:n,clientSdk:a}=e;return d=>l(null,[d],function*({orderId:o,chargeAgreementVersion:s,locale:c}){let{stripePaymentMethodId:u}=t;try{let f=yield a.commerce.order.confirmOrder({orderId:o,body:{stripePaymentMethodId:u}}),v=f?.newSubscription?.subscriptionId;n.trackEvent({event:"customer-info",customerInfo:{customerType:"SXIR_SELFPAY",subscriptions:[{id:v}]}}),n.trackEvent({event:"order-confirmed",subscriptionInfo:[{id:v,orderId:o}]});try{if(yield a.user.updateAccount({privacyAgreements:[{version:s,language:c,consentType:"Offer and Renewal terms",countryCode:r.toUpperCase(),platform:"Web",appVersion:"1.0"}]}),r==="us"){let p=s;yield a.user.updateAccount({privacyAgreements:[{version:p,language:c,consentType:"Customer Agreement and Privacy policy",countryCode:r.toUpperCase(),platform:"Web",appVersion:"1.0"}]})}}catch(p){}return f}catch(f){throw t.stripePaymentMethodId=void 0,new Error("SYSTEM")}})}i(ZE,"initConfirmOrderStripeFn");function QE({dependencies:e}){let{appEventSdk:t}=e;return n=>l(null,[n],function*({orderId:r}){try{let a=(yield ua({orderId:r},e))?.subscriptionPlanSwitch?.subscriptionId;if(!a)throw new Error("Subscription plan switch not created.");return t.trackEvent({event:"customer-info",customerInfo:{customerType:"SXIR_SELFPAY",subscriptions:[{id:a}]}}),t.trackEvent({event:"order-confirmed",subscriptionInfo:[{id:a,orderId:r}]}),a}catch(a){throw new Error("SYSTEM")}})}i(QE,"initConfirmOrderForSubscriptionChangeFn");function ew({dependencies:e,countryCodeDefault:t}){return r=>l(null,null,function*(){let n=bn(r.countryCode||t);try{let a=yield Kc(C(g({},r.promoCode?{promoCode:r.promoCode}:{}),{country:bn(n),serviceType:r.serviceType}),e);return a.offers.length?a.offers[0].offer.products.some(o=>o.productType.partner):!1}catch(a){throw new Error("SYSTEM")}})}i(ew,"offerHasPartnerProductFn");function tw({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({radioId:r}){let a=null,o=null;if(a=yield Nc({radioId:r},e),!a)throw new Error("DEVICE_NOT_FOUND");try{o=yield t.domains.account.nonPii({radioId:a.deviceInformation.radioId})}catch(s){throw q(s,e),new Error("SYSTEM")}return{radioInfo:a.deviceInformation,account:o}})}i(tw,"initGetDeviceInfoByRadioIdSMSFn");function rw({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({vin:r}){let a=null,o=null;if(a=yield Oc({vin:r},e),!a)throw new Error("DEVICE_NOT_FOUND");try{o=yield t.domains.account.nonPii({radioId:a.deviceInformation.radioId})}catch(s){throw q(s,e),new Error("SYSTEM")}return{radioInfo:a.deviceInformation,account:o}})}i(rw,"initGetDeviceInfoByVinSMSFn");
1function nw({dependencies:e,countryCodeDefault:t,locale:r}){let{appEventSdk:n,microservicesSdk:a}=e;return f=>l(null,[f],function*({programCode:o,radioId:s,province:c,marketingPromoCode:d,isNewAccount:u}){let v,p,m,h,y;try{let b=yield a.domains.offers.customer(C(g(g(g(g({},o?{programCode:o}:{}),s?{radioId:s}:{}),c?{province:c}:{}),d?{marketingPromoCode:d}:{}),{isNewAccount:u,streaming:!1}));m=b.offers,v=b.offers[0]?.planCode}catch(b){throw b.errorType==="BUSINESS"?B(n,b):q(b,e),new Error("SYSTEM")}try{let b=yield a.domains.offers.renewal(C(g(g({planCode:v},s?{radioId:s}:{}),c?{province:c}:{}),{streaming:!1}));h=b.offers,p=b.offers[0]?.planCode}catch(b){throw b.errorType==="BUSINESS"?B(n,b):q(b,e),new Error("SYSTEM")}try{let b=g(g({planCodes:[{leadOfferPlanCode:v,renewalPlanCodes:[p]}],locales:r.supported.map(_=>ir(_,t,void 0))},s?{radioId:s}:{}),c?{province:c}:{});y={locales:(yield a.domains.offers.info(g({},b))).locales}}catch(b){throw b.errorType==="BUSINESS"?B(n,b):q(b,e),new Error("SYSTEM")}return{offers:m,renewalOffers:h,offerInfos:y}})}i(nw,"getNonStreamingCustomerOffersSMS");function iw({dependencies:e}){let{microservicesSdk:t}=e;return a=>l(null,[a],function*({licensePlate:r,state:n}){let o=null,s=null;if(o=yield Pc({licensePlate:r,state:n},e),!o)throw new Error("DEVICE_NOT_FOUND");try{s=yield t.domains.account.nonPii({radioId:o.deviceInformation.radioId})}catch(c){throw q(c,e),new Error("SYSTEM")}return{radioInfo:o.deviceInformation,account:s}})}i(iw,"initGetDeviceInfoByLicensePlateSmsFn");var VD=Ct(Mr(),1);function De(e){if(e?.startsWith("{")){let t=(0,VD.documentToHtmlString)(JSON.parse(e),{preserveWhitespace:!0});return Jv(t)}else return e}i(De,"convertContentfulContent");var GD="https://www.siriusxm.com",zD=i(e=>e.locales.map(({locale:t,offerInfos:r})=>r.map(n=>aw(n,t.replace("_","-")))).flat(),"mapSmsOffersInfoByLocale");function aw(e,t){return{locale:t,planCode:e.planCode,salesHero:ow(e),paymentInterstitialBullets:e.paymentInterstitialBullets?.map(De),offerDescription:sw(e),offerDetails:e.offerDetails?jD(De(e.offerDetails)??"","_blank"):null,offerDisplayName:e.offerDisplayName,renewalOfferDetails:De(e.renewalOfferDetails),deals:e.deals?.map(r=>C(g({},r),{description:De(r.description),title:De(r.title),deviceImage:r.deviceImage?r.deviceImage.startsWith("http")?r.deviceImage:`${GD}${r.deviceImage}`:null,deviceImageAltText:r.deviceImageAltText})),addonHeaderOverride:e.addonHeaderOverride,presentation:e.presentation,numberOfBullets:e.numberOfBullets}}i(aw,"mapOfferInfo");function ow(e){return C(g({},e.salesHero),{presentation:e.salesHero?.presentation,subTitle:De(e.salesHero?.subTitle),title:De(e.salesHero?.title)})}i(ow,"mapSalesHero");function sw(e){let t=e.offerDescription||null,r=De(t?.packageName);return C(g({},t),{priceAndTermDescTitle:De(t?.priceAndTermDescTitle),processingFeeDisclaimer:De(t?.processingFeeDisclaimer),packageName:r,highlightsTitle:De(t?.highlightsTitle),highlightsText:t?.highlightsText?.map(De),listeningOptions:zc(t?.listeningOptions),longDescription:De(t?.longDescription),footer:De(t?.footer),packageFeatures:t?.packageFeatures?.map(n=>({packageName:n.packageName,features:n.features?.map(a=>({name:De(a.name),tooltipText:a.tooltipText,shortDescription:De(a.shortDescription),learnMoreLinkText:a.learnMoreLinkText,learnMoreInformation:De(a.learnMoreInformation)}))})),recapDescription:De(t?.recapDescription),recapLongDescription:De(t?.recapLongDescription),showToggleLabel:t.showToggleLabel,hideToggleLabel:t.hideToggleLabel})}i(sw,"mapOfferDescription");var jD=i((e,t)=>{let r=/<a\s+(?!.*?\btarget=)[^>]*>/g;return e.replace(r,n=>n.slice(0,-1)+` target="${t}">`)},"updateAnchorTagsWithTarget");function cw({dependencies:e,countryCodeDefault:t,locale:r}){let{appEventSdk:n,microservicesSdk:a}=e;return d=>l(null,[d],function*({programCode:o,marketingPromoCode:s,provinceCode:c}){let u,f,v;try{let p=yield a.domains.offers.organic(g(C(g(g({},o?{programCode:o}:{}),s?{marketingPromoCode:s}:{}),{streaming:!1}),c?{province:c}:{}));f=p.offers,u=p.offers[0]?.planCode}catch(p){if(o||s)try{let m=yield a.domains.offers.organic(g({streaming:!1},c?{province:c}:{}));f=m.offers.map(h=>C(g({},h),{fallbackReason:"PROGRAM_CODE_INVALID"})),u=m.offers[0]?.planCode}catch(m){throw new Error("SYSTEM")}else throw new Error("SYSTEM")}try{let p={planCodes:[{leadOfferPlanCode:u}
1],locales:r.supported.map(h=>ir(h,t,void 0))},m=yield a.domains.offers.info(g({},p));v=zD(m)}catch(p){throw p.errorType==="BUSINESS"?B(n,p):q(p,e),new Error("SYSTEM")}return{offers:f,offersInfo:v}})}i(cw,"initOfferForPresentmentSmsFn");function dw({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({planCode:r}){try{let{status:a}=yield t.domains.checkEligibility.captcha({planCode:r});return a}catch(a){throw q(a,e),new Error("SYSTEM")}})}i(dw,"initIsCaptchaRequiredFn");function lw({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{let n=yield t.domains.quotes.quote(r);return Vy(n)}catch(n){throw he(e,n)||(q(n,e),new Error("SYSTEM"))}})}i(lw,"initGetQuoteFn");function Zc(e){let t=`${e}`;return t.length===2?uw()+t:t}i(Zc,"getFourDigitYear");function uw(){let e=new Date().getFullYear(),t=e%100,r=Math.floor(e/100);return t>=75?`${r+1}`:`${r}`}i(uw,"getCenturyPrefix");function mw({dependencies:e}){let{microservicesSdk:t,appEventSdk:r}=e;return n=>l(null,null,function*(){try{let a=g(g(g(g(g(g(g(g(g({plans:n.plans,followOnPlans:n.followOnPlans},n.paymentInfo?{paymentInfo:g(g({},n.paymentInfo),n.paymentInfo?.cardInfo?{cardInfo:C(g({},n.paymentInfo.cardInfo),{expiryYear:Zc(n.paymentInfo.cardInfo.expiryYear)})}:{})}:{}),n.billingAddress?{billingAddress:C(g({},n.accountInfo),{streetAddress:n.billingAddress.streetAddress,city:n.billingAddress.city,state:n.billingAddress.state,postalCode:n.billingAddress.postalCode,country:n.billingAddress.country,avsvalidated:n.billingAddress.isAvsValidated})}:{}),n.serviceAddress?{serviceAddress:C(g({},n.accountInfo),{streetAddress:n.serviceAddress.streetAddress,city:n.serviceAddress.city,state:n.serviceAddress.state,postalCode:n.serviceAddress.postalCode,country:n.serviceAddress.country,avsvalidated:n.serviceAddress.isAvsValidated})}:{}),n.emailAddressChanged?{emailAddressChanged:n.emailAddressChanged}:{}),n.subscriptionId?{subscriptionId:n.subscriptionId}:{}),n.radioId?{radioId:n.radioId}:{}),n.streamingInfo?{streamingInfo:n.streamingInfo}:{}),n.marketingPromoCode?{marketingPromoCode:n.marketingPromoCode}:{}),n.languagePreference?{languagePreference:n.languagePreference}:{});return g({},yield t.domains.purchase.newAccount(a))}catch(a){let o=he(e,a);throw o?(o instanceof rv||o instanceof iv?B(r,{code:a.errorCode,message:"Checkout - Invalid password"}):o instanceof Tc&&B(r,{code:a.errorCode,message:"Checkout - CC not authorize"}),o):new Error("SYSTEM")}})}i(mw,"initAddSubscriptionToNewAccountFn");function fw({dependencies:e}){let{microservicesSdk:t,appEventSdk:r}=e;return n=>l(null,null,function*(){try{let a=g(g(g(g(g(g(g(g(g({plans:n.plans,followOnPlans:n.followOnPlans},n.paymentInfo?{paymentInfo:g(g({},n.paymentInfo),n.paymentInfo?.cardInfo?{cardInfo:C(g({},n.paymentInfo.cardInfo),{expiryYear:Zc(n.paymentInfo.cardInfo.expiryYear)})}:{})}:{}),n.billingAddress?{billingAddress:C(g({},n.accountInfo),{streetAddress:n.billingAddress.streetAddress,city:n.billingAddress.city,state:n.billingAddress.state,postalCode:n.billingAddress.postalCode,country:n.billingAddress.country,avsvalidated:n.billingAddress.isAvsValidated})}:{}),n.serviceAddress?{serviceAddress:C(g({},n.accountInfo),{streetAddress:n.serviceAddress.streetAddress,city:n.serviceAddress.city,state:n.serviceAddress.state,postalCode:n.serviceAddress.postalCode,country:n.serviceAddress.country,avsvalidated:n.serviceAddress.isAvsValidated})}:{}),n.emailAddressChanged?{emailAddressChanged:n.emailAddressChanged}:{}),n.subscriptionId?{subscriptionId:n.subscriptionId}:{}),n.radioId?{radioId:n.radioId}:{}),n.streamingInfo?{streamingInfo:n.streamingInfo}:{}),n.marketingPromoCode?{marketingPromoCode:n.marketingPromoCode}:{}),n.languagePreference?{languagePreference:n.languagePreference}:{});return g({},yield t.domains.purchase.addSubscription(a))}catch(a){let o=he(e,a);throw o?(o instanceof Tc&&B(r,{code:a.errorCode,message:"Checkout - CC not authorize"}),o):new Error("SYSTEM")}})}i(fw,"initAddSubscriptionToExistingAccountFn");function pw({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{return yield t.domains.offers.promoCodeValidate(r)}catch(n){throw he(e,n)||(q(n,e),new Error("SYSTEM"))}})}i(pw,"initValidatePromoCodeSmsFn");function hw(e){return{addSubscriptionToExistingAccount:fw(e),addSubscriptionToNewAccount:mw(e),checkVehicleStatusByRadioId:ME(e),checkVehicleStatusByVin:UE(e),confirmOrder:BE(e),confirmOrderForCancellation:WE(e),confirmOrderForChange:QE(e),confirmOrderStripe:ZE(e),createOrderForAutomotive:FE(e),createOrderForStreaming:HE(e),createOrderForSubscriptionCancellation:YE(e),createOrderForSubscriptionChange:XE(e),getAutomotiveSubscriptionStatusByRadioId:VE(e),getAutomotiveSubscriptionStatusByVin:GE(e),getCampaignContentForConfirmation:JE(e),getCampaignContentForOffer:KE(e),getDeviceInfoByLicensePlateSMS:iw(e),getDeviceInfoByRadioIdSMS:tw(e),getDeviceInfoByVinSMS:rw(e),getNonStreamingCustomerOffersSMS:nw(e),getOrder:qE(e),getQuote:lw(e),isCaptchaRequired:dw(e),offerForPresentment:xE(e),offerForPresentmentSms:cw(e),offerHasPartnerProduct:ew(e),offersSaveForPresentment:$E(e),validatePromoCodeSms:pw(e)}}i(hw,"domainAcquisitions");var gw="SF_ANON_ID";function yw(){return Ue()?void 0:(decodeURIComponent(document.cookie)?.split(";")||[]).find(e=>e.trim().startsWith(gw))?.trim()?.split("=")?.[1]}i(yw,"getSalesforceAnonymousIdCookieValue");function vw(e){if(Ue())return;let t=new Date(2147483647*1e3).toUTCString();document.cookie=`${gw}=${e};sameSite=lax;path=/;domain=.siriusxm.com;expires=${t}`}i(vw,"setSalesforceAnonymousIdCookieValue");function $o(){let e=Ue()?void 0:yw();if(e!==void 0)return e;{let t=Ic(16);return vw(t),t}}i($o,"getAnonymousId");function bw(e,{appEventSdk:t}){let r={};return{getCampaignFlag:i((n,a)=>l(null,null,function*(){if(Ue())return a;try{let o=yield fetch(`https://siriusxmradioinc.us-6.evergage.com/api2/event/${e.toLowerCase()}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interaction:{name:n},user:{anonymousId:$o()}
1,source:{channel:"Web",url:location.href,urlParams:Object.fromEntries(new URLSearchParams(window.location.search).entries()),urlReferrer:document.referrer}})}),s=yield o.json(),c=s.campaignResponses[0];return o.ok?c?.payload?.flag?(t.trackEvent({event:"sfcampaign-analytics-serverside-query",salesForceInfoServerSide:{[n]:{statType:"Query",isControl:c?.payload?.isControl,campaignId:c?.campaignId,campaignName:c?.campaignName,campaignType:c?.campaignType,experienceId:c?.experienceId,experienceName:c?.experienceName,payload:c?.payload,state:c?.state,templateNames:c?.templateNames,type:c?.type,userGroup:c?.payload?.userGroup}}}),r=C(g({},r),{[n]:c?.experienceId}),c?.payload?.flag):a:(yield Promise.reject(s),a)}catch(o){return a}}),"getCampaignFlag"),captureCampaignFlagImpression:i(n=>l(null,null,function*(){let a=r[n];if(a)try{yield fetch(`https://siriusxmradioinc.us-6.evergage.com/api2/event/${e.toLowerCase()}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interaction:{name:"sfcampaign-analytics-serverside"},user:{anonymousId:$o()},campaignStats:[{experienceId:a,stat:"Impression",control:!1}],source:{channel:"Web",url:location.href,urlParams:Object.fromEntries(new URLSearchParams(window.location.search).entries()),urlReferrer:document.referrer}})}),t.trackEvent({event:"sfcampaign-analytics-serverside-impression",salesForceInfoServerSide:{[n]:{statType:"Impression"}}})}catch(o){}}),"captureCampaignFlagImpression")}}i(bw,"campaignFlags");function Qc(e){return l(this,null,function*(){let{appEventSdk:t}=e;try{let r=(yield Dn(e)).filter(n=>!n.source.sms);for(let n=0;n<r.length;n++){let a=r[n],{detailedState:o}=yield zr({subscription:a},e);a.detailedState=o}return t.trackEvent({event:"customer-info",customerInfo:{subscriptions:r.map(n=>({id:n?.id,planCode:n?.products?.[0]?.name,termLength:n?.currentPhase?.billingPeriod?.months?.count,status:n?.state,startDate:n?.started,terminatedDate:n?.terminated,offerId:n?.offerId,currentPhaseType:n?.currentPhase?.type,billingSource:Object.keys(n?.source)?.[0]}))}}),{subscriptions:r}}catch(r){throw new Error("SYSTEM")}})}i(Qc,"getSubscriptions");function Sw({dependencies:e}){return()=>l(null,null,function*(){return yield Qc(e)})}i(Sw,"initGetSubscriptionsFn");function Ew({dependencies:e}){return()=>l(null,null,function*(){try{return(yield Dn(e)).filter(t=>!("sms"in t.source)).some(t=>["active","pending_cancellation"].some(r=>r.toLowerCase()===t.state.toLowerCase()))}catch(t){throw new Error("SYSTEM")}})}i(Ew,"initIdentityHasActiveSubscriptionsFn");function Ai(e,t){let r=t?.active.phases.find(a=>a.type===e);if(r){let a=t.active.products.find(({productType:o})=>o.main)?.id||"";return{offerId:t.active.id,phase:r,productIdMain:a}}let n=t?.pending?.phases.find(a=>a.type===e);if(n){let a=t.pending.products.find(({productType:o})=>o.main)?.id||"";
1return{offerId:t.pending.id,phase:n,productIdMain:a}}return null}i(Ai,"getPhaseByType");function fn(e,t){let r=new Date(e);return r.setMonth(r.getMonth()+t),r.toISOString()}i(fn,"calculateDate");function Xo(e,t){return t==="Free"&&e?.free?e?.free:t==="Introductory"&&e?.introductory?e?.introductory:t==="AutoRenewing"&&e?.autoRenewing?e?.autoRenewing:null}i(Xo,"getPriceAndTermByPhaseType");function Jo(e){switch(e){case"Free":return"Trial";case"Introductory":return"Promo";case"AutoRenewing":return"SelfPay"}}i(Jo,"mapPhaseTypeToType");function ww(e,t,r,n){let a=[],o=e.active.products.find(({productType:m})=>m.main)?.id||"",s=r.find(({offer:m})=>m.id===e.active.id)?.offer.priceAndTerm;if((n==="active"?e.active.phases:[e.active.phases[0]]).forEach(m=>{let h=Xo(s,m.type),y=a[a.length-1],b="",_="";t.type===m.type?(b=t.started,_=t.ends):y&&(b=y.endsAt,_=fn(b,h?.termLength||1)),a.push(C(g({type:Jo(m.type),offerId:e.active.id,productIdMain:o},h?g({},h):{}),{startsAt:b,endsAt:_}))}),e.pending){let m=e.pending.products.find(({productType:y})=>y.main)?.id||"",h=r.find(({offer:y})=>y.id===e.pending.id)?.offer.priceAndTerm;e.pending.phases.forEach(y=>{let b=Xo(h,y.type),_=a[a.length-1],N="",O="";_&&(N=_.endsAt,O=fn(N,b?.termLength||1)),a.push(C(g({type:Jo(y.type),offerId:e.pending.id,productIdMain:m},b?g({},b):{}),{startsAt:N,endsAt:O}))})}let c=Ai("Free",e),d=null;if(c){let{offerId:m,phase:{type:h},productIdMain:y}=c,b=r.find(({offer:_})=>_.id===m)?.offer.priceAndTerm?.free;if(b){let{termLength:_,priceTerm:N,priceMonthly:O}=b,P="",j="";t.type===h&&(P=t.started,j=t.ends),d={offerId:m,productIdMain:y,term:_,priceMonthly:O,priceTerm:N,startsAt:P,endsAt:j}}}let u=Ai("Introductory",e),f=null;if(u){let{offerId:m,phase:{type:h},productIdMain:y}=u,b=r.find(({offer:_})=>_.id===m)?.offer.priceAndTerm?.introductory;if(b){let{termLength:_,priceTerm:N,priceMonthly:O}=b,P="",j="";t.type===h?(P=t.started,j=t.ends):d&&(P=d.endsAt,j=fn(P,_)),f={offerId:m,productIdMain:y,term:_,priceMonthly:O,priceTerm:N,startsAt:P,endsAt:j}}}let v=Ai("AutoRenewing",e),p=null;if(v){let{offerId:m,phase:{type:h},productIdMain:y}=v,b=r.find(({offer:_})=>_.id===m)?.offer.priceAndTerm?.autoRenewing;if(b){let{termLength:_,priceTerm:N,priceMonthly:O}=b,P="",j="";t.type===h?(P=t.started,j=t.ends):f&&(P=f.endsAt,j=fn(P,_)),p={offerId:m,productIdMain:y,term:_,priceMonthly:O,priceTerm:N,startsAt:P,endsAt:j}}}return{offerPhases:a,offerTrial:d,offerPromo:f,offerSelfPay:p}}i(ww,"getOfferSummaries");function Cw({dependencies:e}){return()=>l(null,null,function*(){let{subscriptions:t}=yield Qc(e),r=[...new Set(t.reduce((o,s)=>[...o,s.offerId,...s.offers.active?[s.offers.active.id]:[],...s.offers.pending?[s.offers.pending.id]:[]],[]))],n=yield yS({offerIds:r},e),a=[];for(let o of r){let s=yield Gc({offerId:o},e);a.push(s)}return{subscriptions:t.map(o=>g(g({},o),ww(o.offers,o.currentPhase,a,o.state))),offerDisplayInfo:n,offerDetailsSet:a}})}i(Cw,"initGetSubscriptionsWithOfferDetailsFn");function ed(r,n){return l(this,arguments,function*({subscriptionId:e},t){let{clientSdk:a}=t;return i(o=>C(g({},o),{source:Iw(o.source),beneficiaries:o.beneficiaries,billingProfileId:o.billingProfileId||"",currentPhase:{billingPeriod:g(g(g(g({},"days"in o.currentPhase.billingPeriod?{days:g({},o.currentPhase.billingPeriod.days)}:{days:{count:0}}),"weeks"in o.currentPhase.billingPeriod?{weeks:g({},o.currentPhase.billingPeriod.weeks)}:{weeks:{count:0}}),"months"in o.currentPhase.billingPeriod?{months:g({},o.currentPhase.billingPeriod.months)}:{months:{count:0}}),"years"in o.currentPhase.billingPeriod?{years:g({},o.currentPhase.billingPeriod.years)}:{years:{count:0}}),billingPeriodCount:o.currentPhase.billingPeriodCount||0,ends:o.currentPhase.ends||"",started:o.currentPhase.started||"",type:o.currentPhase.type},expires:o.expires||"",offerPhases:o.offerPhases,offers:o.offers,started:o.started||"",terminated:o.terminated||"",detailedState:null,offerPromo:null,offerSelfPay:null,offerTrial:null}),"mapClientSdkToWebSdk")(yield a.commerce.subscription.subscription({id:e}))})}i(ed,"getSubscription");function Iw(e){if("stripe"in e)return{stripe:{externalReference:e.stripe.externalReference}};if("google"in e)return{google:{externalReference:e.google.externalReference}};if("apple"in e)return{apple:{externalReference:e.apple.externalReference}};if("amazon"in e)return{amazon:{externalReference:e.amazon.externalReference}};if("roku"in e)return{roku:g({externalReference:e.roku.externalReference},e.roku.sourceType?{sourceType:e.roku.externalReference}:{})};if("sms"in e)return{sms:{externalReference:e.sms.externalReference}};if("zuora"in e)return{zuora:{externalReference:e.zuora.externalReference}};if("charon"in e)return{charon:{externalReference:e.charon.externalReference}};if("internal"in e)return{internal:g({sourceType:e.internal.sourceType},e.internal.externalReference?{externalReference:e.internal.externalReference}:{})};if("automotive"in e)return{automotive:{externalReference:e.automotive.externalReference}};if("alexa"in e)return{alexa:{externalReference:e.alexa.externalReference}};if("bango"in e)return{bango:{resellerId:e.bango.resellerId,externalReference:e.bango.externalReference}};if("commFleet"in e)return{commFleet:{externalReference:e.commFleet.externalReference,partnerId:e.commFleet.partnerId}};throw new Error("Unrecognized clientSDK subscription source")}i(Iw,"mapClientSdkSubscriptionSourceToWebSdkSubscriptionSource");function Tw({dependencies:e}){return r=>l(null,[r],function*({subscriptionId:t}){try{let n=yield ed({subscriptionId:t},e),{detailedState:a}=yield zr({subscription:n},e);return{subscription:C(g({},n),{detailedState:a})}}catch(n){throw new Error("SYSTEM")}})}
1i(Tw,"initGetSubscriptionDetailsFn");function Aw({dependencies:e,countryCodeDefault:t,locale:r}){return a=>l(null,[a],function*({subscriptionId:n}){try{let o=yield ed({subscriptionId:n},e),{detailedState:s}=yield zr({subscription:o},e),c=[...new Set([o.offerId,...o.offers.active?[o.offers.active.id]:[],...o.offers.pending?[o.offers.pending.id]:[]])],d=yield gS({offerIds:c,countryCode:t,locale:r},e),u=yield Gc({offerId:o.offerId},e);return{subscription:C(g({},o),{detailedState:s}),offersCommerceInfo:d,offerDetails:u}}catch(o){throw new Error("SYSTEM")}})}i(Aw,"initGetSubscriptionDetailsWithOfferDetailsFn");function kw({dependencies:e}){let{microservicesSdk:t}=e;return()=>l(null,null,function*(){try{let{handle:r}=yield Gr(e),n=r?.emailAddress||r?.username;if(!n)throw new Error("Handle not found in auth session");let a=yield t.domains.identity.getAccountByEmail({email:n}),o=[];a.forEach(({plans:c})=>{c.forEach(d=>{let{packageName:u}=d,f=_w(u);d.packageId=f,o.includes(f)||o.push(f)})});let s=yield vS({smsPackageIds:o},e);return{subscriptions:a??[],offerDisplayInfo:s}}catch(r){throw new Error("SYSTEM")}})}i(kw,"initGetSmsSubscriptionsWithOfferDetailsFn");function _w(e){return e.startsWith("3_")?e.replace(/^3_/,"SXM_"):e}i(_w,"normalizePackageId");function td(n,a){return l(this,arguments,function*({subscriptionId:e,productId:t},r){let{clientSdk:o}=r;return i(s=>{let c=[];return s.partnerEntitlements?.forEach(d=>{c.push({id:d.id,subscriptionId:d.subscriptionId,productId:d.productId,status:d.status})}),c},"mapClientSdkToWebSdk")(yield o.commerce.partnerEntitlements.getPartnerEntitlements())?.find(s=>s.subscriptionId===e&&s.productId===t)||null})}i(td,"getPartnerEntitlement");function Pw({dependencies:e}){let{clientSdk:t,appEventSdk:r}=e;return o=>l(null,[o],function*({subscriptionId:n,productId:a}){let s,c;try{s=yield td({subscriptionId:n,productId:a},e)}catch(d){throw vc(d)?ki(r,d):rt(d,e),new Error("SYSTEM")}if(s)try{let{signupUrl:d}=yield t.commerce.partnerEntitlements.activatePartnerEntitlement({partnerEntitlementId:s.id});c=d}catch(d){switch(d.code){case"commerceTeam.partnerEntitlementsService.ENTITLEMENT_NOT_FOUND":case"commerceTeam.partnerEntitlementsService.ENTITLEMENT_UNAVAILABLE_FOR_ACTIVATION":ki(r,d);break;default:rt(d,e)}throw new Error("SYSTEM")}if(c)return{url:c};throw ki(r,{code:"REDEEM_URL_NOT_FOUND"}),new Error("SYSTEM")})}i(Pw,"initGetProductRedeemUrlFn");function ki(e,t){B(e,C(g({},t),{message:"Redeem link - Redeem link retrieval failure error."}))}i(ki,"sendBusinessError");function Nw({dependencies:e}){return n=>l(null,[n],function*({subscriptionId:t,productId:r}){try{let a=yield td({subscriptionId:t,productId:r},e);if(a)return a.status.toLowerCase()==="pending"?{status:"NotRedeemed"}:{status:"Redeemed"};throw new Error("SUBSCRIPTION_PRODUCT_NOT_FOUND")}catch(a){throw a?.message==="SUBSCRIPTION_PRODUCT_NOT_FOUND"?a:new Error("SYSTEM")}})}i(Nw,"initGetProductRedemptionStatusFn");function Ow({dependencies:e}){let{appEventSdk:t,microservicesSdk:r}=e;return a=>l(null,[a],function*({subscriptionId:n}){try{let o=yield r.domains.account.eligibleRadios({subscriptionId:n}),s=o?.eligibleSecondarySubscriptions??[],c=o?.ineligibleSecondarySubscriptions??[],d=Array.from(new Set(s?.map(p=>p?.subscription?.radioService?.last4DigitsOfRadioId))),u=Array.from(new Set(c?.map(p=>p?.subscription?.radioService?.last4DigitsOfRadioId))),f=[...s,...c],v=new Set;for(let p of f){let m=Pn(p);m?.device&&v.add(m.device)}return o&&t.trackEvent({event:"cs-eligible-radios",csEligibleRadiosInfo:{eligibleSecondarySubscriptions:s,ineligibleSecondarySubscriptions:c}}),{eligibleDeviceLast4DigitsIds:d,ineligibleDeviceLast4DigitsIds:u,devices:Array.from(v.values())}}catch(o){throw he(e,o)||(o?.message==="ELIGIBILITY_SUBSCRIPTION_REQUIRED"||o?.message==="DEVICE_NOT_FOUND"?o:(q(o,e),new Error("SYSTEM")))}})}i(Ow,"initGetPotentialDevicesForSubscriptionSmsFn");function ma(a,o){return l(this,arguments,function*({subscriptionId:e,radioId:t,radioInfo:r},n){let{microservicesSdk:s}=n;try{let c=yield s.domains.account.eligibilityCheck({subscriptionId:e,radioId:t});return c.eligibilityStatus==="LINK"&&!c.subscription?Sn(r.deviceInformation,!0):Pn(c)}catch(c){if(c.errorCode==="CS_INELIGIBLE_RADIO")return Sn(r.deviceInformation);throw c}})}i(ma,"getSubscriptionEligibilityDevice");
1function Rw({dependencies:e}){return n=>l(null,[n],function*({subscriptionId:t,radioId:r}){let a=yield Nc({radioId:r},e);if(!a.deviceInformation)throw new Error("DEVICE_NOT_FOUND");try{return g(g({},yield ma({subscriptionId:t,radioId:r,radioInfo:a},e)),a)}catch(o){throw o?.message==="DEVICE_INFORMATION_REQUIRED"||o?.message==="ELIGIBILITY_SUBSCRIPTION_REQUIRED"?o:(q(o,e),new Error("SYSTEM"))}})}i(Rw,"initGetSubscriptionLinkingEligibilityForRadioIdFn");function Dw({dependencies:e}){return n=>l(null,[n],function*({subscriptionId:t,vin:r}){let a=yield Oc({vin:r},e);if(!a.deviceInformation)throw new Error("DEVICE_NOT_FOUND");try{return g(g({},yield ma({subscriptionId:t,radioId:a.deviceInformation.radioId,radioInfo:a},e)),a)}catch(o){throw o?.message==="DEVICE_INFORMATION_REQUIRED"||o?.message==="ELIGIBILITY_SUBSCRIPTION_REQUIRED"?o:(q(o,e),new Error("SYSTEM"))}})}i(Dw,"initGetSubscriptionLinkingEligibilityForVinFn");function Lw({dependencies:e}){return a=>l(null,[a],function*({subscriptionId:t,licensePlate:r,state:n}){let o=yield Pc({licensePlate:r,state:n},e);if(!o.deviceInformation)throw new Error("DEVICE_NOT_FOUND");try{return g(g({},yield ma({subscriptionId:t,radioId:o.deviceInformation.radioId,radioInfo:o},e)),o)}catch(s){throw s?.message==="DEVICE_INFORMATION_REQUIRED"||s?.message==="ELIGIBILITY_SUBSCRIPTION_REQUIRED"?s:(q(s,e),new Error("SYSTEM"))}})}i(Lw,"initGetSubscriptionLinkingEligibilityForLicensePlateFn");function xw({dependencies:e}){let{microservicesSdk:t,appEventSdk:r}=e;return o=>l(null,[o],function*({radioId:n,subscriptionId:a}){try{let s=yield t.domains.purchase.linkDevice({radioId:n.slice(-4),subscriptionId:a});return r.trackEvent({event:"companion-subscription-claimed-via-link-device",companionSubscriptionClaimedInfo:{subscriptionId:a}}),{maskedStreamingUserName:s.status.maskedStreamingUserName,isEligibleForStreamingCredentialsOnly:s.status.isEligibleForStreamingCredentialsOnly}}catch(s){throw he(e,s)||(q(s,e),new Error("SYSTEM"))}})}i(xw,"initLinkDeviceToSubscriptionSmsFn");function Mw({dependencies:e}){return r=>l(null,[r],function*({subscriptionId:t}){return Rc(t,e)})}i(Mw,"initGetSubscriptionOptionsSmsFn");function Uw({dependencies:e}){let{microservicesSdk:t}=e;return o=>l(null,[o],function*({radioId:r,subscriptionId:n,transactionType:a}){try{let s=yield t.domains.quotes.continuousServiceQuote({radioId:r,selfPaySubscriptionId:n,transactionType:a}),c=s?.quote?.futureQuote&&s?.quote?.futureQuote?.isProrated?s.quote.futureQuote:s.quote?.proRatedRenewalQuote;return{proratedPaymentAmount:c?.totalAmount?parseFloat(c?.totalAmount):null,proratedDueDate:mt(c?.details[0]?.startDate),recurringDueDate:mt(s.quote?.renewalQuote?.details[0]?.startDate),priceChangeMessagingType:s?.priceChangeMessagingType??null}}catch(s){throw he(e,s)||(q(s,e),new Error("SYSTEM"))}})}i(Uw,"initGetEstimatedFutureBillingDetailsForRadioIdSmsFn");function Fw({dependencies:e,countryCodeDefault:t}){let{microservicesSdk:r}=e;return a=>l(null,[a],function*({token:n}){try{let o=yield r.domains.account.tokenEligibleRadios({token:n}),s={id:o.selfPaySubscription.id??"",status:o.selfPaySubscription.status,plans:o.selfPaySubscription.plans??[],followonPlans:[],radioService:o.selfPaySubscription.radioService,streamingService:o.selfPaySubscription.streamingService,isMrdDriving:!1,isPrimary:!0},c=o?.selfPaySubscription?[aa(s)]:[],d=o?.selfPaySubscription?qr(s):[],u=la({countryCodeDefault:t},{microservicesSdk:r}),f=Array.from(new Set(o.eligibleSecondarySubscriptions?.map(_=>_?.subscription?.radioService?.last4DigitsOfRadioId))),v=Array.from(new Set(o.ineligibleSecondarySubscriptions?.map(_=>_?.subscription?.radioService?.last4DigitsOfRadioId))),p=new Set,m=[...o.eligibleSecondarySubscriptions??[],...o.ineligibleSecondarySubscriptions??[]];for(let _ of m){let N=Pn(_);N?.device&&p.add(N.device)}let h=Array.from(p.values()),y=o?.isDeviceInTokenEligibleForContinuousService===!0,b=o?.isSubscriptionAlreadyLinked??!1;return{selfPaySubscriptions:c,selfPaySubscriptionPlans:d,offerDisplayInfo:yield u,eligibleDeviceLast4DigitsIds:f,ineligibleDeviceLast4DigitsIds:v,devices:h,isEligible:y,ineligibleRadiosFound:!y&&h?.length>0,ineligibleRadiosNotFound:!y&&!b&&h?.length===0,isAlreadyLinked:!y&&b}}catch(o){let s=he(e,o);if(s)throw s;
1if(o?.errorCode?o?.errorCode:o?.fieldErrors&&o?.fieldErrors?.[0]?.errorCode)return{selfPaySubscriptions:[],selfPaySubscriptionPlans:[],offerDisplayInfo:{},eligibleDeviceLast4DigitsIds:[],ineligibleDeviceLast4DigitsIds:[],devices:[],isEligible:!1,ineligibleRadiosFound:!1,ineligibleRadiosNotFound:!1,isAlreadyLinked:!1};throw q(o,e),new Error("SYSTEM")}})}i(Fw,"initGetSubscriptionAndPotentialDevicesFromTokenSmsFn");function Bw({dependencies:e}){let{microservicesSdk:t}=e;return o=>l(null,[o],function*({nickname:r,subscriptionId:n,accountNumber:a}){try{yield t.domains.accountManagement.updateNickname({nickName:r,subscriptionId:n,accountNumber:a})}catch(s){throw q(s,e),new Error("SYSTEM")}})}i(Bw,"initUpdateSubscriptionNicknameSmsFn");function qw({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({radioId:r}){try{yield t.domains.device.validate({radioId:r});let a=yield t.domains.account.eligibleSubscriptions({radioId:r}),o=Ho(a.linkEligibleSubscriptions?.map(c=>c?.subscriptionId)).filter(c=>!!c),s=Ho(a.transferEligibleSubscriptions?.map(c=>c?.subscriptionId)).filter(c=>!!c);return{linkEligibleSubscriptionIds:o,transferEligibleSubscriptionIds:s}}catch(a){throw he(e,a)||new Error("SYSTEM")}})}i(qw,"initGetPotentialSubscriptionsSmsFn");function Vw({dependencies:e,countryCodeDefault:t}){let{microservicesSdk:r}=e;return()=>l(null,null,function*(){try{return{offerDisplayInfo:yield la({countryCodeDefault:t},{microservicesSdk:r})}}catch(n){throw q(n,e),new Error("SYSTEM")}})}i(Vw,"initGetAllPackageDescriptionsFn");function Gw({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{return yield t.domains.purchase.changeSubscription(r)}catch(n){throw he(e,n)||(q(n,e),new Error("SYSTEM"))}})}i(Gw,"initUpdateSubscriptionSmsFn");function zw(e){return{getAllPackageDescriptions:Vw(e),getEstimatedFutureBillingDetailsForRadioIdSms:Uw(e),getPotentialDevicesForSubscriptionSms:Ow(e),getPotentialSubscriptionsSms:qw(e),getProductRedeemUrl:Pw(e),getProductRedemptionStatus:Nw(e),getSmsSubscriptionsWithOfferDetails:kw(e),getSubscriptionAndPotentialDevicesFromTokenSms:Fw(e),getSubscriptionDetails:Tw(e),getSubscriptionDetailsWithOfferDetails:Aw(e),getSubscriptionLinkingEligibilityForLicensePlate:Lw(e),getSubscriptionLinkingEligibilityForRadioId:Rw(e),getSubscriptionLinkingEligibilityForVin:Dw(e),getSubscriptionOptionsSms:Mw(e),getSubscriptions:Sw(e),getSubscriptionsWithOfferDetails:Cw(e),identityHasActiveSubscriptions:Ew(e),linkDeviceToSubscriptionSms:xw(e),updateSubscriptionNicknameSms:Bw(e),updateSubscriptionSms:Gw(e)}}i(zw,"domainSubscriptions");function jw({accessToken:e,baseUrl:t}){return s=>l(null,[s],function*({name:r,locale:n,include:a,select:o}){let c=`${t}/entries?${new URLSearchParams({content_type:"Campaign",include:a,"fields.campaign_id":r||"null",locale:n,select:o})}`,d={Accept:"application/json; charset=utf-8","Content-Type":"application/json",Authorization:`Bearer ${e}`},u=yield fetch(c,{method:"GET",headers:d});return u.ok?yield u.json():Promise.reject(yield u.json())})}i(jw,"initGetCampaignFn");var KD=Ct(J1()),HD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YD=(function(){function e(t,r){var n=[],a=!0,o=!1,s=void 0;try{for(var c=t[Symbol.iterator](),d;!(a=(d=c.next()).done)&&(n.push(d.value),!(r&&n.length===r));a=!0);}catch(u){o=!0,s=u}finally{try{!a&&c.return&&c.return()}finally{if(o)throw s}}return n}return i(e,"sliceIterator"),function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();function Ar(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}i(Ar,"_toConsumableArray");var wn={},WD=i(function(e){return e&&e.sys&&e.sys.type==="Link"},"isLink"),$D=i(function(e){return e&&e.sys&&e.sys.type==="ResourceLink"},"isResourceLink"),XD=i(function(e){return e.space&&e.environment?[e.type+"!"+e.id,e.space.sys.id+"!"+e.environment.sys.id+"!"+e.type+"!"+e.id]:[e.type+"!"+e.id]},"makeEntityMapKeys"),_f=i(function(e,t){var r=t.entryId,n=t.linkType,a=t.spaceId,o=t.environmentId;return a&&o?e.get(a+"!"+o+"!"+n+"!"+r):e.get(n+"!"+r)},"lookupInEntityMap"),JD=i(function(e){var t=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(t.test(e)){var r=e.match(t),n=YD(r,4),a=n[0],o=n[1],s=n[2],c=s===void 0?"master":s,d=n[3];return{spaceId:o,environmentId:c,entryId:d}}},"getIdsFromUrn"),ZD=i(function(e,t){var r=t.sys,n=r.type,a=r.linkType;
1if(n==="ResourceLink"){if(!a.startsWith("Contentful:"))return t;var o=t.sys.urn,s=JD(o),c=s.spaceId,d=s.environmentId,u=s.entryId,f=a.split(":")[1];return _f(e,{linkType:f,entryId:u,spaceId:c,environmentId:d})||wn}var v=t.sys.id;return _f(e,{linkType:a,entryId:v})||wn},"getResolvedLink"),QD=i(function(e){if(Array.isArray(e))return e.filter(function(r){return r!==wn});for(var t in e)e[t]===wn&&delete e[t];return e},"cleanUpLinks"),eL=i(function e(t,r,n,a){if(r(t))return n(t);if(t&&(typeof t>"u"?"undefined":HD(t))==="object"){for(var o in t)t.hasOwnProperty(o)&&(t[o]=e(t[o],r,n,a));a&&(t=QD(t))}return t},"walkMutate"),tL=i(function(e,t,r){var n=ZD(e,t);return n===wn?r?n:t:n},"normalizeLink"),rL=i(function(e,t){if(!Array.isArray(t))return e;var r=Object.keys(e).filter(function(n){return t.indexOf(n)!==-1});return r.reduce(function(n,a){return n[a]=e[a],n},{})},"makeEntryObject"),nL=i(function(e,t){if(t=t||{},!e.items)return[];var r=(0,KD.default)(e),n=Object.keys(r.includes||{}).reduce(function(s,c){return[].concat(Ar(s),Ar(e.includes[c]))},[]),a=[].concat(Ar(r.items),Ar(n)).filter(function(s){return!!s.sys}),o=new Map(a.reduce(function(s,c){var d=XD(c.sys).map(function(u){return[u,c]});return s.push.apply(s,Ar(d)),s},[]));return a.forEach(function(s){var c=rL(s,t.itemEntryPoints);Object.assign(s,eL(c,function(d){return WD(d)||$D(d)},function(d){return tL(o,d,t.removeUnresolved)},t.removeUnresolved))}),r.items},"resolveResponse"),Kw=nL;function Hw({accessToken:e,baseUrl:t}){return o=>l(null,[o],function*({offerIds:r,locale:n,select:a}){let s=`${t}/entries?${new URLSearchParams({content_type:"Offer",include:"10","fields.offer_id[in]":r.join(","),locale:n,select:a})}`,c={Accept:"application/json; charset=utf-8","Content-Type":"application/json",Authorization:`Bearer ${e}`},d=yield fetch(s,{method:"GET",headers:c});return d.ok?Kw(yield d.json()):Promise.reject(yield d.json())})}i(Hw,"initGetOffersFn");function Yw({accessToken:e,baseUrl:t}){return n=>l(null,[n],function*({include:r}){let a=`${t}/entries?${new URLSearchParams({content_type:"Properties",include:r})}`,o={Accept:"application/json; charset=utf-8","Content-Type":"application/json",Authorization:`Bearer ${e}`},s=yield fetch(a,{method:"GET",headers:o});return s.ok?Kw(yield s.json())?.[0]?.fields?.properties:Promise.reject(yield s.json())})}i(Yw,"initGetPropertiesFn");function Ww({accessToken:e,baseUrl:t}){return o=>l(null,[o],function*({smsPackageIds:r,locale:n,select:a}){let s=`${t}/entries?${new URLSearchParams({content_type:"Package","fields.sms_package_id[in]":r.join(","),locale:n,select:a})}`,c={Accept:"application/json; charset=utf-8","Content-Type":"application/json",Authorization:`Bearer ${e}`},d=yield fetch(s,{method:"GET",headers:c});return d.ok?yield d.json():Promise.reject(yield d.json())})}i(Ww,"initGetPackagesFn");function $w({accessToken:e,baseUrl:t}){return n=>l(null,[n],function*({id:r}){let a=`${t}/entries/${r}`,o={Accept:"application/json; charset=utf-8","Content-Type":"application/json",Authorization:`Bearer ${e}`},s=yield fetch(a,{method:"GET",headers:o});return s.ok?yield s.json():Promise.reject(yield s.json())})}i($w,"initGetEntryByIdFn");var Xw=class{constructor({accessToken:t,baseUrl:r,environmentId:n,spaceId:a}){w(this,"getCampaign"),w(this,"getProperties"),w(this,"getOffers"),w(this,"getPackages"),w(this,"getEntryById");let o={accessToken:t,baseUrl:`${r}/spaces/${a}/environments/${n}`};this.getCampaign=jw(o),this.getOffers=Hw(o),this.getProperties=Yw(o),this.getPackages=Ww(o),this.getEntryById=$w(o)}};i(Xw,"ContentfulSdk");var iL=Xw,aL=i(e=>{let t=oL(JSON.stringify(e));return sL(t)},"generateIdFromJson"),oL=i(e=>e.toUpperCase(),"normalizeString"),sL=i(e=>btoa(e),"createIdFromPayloadString"),Jw=class extends Error{constructor(t){super("MICROSERVICES_ACCOUNT_NOT_REGISTERED"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(Jw,"MicroservicesErrorAccountNotRegistered");var cL=Jw,Zw=class extends Error{constructor(t){super("MICROSERVICES_CREDIT_CARD_FAILURE"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(Zw,"MicroservicesErrorCreditCardFailure");
1var dL=Zw,Qw=class extends Error{constructor(t){super("MICROSERVICES_GIFT_CARD_NO_BALANCE"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(Qw,"MicroservicesErrorGiftCardNoBalance");var Pf=Qw,eC=class extends Error{constructor(t){super("MICROSERVICES_GIFT_CARD_NOT_REDEEMABLE"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(eC,"MicroservicesErrorGiftCardNotRedeemable");var lL=eC,tC=class extends Error{constructor(t){super("MICROSERVICES_GIFT_CARD_NUMBER_INVALID"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(tC,"MicroservicesErrorGiftCardNumberInvalid");var Nf=tC,rC=class extends Error{constructor(t){super("MICROSERVICES_INSUFFICIENT_CREDIT_BALANCE"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(rC,"MicroservicesErrorInsufficientCreditBalance");var uL=rC,nC=class extends Error{constructor(t){super("MICROSERVICES_INVALID_DEVICE_ID"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(nC,"MicroservicesErrorInvalidDeviceId");var mL=nC,iC=class extends Error{constructor(t){super("MICROSERVICES_INVALID_EMAIL_ADDRESS"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(iC,"MicroservicesErrorInvalidEmailAddress");var fL=iC,aC=class extends Error{constructor(t){super("MICROSERVICES_INVALID_MISSING_VIN"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(aC,"MicroservicesErrorInvalidMissingVin");var pL=aC,oC=class extends Error{constructor(t){super("MICROSERVICES_INVALID_OR_MISSING_INPUT"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(oC,"MicroservicesErrorInvalidOrMissingInput");var hL=oC,sC=class extends Error{constructor(t){super("MICROSERVICES_MULTI_PROMO_CODE_REDEMPTION_NOT_ALLOWED"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(sC,"MicroservicesErrorMultiPromoCodeRedemptionNotAllowed");var gL=sC,cC=class extends Error{constructor(t){super("MICROSERVICES_MULTIPLE_VIN_FOUND"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(cC,"MicroservicesErrorMultipleVinFound");var yL=cC,dC=class extends Error{constructor(t){super("MICROSERVICES_PASSWORD_HAS_PII_DATA"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(dC,"MicroservicesErrorPasswordHasPiiData");var vL=dC,lC=class extends Error{constructor(t){super("MICROSERVICES_PASSWORD_INVALID"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(lC,"MicroservicesErrorPasswordInvalid");var bL=lC,uC=class extends Error{constructor(t){super("MICROSERVICES_PROMO_CODE_ALREADY_REDEEMED"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(uC,"MicroservicesErrorPromoCodeAlreadyRedeemed");var SL=uC,mC=class extends Error{constructor(t){super("MICROSERVICES_PROMO_CODE_INELIGIBLE"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(mC,"MicroservicesErrorPromoCodeIneligible");var EL=mC,fC=class extends Error{constructor(t){super("MICROSERVICES_PROMO_CODE_INVALID_PREFIX"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(fC,"MicroservicesErrorPromoCodeInvalidPrefix");var wL=fC,pC=class extends Error{constructor(t){super("MICROSERVICES_PROMO_CODE_NOT_ACTIVE"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(pC,"MicroservicesErrorPromoCodeNotActive");var CL=pC,hC=class extends Error{constructor(t){super("MICROSERVICES_PROMO_CODE_NOT_APPLICABLE_FOR_SERVICE_TYPE"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(hC,"MicroservicesErrorPromoCodeNotApplicableForServiceType");var IL=hC,gC=class extends Error{constructor(t){super("MICROSERVICES_PROMO_CODE_NOT_CONFIGURED_FOR_ADJUSTMENT"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(gC,"MicroservicesErrorPromoCodeNotConfiguredForAdjustment");var TL=gC,yC=class extends Error{constructor(t){super("MICROSERVICES_PROMO_CODE_NOT_FOUND"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(yC,"MicroservicesErrorPromoCodeNotFound");var AL=yC,vC=class extends Error{constructor(t){super("MICROSERVICES_PROMO_CODE_OUTSIDE_START_AND_END_DATE"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(vC,"MicroservicesErrorPromoCodeOutsideStartAndEndDate");var kL=vC,bC=class extends Error{constructor(t){super("MICROSERVICES_SESSION_TIMED_OUT"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(bC,"MicroservicesErrorSessionTimedOut");
1var _L=bC,SC=class extends Error{constructor(t){super("MICROSERVICES_UNAUTHENTICATED_CUSTOMER"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(SC,"MicroservicesErrorUnauthenticatedCustomer");var PL=SC,EC=class extends Error{constructor(t){super("MICROSERVICES_USER_NAME_ALREADY_EXISTS"),w(this,"errorCode"),this.errorCode=t?.errorCode}};i(EC,"MicroservicesErrorUsernameAlreadyExists");var NL=EC;function wC(e){let t=e?.error?.errorPropKey||"",r=e?.error?.errorCode||"",n=e?.error?.fieldErrors?.[0].errorCode||"",a=e?.error?.fieldErrors?.[0].errorPropKey||"";return t==="error.common.session.timed.out.error"?new _L(e.error):r==="UNAUTHENTICATED_CUSTOMER"?new PL(e.error):r==="ACCOUNT_NOT_REGISTERED"?new cL(e.error):t==="error.purchase.service.password.has.pii.data"?new vL(e.error):t==="error.purchase.service.invalid.password"?new bL(e.error):["error.purchase.service.credit.card.validation.failed","error.purchase.service.paymentinfo.required.paymentInfo","error.purchase.service.no.creditcard.on.account","error.purchase.service.ccinfo.required.cardInfo","error.purchase.service.creditcard.fraud.reject"].includes(t)?new dL(e.error):n==="USER_NAME_ALREADY_EXISTS"?new NL(e.error):n==="INVALID_EMAIL_ADDRESS"?new fL(e.error):r==="INVALID_OR_MISSING_INPUT"?new hL(e.error):r==="INSUFFICIENT_CREDIT_BALANCE"?new uL(e.error):n==="INELIGIBLE_PROMO_CODE"?new EL(e.error):["ALREADY_REDEEMED","PROMO_CODE_ALREADY_REDEEMED"].includes(n)?new SL(e.error):["INVALID_PREFIX","PROMO_CODE_INVALID_PREFIX"].includes(n)?new wL(e.error):["NOT_ACTIVE","PROMO_CODE_NOT_ACTIVE"].includes(n)?new CL(e.error):["NOT_FOUND","PROMO_CODE_NOT_FOUND"].includes(n)?new AL(e.error):["NOT_APPLICABLE_FOR_SERVICE_TYPE","PROMO_CODE_NOT_APPLICABLE_FOR_SERVICE_TYPE"].includes(n)?new IL(e.error):["OUTSIDE_START_AND_END_DATE","PROMO_CODE_OUTSIDE_START_AND_END_DATE"].includes(n)?new kL(e.error):["NOT_CONFIGURED_FOR_ADJUSTMENT","PROMO_CODE_NOT_CONFIGURED_FOR_ADJUSTMENT"].includes(n)?new TL(e.error):n==="INVALID_MISSING_VIN"?new pL(e.error):["error.payment.service.giftcard.number.invalid","payment.service.gift.card.invalid.giftCardNumber"].includes(a)?new Nf(e.error):["GIFT_CARD_NO_REQUIRED","GIFT_CARD_NO_INVALID","GIFT_CARD_REDEMPTION_NO_REQUIRED","GIFT_CARD_REDEMPTION_NO_INVALID"].includes(r)?new Nf(e.error):["NO_BALANCE_ON_CARD","NO_BALANCE_ON_CARD_REDEMPTION"].includes(n)?new Pf(e.error):["NO_BALANCE_ON_CARD","ZERO_DOLLAR_REDEMPTION_NOT_ALLOWED","NO_BALANCE_ON_CARD_REDEMPTION"].includes(r)?new Pf(e.error):["BLACK_HAWK_MISSING_REQUEST_DATA","CANT_REDEEM_CARD","CANT_REDEEM_CARD_REDEMPTION"].includes(r)?new lL(e.error):r==="MULTIPLE_VIN_FOUND"?new yL(e.error):n==="INVALID_DEVICE_ID"?new mL(e.error):n==="MULTI_PROMO_CODE_REDEMPTION_NOT_ALLOWED"?new gL(e.error):null}i(wC,"mapErrorGeneral");function rd(e){return l(this,null,function*(){let t=yield e.json();return e.ok?t.data:Promise.reject(wC(t)||(yield t.error))})}i(rd,"resolveResponseData");function nd(e){return l(this,null,function*(){let t=yield fetch(e,{method:"GET",headers:{Accept:"application/json; charset=utf-8","Content-Type":"application/json"},credentials:"include"});return rd(t)})}i(nd,"msGet");function M(e,t,r){return l(this,null,function*(){let n=yield fetch(e,g(g({method:"POST",headers:g(g({Accept:"application/json; charset=utf-8","Content-Type":"application/json"},r?.grant?{Authorization:`Bearer ${r.grant}`}:{}),r?.skipInterceptor?{"X-Skip-Http-Interceptor":"true"}:{})},r?.includeCredentials??!0?{credentials:"include"}:{}),t?{body:JSON.stringify(t)}:{}));return rd(n)})}i(M,"msPost");function CC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account`;return yield M(r,t)})}i(CC,"initGetAccountFn");function IC({baseUrl:e}){return r=>l(null,[r],function*({identityGrant:t}){let n=`${e}/authenticate/login`;return yield M(n,{},{grant:t})})}i(IC,"initLoginFn");function TC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/authenticate/logout`;return yield M(r,t)})}i(TC,"initLogoutFn");function AC({baseUrl:e}){return o=>l(null,[o],function*({accessToken:t,offerIds:r,locales:n,province:a}){let s=`${e}/offers/commerce/info`,c={Accept:"application/json; charset=utf-8","Content-Type":"application/json"},d=yield fetch(`${s}`,{method:"POST",headers:c,credentials:"include",body:JSON.stringify(C(g({offerIds:r},a?{province:a}:{}),{locales:n.map(f=>OL(f)),accessToken:t}))}),u=yield d.json();return d.ok?{locales:u.data.locales.reduce((f,{locale:v,offerInfos:p})=>C(g({},f),{[RL(v)]:p}),{})}:Promise.reject(yield u.error)})}i(AC,"initGetOffersCommerceInfoFn");var OL=i(e=>e?.replace("-","_"),"normalizeLangToLocaleForRequest"),RL=i(e=>e?.replace("_","-"),"normalizeLangToLocaleForResponse");function id(r){return l(this,arguments,function*({baseUrl:e,token:t}){let n=`${e}/account/sal/dtok2magiclink`;return yield M(n,{token:t},{includeCredentials:!1})})}i(id,"convertDtokToMagicLink");function kC({baseUrl:e}){return r=>l(null,[r],function*({token:t}){return yield id({baseUrl:e,token:t})})}i(kC,"initConvertDtokToMagicLinkFn");function _C({baseUrl:e}){return r=>l(null,[r],function*({token:t}){return yield id({baseUrl:e,token:t})})}i(_C,"initConvertDtokToMagicLinkCanadaFn");function ad(a){return l(this,arguments,function*({magicLinkGrant:e,email:t,accessToken:r,baseUrl:n}){let o=`${n}/identity/sal/create`;return yield M(o,{magicLinkGrant:e,email:t,accessToken:r},{includeCredentials:!1})})}i(ad,"createSalIdentity");function PC({baseUrl:e}){return a=>l(null,[a],function*({magicLinkGrant:t,email:r,accessToken:n}){return yield ad({baseUrl:e,magicLinkGrant:t,email:r,accessToken:n})})}i(PC,"initCreateSalIdentityFn");function NC({baseUrl:e}){return a=>l(null,[a],function*({magicLinkGrant:t,email:r,accessToken:n}){return yield ad({baseUrl:e,magicLinkGrant:t,email:r,accessToken:n})})}i(NC,"initCreateSalIdentityCanadaRequestFn");function OC({baseUrl:e}){return n=>l(null,[n],function*({email:t,includeInactiveSubscriptions:r}){let a=`${e}/identity/customer/email`;return yield M(a,g({email:t},r?{includeInactiveSubscriptions:r}:{}),{includeCredentials:!1})})}i(OC,"initGetAccountByEmailFn");function RC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/device/validate`;return yield M(r,t)})}i(RC,"initValidateFn");function DC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/non-pii`;return yield M(r,t)})}i(DC,"initNonPiiFn");function LC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/utility/log-message`;return yield M(r,{url:t.url||"/",stacktrace:t.stacktrace,message:t.message||"",logLevel:t.logLevel,referrer:t.referrer},{skipInterceptor:!0})})}i(LC,"initLogMessageFn");function xC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/verify`;return yield M(r,t)})}i(xC,"initVerifyFn");function MC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/device/info`;return yield M(r,t)})}i(MC,"initInfoFn");function UC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/offers/customer`;return yield M(r,t)})}i(UC,"initOffersCustomerFn");function FC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/offers/renewal`;return yield M(r,t)})}i(FC,"initOffersRenewalFn");function BC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/offers/info`;return yield M(r,t)})}i(BC,"initGetOffersInfoFn");function qC({baseUrl:e}){return()=>l(null,null,function*(){let t=`${e}/utility/env-info`;return yield nd(t)})}i(qC,"initEnvInfoFn");function VC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/apigateway/update-usecase`;return yield M(r,t)})}i(VC,"initUpdateUseCaseFn");function GC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/utility/card-bin-ranges`;return yield M(r,t)})}i(GC,"initCardBinRangesFn");function zC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/offers/all-package-desc`;return yield M(r,t)})}i(zC,"initAllPackageDescFn");function jC({baseUrl:e}){return()=>l(null,null,function*(){let t=`${e}/account/next-best-action`;return yield nd(t)})}i(jC,"initNextBestActionFn");function KC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/device/refresh`;return yield M(r,t)})}i(KC,"initRefreshFn");function HC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/authenticate/validate-login`;return yield M(r,t)})}i(HC,"initValidateLoginFn");function YC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/validate/password`;return yield M(r,t)})}i(YC,"initPasswordFn");function WC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/update-streaming`;return yield M(r,t)})}i(WC,"initUpdateStreamingFn");function $C({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/update-account-login`;return yield M(r,t)})}i($C,"initUpdateAccountLoginFn");function XC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/modify-subscription-options`;return yield M(r,t)})}i(XC,"initModifySubscriptionOptionsFn");function JC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/acsc`;return yield M(r,t)})}i(JC,"initAcscFn");function ZC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/quotes/swap-radio-quote`;return yield M(r,t)})}i(ZC,"initSwapRadioQuoteFn");function QC({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/purchase/swap-radio`;return yield M(r,t)})}i(QC,"initSwapRadioFn");function eI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/offers/customer/add`;return yield M(r,t)})}i(eI,"initOffersCustomerAddFn");function tI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/check-eligibility/captcha`;return yield M(r,t)})}i(tI,"initCaptchaFn");function rI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/validate/unique-login`;return yield M(r,t)})}i(rI,"initUniqueLoginFn");function nI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/identity/customer/flepz`;return yield M(r,t)})}i(nI,"initFlepzFn");function iI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/quotes/quote`;return yield M(r,aI(t)).then(n=>({quote:C(g({},n.quote),{id:aL({request:t,endpoint:r})})}))})}i(iI,"initQuoteFn");function aI(e){let n=e,{serviceAddress:t}=n,r=st(n,["serviceAddress"]);return g(g({},r),t?.postalCode?{serviceAddress:C(g({},t),{streetAddress:t?.streetAddress||"",country:t?.country?.toUpperCase()||""})}:{})}i(aI,"normalizeRequestData");function oI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/purchase/add-subscription`;return yield M(r,t)})}i(oI,"initAddSubscriptionFn");function sI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/remove-device`;return yield M(r,t)})}i(sI,"initRemoveDeviceFn");function cI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/validate/customer-info`;return yield M(r,t)})}i(cI,"initCustomerInfoFn");function dI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/billing/activity`;return yield M(r,t)})}i(dI,"initActivityFn");function lI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/payment/update-payment-info`;return yield M(r,t)})}i(lI,"initUpdatePaymentInfoFn");function uI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/offers/customer/change`;return yield M(r,t)})}i(uI,"initOffersCustomerChangeFn");function mI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/identity/device/license-plate`;return yield M(r,t)})}i(mI,"initDeviceLicensePlateFn");function fI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}
1/device/send-refresh-instruction`;return yield M(r,t)})}i(fI,"initSendRefreshInstructionFn");function pI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/cs-eligible-radios`;return yield M(r,t)})}i(pI,"initEligibleRadiosFn");function hI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/cs-eligibility-check`;return yield M(r,t)})}i(hI,"initEligibilityCheckFn");function gI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/purchase/link-device`;return yield M(r,t)})}i(gI,"initLinkDeviceFn");function yI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/purchase/new-account`;return yield M(r,t)})}i(yI,"initNewAccountFn");function vI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/purchase/change-subscription`;return yield M(r,t)})}i(vI,"initChangeSubscriptionFn");function bI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/oem`;return yield M(r,t)})}i(bI,"initOemFn");function SI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/update-account-password`;return yield M(r,t)})}i(SI,"initUpdateAccountPasswordFn");function EI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/update-billing-info`;return yield M(r,t)})}i(EI,"initUpdateBillingInfoFn");function wI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/update-customer-info`;return yield M(r,t)})}i(wI,"initUpdateCustomerInfoFn");function CI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/payment/make-payment`;return yield M(r,t)})}i(CI,"initMakePaymentFn");function II({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/payment/update-ebill-enrollment`;return yield M(r,t)})}i(II,"initUpdateEbillEnrollmentFn");function TI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/quotes/continuous-service-quote`;return yield M(r,t)})}i(TI,"initContinuousServiceQuoteFn");function AI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/cs-eligible-radio/non-pii`;return yield M(r,t)})}i(AI,"initEligibleRadioAccountFn");function kI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/token/cs-eligible-radios`;return yield M(r,t)})}i(kI,"initTokenEligibleRadiosFn");function _I({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/payment/giftcard/info`;return yield M(r,t)})}i(_I,"initGiftcardInfoFn");function PI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/payment/giftcard/redeem`;return yield M(r,t)})}i(PI,"initGiftCardRedeemFn");function NI({baseUrl:e}){return()=>l(null,null,function*(){let t=`${e}/payment/giftcard/remove`;return yield M(t)})}i(NI,"initGiftCardRemoveFn");function OI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/contact-preferences`;return yield M(r,t)})}i(OI,"initGetContactPreferencesFn");function RI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/update-nickname`;return yield M(r,t)})}i(RI,"initUpdateNicknameFn");function DI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account-mgmt/redeem-promotional-credit`;return yield M(r,t)})}i(DI,"initRedeemPromotionalCreditFn");function LI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/add-service/cs-eligible-subscriptions`;return yield M(r,t)})}i(LI,"initEligibleSubscriptionsFn");function xI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/update-cna`;return yield M(r,t)})}i(xI,"initUpdateCnaFn");function MI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/registration/non-pii`;return yield M(r,t)})}i(MI,"initLookupRegistrationAccountFn");function UI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/register`;return yield M(r,t)})}i(UI,"initRegisterAccountFn");function FI({baseUrl:e}){return()=>l(null,null,function*(){let t=`${e}/account/ac-eligible-radios`;return yield M(t)})}i(FI,"initAcEligibleRadiosFn");function BI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/account/ac-eligible-radio/non-pii`;return yield M(r,t)})}i(BI,"initAcEligibleRadioAccountFn");function qI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/offers`;return yield M(r,t)})}i(qI,"initOffersOrganicFn");function VI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/offers/promocode/validate`;return yield M(r,t)})}i(VI,"initOffersPromoCodeValidateFn");function GI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/validate/email`;return yield M(r,t)})}i(GI,"initEmailFn");function zI({baseUrl:e}){return t=>l(null,null,function*(){let r=`${e}/trial-activation/account-consolidate`;return yield M(r,t)})}i(zI,"initAccountConsolidateFn");
1var jI=class{constructor(t){w(this,"domains");let r=t.currentCountryCode.toLowerCase()==="us"?t.baseUrlUS:t.baseUrlCanada;this.domains={account:{acEligibleRadioAccount:BI({baseUrl:r}),acEligibleRadios:FI({baseUrl:r}),acsc:JC({baseUrl:r}),convertDtokToMagicLink:kC({baseUrl:r}),convertDtokToMagicLinkCanada:_C({baseUrl:t.baseUrlCanada}),eligibilityCheck:hI({baseUrl:r}),eligibleRadioAccount:AI({baseUrl:r}),eligibleRadios:pI({baseUrl:r}),eligibleSubscriptions:LI({baseUrl:r}),getAccount:CC({baseUrl:r}),lookupRegistrationAccount:MI({baseUrl:r}),nextBestAction:jC({baseUrl:r}),nonPii:DC({baseUrl:r}),oem:bI({baseUrl:r}),register:UI({baseUrl:r}),tokenEligibleRadios:kI({baseUrl:r}),updateCna:xI({baseUrl:r}),updateStreaming:WC({baseUrl:r}),verify:xC({baseUrl:r})},accountManagement:{getContactPreferences:OI({baseUrl:r}),modifySubscriptionOptions:XC({baseUrl:r}),redeemPromotionalCredit:DI({baseUrl:r}),removeDevice:sI({baseUrl:r}),updateAccountLogin:$C({baseUrl:r}),updateAccountPassword:SI({baseUrl:r}),updateBillingInfo:EI({baseUrl:r}),updateCustomerInfo:wI({baseUrl:r}),updateNickname:RI({baseUrl:r})},authenticate:{login:IC({baseUrl:r}),logout:TC({baseUrl:r}),validateLogin:HC({baseUrl:r})},billing:{activity:dI({baseUrl:r})},checkEligibility:{captcha:tI({baseUrl:r})},device:{info:MC({baseUrl:r}),refresh:KC({baseUrl:r}),sendRefreshInstruction:fI({baseUrl:r}),validate:RC({baseUrl:r})},identity:{createSalIdentity:PC({baseUrl:r}),createSalIdentityCanada:NC({baseUrl:t.baseUrlCanada}),deviceLicensePlate:mI({baseUrl:r}),flepz:nI({baseUrl:r}),getAccountByEmail:OC({baseUrl:r})},offers:{allPackageDesc:zC({baseUrl:r}),customer:UC({baseUrl:r}),customerAdd:eI({baseUrl:r}),customerChange:uI({baseUrl:r}),getOffersCommerceInfo:AC({baseUrl:r}),info:BC({baseUrl:r}),organic:qI({baseUrl:r}),promoCodeValidate:VI({baseUrl:r}),renewal:FC({baseUrl:r})},payment:{giftCardInfo:_I({baseUrl:r}),giftCardRedeem:PI({baseUrl:r}),giftCardRemove:NI({baseUrl:r}),makePayment:CI({baseUrl:r}),updateEBillEnrollment:II({baseUrl:r}),updatePaymentInfo:lI({baseUrl:r})},purchase:{addSubscription:oI({baseUrl:r}),changeSubscription:vI({baseUrl:r}),linkDevice:gI({baseUrl:r}),newAccount:yI({baseUrl:r}),swapRadio:QC({baseUrl:r})},quotes:{continuousServiceQuote:TI({baseUrl:r}),quote:iI({baseUrl:r}),swapRadioQuote:ZC({baseUrl:r})},trialActivation:{accountConsolidate:zI({baseUrl:r})},utility:{cardBinRanges:GC({baseUrl:r}),envInfo:qC({baseUrl:r}),logMessage:LC({baseUrl:r}),updateUseCase:VC({baseUrl:r})},validate:{customerInfo:cI({baseUrl:r}),email:GI({baseUrl:r}),password:YC({baseUrl:r}),uniqueLogin:rI({baseUrl:r})}}}};i(jI,"MicroservicesSdk");var DL=jI,KI=class{constructor(t){this.microservicesSdk=t}logError(t){return l(this,null,function*(){try{return yield this.microservicesSdk.domains.utility.logMessage(C(g({},t),{logLevel:"ERROR",url:location.href,referrer:Ue()?void 0:document.referrer}))}catch(r){}})}logInfo(t){return l(this,null,function*(){try{return yield this.microservicesSdk.domains.utility.logMessage(C(g({},t),{logLevel:"INFO",url:location.href,referrer:Ue()?void 0:document.referrer}))}catch(r){}})}};i(KI,"ErrorLoggerSdkMicroservices");var LL=KI;function HI({dependencies:e}){let{appEventSdk:t,microservicesSdk:r}=e;return()=>l(null,null,function*(){try{let n=yield r.domains.utility.envInfo();return t.trackEvent({event:"meta",buildVersion:n.buildInfo.tag}),{sessionId:n.sessionInfo.id,pvtTime:n.buildInfo.pvtTime}}catch(n){throw q(n,e),new Error("SYSTEM")}})}i(HI,"initEnvInfoFn");function YI({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({useCase:r}){try{yield t.domains.utility.updateUseCase({useCase:r})}catch(a){throw q(a,e),new Error("SYSTEM")}})}i(YI,"initStartUseCaseFn");function WI({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({cardBinType:r}){try{return yield t.domains.utility.cardBinRanges({cardBinType:r})}catch(a){throw q(a,e),new Error("SYSTEM")}})}i(WI,"initCardBinRangesFn");function $I({dependencies:e}){return()=>{let{clientSdkStorageProvider:t}=e,r=JSON.parse(t.getItem("AUTH_TOKEN")||""),n=r&&r?.session?.location,a={countryCode:"",region:"",regionCode:"",tz:"",city:""},o=hc(n);return o&&(a=C(g({},o),{countryCode:a.countryCode.toLowerCase(),tz:n.tz,city:n.city})),a}}i($I,"initGetGeoLocationFn");function XI({dependencies:e}){return t=>l(null,null,function*(){Vr(t,e)})}i(XI,"initLogMessageFn");function JI(e){return{cardBinRanges:WI(e),envInfo:HI(e),getGeoLocation:$I(e),logMessage:XI(e),startUseCase:YI(e)}}i(JI,"domainUtility");var ZI=class{constructor(){w(this,"handlerId",1),w(this,"handlersCommand",{}),w(this,"handlersData",{}),w(this,"handlersError",{})}addEventListener(t,r){let n=this.handlerId++;switch(t){case"command":this.handlersCommand[n]=r;break;case"data":this.handlersData[n]=r;break;case"error":this.handlersError[n]=r;break}return n}removeEventListener(t){delete this.handlersCommand[t],delete this.handlersData[t],delete this.handlersError[t]}emit(t){switch(t.type){case"command":for(let r of Object.values(this.handlersCommand))r(t);break;case"data":for(let r of Object.values(this.handlersData))r(t);break;case"error":for(let r of Object.values(this.handlersError))r(t);break}}};i(ZI,"EventProvider");var xL=ZI;function QI({dependencies:e}){let{microservicesSdk:t}=e;return r=>l(null,null,function*(){try{if("radioId"in r||"vin"in r)return yield t.domains.device.validate(r);if("licensePlate"in r&&"state"in r){let{last4DigitsOfVin:n}=yield t.domains.identity.deviceLicensePlate(r);return yield t.domains.device.validate({vin:n})}else throw new Error("INVALID_PAYLOAD")}catch(n){throw he(e,n)||(q(n,e),new Error("SYSTEM"))}})}
1i(QI,"initValidateSmsFn");function eT({dependencies:e}){let{microservicesSdk:t}=e;return n=>l(null,[n],function*({radioId:r}){try{return yield t.domains.device.info({radioId:r})}catch(a){throw q(a,e),new Error("SYSTEM")}})}i(eT,"initInfoSmsFn");function tT({dependencies:e}){let{microservicesSdk:t}=e;return o=>l(null,[o],function*({subscriptionId:r,radioId:n,radioInfo:a}){try{let s=yield t.domains.account.eligibilityCheck({subscriptionId:r,radioId:n});return s.eligibilityStatus==="LINK"&&!s.subscription?Sn(a.deviceInformation,!0):Pn(s)}catch(s){if(s.errorCode==="CS_INELIGIBLE_RADIO")return Sn(a.deviceInformation);throw q(s,e),new Error("SYSTEM")}})}i(tT,"initGetSubscriptionEligibilityDeviceFn");function rT(e){return{getSubscriptionEligibilityDevice:tT(e),infoSms:eT(e),validateSms:QI(e)}}i(rT,"domainDevices");var nT=class{constructor(){w(this,"domains"),w(this,"campaignFlags"),w(this,"countryCodeDefault"),w(this,"geoLocation"),w(this,"state"),w(this,"locale"),w(this,"thirdParty"),w(this,"eventProvider",new xL),w(this,"microservicesSdk"),w(this,"clientSdk")}init({initDependencies:t,config:r}){let n=new DL({baseUrlUS:r.microservices.baseUrlUS||"",baseUrlCanada:r.microservices.baseUrlCanada||"",currentCountryCode:r.localeContext.countryCode}),a=new LL(n),o=C(g({},t),{contentfulSdk:new iL({baseUrl:r.thirdParty?.contentful?.baseUrl||"",accessToken:r.thirdParty?.contentful?.accessToken||"",spaceId:r.thirdParty?.contentful?.spaceId||"",environmentId:r.thirdParty?.contentful?.environmentId||""}),microservicesSdk:n,errorLoggerSdk:a,eventSdk:this.eventProvider});if(this.microservicesSdk=n,this.clientSdk=t.clientSdk,this.countryCodeDefault||(this.countryCodeDefault=r.localeContext.countryCode),!this.geoLocation)try{let s=JSON.parse(o.clientSdkStorageProvider?.getItem("AUTH_TOKEN")||""),c=s&&s?.session?.location;this.geoLocation=hc(c)||{countryCode:"",region:"",regionCode:""}}catch(s){}if(this.locale||(this.locale=r.localeContext.languages),this.thirdParty||(this.thirdParty={salesforce:r.thirdParty.salesforce,stripe:{publishableKey:r.thirdParty.stripe.publishableApiKey,allowedPaymentTypes:r.thirdParty.stripe.allowedPaymentTypes}}),this.state||(this.state={}),!this.domains){let s={dependencies:o,countryCodeDefault:this.countryCodeDefault,locale:this.locale,state:this.state};this.domains={account:uE(C(g({},s),{clientSdkBaseUrl:r.edge.baseApiUrl})),auth:LE(s),onboarding:vb(s),acquisitions:hw(s),subscriptions:zw(s),utility:JI(s),devices:rT(s)}}this.campaignFlags||(this.thirdParty.salesforce.disabled?this.campaignFlags={getCampaignFlag:i(()=>l(this,null,function*(){throw new Error("Campaign flag provider disabled.")}),"getCampaignFlag"),captureCampaignFlagImpression:i(()=>l(this,null,function*(){throw new Error("Campaign flag provider disabled.")}),"captureCampaignFlagImpression")}:this.campaignFlags=bw(this.thirdParty.salesforce.environment,o))}addEventListener(t,r){return this.eventProvider.addEventListener(t,r)}removeEventListener(t){this.eventProvider.removeEventListener(t)}};i(nT,"WebSDK");var ML=nT,Of={INVALID_AUTH_HEADERS_ERROR_CODE:"tokenServicesTeam.sessionService.invalid-auth-headers",INVALID_REFRESH_TOKEN_ERROR_CODE:"tokenServicesTeam.sessionService.invalid-refresh-token"},UL=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,iT=UL,FL=typeof self=="object"&&self&&self.Object===Object&&self,BL=iT||FL||Function("return this")(),It=BL,qL=It.Symbol,Vt=qL,aT=Object.prototype,VL=aT.hasOwnProperty,GL=aT.toString,sn=Vt?Vt.toStringTag:void 0;function oT(e){var t=VL.call(e,sn),r=e[sn];try{e[sn]=void 0;var n=!0}catch(o){}var a=GL.call(e);return n&&(t?e[sn]=r:delete e[sn]),a}i(oT,"getRawTag");var zL=oT,jL=Object.prototype,KL=jL.toString;function sT(e){return KL.call(e)}i(sT,"objectToString");var HL=sT,YL="[object Null]",WL="[object Undefined]",Rf=Vt?Vt.toStringTag:void 0;function cT(e){return e==null?e===void 0?WL:YL:Rf&&Rf in Object(e)?zL(e):HL(e)}i(cT,"baseGetTag");var jr=cT;function dT(e){return e!=null&&typeof e=="object"}i(dT,"isObjectLike");var Kr=dT,$L="[object Symbol]";function lT(e){return typeof e=="symbol"||Kr(e)&&jr(e)==$L}i(lT,"isSymbol");var od=lT;function uT(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}i(uT,"arrayMap");var XL=uT,JL=Array.isArray,Hr=JL,ZL=1/0,Df=Vt?Vt.prototype:void 0,Lf=Df?Df.toString:void 0;function sd(e){if(typeof e=="string")return e;if(Hr(e))return XL(e,sd)+"";if(od(e))return Lf?Lf.call(e):"";var t=e+"";return t=="0"&&1/e==-ZL?"-0":t}i(sd,"baseToString");var QL=sd;function mT(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}i(mT,"isObject");var Mn=mT,ex="[object AsyncFunction]",tx="[object Function]",rx="[object GeneratorFunction]",nx="[object Proxy]";function fT(e){if(!Mn(e))return!1;var t=jr(e);return t==tx||t==rx||t==ex||t==nx}i(fT,"isFunction");var pT=fT,ix=It["__core-js_shared__"],ao=ix,xf=(function(){var e=/[^.]+$/.exec(ao&&ao.keys&&ao.keys.IE_PROTO||"");
vendor: 13,686 bytes, line 1
1return e?"Symbol(src)_1."+e:""})();function hT(e){return!!xf&&xf in e}i(hT,"isMasked");var ax=hT,ox=Function.prototype,sx=ox.toString;function gT(e){if(e!=null){try{return sx.call(e)}catch(t){}try{return e+""}catch(t){}}return""}i(gT,"toSource");var ar=gT,cx=/[\\^$.*+?()[\]{}|]/g,dx=/^\[object .+?Constructor\]$/,lx=Function.prototype,ux=Object.prototype,mx=lx.toString,fx=ux.hasOwnProperty,px=RegExp("^"+mx.call(fx).replace(cx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yT(e){if(!Mn(e)||ax(e))return!1;var t=pT(e)?px:dx;return t.test(ar(e))}i(yT,"baseIsNative");var hx=yT;function vT(e,t){return e?.[t]}i(vT,"getValue");var gx=vT;function bT(e,t){var r=gx(e,t);return hx(r)?r:void 0}i(bT,"getNative");var or=bT,yx=or(It,"WeakMap"),Zo=yx,Mf=Object.create,vx=(function(){function e(){}return i(e,"object"),function(t){if(!Mn(t))return{};if(Mf)return Mf(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),bx=vx;function ST(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}i(ST,"copyArray");var Sx=ST,Ex=(function(){try{var e=or(Object,"defineProperty");return e({},"",{}),e}catch(t){}})(),Uf=Ex;function ET(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}i(ET,"arrayEach");var wx=ET,Cx=9007199254740991,Ix=/^(?:0|[1-9]\d*)$/;function wT(e,t){var r=typeof e;return t=t??Cx,!!t&&(r=="number"||r!="symbol"&&Ix.test(e))&&e>-1&&e%1==0&&e<t}i(wT,"isIndex");var Tx=wT;function CT(e,t,r){t=="__proto__"&&Uf?Uf(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}i(CT,"baseAssignValue");var IT=CT;function TT(e,t){return e===t||e!==e&&t!==t}i(TT,"eq");var AT=TT,Ax=Object.prototype,kx=Ax.hasOwnProperty;function kT(e,t,r){var n=e[t];(!(kx.call(e,t)&&AT(n,r))||r===void 0&&!(t in e))&&IT(e,t,r)}i(kT,"assignValue");var _T=kT;function PT(e,t,r,n){var a=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var c=t[o],d=n?n(r[c],e[c],c,r,e):void 0;d===void 0&&(d=e[c]),a?IT(r,c,d):_T(r,c,d)}return r}i(PT,"copyObject");var fa=PT,_x=9007199254740991;function NT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_x}i(NT,"isLength");var OT=NT;function RT(e){return e!=null&&OT(e.length)&&!pT(e)}i(RT,"isArrayLike");var DT=RT,Px=Object.prototype;function LT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Px;return e===r}i(LT,"isPrototype");var cd=LT;function xT(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}i(xT,"baseTimes");var Nx=xT,Ox="[object Arguments]";function MT(e){return Kr(e)&&jr(e)==Ox}i(MT,"baseIsArguments");var Ff=MT,UT=Object.prototype,Rx=UT.hasOwnProperty,Dx=UT.propertyIsEnumerable,Lx=Ff((function(){return arguments})())?Ff:function(e){return Kr(e)&&Rx.call(e,"callee")&&!Dx.call(e,"callee")},xx=Lx;function FT(){return!1}i(FT,"stubFalse");var Mx=FT,BT=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bf=BT&&typeof module=="object"&&module&&!module.nodeType&&module,Ux=Bf&&Bf.exports===BT,qf=Ux?It.Buffer:void 0,Fx=qf?qf.isBuffer:void 0,Bx=Fx||Mx,qT=Bx,qx="[object Arguments]",Vx="[object Array]",Gx="[object Boolean]",zx="[object Date]",jx="[object Error]",Kx="[object Function]",Hx="[object Map]",Yx="[object Number]",Wx="[object Object]",$x="[object RegExp]",Xx="[object Set]",Jx="[object String]",Zx="[object WeakMap]",Qx="[object ArrayBuffer]",eM="[object DataView]",tM="[object Float32Array]",rM="[object Float64Array]",nM="[object Int8Array]",iM="[object Int16Array]",aM="[object Int32Array]",oM="[object Uint8Array]",sM="[object Uint8ClampedArray]",cM="[object Uint16Array]",dM="[object Uint32Array]",Te={};Te[tM]=Te[rM]=Te[nM]=Te[iM]=Te[aM]=Te[oM]=Te[sM]=Te[cM]=Te[dM]=!0;Te[qx]=Te[Vx]=Te[Qx]=Te[Gx]=Te[eM]=Te[zx]=Te[jx]=Te[Kx]=Te[Hx]=Te[Yx]=Te[Wx]=Te[$x]=Te[Xx]=Te[Jx]=Te[Zx]=!1;function VT(e){return Kr(e)&&OT(e.length)&&!!Te[jr(e)]}i(VT,"baseIsTypedArray");var lM=VT;function GT(e){return function(t){return e(t)}}i(GT,"baseUnary");var dd=GT,zT=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hn=zT&&typeof module=="object"&&module&&!module.nodeType&&module,uM=hn&&hn.exports===zT,oo=uM&&iT.process,mM=(function(){try{var e=hn&&hn.require&&hn.require("util").types;return e||oo&&oo.binding&&oo.binding("util")}catch(t){}})(),Rr=mM,Vf=Rr&&Rr.isTypedArray,fM=Vf?dd(Vf):lM,pM=fM,hM=Object.prototype,gM=hM.hasOwnProperty;function jT(e,t){var r=Hr(e),n=!r&&xx(e),a=!r&&!n&&qT(e),o=!r&&!n&&!a&&pM(e),s=r||n||a||o,c=s?Nx(e.length,String):[],d=c.length;for(var u in e)(t||gM.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Tx(u,d)))&&c.push(u);return c}i(jT,"arrayLikeKeys");var KT=jT;function HT(e,t){return function(r){return e(t(r))}}i(HT,"overArg");var YT=HT,yM=YT(Object.keys,Object),vM=yM,bM=Object.prototype,SM=bM.hasOwnProperty;function WT(e){if(!cd(e))return vM(e);var t=[];for(var r in Object(e))SM.call(e,r)&&r!="constructor"&&t.push(r);return t}i(WT,"baseKeys");var EM=WT;function $T(e){return DT(e)?KT(e):EM(e)}i($T,"keys");var ld=$T;function XT(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}i(XT,"nativeKeysIn");var wM=XT,CM=Object.prototype,IM=CM.hasOwnProperty;function JT(e){if(!Mn(e))return wM(e);var t=cd(e),r=[];for(var n in e)n=="constructor"&&(t||!IM.call(e,n))||r.push(n);return r}i(JT,"baseKeysIn");var TM=JT;function ZT(e){return DT(e)?KT(e,!0):TM(e)}i(ZT,"keysIn");var ud=ZT,AM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kM=/^\w*$/;function QT(e,t){if(Hr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||od(e)?!0:kM.test(e)||!AM.test(e)||t!=null&&e in Object(t)}i(QT,"isKey");var _M=QT,PM=or(Object,"create"),Cn=PM;function eA(){this.__data__=Cn?Cn(null):{},this.size=0}i(eA,"hashClear");var NM=eA;function tA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}i(tA,"hashDelete");var OM=tA,RM="__lodash_hash_undefined__",DM=Object.prototype,LM=DM.hasOwnProperty;function rA(e){var t=this.__data__;if(Cn){var r=t[e];return r===RM?void 0:r}return LM.call(t,e)?t[e]:void 0}i(rA,"hashGet");var xM=rA,MM=Object.prototype,UM=MM.hasOwnProperty;function nA(e){var t=this.__data__;return Cn?t[e]!==void 0:UM.call(t,e)}i(nA,"hashHas");var FM=nA,BM="__lodash_hash_undefined__";function iA(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cn&&t===void 0?BM:t,this}i(iA,"hashSet");var qM=iA;function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(sr,"Hash");sr.prototype.clear=NM;sr.prototype.delete=OM;sr.prototype.get=xM;sr.prototype.has=FM;sr.prototype.set=qM;var Gf=sr;function aA(){this.__data__=[],this.size=0}i(aA,"listCacheClear");var VM=aA;function oA(e,t){for(var r=e.length;r--;)if(AT(e[r][0],t))return r;return-1}i(oA,"assocIndexOf");var pa=oA,GM=Array.prototype,zM=GM.splice;function sA(e){var t=this.__data__,r=pa(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zM.call(t,r,1),--this.size,!0}i(sA,"listCacheDelete");var jM=sA;function cA(e){var t=this.__data__,r=pa(t,e);return r<0?void 0:t[r][1]}i(cA,"listCacheGet");var KM=cA;function dA(e){return pa(this.__data__,e)>-1}i(dA,"listCacheHas");var HM=dA;function lA(e,t){var r=this.__data__,n=pa(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}i(lA,"listCacheSet");var YM=lA;function cr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(cr,"ListCache");cr.prototype.clear=VM;cr.prototype.delete=jM;cr.prototype.get=KM;cr.prototype.has=HM;cr.prototype.set=YM;var ha=cr,WM=or(It,"Map"),In=WM;function uA(){this.size=0,this.__data__={hash:new Gf,map:new(In||ha),string:new Gf}}i(uA,"mapCacheClear");var $M=uA;function mA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(mA,"isKeyable");var XM=mA;function fA(e,t){var r=e.__data__;return XM(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(fA,"getMapData");var ga=fA;function pA(e){var t=ga(this,e).delete(e);return this.size-=t?1:0,t}i(pA,"mapCacheDelete");var JM=pA;function hA(e){return ga(this,e).get(e)}i(hA,"mapCacheGet");var ZM=hA;function gA(e){return ga(this,e).has(e)}i(gA,"mapCacheHas");var QM=gA;function yA(e,t){var r=ga(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}i(yA,"mapCacheSet");var eU=yA;function dr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(dr,"MapCache");dr.prototype.clear=$M;dr.prototype.delete=JM;dr.prototype.get=ZM;dr.prototype.has=QM;dr.prototype.set=eU;var md=dr,tU="Expected a function";function ya(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tU);var r=i(function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s)||o,s},"memoized");return r.cache=new(ya.Cache||md),r}i(ya,"memoize");ya.Cache=md;var rU=ya,nU=500;function vA(e){var t=rU(e,function(n){return r.size===nU&&r.clear(),n}),r=t.cache;return t}i(vA,"memoizeCapped");var iU=vA,aU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oU=/\\(\\)?/g,sU=iU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(aU,function(r,n,a,o){t.push(a?o.replace(oU,"$1"):n||r)}),t}),cU=sU;function bA(e){return e==null?"":QL(e)}i(bA,"toString");var dU=bA;function SA(e,t){return Hr(e)?e:_M(e,t)?[e]:cU(dU(e))}i(SA,"castPath");var lU=SA,uU=1/0;function EA(e){if(typeof e=="string"||od(e))return e;var t=e+"";return t=="0"&&1/e==-uU?"-0":t}i(EA,"toKey");var mU=EA;function wA(e,t){t=lU(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mU(t[r++])];return r&&r==n?e:void 0}i(wA,"baseGet");var fU=wA;function CA(e,t,r){var n=e==null?void 0:fU(e,t);return n===void 0?r:n}i(CA,"get");var pU=CA;function IA(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}i(IA,"arrayPush");var TA=IA,hU=YT(Object.getPrototypeOf,Object),AA=hU;function kA(){this.__data__=new ha,this.size=0}i(kA,"stackClear");var gU=kA;function _A(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}i(_A,"stackDelete");var yU=_A;function PA(e){return this.__data__.get(e)}i(PA,"stackGet");var vU=PA;function NA(e){return this.__data__.has(e)}i(NA,"stackHas");var bU=NA,SU=200;function OA(e,t){var r=this.__data__;if(r instanceof ha){var n=r.__data__;if(!In||n.length<SU-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new md(n)}return r.set(e,t),this.size=r.size,this}i(OA,"stackSet");var EU=OA;function lr(e){var t=this.__data__=new ha(e);this.size=t.size}i(lr,"Stack");lr.prototype.clear=gU;lr.prototype.delete=yU;lr.prototype.get=vU;lr.prototype.has=bU;lr.prototype.set=EU;var wU=lr;function RA(e,t){return e&&fa(t,ld(t),e)}i(RA,"baseAssign");var CU=RA;function DA(e,t){return e&&fa(t,ud(t),e)}i(DA,"baseAssignIn");var IU=DA,LA=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zf=LA&&typeof module=="object"&&module&&!module.nodeType&&module,TU=zf&&zf.exports===LA,jf=TU?It.Buffer:void 0,Kf=jf?jf.allocUnsafe:void 0;function xA(e,t){if(t)return e.slice();var r=e.length,n=Kf?Kf(r):new e.constructor(r);return e.copy(n),n}i(xA,"cloneBuffer");var AU=xA;function MA(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[a++]=s)}return o}i(MA,"arrayFilter");var kU=MA;function UA(){return[]}i(UA,"stubArray");var FA=UA,_U=Object.prototype,PU=_U.propertyIsEnumerable,Hf=Object.getOwnPropertySymbols,NU=Hf?function(e){return e==null?[]:(e=Object(e),kU(Hf(e),function(t){return PU.call(e,t)}))}:FA,fd=NU;function BA(e,t){return fa(e,fd(e),t)}i(BA,"copySymbols");var OU=BA,RU=Object.getOwnPropertySymbols,DU=RU?function(e){for(var t=[];e;)TA(t,fd(e)),e=AA(e);return t}:FA,qA=DU;function VA(e,t){return fa(e,qA(e),t)}i(VA,"copySymbolsIn");var LU=VA;function GA(e,t,r){var n=t(e);return Hr(e)?n:TA(n,r(e))}i(GA,"baseGetAllKeys");var zA=GA;function jA(e){return zA(e,ld,fd)}i(jA,"getAllKeys");var xU=jA;function KA(e){return zA(e,ud,qA)}i(KA,"getAllKeysIn");var MU=KA,UU=or(It,"DataView"),Qo=UU,FU=or(It,"Promise"),es=FU,BU=or(It,"Set"),ts=BU,Yf="[object Map]",qU="[object Object]",Wf="[object Promise]",$f="[object Set]",Xf="[object WeakMap]",Jf="[object DataView]",VU=ar(Qo),GU=ar(In),zU=ar(es),jU=ar(ts),KU=ar(Zo),Qt=jr;(Qo&&Qt(new Qo(new ArrayBuffer(1)))!=Jf||In&&Qt(new In)!=Yf||es&&Qt(es.resolve())!=Wf||ts&&Qt(new ts)!=$f||Zo&&Qt(new Zo)!=Xf)&&(Qt=i(function(e){var t=jr(e),r=t==qU?e.constructor:void 0,n=r?ar(r):"";if(n)switch(n){case VU:return Jf;case GU:return Yf;case zU:return Wf;case jU:return $f;case KU:return Xf}return t},"getTag"));var pd=Qt,HU=Object.prototype,YU=HU.hasOwnProperty;function HA(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&YU.call(e,"index")&&(r.index=e.index,r.input=e.input),r}i(HA,"initCloneArray");var WU=HA,$U=It.Uint8Array,Zf=$U;function YA(e){var t=new e.constructor(e.byteLength);return new Zf(t).set(new Zf(e)),t}i(YA,"cloneArrayBuffer");var hd=YA;function WA(e,t){var r=t?hd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}i(WA,"cloneDataView");var XU=WA,JU=/\w*$/;function $A(e){var t=new e.constructor(e.source,JU.exec(e));return t.lastIndex=e.lastIndex,t}i($A,"cloneRegExp");var ZU=$A,Qf=Vt?Vt.prototype:void 0,ep=Qf?Qf.valueOf:void 0;function XA(e){return ep?Object(ep.call(e)):{}}i(XA,"cloneSymbol");var QU=XA;function JA(e,t){var r=t?hd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}i(JA,"cloneTypedArray");var eF=JA,tF="[object Boolean]",rF="[object Date]",nF="[object Map]",iF="[object Number]",aF="[object RegExp]",oF="[object Set]",sF="[object String]",cF="[object Symbol]",dF="[object ArrayBuffer]",lF="[object DataView]",uF="[object Float32Array]",mF="[object Float64Array
1]",fF="[object Int8Array]",pF="[object Int16Array]",hF="[object Int32Array]",gF="[object Uint8Array]",yF="[object Uint8ClampedArray]",vF="[object Uint16Array]",bF="[object Uint32Array]";function ZA(e,t,r){var n=e.constructor;switch(t){case dF:return hd(e);case tF:case rF:return new n(+e);case lF:return XU(e,r);case uF:case mF:case fF:case pF:case hF:case gF:case yF:case vF:case bF:return eF(e,r);case nF:return new n;case iF:case sF:return new n(e);case aF:return ZU(e);case oF:return new n;case cF:return QU(e)}}i(ZA,"initCloneByTag");var SF=ZA;function QA(e){return typeof e.constructor=="function"&&!cd(e)?bx(AA(e)):{}}i(QA,"initCloneObject");var EF=QA,wF="[object Map]";function ek(e){return Kr(e)&&pd(e)==wF}i(ek,"baseIsMap");var CF=ek,tp=Rr&&Rr.isMap,IF=tp?dd(tp):CF,TF=IF,AF="[object Set]";function tk(e){return Kr(e)&&pd(e)==AF}i(tk,"baseIsSet");var kF=tk,rp=Rr&&Rr.isSet,_F=rp?dd(rp):kF,PF=_F,NF=1,OF=2,RF=4,rk="[object Arguments]",DF="[object Array]",LF="[object Boolean]",xF="[object Date]",MF="[object Error]",nk="[object Function]",UF="[object GeneratorFunction]",FF="[object Map]",BF="[object Number]",ik="[object Object]",qF="[object RegExp]",VF="[object Set]",GF="[object String]",zF="[object Symbol]",jF="[object WeakMap]",KF="[object ArrayBuffer]",HF="[object DataView]",YF="[object Float32Array]",WF="[object Float64Array]",$F="[object Int8Array]",XF="[object Int16Array]",JF="[object Int32Array]",ZF="[object Uint8Array]",QF="[object Uint8ClampedArray]",eB="[object Uint16Array]",tB="[object Uint32Array]",Ie={};Ie[rk]=Ie[DF]=Ie[KF]=Ie[HF]=Ie[LF]=Ie[xF]=Ie[YF]=Ie[WF]=Ie[$F]=Ie[XF]=Ie[JF]=Ie[FF]=Ie[BF]=Ie[ik]=Ie[qF]=Ie[VF]=Ie[GF]=Ie[zF]=Ie[ZF]=Ie[QF]=Ie[eB]=Ie[tB]=!0;Ie[MF]=Ie[nk]=Ie[jF]=!1;function gn(e,t,r,n,a,o){var s,c=t&NF,d=t&OF,u=t&RF;if(r&&(s=a?r(e,n,a,o):r(e)),s!==void 0)return s;if(!Mn(e))return e;var f=Hr(e);if(f){if(s=WU(e),!c)return Sx(e,s)}else{var v=pd(e),p=v==nk||v==UF;if(qT(e))return AU(e,c);if(v==ik||v==rk||p&&!a){if(s=d||p?{}:EF(e),!c)return d?LU(e,IU(s,e)):OU(e,CU(s,e))}else{if(!Ie[v])return a?e:{};s=SF(e,v,c)}}o||(o=new wU);var m=o.get(e);if(m)return m;o.set(e,s),PF(e)?e.forEach(function(b){s.add(gn(b,t,r,b,e,o))}):TF(e)&&e.forEach(function(b,_){s.set(_,gn(b,t,r,_,e,o))});var h=u?d?MU:xU:d?ud:ld,y=f?void 0:h(e);return wx(y||e,function(b,_){y&&(_=b,b=e[_]),_T(s,_,gn(b,t,r,_,e,o))}),s}i(gn,"baseClone");var rB=gn,nB=1,iB=4;function ak(e){return rB(e,nB|iB)}i(ak,"cloneDeep");var gd=ak;function yd(e,t){return i(function(){return e.apply(t,arguments)},"wrap")}i(yd,"bind");var{toString:aB}=Object.prototype,{getPrototypeOf:vd}=Object,{iterator:va,toStringTag:ok}=Symbol,ba=(e=>t=>{let r=aB.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ht=i(e=>(e=e.toLowerCase(),t=>ba(t)===e),"kindOfTest"),Sa=i(e=>t=>typeof t===e,"typeOfTest"),{isArray:Yr}=Array,Dr=Sa("undefined");function Wr(e){return e!==null&&!Dr(e)&&e.constructor!==null&&!Dr(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}i(Wr,"isBuffer");var sk=ht("ArrayBuffer");function ck(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sk(e.buffer),t}i(ck,"isArrayBufferView");var oB=Sa("string"),tt=Sa("function"),dk=Sa("number"),Un=i(e=>e!==null&&typeof e=="object","isObject"),sB=i(e=>e===!0||e===!1,"isBoolean"),_i=i(e=>{if(ba(e)!=="object")return!1;let t=vd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ok in e)&&!(va in e)},"isPlainObject"),cB=i(e=>{if(!Un(e)||Wr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},"isEmptyObject"),dB=ht("Date"),lB=ht("File"),uB=ht("Blob"),mB=ht("FileList"),fB=i(e=>Un(e)&&tt(e.pipe),"isStream"),pB=i(e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tt(e.append)&&((t=ba(e))==="formdata"||t==="object"&&tt(e.toString)&&e.toString()==="[object FormData]"))},"isFormData"),hB=ht("URLSearchParams"),[gB,yB,vB,bB]=["ReadableStream","Request","Response","Headers"].map(ht),SB=i(e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function $r(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),Yr(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if(Wr(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length,c;for(n=0;n<s;n++)c=o[n],t.call(null,e[c],c,e)}}i($r,"forEach");function bd(e,t){if(Wr(e))return null;t=t.toLowerCase();let r=Object.keys(e),n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}i(bd,"findKey");var er=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,lk=i(e=>!Dr(e)&&e!==er,"isContextDefined");function ji(){let{caseless:e,skipUndefined:t}=lk(this)&&this||{},r={},n=i((a,o)=>{let s=e&&bd(r,o)||o;_i(r[s])&&_i(a)?r[s]=ji(r[s],a):_i(a)?r[s]=ji({},a):Yr(a)?r[s]=a.slice():(!t||!Dr(a))&&(r[s]=a)},"assignValue");for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&$r(arguments[a],n);return r}i(ji,"merge");var EB=i((e,t,r,{allOwnKeys:n}={})=>($r(t,(a,o)=>
1{r&&tt(a)?e[o]=yd(a,r):e[o]=a},{allOwnKeys:n}),e),"extend"),wB=i(e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),"stripBOM"),CB=i((e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},"inherits"),IB=i((e,t,r,n)=>{let a,o,s,c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!n||n(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=r!==!1&&vd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},"toFlatObject"),TB=i((e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},"endsWith"),AB=i(e=>{if(!e)return null;if(Yr(e))return e;let t=e.length;if(!dk(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},"toArray"),kB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vd(Uint8Array)),_B=i((e,t)=>{let r=(e&&e[va]).call(e),n;for(;(n=r.next())&&!n.done;){let a=n.value;t.call(e,a[0],a[1])}},"forEachEntry"),PB=i((e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},"matchAll"),NB=ht("HTMLFormElement"),OB=i(e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,i(function(t,r,n){return r.toUpperCase()+n},"replacer")),"toCamelCase"),np=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),RB=ht("RegExp"),uk=i((e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};$r(r,(a,o)=>{let s;(s=t(a,o,e))!==!1&&(n[o]=s||a)}),Object.defineProperties(e,n)},"reduceDescriptors"),DB=i(e=>{uk(e,(t,r)=>{if(tt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(tt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},"freezeMethods"),LB=i((e,t)=>{let r={},n=i(a=>{a.forEach(o=>{r[o]=!0})},"define");return Yr(e)?n(e):n(String(e).split(t)),r},"toObjectSet"),xB=i(()=>{},"noop"),MB=i((e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,"toFiniteNumber");function mk(e){return!!(e&&tt(e.append)&&e[ok]==="FormData"&&e[va])}i(mk,"isSpecCompliantForm");var UB=i(e=>{let t=new Array(10),r=i((n,a)=>{if(Un(n)){if(t.indexOf(n)>=0)return;if(Wr(n))return n;if(!("toJSON"in n)){t[a]=n;let o=Yr(n)?[]:{};return $r(n,(s,c)=>{let d=r(s,a+1);!Dr(d)&&(o[c]=d)}),t[a]=void 0,o}}return n},"visit");return r(e,0)},"toJSONObject"),FB=ht("AsyncFunction"),BB=i(e=>e&&(Un(e)||tt(e))&&tt(e.then)&&tt(e.catch),"isThenable"),fk=((e,t)=>e?setImmediate:t?((r,n)=>(er.addEventListener("message",({source:a,data:o})=>{a===er&&o===r&&n.length&&n.shift()()},!1),a=>{n.push(a),er.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",tt(er.postMessage)),qB=typeof queueMicrotask<"u"?queueMicrotask.bind(er):typeof process<"u"&&process.nextTick||fk,VB=i(e=>e!=null&&tt(e[va]),"isIterable"),A={isArray:Yr,isArrayBuffer:sk,isBuffer:Wr,isFormData:pB,isArrayBufferView:ck,isString:oB,isNumber:dk,isBoolean:sB,isObject:Un,isPlainObject:_i,isEmptyObject:cB,isReadableStream:gB,isRequest:yB,isResponse:vB,isHeaders:bB,isUndefined:Dr,isDate:dB,isFile:lB,isBlob:uB,isRegExp:RB,isFunction:tt,isStream:fB,isURLSearchParams:hB,isTypedArray:kB,isFileList:mB,forEach:$r,merge:ji,extend:EB,trim:SB,stripBOM:wB,inherits:CB,toFlatObject:IB,kindOf:ba,kindOfTest:ht,endsWith:TB,toArray:AB,forEachEntry:_B,matchAll:PB,isHTMLForm:NB,hasOwnProperty:np,hasOwnProp:np,reduceDescriptors:uk,freezeMethods:DB,toObjectSet:LB,toCamelCase:OB,noop:xB,toFiniteNumber:MB,findKey:bd,global:er,isContextDefined:lk,isSpecCompliantForm:mk,toJSONObject:UB,isAsyncFn:FB,isThenable:BB,setImmediate:fk,asap:qB,isIterable:VB};function tr(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}i(tr,"AxiosError");A.inherits(tr,Error,{toJSON:i(function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}},"toJSON")});var pk=tr.prototype,hk={};
1["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hk[e]={value:e}});Object.defineProperties(tr,hk);Object.defineProperty(pk,"isAxiosError",{value:!0});tr.from=(e,t,r,n,a,o)=>{let s=Object.create(pk);A.toFlatObject(e,s,i(function(u){return u!==Error.prototype},"filter"),u=>u!=="isAxiosError");let c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return tr.call(s,c,d,r,n,a),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",o&&Object.assign(s,o),s};var ae=tr,gk=null;function Ki(e){return A.isPlainObject(e)||A.isArray(e)}i(Ki,"isVisitable");function Sd(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}i(Sd,"removeBrackets");function rs(e,t,r){return e?e.concat(t).map(i(function(n,a){return n=Sd(n),!r&&a?"["+n+"]":n},"each")).join(r?".":""):t}i(rs,"renderKey");function yk(e){return A.isArray(e)&&!e.some(Ki)}i(yk,"isFlatArray");var GB=A.toFlatObject(A,{},null,i(function(e){return/^is[A-Z]/.test(e)},"filter"));function vk(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new(gk||FormData),r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,i(function(m,h){return!A.isUndefined(h[m])},"defined"));let n=r.metaTokens,a=r.visitor||u,o=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(a))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(A.isDate(m))return m.toISOString();if(A.isBoolean(m))return m.toString();if(!c&&A.isBlob(m))throw new ae("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(m)||A.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}i(d,"convertValue");function u(m,h,y){let b=m;if(m&&!y&&typeof m=="object"){if(A.endsWith(h,"{}"))h=n?h:h.slice(0,-2),m=JSON.stringify(m);else if(A.isArray(m)&&yk(m)||(A.isFileList(m)||A.endsWith(h,"[]"))&&(b=A.toArray(m)))return h=Sd(h),b.forEach(i(function(_,N){!(A.isUndefined(_)||_===null)&&t.append(s===!0?rs([h],N,o):s===null?h:h+"[]",d(_))},"each")),!1}return Ki(m)?!0:(t.append(rs(y,h,o),d(m)),!1)}i(u,"defaultVisitor");let f=[],v=Object.assign(GB,{defaultVisitor:u,convertValue:d,isVisitable:Ki});function p(m,h){if(!A.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(m),A.forEach(m,i(function(y,b){(!(A.isUndefined(y)||y===null)&&a.call(t,y,A.isString(b)?b.trim():b,h,v))===!0&&p(y,h?h.concat(b):[b])},"each")),f.pop()}}if(i(p,"build"),!A.isObject(e))throw new TypeError("data must be an object");return p(e),t}i(vk,"toFormData");var Ea=vk;function ns(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,i(function(r){return t[r]},"replacer"))}i(ns,"encode");function Ed(e,t){this._pairs=[],e&&Ea(e,this,t)}i(Ed,"AxiosURLSearchParams");var bk=Ed.prototype;bk.append=i(function(e,t){this._pairs.push([e,t])},"append");bk.toString=i(function(e){let t=e?function(r){return e.call(this,r,ns)}:ns;return this._pairs.map(i(function(r){return t(r[0])+"="+t(r[1])},"each"),"").join("&")},"toString");var Sk=Ed;function Ek(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}i(Ek,"encode");function wd(e,t,r){if(!t)return e;let n=r&&r.encode||Ek;A.isFunction(r)&&(r={serialize:r});let a=r&&r.serialize,o;if(a?o=a(t,r):o=A.isURLSearchParams(t)?t.toString():new Sk(t,r).toString(n),o){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}i(wd,"buildURL");var wk=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,i(function(r){r!==null&&t(r)},"forEachHandler"))}};i(wk,"InterceptorManager");var zB=wk,ip=zB,Ck={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jB=typeof URLSearchParams<"u"?URLSearchParams:Sk,KB=typeof FormData<"u"?FormData:null,HB=typeof Blob<"u"?Blob:null,YB={isBrowser:!0,classes:{
1URLSearchParams:jB,FormData:KB,Blob:HB},protocols:["http","https","file","blob","url","data"]},Ik={};$1(Ik,{hasBrowserEnv:()=>Cd,hasStandardBrowserEnv:()=>WB,hasStandardBrowserWebWorkerEnv:()=>$B,navigator:()=>is,origin:()=>XB});var Cd=typeof window<"u"&&typeof document<"u",is=typeof navigator=="object"&&navigator||void 0,WB=Cd&&(!is||["ReactNative","NativeScript","NS"].indexOf(is.product)<0),$B=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",XB=Cd&&window.location.href||"http://localhost",We=g(g({},Ik),YB);function Tk(e,t){return Ea(e,new We.classes.URLSearchParams,g({visitor:i(function(r,n,a,o){return We.isNode&&A.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},"visitor")},t))}i(Tk,"toURLEncodedForm");function Ak(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}i(Ak,"parsePropPath");function kk(e){let t={},r=Object.keys(e),n,a=r.length,o;for(n=0;n<a;n++)o=r[n],t[o]=e[o];return t}i(kk,"arrayToObject");function _k(e){function t(r,n,a,o){let s=r[o++];if(s==="__proto__")return!0;let c=Number.isFinite(+s),d=o>=r.length;return s=!s&&A.isArray(a)?a.length:s,d?(A.hasOwnProp(a,s)?a[s]=[a[s],n]:a[s]=n,!c):((!a[s]||!A.isObject(a[s]))&&(a[s]=[]),t(r,n,a[s],o)&&A.isArray(a[s])&&(a[s]=kk(a[s])),!c)}if(i(t,"buildPath"),A.isFormData(e)&&A.isFunction(e.entries)){let r={};return A.forEachEntry(e,(n,a)=>{t(Ak(n),a,r,0)}),r}return null}i(_k,"formDataToJSON");var Pk=_k;function Nk(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}i(Nk,"stringifySafely");var Id={transitional:Ck,adapter:["xhr","http","fetch"],transformRequest:[i(function(e,t){let r=t.getContentType()||"",n=r.indexOf("application/json")>-1,a=A.isObject(e);if(a&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return n?JSON.stringify(Pk(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)||A.isReadableStream(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Tk(e,this.formSerializer).toString();if((o=A.isFileList(e))||r.indexOf("multipart/form-data")>-1){let s=this.env&&this.env.FormData;return Ea(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return a||n?(t.setContentType("application/json",!1),Nk(e)):e},"transformRequest")],transformResponse:[i(function(e){let t=this.transitional||Id.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(e)||A.isReadableStream(e))return e;if(e&&A.isString(e)&&(r&&!this.responseType||n)){let a=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(o){if(a)throw o.name==="SyntaxError"?ae.from(o,ae.ERR_BAD_RESPONSE,this,null,this.response):o}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:i(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Id.headers[e]={}});var Td=Id,JB=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZB=i(e=>{let t={},r,n,a;return e&&e.split(`
2`).forEach(i(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&JB[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)},"parser")),t},"default"),ap=Symbol("internals");function kr(e){return e&&String(e).trim().toLowerCase()}i(kr,"normalizeHeader");function yn(e){return e===!1||e==null?e:A.isArray(e)?e.map(yn):String(e)}i(yn,"normalizeValue");function Ok(e){let t=Object.create(null),r=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}i(Ok,"parseTokens");var QB=i(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),"isValidHeaderName");function Pi(e,t,r,n,a){if(A.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!A.isString(t)){if(A.isString(n))return t.indexOf(n)!==-1;if(A.isRegExp(n))return n.test(t)}}i(Pi,"matchHeaderValue");function Rk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}i(Rk,"formatHeader");function Dk(e,t){let r=A.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:i(function(a,o,s){return this[n].call(this,t,a,o,s)},"value"),configurable:!0})})}i(Dk,"buildAccessors");var Lk=class{constructor(t){t&&this.set(t)}set(t,r,n){let a=this;function o(c,d,u){let f=kr(d);if(!f)throw new Error("header name must be a non-empty string");let v=A.findKey(a,f);(!v||a[v]===void 0||u===!0||u===void 0&&a[v]!==!1)&&(a[v||d]=yn(c))}i(o,"setHeader");let s=i((c,d)=>A.forEach(c,(u,f)=>o(u,f,d)),"setHeaders");if(A.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(A.isString(t)&&(t=t.trim())&&!QB(t))s(ZB(t),r);else if(A.isObject(t)&&A.isIterable(t)){let c={},d,u;for(let f of t){if(!A.isArray(f))throw TypeError("Object iterator must return a key-value pair");c[u=f[0]]=(d=c[u])?A.isArray(d)?[...d,f[1]]:[d,f[1]]:f[1]}s(c,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=kr(t),t){let n=A.findKey(this,t);if(n){let a=this[n];if(!r)return a;
2if(r===!0)return Ok(a);if(A.isFunction(r))return r.call(this,a,n);if(A.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=kr(t),t){let n=A.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Pi(this,this[n],n,r)))}return!1}delete(t,r){let n=this,a=!1;function o(s){if(s=kr(s),s){let c=A.findKey(n,s);c&&(!r||Pi(n,n[c],c,r))&&(delete n[c],a=!0)}}return i(o,"deleteHeader"),A.isArray(t)?t.forEach(o):o(t),a}clear(t){let r=Object.keys(this),n=r.length,a=!1;for(;n--;){let o=r[n];(!t||Pi(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){let r=this,n={};return A.forEach(this,(a,o)=>{let s=A.findKey(n,o);if(s){r[s]=yn(a),delete r[o];return}let c=t?Rk(o):String(o).trim();c!==o&&delete r[o],r[c]=yn(a),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return A.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&A.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
3`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){let r=(this[ap]=this[ap]={accessors:{}}).accessors,n=this.prototype;function a(o){let s=kr(o);r[s]||(Dk(n,o),r[s]=!0)}return i(a,"defineAccessor"),A.isArray(t)?t.forEach(a):a(t),this}};i(Lk,"AxiosHeaders");var wa=Lk;wa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(wa.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:i(()=>e,"get"),set(n){this[r]=n}}});A.freezeMethods(wa);var ft=wa;function Ni(e,t){let r=this||Td,n=t||r,a=ft.from(n.headers),o=n.data;return A.forEach(e,i(function(s){o=s.call(r,o,a.normalize(),t?t.status:void 0)},"transform")),a.normalize(),o}i(Ni,"transformData");function Ad(e){return!!(e&&e.__CANCEL__)}i(Ad,"isCancel");function kd(e,t,r){ae.call(this,e??"canceled",ae.ERR_CANCELED,t,r),this.name="CanceledError"}i(kd,"CanceledError");A.inherits(kd,ae,{__CANCEL__:!0});var Fn=kd;function _d(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ae("Request failed with status code "+r.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}i(_d,"settle");function xk(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}i(xk,"parseProtocol");function Mk(e,t){e=e||10;let r=new Array(e),n=new Array(e),a=0,o=0,s;return t=t!==void 0?t:1e3,i(function(c){let d=Date.now(),u=n[o];s||(s=d),r[a]=c,n[a]=d;let f=o,v=0;for(;f!==a;)v+=r[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),d-s<t)return;let p=u&&d-u;return p?Math.round(v*1e3/p):void 0},"push")}i(Mk,"speedometer");var eq=Mk;function Uk(e,t){let r=0,n=1e3/t,a,o,s=i((c,d=Date.now())=>{r=d,a=null,o&&(clearTimeout(o),o=null),e(...c)},"invoke");return[i((...c)=>{let d=Date.now(),u=d-r;u>=n?s(c,d):(a=c,o||(o=setTimeout(()=>{o=null,s(a)},n-u)))},"throttled"),i(()=>a&&s(a),"flush")]}i(Uk,"throttle");var tq=Uk,Hi=i((e,t,r=3)=>{let n=0,a=eq(50,250);return tq(o=>{let s=o.loaded,c=o.lengthComputable?o.total:void 0,d=s-n,u=a(d),f=s<=c;n=s;let v={loaded:s,total:c,progress:c?s/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c&&f?(c-s)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(v)},r)},"progressEventReducer"),op=i((e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},"progressEventDecorator"),sp=i(e=>(...t)=>A.asap(()=>e(...t)),"asyncDecorator"),rq=We.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,We.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(We.origin),We.navigator&&/(msie|trident)/i.test(We.navigator.userAgent)):()=>!0,nq=We.hasStandardBrowserEnv?{write(e,t,r,n,a,o){let s=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),A.isString(n)&&s.push("path="+n),A.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}i(Fk,"isAbsoluteURL");function Bk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}i(Bk,"combineURLs");function Pd(e,t,r){let n=!Fk(t);return e&&(n||r==!1)?Bk(e,t):t}i(Pd,"buildFullPath");var cp=i(e=>e instanceof ft?g({},e):e,"headersToObject");function Gt(e,t){t=t||{};let r={};function n(u,f,v,p){return A.isPlainObject(u)&&A.isPlainObject(f)?A.merge.call({caseless:p},u,f):A.isPlainObject(f)?A.merge({},f):A.isArray(f)?f.slice():f}i(n,"getMergedValue");function a(u,f,v,p){if(A.isUndefined(f)){if(!A.isUndefined(u))return n(void 0,u,v,p)}else return n(u,f,v,p)}i(a,"mergeDeepProperties");function o(u,f){if(!A.isUndefined(f))return n(void 0,f)}i(o,"valueFromConfig2");function s(u,f){if(A.isUndefined(f)){if(!A.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}i(s,"defaultToConfig2");function c(u,f,v){if(v in t)return n(u,f);if(v in e)return n(void 0,u)}i(c,"mergeDirectKeys");let d={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:i((u,f,v)=>a(cp(u),cp(f),v,!0),"headers")};return A.forEach(Object.keys(g(g({},e),t)),i(function(u){let f=d[u]||a,v=f(e[u],t[u],u);A.isUndefined(v)&&f!==c||(r[u]=v)},"computeConfigValue")),r}i(Gt,"mergeConfig");var qk=i(e=>{let t=Gt({},e),{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:c}=t;if(t.headers=s=ft.from(s),t.url=wd(Pd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),A.isFormData(r)){if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(A.isFunction(r.getHeaders)){let d=r.getHeaders(),u=["content-type","content-length"];
3Object.entries(d).forEach(([f,v])=>{u.includes(f.toLowerCase())&&s.set(f,v)})}}if(We.hasStandardBrowserEnv&&(n&&A.isFunction(n)&&(n=n(t)),n||n!==!1&&rq(t.url))){let d=a&&o&&nq.read(o);d&&s.set(a,d)}return t},"default"),iq=typeof XMLHttpRequest<"u",aq=iq&&function(e){return new Promise(i(function(t,r){let n=qk(e),a=n.data,o=ft.from(n.headers).normalize(),{responseType:s,onUploadProgress:c,onDownloadProgress:d}=n,u,f,v,p,m;function h(){p&&p(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}i(h,"done");let y=new XMLHttpRequest;y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout;function b(){if(!y)return;let N=ft.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),O={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:N,config:e,request:y};_d(i(function(P){t(P),h()},"_resolve"),i(function(P){r(P),h()},"_reject"),O),y=null}i(b,"onloadend"),"onloadend"in y?y.onloadend=b:y.onreadystatechange=i(function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},"handleLoad"),y.onabort=i(function(){y&&(r(new ae("Request aborted",ae.ECONNABORTED,e,y)),y=null)},"handleAbort"),y.onerror=i(function(N){let O=N&&N.message?N.message:"Network Error",P=new ae(O,ae.ERR_NETWORK,e,y);P.event=N||null,r(P),y=null},"handleError"),y.ontimeout=i(function(){let N=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",O=n.transitional||Ck;n.timeoutErrorMessage&&(N=n.timeoutErrorMessage),r(new ae(N,O.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,y)),y=null},"handleTimeout"),a===void 0&&o.setContentType(null),"setRequestHeader"in y&&A.forEach(o.toJSON(),i(function(N,O){y.setRequestHeader(O,N)},"setRequestHeader")),A.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),s&&s!=="json"&&(y.responseType=n.responseType),d&&([v,m]=Hi(d,!0),y.addEventListener("progress",v)),c&&y.upload&&([f,p]=Hi(c),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(u=i(N=>{y&&(r(!N||N.type?new Fn(null,e,y):N),y.abort(),y=null)},"onCanceled"),n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));let _=xk(n.url);if(_&&We.protocols.indexOf(_)===-1){r(new ae("Unsupported protocol "+_+":",ae.ERR_BAD_REQUEST,e));return}y.send(a||null)},"dispatchXhrRequest"))},oq=i((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a,o=i(function(u){if(!a){a=!0,c();let f=u instanceof Error?u:this.reason;n.abort(f instanceof ae?f:new Fn(f instanceof Error?f.message:f))}},"onabort"),s=t&&setTimeout(()=>{s=null,o(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))},t),c=i(()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)},"unsubscribe");e.forEach(u=>u.addEventListener("abort",o));let{signal:d}=n;return d.unsubscribe=()=>A.asap(c),d}},"composeSignals"),sq=oq,cq=i(function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},"streamChunk"),dq=i(function(e,t){return qa(this,null,function*(){try{for(var r=ml(lq(e)),n,a,o;n=!(a=yield new Qr(r.next())).done;n=!1){let s=a.value;yield*Va(cq(s,t))}}catch(a){o=[a]}finally{try{n&&(a=r.return)&&(yield new Qr(a.call(r)))}finally{if(o)throw o[0]}}})},"readBytes"),lq=i(function(e){return qa(this,null,function*(){if(e[Symbol.asyncIterator]){yield*Va(e);return}let t=e.getReader();try{for(;;){let{done:r,value:n}=yield new Qr(t.read());if(r)break;yield n}}finally{yield new Qr(t.cancel())}})},"readStream"),dp=i((e,t,r,n)=>{let a=dq(e,t),o=0,s,c=i(u=>{s||(s=!0,n&&n(u))},"_onFinish");return new ReadableStream({pull(u){return l(this,null,function*(){try{let{done:f,value:v}=yield a.next();if(f){c(),u.close();return}let p=v.byteLength;if(r){let m=o+=p;r(m)}u.enqueue(new Uint8Array(v))}catch(f){throw c(f),f}})},cancel(u){return c(u),a.return()}},{highWaterMark:2})},"trackStream"),lp=64*1024,{isFunction:bi}=A,uq=(({Request:e,Response:t})=>({Request:e,Response:t}))(A.global),{ReadableStream:up,TextEncoder:mp}=A.global,fp=i((e,...t)=>{try{return!!e(...t)}catch(r){return!1}},"test"),mq=i(e=>{e=A.merge.call({skipUndefined:!0},uq,e);let{fetch:t,Request:r,Response:n}=e,a=t?bi(t):typeof fetch=="function",o=bi(r),s=bi(n);if(!a)return!1;let c=a&&bi(up),d=a&&(typeof mp=="function"?(h=>y=>h.encode(y))(new mp):h=>l(null,null,function*(){return new Uint8Array(yield new r(h).arrayBuffer())})),u=o&&c&&fp(()=>{let h=!1,y=new r(We.origin,{body:new up,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!y}),f=s&&c&&fp(()=>
3A.isReadableStream(new n("").body)),v={stream:f&&(h=>h.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!v[h]&&(v[h]=(y,b)=>{let _=y&&y[h];if(_)return _.call(y);throw new ae(`Response type '${h}' is not supported`,ae.ERR_NOT_SUPPORT,b)})});let p=i(h=>l(null,null,function*(){if(h==null)return 0;if(A.isBlob(h))return h.size;if(A.isSpecCompliantForm(h))return(yield new r(We.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(A.isArrayBufferView(h)||A.isArrayBuffer(h))return h.byteLength;if(A.isURLSearchParams(h)&&(h=h+""),A.isString(h))return(yield d(h)).byteLength}),"getBodyLength"),m=i((h,y)=>l(null,null,function*(){return A.toFiniteNumber(h.getContentLength())??p(y)}),"resolveBodyLength");return h=>l(null,null,function*(){let{url:y,method:b,data:_,signal:N,cancelToken:O,timeout:P,onDownloadProgress:j,onUploadProgress:V,responseType:R,headers:D,withCredentials:L="same-origin",fetchOptions:U}=qk(h),be=t||fetch;R=R?(R+"").toLowerCase():"text";let ie=sq([N,O&&O.toAbortSignal()],P),x=null,H=ie&&ie.unsubscribe&&(()=>{ie.unsubscribe()}),ue;try{if(V&&u&&b!=="get"&&b!=="head"&&(ue=yield m(D,_))!==0){let se=new r(y,{method:"POST",body:_,duplex:"half"}),Fe;if(A.isFormData(_)&&(Fe=se.headers.get("content-type"))&&D.setContentType(Fe),se.body){let[Ve,Pe]=op(ue,Hi(sp(V)));_=dp(se.body,lp,Ve,Pe)}}A.isString(L)||(L=L?"include":"omit");let Y=o&&"credentials"in r.prototype,G=C(g({},U),{signal:ie,method:b.toUpperCase(),headers:D.normalize().toJSON(),body:_,duplex:"half",credentials:Y?L:void 0});x=o&&new r(y,G);let J=yield o?be(x,U):be(y,G),oe=f&&(R==="stream"||R==="response");if(f&&(j||oe&&H)){let se={};["status","statusText","headers"].forEach(we=>{se[we]=J[we]});let Fe=A.toFiniteNumber(J.headers.get("content-length")),[Ve,Pe]=j&&op(Fe,Hi(sp(j),!0))||[];J=new n(dp(J.body,lp,Ve,()=>{Pe&&Pe(),H&&H()}),se)}R=R||"text";let te=yield v[A.findKey(v,R)||"text"](J,h);return!oe&&H&&H(),yield new Promise((se,Fe)=>{_d(se,Fe,{data:te,headers:ft.from(J.headers),status:J.status,statusText:J.statusText,config:h,request:x})})}catch(Y){throw H&&H(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,h,x),{cause:Y.cause||Y}):ae.from(Y,Y&&Y.code,h,x)}})},"factory"),fq=new Map,Vk=i(e=>{let t=e?e.env:{},{fetch:r,Request:n,Response:a}=t,o=[n,a,r],s=o.length,c=s,d,u,f=fq;for(;c--;)d=o[c],u=f.get(d),u===void 0&&f.set(d,u=c?new Map:mq(t)),f=u;return u},"getFetch"),CY=Vk(),as={http:gk,xhr:aq,fetch:{get:Vk}};A.forEach(as,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});var pp=i(e=>`- ${e}`,"renderReason"),pq=i(e=>A.isFunction(e)||e===null||e===!1,"isResolvedHandle"),Gk={getAdapter:i((e,t)=>{e=A.isArray(e)?e:[e];let{length:r}=e,n,a,o={};for(let s=0;s<r;s++){n=e[s];let c;if(a=n,!pq(n)&&(a=as[(c=String(n)).toLowerCase()],a===void 0))throw new ae(`Unknown adapter '${c}'`);
3if(a&&(A.isFunction(a)||(a=a.get(t))))break;o[c||"#"+s]=a}if(!a){let s=Object.entries(o).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build")),c=r?s.length>1?`since :
4`+s.map(pp).join(`
5`):" "+pp(s[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return a},"getAdapter"),adapters:as};function Oi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fn(null,e)}i(Oi,"throwIfCancellationRequested");function os(e){return Oi(e),e.headers=ft.from(e.headers),e.data=Ni.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gk.getAdapter(e.adapter||Td.adapter,e)(e).then(i(function(t){return Oi(e),t.data=Ni.call(e,e.transformResponse,t),t.headers=ft.from(t.headers),t},"onAdapterResolution"),i(function(t){return Ad(t)||(Oi(e),t&&t.response&&(t.response.data=Ni.call(e,e.transformResponse,t.response),t.response.headers=ft.from(t.response.headers))),Promise.reject(t)},"onAdapterRejection"))}i(os,"dispatchRequest");var zk="1.12.2",Ca={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ca[e]=i(function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e},"validator")});var hp={};Ca.transitional=i(function(e,t,r){function n(a,o){return"[Axios v"+zk+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return i(n,"formatMessage"),(a,o,s)=>{if(e===!1)throw new ae(n(o," has been removed"+(t?" in "+t:"")),ae.ERR_DEPRECATED);return t&&!hp[o]&&(hp[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,s):!0}},"transitional");Ca.spelling=i(function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)},"spelling");function jk(e,t,r){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),a=n.length;for(;a-- >0;){let o=n[a],s=t[o];if(s){let c=e[o],d=c===void 0||s(c,o,e);if(d!==!0)throw new ae("option "+o+" must be "+d,ae.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ae("Unknown option "+o,ae.ERR_BAD_OPTION)}}i(jk,"assertOptions");var Ri={assertOptions:jk,validators:Ca},bt=Ri.validators,Kk=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ip,response:new ip}}request(t,r){return l(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let o=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6`+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Gt(this.defaults,r);let{transitional:n,paramsSerializer:a,headers:o}=r;n!==void 0&&Ri.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),a!=null&&(A.isFunction(a)?r.paramsSerializer={serialize:a}:Ri.assertOptions(a,{encode:bt.function,serialize:bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ri.assertOptions(r,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&A.merge(o.common,o[r.method]);o&&A.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),r.headers=ft.concat(s,o);let c=[],d=!0;this.interceptors.request.forEach(i(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(d=d&&h.synchronous,c.unshift(h.fulfilled,h.rejected))},"unshiftRequestInterceptors"));let u=[];this.interceptors.response.forEach(i(function(h){u.push(h.fulfilled,h.rejected)},"pushResponseInterceptors"));let f,v=0,p;if(!d){let h=[os.bind(this),void 0];for(h.unshift(...c),h.push(...u),p=h.length,f=Promise.resolve(r);v<p;)f=f.then(h[v++],h[v++]);return f}p=c.length;let m=r;
6for(;v<p;){let h=c[v++],y=c[v++];try{m=h(m)}catch(b){y.call(this,b);break}}try{f=os.call(this,m)}catch(h){return Promise.reject(h)}for(v=0,p=u.length;v<p;)f=f.then(u[v++],u[v++]);return f}getUri(t){t=Gt(this.defaults,t);let r=Pd(t.baseURL,t.url,t.allowAbsoluteUrls);return wd(r,t.params,t.paramsSerializer)}};i(Kk,"Axios");var Yi=Kk;A.forEach(["delete","get","head","options"],i(function(e){Yi.prototype[e]=function(t,r){return this.request(Gt(r||{},{method:e,url:t,data:(r||{}).data}))}},"forEachMethodNoData"));A.forEach(["post","put","patch"],i(function(e){function t(r){return i(function(n,a,o){return this.request(Gt(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))},"httpMethod")}i(t,"generateHTTPMethod"),Yi.prototype[e]=t(),Yi.prototype[e+"Form"]=t(!0)},"forEachMethodWithData"));var Di=Yi,Hk=class Yk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(i(function(a){r=a},"promiseExecutor"));let n=this;this.promise.then(a=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](a);n._listeners=null}),this.promise.then=a=>{let o,s=new Promise(c=>{n.subscribe(c),o=c}).then(a);return s.cancel=i(function(){n.unsubscribe(o)},"reject"),s},t(i(function(a,o,s){n.reason||(n.reason=new Fn(a,o,s),r(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=i(n=>{t.abort(n)},"abort");return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Yk(i(function(r){t=r},"executor")),cancel:t}}};i(Hk,"CancelToken");var hq=Hk,gq=hq;function Wk(e){return i(function(t){return e.apply(null,t)},"wrap")}i(Wk,"spread");function $k(e){return A.isObject(e)&&e.isAxiosError===!0}i($k,"isAxiosError");var ss={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
6alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ss).forEach(([e,t])=>{ss[t]=e});var yq=ss;function Nd(e){let t=new Di(e),r=yd(Di.prototype.request,t);return A.extend(r,Di.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=i(function(n){return Nd(Gt(e,n))},"create"),r}i(Nd,"createInstance");var Le=Nd(Td);Le.Axios=Di;Le.CanceledError=Fn;Le.CancelToken=gq;Le.isCancel=Ad;Le.VERSION=zk;Le.toFormData=Ea;Le.AxiosError=ae;Le.Cancel=Le.CanceledError;Le.all=i(function(e){return Promise.all(e)},"all");Le.spread=Wk;Le.isAxiosError=$k;Le.mergeConfig=Gt;Le.AxiosHeaders=ft;Le.formToJSON=e=>Pk(A.isHTMLForm(e)?new FormData(e):e);Le.getAdapter=Gk.getAdapter;Le.HttpStatusCode=yq;Le.default=Le;var Xk=Le,{Axios:TY,AxiosError:gp,CanceledError:AY,isCancel:kY,CancelToken:_Y,VERSION:PY,all:NY,Cancel:OY,isAxiosError:vq,spread:RY,toFormData:DY,AxiosHeaders:LY,HttpStatusCode:xY,formToJSON:MY,getAdapter:UY,mergeConfig:FY}=Xk;function Jk(e){return new TextEncoder().encode(e)}i(Jk,"utf8StringToBuffer");function Et(e){let t=new Uint8Array(e),r="";for(let n of t)r+=String.fromCharCode(n);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}i(Et,"bufferToBase64URLString");function Ia(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=t.padEnd(t.length+r,"="),a=atob(n),o=new ArrayBuffer(a.length),s=new Uint8Array(o);for(let c=0;c<a.length;c++)s[c]=a.charCodeAt(c);return o}i(Ia,"base64URLStringToBuffer");function Ta(){return window?.PublicKeyCredential!==void 0&&typeof window.PublicKeyCredential=="function"}i(Ta,"browserSupportsWebAuthn");function Od(e){let{id:t}=e;return C(g({},e),{id:Ia(t),transports:e.transports})}i(Od,"toPublicKeyCredentialDescriptor");function Rd(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}i(Rd,"isValidDomain");var Zk=class extends Error{constructor({message:t,code:r,cause:n,name:a}){super(t,{cause:n}),this.name=a??n.name,this.code=r}};i(Zk,"WebAuthnError");var He=Zk;function Qk({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new He({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(r.authenticatorSelection?.requireResidentKey===!0)return new He({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(r.authenticatorSelection?.userVerification==="required")return new He({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new He({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new He({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return r.pubKeyCredParams.filter(n=>n.type==="public-key").length===0?new He({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new He({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){let n=window.location.hostname;if(Rd(n)){if(r.rp.id!==n)return new He({message:`The RP ID "${r.rp.id}
6" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new He({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new He({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new He({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}i(Qk,"identifyRegistrationError");var e_=class{createNewAbortSignal(){if(this.controller){let r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}let t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){let t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}};i(e_,"BaseWebAuthnAbortService");var bq=e_,t_=new bq,Sq=["cross-platform","platform"];function Dd(e){if(e&&!(Sq.indexOf(e)<0))return e}i(Dd,"toAuthenticatorAttachment");function r_(e){return l(this,null,function*(){if(!Ta())throw new Error("WebAuthn is not supported in this browser");let t={publicKey:C(g({},e),{challenge:Ia(e.challenge),user:C(g({},e.user),{id:Jk(e.user.id)}),excludeCredentials:e.excludeCredentials?.map(Od)})};t.signal=t_.createNewAbortSignal();let r;try{r=yield navigator.credentials.create(t)}catch(v){throw Qk({error:v,options:t})}if(!r)throw new Error("Registration was not completed");let{id:n,rawId:a,response:o,type:s}=r,c;typeof o.getTransports=="function"&&(c=o.getTransports());let d;if(typeof o.getPublicKeyAlgorithm=="function")try{d=o.getPublicKeyAlgorithm()}catch(v){Li("getPublicKeyAlgorithm()",v)}let u;if(typeof o.getPublicKey=="function")try{let v=o.getPublicKey();v!==null&&(u=Et(v))}catch(v){Li("getPublicKey()",v)}let f;if(typeof o.getAuthenticatorData=="function")try{f=Et(o.getAuthenticatorData())}catch(v){Li("getAuthenticatorData()",v)}return{id:n,rawId:Et(a),response:{attestationObject:Et(o.attestationObject),clientDataJSON:Et(o.clientDataJSON),transports:c,publicKeyAlgorithm:d,publicKey:u,authenticatorData:f},type:s,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:Dd(r.authenticatorAttachment)}})}i(r_,"startRegistration");function Li(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
7`,t)}i(Li,"warnOnBrokenImplementation");function n_(e){return new TextDecoder("utf-8").decode(e)}i(n_,"bufferToUTF8String");function i_(){let e=window.PublicKeyCredential;return e.isConditionalMediationAvailable===void 0?new Promise(t=>t(!1)):e.isConditionalMediationAvailable()}i(i_,"browserSupportsWebAuthnAutofill");function a_({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new He({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new He({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){let n=window.location.hostname;if(Rd(n)){if(r.rpId!==n)return new He({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new He({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new He({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}i(a_,"identifyAuthenticationError");function o_(e,t=!1){return l(this,null,function*(){if(!Ta())throw new Error("WebAuthn is not supported in this browser");let r;e.allowCredentials?.length!==0&&(r=e.allowCredentials?.map(Od));let n=C(g({},e),{challenge:Ia(e.challenge),allowCredentials:r}),a={};if(t){if(!(yield i_()))throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');a.mediation="conditional",n.allowCredentials=[]}a.publicKey=n,a.signal=t_.createNewAbortSignal();let o;try{o=yield navigator.credentials.get(a)}catch(v){throw a_({error:v,options:a})}if(!o)throw new Error("Authentication was not completed");let{id:s,rawId:c,response:d,type:u}=o,f;return d.userHandle&&(f=n_(d.userHandle)),{id:s,rawId:Et(c),response:{authenticatorData:Et(d.authenticatorData),clientDataJSON:Et(d.clientDataJSON),signature:Et(d.signature),userHandle:f},type:u,clientExtensionResults:o.getClientExtensionResults(),authenticatorAttachment:Dd(o.authenticatorAttachment)}})}i(o_,"startAuthentication");function s_(){return Ta()?PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable():new Promise(e=>e(!1))}i(s_,"platformAuthenticatorIsAvailable");var Si,Eq=new Uint8Array(16);
7function c_(){if(!Si&&(Si=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Si))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Si(Eq)}i(c_,"rng");var wq=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function d_(e){return typeof e=="string"&&wq.test(e)}i(d_,"validate");var Cq=d_,qe=[];for(Ei=0;Ei<256;++Ei)qe.push((Ei+256).toString(16).substr(1));var Ei;function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(qe[e[t+0]]+qe[e[t+1]]+qe[e[t+2]]+qe[e[t+3]]+"-"+qe[e[t+4]]+qe[e[t+5]]+"-"+qe[e[t+6]]+qe[e[t+7]]+"-"+qe[e[t+8]]+qe[e[t+9]]+"-"+qe[e[t+10]]+qe[e[t+11]]+qe[e[t+12]]+qe[e[t+13]]+qe[e[t+14]]+qe[e[t+15]]).toLowerCase();if(!Cq(r))throw TypeError("Stringified UUID is invalid");return r}i(l_,"stringify");var Iq=l_;function u_(e,t,r){e=e||{};var n=e.random||(e.rng||c_)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=n[a];return t}return Iq(n)}i(u_,"v4");var Tq=u_,pt=Uint8Array,dt=Uint16Array,Ld=Int32Array,xd=new pt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Md=new pt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),yp=new pt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),m_=i(function(e,t){for(var r=new dt(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var a=new Ld(r[30]),n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)a[o]=o-r[n]<<5|n;return{b:r,r:a}},"freb"),f_=m_(xd,2),Aq=f_.b,cs=f_.r;Aq[28]=258,cs[258]=28;var p_=m_(Md,0),VY=p_.b,vp=p_.r,ds=new dt(32768);for(fe=0;fe<32768;++fe)Ot=(fe&43690)>>1|(fe&21845)<<1,Ot=(Ot&52428)>>2|(Ot&13107)<<2,Ot=(Ot&61680)>>4|(Ot&3855)<<4,ds[fe]=((Ot&65280)>>8|(Ot&255)<<8)>>1;var Ot,fe,vn=i(function(e,t,r){for(var n=e.length,a=0,o=new dt(t);a<n;++a)e[a]&&++o[e[a]-1];var s=new dt(t);for(a=1;a<t;++a)s[a]=s[a-1]+o[a-1]<<1;var c;if(r){c=new dt(1<<t);var d=15-t;for(a=0;a<n;++a)if(e[a])for(var u=a<<4|e[a],f=t-e[a],v=s[e[a]-1]++<<f,p=v|(1<<f)-1;v<=p;++v)c[ds[v]>>d]=u}else for(c=new dt(n),a=0;a<n;++a)e[a]&&(c[a]=ds[s[e[a]-1]++]>>15-e[a]);return c},"hMap"),rr=new pt(288);for(fe=0;fe<144;++fe)rr[fe]=8;var fe;for(fe=144;fe<256;++fe)rr[fe]=9;var fe;for(fe=256;fe<280;++fe)rr[fe]=7;var fe;for(fe=280;fe<288;++fe)rr[fe]=8;var fe,Wi=new pt(32);for(fe=0;fe<32;++fe)Wi[fe]=5;var fe,kq=vn(rr,9,0),_q=vn(Wi,5,0),h_=i(function(e){return(e+7)/8|0},"shft"),Pq=i(function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new pt(e.subarray(t,r))},"slc"),Rt=i(function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},"wbits"),cn=i(function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},"wbits16"),so=i(function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var a=r.length,o=r.slice();if(!a)return{t:y_,l:0};if(a==1){var s=new pt(r[0].s+1);return s[r[0].s]=1,{t:s,l:1}}r.sort(function(j,V){return j.f-V.f}),r.push({s:-1,f:25001});var c=r[0],d=r[1],u=0,f=1,v=2;for(r[0]={s:-1,f:c.f+d.f,l:c,r:d};f!=a-1;)c=r[r[u].f<r[v].f?u++:v++],d=r[u!=f&&r[u].f<r[v].f?u++:v++],r[f++]={s:-1,f:c.f+d.f,l:c,r:d};for(var p=o[0].s,n=1;n<a;++n)o[n].s>p&&(p=o[n].s);var m=new dt(p+1),h=ls(r[f-1],m,0);if(h>t){var n=0,y=0,b=h-t,_=1<<b;for(o.sort(function(V,R){return m[R.s]-m[V.s]||V.f-R.f});n<a;++n){var N=o[n].s;if(m[N]>t)y+=_-(1<<h-m[N]),m[N]=t;else break}for(y>>=b;y>0;){var O=o[n].s;m[O]<t?y-=1<<t-m[O]++-1:++n}for(;n>=0&&y;--n){var P=o[n].s;m[P]==t&&(--m[P],++y)}h=t}return{t:new pt(m),l:h}},"hTree"),ls=i(function(e,t,r){return e.s==-1?Math.max(ls(e.l,t,r+1),ls(e.r,t,r+1)):t[e.s]=r},"ln"),bp=i(function(e){for(var t=e.length;t&&!e[--t];);for(var r=new dt(++t),n=0,a=e[0],o=1,s=i(function(d){r[n++]=d},"w"),c=1;c<=t;++c)if(e[c]==a&&c!=t)++o;else{if(!a&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(a),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(a);o=1,a=e[c]}return{c:r.subarray(0,n),n:t}},"lc"),dn=i(function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},"clen"),g_=i(function(e,t,r){var n=r.length,a=h_(t+2);e[a]=n&255,e[a+1]=n>>8,e[a+2]=e[a]^255,e[a+3]=e[a+1]^255;for(var o=0;o<n;++o)e[a+o+4]=r[o];return(a+4+n)*8},"wfblk"),Sp=i(function(e,t,r,n,a,o,s,c,d,u,f){Rt(t,f++,r),++a[256];for(var v=so(a,15),p=v.t,m=v.l,h=so(o,15),y=h.t,b=h.l,_=bp(p),N=_.c,O=_.n,P=bp(y),j=P.c,V=P.n,R=new dt(19),D=0;D<N.length;++D)++R[N[D]&31];for(var D=0;D<j.length;++D)++R[j[D]&31];for(var L=so(R,7),U=L.t,be=L.l,ie=19;ie>4&&!U[yp[ie-1]];--ie);var x=u+5<<3,H=dn(a,rr)+dn(o,Wi)+s,ue=dn(a,p)+dn(o,y)+s+14+3*ie+dn(R,U)+2*R[16]+3*R[17]+7*R[18];if(d>=0&&x<=H&&x<=ue)return g_(t,f,e.subarray(d,d+u));var Y,G,J,oe;if(Rt(t,f,1+(ue<H)),f+=2,ue<H){Y=vn(p,m,0),G=p,J=vn(y,b,0),oe=y;var te=vn(U,be,0);Rt(t,f,O-257),Rt(t,f+5,V-1),Rt(t,f+10,ie-4),f+=14;for(var D=0;D<ie;++D)Rt(t,f+3*D,U[yp[D]]);f+=3*ie;for(var se=[N,j],Fe=0;Fe<2;++Fe)for(var Ve=se[Fe],D=0;D<Ve.length;++D){var Pe=Ve[D]&31;Rt(t,f,te[Pe]),f+=U[Pe],Pe>15&&(Rt(t,f,Ve[D]>>5&127),f+=Ve[D]>>12)}}else Y=kq,G=rr,J=_q,oe=Wi;for(var D=0;D<c;++D){var we=n[D];if(we>255){var Pe=we>>18&31;cn(t,f,Y[Pe+257]),f+=G[Pe+257],Pe>
77&&(Rt(t,f,we>>23&31),f+=xd[Pe]);var Xe=we&31;cn(t,f,J[Xe]),f+=oe[Xe],Xe>3&&(cn(t,f,we>>5&8191),f+=Md[Xe])}else cn(t,f,Y[we]),f+=G[we]}return cn(t,f,Y[256]),f+G[256]},"wblk"),Nq=new Ld([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),y_=new pt(0),Oq=i(function(e,t,r,n,a,o){var s=o.z||e.length,c=new pt(n+s+5*(1+Math.ceil(s/7e3))+a),d=c.subarray(n,c.length-a),u=o.l,f=(o.r||0)&7;if(t){f&&(d[0]=o.r>>3);for(var v=Nq[t-1],p=v>>13,m=v&8191,h=(1<<r)-1,y=o.p||new dt(32768),b=o.h||new dt(h+1),_=Math.ceil(r/3),N=2*_,O=i(function(re){return(e[re]^e[re+1]<<_^e[re+2]<<N)&h},"hsh"),P=new Ld(25e3),j=new dt(288),V=new dt(32),R=0,D=0,L=o.i||0,U=0,be=o.w||0,ie=0;L+2<s;++L){var x=O(L),H=L&32767,ue=b[x];if(y[H]=ue,b[x]=H,be<=L){var Y=s-L;if((R>7e3||U>24576)&&(Y>423||!u)){f=Sp(e,d,0,P,j,V,D,U,ie,L-ie,f),U=R=D=0,ie=L;for(var G=0;G<286;++G)j[G]=0;for(var G=0;G<30;++G)V[G]=0}var J=2,oe=0,te=m,se=H-ue&32767;if(Y>2&&x==O(L-se))for(var Fe=Math.min(p,Y)-1,Ve=Math.min(32767,L),Pe=Math.min(258,Y);se<=Ve&&--te&&H!=ue;){if(e[L+J]==e[L+J-se]){for(var we=0;we<Pe&&e[L+we]==e[L+we-se];++we);if(we>J){if(J=we,oe=se,we>Fe)break;for(var Xe=Math.min(se,we-2),Tt=0,G=0;G<Xe;++G){var at=L-se+G&32767,Xt=y[at],k=at-Xt&32767;k>Tt&&(Tt=k,ue=at)}}}H=ue,ue=y[H],se+=H-ue&32767}if(oe){P[U++]=268435456|cs[J]<<18|vp[oe];var T=cs[J]&31,Z=vp[oe]&31;D+=xd[T]+Md[Z],++j[257+T],++V[Z],be=L+J,++R}else P[U++]=e[L],++j[e[L]]}}for(L=Math.max(L,be);L<s;++L)P[U++]=e[L],++j[e[L]];f=Sp(e,d,u,P,j,V,D,U,ie,L-ie,f),u||(o.r=f&7|d[f/8|0]<<3,f-=7,o.h=b,o.p=y,o.i=L,o.w=be)}else{for(var L=o.w||0;L<s+u;L+=65535){var F=L+65535;F>=s&&(d[f/8|0]=u,F=s),f=g_(d,f+1,e.subarray(L,F))}o.i=s}return Pq(c,0,n+h_(f)+a)},"dflt"),Rq=(function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(r&1&&-306674912)^r>>>1;e[t]=r}return e})(),Dq=i(function(){var e=-1;return{p:i(function(t){for(var r=e,n=0;n<t.length;++n)r=Rq[r&255^t[n]]^r>>>8;e=r},"p"),d:i(function(){return~e},"d")}},"crc"),Lq=i(function(e,t,r,n,a){if(!a&&(a={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),s=new pt(o.length+e.length);s.set(o),s.set(e,o.length),e=s,a.w=o.length}return Oq(e,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,a)},"dopt"),us=i(function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},"wbytes"),xq=i(function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&us(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}},"gzh"),Mq=i(function(e){return 10+(e.filename?e.filename.length+1:0)},"gzhl");function v_(e,t){t||(t={});var r=Dq(),n=e.length;r.p(e);var a=Lq(e,t,Mq(t),8),o=a.length;return xq(a,t),us(a,o-8,r.d()),us(a,o-4,n),a}i(v_,"gzipSync");var Uq=typeof TextDecoder<"u"&&new TextDecoder,Fq=0;try{Uq.decode(y_,{stream:!0}),Fq=1}catch(e){}var Bq=Ct(Z1(),1);function ms(e,t,r,n,a,o,s){try{var c=e[o](s),d=c.value}catch(u){r(u);return}c.done?t(d):Promise.resolve(d).then(n,a)}i(ms,"asyncGeneratorStep");function Ud(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function s(d){ms(o,n,a,s,c,"next",d)}i(s,"_next");function c(d){ms(o,n,a,s,c,"throw",d)}i(c,"_throw"),s(void 0)})}}i(Ud,"_asyncToGenerator");function fs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}i(fs,"ownKeys");function xi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fs(Object(r),!0).forEach(function(n){b_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}i(xi,"_objectSpread");function b_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(b_,"_defineProperty");var S_="axios-retry";function Aa(e){var t=["ERR_CANCELED","ECONNABORTED"];return!e.response&&!!e.code&&!t.includes(e.code)&&(0,Bq.default)(e)}i(Aa,"isNetworkError");var E_=["get","head","options"],qq=E_.concat(["put","delete"]);function ka(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status>=500&&e.response.status<=599)}i(ka,"isRetryableError");function w_(e){return e.config?ka(e)&&E_.indexOf(e.config.method)!==-1:!1}i(w_,"isSafeRequestError");function Bn(e){return e.config?ka(e)&&qq.indexOf(e.config.method)!==-1:!1}i(Bn,"isIdempotentRequestError");function Fd(e){return Aa(e)||Bn(e)}i(Fd,"isNetworkOrIdempotentRequestError");function C_(){return 0}i(C_,"noDelay");function _a(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,n=Math.pow(2,e)*r,a=n*.2*Math.random();return n+a}i(_a,"exponentialDelay");var Vq={retries:3,retryCondition:Fd,retryDelay:C_,shouldResetTimeout:!1,onRetry:i(()=>{},"onRetry")};function I_(e,t){return xi(xi(xi({},Vq),t),e[S_])}i(I_,"getRequestOptions");function ps(e,t){var r=I_(e,t);return r.retryCount=r.retryCount||0,e[S_]=r,r}i(ps,"getCurrentState");function T_(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}i(T_,"fixConfig");function A_(e,t){return $i.apply(this,arguments)}i(A_,"shouldRetry");function $i(){return $i=Ud(function*(e,t){var{retries:r,retryCondition:n}=e,a=e.retryCount<r&&n(t);if(typeof a=="object")try{var o=yield a;return o!==!1}catch(s){return!1}return a}),$i.apply(this,arguments)}i($i,"_shouldRetry");function Kt(e,t){var r=e.interceptors.request.use(a=>{var o=ps(a,t);
7return o.lastRequestTime=Date.now(),a}),n=e.interceptors.response.use(null,(function(){var a=Ud(function*(o){var{config:s}=o;if(!s)return Promise.reject(o);var c=ps(s,t);if(yield A_(c,o)){c.retryCount+=1;var{retryDelay:d,shouldResetTimeout:u,onRetry:f}=c,v=d(c.retryCount,o);if(T_(e,s),!u&&s.timeout&&c.lastRequestTime){var p=Date.now()-c.lastRequestTime,m=s.timeout-p-v;if(m<=0)return Promise.reject(o);s.timeout=m}return s.transformRequest=[h=>h],yield f(c.retryCount,o,s),new Promise(h=>setTimeout(()=>h(e(s)),v))}return Promise.reject(o)});return function(o){return a.apply(this,arguments)}})());return{requestInterceptorId:r,responseInterceptorId:n}}i(Kt,"axiosRetry");Kt.isNetworkError=Aa;Kt.isSafeRequestError=w_;Kt.isIdempotentRequestError=Bn;Kt.isNetworkOrIdempotentRequestError=Fd;Kt.exponentialDelay=_a;Kt.isRetryableError=ka;var Ep=Ct(Q1(),1),co,Gq=(co=class{constructor({cookieStorage:e,getLogger:t}){w(this,"inMemoryStorage",new Map),w(this,"cookieStorage"),w(this,"defaultValueSelector",i((r,n)=>r??n,"defaultValueSelector")),w(this,"getLogger"),this.cookieStorage=e,this.getLogger=()=>t()}getFromCookie(e){let t=this.cookieStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(r){return this.getLogger().error("error parsing",e,{storedValue:t,error:r}),null}}getFromMemory(e){return this.inMemoryStorage.has(e)?this.inMemoryStorage.get(e):null}synchronizeValues(e,t,r){if(t==null){this.inMemoryStorage.delete(e),this.cookieStorage.removeItem(e);return}this.inMemoryStorage.set(e,t),this.cookieStorage.setItem(e,JSON.stringify(t),r)}getItem(e,t){let{shouldSync:r,selectValue:n=this.defaultValueSelector}=t,a=this.getFromMemory(e),o=this.getFromCookie(e),s=n(a,o);return r(a,o)&&(this.synchronizeValues(e,s,t.getSetOptions(s)),this.getLogger().info(`[ReconciledCookieStorage] synchronized values for "${e}"`)),s}setItem(e,t,r){this.synchronizeValues(e,t,r)}removeItem(e){this.inMemoryStorage.delete(e),this.cookieStorage.removeItem(e)}},i(co,"ae"),co),Ft,Xr=(Ft=class{static getInstance(){return Ft.instance===null&&(Ft.instance=new Ft),Ft.instance}constructor(){}now(){return new Date}},i(Ft,"e"),w(Ft,"instance",null),Ft),k_=new Map;function S(e,t){return k_.set(e,t),t}i(S,"b");function nt(e){let t=k_.get(e);if(!t)throw Error(`No provider found for key: ${e}`);return t}i(nt,"x");var __=new Map;function P_(e,t){return __.set(e,t),t}i(P_,"ce");function lt(e){let t=__.get(e);if(!t)throw Error(`No internal provider found for key: ${e}`);return t}i(lt,"S");var wp=1e3*60*60*24*365,Se,N_=(Se=class{constructor({cookieStorage:e,clientSyncStorage:t,getLogger:r,getObservabilityObj:n}){w(this,"value"),w(this,"cookieStorage"),w(this,"clientSyncStorage"),w(this,"getLogger"),w(this,"getObservabilityObj"),w(this,"storageKey","LOGICAL_CLOCK"),w(this,"watermarkStorageKey","LOGICAL_CLOCK_WATERMARK"),this.cookieStorage=e,this.clientSyncStorage=t,this.getLogger=()=>r(),this.getObservabilityObj=n??(()=>{}),this.value=this.initializeValue()}static fromString(e){let t=JSON.parse(e);if(!Array.isArray(t))throw Error("value is not an array");if(t.length<2)throw Error("value has less than 2 elements");let r=Number(t[0]),n=Number(t[1]);if(Number.isNaN(r)||Number.isNaN(n))throw Error("epoch and/or counter are not a number");return{epoch:r,counter:n}}static toString(e){return typeof e=="object"?`[${e.epoch},${e.counter}]`:"[]"}captureMessage(e,t){this.getObservabilityObj()?.captureMessage?.(e,{extra:{logicalClock:t}})}initializeValue(){let e=this.load(),t=this.loadWatermark(),r=this.cookieStorage.getItem(this.storageKey)!==void 0,n=t!==null;t&&this.isGreater(t,e)&&this.captureMessage("ClientSDK: logical clock recovered from watermark",{cookieValue:Se.toString(e),watermarkValue:Se.toString(t),delta:t.counter-e.counter});let a=this.getGreater(e,t??Se.INITIAL_VALUE);return this.save(a),this.saveWatermark(a),n||this.captureMessage("ClientSDK: logical clock initialized from stale floor",{cookieValue:Se.toString(e),cookiePresent:r,watermarkPresent:!1}),this.captureMessage("ClientSDK: logical clock initialized",{cookieValue:Se.toString(e),watermarkValue:t?Se.toString(t):null,initialValue:Se.toString(a),cookiePresent:r,watermarkPresent:n}),a}getExpirationDate(){try{let e=nt("time.systemTime");return new Date(e.now().getTime()+wp)}catch(e){return new Date(Xr.getInstance().now().getTime()+wp)}}load(){let e=this.cookieStorage.getItem(this.storageKey);if(!e)return Se.INITIAL_VALUE;try{return Se.fromString(e)}catch(t){return this.getLogger().error("error parsing stored clock value",{storedValue:e,error:t}),Se.INITIAL_VALUE}}save(e){let t=this.load();if(this.isGreater(t,e)){this.captureMessage("ClientSDK: logical clock write skipped",{current:Se.toString(t),next:Se.toString(e),delta:t.counter-e.counter});return}this.cookieStorage.setItem(this.storageKey,Se.toString(e),{expires:this.getExpirationDate()})}loadWatermark(){let e=null;try{e=this.clientSyncStorage.getItem(this.watermarkStorageKey)}catch(t){return this.getLogger().error("error reading logical clock watermark",{error:t}),null}if(!e)return null;try{return Se.fromString(e)}catch(t){return this.getLogger().error("error parsing stored watermark value",{storedValue:e,error:t}),null}}saveWatermark(e){let t=this.loadWatermark();if(t!==null&&this.isGreater(t,e)){this.captureMessage("ClientSDK: logical clock watermark write skipped",{currentWatermark:Se.toString(t),next:Se.toString(e),delta:t.counter-e.counter});return}try{this.clientSyncStorage.setItem(this.watermarkStorageKey,Se.toString(e))}catch(r){let n=r instanceof Error?r:Error(String(r)),a=Error(`ClientSDK: logical clock watermark write failed. ${n.message}`);a.name=n.name,a.stack=n.stack,this.getObservabilityObj()?.exceptionHandler?.(a)}}computeNext(e){let t=g({},e);return t.counter>=Se.MAX_VALUE?(t.counter=0,t.epoch++):t.counter++,t.epoch>=Se.MAX_VALUE&&(t.epoch=0),t}isGreater(e,t){return e.epoch<t.epoch?!1:e.epoch>t.epoch?!0:e.counter>t.counter}getGreater(e,t){return this.isGreater(t,e)?t:e}getCurrentBaseValue(){let e=this.load(),t=this.loadWatermark()??Se.INITIAL_VALUE;return this.getGreater(this.getGreater(this.value,e),t)}increment(){let e=this.getCurrentBaseValue(),t=this.computeNext(e),r=this.getCurrentBaseValue();if(!this.isGreater(t,r)){let n=t;t=this.computeNext(r),this.captureMessage("ClientSDK: logical clock equality re-read forced recompute",{computedNext:Se.toString(n),latestBaseValue:Se.toString(r),recomputedNext:Se.toString(t)})}return this.value=t,this.save(t),this.saveWatermark(t),g({},t)}},i(Se,"e"),w(Se,"MAX_VALUE",2**53-1),w(Se,"INITIAL_VALUE",{counter:-1,epoch:0}),Se);function O_(){if(typeof globalThis.performance=="object"&&"now"in globalThis.performance)return globalThis.performance;throw Error("Performance API is not available")}i(O_,"de");var lo,zq=(lo=class{constructor({logger:e,observabilityObj:t}
7){w(this,"performance",null),w(this,"systemClock",Xr.getInstance());try{this.performance=O_(),e.info("[MonotonicClock] Performance API available")}catch(r){e.error(r),t?.captureMessage?.("ClientSDK: Performance API is not available",{extra:{error:r}})}}now(){return this.performance?this.performance.now():this.systemClock.now().getTime()}},i(lo,"fe"),lo),uo,jq=(uo=class{constructor({cookieStorage:e,observability:t,storeLogger:r,clientSyncStorage:n}){w(this,"clock",Xr.getInstance()),w(this,"monotonicClock",null),w(this,"sdkLogicalClock"),w(this,"observability"),w(this,"storeLogger"),this.observability=t,this.storeLogger=r,this.sdkLogicalClock=new N_({cookieStorage:e,clientSyncStorage:n,getLogger:i(()=>this.storeLogger.getLogger(),"getLogger"),getObservabilityObj:i(()=>this.observability.getObservabilityObj(),"getObservabilityObj")})}getClock(){return this.clock}getMonotonicClock(){return this.monotonicClock===null&&(this.monotonicClock=new zq({logger:this.storeLogger.getLogger(),observabilityObj:this.observability.getObservabilityObj()})),this.monotonicClock}incrementLogicalClock(){return this.sdkLogicalClock.increment()}setClock(e){this.clock=e}},i(uo,"pe"),uo);function Pr(e){try{return new Date(e).toISOString()}catch(t){return`Invalid Date: ${e}`}}i(Pr,"C");function wt(e){if(!e)return;let t=new Date(e);if(!Number.isNaN(t.getTime()))return t}i(wt,"w");function Bd(e,t,r){let n=wt(e?r(e):void 0),a=wt(t?r(t):void 0);return!n&&!a?e??t:n&&(!a||n.getTime()>=a.getTime())?e:t}i(Bd,"me");var mo,Kq=(mo=class{constructor({clientStorage:e,observability:t,storeLogger:r,reconciledCookieStorage:n}){w(this,"deviceGrantKey","DEVICE_GRANT"),w(this,"deviceGrantValueSelector",i((a,o)=>Bd(a,o,s=>s?.grantExpiresAt),"deviceGrantValueSelector")),w(this,"shouldSyncDeviceGrant",i((a,o)=>o?.refreshGrantExpiresAt!==a?.refreshGrantExpiresAt,"shouldSyncDeviceGrant")),w(this,"clientStorage"),w(this,"observability"),w(this,"storeLogger"),w(this,"reconciledCookieStorage"),this.clientStorage=e,this.observability=t,this.storeLogger=r,this.reconciledCookieStorage=n}getAndMigrateDeviceGrantStorage(){return l(this,null,function*(){let e=this.getDeviceGrant();if(e)return yield this.clientStorage.removeItem(this.deviceGrantKey),this.storeLogger.getLogger().info("Device grant found on cookie. Skipping migration."),e;let t=yield this.clientStorage.getItem(this.deviceGrantKey);if(!t){this.storeLogger.getLogger().info("no device grant on client storage");return}return this.observability.getObservabilityObj()?.captureMessage?.("ClientSDK: Migrating device grant storage",{extra:{deviceGrantFromClientStorage:t,deviceGrantFromCookie:e}}),yield this.clientStorage.removeItem(this.deviceGrantKey),this.setDeviceGrant(t),this.storeLogger.getLogger().info("device grant migrated from client storage to cookies."),t})}getDeviceGrant(){let e=this.reconciledCookieStorage.getItem(this.deviceGrantKey,{getSetOptions:i(t=>({expires:wt(t?.grantExpiresAt)}),"getSetOptions"),selectValue:this.deviceGrantValueSelector,shouldSync:this.shouldSyncDeviceGrant});if(!e){this.storeLogger.getLogger().info("[deviceGrant] no stored device grant");return}return e}removeDeviceGrant(){this.reconciledCookieStorage.removeItem(this.deviceGrantKey),this.storeLogger.getLogger().info("[deviceGrant] remove device grant")}setDeviceGrant(e){this.reconciledCookieStorage.setItem(this.deviceGrantKey,e,{expires:wt(e.grantExpiresAt)}),this.storeLogger.getLogger().info("[deviceGrant] set device grant")}},i(mo,"he"),mo),fo,Hq=(fo=class{constructor({logger:e=console}={}){w(this,"logger"),this.logger=e}getLogger(){return this.logger}setLogger(e){this.logger=e}},i(fo,"ge"),fo),po,Yq=(po=class{constructor({observabilityObj:e}={}){w(this,"observabilityObj"),this.observabilityObj=e}getObservabilityObj(){return this.observabilityObj}setObservabilityObj(e){this.observabilityObj=e}},i(po,"_e"),po),ho,Wq=(ho=class{constructor({storeLogger:e,reconciledCookieStorage:t}){w(this,"authTokenKey","AUTH_TOKEN"),w(this,"shouldSyncUserInfo",i((r,n)=>r?.session?.refreshTokenExpiresAt!==n?.session?.refreshTokenExpiresAt,"shouldSyncUserInfo")),w(this,"userInfoValueSelector",i((r,n)=>Bd(r,n,a=>a?.session?.refreshTokenExpiresAt),"userInfoValueSelector")),w(this,"storeLogger"),w(this,"reconciledCookieStorage"),this.storeLogger=e,this.reconciledCookieStorage=t}clearUserInfo(){this.reconciledCookieStorage.removeItem(this.authTokenKey),this.storeLogger.getLogger().info("user info cleared")}getRefreshToken(){return this.getUserInfo().session?.refreshToken||null}getUserInfo(){return this.reconciledCookieStorage.getItem(this.authTokenKey,{getSetOptions:i(e=>({expires:wt(e?.session?.refreshTokenExpiresAt)}),"getSetOptions"),selectValue:this.userInfoValueSelector,shouldSync:this.shouldSyncUserInfo})||{}}replaceUserInfo(e){this.reconciledCookieStorage.setItem(this.authTokenKey,e,{expires:wt(e?.session?.refreshTokenExpiresAt)}),this.storeLogger.getLogger().info("user info replaced")}setRefreshToken(e){let t=this.getUserInfo();t.session&&(t.session.refreshToken=e??void 0,this.setUserInfo(t.identityGrant,t.session,t.handle))}setUserInfo(e,t,r){let n=this.getUserInfo();r&&(n.handle=r),e&&(n.identityGrant=e),t&&(n.session=t),this.reconciledCookieStorage.setItem(this.authTokenKey,n,{expires:wt(n?.session?.refreshTokenExpiresAt)}),this.storeLogger.getLogger().info("user info saved")}},i(ho,"ve"),ho);function R_({clientStorage:e,cookieStorage:t,logger:r,observabilityObj:n,webAuthnProvider:a,clientSyncStorage:o}){let s=new Hq({logger:r}),c=new Yq({observabilityObj:n}),d=new Gq({cookieStorage:t,getLogger:i(()=>
7s.getLogger(),"getLogger")});return{clientStorage:e,clock:new jq({cookieStorage:t,observability:c,storeLogger:s,clientSyncStorage:o}),deviceGrant:new Kq({clientStorage:e,observability:c,reconciledCookieStorage:d,storeLogger:s}),logger:s,observability:c,session:new Wq({storeLogger:s,reconciledCookieStorage:d}),webAuthnProvider:a}}i(R_,"ye");function D_({clientStorage:e,cookieStorage:t,initialConfig:r,logger:n,observabilityObj:a,webAuthnProvider:o,clientSyncStorage:s}){return{state:{initialConfig:r},services:R_({clientStorage:e,cookieStorage:t,logger:n,observabilityObj:a,webAuthnProvider:o,clientSyncStorage:s})}}i(D_,"be");function qd(e,t){let r=gd(e);return t(r),r}i(qd,"xe");var Cp=i(e=>e?!!e.extras?.isTest:!1,"Se"),$q=i((e,t)=>e?t==="content"&&!!e.domains[t]?.extras?.isPreview:!1,"Ce"),Xq=i(e=>{let t={config:e.state.initialConfig,fetchConfigOptions:null},r={getConfig:i(()=>t.config,"getConfig"),getDomainConfig:i(n=>r.getConfig()?.domains[n],"getDomainConfig"),getFetchConfigOptions:i(()=>t.fetchConfigOptions,"getFetchConfigOptions"),getIsPreview:i(n=>$q(r.getConfig(),n),"getIsPreview"),getIsTest:i(()=>Cp(r.getConfig()),"getIsTest"),patchConfig:i(n=>{let a=r.getConfig();if(!a)return()=>{};let o=gd(a);return t.config=qd(a,n),()=>{t.config=o}},"patchConfig"),setConfig:i(n=>{r.getConfig()&&r.getIsTest()!==Cp(n)&&(e.services.session.clearUserInfo(),nt("user.anonymousLogin")()),t.config=n},"setConfig"),setFetchConfigOptions:i(n=>{t.fetchConfigOptions=n},"setFetchConfigOptions")};return r},"we"),Jq=i(e=>{let t={deviceMetadata:null,locationCoordinates:void 0,vehicleProfileGrant:null};return{getAndMigrateDeviceGrantStorage:i(()=>l(null,null,function*(){return e.services.deviceGrant.getAndMigrateDeviceGrantStorage()}),"getAndMigrateDeviceGrantStorage"),getAppId:i(()=>{let r=t.deviceMetadata;return r?r.appId:"unknown"},"getAppId"),getDeviceGrant:i(()=>e.services.deviceGrant.getDeviceGrant(),"getDeviceGrant"),getDeviceMetadata:i(()=>t.deviceMetadata,"getDeviceMetadata"),getLocationCoordinates:i(()=>t.locationCoordinates,"getLocationCoordinates"),getVehicleProfileGrant:i(()=>t.vehicleProfileGrant,"getVehicleProfileGrant"),removeDeviceGrant:i(()=>{e.services.deviceGrant.removeDeviceGrant()},"removeDeviceGrant"),setDeviceGrant:i(r=>{e.services.deviceGrant.setDeviceGrant(r)},"setDeviceGrant"),setDeviceMetadata:i(r=>{t.deviceMetadata=r},"setDeviceMetadata"),setLocationCoordinates:i(r=>{t.locationCoordinates=r},"setLocationCoordinates"),setVehicleProfileGrant:i(r=>{t.vehicleProfileGrant=r},"setVehicleProfileGrant")}},"Te"),$e=(function(e){return e.SESSION_STATE="SESSION_STATE",e})({}),Zq=(function(e){return e.CONVERGENCE_TOKEN_CHANGE="CONVERGENCE_TOKEN_CHANGE",e})({}),go,Qq=(go=class{constructor(){w(this,"listeners",[]),w(this,"lastEvent"),w(this,"lastDetails")}subscribe(e){return this.listeners.push(e),this.lastEvent!==void 0&&e(this.lastEvent,this.lastDetails),()=>this.unsubscribe(e)}unsubscribe(e){let t=this.listeners.indexOf(e);t>-1&&this.listeners.splice(t,1)}getValue(){return this.lastEvent}getDetails(){return this.lastDetails}},i(go,"De"),go),yo,vo=(yo=class extends Qq{emit(e,t){this.listeners.forEach(r=>r(e,t)),this.lastEvent=e,this.lastDetails=t}},i(yo,"Oe"),yo),Cr={config:Xq,device:Jq,events:i(e=>{let t={convergenceToken:null,sessionConfigEventBus:new vo,sessionEventBus:new vo,tokenChangeEventBus:new vo},r={getConvergenceToken:i(()=>t.convergenceToken,"getConvergenceToken"),getSessionConfigEventBus:i(()=>t.sessionConfigEventBus,"getSessionConfigEventBus"),getSessionEventBus:i(()=>t.sessionEventBus,"getSessionEventBus"),getTokenChangeEventBus:i(()=>t.tokenChangeEventBus,"getTokenChangeEventBus"),dispatchSessionEvent:i((n,a)=>{if(n!==$e.SESSION_STATE)throw Error(`Unknown session event dispatched: ${n}`);let o={eventType:n,sessionType:e.services.session.getUserInfo().session?.sessionType||"anonymous"};e.services.logger.getLogger().info("[dispatchSessionEvent] session event",o,a),t.sessionEventBus.emit(o,a)},"dispatchSessionEvent"),dispatchTokenChangeEvent:i(n=>{let a={eventType:n,timestamp:e.services.clock.getClock().now().getMilliseconds().toString()};
7e.services.logger.getLogger().info("[dispatchTokenChangeEvent] token change event",a),t.tokenChangeEventBus.emit(a)},"dispatchTokenChangeEvent"),setConvergenceToken:i(n=>{t.convergenceToken=n,r.dispatchTokenChangeEvent(Zq.CONVERGENCE_TOKEN_CHANGE)},"setConvergenceToken")};return r},"events"),infra:i(e=>{let t={extraClientSdkMiddlewares:void 0,playbackEventsManager:null,userEventsManager:null,retryConditionHandler:i(()=>!1,"retryConditionHandler")};return{getClientStorage:i(()=>e.services.clientStorage,"getClientStorage"),getWebAuthnProvider:i(()=>e.services.webAuthnProvider,"getWebAuthnProvider"),getLogger:i(()=>e.services.logger.getLogger(),"getLogger"),setLogger:i(r=>{e.services.logger.setLogger(r)},"setLogger"),getObservabilityObj:i(()=>e.services.observability.getObservabilityObj(),"getObservabilityObj"),setObservabilityObj:i(r=>{e.services.observability.setObservabilityObj(r)},"setObservabilityObj"),getExtraClientSdkMiddlewares:i(r=>t.extraClientSdkMiddlewares?.[r]||[],"getExtraClientSdkMiddlewares"),setExtraClientSdkMiddlewares:i(r=>{t.extraClientSdkMiddlewares=r},"setExtraClientSdkMiddlewares"),getRetryConditionHandler:i(()=>t.retryConditionHandler,"getRetryConditionHandler"),setRetryConditionHandler:i(r=>{t.retryConditionHandler=r},"setRetryConditionHandler"),getUserEventsManager:i(()=>t.userEventsManager,"getUserEventsManager"),setUserEventsManager:i(r=>{t.userEventsManager=r},"setUserEventsManager"),getPlaybackEventsManager:i(()=>t.playbackEventsManager,"getPlaybackEventsManager"),setPlaybackEventsManager:i(r=>{t.playbackEventsManager=r},"setPlaybackEventsManager")}},"infra"),session:i(e=>{let t={userStatus:null};return{clearUserInfo:i(()=>{e.services.session.clearUserInfo(),t.userStatus=null},"clearUserInfo"),getRefreshToken:i(()=>e.services.session.getRefreshToken(),"getRefreshToken"),getUserInfo:i(()=>e.services.session.getUserInfo(),"getUserInfo"),getUserStatus:i(()=>t.userStatus,"getUserStatus"),replaceUserInfo:i(r=>{e.services.session.replaceUserInfo(r)},"replaceUserInfo"),setRefreshToken:i(r=>{e.services.session.setRefreshToken(r)},"setRefreshToken"),setUserInfo:i((r,n,a)=>{e.services.session.setUserInfo(r,n,a)},"setUserInfo"),setUserStatus:i(r=>{t.userStatus=r},"setUserStatus")}},"session"),time:i(e=>{let t={lastSessionPurge:null};return{getClock:i(()=>e.services.clock.getClock(),"getClock"),getLastSessionPurge:i(()=>t.lastSessionPurge,"getLastSessionPurge"),getMonotonicClock:i(()=>e.services.clock.getMonotonicClock(),"getMonotonicClock"),incrementLogicalClock:i(()=>e.services.clock.incrementLogicalClock(),"incrementLogicalClock"),setClock:i(r=>{e.services.clock.setClock(r)},"setClock"),updateLastSessionPurge:i(()=>{let r=e.services.clock.getMonotonicClock().now();return t.lastSessionPurge=r,r},"updateLastSessionPurge")}},"time")},hs;function L_({initialConfig:e,cookieStorage:t,clientStorage:r,clientSyncStorage:n,observabilityObj:a,webAuthnProvider:o}){let s=D_({clientStorage:r,cookieStorage:t,initialConfig:e,observabilityObj:a,webAuthnProvider:o,clientSyncStorage:n});return hs=g(g(g(g(g(g({},Cr.config(s)),Cr.device(s)),Cr.events(s)),Cr.infra(s)),Cr.session(s)),Cr.time(s)),hs}i(L_,"Ae");function I(){return hs}i(I,"D");function x_(){return{getItem:i(()=>null,"getItem"),setItem:i(()=>{},"setItem"),removeItem:i(()=>{},"removeItem")}}i(x_,"je");function Vd({id:e,transports:t}){return{id:e,type:"public-key",transports:t??void 0}}i(Vd,"Me");function M_({attestation:e,authenticatorSelection:t,challenge:r,excludeCredentials:n,pubKeyCredParams:a,rp:o,timeout:s,user:c}){return{attestation:e,authenticatorSelection:t?C(g({},t),{authenticatorAttachment:t.authenticatorAttachment??void 0,residentKey:t.residentKey??void 0}):void 0,challenge:r,excludeCredentials:n?.map(Vd),pubKeyCredParams:a.map(({alg:d})=>({alg:d,type:"public-key"})),rp:o,timeout:s??void 0,user:c}}i(M_,"Ne");function U_({allowCredentials:e,challenge:t,rpId:r,timeout:n,userVerification:a}){return{allowCredentials:e?.map(Vd),challenge:t,rpId:r??void 0,timeout:n??void 0,userVerification:a}}i(U_,"Pe");var e2={platformAuthenticatorIsAvailable:s_,startAuthentication(e){return o_(U_(e))},startRegistration(e){return r_(M_(e))}};function Gd(v){return l(this,arguments,function*({initialConfig:e,onSdkConfigUpdate:t,cookieStorageProvider:r,clientStorageProvider:n,clientSyncStorageProvider:a,deviceMetadata:o,logger:s,observabilityObj:c,extraClientSdkMiddlewares:d,fetchConfigOptions:u,webAuthnProvider:f}){let p=L_({initialConfig:e,cookieStorage:r,clientStorage:n,clientSyncStorage:a??x_(),observabilityObj:c,webAuthnProvider:f??e2});return p.setDeviceMetadata(o),s&&p.setLogger(s),d&&p.setExtraClientSdkMiddlewares(d),c&&p.setObservabilityObj(c),u&&p.setFetchConfigOptions(u),t(m=>p.setConfig(m)),p})}i(Gd,"Ie");function zd(){return!!I().getUserInfo()?.session?.accessToken}i(zd,"Le");
7function jd(){let e=nt("time.systemTime").now(),t=wt(I().getUserInfo()?.session?.refreshTokenExpiresAt);if(!t)return!0;let r=e.getTime()>t.getTime();return I().getLogger().info("is refresh token expired?",r),r}i(jd,"Re");function Pa(){let e=nt("time.systemTime").now(),t=wt(I().getUserInfo()?.session?.accessTokenExpiresAt);if(!t)return!0;let r=e.getTime()>t.getTime();return I().getLogger().info("is access token expired?",r),r}i(Pa,"ze");function F_(){if(zd()){let e=I().getUserInfo();if(I().getLogger().info("stored session found",e?.session?.accessTokenId),jd())return"anonymous";if(Pa())return"refresh";if(e.session?.sessionType)return e.session.sessionType}return"anonymous"}i(F_,"Be");function B_(e){return l(this,null,function*(){let t=I();t.getLogger().info("restoring session...");try{t.getLogger().info("getting device grant..."),yield e.getDeviceGrant(),t.getLogger().info("got a device grant!")}catch(a){throw t.getLogger().warn("Unable to get device grant during initialization.",a),t.dispatchSessionEvent($e.SESSION_STATE,{eventType:"error"}),a}t.getLogger().info("getting startup session type...");let r=F_();if(t.getLogger().info(`startup session is "${r}"`),r==="authenticated")try{return t.getLogger().info("getting authenticated session..."),yield e.getAuthenticatedSession()}catch(a){t.getLogger().warn("unable to get authenticated session",a,"Attempting a refresh..."),r="refresh"}let n=!1;if(r==="refresh")try{return t.getLogger().info("refreshing session..."),yield e.refreshSession()}catch(a){t.getLogger().warn("unable to refresh session",a,"attempting to get an anonymous session..."),n=!0}try{return t.getLogger().info("getting an anonymous session..."),yield e.anonymousLogin(n)}catch(a){throw t.getLogger().warn("unable to get anonymous session during bootstrap",a,"Alerting client..."),a}})}i(B_,"Ve");function q_(r){return l(this,arguments,function*({fetchConfigOptions:e,store:t}){!e||e.fetchPolicy==="session-change-only"||t.getSessionConfigEventBus().getValue()||(yield lt("_config.renderApplicationConfigWithSession")())})}i(q_,"He");function V_(e){function t(h){return l(this,arguments,function*({clientStorageProvider:r,clientSyncStorageProvider:n,cookieStorageProvider:a,deviceMetadata:o,extraClientSdkMiddlewares:s,fetchConfigOptions:c,initialConfig:d,logger:u,observabilityObj:f,onSdkConfigUpdate:v,shouldRetryRequest:p,webAuthnProvider:m}){try{let y=yield Gd({initialConfig:d,onSdkConfigUpdate:v,cookieStorageProvider:a,clientStorageProvider:r,clientSyncStorageProvider:n,deviceMetadata:o,logger:u,observabilityObj:f,extraClientSdkMiddlewares:s,fetchConfigOptions:c,webAuthnProvider:m});y&&p&&y.setRetryConditionHandler(p);let b=yield e(y);return yield B_(b.user),yield q_({fetchConfigOptions:c,store:y}),b}catch(y){let b=I(),_=["[Client SDK] failed to create client sdk during bootstrap",y];throw b?b.getLogger().error(..._):console.error(..._),y}})}return i(t,"t"),t}i(V_,"Ue");var t2={name:null,onLoad:i(()=>{},"onLoad"),onStart:i(()=>{},"onStart")};function it(e){return Object.assign({},t2,e)}i(it,"O");function et(e){return l(this,null,function*(){return yield e.onLoad(),e.onStart()})}i(et,"Ge");function G_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(G_,"Ke");function z_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(z_,"qe");function j_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(j_,"Je");function K_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(K_,"Ye");function H_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(H_,"Xe");function Y_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(Y_,"Ze");function W_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(W_,"Qe");function $_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i($_,"$e");function X_(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(X_,"et");function J_(){return{headers:[],labels:["billingProfileId","paymentMethodId"],queryParams:[],payloadName:void 0}}i(J_,"tt");function Z_(){return{headers:[],labels:["billingProfileId"],queryParams:[],payloadName:void 0}}i(Z_,"nt");function Q_(){return{headers:[],labels:["billingProfileId"],queryParams:[],payloadName:void 0}}i(Q_,"rt");function eP(){return{headers:[],labels:["billingProfileId"],queryParams:[],payloadName:void 0}}i(eP,"it");function tP(){return{headers:[],labels:["billingProfileId"],queryParams:[{paramName:"startDateTime",fieldName:"startDateTime",isRequired:!0},{paramName:"endDateTime",fieldName:"endDateTime",isRequired:!0},{paramName:"paymentMethodId",fieldName:"id",isRequired:!1},{paramName:"pageSize",fieldName:"pageSize",isRequired:!1},{paramName:"nextToken",fieldName:"nextToken",isRequired:!1},{paramName:"orderBy",fieldName:"orderBy",isRequired:!1},{paramName:"entryType",fieldName:"entryTypes",isRequired:!1}],payloadName:void 0}}i(tP,"at");function rP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(rP,"ot");function nP(){return{headers:[],labels:["billingProfileId","id"],queryParams:[],payloadName:void 0}}i(nP,"st");function iP(){return{headers:[],labels:["billingProfileId"],queryParams:[{paramName:"startDateTime",fieldName:"startDateTime",isRequired:!0},{paramName:"endDateTime",fieldName:"endDateTime",isRequired:!0},{paramName:"paymentMethodId",fieldName:"paymentMethodId",isRequired:!1},{paramName:"subscriptionId",fieldName:"subscriptionId",isRequired:!1},{paramName:"pageSize",fieldName:"pageSize",isRequired:!1},{paramName:"nextToken",fieldName:"nextToken",isRequired:!1},{paramName:"orderBy",fieldName:"orderBy",isRequired:!1}],payloadName:void 0}}i(iP,"ct");function aP(){return{headers:[],labels:["billingProfileId","paymentMethodId"],queryParams:[],payloadName:void 0}}i(aP,"lt");function oP(){return{headers:[],labels:["billingProfileId","paymentMethodId"],queryParams:[{paramName:"startDateTime",fieldName:"startDateTime",isRequired:!1},{paramName:"endDateTime",fieldName:"endDateTime",isRequired:!1},{paramName:"pageSize",fieldName:"pageSize",isRequired:!1},{paramName:"nextToken",fieldName:"nextToken",isRequired:!1},{paramName:"orderBy",fieldName:"orderBy",isRequired:!1}],payloadName:void 0}}i(oP,"ut");function sP(){return{headers:[],labels:["billingProfileId"],queryParams:[],payloadName:void 0}}i(sP,"dt");function cP(){return{headers:[],labels:["billingProfileId"],queryParams:[],payloadName:void 0}}i(cP,"ft");function dP(){return{headers:[],labels:["billingProfileId","paymentMethodId"],queryParams:[],payloadName:void 0}}i(dP,"pt");function lP(){return{headers:[{headerName:"x-sxm-bypass-tokenization-limit",fieldName:"featureBypassTokenizationLimit",isRequired:!1},{headerName:"x-sxm-feature-auth-hold",fieldName:"featureAuthHold",isRequired:!1}],labels:["billingProfileId"],queryParams:[],payloadName:void 0}}i(lP,"mt");function uP(){return{headers:[],labels:["billingProfileId"],queryParams:[],payloadName:void 0}}i(uP,"ht");function mP(){return{headers:[{headerName:"x-sxm-billing-override",fieldName:"billingOverride",isRequired:!1},{headerName:"x-sxm-bypass-tokenization-limit",fieldName:"featureBypassTokenizationLimit",isRequired:!1},{headerName:"x-sxm-feature-auth-hold",fieldName:"featureAuthHold",isRequired:!1},{headerName:"x-sxm-feature-get-email-on-profile-creation",fieldName:"featureGetEmailOnProfileCreation",isRequired:!1},{headerName:"x-sxm-testclock-id",fieldName:"testClockId",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(mP,"gt");function fP(){return{headers:[],labels:["billingProfileId"],queryParams:[],payloadName:void 0}}i(fP,"_t");function pP(){return{headers:[],labels:["billingProfileId","paymentMethodId"],queryParams:[],payloadName:void 0}}i(pP,"vt");function hP(){return{headers:[],labels:["billingProfileId","paymentMethodId"],queryParams:[{paramName:"stripePaymentMethodId",fieldName:"stripePaymentMethodId",isRequired:!1}],payloadName:void 0}}i(hP,"yt");function gP(){return{headers:[{headerName:"x-sxm-bypass-tokenization-limit",fieldName:"featureBypassTokenizationLimit",isRequired:!1},{headerName:"x-sxm-feature-auth-hold",fieldName:"featureAuthHold",isRequired:!1}],labels:["billingProfileId"],queryParams:[{paramName:"setAsDefault",fieldName:"setAsDefault",isRequired:!1}],payloadName:void 0}}i(gP,"bt");function yP(){return{headers:[{headerName:"x-sxm-bypass-tokenization-limit",fieldName:"featureBypassTokenizationLimit",isRequired:!1}],labels:["billingProfileId"],queryParams:[{paramName:"setAsDefault",fieldName:"setAsDefault",isRequired:!1}],payloadName:void 0}}i(yP,"xt");function vP(){return{headers:[{headerName:"x-sxm-billing-override",fieldName:"billingOverride",isRequired:!1},{headerName:"x-sxm-bypass-tokenization-limit",fieldName:"featureBypassTokenizationLimit",isRequired:!1},{headerName:"x-sxm-feature-get-email-on-profile-creation",fieldName:"featureGetEmailOnProfileCreation",isRequired:!1},{headerName:"x-sxm-testclock-id",fieldName:"testClockId",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(vP,"St");function bP(){return{headers:[],labels:[],queryParams:[{paramName:"testTime",fieldName:"testTime",isRequired:!1},{paramName:"offerSnapshotAt",fieldName:"offerSnapshotAt",isRequired:!1}
7,{paramName:"country",fieldName:"clientLocation",isRequired:!1},{paramName:"state",fieldName:"state",isRequired:!1},{paramName:"promoCode",fieldName:"promoCode",isRequired:!1},{paramName:"baseTerm",fieldName:"baseTerm",isRequired:!1},{paramName:"trialPreference",fieldName:"trialPreference",isRequired:!1},{paramName:"decisionTime",fieldName:"decisionTime",isRequired:!1},{paramName:"billingPlatform",fieldName:"billingPlatform",isRequired:!1},{paramName:"stripePaymentMethodId",fieldName:"stripePaymentMethodId",isRequired:!1},{paramName:"subscription",fieldName:"subscriptionId",isRequired:!0}],payloadName:void 0}}i(bP,"Ct");function SP(){return{headers:[],labels:[],queryParams:[{paramName:"testTime",fieldName:"testTime",isRequired:!1},{paramName:"offerSnapshotAt",fieldName:"offerSnapshotAt",isRequired:!1},{paramName:"country",fieldName:"clientLocation",isRequired:!1},{paramName:"state",fieldName:"state",isRequired:!1},{paramName:"promoCode",fieldName:"promoCode",isRequired:!1},{paramName:"baseTerm",fieldName:"baseTerm",isRequired:!1},{paramName:"trialPreference",fieldName:"trialPreference",isRequired:!1},{paramName:"decisionTime",fieldName:"decisionTime",isRequired:!1},{paramName:"billingPlatform",fieldName:"billingPlatform",isRequired:!1},{paramName:"stripePaymentMethodId",fieldName:"stripePaymentMethodId",isRequired:!1},{paramName:"serviceType",fieldName:"serviceType",isRequired:!1}],payloadName:void 0}}i(SP,"wt");function EP(){return{headers:[],labels:["offerId"],queryParams:[{paramName:"testTime",fieldName:"testTime",isRequired:!1},{paramName:"offerSnapshotAt",fieldName:"offerSnapshotAt",isRequired:!1},{paramName:"decisionTime",fieldName:"decisionTime",isRequired:!1},{paramName:"country",fieldName:"clientLocation",isRequired:!1},{paramName:"state",fieldName:"state",isRequired:!1}],payloadName:void 0}}i(EP,"Tt");function wP(){return{headers:[],labels:[],queryParams:[{paramName:"testTime",fieldName:"testTime",isRequired:!1},{paramName:"offerSnapshotAt",fieldName:"offerSnapshotAt",isRequired:!1},{paramName:"country",fieldName:"clientLocation",isRequired:!1},{paramName:"state",fieldName:"state",isRequired:!1},{paramName:"promoCode",fieldName:"promoCode",isRequired:!1},{paramName:"baseTerm",fieldName:"baseTerm",isRequired:!1},{paramName:"trialPreference",fieldName:"trialPreference",isRequired:!1},{paramName:"decisionTime",fieldName:"decisionTime",isRequired:!1},{paramName:"billingPlatform",fieldName:"billingPlatform",isRequired:!1},{paramName:"stripePaymentMethodId",fieldName:"stripePaymentMethodId",isRequired:!1},{paramName:"subscription",fieldName:"subscriptionId",isRequired:!0}],payloadName:void 0}}i(wP,"Et");function CP(){return{headers:[],labels:["orderId"],queryParams:[{paramName:"decisionTime",fieldName:"decisionTime",isRequired:!1}],payloadName:"body"}}i(CP,"Dt");function IP(){return{headers:[],labels:[],queryParams:[{paramName:"decisionTime",fieldName:"decisionTime",isRequired:!1}],payloadName:"body"}}i(IP,"Ot");function TP(){return{headers:[],labels:["orderId"],queryParams:[{paramName:"decisionTime",fieldName:"decisionTime",isRequired:!1}],payloadName:void 0}}i(TP,"kt");function AP(){return{headers:[{headerName:"x-sxm-billing-override",fieldName:"billingOverride",isRequired:!1}],labels:[],queryParams:[{paramName:"country",fieldName:"clientLocation",isRequired:!1}],payloadName:void 0}}i(AP,"At");function kP(){return{headers:[],labels:["partnerEntitlementId"],queryParams:[],payloadName:void 0}}i(kP,"jt");function _P(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(_P,"Mt");function PP(){return{headers:[],labels:[],queryParams:[{paramName:"type",fieldName:"entitlementType",isRequired:!1}],payloadName:void 0}}i(PP,"Nt");function NP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(NP,"Pt");function OP(){return{headers:[],labels:["id"],queryParams:[],payloadName:void 0}}i(OP,"Ft");function RP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(RP,"It");function DP(){return{headers:[{headerName:"x-sxm-eligibility-organic-activation-window-override",fieldName:"organicActivationWindowOverride",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(DP,"Lt");function LP(){return{headers:[],labels:["subscriptionId"],queryParams:[],payloadName:void 0}}i(LP,"Rt");function xP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(xP,"zt");function MP(){return{headers:[{headerName:"x-sxm-eligibility-organic-activation-window-override",fieldName:"organicActivationWindowOverride",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(MP,"Bt");function UP(){return{headers:[],labels:["radioId"],queryParams:[],payloadName:void 0}}i(UP,"Vt");function FP(){return{headers:[],labels:["vin"],queryParams:[],payloadName:void 0}}i(FP,"Ht");function BP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(BP,"Ut");function qP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(qP,"Wt");function VP(){return{headers:[],labels:[],queryParams:[],payloadName:"body"}}i(VP,"Gt");function GP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(GP,"Kt");function zP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(zP,"qt");function jP(){return{headers:[],labels:[],queryParams:[],payloadName:"body"}}i(jP,"Jt");function KP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(KP,"Yt");function HP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(HP,"Xt");function YP(){return{headers:[],labels:[],queryParams:[],payloadName:"body"}}i(YP,"Zt");function WP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(WP,"Qt");function $P(){return{headers:[{headerName:"x-sxm-agent-id",fieldName:"agentId",isRequired:!1}],labels:[],queryParams:[],payloadName:"body"}}i($P,"$t");function XP(){return{headers:[{headerName:"x-sxm-agent-id",fieldName:"agentId",isRequired:!1}],labels:[],queryParams:[],payloadName:"body"}}i(XP,"en");function JP(){return{headers:[{headerName:"x-sxm-agent-id",fieldName:"agentId",isRequired:!1}],labels:[],queryParams:[],payloadName:"body"}}i(JP,"tn");function ZP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(ZP,"nn");function QP(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(QP,"rn");function eN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(eN,"an");function tN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(tN,"on");function rN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(rN,"sn");function nN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(nN,"cn");function iN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(iN,"ln");function aN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(aN,"un");function oN(){return{headers:[],labels:[],queryParams:[],payloadName:"body"}}i(oN,"dn");function sN(){return{headers:[],labels:[],queryParams:[],payloadName:"body"}}i(sN,"fn");function cN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(cN,"pn");function dN(){return{headers:[],labels:[],queryParams:[{paramName:"flow",fieldName:"flow",isRequired:!1}],payloadName:void 0}}i(dN,"mn");function lN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(lN,"hn");function uN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(uN,"gn");function mN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(mN,"_n");function fN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(fN,"vn");function pN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(pN,"yn");function hN(){return{headers:[],labels:[],queryParams:[{paramName:"handle",fieldName:"handle",isRequired:!0},{paramName:"purpose",fieldName:"purpose",isRequired:!1}],payloadName:void 0}}i(hN,"bn");function gN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(gN,"xn");function yN(){return{headers:[],labels:[],queryParams:[{paramName:"type",fieldName:"responseType",isRequired:!1}],payloadName:void 0}}i(yN,"Sn");function vN(){return{headers:[],labels:[],queryParams:[],payloadName:"body"}}i(vN,"Cn");function bN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(bN,"wn");function SN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(SN,"Tn");function EN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(EN,"En");function wN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(wN,"Dn");function CN(){return{headers:[],labels:[],queryParams:[{paramName:"email",fieldName:"emailAddress",isRequired:!0}],payloadName:void 0}}i(CN,"On");function IN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(IN,"kn");function TN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(TN,"An");function AN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(AN,"jn");function kN(){return{headers:[],labels:["magicLinkId"],queryParams:[],payloadName:void 0}}i(kN,"Mn");function _N(){return{headers:[],labels:[],queryParams:[],payloadName:"body"}}i(_N,"Nn");function PN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(PN,"Pn");function NN(){return{headers:[{headerName:"x-sxm-convergence-token",fieldName:"
7convergenceToken",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(NN,"Fn");function ON(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(ON,"In");function RN(){return{headers:[],labels:[],queryParams:[{paramName:"magicLinkGrant",fieldName:"magicLinkGrant",isRequired:!0}],payloadName:void 0}}i(RN,"Ln");function DN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(DN,"Rn");function LN(){return{headers:[],labels:[],queryParams:[{paramName:"handle",fieldName:"handle",isRequired:!0}],payloadName:void 0}}i(LN,"zn");function xN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(xN,"Bn");function MN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(MN,"Vn");function UN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(UN,"Hn");function FN(){return{headers:[{headerName:"x-sxm-webauthn-challenge",fieldName:"challenge",isRequired:!0}],labels:[],queryParams:[],payloadName:"body"}}i(FN,"Un");function BN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(BN,"Wn");function qN(){return{headers:[{headerName:"x-sxm-webauthn-challenge",fieldName:"challenge",isRequired:!0}],labels:[],queryParams:[],payloadName:"body"}}i(qN,"Gn");function VN(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(VN,"Kn");var bo,Kd=(bo=class extends Error{constructor(e){super(`could not find config for "${e}" endpoint`),this.name="EndpointConfigNotFoundError"}},i(bo,"qn"),bo),r2=i(e=>{if(e!=null)return e instanceof Date?e.toISOString():String(e)},"Jn"),GN=i(e=>Array.isArray(e)?e.filter(Boolean).map(t=>GN(t)).join(","):e instanceof Date?e.toISOString():e,"Yn");function zN(e,t){if(!e?.length)return;let r=e.reduce((n,{headerName:a,fieldName:o})=>{let s=r2(t[o]);return s!==void 0&&(n[a]=s),n},{});return Object.keys(r).length>0?r:void 0}i(zN,"Xn");function jN(e,t){if(!e?.length)return;let r=e.reduce((n,{paramName:a,fieldName:o})=>{let s=t[o];return s!=null&&(n[a]=GN(s)),n},{});return Object.keys(r).length>0?r:void 0}i(jN,"Zn");function KN(e,t,r){return t?.length?t.reduce((n,a)=>{let o=r[a],s=o==null?"":encodeURIComponent(String(o));return n.replace(`{${a}}`,s)},e):e}i(KN,"Qn");function HN(e,t){let{payloadName:r}=e;if(r)return t[r];let n=new Set;e.headers?.forEach(({fieldName:o})=>n.add(o)),e.queryParams?.forEach(({fieldName:o})=>n.add(o)),e.labels?.forEach(o=>n.add(o));let a=Object.entries(t).reduce((o,[s,c])=>(n.has(s)||c===void 0||(o[s]=c),o),{});return Object.keys(a).length?a:void 0}i(HN,"$n");function E({domainConfig:e,endpointKey:t,input:r,operationFields:n}){let a=e?.endPoints?.[t];if(!e||!a)throw new Kd(t);let o={};return o.method=a.method,o.url=KN(a.href,n.labels,r),o.headers??(o.headers=zN(n.headers,r)),o.params??(o.params=jN(n.queryParams,r)),o.data??(o.data=HN(n,r)),o}i(E,"k");function Na(){try{return Tq()}catch(e){return YN()}}i(Na,"er");function YN(){function e(r){return(r|0).toString(16)}i(e,"e");function t(r){return e(Math.random()*(1<<(r<<2))^Date.now()).slice(-r)}return i(t,"t"),[t(4)+t(4),t(4),"4"+t(3),e(8|Math.random()*4)+t(3),Date.now().toString(16).slice(-10)+t(2)].join("-")}i(YN,"tr");var wi=(function(e){return e.CLOCK="x-sxm-clock",e.IS_TEST="x-sxm-is-test",e.PREVIEW="x-sxm-preview",e})({}),Qe=(function(e){return e.ACCESS_TOKEN="accessToken",e.DEVICE_GRANT="deviceGrant",e.IDENTITY_GRANT="identityGrant",e.IDENTITY_ID="identityId",e.REFRESH_TOKEN="refreshToken",e.DEVICE_UUID="deviceUuid",e.TENANT_ID="tenantId",e.PLATFORM="platformName",e.OTP_GRANT="otpGrant",e.ACTION_ID="actionId",e.SOURCE_TIMESTAMP="sourceTimestamp",e.VEHICLE_PROFILE_GRANT="vehicleProfileGrant",e.MAGIC_LINK_GRANT="magicLinkGrant",e.PROFILE_GRANT="profileGrant",e.CHALLENGE="challenge",e})({});function WN(e){let t=I(),r=t.getUserInfo(),n=t.getUserStatus(),a=t.getDeviceGrant()?.grant,o=t.getDeviceMetadata();return{[Qe.ACCESS_TOKEN]:r?.session?.accessToken||"",[Qe.CHALLENGE]:e.challenge,[Qe.DEVICE_GRANT]:a,[Qe.IDENTITY_GRANT]:r?.identityGrant?.grant||"",[Qe.IDENTITY_ID]:n?.identityId||"",[Qe.REFRESH_TOKEN]:t.getRefreshToken()||"",[Qe.DEVICE_UUID]:a,[Qe.TENANT_ID]:o?.tenant??"sxm",[Qe.PLATFORM]:o?.platform||"",[Qe.OTP_GRANT]:e.otpGrant,[Qe.ACTION_ID]:Na(),[Qe.SOURCE_TIMESTAMP]:t.getClock().now().toISOString(),[Qe.VEHICLE_PROFILE_GRANT]:t.getVehicleProfileGrant(),[Qe.MAGIC_LINK_GRANT]:e.magicLinkGrant,[Qe.PROFILE_GRANT]:e.profileGrant}}i(WN,"nr");function Hd({requestTemplates:e={}}={}){return({headers:t,domain:r})=>{if(!t)return;let n=i(()=>I().getIsTest()||!1,"r"),a=i(s=>I().getIsPreview(s)||!1,"i");t[wi.CLOCK]=N_.toString(I().incrementLogicalClock()),n()&&!t.has(wi.IS_TEST)&&(t[wi.IS_TEST]="true"),a(r)&&(t[wi.PREVIEW]="true");let o=WN(e);for(let s in t){let c=t[s]?.toString(),d=c?.match(/\{(.+?)\}/g)?.map(v=>v.slice(1,-1))?.[0];if(!d)continue;let u=RegExp("{"+d+"}","gi");if(!(d in o))continue;let f=o[d];f&&(t[s]=c?.replace(u,f))}return t}}i(Hd,"rr");Hd();function $N(e,t,r){let n=Xk.create(e);return n.defaults.domainKey=r?.domainKey,n.defaults.endpointKey=r?.endpointKey,t?.forEach(a=>a(n)),n}i($N,"ir");
7var So,Oa=(So=class extends Error{constructor(c){var d=c,{description:e,code:t,status:r,invalidFields:n,notFoundResourceType:a,stack:o}=d,s=st(d,["description","code","status","invalidFields","notFoundResourceType","stack"]);super(e||`Status Code ${r}`),w(this,"description"),w(this,"code"),w(this,"status"),w(this,"invalidFields"),w(this,"notFoundResourceType"),w(this,"extras"),w(this,"stack"),Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace?.(this,this.constructor),this.name="ServiceError",this.status=r,this.code=t??"SERVICE_CODE_UNKNOWN",this.description=e,this.invalidFields=n,this.notFoundResourceType=a,this.stack=o?`${this.stack||""}
8 caused by ${o}`:this.stack,this.extras=s||{}}},i(So,"M"),So),Eo,XN=(Eo=class extends Error{constructor(e,t="Network Error"){super(t),w(this,"status"),this.name="Network Error",this.status=e}},i(Eo,"ar"),Eo),wo,Mi=(wo=class extends Error{constructor(e,t,r){super(e),w(this,"status"),w(this,"description"),w(this,"stack"),this.name="Generic Error",this.status=t,this.description=e,this.stack=r}},i(wo,"N"),wo),Co,JN=(Co=class extends Error{constructor(e,t){super(`${e} is disabled`),w(this,"status"),w(this,"description"),this.name="EndpointDisabledError",this.status=t,this.description=`${e} is disabled`}},i(Co,"or"),Co);function ZN(e){return e instanceof Oa||e instanceof XN||e instanceof Mi||e instanceof JN}i(ZN,"sr");function QN(e){return e==null?{}:typeof e=="object"&&!Array.isArray(e)?e:{data:e}}i(QN,"cr");function eO(e){return e.code===gp.ECONNABORTED||e.code===gp.ETIMEDOUT||e.message?.toLowerCase().includes("timeout")}i(eO,"lr");function tO(e){if(!e)return new Mi("NULL");if(!vq(e)){let t=e;return new Mi(t.message,void 0,t.stack)}if(e.response){let t=e.response?.status,r=`${e.name} ${e.message} ${e.code||""} ${e.request?.responseURL||""}`.trim(),n=QN(e?.response?.data);return new Oa(C(g({},n),{description:n.description??r,status:t,stack:e?.stack}))}return e.request?new XN(eO(e)?"TIMEOUT":"RETRY",e.message):new Mi(e.message,e.status,e.stack)}i(tO,"ur");var n2=i(e=>t=>{t.interceptors.response.use(r=>r,r=>{if(ZN(r))return Promise.reject(r);let n=tO(r);return e?.(n),Promise.reject(n)})},"dr"),rO=i(e=>e==null?"":Array.isArray(e)?e.join(","):String(e),"fr"),i2=i(e=>/{[^}]+}/.test(e),"pr"),a2=i((e,t)=>e.replace(/{([^}]+)}/g,(r,n)=>rO(t[n])),"mr"),gs=i(e=>e==="","hr"),o2=i((e,t,r,n,a)=>{let o=i2(e),s=o?a2(e,t):e;if(!n||!o||!gs(s))return s;let c=rO(r[a]);return gs(c)?s:c},"gr"),s2=i((e,t={},r={})=>{let n=g({},t),a=g(g({},r),t);if(!e?.length)return n;let o=new Set;for(let{name:s,required:c,value:d}of e){if(o.has(s))continue;o.add(s);let u=o2(d,a,t,c,s);if(!c&&gs(u)){delete n[s],delete a[s];continue}a[s]=u,n[s]=u}return n},"_r"),c2=i(e=>{if(e.url&&/^https?/.test(e.url)){let t=/^https?:[/]{2}(?:[\w-]+[.]?)+[\w]+[/]/,r=e.url?.match(t);if(r){let n=e.url?.replace(t,"");return C(g({},e),{baseURL:r[0],url:n})}}return e},"vr"),d2=i(e=>(t,r)=>{let{domainConfigProvider:n,getEntitlementHash:a}=e;if("endPoints"in(n()||{})&&r?.queryParams){let o=t.params??{},s=C(g({},o),{entitlementHash:a()});t.params=s2(r.queryParams,o,s)}return t},"yr");function nO(e){return t=>{let{parseRequestHeaders:r,domainKey:n,endpointKey:a}=e,o=iO(e);if(!o)throw Error(`Endpoint config not found for ${n}.${a}`);t.interceptors.request.use(s=>l(null,null,function*(){let c=s;if(o?.isDisabled){let u=new JN(e.endpointKey||"");return e.exceptionHandler?.(u),Promise.reject(u)}c.headers.set(gd(o.headers));let d=yield r?.({headers:c.headers,domain:n});return d&&(c.headers=d),c=c2(c),c=d2(e)(c,o),c}))}}i(nO,"br");function iO(e){let{domainConfigProvider:t,endpointKey:r}=e,n=t();return r&&n&&"endPoints"in n?n?.endPoints?.[r]:null}i(iO,"xr");function aO(e){return l(this,null,function*(){if(e==null)return;let t=new TextEncoder;if(typeof e=="string")return t.encode(e);if(typeof e=="object")return t.encode(JSON.stringify(e))})}i(aO,"Sr");var l2=new Set(["post","put","patch"]),oO="Content-Encoding";function sO({domainConfigProvider:e,endpointKey:t}){return r=>{r.interceptors.request.use(n=>l(null,null,function*(){if(!n.method||!l2.has(n.method.toLowerCase()))return n;let a=cO(e(),t);if(!lO(a)||a==="none")return C(g({},n),{headers:ys(n.headers)});let o=n.data;if(o==null)return n;let s=yield uO(o);return s?C(g({},n),{headers:dO(n.headers),data:s}):C(g({},n),{headers:ys(n.headers)})}))}}i(sO,"Tr");function cO(e,t){if(!(!e||!t)&&"endPoints"in e)return e.endPoints?.[t]?.compression}i(cO,"Er");function dO(e){return e[oO]="gzip",e}i(dO,"Dr");function ys(e){return e.delete(oO),e}i(ys,"Or");function lO(e){return e==="gzip"||e==="none"}i(lO,"kr");function uO(e){return l(this,null,function*(){let t=yield aO(e);
8if(t)try{return v_(t)}catch(r){return}})}i(uO,"Ar");var u2=i(e=>t=>{let r=e.logProvider();t.interceptors.request.use(n=>(r.info(`> ${n.method?.toUpperCase()} ${n.baseURL||""}${n.url?.toString()}`),n)),t.interceptors.response.use(n=>(r.info(`< ${n.config.method?.toUpperCase()} ${n.status}:${n.statusText} ${n.config.baseURL||""}${n.config.url}`),n),n=>(r.error(`< ${n.response?.status} ${n.response?.config.url}
9
10${n.message}`),Promise.reject(n)))},"jr"),mO="x-sxm-convergence-token",m2=i(({domainKey:e,domainConfigProvider:t,tokenProvider:r})=>n=>{let a=t(),o=a&&e==="user"?a.endPoints.refresh?.href:null;if(n.url?.includes(o)){let s=r.getConvergenceToken();s&&(n.headers.set(mO,s),r.setConvergenceToken(null))}return n},"Nr"),f2=i(({domainKey:e,domainConfigProvider:t,reAuthProvider:r,tokenProvider:n})=>a=>l(null,null,function*(){let o=t(),s=o&&e==="user"?o.endPoints.refresh?.href:null,c=a.headers[mO];return c&&n.setConvergenceToken(c),(c||a.config.url?.includes(s)&&n.getConvergenceToken())&&(yield r()),a}),"Pr"),p2=i(({domainKey:e,domainConfigProvider:t,tokenProvider:r})=>n=>{let a=t(),o=[];if(a&&e==="user"){let s=a.endPoints;o=[s?.anonymous?.href,s?.migrateSession?.href,s?.authenticated?.href,s?.refresh?.href]}if(o.includes(n.config.url)){let s=n?.headers["set-cookie"];if(s){let c=s[0].split(";")[0].split("=")[1];n.data.refreshToken=c,r.setRefreshToken(c)}}return n},"Fr"),h2=i(e=>t=>{t.interceptors.request.use(r=>l(null,null,function*(){let n=r;return n=m2(e)(n),n})),t.interceptors.response.use(r=>l(null,null,function*(){let n=r;return n=yield f2(e)(n),n=p2(e)(n),n}),r=>l(null,null,function*(){return r.status===400&&r.message==="invalid-convergence-token"?(e?.tokenProvider.setConvergenceToken(null),e?.refreshSession()):Promise.reject(r)}))},"Ir"),g2=["userServices.identity.invalidCredentials","userServices.identity.locked","tokenServicesTeam.sessionService.authorization-pending"],y2=i(({error:e,getRefreshTokenExpireAt:t,getNow:r})=>{let n=t(),a=e.response?.data&&e.response.data.code;return g2.some(o=>a===o)?!1:n?new Date(n).getTime()>r().getTime():!1},"Rr"),v2={retries:3,retryCondition:Bn,retryDelay:_a};function fO(e=0,t=2){return t**+e*1e3}i(fO,"Br");function pO(e){return Object.assign({},v2,e)}i(pO,"Vr");var b2=i(({endpointKey:e,domainConfigProvider:t,reAuthProvider:r,getRefreshTokenExpireAt:n,getSessionType:a,shouldRetryRequest:o=i(()=>!1,"a"),getNow:s})=>c=>{let d=t(),u=e&&d&&"endPoints"in d?d?.endPoints?.[e]:null,f,v,p;u&&"retry"in u?p=u?.retry:d&&"retry"in d&&(p=d?.retry),p&&(f=p?.maxRetryCount,v=i(m=>fO(m,p?.delaySeconds),"h")),Kt(c,pO({retries:f,retryDelay:v||_a,retryCondition:i(m=>l(null,null,function*(){if(yield o(m))return!0;if(Aa(m))return!1;let h=m.response?.status||m.status;if(h===429||h===503)return!1;if(h===401){if(!u?.doesNotTriggerSessionRefresh&&y2({error:m,getRefreshTokenExpireAt:n,getNow:s})){let{success:y}=yield r();return y}return!1}return h===403&&a()==="anonymous"?!1:Bn(m)}),"retryCondition")}))},"Hr");function qt(e){let t=null;return function(...r){return l(this,null,function*(){return t||(t=new Promise((n,a)=>{e(...r).then(o=>{n(o),t=null}).catch(o=>{a(o),t=null})}),t)})}}i(qt,"P");function hO(e){let t=[],r=!1;function n(){return l(this,null,function*(){if(!r){for(r=!0;t.length>0;)yield t.shift()();r=!1}})}return i(n,"r"),function(...a){return l(this,null,function*(){return new Promise((o,s)=>{t.push(()=>l(null,null,function*(){try{o(yield e(...a))}catch(c){s(c)}})),n()})})}}i(hO,"Ur");function gO(e,t){let r=new Map,n=hO(t);return function(...a){return l(this,null,function*(){let o=e(...a),s=r.get(o);if(s)return s;let c=i(()=>r.delete(o),"o"),d=n(...a);return r.set(o,d),d.then(c,c),d})}}i(gO,"Wr");var Io,Tn=(Io=class extends Error{constructor(e="Promise has been cancelled",t){super(e),w(this,"_reason"),this.name="PromiseCancelledError",this._reason=t}get reason(){return this._reason}},i(Io,"F"),Io);function yO(e,t){return new Promise((r,n)=>{if(t?.aborted)return n(new Tn("Aborted before delay started"));let a=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e),o=i(()=>{clearTimeout(a),t?.removeEventListener("abort",o),n(new Tn("Aborted during delay"))},"a");t?.addEventListener("abort",o)})}i(yO,"Gr");function vO(e,t,r){let n=t*2**(e-1);return Math.min(n,r)}i(vO,"Kr");function vs(e,t){let{maxRetries:r=5,baseDelayMs:n=100,maxDelayMs:a=1e4,signal:o}=t??{};function s(c=1){return l(this,null,function*(){if(o?.aborted)throw new Tn("Aborted before attempt");try{return yield e()}catch(d){if(c>=r)throw d;return yield yO(vO(c,n,a),o),s(c+1)}})}return i(s,"o"),s()}i(vs,"qr");var Ip=qt(()=>l(null,null,function*(){let e=I();try{return yield nt("user.refreshSession")(),{success:!0}}catch(t){if(t instanceof Oa&&(t.status===401||t.code===Of.INVALID_REFRESH_TOKEN_ERROR_CODE||t.code===Of.INVALID_AUTH_HEADERS_ERROR_CODE)){let r=i(()=>{},"e");try{r=e.patchConfig(n=>{n.domains.user.endPoints.anonymous.doesNotTriggerSessionRefresh=!0}),yield nt("user.getAnonymousSession")()}catch(n){e.getLogger().warn("failed to start anon session on reAuthProvider",n)}finally{r()}}return{success:!1}}})),S2=i(e=>I().getRetryConditionHandler()(e),"Yr");function bO(){let e=I();return{getConvergenceToken:i(()=>e.getConvergenceToken(),"getConvergenceToken"),setConvergenceToken:i(t=>
10{e.setConvergenceToken(t)},"setConvergenceToken"),setRefreshToken:i(t=>e.setRefreshToken(t),"setRefreshToken")}}i(bO,"Xr");function SO(){let e=I().getUserInfo()?.session;return e?[e.entitlementHash,e.accessTokenId].filter(Boolean).join("-"):""}i(SO,"Zr");function bs(){return I().getClock().now()}i(bs,"Qr");function EO(){return I().getUserInfo()?.session?.accessTokenExpiresAt}i(EO,"$r");function wO(){return I().getUserInfo()?.session?.refreshTokenExpiresAt}i(wO,"ei");function CO(){return I().getUserInfo()?.session?.sessionType}i(CO,"ti");function IO(){return nt("user.refreshSession")()}i(IO,"ni");var ut=i(({getDomainKey:e,getEndpointKey:t,requestTemplates:r})=>{let n=I(),a=t(),o=e(),s=n.getDomainConfig(o),c=n.getExtraClientSdkMiddlewares(o),d=n.getExtraClientSdkMiddlewares("global"),u=bO(),f=a?Number(pU(s,["endPoints",a,"timeout"])):0,{exceptionHandler:v}=n.getObservabilityObj()??{},p=i(()=>s,"p"),m=[nO({endpointKey:a,exceptionHandler:v,parseRequestHeaders:Hd({requestTemplates:r}),domainConfigProvider:p,domainKey:o,getEntitlementHash:SO}),sO({endpointKey:a,domainConfigProvider:p}),h2({domainKey:o,domainConfigProvider:p,getAccessTokenExpireAt:EO,reAuthProvider:Ip,tokenProvider:u,refreshSession:IO,getNow:bs}),b2({domainKey:o,endpointKey:a,domainConfigProvider:p,getRefreshTokenExpireAt:wO,reAuthProvider:Ip,getSessionType:CO,shouldRetryRequest:S2,getNow:bs}),n2(v),...c,...d];return typeof window>"u"&&m.push(u2({logProvider:i(()=>n.getLogger(),"logProvider")})),$N({baseURL:s?.baseUrl,timeout:Number.isNaN(f)?void 0:f*1e3,headers:{Accept:"application/json; charset=utf-8","Content-Type":"application/json; charset=utf-8"}},m,{domainKey:o,endpointKey:a})},"I"),TO="commerce";function Q(){return I().getDomainConfig(TO)}i(Q,"L");function AO(){return TO}i(AO,"ii");function ee(e){return ut({getDomainKey:AO,getEndpointKey:i(()=>e,"getEndpointKey")})}i(ee,"R");var E2={amazon:G_(),apple:z_(),google:j_(),roku:K_()};function Ss(e,t){return l(this,null,function*(){let r=E({domainConfig:Q(),endpointKey:"restore",input:t,operationFields:E2[e]});r.url=r.url?.replace("{restoreTarget}",e);let{data:n}=yield ee("restore").request(r);return n})}i(Ss,"oi");var w2={amazon:H_(),apple:Y_(),bango:W_(),google:$_(),roku:X_()};function Es(e,t){return l(this,null,function*(){let r=E({domainConfig:Q(),endpointKey:"sync",input:t,operationFields:w2[e]});r.url=r.url?.replace("{syncTarget}",e);let{data:n}=yield ee("sync").request(r);return n})}i(Es,"ci");var Tp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"createBillingProfile",input:e,operationFields:mP()}),{data:r}=yield ee("createBillingProfile").request(t);return r}),"li"),Ap=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"createPayment",input:e,operationFields:pP()}),{data:r}=yield ee("createPayment").request(t);return r}),"ui"),kp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"createPaymentMethodsCardSetupToken",input:e,operationFields:yP()}),{data:r}=yield ee("createPaymentMethodsCardSetupToken").request(t);return r}),"di"),_p=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"createPaymentMethodsFirstCardSetupToken",input:e,operationFields:vP()}),{data:r}=yield ee("createPaymentMethodsFirstCardSetupToken").request(t);return r}),"fi"),Pp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"createPaymentSetupToken",input:e,operationFields:fP()}),{data:r}=yield ee("createPaymentSetupToken").request(t);return r}),"pi"),Np=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"deletePaymentMethod",input:e,operationFields:J_()});yield ee("deletePaymentMethod").request(t)}),"mi"),Op=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getBalanceDueDetails",input:e,operationFields:Z_()}),{data:r}=yield ee("getBalanceDueDetails").request(t);return r}),"hi"),Rp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getBillingProfile",input:e,operationFields:Q_()}),{data:r}=yield ee("getBillingProfile").request(t);return r}),"gi"),Dp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getBillingProfileNextBill",input:e,operationFields:eP()}),{data:r}=yield ee("getBillingProfileNextBill").request(t);return r}),"_i"),Lp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getBillingProfilePaymentHistory",input:e,operationFields:tP()}),{data:r}=yield ee("getBillingProfilePaymentHistory").request(t);return r}),"vi"),xp=i(()=>l(null,null,function*(){let e=E({domainConfig:Q(),endpointKey:"getDefaultBillingProfile",input:{},operationFields:rP()}),{data:t}=yield ee("getDefaultBillingProfile").request(e);return t}),"yi"),Mp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getInvoice",input:e,operationFields:nP()}),{data:r}=yield ee("getInvoice").request(t);return r}),"bi"),Up=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getInvoices",input:e,operationFields:iP()}),{data:r}=yield ee("getInvoices").request(t);return r}),"xi"),Fp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getPaymentMethod",input:e,operationFields:aP()}),{data:r}=yield ee("getPaymentMethod").request(t);return r}),"Si"),Bp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getPaymentMethodHistory",input:e,operationFields:oP()}),{data:r}=yield ee("getPaymentMethodHistory").request(t);return r}),"Ci"),qp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getPaymentMethods",input:e,operationFields:sP()}),{data:r}=yield ee("getPaymentMethods").request(t);return r}),"wi"),Vp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"setBillingProfileDefaultPaymentMethod",input:e,operationFields:hP()}),{data:r}=yield ee("setBillingProfileDefaultPaymentMethod").request(t);return r}),"Ti"),Gp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"updateBillingProfile",input:e,operationFields:cP()}),{data:r}=yield ee("updateBillingProfile").request(t);return r}),"Ei"),zp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"updatePaymentMethod",input:e,operationFields:dP()}),{data:r}=yield ee("updatePaymentMethod").request(t);return r}),"Di"),jp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"redeemGiftCard",input:e,operationFields:uP()}),{data:r}=yield ee("redeemGiftCard").request(t);return r}),"Oi"),Kp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"postBalanceDuePaySelf",input:e,operationFields:lP()}),{data:r}=yield ee("postBalanceDuePaySelf").request(t);return r}),"ki"),Hp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"postPaymentMethods",input:e,operationFields:gP()}),{data:r}=yield ee("postPaymentMethods").request(t);return r}),"Ai"),Yp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"offersChange",input:e,operationFields:bP()}),{data:r}=yield ee("offersChange").request(t);return r}),"ji"),Wp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"offersNew",input:e??{},operationFields:SP()}),{data:r}=yield ee("offersNew").request(t);return r}),"Mi"),$p=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"offersSave",input:e,operationFields:wP()}),{data:r}=yield ee("offersSave").request(t);return r}),"Ni"),Xp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"offerDetails",input:e,operationFields:EP(
10)}),{data:r}=yield ee("offerDetails").request(t);return r}),"Pi"),Jp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getEntitlements",input:e,operationFields:PP()}),{data:r}=yield ee("getEntitlements").request(t);return r}),"Fi"),Zp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"grantEntitlement",input:e,operationFields:NP()}),{data:r}=yield ee("grantEntitlement").request(t);return r}),"Ii"),Qp=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"registerGiftCard",input:e,operationFields:AP()}),{data:r}=yield ee("registerGiftCard").request(t);return r}),"Li"),Ra=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"createOrder",input:e,operationFields:IP()}),{data:r}=yield ee("createOrder").request(t);return r}),"z"),eh=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"confirmOrder",input:e,operationFields:CP()}),{data:r}=yield ee("confirmOrder").request(t);return r}),"Ri"),th=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"getOrder",input:e,operationFields:TP()}),{data:r}=yield ee("getOrder").request(t);return r}),"zi");function ws(e){return l(this,null,function*(){return Ra({body:{cancelSubscription:e}})})}i(ws,"Bi");function Cs(e){return l(this,null,function*(){return Ra({body:{newSubscription:e}})})}i(Cs,"Vi");function Is(e){return l(this,null,function*(){return Ra({body:{planSwitch:e}})})}i(Is,"Hi");function Ts(e){return l(this,null,function*(){return Ra({body:{revokeSubscriptionCancellation:e}})})}i(Ts,"Ui");var rh=i(()=>l(null,null,function*(){let e=E({domainConfig:Q(),endpointKey:"getPartnerEntitlements",input:{},operationFields:_P()}),{data:t}=yield ee("getPartnerEntitlements").request(e);return t}),"Wi"),nh=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"activatePartnerEntitlement",input:e,operationFields:kP()}),{data:r}=yield ee("activatePartnerEntitlement").request(t);return r}),"Gi"),ih=i(()=>l(null,null,function*(){let e=E({domainConfig:Q(),endpointKey:"subscriptions",input:{},operationFields:RP()}),{data:t}=yield ee("subscriptions").request(e);return t}),"Ki"),ah=i(e=>l(null,null,function*(){let t=E({domainConfig:Q(),endpointKey:"subscriptionForId",input:e,operationFields:OP()}),{data:r}=yield ee("subscriptionForId").request(t);return r}),"qi"),C2=it({name:"commerce",onLoad:i(()=>{S("commerce.activation.restore",Ss),S("commerce.activation.sync",Es),S("commerce.billing.createBillingProfile",Tp),S("commerce.billing.createPayment",Ap),S("commerce.billing.createPaymentMethodsCardSetupToken",kp),S("commerce.billing.createPaymentMethodsFirstCardSetupToken",_p),S("commerce.billing.createPaymentSetupToken",Pp),S("commerce.billing.deletePaymentMethod",Np),S("commerce.billing.getBalanceDueDetails",Op),S("commerce.billing.getBillingProfile",Rp),S("commerce.billing.getBillingProfileNextBill",Dp),S("commerce.billing.getBillingProfilePaymentHistory",Lp),S("commerce.billing.getDefaultBillingProfile",xp),S("commerce.billing.getInvoice",Mp),S("commerce.billing.getInvoices",Up),S("commerce.billing.getPaymentMethod",Fp),S("commerce.billing.getPaymentMethodHistory",Bp),S("commerce.billing.getPaymentMethods",qp),S("commerce.billing.postBalanceDuePaySelf",Kp),S("commerce.billing.postPaymentMethods",Hp),S("commerce.billing.redeemGiftCard",jp),S("commerce.billing.updatePaymentMethod",zp),S("commerce.billing.setBillingProfileDefaultPaymentMethod",Vp),S("commerce.billing.updateBillingProfile",Gp),S("commerce.eligibility.getOfferDetails",Xp),S("commerce.eligibility.getOffersChange",Yp),S("commerce.eligibility.getOffersNew",Wp),S("commerce.eligibility.getOffersSave",$p),S("commerce.entitlement.getEntitlements",Jp),S("commerce.entitlement.grantEntitlement",Zp),S("commerce.giftCard.registerGiftCard",Qp),S("commerce.order.cancelSubscription",ws),S("commerce.order.confirmOrder",eh),S("commerce.order.getOrder",th),S("commerce.order.newSubscription",Cs),S("commerce.order.planSwitch",Is),S("commerce.order.revokeSubscriptionCancellation",Ts),S("commerce.partnerEntitlements.activatePartnerEntitlement",nh),S("commerce.partnerEntitlements.getPartnerEntitlements",rh),S("commerce.subscription.subscription",ah),S("commerce.subscription.getSubscriptions",ih)},"onLoad"),onStart:i(()=>({activation:{restore:Ss,sync:Es},billing:{createBillingProfile:Tp,createPayment:Ap,createPaymentMethodsCardSetupToken:kp,createPaymentMethodsFirstCardSetupToken:_p,createPaymentSetupToken:Pp,deletePaymentMethod:Np,getBalanceDueDetails:Op,getBillingProfile:Rp,getBillingProfileNextBill:Dp,getBillingProfilePaymentHistory:Lp,getDefaultBillingProfile:xp,getInvoice:Mp,getInvoices:Up,getPaymentMethod:Fp,getPaymentMethodHistory:Bp,getPaymentMethods:qp,postBalanceDuePaySelf:Kp,postPaymentMethods:Hp,redeemGiftCard:jp,setBillingProfileDefaultPaymentMethod:Vp,updateBillingProfile:Gp,updatePaymentMethod:zp},eligibility:{getOfferDetails:Xp,getOffersChange:Yp,getOffersNew:Wp,getOffersSave:$p},entitlement:{getEntitlements:Jp,grantEntitlement:Zp},giftCard:{registerGiftCard:Qp},order:{cancelSubscription:ws,confirmOrder:eh,getOrder:th,newSubscription:Cs,planSwitch:Is,revokeSubscriptionCancellation:Ts},partnerEntitlements:{activatePartnerEntitlement:nh,getPartnerEntitlements:rh},subscription:{subscription:ah,getSubscriptions:ih}}),"onStart")}),kO="partnerIntegration";function Ht(){return I().getDomainConfig(kO)}i(Ht,"B");function _O(){return kO}i(_O,"Xi");function Yt(e,t){return ut({getDomainKey:_O,getEndpointKey:i(()=>e,"getEndpointKey"),requestTemplates:t})}i(Yt,"V");var oh=i((...t)=>l(null,[...t],function*(e={}){let r=E({domainConfig:Ht(),endpointKey:"getDetailedDeviceState",input:e,operationFields:MP()}),{data:n}=yield Yt("getDetailedDeviceState").request(r);return n}),"Zi"),sh=i(e=>l(null,null,function*(){let t=E({domainConfig:Ht(),endpointKey:"acceptTermsAndConditions",input:e,operationFields:DP()}),{data:r}=yield Yt("acceptTermsAndConditions").request(t);return r}),"Qi"),ch=i(e=>l(null,null,function*(){let t=E({domainConfig:Ht(),endpointKey:"getDetailedStateHandoff",input:{},operationFields:xP()}),{data:r}=yield Yt("getDetailedStateHandoff",{magicLinkGrant:e}).request(t);return r}),"$i"),dh=i(e=>l(null,null,function*(){let t=E({domainConfig:Ht(),endpointKey:"getStateByRadioId",input:e,operationFields:UP()}),{data:r}=yield Yt("getStateByRadioId").request(t);return r}),"ea"),lh=i(e=>l(null,null,function*(){let t=E({domainConfig:Ht(),endpointKey:"getStateByVin",input:e,operationFields:FP()}),{data:r}=yield Yt("getStateByVin").request(t);return r}),"ta"),uh=i(e=>l(null,null,function*(){let t=E({domainConfig:Ht(),endpointKey:"getDetailedStateBySubscriptionId",input:e,operationFields:LP()}),{data:r}=yield Yt("getDetailedStateBySubscriptionId").request(t);return r}),"na"),mh=i(e=>l(null,null,function*(){let t=E({domainConfig:Ht(),endpointKey:"magicLinkRequest",input:e,operationFields:BP()}),{data:r}=yield Yt("magicLinkRequest").request(t);return r}),"ra"),I2=it({name:"partnerIntegration",onLoad:i(()=>{S("partnerIntegration.getDetailedDeviceState",oh),S("partnerIntegration.getDetailedStateBySubscriptionId",uh),S("partnerIntegration.getDetailedStateHandoff",ch),S("partnerIntegration.getStateByRadioId",dh),S("partnerIntegration.getStateByVin",lh),S("partnerIntegration.acceptTermsAndConditions",sh),S("partnerIntegration.magicLinkRequest",mh)},"onLoad"),onStart:i(()=>({getDetailedDeviceState:oh,getDetailedStateBySubscriptionId:uh,getDetailedStateHandoff:ch,getStateByRadioId:dh,getStateByVin:lh,acceptTermsAndConditions:sh,magicLinkRequest:mh}),"onStart")}),Bt={days:864e5,hours:36e5,minutes:6e4,seconds:1e3};function Dt(e,t){return(0,Ep.toSeconds)((0,Ep.parse)(e),t)*1e3}i(Dt,"U");function An(e){let t=Math.round(e);if(t===0)return"P0D";if(!Number.isFinite(e))return`Invalid Duration: ${e}`;let r=["P"];t<0&&(r.unshift("-"),t*=-1);let n=Math.floor(t/Bt.days),a=Math.floor(t%Bt.days/Bt.hours),o=Math.floor(t%Bt.hours/Bt.minutes),s=Math.floor(t%Bt.minutes/Bt.seconds),c=Math.floor(t%Bt.seconds),d=a||o||s||c;if(n>0&&r.push(`${n}D`),d&&r.push("T"),a>0&&r.push(`${a}H`),o>0&&r.push(`${o}M`),s>0||c>0){let u=`${s}`;c>0&&(u+=`.${c.toString().padStart(3,"0")}`),r.push(`${u}S`)}return r.join("")}i(An,"W");var To,fh=(To=class{constructor(e){w(this,"queue",[]),w(this,"processing",!1),this.logger=e}dispatch(e){this.enqueue(e).catch(()=>{})}dispatchAsync(e){return this.enqueue(e)}flush(){return this.enqueue({key:"flushQueue",execute:i(()=>l(this,null,function*(){}),"execute")})}enqueue(e){return new Promise((t,r)=>{this.queue.push({command:e,onSuccess:i(()=>l(this,null,function*(){return t()}),"onSuccess"),onFailure:i(n=>l(this,null,function*(){return r(n)}),"onFailure")}),!this.processing&&this.processQueue()})}processQueue(){return l(this,null,function*(){if(!this.processing){this.processing=!0;try{for(;this.queue.length>0;){let e=this.queue.shift();if(e)try{yield e.command.execute(),yield e.onSuccess()}catch(t){this.logger?.error("command queue command failed",{command:e.command.key,error:t}),yield e.onFailure(t)}}}finally{this.processing=!1}}})}},i(To,"aa"),To);function PO(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o}i(PO,"oa");function NO(e,t){return e===t||e!==e&&t!==t}i(NO,"sa");var T2=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,A2=typeof self=="object"&&self&&self.Object===Object&&self,OO=T2||A2||Function("return this")(),Xi=OO.Symbol,RO=Object.prototype,k2=RO.hasOwnProperty,_2=RO.toString,ln=Xi?Xi.toStringTag:void 0;function DO(e){var t=k2.call(e,ln),r=e[ln];try{e[ln]=void 0;var n=!0}catch(o){}var a=_2.call(e);return n&&(t?e[ln]=r:delete e[ln]),a}i(DO,"ma");var P2=Object.prototype.toString;function LO(e){return P2.call(e)}i(LO,"ga");
10var N2="[object Null]",O2="[object Undefined]",ph=Xi?Xi.toStringTag:void 0;function Yd(e){return e==null?e===void 0?O2:N2:ph&&ph in Object(e)?DO(e):LO(e)}i(Yd,"ba");function Lr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}i(Lr,"q");var R2="[object AsyncFunction]",D2="[object Function]",L2="[object GeneratorFunction]",x2="[object Proxy]";function xO(e){if(!Lr(e))return!1;var t=Yd(e);return t==D2||t==L2||t==R2||t==x2}i(xO,"Ta");var M2=9007199254740991;function MO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=M2}i(MO,"Da");function UO(e){return e!=null&&MO(e.length)&&!xO(e)}i(UO,"Oa");var U2=9007199254740991,F2=/^(?:0|[1-9]\d*)$/;function FO(e,t){var r=typeof e;return t??(t=U2),!!t&&(r=="number"||r!="symbol"&&F2.test(e))&&e>-1&&e%1==0&&e<t}i(FO,"ja");function BO(e,t,r){if(!Lr(r))return!1;var n=typeof t;return(n=="number"?UO(r)&&FO(t,r.length):n=="string"&&t in r)?NO(r[t],e):!1}i(BO,"Ma");var B2=/\s/;function qO(e){for(var t=e.length;t--&&B2.test(e.charAt(t)););return t}i(qO,"Pa");var q2=/^\s+/;function VO(e){return e&&e.slice(0,qO(e)+1).replace(q2,"")}i(VO,"Ia");function GO(e){return typeof e=="object"&&!!e}i(GO,"La");var V2="[object Symbol]";function zO(e){return typeof e=="symbol"||GO(e)&&Yd(e)==V2}i(zO,"za");var hh=NaN,G2=/^[-+]0x[0-9a-f]+$/i,z2=/^0b[01]+$/i,j2=/^0o[0-7]+$/i,K2=parseInt;function Ji(e){if(typeof e=="number")return e;if(zO(e))return hh;if(Lr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Lr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=VO(e);var r=z2.test(e);return r||j2.test(e)?K2(e.slice(2),r?2:8):G2.test(e)?hh:+e}i(Ji,"Ga");var gh=1/0,H2=17976931348623157e292;function jO(e){return e?(e=Ji(e),e===gh||e===-gh?(e<0?-1:1)*H2:e===e?e:0):e===0?e:0}i(jO,"Ja");function KO(e){var t=jO(e),r=t%1;return t===t?r?t-r:t:0}i(KO,"Ya");var Y2=Math.ceil,W2=Math.max;function HO(e,t,r){t=(r?BO(e,t,r):t===void 0)?1:W2(KO(t),0);var n=e==null?0:e.length;if(!n||t<1)return[];for(var a=0,o=0,s=Array(Y2(n/t));a<n;)s[o++]=PO(e,a,a+=t);return s}i(HO,"Qa");var Ir,yh=(Ir=class{constructor(){w(this,"events",[])}hydrate(e){this.events.unshift(...Ir.toBufferedEvents(e))}append(e){this.events.push(...Ir.toBufferedEvents(e))}snapshot(){return Ir.toEvents(this.events)}snapshotBuffered(){return[...this.events]}chunk(e){return HO(this.events,e)}getByIds(e){let t=new Set(e);return this.events.filter(r=>t.has(r.id))}removeByIds(e){let t=new Set(e);this.events=this.events.filter(r=>!t.has(r.id))}size(){return this.events.length}static toEvents(e){return e.map(t=>t.event)}static toBufferedEvents(e){return e.map(t=>({id:Na(),event:t}))}},i(Ir,"e"),Ir),Ao=i(function(){return OO.Date.now()},"eo"),$2="Expected a function",X2=Math.max,J2=Math.min;function YO(e,t,r){var n,a,o,s,c,d,u=0,f=!1,v=!1,p=!0;if(typeof e!="function")throw TypeError($2);t=Ji(t)||0,Lr(r)&&(f=!!r.leading,v="maxWait"in r,o=v?X2(Ji(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function m(V){var R=n,D=a;return n=a=void 0,u=V,s=e.apply(D,R),s}i(m,"p");function h(V){return u=V,c=setTimeout(_,t),f?m(V):s}i(h,"m");function y(V){var R=V-d,D=V-u,L=t-R;return v?J2(L,o-D):L}i(y,"h");function b(V){var R=V-d,D=V-u;return d===void 0||R>=t||R<0||v&&D>=o}i(b,"g");function _(){var V=Ao();if(b(V))return N(V);c=setTimeout(_,y(V))}i(_,"_");function N(V){return c=void 0,p&&n?m(V):(n=a=void 0,s)}i(N,"ee");function O(){c!==void 0&&clearTimeout(c),u=0,n=d=a=c=void 0}i(O,"te");function P(){return c===void 0?s:N(Ao())}i(P,"ne");function j(){var V=Ao(),R=b(V);if(n=arguments,a=this,d=V,R){if(c===void 0)return h(d);if(v)return clearTimeout(c),c=setTimeout(_,t),m(d)}return c===void 0&&(c=setTimeout(_,t)),s}return i(j,"v"),j.cancel=O,j.flush=P,j}i(YO,"io");var ko,Z2=(ko=class{constructor({storageProvider:e,storageKey:t,getEventsSnapshot:r,queue:n,debounceAddEventMs:a}){w(this,"persistDebounced"),w(this,"storageProvider"),w(this,"storageKey"),w(this,"getEventsSnapshot"),w(this,"queue"),this.storageProvider=e,this.storageKey=t,this.getEventsSnapshot=r,this.queue=n,this.persistDebounced=YO(()=>{this.queue.dispatch({key:"PersistEventsCommand",execute:i(()=>l(this,null,function*(){yield this.persist()}),"execute")})},a)}load(){return l(this,null,function*(){return this.storageProvider.getItem(this.storageKey)})}schedulePersist(){this.persistDebounced()}persist(){return l(this,null,function*(){yield this.storageProvider.setItem(this.storageKey,this.getEventsSnapshot()),this.persistDebounced.cancel()})}},i(ko,"ao"),ko),_o,WO=(_o=class{constructor({storageKey:e,storageProvider:t,getCacheConfig:r,submitEvents:n,logger:a,shouldFlush:o=i(()=>!0,"a"),debounceAddEventMs:s=500}){w(this,"flushInterval"),w(this,"buffer"),w(this,"eventsQueue"),w(this,"flushQueue"),w(this,"logger"),w(this,"persistence"),w(this,"getCacheConfig"),w(this,"submitEvents"),w(this,"shouldFlush"),this.logger=a,this.eventsQueue=new fh(a),this.flushQueue=new fh(a),this.buffer=new yh,this.getCacheConfig=r,this.submitEvents=n,this.shouldFlush=o,this.persistence=new Z2({storageProvider:t,storageKey:e,getEventsSnapshot:i(()=>this.buffer.snapshot(),"getEventsSnapshot"),queue:this.eventsQueue,debounceAddEventMs:s}),this.eventsQueue.dispatch({key:"hydrateEvents",execute:i(()=>l(this,null,function*(){yield this.hydrateEvents()}),"execute")}),this.startFlushTimer()}addEvent(e){this.addEvents([e])}addEvents(e){this.eventsQueue.dispatch({key:"addEvents",execute:i(()=>l(this,null,function*(){yield this.recordEvents({events:e})}),"execute")})}flushEvents(e){return this.flushQueue.dispatchAsync({key:"flushEvents",execute:i(()=>l(this,null,function*(){yield this.eventsQueue.flush(),yield this.flushBufferedEvents({eventLifecycle:e})}),"execute")})}clearFlushTimer(){this.flushInterval&&clearInterval(this.flushInterval)}startFlushTimer(){let e=this.getCacheConfig();if(!e.flushOnMinInterval)return;this.clearFlushTimer();let t=Dt(e.flushOnMinInterval);this.flushInterval=setInterval(()=>{this.flushEvents("manual").catch(r=>{this.logger.error("failed to manually flush events",r)})},t)}hydrateEvents(){return l(this,null,function*(){let e=yield this.persistence.load();Array.isArray(e)&&this.buffer.hydrate(e)})}recordEvents(t){return l(this,arguments,function*({events:e}){let r=this.getCacheConfig();this.buffer.append(e),this.persistence.schedulePersist(),r.flushOnEventCount&&this.buffer.size()>=r.flushOnEventCount&&this.flushEvents("manual").catch(n=>{this.logger.error("failed to manually flush events",n)})})}flushBufferedEvents(t){return l(this,arguments,function*({eventLifecycle:e}){if(!this.canFlush(e)){yield this.persistence.persist();return}let r=this.getCacheConfig().maxEventBatchCount||20,n=this.buffer.chunk(r);yield this.persistence.persist();for(let a of n){let o=a.map(d=>d.id),s=this.buffer.getByIds(o),c=yh.toEvents(s);if(c.length!==0)try{yield this.submitEvents(c),this.buffer.removeByIds(o),yield this.persistence.persist()}catch(d){this.logger.error("failed to submit event batch",d),yield this.persistence.persist();return}}})}canFlush(e){if(!this.shouldFlush())return!1;let t=this.getCacheConfig();
10return e==="background"?t.flushOnBackground:e==="appLaunch"?t.flushOnLaunch:e==="logout"?t.flushOnLogout:!0}},i(_o,"oo"),_o),$O="time";function Wd(){return I().getDomainConfig($O)}i(Wd,"co");function XO(){return Wd()?.extras}i(XO,"lo");function JO(){return $O}i(JO,"uo");function ZO(){return{baseDelayMs:1e4,maxDelayMs:3e4,maxRetries:10}}i(ZO,"fo");function QO(e){return{baseDelayMs:e,maxDelayMs:6e4,maxRetries:1/0}}i(QO,"po");function eR(e){return ut({getDomainKey:JO,getEndpointKey:i(()=>e,"getEndpointKey")})}i(eR,"mo");var Q2=i(()=>l(null,null,function*(){let e=E({domainConfig:Wd(),endpointKey:"getMetronome",input:{},operationFields:qP()}),{data:t}=yield eR("getMetronome").request(e);return t}),"ho"),Po,eV=(Po=class{constructor(){w(this,"systemClock",Xr.getInstance()),w(this,"monotonicClock",I().getMonotonicClock()),w(this,"anchor"),w(this,"logger",I().getLogger()),this.anchor=this.calculateClockDiff()}calculateClockDiff(){let e=this.systemClock.now().getTime(),t=this.monotonicClock.now();return Math.abs(e-t)}refreshAnchor(){this.anchor=this.calculateClockDiff()}detect(e){let t=this.calculateClockDiff(),r=Math.abs(t-this.anchor);return r>=e?(this.logger.info("time drift detected",{drift:An(r),maxAllowedDriftMs:An(e)}),!0):!1}},i(Po,"go"),Po),No,tV=(No=class{constructor(){w(this,"serverTime"),w(this,"averageLatency"),w(this,"lastSyncTime"),w(this,"monotonicClock",I().getMonotonicClock()),w(this,"observabilityObj",I().getObservabilityObj()),this.serverTime=Xr.getInstance().now().getTime(),this.averageLatency=0,this.lastSyncTime=this.monotonicClock.now()}setAnchor(e,t){if(!Number.isFinite(e)){this.observabilityObj?.captureMessage?.("ClientSDK: InternalClock - ignored invalid serverTime in setAnchor",{extra:{serverTime:Pr(e)}});return}this.serverTime=e,this.lastSyncTime=this.monotonicClock.now(),Number.isFinite(t)&&(this.averageLatency=t)}now(){let e=this.monotonicClock.now(),t=e-this.lastSyncTime,r=this.serverTime+this.averageLatency+t;return Number.isFinite(r)?new Date(r):(this.observabilityObj?.captureMessage?.("ClientSDK: Invalid internal Time",{extra:{monotonicNow:e,averageLatency:this.averageLatency,lastSyncTime:this.lastSyncTime,serverTime:Pr(this.serverTime),elapsedTime:t,time:r}}),new Date(this.serverTime))}},i(No,"_o"),No),Oo,rV=(Oo=class{constructor(){w(this,"buffer",[]),w(this,"_averageLatency",0)}get averageLatency(){return this._averageLatency}get size(){return this.buffer.length}add(e,t){if(!Number.isFinite(e))return;let{maxBufferSize:r,maxBufferWeight:n,maxLatencyMs:a,minBufferWeight:o}=t;if(Math.abs(e)>a)return;for(this.buffer.unshift(e);this.buffer.length>r;)this.buffer.pop();let s=this.buffer.length,c=this.createLatencyWeights(o,n,s);this._averageLatency=this.weightedAverage(this.buffer,c)}createLatencyWeights(e,t,r){if(r===1)return[t];let n=Array.from({length:r},(o,s)=>s),a=(e-t)/(r-1);return n.map(o=>t+o*a)}weightedAverage(e,t){if(t.length!==e.length)throw Error("Buffer and weights must have the same length");return e.reduce((r,n,a)=>r+n*t[a],0)/t.reduce((r,n)=>r+n,0)}},i(Oo,"vo"),Oo),tR="userEvents";function $d(){return I().getDomainConfig(tR)}i($d,"bo");function rR(){return tR}i(rR,"xo");function nR(e){return ut({getDomainKey:rR,getEndpointKey:i(()=>e,"getEndpointKey")})}i(nR,"So");var nV=i(e=>l(null,null,function*(){let t=E({domainConfig:$d(),endpointKey:"submit",input:e,operationFields:VP()}),{data:r}=yield nR("submit").request(t);return r}),"Co");function iR(){let e=$d();if(!e)throw Error("Domain config not found");return e.extras.userEventsBufferConfig}i(iR,"wo");function aR(e){return l(this,null,function*(){yield nV({body:{events:e}})})}i(aR,"To");function Xd(){let e=I().getUserEventsManager();return e||(e=new WO({storageKey:"USER_EVENTS",storageProvider:I().getClientStorage(),getCacheConfig:iR,logger:I().getLogger(),shouldFlush:i(()=>!!I().getUserInfo().session?.sessionType,"shouldFlush"),submitEvents:aR}),I().setUserEventsManager(e)),e}i(Xd,"Eo");function Zi(e){let t=I().getUserInfo().session?.accessTokenId,r=Object.keys(e)[0],n=Object.values(e)[0];n.eventTokenId=t,e[r]=n,Xd().addEvent(e)}i(Zi,"Do");function As(e){return Xd().flushEvents(e)}i(As,"Oo");function ks(){return I().incrementLogicalClock()}i(ks,"ko");var iV=qt(d=>l(null,[d],function*({latency:e,usingClock:t,systemTime:r,internalTime:n,time:a,clockAdjustmentInMS:o,appId:s,logicalClock:c}){Zi({timeUpdated:{averageLatency:An(e),eventId:Na(),internalClockTime:Pr(n),logicalClock:c,clockAdjustment:An(o),appId:s,isTest:I().getIsTest(),usingClock:t,systemClockTime:Pr(r),time:Pr(a)}})})),Ro,aV=(Ro=class{constructor(){w(this,"latencyBuffer",new rV),w(this,"currentPoll",null),w(this,"usingClock","SYSTEM"),w(this,"logger",I().getLogger()),w(this,"systemClock",Xr.getInstance()),w(this,"monotonicClock",I().getMonotonicClock()),w(this,"clockDriftDetector",new eV),w(this,"internalClock",
10new tV),w(this,"driftDetectionSuspended",!1),w(this,"init",qt(()=>l(this,null,function*(){let{metronomeEnabled:e,postInitializationPollInterval:t}=this.getConfig();if(e){try{yield this.fillLatencyBufferUntilFull()}catch(r){this.logger.error("Failed to fill latency buffer",r)}this.currentPoll&&clearInterval(this.currentPoll),this.currentPoll=setInterval(this.tryUpdateClock.bind(this),Dt(t))}}))),w(this,"tryUpdateClock",qt(()=>l(this,null,function*(){let e=this.monotonicClock.now(),[t,r]=yield this.tryGetServerTime(),n=this.monotonicClock.now();if(r)return this.logger.error("failed to get metronome time",r),[null,r];this.clockDriftDetector.refreshAnchor();let a=this.getConfig(),o=this.getDate().getTime(),s=(n-e)/2,c=Dt(a.maxTwoWayLatency)/2;this.latencyBuffer.add(s,{maxBufferSize:a.latencyBufferLength,maxBufferWeight:a.latencyBufferMaxWeight,maxLatencyMs:c,minBufferWeight:a.latencyBufferMinWeight}),this.internalClock.setAnchor(t,this.latencyBuffer.averageLatency);let d=this.systemClock.now().getTime(),u=this.internalClock.now().getTime();this.usingClock=Math.abs(d-u)>=Dt(a.maxDiscrepancyInterval)?"INTERNAL":"SYSTEM";let f=I().incrementLogicalClock(),v=this.getDate().getTime(),p=v-o,m=I().getAppId();return yield iV({latency:this.latencyBuffer.averageLatency,usingClock:this.usingClock,systemTime:d,internalTime:u,time:v,clockAdjustmentInMS:p,appId:m,logicalClock:f}),[{success:!0},null]}))),w(this,"updateClock",qt(()=>l(this,null,function*(){let[,e]=yield this.tryUpdateClock();if(e)throw e}))),w(this,"handleDrift",qt(()=>l(this,null,function*(){let e=this.getConfig();if(!e.driftDetectionEnabled||this.driftDetectionSuspended)return;let t=Dt(e.maxAllowedDrift??"PT5S"),r=ZO(),n=i(()=>l(this,null,function*(){this.clockDriftDetector.detect(t)&&(this.logger.info("trying to fix time drift by synchronizing SDK clock with server clock..."),yield this.updateClock(),this.logger.info("clock synchronized successfully! Time drift should be fixed."))}),"r");try{this.driftDetectionSuspended=!0,yield vs(n,r),this.clockDriftDetector.refreshAnchor()}catch(a){this.logger.error("failed to fix time drift",a)}finally{this.driftDetectionSuspended=!1}}))),this.init()}getConfig(){let e=XO();if(!e)throw Error("Time config is not available");return e}fillLatencyBufferUntilFull(){return l(this,null,function*(){let{latencyBufferLength:e,initializationPollInterval:t}=this.getConfig(),r=QO(Dt(t)),n=i(()=>l(this,null,function*(){this.latencyBuffer.size>=e||(yield this.updateClock())}),"r");for(;this.latencyBuffer.size<e;)yield vs(n,r)})}tryGetServerTime(){return l(this,null,function*(){try{let{time:e}=yield Q2(),t=Number(e);if(!Number.isFinite(t)||t<=0)throw Error(`Invalid server time: ${t}`);return[t,null]}catch(e){return[null,e]}})}getDate(){return this.usingClock==="INTERNAL"?this.internalClock.now():this.systemClock.now()}now(){return this.handleDrift(),this.getDate()}},i(Ro,"jo"),Ro),oV=it({name:"time",onLoad:i(()=>{let e=new aV;S("time.systemTime",e),I().setClock(e)},"onLoad"),onStart:i(()=>({systemTime:nt("time.systemTime")}),"onStart")}),oR="user";function z(){return I().getDomainConfig(oR)}i(z,"J");function sR(){return oR}i(sR,"Po");function K(e,t){return ut({getDomainKey:sR,getEndpointKey:i(()=>e,"getEndpointKey"),requestTemplates:t})}i(K,"Y");var sV=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"revokeSessions",input:{},operationFields:ON()});yield K("revokeSessions").request(e)}),"Fo"),vh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"changeHandleToEmailHandle",input:e,operationFields:$P()});yield K("changeHandleToEmailHandle").request(t)}),"Io"),bh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"changePassword",input:e,operationFields:XP()});yield K("changePassword").request(t)}),"Lo"),Sh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"changePhoneNumber",input:e,operationFields:JP()});yield K("changePhoneNumber").request(t)}),"Ro"),Eh=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"getAccount",input:{},operationFields:mN()}),{data:t}=yield K("getAccount").request(e);return t}),"zo"),wh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"updateAccount",input:e,operationFields:xN()}),{data:r}=yield K("updateAccount").request(t);return r}),"Bo"),Ch=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"issueCastingGrant",input:{},operationFields:bN()}),{data:t}=yield K("issueCastingGrant").request(e);return t}),"Vo"),cV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"sample",input:e,operationFields:DN()}),{data:r}=yield K("sample").request(t);return r}),"Ho"),dV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"refreshDeviceGrantV2",input:e,operationFields:PN()}),{data:r}=yield K("refreshDeviceGrantV2").request(t);return r}),"Uo"),lV=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"migrateDeviceGrantV2",input:{},operationFields:SN()}),{data:t}=yield K("migrateDeviceGrantV2").request(e);return t}),"Wo"),uV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"devicesV2",input:e,operationFields:rN()}),{data:r}=yield K("devicesV2").request(t);return r}),"Go"),Ih=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"createAuthenticationChallenge",input:e,operationFields:eN()}),{data:r}=yield K("createAuthenticationChallenge").request(t);return r}),"Ko"),mV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"verifyAuthenticationChallenge",input:e,operationFields:UN()}),{data:r}=yield K("verifyAuthenticationChallenge").request(t);return r}),"qo"),fV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"userCodeAuthenticate",input:e,operationFields:tN()});t.withCredentials=!0;let{data:r}=yield K("userCodeAuthenticate").request(t);return r}),"Jo"),Th=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"userCodeAuthorize",input:e,operationFields:HP()}),{data:r}=yield K("userCodeAuthorize").request(t);return r}),"Yo"),Ah=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"userCodeGenerate",input:e,operationFields:dN()}),{data:r}=yield K("userCodeGenerate").request(t);return r}),"Xo"),kh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"linkCodeAuthorize",input:e,operationFields:KP()}),{data:r}=yield K("linkCodeAuthorize").request(t);return r}),"Zo"),pV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"authenticatePassword",input:e,operationFields:jP()}),{data:r}=yield K("authenticatePassword").request(t);return r}),"Qo"),hV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"create",input:e,operationFields:oN()}),{data:r}=yield K("create").request(t);return r}),"$o"),gV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"createV2",input:e,operationFields:sN()}),{data:r}=yield K("createV2").request(t);return r}),"es"),yV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"createDeviceSession",input:e,operationFields:nN()});t.withCredentials=!0;let{data:r}=yield K("createDeviceSession").request(t);return r}),"ts"),vV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"otpInitiate",input:e,operationFields:vN()}),{data:r}=yield K("otpInitiate").request(t);return r}),"ns"),bV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"otpRedeem",input:e,operationFields:_N()}),{data:r}=yield K("otpRedeem").request(t);return r}),"rs");function cR(e){let t=K("otpAuthenticate",{otpGrant:e});return()=>l(null,null,function*(){let r=E({domainConfig:z(),endpointKey:"otpAuthenticate",input:{},operationFields:zP()}),{data:n}=yield t.request(r);return n})}i(cR,"is");function dR(){return l(this,null,function*(){let e=z(),t=e?.extras?.isPasskeyEnabled;if(!e||!t)return Promise.reject("could not find the supplied domain config or not enabled");let r=E({domainConfig:e,endpointKey:"passkeyCreateStart",input:{},operationFields:VN()}),{data:n}=yield K("passkeyCreateStart").request(r);return n})}i(dR,"as");var SV=i(e=>l(null,null,function*(){let t=z(),r=K("passkeyCreateFinish",{challenge:e.challenge}),n=E({domainConfig:t,endpointKey:"passkeyCreateFinish",input:e,operationFields:qN()}),{data:a}=yield r.request(n);return a}),"os");function lR(){return l(this,null,function*(){let e=z();if(!e?.extras?.isPasskeyEnabled)throw Error("Passkey authentication is disabled");let t=E({domainConfig:e,endpointKey:"passkeyAuthenticateStart",input:{},operationFields:BN()}),{data:r}=yield K("passkeyAuthenticateStart").request(t);return r})}i(lR,"ss");var EV=i(e=>l(null,null,function*(){let t=z(),r=K("passkeyAuthenticateFinish",{challenge:e.challenge}),n=E({domainConfig:t,endpointKey:"passkeyAuthenticateFinish",input:e,operationFields:FN()}),{data:a}=yield r.request(n);return a}),"cs"),wV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"status",input:e,operationFields:LN()}),{data:r}=yield K("status").request(t);return r}),"ls"),CV=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"getIdentity",input:{},operationFields:uN()}),{data:t}=yield K("getIdentity").request(e);return t}),"us"),_h=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"recordOfSaleExists",input:e,operationFields:CN()}),{data:r}=yield K("recordOfSaleExists").request(t);return r}),"ds"),Ph=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"statusForSignUp",input:e,operationFields:hN()}),{data:r}=yield K("statusForSignUp").request(t);return r}),"fs"),_s=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"magicLinkRedeem",input:e,operationFields:kN()}),{data:r}=yield K("magicLinkRedeem").request(t);return r}),"ps");function uR(e){let t=K("authenticateMagicLink",{magicLinkGrant:e});return()=>l(null,null,function*(){let r=E({domainConfig:z(),endpointKey:"authenticateMagicLink",input:{},operationFields:GP()}),{data:n}=yield t.request(r);return n})}i(uR,"ms");var Nh=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"delete",input:{},operationFields:cN()}),{data:t}=yield K("delete").request(e);return t}),"hs"),Oh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"b2bTrialClaim",input:e,operationFields:YP()}),{data:r}=yield K("b2bTrialClaim").request(t);return r}),"gs"),Rh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"preaccessCreate",input:e,operationFields:wN()}),{data:r}=yield K("preaccessCreate").request(t);return r}),"_s"),Dh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"recordsLink",input:e,operationFields:TN()}),{data:r}=yield K("recordsLink").request(t);return r}),"vs"),Lh=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"recordsStatus",input:{},operationFields:AN()}),{data:t}=yield K("recordsStatus").request(e);return t}),"ys"),xh=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"recordPrivacyOptionByIdentityId",input:{},operationFields:IN()});yield K("recordPrivacyOptionByIdentityId").request(e)}),"bs"),Mh=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"getProfile",input:{},operationFields:gN()}),{data:t}=yield K("getProfile").request(e);return t}),"xs"),Uh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"getUserProfile",input:e,operationFields:yN()}),{data:r}=yield K("getUserProfile").request(t);return r}),"Ss"),Fh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"updateUserProfile",input:e,operationFields:MN()});yield K("updateUserProfile").request(t)}),"Cs"),Bh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"bypassTastePickingPreference",input:e,operationFields:WP()});yield K("bypassTastePickingPreference").request(t)}),"ws");function mR(e){return!!(typeof e=="object"&&e&&"code"in e&&e.code==="userServices.profile.profile_service_driver_already_has_profile")}i(mR,"Ts");var IV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"createAutoProfile",input:e,operationFields:fN()}),{data:r}=yield K("createAutoProfile").request(C(g({},t),{validateStatus:i(n=>n===409||n===201||n===200,"validateStatus"),transformResponse:i(n=>{let a=JSON.parse(n);return mR(a)?{vehicleProfileGrant:a.grant}:a},"transformResponse")}));return r}),"Es"),qh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"checkSalStatus",input:e,operationFields:RN()}),{data:r}=yield K("checkSalStatus").request(t);return r}),"Ds"),TV=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"anonymous",input:{},operationFields:ZP()});e.withCredentials=!0;let{data:t}=yield K("anonymous").request(e);return t}),"Os"),AV=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"migrateSession",input:e,operationFields:EN()});t.withCredentials=!0;let{data:r}=yield K("migrateSession").request(t);return r}),"ks"),Da=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"authenticated",input:{},operationFields:QP()});e.withCredentials=!0;let{data:t}=yield K("authenticated").request(e);return t}),"X"),Vh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"oauthThirdParty",input:e,operationFields:lN()}),{data:r}=yield K("oauthThirdParty").request(t);return r}),"As"),kV=i(t=>l(null,[t],function*({profileGrant:e}){let r=E({domainConfig:z(),endpointKey:"createSamplingSession",input:{},operationFields:iN()});r.withCredentials=!0;let{data:n}=yield K("createSamplingSession",{profileGrant:e}).request(r);return n}),"js"),_V=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"refresh",input:e,operationFields:NN()});if(jd())throw Error("refresh token is expired");t.withCredentials=!0,t.transformRequest=(n,a)=>(delete a.Authorization,JSON.stringify(n));let{data:r}=yield K("refresh").request(t);return r}),"Ms"),Gh=i(e=>l(null,null,function*(){let t=E({domainConfig:z(),endpointKey:"createSubmissionContact",input:e,operationFields:aN()}),{data:r}=yield K("createSubmissionContact").request(t);return r}),"Ns"),zh=i(()=>l(null,null,function*(){let e=E({domainConfig:z(),endpointKey:"getSubmissionContact",input:{},operationFields:pN()}),{data:t}=yield K("getSubmissionContact").request(e);return t}),"Ps");function Ps(e){return l(this,null,function*(){let t=I();try{let r=yield cV(e);if(r.profileGrant){let n=yield kV({profileGrant:r.profileGrant}),{identityGrant:a,handle:o}=t.getUserInfo();t.setUserInfo(a,n,o),yield lt("_config.renderApplicationConfigWithSession")(),t.dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"})}return t.getUserInfo()}catch(r){return t.getLogger().error("sample failed",r),Promise.reject(r)}})}i(Ps,"Fs");function Ns(e){return l(this,null,function*(){try{let t=yield fV({deviceCode:e});return I().setUserInfo(void 0,t,void 0),yield lt("_config.renderApplicationConfigWithSession")(),I().dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),t}catch(t){return Promise.reject(t)}})}i(Ns,"Is");function Os(e=!1){return l(this,null,function*(){let t=I(),r=t.getUserInfo(),n=zd(),a=Pa(),o=r?.session?.sessionType==="anonymous"&&!a;return!n||a||e&&!o?Qi():(r&&(t.dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),t.setUserInfo(r.identityGrant,r.session,r.handle)),t.getLogger().info("returning stored anonymous session",r.session?.accessTokenId),t.getUserInfo())})}i(Os,"Ls");function Rs(){return l(this,null,function*(){let e=I();e.getLogger().info("creating new anonymous session...");let t=yield TV();return e.getLogger().info("new anonymous session created!",t.accessTokenId),e.clearUserInfo(),e.setUserInfo(void 0,t,void 0),yield lt("_config.renderApplicationConfigWithSession")(),e.dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),e.getUserInfo()})}i(Rs,"Rs");function fR(){return l(this,null,function*(){let e=I(),t=e.getMonotonicClock().now(),r=z()?.extras.minIntervalBetweenSessionPurges,n=r?Dt(r):0,a=e.getLastSessionPurge();if(a!==null&&Math.abs(t-a)<n)throw Error("minimum interval between session purges not reached");e.updateLastSessionPurge(),e.clearUserInfo(),e.removeDeviceGrant(),yield nt("user.getDeviceGrant")()})}i(fR,"zs");function Qi(){return l(this,null,function*(){let e=I();try{return yield Rs()}catch(t){if(t instanceof Oa&&t.status===401)try{return e.getLogger().warn("Unable to start anonymous session, purging and retrying..."),yield fR(),yield Rs()}
10catch(r){return e.getLogger().warn("Unable to start anonymous session after purge, alerting client",r),e.dispatchSessionEvent($e.SESSION_STATE,{eventType:"error"}),Promise.reject(r)}return Promise.reject(t)}})}i(Qi,"Bs");function nr(){return l(this,null,function*(){let e=I().getUserInfo();if(e.session?.sessionType==="authenticated")return I().getLogger().info("returning stored authenticated session",e.session?.accessTokenId),I().dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),I().getUserInfo();try{I().getLogger().info("creating new authenticated session...");let t=yield Da();return I().getLogger().info("new authenticated session created!",t.accessTokenId),I().setUserInfo(void 0,t,void 0),yield lt("_config.renderApplicationConfigWithSession")(),I().dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),I().getUserInfo()}catch(t){return I().getLogger().info("Fails to create a new authenticated session",t),Promise.reject(t)}})}i(nr,"Z");function Ds(e){return l(this,null,function*(){try{let t=yield yV(e);return I().setUserInfo(void 0,t,void 0),yield lt("_config.renderApplicationConfigWithSession")(),I().dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),I().getUserInfo()}catch(t){return I().getLogger().info("Fails to create a new device session"),Promise.reject(t)}})}i(Ds,"Vs");function Ls(e){return l(this,null,function*(){try{let t=yield AV({sxmData:e});return I().setUserInfo(void 0,t,void 0),yield lt("_config.renderApplicationConfigWithSession")(),I().dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),I().getUserInfo()}catch(t){return I().getLogger().info("Fails to migrate session"),Promise.reject(t)}})}i(Ls,"Hs");function xs(e){return l(this,null,function*(){let t=I().getUserInfo(),r=yield pV({body:e});return I().setUserInfo(r,t.session,e.handle),nr()})}i(xs,"Us");function Ms(e){return l(this,null,function*(){let t=I(),r=t.getUserInfo(),n={identityGrant:r.identityGrant?g({},r.identityGrant):void 0,handle:r.handle,session:r.session?g({},r.session):void 0};try{t.setUserInfo(e,r.session,r.handle);let a=t.getUserInfo(),o=yield Da();return t.setUserInfo(a.identityGrant,o,a.handle),yield lt("_config.renderApplicationConfigWithSession")(),t.dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),t.getUserInfo()}catch(a){throw t.replaceUserInfo(n),a}})}i(Ms,"Ws");function Us(e){return l(this,null,function*(){let t=I().getUserInfo();try{let r=yield hV({body:e});I().setUserInfo(r,t.session,e.emailAddress)}catch(r){return Promise.reject(r)}t=I().getUserInfo();try{let r=yield Da();return I().setUserInfo(t.identityGrant,r,t.handle),yield lt("_config.renderApplicationConfigWithSession")(),I().dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),I().getUserInfo()}catch(r){return Promise.reject(r)}})}i(Us,"Gs");function Fs(e){return l(this,null,function*(){let t=I().getUserInfo();try{let r=yield gV({body:e});I().setUserInfo(r,t.session,e.emailAddress)}catch(r){return Promise.reject(r)}t=I().getUserInfo();try{let r=yield Da();return I().setUserInfo(t.identityGrant,r,t.handle),yield lt("_config.renderApplicationConfigWithSession")(),I().dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"}),I().getUserInfo()}catch(r){return Promise.reject(r)}})}i(Fs,"Ks");var jh=i(e=>({location:e?.location||I().getLocationCoordinates()}),"qs"),Bs=gO(e=>{let t=jh(e);return JSON.stringify(t.location)},e=>l(null,null,function*(){let t=I(),r=t.getUserInfo();try{let n=jh(e);e?.location&&t.setLocationCoordinates(e.location);let a=_V(n);t.setRefreshToken(null);let o=yield a;return t.setUserInfo(r.identityGrant,o,r.handle),yield lt("_config.renderApplicationConfigWithSession")(),t.dispatchSessionEvent($e.SESSION_STATE,{eventType:"refresh"}),t.getLogger().info("refresh session succeeded",t.getUserInfo()?.session?.accessTokenId),t.getUserInfo()}catch(n){return Promise.reject(n)}})),Kh=i(e=>(I().getLogger().warn('this method is deprecated and will be removed in the next major version. Use "refreshSession" instead'),Bs(e)),"Ys");function qs(a){return l(this,arguments,function*({identityId:e,otpOption:t,otpContext:r,language:n="en-US"}){try{return yield vV({body:{identityId:e,otpOption:t,otpContext:r,language:n}})}catch(o){return Promise.reject(o)}})}i(qs,"Xs");function Vs(e,t){return l(this,null,function*(){try{let{grant:r}=yield bV({body:{identityId:e,otp:t}}),n=yield cR(r)(),a=I().getUserInfo();return I().setUserInfo(n,a.session,a.handle),nr()}catch(r){return Promise.reject(r)}})}i(Vs,"Zs");function Gs(e){return l(this,null,function*(){try{let{grant:t}=yield _s({magicLinkId:e}),r=yield uR(t)(),n=I().getUserInfo();return I().setUserInfo(r,n.session,n.handle),nr()}catch(t){return I().getLogger().error("Error authenticating through magic link",t),Promise.reject(t)}})}i(Gs,"Qs");function zs(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}i(zs,"$s");function Lt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4;return t.padEnd(t.length+r,"=")}i(Lt,"Q");function js(e){return l(this,null,function*(){try{let t=yield dR();e?.("created");let r=t.publicKeyCredentialCreationOptions;r.user.id=zs(r.user.id),r.challenge=zs(r.challenge),delete r.timeout;let n=yield I().getWebAuthnProvider().startRegistration(r);return e?.("registered"),n.rawId=Lt(n.rawId),n.response.attestationObject=Lt(n.response.attestationObject),n.response.clientDataJSON=Lt(n.response.clientDataJSON),yield SV({challenge:t.grant,body:{credential:n}}),e?.("finished"),Promise.resolve()}catch(t){return Promise.reject(t)}})}i(js,"ec");function Ks(){return l(this,null,function*(){let e=I().getUserInfo();try{let t=yield lR(),r=t.publicKeyCredentialRequestOptions;delete r.timeout;let n=yield I().getWebAuthnProvider().startAuthentication(r);n.rawId=Lt(n.rawId),n.response.authenticatorData=Lt(n.response.authenticatorData),n.response.clientDataJSON=Lt(n.response.clientDataJSON),n.response.signature=Lt(n.response.signature),n.response.userHandle&&(n.response.userHandle=Lt(n.response.userHandle));let a=yield EV({challenge:t.grant,body:{credential:n}});return I().setUserInfo(a,e.session,e.handle),nr()}catch(t){return Promise.reject(t)}})}i(Ks,"tc");function Hs(e){return l(this,null,function*(){let t=yield wV(e);return I().setUserStatus(t),t})}i(Hs,"nc");function Ys(){return l(this,null,function*(){try{let e=yield I().getWebAuthnProvider().platformAuthenticatorIsAvailable();return Promise.resolve(e)}catch(e){return Promise.resolve(!1)}})}i(Ys,"rc");function Ws(){let e=I().getUserInfo();if(e?.session?.accessToken){let t=g({},e.session);return delete t.accessToken,C(g({},e),{session:t})}return e}i(Ws,"ic");function ea(){return l(this,null,function*(){try{let e=yield CV(),t=I().getUserInfo();return t.identityGrant&&(t.identityGrant.emailAddress=e.contact?.emailAddress??void 0,t.identityGrant.identityId=e.identityId),I().setUserInfo(t.identityGrant,t.session,t.handle),e}catch(e){return Promise.reject(e)}})}i(ea,"ac");function $s(){return l(this,null,function*(){let e=I().getUserInfo(),t=e.identityGrant?.identityId;if(t)return t;if(!e.session||e.session.sessionType!=="authenticated")return null;try{return(yield ea()).identityId}catch(r){return Promise.reject(r)}})}i($s,"oc");function Xs(){let e=I().getDeviceGrant();if(!e)throw Error("Device ID Unavailable!");return e.deviceId}i(Xs,"sc");function Js(){let e=I().getUserInfo().session;if(!e)throw Error("Session not initialized!");return e.location}i(Js,"cc");function Zs(){return l(this,null,function*(){let e=I().getUserInfo(),t=Pa();return e?.session?.sessionType==="anonymous"&&!t?(I().getLogger().info("[clientsdk] signOut Valid Anon Session",e),e):(I().clearUserInfo(),yield nt("user.anonymousLogin")(!0))})}i(Zs,"lc");function Qs(){return l(this,null,function*(){yield sV(),I().clearUserInfo(),I().dispatchSessionEvent($e.SESSION_STATE,{eventType:"session"})})}i(Qs,"uc");function Jd({type:e,attributes:t}){return{[e]:t}}i(Jd,"dc");function kn(){return l(this,null,function*(){try{let e=I().getDeviceMetadata();if(!e)return Promise.reject("could not find the device info");let t=Jd(e),r=yield uV({devicePlatform:e.platform,deviceAttributes:t,grantVersion:"v2",tenant:e.tenant});return I().setDeviceGrant(r),I().getLogger().info("[deviceGrant] fetched device grant"),r}catch(e){return Promise.reject(e)}})}i(kn,"$");function pR(){return l(this,null,function*(){try{let e=yield lV();return I().setDeviceGrant(e),I().getLogger().info("[deviceGrant] migrated device grant"),e}catch(e){return I().getLogger().error("Error migrating device grant",e),kn()}})}i(pR,"fc");var hR="LAST_DEVICE_GRANT_REFRESH_TIMESTAMP_KEY";function gR(){return l(this,null,function*(){let e=z(),t=I().getClientStorage(),r=I().getDeviceGrant(),n=yield t.getItem(hR),a=nt("time.systemTime").now();return!e?.extras.minIntervalBetweenDeviceGrantRefreshes||!n||!r||new Date(r.refreshGrantExpiresAt).getTime()-a.getTime()<0?!0:a.getTime()-Number(n)>Dt(e.extras.minIntervalBetweenDeviceGrantRefreshes,a)})}i(gR,"mc");function yR(e){return l(this,null,function*(){try{let t=I().getClientStorage(),r=I().getDeviceMetadata(),n=nt("time.systemTime"),a=I().getLogger();if(!r)return a.warn("could not find the device metadata"),a.info("returning stored device grant..."),I().getAndMigrateDeviceGrantStorage();if(!(yield gR()))return a.warn("minimum interval between device grant refreshes not reached"),a.info("returning stored device grant..."),I().getAndMigrateDeviceGrantStorage();let o=yield dV({refreshGrant:e,deviceAttributes:Jd(r)});return I().setDeviceGrant(o),yield t.setItem(hR,n.now().getTime().toString()),a.info("device grant refreshed successfully"),o}catch(t){I().getLogger().error("Error refreshing device grant",t);let r=t;return r.status===401||r.status===403?kn():I().getAndMigrateDeviceGrantStorage()}})}i(yR,"hc");function ec(){return l(this,null,function*(){let e=yield I().getAndMigrateDeviceGrantStorage();if(!e)return kn();let t=nt("time.systemTime");return new Date(e.grantExpiresAt).getTime()<t.now().getTime()?kn():e.grantVersion===null||e.grantVersion==="v1"?pR():yR(e.refreshGrant)})}i(ec,"gc");function tc(e){return l(this,null,function*(){try{let t=yield mV(e);return I().setDeviceGrant(t),t}catch(t){return I().getLogger().error("Error verifying authentication device grant",t),Promise.reject(t)}})}i(tc,"_c");function rc(e){return l(this,null,function*(){try{let t=yield IV(e);I().setVehicleProfileGrant(t.vehicleProfileGrant)}catch(t){I().getLogger().error("Error creating device profile",t),Promise.reject(t)}})}i(rc,"vc");var PV=it({name:"user",onLoad:i(()=>{S("user.getAnonymousSession",Qi),S("user.getAuthenticatedSession",nr),S("user.migrateSession",Ls),S("user.refreshSession",Bs),S("user.refreshToken",Kh),S("user.anonymousLogin",Os),S("user.login",xs),S("user.signOut",Zs),S("user.revokeSessions",Qs),S("user.createUser",Us),S("user.createUserV2",Fs),S("user.status",Hs),S("user.identity",ea),S("user.getIdentityId",$s),S("user.issueCastingGrant",Ch),S("user.magicLinkRedeem",_s),S("user.initializeOTP",qs),S("user.authenticateOTP",Vs),S("user.authenticateIdentityGrant",Ms),S("user.startPasskey",js),S("user.authenticatePasskey",Ks),S("user.isPasskeySupported",Ys),S("user.account",Eh),S("user.updateAccount",wh),S("user.getProfile",Mh),S("user.getUserProfile",Uh),S("user.updateProfile",Fh),S("user.bypassTastePickingPreference",Bh),S("user.changeHandleToEmailHandle",vh),S("user.updatePassword",bh),S("user.updatePhoneNumber",Sh),S("user.getDeviceId",Xs),S("user.getDeviceGrant",ec),S("user.getLastKnownLocation",Js),S("user.getRecordOfSale",_h),S("user.getUserInfo",Ws),S("user.userCodeAuthenticate",Ns),S("user.userCodeAuthorize",Th),S("user.userCodeGenerate",Ah),S("user.linkCodeAuthorize",kh),S("user.checkSalStatus",qh),S("user.b2bTrialClaim",Oh),S("user.createDriverProfile",rc),S("user.createAuthenticationChallenge",Ih),S("user.verifyAuthenticationChallenge",tc),S("user.createDeviceSession",Ds),S("user.recordPrivacyOptionByIdentityId",xh),S("user.authenticateMagicLink",Gs),S("user.delete",Nh),S("user.oauthThirdParty",Vh),S("user.getStatusForSignup",Ph),S("user.sample",Ps),S("user.createSubmissionContact",Gh),S("user.getSubmissionContact",zh),S("user.preaccessCreate",Rh),S("user.recordsLink",Dh),S("user.recordsStatus",Lh)},"onLoad"),onStart:i(()=>({anonymousLogin:Os,getAnonymousSession:Qi,getAuthenticatedSession:nr,login:xs,migrateSession:Ls,createUser:Us,createUserV2:Fs,refreshSession:Bs,refreshToken:Kh,startPasskey:js,authenticatePasskey:Ks,status:Hs,signOut:Zs,revokeSessions:Qs,initializeOTP:qs,authenticateOTP:Vs,authenticateIdentityGrant:Ms,isPasskeySupported:Ys,changeHandleToEmailHandle:vh,updatePassword:bh,updatePhoneNumber:Sh,account:Eh,updateAccount:wh,getProfile:Mh,getUserProfile:Uh,bypassTastePickingPreference:Bh,updateProfile:Fh,identity:ea,getIdentityId:$s,getDeviceId:Xs,getDeviceGrant:ec,getLastKnownLocation:Js,getRecordOfSale:_h,issueCastingGrant:Ch,getUserInfo:Ws,magicLinkRedeem:_s,sessionEvents:I().getSessionEventBus(),tokenChangeEvents:I().getTokenChangeEventBus(),userCodeAuthenticate:Ns,userCodeAuthorize:Th,userCodeGenerate:Ah,linkCodeAuthorize:kh,checkSalStatus:qh,getStatusForSignup:Ph,createSubmissionContact:Gh,getSubmissionContact:zh,b2bTrialClaim:Oh,createDriverProfile:rc,createAuthenticationChallenge:Ih,verifyAuthenticationChallenge:tc,createDeviceSession:Ds,recordPrivacyOptionByIdentityId:xh,authenticateMagicLink:Gs,delete:Nh,oauthThirdParty:Vh,sample:Ps,preaccessCreate:Rh,recordsLink:Dh,recordsStatus:Lh}),"onStart")}),NV=it({name:"userEvents",onLoad:i(()=>{S("userEvents.addEvent",Zi),S("userEvents.incrementClock",ks),S("userEvents.flushEvents",As)},"onLoad"),onStart:i(()=>({addEvent:Zi,incrementClock:ks,flushEvents:As}),"onStart")}),OV={version:"6.10.0"},Zd=typeof Buffer=="function",GY=typeof TextDecoder=="function"?new TextDecoder:void 0,Hh=typeof TextEncoder=="function"?new TextEncoder:void 0,RV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
10+/=",pn=Array.prototype.slice.call(RV),zY=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(pn),St=String.fromCharCode.bind(String),jY=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),DV=i(e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),"_mkUriSafe"),LV=i(e=>{let t,r,n,a,o="",s=e.length%3;for(let c=0;c<e.length;){if((r=e.charCodeAt(c++))>255||(n=e.charCodeAt(c++))>255||(a=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|a,o+=pn[t>>18&63]+pn[t>>12&63]+pn[t>>6&63]+pn[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},"btoaPolyfill"),vR=typeof btoa=="function"?e=>btoa(e):Zd?e=>Buffer.from(e,"binary").toString("base64"):LV,xV=Zd?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(St.apply(null,e.subarray(r,r+4096)));return vR(t.join(""))},MV=i(e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?St(192|t>>>6)+St(128|t&63):St(224|t>>>12&15)+St(128|t>>>6&63)+St(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return St(240|t>>>18&7)+St(128|t>>>12&63)+St(128|t>>>6&63)+St(128|t&63)}},"cb_utob"),UV=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,FV=i(e=>e.replace(UV,MV),"utob"),Yh=Zd?e=>Buffer.from(e,"utf8").toString("base64"):Hh?e=>xV(Hh.encode(e)):e=>vR(FV(e)),BV=i((e,t=!1)=>t?DV(Yh(e)):Yh(e),"encode");function bR(e){function t(b){return l(this,arguments,function*({clientStorageProvider:r,clientSyncStorageProvider:n,cookieStorageProvider:a,device:o,driver:s,extraClientSdkMiddlewares:c,fetchConfigOptions:d,initialConfig:u,logger:f,observabilityObj:v,onSdkConfigUpdate:p,shouldRetryRequest:m,signChallenge:h,webAuthnProvider:y}){let _=yield Gd({initialConfig:u,onSdkConfigUpdate:p,cookieStorageProvider:a,clientStorageProvider:r,clientSyncStorageProvider:n,deviceMetadata:o.metadata,logger:f,observabilityObj:v,extraClientSdkMiddlewares:c,fetchConfigOptions:d,webAuthnProvider:y});_&&o.location&&_.setLocationCoordinates(o.location),_&&m&&_.setRetryConditionHandler(m);try{let N=yield e(_),O=(yield N.user.createAuthenticationChallenge({deviceIdentifier:{deviceId:o.id}})).challenge.str,P=yield h(O);return yield N.user.verifyAuthenticationChallenge({deviceIdentifier:{deviceId:o.id},challenge:{str:O},signedChallenge:P}),yield N.user.createDriverProfile({language:s.language,oemId:s.oemId,primaryProfile:s.primaryProfile}),yield N.user.createDeviceSession({location:o.location}),N}catch(N){throw _.getLogger().error("Error creating device session",N),N}})}return i(t,"t"),t}i(bR,"re");function SR(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(SR,"ie");function ER(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(ER,"ae");function wR(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(wR,"oe");function nc(){return{headers:[],labels:["id","version"],queryParams:[{paramName:"enableProdMode",fieldName:"enableProdMode",isRequired:!1},{paramName:"clientContext",fieldName:"clientContext",isRequired:!1},{paramName:"qaExpOverrides",fieldName:"qaExpOverrides",isRequired:!1},{paramName:"expMode",fieldName:"expMode",isRequired:!1},{paramName:"tags",fieldName:"tags",isRequired:!1}],payloadName:void 0}}i(nc,"se");function CR(){return{headers:[],labels:[],queryParams:[{paramName:"locale",fieldName:"locale",isRequired:!1},{paramName:"dictionaries",fieldName:"dictionaries",isRequired:!0}],payloadName:void 0}}i(CR,"ce");function IR(){return{headers:[{headerName:"x-sxm-action-id",fieldName:"action",isRequired:!1},{headerName:"x-sxm-agent-id",fieldName:"agentId",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1}],labels:["interactiveId","submissionId"],queryParams:[],payloadName:void 0}}i(IR,"le");function TR(){return{headers:[{headerName:"x-sxm-action-id",fieldName:"action",isRequired:!1},{headerName:"x-sxm-agent-id",fieldName:"agentId",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1}],labels:["interactiveId"],queryParams:[{paramName:"accessType",fieldName:"accessType",isRequired:!1}],payloadName:"submission"}}i(TR,"ue");function AR(){return{headers:[{headerName:"x-sxm-action-id",fieldName:"action",isRequired:!1},{headerName:"x-sxm-agent-id",fieldName:"agentId",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1}],labels:["interactiveId"],queryParams:[{paramName:"accessType",fieldName:"accessType",isRequired:!1}],payloadName:"submission"}}i(AR,"de");function kR(){return{headers:[{headerName:"x-sxm-action-id",fieldName:"action",isRequired:!1},{headerName:"x-sxm-agent-id",fieldName:"agentId",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1}],labels:[],queryParams:[{paramName:"accessType",fieldName:"accessType",isRequired:!1}],payloadName:void 0}}i(kR,"fe");function _R(){return{headers:[{headerName:"x-sxm-preview",fieldName:"isPreview",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-request-id",fieldName:"requestId",isRequired:!1},{headerName:"x-sxm-use-test-content",fieldName:"useTestContent",isRequired:!1}],labels:["pageEntityType","pageEntityId"],queryParams:[],payloadName:"data"}}i(_R,"pe");function PR(){return{headers:[{headerName:"x-sxm-preview",fieldName:"isPreview",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-request-id",fieldName:"requestId",isRequired:!1},{headerName:"x-sxm-use-test-content",fieldName:"useTestContent",isRequired:!1}],labels:["pageEntityType","pageEntityId","containerId"],queryParams:[],payloadName:"data"}}i(PR,"me");function NR(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(NR,"he");function OR(){return{headers:[],labels:[],queryParams:[{paramName:"accessType",fieldName:"accessType",isRequired:!1}],payloadName:void 0}}i(OR,"ge");function RR(){return{headers:[{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1}],labels:["entityId"],queryParams:[{paramName:"entitled",fieldName:"entitled",isRequired:!0},{paramName:"size",fieldName:"size",isRequired:!0},{paramName:"preferredImageVariant",fieldName:"preferredImageVariant",isRequired:!1}],payloadName:void 0}}i(RR,"_e");function DR(){return{headers:[],labels:[],queryParams:[{paramName:"entityTypes",fieldName:"entityTypes",isRequired:!1},{paramName:"supportedEntityTypes",fieldName:"supportedEntityTypes",isRequired:!1}
10,{paramName:"entityId",fieldName:"entityId",isRequired:!1},{paramName:"locale",fieldName:"locale",isRequired:!1},{paramName:"unentitledContent",fieldName:"unentitledContent",isRequired:!1}],payloadName:void 0}}i(DR,"ve");function LR(){return{headers:[],labels:[],queryParams:[{paramName:"locale",fieldName:"locale",isRequired:!1}],payloadName:void 0}}i(LR,"ye");function xR(){return{headers:[{headerName:"x-sxm-preview",fieldName:"isPreview",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-request-id",fieldName:"requestId",isRequired:!1},{headerName:"x-sxm-use-test-content",fieldName:"useTestContent",isRequired:!1}],labels:["pageEntityType","pageEntityId","containerId"],queryParams:[{paramName:"q",fieldName:"containerViewInput",isRequired:!1}],payloadName:void 0}}i(xR,"be");function MR(){return{headers:[{headerName:"x-sxm-preview",fieldName:"isPreview",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-request-id",fieldName:"requestId",isRequired:!1},{headerName:"x-sxm-use-test-content",fieldName:"useTestContent",isRequired:!1}],labels:["pageEntityType","pageEntityId","containerId"],queryParams:[{paramName:"q",fieldName:"containerViewInput",isRequired:!1}],payloadName:void 0}}i(MR,"xe");function UR(){return{headers:[{headerName:"x-sxm-preview",fieldName:"isPreview",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-request-id",fieldName:"requestId",isRequired:!1},{headerName:"x-sxm-use-test-content",fieldName:"useTestContent",isRequired:!1}],labels:["pageEntityType","pageEntityId"],queryParams:[{paramName:"q",fieldName:"viewInput",isRequired:!1}],payloadName:void 0}}i(UR,"Se");function FR(){return{headers:[{headerName:"x-sxm-preview",fieldName:"isPreview",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-request-id",fieldName:"requestId",isRequired:!1},{headerName:"x-sxm-use-test-content",fieldName:"useTestContent",isRequired:!1}],labels:["pageEntityType","pageEntityId"],queryParams:[{paramName:"q",fieldName:"viewInput",isRequired:!1}],payloadName:void 0}}i(FR,"Ce");function BR(){return{headers:[],labels:["contentEntityType","contentEntityId"],queryParams:[{paramName:"itemEntityIds",fieldName:"itemEntityIds",isRequired:!0}],payloadName:void 0}}i(BR,"we");function qR(){return{headers:[],labels:[],queryParams:[{paramName:"deviceClass",fieldName:"deviceClass",isRequired:!1},{paramName:"locale",fieldName:"locale",isRequired:!1}],payloadName:void 0}}i(qR,"Te");function VR(){return{headers:[],labels:[],queryParams:[{paramName:"unentitledContent",fieldName:"unentitledContent",isRequired:!1},{paramName:"action",fieldName:"action",isRequired:!1}],payloadName:void 0}}i(VR,"Ee");function GR(){return{headers:[],labels:[],queryParams:[{paramName:"setStyle",fieldName:"setStyle",isRequired:!1},{paramName:"includeEpisodeTypes",fieldName:"includeEpisodeTypes",isRequired:!1},{paramName:"supportedMediaType",fieldName:"supportedMediaType",isRequired:!1},{paramName:"preferredImageVariant",fieldName:"preferredImageVariant",isRequired:!1},{paramName:"containerId",fieldName:"containerId",isRequired:!1},{paramName:"locale",fieldName:"locale",isRequired:!1},{paramName:"maxResponses",fieldName:"maxResponses",isRequired:!1},{paramName:"responseThreshold",fieldName:"responseThreshold",isRequired:!1},{paramName:"unentitledContent",fieldName:"unentitledContent",isRequired:!1}],payloadName:void 0}}i(GR,"De");function zR(){return{headers:[{headerName:"x-sxm-preview",fieldName:"isPreview",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-use-test-content",fieldName:"useTestContent",isRequired:!1}],labels:["entityType","entityId"],queryParams:[{paramName:"maxSetSize",fieldName:"maxSetSize",isRequired:!1},{paramName:"enablePrimarySecondary",fieldName:"enablePrimarySecondary",isRequired:!1},{paramName:"supportedMediaType",fieldName:"supportedMediaType",isRequired:!1},{paramName:"enableEntityPagePickFeed",fieldName:"enableEntityPagePickFeed",isRequired:!1},{paramName:"maxPageSize",fieldName:"maxPageSize",isRequired:!1},{paramName:"locale",fieldName:"locale",isRequired:!1},{paramName:"pageVariant",fieldName:"pageVariant",isRequired:!1},{paramName:"unentitledContent",fieldName:"unentitledContent",isRequired:!1},{paramName:"preferredImageVariant",fieldName:"preferredImageVariant",isRequired:!1}],payloadName:void 0}}i(zR,"Oe");function jR(){return{headers:[{headerName:"x-sxm-experience-orchestration-id",fieldName:"experienceOrchestrationId",isRequired:!1}],labels:[],queryParams:[{paramName:"entityType",fieldName:"entity",isRequired:!1}
10,{paramName:"entityId",fieldName:"entityId",isRequired:!1},{paramName:"responseThreshold",fieldName:"responseThreshold",isRequired:!1},{paramName:"setStyle",fieldName:"setStyle",isRequired:!1},{paramName:"supportedMediaType",fieldName:"supportedMediaType",isRequired:!1},{paramName:"preferredImageVariant",fieldName:"preferredImageVariant",isRequired:!1},{paramName:"currentPage",fieldName:"currentPage",isRequired:!0},{paramName:"pageLimit",fieldName:"pageLimit",isRequired:!1},{paramName:"containerId",fieldName:"containerId",isRequired:!0},{paramName:"contentVersion",fieldName:"contentVersion",isRequired:!1},{paramName:"useCuratedContext",fieldName:"useCuratedContext",isRequired:!1},{paramName:"isTest",fieldName:"isTest",isRequired:!1},{paramName:"locale",fieldName:"locale",isRequired:!1},{paramName:"supportedEntityTypes",fieldName:"supportedEntityTypes",isRequired:!1},{paramName:"unentitledContent",fieldName:"unentitledContent",isRequired:!1},{paramName:"excludeMatureChannels",fieldName:"excludeMatureChannels",isRequired:!1},{paramName:"nowPlayingId",fieldName:"nowPlayingId",isRequired:!1},{paramName:"nowPlayingType",fieldName:"nowPlayingType",isRequired:!1},{paramName:"deviceLocalTimeZone",fieldName:"deviceLocalTimeZone",isRequired:!1},{paramName:"supportedSatConnectivity",fieldName:"supportedSatConnectivity",isRequired:!1},{paramName:"supportedCampaigns",fieldName:"supportedCampaigns",isRequired:!1},{paramName:"excludedContentKinds",fieldName:"excludedContentKinds",isRequired:!1},{paramName:"accessType",fieldName:"accessType",isRequired:!1},{paramName:"excludeMatureContent",fieldName:"excludeMatureContent",isRequired:!1}],payloadName:void 0}}i(jR,"ke");function KR(){return{headers:[],labels:["contentEntityType","contentEntityId"],queryParams:[{paramName:"itemEntityIds",fieldName:"itemEntityIds",isRequired:!0}],payloadName:void 0}}i(KR,"Ae");function HR(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(HR,"je");function YR(){return{headers:[],labels:[],queryParams:[{paramName:"includeEpisodeTypes",fieldName:"includeEpisodeTypes",isRequired:!1},{paramName:"supportedMediaType",fieldName:"supportedMediaType",isRequired:!1},{paramName:"preferredImageVariant",fieldName:"preferredImageVariant",isRequired:!1},{paramName:"containerId",fieldName:"containerId",isRequired:!1},{paramName:"locale",fieldName:"locale",isRequired:!1},{paramName:"unentitledContent",fieldName:"unentitledContent",isRequired:!1}],payloadName:void 0}}i(YR,"Me");function WR(){return{headers:[{headerName:"x-sxm-experience-orchestration-id",fieldName:"experienceOrchestrationId",isRequired:!1}],labels:[],queryParams:[{paramName:"supportedMediaType",fieldName:"supportedMediaType",isRequired:!1},{paramName:"preferredImageVariant",fieldName:"preferredImageVariant",isRequired:!1},{paramName:"currentPage",fieldName:"currentPage",isRequired:!0},{paramName:"pageLimit",fieldName:"pageLimit",isRequired:!1},{paramName:"contentVersion",fieldName:"contentVersion",isRequired:!1},{paramName:"isTest",fieldName:"isTest",isRequired:!1},{paramName:"supportedEntityTypes",fieldName:"supportedEntityTypes",isRequired:!1},{paramName:"excludeMatureChannels",fieldName:"excludeMatureChannels",isRequired:!1},{paramName:"nowPlayingId",fieldName:"nowPlayingId",isRequired:!1},{paramName:"nowPlayingType",fieldName:"nowPlayingType",isRequired:!1},{paramName:"deviceLocalTimeZone",fieldName:"deviceLocalTimeZone",isRequired:!1},{paramName:"supportedSatConnectivity",fieldName:"supportedSatConnectivity",isRequired:!1},{paramName:"supportedCampaigns",fieldName:"supportedCampaigns",isRequired:!1},{paramName:"excludedContentKinds",fieldName:"excludedContentKinds",isRequired:!1},{paramName:"accessType",fieldName:"accessType",isRequired:!1},{paramName:"excludeMatureContent",fieldName:"excludeMatureContent",isRequired:!1}],payloadName:void 0}}i(WR,"Ne");function $R(){return{headers:[{headerName:"x-sxm-experience-orchestration-id",fieldName:"experienceOrchestrationId",isRequired:!1}],labels:[],queryParams:[{paramName:"supportedMediaType",fieldName:"supportedMediaType",isRequired:!1},{paramName:"preferredImageVariant",fieldName:"preferredImageVariant",isRequired:!1}
10,{paramName:"currentPage",fieldName:"currentPage",isRequired:!0},{paramName:"pageLimit",fieldName:"pageLimit",isRequired:!1},{paramName:"contentVersion",fieldName:"contentVersion",isRequired:!1},{paramName:"isTest",fieldName:"isTest",isRequired:!1},{paramName:"supportedEntityTypes",fieldName:"supportedEntityTypes",isRequired:!1},{paramName:"excludeMatureChannels",fieldName:"excludeMatureChannels",isRequired:!1},{paramName:"nowPlayingId",fieldName:"nowPlayingId",isRequired:!1},{paramName:"nowPlayingType",fieldName:"nowPlayingType",isRequired:!1},{paramName:"deviceLocalTimeZone",fieldName:"deviceLocalTimeZone",isRequired:!1},{paramName:"supportedSatConnectivity",fieldName:"supportedSatConnectivity",isRequired:!1},{paramName:"supportedCampaigns",fieldName:"supportedCampaigns",isRequired:!1},{paramName:"excludedContentKinds",fieldName:"excludedContentKinds",isRequired:!1},{paramName:"accessType",fieldName:"accessType",isRequired:!1},{paramName:"excludeMatureContent",fieldName:"excludeMatureContent",isRequired:!1}],payloadName:void 0}}i($R,"Pe");function XR(){return{headers:[],labels:[],queryParams:[{paramName:"activityType",fieldName:"activityType",isRequired:!0}],payloadName:void 0}}i(XR,"Fe");function JR(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(JR,"Ie");function ZR(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(ZR,"Le");function QR(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(QR,"Re");function e0(){return{headers:[],labels:[],queryParams:[{paramName:"accessType",fieldName:"accessType",isRequired:!1}],payloadName:void 0}}i(e0,"ze");function t0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(t0,"Be");function r0(){return{headers:[{headerName:"x-sxm-vehicle-timestamp",fieldName:"vehicleTimestamp",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(r0,"Ve");function n0(){return{headers:[{headerName:"x-sxm-client-supplied-ip",fieldName:"clientSuppliedIpAddress",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(n0,"He");function i0(){return{headers:[{headerName:"x-sxm-radio-id",fieldName:"radioId",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(i0,"Ue");function a0(){return{headers:[{headerName:"x-sxm-radio-id",fieldName:"radioId",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(a0,"We");function o0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(o0,"Ge");function s0(){return{headers:[],labels:["keyId"],queryParams:[],payloadName:void 0}}i(s0,"Ke");function c0(){return{headers:[],labels:["entityId","entityType"],queryParams:[],payloadName:void 0}}i(c0,"qe");function d0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(d0,"Je");function l0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(l0,"Ye");function u0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(u0,"Xe");function m0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(m0,"Ze");function f0(){return{headers:[{headerName:"x-sxm-action-id",fieldName:"action",isRequired:!1},{headerName:"x-sxm-source-timestamp",fieldName:"sourceTimestamp",isRequired:!1},{headerName:"x-sxm-forwarded-host",fieldName:"forwardedHost",isRequired:!1},{headerName:"x-sxm-listener-id",fieldName:"listenerId",isRequired:!1}],labels:[],queryParams:[],payloadName:"body"}}i(f0,"Qe");function p0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(p0,"$e");function h0(){return{headers:[],labels:["eventId"],queryParams:[],payloadName:void 0}}i(h0,"et");function g0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(g0,"tt");function y0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(y0,"nt");function v0(){return{headers:[],labels:["eventId"],queryParams:[],payloadName:void 0}}i(v0,"rt");function b0(){return{headers:[{headerName:"x-sxm-action-id",fieldName:"action",isRequired:!1},{headerName:"x-sxm-source-timestamp",fieldName:"sourceTimestamp",isRequired:!1},{headerName:"x-sxm-forwarded-host",fieldName:"forwardedHost",isRequired:!1},{headerName:"x-sxm-listener-id",fieldName:"listenerId",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(b0,"it");function S0(){return{headers:[],labels:["entityId","entityType"],queryParams:[],payloadName:void 0}}i(S0,"at");function E0(){return{headers:[],labels:[],queryParams:[],payloadName:void 0}}i(E0,"ot");function w0(){return{headers:[{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-device-class",fieldName:"deviceClass",isRequired:!1},{headerName:"x-sxm-bypass-cache",fieldName:"bypassCache",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(w0,"st");function C0(){return{headers:[{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-device-class",fieldName:"deviceClass",isRequired:!1},{headerName:"x-sxm-bypass-cache",fieldName:"bypassCache",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(C0,"ct");function I0(){return{headers:[{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-device-class",fieldName:"deviceClass",isRequired:!1},{headerName:"x-sxm-bypass-cache",fieldName:"bypassCache",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(I0,"lt");function T0(){return{headers:[],labels:[],queryParams:[{paramName:"deviceClass",fieldName:"deviceClass",isRequired:!1}],payloadName:void 0}}i(T0,"ut");function A0(){return{headers:[{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(A0,"dt");function k0(){return{headers:[{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-device-class",fieldName:"deviceClass",isRequired:!1},{headerName:"x-sxm-bypass-cache",fieldName:"bypassCache",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(k0,"ft");function _0(){return{headers:[{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-device-class",fieldName:"deviceClass",isRequired:!1},{headerName:"x-sxm-bypass-cache",fieldName:"bypassCache",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(_0,"pt");function P0(){return{headers:[{headerName:"x-sxm-device-class",fieldName:"deviceClass",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1}
10,{headerName:"x-sxm-clientAppVersion",fieldName:"clientAppVersion",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(P0,"mt");function N0(){return{headers:[{headerName:"x-sxm-device-class",fieldName:"deviceClass",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-clientAppVersion",fieldName:"clientAppVersion",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(N0,"ht");function O0(){return{headers:[{headerName:"x-sxm-device-class",fieldName:"deviceClass",isRequired:!1},{headerName:"x-sxm-test-id",fieldName:"testId",isRequired:!1},{headerName:"x-sxm-clientAppVersion",fieldName:"clientAppVersion",isRequired:!1}],labels:[],queryParams:[],payloadName:void 0}}i(O0,"gt");function qn(e){return(...t)=>{let r=new AbortController;return{get isCancelled(){return r.signal.aborted},cancel:i(()=>{r.signal.aborted||r.abort()},"cancel"),execute:qt(()=>l(null,null,function*(){try{return yield e(...t,r.signal)}catch(n){throw r.signal.aborted?n instanceof Tn?n:new Tn(void 0,n instanceof Error?n.message:void 0):n}}))}}}i(qn,"b");var R0="clientorch";function La(){return I().getDomainConfig(R0)}i(La,"S");function D0(){return R0}i(D0,"_t");function xa(e){return ut({getDomainKey:D0,getEndpointKey:i(()=>e,"getEndpointKey")})}i(xa,"C");var Wh=i(e=>l(null,null,function*(){let t=E({domainConfig:La(),endpointKey:"poll",input:e,operationFields:wR()}),{data:r}=yield xa("poll").request(t);return r}),"w"),$h=i(()=>l(null,null,function*(){let e=E({domainConfig:La(),endpointKey:"getFeatureTipsEnabled",input:{},operationFields:SR()}),{data:t}=yield xa("getFeatureTipsEnabled").request(e);return t}),"T"),Xh=i(e=>l(null,null,function*(){let t=E({domainConfig:La(),endpointKey:"putFeatureTipsEnabled",input:e,operationFields:ER()}),{data:r}=yield xa("putFeatureTipsEnabled").request(t);return r}),"E"),qV=it({name:"clientorch",onLoad:i(()=>{S("clientorch.getFeatureTipsEnabled",$h),S("clientorch.poll",Wh),S("clientorch.putFeatureTipsEnabled",Xh)},"onLoad"),onStart:i(()=>({getFeatureTipsEnabled:$h,poll:Wh,putFeatureTipsEnabled:Xh}),"onStart")}),L0="config";function Qd(){return I().getDomainConfig(L0)}i(Qd,"O");function x0(){return L0}i(x0,"yt");function el(e){return ut({getDomainKey:x0,getEndpointKey:i(()=>e,"getEndpointKey")})}i(el,"k");var VV=i(e=>{let t=Object.entries(e);if(t.length)return t.map(([r,n])=>`${r}=${n.join(",")}`).join(";")},"bt"),GV=i(e=>{let t=Object.entries(e);if(!t.length)return;let r=t.map(([n,a])=>`${encodeURIComponent(n)}=${encodeURIComponent(a)}`);return encodeURIComponent(r.join(";"))},"xt"),tl=i((e,t)=>l(null,null,function*(){let r=Qd(),f=e,{clientContext:n,qaExpOverrides:a}=f,o=st(f,["clientContext","qaExpOverrides"]),s;n===null?s=null:n&&(s=GV(n));let c;a===null?c=null:a&&(c=VV(a));let d=E(t==="renderApplicationConfigV2WithSession"||t==="renderApplicationConfigV2WithSessionInternal"?{domainConfig:r,endpointKey:t,input:C(g({},o),{clientContext:s,qaExpOverrides:c}),operationFields:nc()}:{domainConfig:r,endpointKey:t,input:o,operationFields:nc()}),{data:u}=yield el(t).request(d);return u}),"A"),Jh=i((e,t="v1")=>l(null,null,function*(){let r=t==="v2"?"renderApplicationConfigV2WithSession":"renderApplicationConfigWithSession";return t==="v1"&&I().getLogger().warn("config v1 support is deprecated and will be removed in a future release"),tl(e,r)}),"j"),zV=i(()=>l(null,null,function*(){let e=I(),t=e.getFetchConfigOptions(),r=e.getLogger();if(!t){r.info("fetch config options not found. skipping internal session config call...");return}try{r.info("getting session config...");let n=yield tl(t,"renderApplicationConfigV2WithSessionInternal");return r.info("session config caught!"),e.getSessionConfigEventBus().emit({type:"FETCH_SESSION_CONFIG_SUCCEEDED",config:n,timestamp:e.getClock().now().getTime()}),n}catch(n){r.info("failed to get config internally...",n),e.getSessionConfigEventBus().emit({type:"FETCH_SESSION_CONFIG_FAILED",error:n});return}}),"St"),Zh=i(()=>l(null,null,function*(){let e=I().getFetchConfigOptions();if(!e)throw Error("fetch config options not found");return tl(e,"renderApplicationConfigV2WithSession")}),"M"),jV=i(e=>l(null,null,function*(){let t=E({domainConfig:Qd(),endpointKey:"getLocalizations",input:e,operationFields:CR()}),{data:r}=yield el("getLocalizations").request(t);return r}),"Ct");function ic(n){return l(this,arguments,function*({locale:e,dictionaryKeys:t,dictionaryVersions:r}){return jV({locale:e,dictionaries:`${t.filter(a=>r[a]).map(a=>`${a}:${r[a]}`).join("|")}`})})}i(ic,"N");var KV=it({name:"config",onLoad:i(()=>{S("config.renderApplicationConfigWithSession",Jh),S("config.getLocalizations",ic),S("config.fetchConfigs",Zh
10),P_("_config.renderApplicationConfigWithSession",zV)},"onLoad"),onStart:i(()=>({sessionConfigEvents:I().getSessionConfigEventBus(),renderApplicationConfigWithSession:Jh,getLocalizations:ic,fetchConfigs:Zh}),"onStart")}),M0="content";function de(){return I().getDomainConfig(M0)}i(de,"F");function U0(){return M0}i(U0,"Tt");function le(e){return ut({getDomainKey:U0,getEndpointKey:i(()=>e,"getEndpointKey")})}i(le,"I");function rl(e,t=!1){let r;return typeof globalThis.window?.btoa=="function"?r=globalThis.window.btoa(e):typeof globalThis.Buffer?.from=="function"&&(r=globalThis.Buffer.from(e).toString("base64")),r=BV(e),t&&(r=r.replace(/\+/g,"-").replace(/\//g,"_").replace(/={0,5}$/,"")),r}i(rl,"L");function Vn(e){return`1.${rl(JSON.stringify(e),!0)}`}i(Vn,"R");var Qh=i(e=>l(null,null,function*(){let s=e,{noCache:t,viewInput:r}=s,n=st(s,["noCache","viewInput"]),a=E({domainConfig:de(),endpointKey:"getBrowsePageView",input:C(g({},n),{viewInput:Vn(r)}),operationFields:UR()});t&&(a.headers??(a.headers={}),a.headers["Cache-Control"]="no-cache");let{data:o}=yield le("getBrowsePageView").request(a);return o}),"z"),eg=i(e=>l(null,null,function*(){let{viewInput:t}=e,r=E({domainConfig:de(),endpointKey:"getBrowsePageViewV2",input:C(g({},e),{viewInput:Vn(t)}),operationFields:FR()}),{data:n}=yield le("getBrowsePageViewV2").request(r);return n}),"B"),tg=i(e=>l(null,null,function*(){let s=e,{noCache:t,containerViewInput:r}=s,n=st(s,["noCache","containerViewInput"]),a=E({domainConfig:de(),endpointKey:"getBrowseContainerView",input:C(g({},n),{containerViewInput:Vn(r)}),operationFields:xR()});t&&(a.headers??(a.headers={}),a.headers["Cache-Control"]="no-cache");let{data:o}=yield le("getBrowseContainerView").request(a);return o}),"V"),rg=i(e=>l(null,null,function*(){let{containerViewInput:t}=e,r=E({domainConfig:de(),endpointKey:"getBrowseContainerViewV2",input:C(g({},e),{containerViewInput:Vn(t)}),operationFields:MR()}),{data:n}=yield le("getBrowseContainerViewV2").request(r);return n}),"Et"),ng=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getBrowseAtEdgePageViewV2",input:e,operationFields:LR()}),{data:r}=yield le("getBrowseAtEdgePageViewV2").request(t);return r}),"Dt"),ig=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"browsePageViewV2",input:e,operationFields:_R()}),{data:r}=yield le("browsePageViewV2").request(t);return r}),"H"),ag=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"browseContainerViewV2",input:e,operationFields:PR()}),{data:r}=yield le("browseContainerViewV2").request(t);return r}),"Ot"),og=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getPage",input:e,operationFields:zR()}),{data:r}=yield le("getPage").request(t);return r}),"kt"),sg=i(r=>l(null,[r],function*({containerUrl:e,supportedEntityTypes:t}){let n=E({domainConfig:de(),endpointKey:"getContainer",input:{supportedEntityTypes:t},operationFields:{queryParams:[{paramName:"supportedEntityTypes",fieldName:"supportedEntityTypes"}]}});n.url=n.url?.replace("{containerUrl}",e);let{data:a}=yield le("getContainer").request(n);return a}),"At"),cg=i((e,t)=>l(null,null,function*(){let r=de(),n=r?.endPoints?.getSetSegment;if(!r||!n)throw new Kd("getSetSegment");let{data:a}=yield le("getSetSegment").request({method:n?.method,url:n?.href?.replace("{paginationUrl}",e),params:t});return a}),"jt"),dg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getUserProgress",input:e,operationFields:HR()}),{data:r}=yield le("getUserProgress").request(t);return r}),"Mt"),lg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"channelPeek",input:e,operationFields:RR()}),{data:r}=yield le("channelPeek").request(t);return r}),"Nt"),ug=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"removeAllContentActivities",input:e,operationFields:XR()});yield le("removeAllContentActivities").request(t)}),"Pt"),mg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"updateContentActivity",input:e,operationFields:ZR()});yield le("updateContentActivity").request(t)}),"Ft"),fg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getInteractives",input:e,operationFields:kR()}),{data:r}=yield le("getInteractives").request(t);return r}),"It"),pg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"createInteractiveSubmission",input:e,operationFields:AR()}),{data:r}=yield le("createInteractiveSubmission").request(t);return r}),"Lt"),hg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"createInteractivePresignedUrl",input:e,operationFields:TR()}),{data:r}=yield le("createInteractivePresignedUrl").request(t);return r}),"Rt"),gg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"confirmInteractiveSubmissionUpload",input:e,operationFields:IR()});return yield le("confirmInteractiveSubmissionUpload").request(t),{}}),"zt"),yg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"bulkEdit",input:e,operationFields:NR()}),{data:r}=yield le("bulkEdit").request(t);return r}),"Bt"),vg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"bulkEditV2",input:e,operationFields:OR()});yield le("bulkEditV2").request(t)}),"Vt"),bg=i((...t)=>l(null,[...t],function*(e={}){let r=E({domainConfig:de(),endpointKey:"getAllLibraryItems",input:e,operationFields:DR()}),{data:n}=yield le("getAllLibraryItems").request(r);return n}),"Ht"),Sg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getLibraryFilterViews",input:e,operationFields:VR()}),{data:r}=yield le("getLibraryFilterViews").request(t);return r}),"Ut"),Eg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getLibraryFilters",input:e,operationFields:qR()}),{data:r}=yield le("getLibraryFilters").request(t);return r}),"Wt"),wg=i((...t)=>l(null,[...t],function*(e={}
10){let r=E({domainConfig:de(),endpointKey:"getNewEpisodesView",input:e,operationFields:GR()}),{data:n}=yield le("getNewEpisodesView").request(r);return n}),"Gt"),Cg=i((...t)=>l(null,[...t],function*(e={}){let r=E({domainConfig:de(),endpointKey:"getYourEpisodesView",input:e,operationFields:YR()}),{data:n}=yield le("getYourEpisodesView").request(r);return n}),"Kt"),Ig=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"updateLibrary",input:e,operationFields:QR()});yield le("updateLibrary").request(t)}),"qt"),Tg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"updateLibraryV2",input:e,operationFields:e0()});yield le("updateLibraryV2").request(t)}),"Jt"),Ag=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"tastePickerBulkUpdate",input:e,operationFields:JR()});yield le("tastePickerBulkUpdate").request(t)}),"Yt"),kg=i(()=>l(null,null,function*(){let e=E({domainConfig:de(),endpointKey:"updatePinsState",input:{},operationFields:t0()});yield le("updatePinsState").request(e)}),"Xt"),_g=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getPivotingContainer",input:e,operationFields:jR()}),{data:r}=yield le("getPivotingContainer").request(t);return r}),"Zt"),Pg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getYourTastepicks",input:e,operationFields:WR()}),{data:r}=yield le("getYourTastepicks").request(t);return r}),"Qt"),Ng=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getYourTastepicksSet",input:e,operationFields:$R()}),{data:r}=yield le("getYourTastepicksSet").request(t);return r}),"$t"),Og=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getStationFeedback",input:e,operationFields:KR()}),{data:r}=yield le("getStationFeedback").request(t);return r}),"en"),Rg=i(e=>l(null,null,function*(){let t=E({domainConfig:de(),endpointKey:"getFeedback",input:e,operationFields:BR()}),{data:r}=yield le("getFeedback").request(t);return r}),"tn"),HV=it({name:"content",onLoad:i(()=>{S("content.browsePageViewV2",ig),S("content.browseContainerViewV2",ag),S("content.bulkEdit",yg),S("content.bulkEditV2",vg),S("content.channelPeek",lg),S("content.confirmInteractiveSubmissionUpload",gg),S("content.createInteractivePresignedUrl",hg),S("content.createInteractiveSubmission",pg),S("content.getBrowseAtEdgePageViewV2",ng),S("content.getBrowsePageView",Qh),S("content.getBrowsePageViewV2",eg),S("content.getBrowseContainerView",tg),S("content.getBrowseContainerViewV2",rg),S("content.getPage",og),S("content.getPivotingContainer",_g),S("content.getYourTastepicks",Pg),S("content.getYourTastepicksSet",Ng),S("content.getContainer",sg),S("content.getInteractives",fg),S("content.getSetSegment",cg),S("content.getStationFeedback",Og),S("content.getAllLibraryItems",bg),S("content.getLibraryFilterViews",Sg),S("content.getLibraryFilters",Eg),S("content.getNewEpisodesView",wg),S("content.getUserProgress",dg),S("content.getYourEpisodesView",Cg),S("content.updateLibrary",Ig),S("content.updateLibraryV2",Tg),S("content.tastePickerBulkUpdate",Ag),S("content.removeAllContentActivities",ug),S("content.updateContentActivity",mg),S("content.updatePinsState",kg),S("content.getFeedback",Rg)},"onLoad"),onStart:i(()=>({browsePageViewV2:ig,browseContainerViewV2:ag,bulkEdit:yg,bulkEditV2:vg,channelPeek:lg,confirmInteractiveSubmissionUpload:gg,createInteractivePresignedUrl:hg,createInteractiveSubmission:pg,getBrowseAtEdgePageViewV2:ng,getBrowsePageView:Qh,getBrowsePageViewV2:eg,getBrowseContainerView:tg,getBrowseContainerViewV2:rg,getPage:og,getPivotingContainer:_g,getYourTastepicks:Pg,getYourTastepicksSet:Ng,getContainer:sg,getInteractives:fg,getSetSegment:cg,getStationFeedback:Og,getAllLibraryItems:bg,getLibraryFilterViews:Sg,getLibraryFilters:Eg,getNewEpisodesView:wg,getUserProgress:dg,getYourEpisodesView:Cg,updateLibrary:Ig,updateLibraryV2:Tg,tastePickerBulkUpdate:Ag,removeAllContentActivities:ug,updateContentActivity:mg,updatePinsState:kg,getFeedback:Rg}),"onStart")}),YV="image";function F0(){return I().getDomainConfig(YV)}i(F0,"an");var WV=i((e,t,r)=>{if(t>e.width){let n=t/r;return{width:e.width,height:Math.round(e.width/n)}}if(r>e.height){let n=t/r;return{width:Math.round(e.height*n),height:e.height}}return{width:t,height:r}},"on"),$V=i((e,t)=>{let{sizeMultiplier:r,defaultResize:n,maxResize:a}=t;
10return!e||e.width===0&&e.height===0?{width:n.width,height:n.height}:WV(a,Math.round(e.width*r),Math.round(e.height*r))},"sn"),Dg=i(e=>{let t=F0();if(!t?.baseUrl)throw Error("No baseUrl found in domain config");let{key:r,transform:n}=e,a=[];if(a.push({resize:$V(n.resize,t.extras)}),n.roundedCorners&&a.push({roundedCorners:n.roundedCorners}),n.imageModifications)for(let s of n.imageModifications)a.push({[s]:{enabled:!0}});n.format&&a.push({format:{type:n.format}});let o=rl(JSON.stringify({key:r,edits:a}));return t.baseUrl.replace("{encodedImageParams}",o)},"cn"),XV=it({name:"image",onLoad:i(()=>{S("image.getImageUrl",Dg)},"onLoad"),onStart:i(()=>({getImageUrl:Dg}),"onStart")}),B0="outreach";function nl(){return I().getDomainConfig(B0)}i(nl,"dn");function q0(){return B0}i(q0,"fn");function il(e){return ut({getDomainKey:q0,getEndpointKey:i(()=>e,"getEndpointKey")})}i(il,"pn");var Lg=i(e=>l(null,null,function*(){let t=E({domainConfig:nl(),endpointKey:"marketingSMSOptIn",input:e,operationFields:n0()}),{data:r}=yield il("marketingSMSOptIn").request(t);return r}),"mn"),xg=i((...t)=>l(null,[...t],function*(e={}){let r=E({domainConfig:nl(),endpointKey:"getMessage",input:e,operationFields:r0()}),{data:n}=yield il("getMessage").request(r);return n}),"hn"),JV=it({name:"outreach",onLoad:i(()=>{S("outreach.getMessage",xg),S("outreach.marketingSMSOptIn",Lg)},"onLoad"),onStart:i(()=>({getMessage:xg,marketingSMSOptIn:Lg}),"onStart")}),V0="playback";function _e(){return I().getDomainConfig(V0)}i(_e,"U");function G0(){return V0}i(G0,"vn");function Me(e){return ut({getDomainKey:G0,getEndpointKey:i(()=>e,"getEndpointKey")})}i(Me,"W");function ta(e,t="WEB"){let r=_e()?.extras?.manifestVariantMap;return{hlsVersion:"V3",manifestVariant:e==="channel-linear"?t:r?.[e]??"FULL",mtcVersion:"V2"}}i(ta,"G");function al(e){return _e()?.extras?.mediaFormat?.[e]}i(al,"yn");function ra(e){let t=_e()?.extras.keyRegex;if(t){let r=e.match(t);if(r)return r[1]}throw Error("playbackServicesTeam.playbackService.key-not-found")}i(ra,"K");var Mg=i(e=>l(null,null,function*(){let t=_e(),r=g(g({},e),ta(e.type,e.manifestVariant??void 0));r.mediaFormat??(r.mediaFormat=al(e.type));let n=E({domainConfig:t,endpointKey:"tuneSource",input:r,operationFields:b0()}),{data:a}=yield Me("tuneSource").request(n);return a}),"bn"),ac=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"getDecryptionKeyFromKeyId",input:e,operationFields:s0()}),{data:r}=yield Me("getDecryptionKeyFromKeyId").request(t);return r}),"q"),oc=i(e=>l(null,null,function*(){let t=_e(),r=t?.endPoints?.getDecryptionKeyFromURL;if(!t||!r)throw new Kd("getDecryptionKeyFromURL");let{data:n}=yield Me("getDecryptionKeyFromURL").request({method:r?.method,url:r?.href?.replace("{url}",e)});return n}),"J"),Ug=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"skip",input:e,operationFields:y0()}),{data:r}=yield Me("skip").request(t);return r}),"xn"),Fg=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"previous",input:e,operationFields:p0()}),{data:r}=yield Me("previous").request(t);return r}),"Sn"),Bg=i(e=>l(null,null,function*(){let t=_e(),r=E({domainConfig:t,endpointKey:"peek",input:qd(e,a=>{var o;(o=a.body).mediaFormat??(o.mediaFormat=al(e.body.type)),a.body.manifestVariant=t?.extras?.manifestVariantMap?.[e.body.type]||e.body.manifestVariant}),operationFields:f0()}),{data:n}=yield Me("peek").request(r);return n}),"Cn"),qg=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"liveUpdate",input:e,operationFields:d0()}),{data:r}=yield Me("liveUpdate").request(t);return r}),"wn"),Vg=i(()=>l(null,null,function*(){let e=E({domainConfig:_e(),endpointKey:"verifyEnforcement",input:{},operationFields:E0()}),{data:t}=yield Me("verifyEnforcement").request(e);return t}),"Tn"),ZV=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"telemetryBatchAction",input:e,operationFields:i0()}),{data:r}=yield Me("telemetryBatchAction").request(t);return r}),"En"),QV=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"telemetryEventV3",input:e,operationFields:a0()}),{data:r}=yield Me("telemetryEventV3").request(t);return r}),"Dn");function sc(e,t){return l(this,null,function*(){let r=I();if(t.includes("playback/key/v1")){let n=i((d,u)=>{let f=new URL(d).pathname;return`${u.endsWith("/")?u.slice(0,-1):u}${f}`},"t"),a=r.getDomainConfig("playback"),o=n(t,a?.baseUrl||"");e.open("GET",o,!0);let s=a?.endPoints?.getDecryptionKeyFromURL?.timeout;s&&(e.timeout=s*1e3);let{session:c}=r.getUserInfo();c&&e.setRequestHeader("Authorization",`Bearer ${c.accessToken}`);return}e.open("GET",t,!0)})}i(sc,"On");var Gg=i(()=>l(null,null,function*(){let e=E({domainConfig:_e(),endpointKey:"getLookaround",input:{},operationFields:m0()}),{data:t}=yield Me("getLookaround").request(e);return t}),"kn"),zg=i(()=>l(null,null,function*(){let e=E({domainConfig:_e(),endpointKey:"getLookaroundEpisodes",input:{},operationFields:l0()}),{data:t}=yield Me("getLookaroundEpisodes").request(e);return t}),"An"),jg=i(()=>l(null,null,function*(){let e=E({domainConfig:_e(),endpointKey:"getLookaroundEvents",input:{},operationFields:u0()}),{data:t}=yield Me("getLookaroundEvents").request(e);return t}),"jn"),Kg=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"getPlaybackState",input:e,operationFields:c0()}),{data:r}=yield Me("getPlaybackState").request(t);return r}),"Mn"),Hg=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"updatePlaybackState",input:e,operationFields:S0()}),{data:r}=yield Me("updatePlaybackState").request(t);return r}),"Nn"),Yg=i(()=>l(null,null,function*(){let e=E({domainConfig:_e(),endpointKey:"checkThumbprintRadioEligibility",input:{},operationFields:o0()}),{data:t}=yield Me("checkThumbprintRadioEligibility").request(e);return t}),"Pn"),Wg=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"sendFeedbackSignal",input:e,operationFields:g0()}),{data:r}=yield Me("sendFeedbackSignal").request(t);return r}),"Fn"),$g=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"sportScores",input:e,operationFields:h0()}),{data:r}=yield Me("sportScores").request(t);return r}),"In"),Xg=i(e=>l(null,null,function*(){let t=E({domainConfig:_e(),endpointKey:"sportEvent",input:e,operationFields:v0()}),{data:r}=yield Me("sportEvent").request(t);return r}),"Ln");function cc(e){return l(this,null,function*(){try{return ac({keyId:ra(e)})}catch(t){try{return yield oc(e)}catch(r){return Promise.reject(r)}}})}i(cc,"Rn");function z0(){let e=_e();if(!e)throw Error("Domain config not found");return e.extras.telemetryBufferConfig}i(z0,"zn");function j0(e){return e.__eventVersion==="v3"}i(j0,"Bn");function K0(e){return l(this,null,function*(){let t=[],r=[];for(let a of e)j0(a)?(delete a.__eventVersion,r.push(a)):(delete a.__eventVersion,t.push(a));let n=[];t.length&&n.push(ZV({actions:t})),r.length&&n.push(QV({events:r})),yield Promise.all(n)})}i(K0,"Vn");function Ma(){let e=I().getPlaybackEventsManager();return e||(e=new WO({storageKey:"PLAYBACK_EVENTS",storageProvider:I().getClientStorage(),getCacheConfig:z0,logger:I().getLogger(),submitEvents:K0,shouldFlush:i(()=>I().getUserInfo().session?.sessionType==="authenticated","shouldFlush")}),I().setPlaybackEventsManager(e)),e}i(Ma,"Y");function dc(e){let t=Ma(),r=C(g({},e),{__eventVersion:"v2"});t.addEvent(r)}i(dc,"Hn");function lc(e){let t=Ma(),r=C(g({},e),{__eventVersion:"v3"});t.addEvent(r)}i(lc,"Un");function uc(e){return Ma().flushEvents(e)}i(uc,"Wn");function mc(){return I().incrementLogicalClock()}i(mc,"Gn");var eG=it({name:"playback",onLoad:i(()=>{S("playback.peek",Bg),S("playback.play",Mg),S("playback.skip",Ug),S("playback.previous",Fg),S("playback.getDecryptionKeyFromKeyId",ac),S("playback.getDecryptionKeyFromUrl",oc),S("playback.extractKeyId",ra),S("playback.fetchDecryptionKey",cc),S("playback.liveUpdate",qg),S("playback.verifyEnforcement",Vg),S("playback.telemetryAction",dc),S("playback.telemetryActionV3",lc),S("playback.flushTelemetry",uc),S("playback.getPlaybackTuneRequestMetadata",ta),S("playback.setHlsXhrSetup",sc),S("playback.getLookaround",Gg),S("playback.getLookaroundEpisodes",zg),S("playback.getLookaroundEvents",jg),S("playback.incrementClock",mc),S("playback.sportEvent",Xg),S("playback.sportScores",$g),S("playback.getPlaybackState",Kg),S("playback.updatePlaybackState",Hg),S("playback.checkThumbprintRadioEligibility",Yg),S("playback.sendFeedbackSignal",Wg)},"onLoad"),onStart:i(()=>({peek:Bg,play:Mg,skip:Ug,previous:Fg,getDecryptionKeyFromKeyId:ac,getDecryptionKeyFromUrl:oc,extractKeyId:ra,fetchDecryptionKey:cc,liveUpdate:qg,verifyEnforcement:Vg,telemetryAction:dc,telemetryActionV3:lc,flushTelemetry:uc,getPlaybackTuneRequestMetadata:ta,setHlsXhrSetup:sc,getLookaround:Gg,getLookaroundEpisodes:zg,getLookaroundEvents:jg,incrementClock:mc,sportEvent:Xg,sportScores:$g,getPlaybackState:Kg,updatePlaybackState:Hg,checkThumbprintRadioEligibility:Yg,sendFeedbackSignal:Wg}),"onStart")}),H0="search";function Wt(){return I().getDomainConfig(H0)}i(Wt,"X");function Y0(){return H0}i(Y0,"Jn");function $t(e){return ut({getDomainKey:Y0,getEndpointKey:i(()=>e,"getEndpointKey")})}i($t,"Z");var Jg=qn((e,t)=>l(null,null,function*(){let r=E({domainConfig:Wt(),endpointKey:"getSearchResults",operationFields:k0(),input:e}),{data:n}=yield $t("getSearchResults").request(C(g({},r),{signal:t}));return n})),Zg=i(e=>l(null,null,function*(){let t=E({domainConfig:Wt(),endpointKey:"getSearchFilters",operationFields:T0(),input:e}),{data:r}=yield $t("getSearchFilters").request(t);return r}),"Xn"),Qg=qn((e,t)=>l(null,null,function*(){let r=E({domainConfig:Wt(),endpointKey:"getExperienceSearchResults",operationFields:C0(),input:e}),{data:n}=yield $t("getExperienceSearchResults").request(C(g({},r),{signal:t}));return n})),ey=i(e=>l(null,null,function*(){let t=E({domainConfig:Wt(),endpointKey:"autosuggest",operationFields:_0(),input:e}),{data:r}=yield $t("autosuggest").request(t);return r}),"Qn"),ty=qn((e,t)=>l(null,null,function*(){let r=E({domainConfig:Wt(),endpointKey:"experienceAutosuggest",operationFields:I0(),input:e}),{data:n}=yield $t("experienceAutosuggest").request(C(g({},r),{signal:t}));return n})),ry=qn((e,t)=>l(null,null,function*(){let r=E({domainConfig:Wt(),endpointKey:"experienceHistory",operationFields:w0(),input:e});r.signal=t;let{data:n}=yield $t("experienceHistory").request(r);return n})),ny=i(e=>l(null,null,function*(){let t=E({domainConfig:Wt(),endpointKey:"getHistory",operationFields:A0(),input:e}),{data:r}=yield $t("getHistory").request(t);return r}),"tr"),tG=it({name:"search",onLoad:i(()=>{S("search.autosuggest",ey),S("search.experienceAutosuggest",ty),S("search.experienceHistory",ry),S("search.getExperienceSearchResults",Qg),S("search.getHistory",ny),S("search.getSearchFilters",Zg),S("search.getSearchResults",Jg)},"onLoad"),onStart:i(()=>({autosuggest:ey,experienceAutosuggest:ty,experienceHistory:ry,getExperienceSearchResults:Qg,getHistory:ny,getSearchFilters:Zg,getSearchResults:Jg}),"onStart")}),W0="voice";function Ua(){return I().getDomainConfig(W0)}i(Ua,"Q");function $0(){return W0}i($0,"ir");function Fa(e){return ut({getDomainKey:$0,getEndpointKey:i(()=>e,"getEndpointKey")})}i(Fa,"$");var iy=i(e=>l(null,null,function*(){let t=E({domainConfig:Ua(),endpointKey:"voiceAsTextV2",input:e,operationFields:O0()}),{data:r}=yield Fa("voiceAsTextV2").request(t);return r}),"ar"),ay=i(e=>l(null,null,function*(){let t=E({domainConfig:Ua(),endpointKey:"voiceAsTextV3",input:e,operationFields:P0()}),{data:r}=yield Fa("voiceAsTextV3").request(t);return r}),"or"),oy=i(e=>l(null,null,function*(){let t=E({domainConfig:Ua(),endpointKey:"voiceSearchV3",input:e,operationFields:N0()}),{data:r}=yield Fa("voiceSearchV3").request(t);return r}),"sr"),rG=it({name:"voice",onLoad:i(()=>{S("voice.getVoiceAsText",iy),S("voice.voiceAsTextV3",ay),S("voice.voiceSearch",oy)},"onLoad"),onStart:i(()=>({getVoiceAsText:iy,voiceAsTextV3:ay,voiceSearch:oy}),"onStart")});function ol(){return l(this,null,function*(){let[e,t,r,n,a,o,s,c,d,u,f,v,p]=yield Promise.all([et(qV),et(PV),et(eG),et(HV),et(C2),et(tG),et(XV),et(NV),et(oV),et(I2),et(JV),et(rG),et(KV)]);return{clientorch:e,user:t,playback:r,content:n,commerce:a,search:o,image:s,userEvents:c,time:d,partnerIntegration:u,outreach:f,voice:v,config:p,metadata:OV}})}i(ol,"lr");var nG=V_(ol),KY=bR(ol),iG=Ct(eD(),1);function X0(e="",t=""){let r=new iG.UAParser;r.setUA(e);let n=r.getResult();return{browser:n.browser.name,browserVersion:n.browser.version,userAgent:r.getUA()}}i(X0,"parseUAString");function J0(e){return{platform:"web-desktop",tenant:"sxm",type:"browser",appId:"web",attributes:g({app:"web-commerce",appVersion:e??"1.0"},Ue()?{}:X0(document?.defaultView?.navigator?.userAgent))}}i(J0,"getDeviceMetadata");function Z0({config:e,baseUrl:t}
10){Object.keys(e.domains).forEach(r=>{e.domains[r].baseUrl=t})}i(Z0,"updateConfigBaseUrl");function Q0(){if(Ue()){let e=new Map;return{getItem:i(t=>l(null,null,function*(){return e.get(t)??null}),"getItem"),setItem:i((t,r)=>l(null,null,function*(){return e.set(t,JSON.stringify(r))}),"setItem"),removeItem:i(t=>l(null,null,function*(){return e.delete(t)}),"removeItem")}}return{getItem:i(e=>l(null,null,function*(){return JSON.parse(localStorage.getItem(e)||"null")||void 0}),"getItem"),setItem:i((e,t)=>l(null,null,function*(){return localStorage.setItem(e,JSON.stringify(t))}),"setItem"),removeItem:i(e=>l(null,null,function*(){return localStorage.removeItem(e)}),"removeItem")}}i(Q0,"getLocalStorageProvider");var aG=tD(),{config:sy}=aG;function sl(n){return l(this,arguments,function*({baseUrl:e,clientSdkStorageProvider:t,appVersion:r}){return Z0({config:sy,baseUrl:e}),yield nG({initialConfig:sy,onSdkConfigUpdate:i(()=>{},"onSdkConfigUpdate"),cookieStorageProvider:t,clientStorageProvider:Q0(),deviceMetadata:J0(r),logger:{debug:i(()=>{},"debug"),error:i(()=>{},"error"),info:i(()=>{},"info"),warn:i(()=>{},"warn")}})})}i(sl,"bootstrapClientSdk");var Ci={},cy;function e1(){if(cy)return Ci;cy=1,Ci.parse=s,Ci.serialize=u;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function s(m,h){if(typeof m!="string")throw new TypeError("argument str must be a string");var y={},b=m.length;if(b<2)return y;var _=h&&h.decode||f,N=0,O=0,P=0;do{if(O=m.indexOf("=",N),O===-1)break;if(P=m.indexOf(";",N),P===-1)P=b;else if(O>P){N=m.lastIndexOf(";",O-1)+1;continue}var j=c(m,N,O),V=d(m,O,j),R=m.slice(j,V);if(!t.call(y,R)){var D=c(m,O+1,P),L=d(m,P,D);m.charCodeAt(D)===34&&m.charCodeAt(L-1)===34&&(D++,L--);var U=m.slice(D,L);y[R]=p(U,_)}N=P+1}while(N<b);return y}i(s,"parse");function c(m,h,y){do{var b=m.charCodeAt(h);if(b!==32&&b!==9)return h}while(++h<y);return y}i(c,"startIndex");function d(m,h,y){for(;h>y;){var b=m.charCodeAt(--h);if(b!==32&&b!==9)return h+1}return y}i(d,"endIndex");function u(m,h,y){var b=y&&y.encode||encodeURIComponent;if(typeof b!="function")throw new TypeError("option encode is invalid");if(!r.test(m))throw new TypeError("argument name is invalid");var _=b(h);if(!n.test(_))throw new TypeError("argument val is invalid");var N=m+"="+_;if(!y)return N;if(y.maxAge!=null){var O=Math.floor(y.maxAge);if(!isFinite(O))throw new TypeError("option maxAge is invalid");N+="; Max-Age="+O}if(y.domain){if(!a.test(y.domain))throw new TypeError("option domain is invalid");N+="; Domain="+y.domain}if(y.path){if(!o.test(y.path))throw new TypeError("option path is invalid");N+="; Path="+y.path}if(y.expires){var P=y.expires;if(!v(P)||isNaN(P.valueOf()))throw new TypeError("option expires is invali
10d");N+="; Expires="+P.toUTCString()}if(y.httpOnly&&(N+="; HttpOnly"),y.secure&&(N+="; Secure"),y.partitioned&&(N+="; Partitioned"),y.priority){var j=typeof y.priority=="string"?y.priority.toLowerCase():y.priority;switch(j){case"low":N+="; Priority=Low";break;case"medium":N+="; Priority=Medium";break;case"high":N+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(y.sameSite){var V=typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite;switch(V){case!0:N+="; SameSite=Strict";break;case"lax":N+="; SameSite=Lax";break;case"strict":N+="; SameSite=Strict";break;case"none":N+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return N}i(u,"serialize");function f(m){return m.indexOf("%")!==-1?decodeURIComponent(m):m}i(f,"decode");function v(m){return e.call(m)==="[object Date]"}i(v,"isDate");function p(m,h){try{return h(m)}catch(y){return m}}return i(p,"tryDecode"),Ci}i(e1,"requireCookie");var Ui=e1();function t1(){let e=typeof globalThis>"u"?void 0:globalThis.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}i(t1,"hasDocumentCookie");function r1(e){return typeof e=="string"?Ui.parse(e):typeof e=="object"&&e!==null?e:{}}i(r1,"parseCookies");function Fi(e,t={}){let r=n1(e);if(!t.doNotParse)try{return JSON.parse(r)}catch(n){}return e}i(Fi,"readCookie");function n1(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}i(n1,"cleanupCookieValue");var i1=class{constructor(t,r={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;let a=this.cookies;this.cookies=Ui.parse(document.cookie),this._checkChanges(a)};let n=typeof document>"u"?"":document.cookie;this.cookies=r1(t||n),this.defaultSetOptions=r,this.HAS_DOCUMENT_COOKIE=t1()}_emitChange(t){for(let r=0;r<this.changeListeners.length;++r)this.changeListeners[r](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Fi(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,r={}){return r.doNotUpdate||this.update(),Fi(this.cookies[t],r)}getAll(t={}){t.doNotUpdate||this.update();let r={};for(let n in this.cookies)r[n]=Fi(this.cookies[n],t);return r}set(t,r,n){n?n=Object.assign(Object.assign({},this.defaultSetOptions),n):n=this.defaultSetOptions;let a=typeof r=="string"?r:JSON.stringify(r);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:a}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ui.serialize(t,a,n)),this._emitChange({name:t,value:r,options:n})}remove(t,r){let n=r=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),r),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ui.serialize(t,"",n)),this._emitChange({name:t,value:void 0,options:r})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){let r=this.changeListeners.indexOf(t);r>=0&&this.changeListeners.splice(r,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}};i(i1,"Cookies");var oG=i1;function fc(e,t){return typeof t=="object"&&e in t?t[e]:void 0}i(fc,"n");var a1=class extends oG{constructor(o={}){var s=o,{cookies:t,namePrefix:r,cookieOptionOverrides:n}=s,a=st(s,["cookies","namePrefix","cookieOptionOverrides"]);super(t,a),w(this,"namePrefix"),w(this,"initialSetOptions"),w(this,"cookieOptionOverrides"),this.namePrefix=r??"",this.initialSetOptions=a,this.cookieOptionOverrides=n}get(){}set(){}remove(){}getItem(t,r){let n=this.namePrefix+t;return super.get(n,C(g({},r),{doNotParse:!r?.parse}))}setItem(t,r,n){let a=this.namePrefix+t,o=fc(t,this.cookieOptionOverrides),s=o?g(g({},n),o):n;
10super.set(a,r,s)}removeItem(t,r){let n=this.namePrefix+t,a=fc(t,this.cookieOptionOverrides),o=a?g(g({},r),a):r;super.remove(n,g(g({},this.initialSetOptions),o))}};i(a1,"p");var o1=a1,Do="adobeDataLayer",Bi=class{constructor(){return this.constructor.instance}trackEvent(t){this.appEventData.push(t)}get computedState(){return this.appEventData.computedState}get appEventData(){return Ue()?[]:(window[Do]||(window[Do]=[]),window[Do])}};i(Bi,"AdobeAppEventDataSdk"),w(Bi,"instance",new Bi);var sG=Bi;function cl(e){return l(this,null,function*(){pc();let t=na(),r=new o1({cookieOptionOverrides:{AUTH_TOKEN:{domain:t,path:"/"},DEVICE_GRANT:{domain:t,path:"/"},LOGICAL_CLOCK:{domain:t,path:"/"}}}),n=yield sl({baseUrl:e.edge.baseApiUrl,clientSdkStorageProvider:r,appVersion:e.appVersion}),a=new ML;return a.init({initDependencies:{clientSdk:n,appEventSdk:sG.instance,clientSdkStorageProvider:r},config:e}),a})}i(cl,"bootstrap");function cG(e){return l(this,null,function*(){pc();let t=na(),r=new o1({cookieOptionOverrides:{AUTH_TOKEN:{domain:t,path:"/"},DEVICE_GRANT:{domain:t,path:"/"},LOGICAL_CLOCK:{domain:t,path:"/"}}});return{clientSdk:yield sl({baseUrl:e.edge.baseApiUrl,clientSdkStorageProvider:r,appVersion:e.appVersion})}})}i(cG,"bootstrapSdks");function dG(){return l(this,null,function*(){let e=yield no(),t=io(e),r=yield cl(t);return{configs:e,webSdk:r}})}dG().then(({configs:e,webSdk:t})=>{Al(Sf,bf(e,t)).catch(r=>console.error(r))});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.