diff --git a/libs/deps/mas/mas.js b/libs/deps/mas/mas.js index f03e59daf7..470e45e56f 100644 --- a/libs/deps/mas/mas.js +++ b/libs/deps/mas/mas.js @@ -1502,7 +1502,11 @@ merch-card[variant='twp'] merch-offer-select { :host([variant='ccd-suggested']) ::slotted([slot='price']) { font-size: var(--consonant-merch-card-body-xs-font-size); line-height: var(--consonant-merch-card-body-xs-line-height); - min-width: fit-content; + } + + :host([variant='ccd-suggested']) ::slotted([slot='price']) em { + font-size: var(--consonant-merch-card-body-xxs-font-size); + line-height: var(--consonant-merch-card-body-xxs-line-height); } :host([variant='ccd-suggested']) ::slotted([slot='cta']) { diff --git a/libs/deps/mas/merch-card.js b/libs/deps/mas/merch-card.js index 805fee30e5..ade5587af2 100644 --- a/libs/deps/mas/merch-card.js +++ b/libs/deps/mas/merch-card.js @@ -1,4 +1,4 @@ -var ho=Object.defineProperty;var ir=e=>{throw TypeError(e)};var mo=(e,t,r)=>t in e?ho(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var u=(e,t,r)=>mo(e,typeof t!="symbol"?t+"":t,r),lt=(e,t,r)=>t.has(e)||ir("Cannot "+r);var ht=(e,t,r)=>(lt(e,t,"read from private field"),r?r.call(e):t.get(e)),Ie=(e,t,r)=>t.has(e)?ir("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ar=(e,t,r,n)=>(lt(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),mt=(e,t,r)=>(lt(e,t,"access private method"),r);import{LitElement as Ta}from"../lit-all.min.js";import{LitElement as uo,html as sr,css as po}from"../lit-all.min.js";var m=class extends uo{constructor(){super(),this.size="m",this.alt=""}render(){let{href:t}=this;return t?sr` +var lo=Object.defineProperty;var ir=e=>{throw TypeError(e)};var mo=(e,t,r)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var u=(e,t,r)=>mo(e,typeof t!="symbol"?t+"":t,r),ht=(e,t,r)=>t.has(e)||ir("Cannot "+r);var lt=(e,t,r)=>(ht(e,t,"read from private field"),r?r.call(e):t.get(e)),Ie=(e,t,r)=>t.has(e)?ir("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ar=(e,t,r,n)=>(ht(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),mt=(e,t,r)=>(ht(e,t,"access private method"),r);import{LitElement as Ta}from"../lit-all.min.js";import{LitElement as uo,html as sr,css as po}from"../lit-all.min.js";var m=class extends uo{constructor(){super(),this.size="m",this.alt=""}render(){let{href:t}=this;return t?sr` ${this.alt} `:sr` ${this.alt}`}};u(m,"properties",{size:{type:String,attribute:!0},src:{type:String,attribute:!0},alt:{type:String,attribute:!0},href:{type:String,attribute:!0}}),u(m,"styles",po` :host { @@ -28,7 +28,7 @@ var ho=Object.defineProperty;var ir=e=>{throw TypeError(e)};var mo=(e,t,r)=>t in width: var(--mod-img-width, var(--img-width)); height: var(--mod-img-height, var(--img-height)); } - `);customElements.define("merch-icon",m);import{css as lr,unsafeCSS as cr}from"../lit-all.min.js";var F="(max-width: 767px)",ke="(max-width: 1199px)",T="(min-width: 768px)",A="(min-width: 1200px)",C="(min-width: 1600px)";var hr=lr` + `);customElements.define("merch-icon",m);import{css as hr,unsafeCSS as cr}from"../lit-all.min.js";var F="(max-width: 767px)",ke="(max-width: 1199px)",T="(min-width: 768px)",A="(min-width: 1200px)",C="(min-width: 1600px)";var lr=hr` :host { --consonant-merch-card-background-color: #fff; --consonant-merch-card-border: 1px solid var(--consonant-merch-card-border-color); @@ -250,7 +250,7 @@ var ho=Object.defineProperty;var ir=e=>{throw TypeError(e)};var mo=(e,t,r)=>t in ::slotted([slot='price']) { color: var(--consonant-merch-card-price-color); } -`,mr=()=>[lr` +`,mr=()=>[hr` /* Tablet */ @media screen and ${cr(T)} { :host([size='wide']), @@ -265,7 +265,7 @@ var ho=Object.defineProperty;var ir=e=>{throw TypeError(e)};var mo=(e,t,r)=>t in :host([size='wide']) { grid-column: span 2; } - `];import{html as Be}from"../lit-all.min.js";var te,ge=class ge{constructor(t){u(this,"card");Ie(this,te);this.card=t,this.insertVariantStyle()}getContainer(){return ar(this,te,ht(this,te)??this.card.closest('[class*="-merch-cards"]')??this.card.parentElement),ht(this,te)}insertVariantStyle(){if(!ge.styleMap[this.card.variant]){ge.styleMap[this.card.variant]=!0;let t=document.createElement("style");t.innerHTML=this.getGlobalCSS(),document.head.appendChild(t)}}updateCardElementMinHeight(t,r){if(!t)return;let n=`--consonant-merch-card-${this.card.variant}-${r}-height`,o=Math.max(0,parseInt(window.getComputedStyle(t).height)||0),i=parseInt(this.getContainer().style.getPropertyValue(n))||0;o>i&&this.getContainer().style.setProperty(n,`${o}px`)}get badge(){let t;if(!(!this.card.badgeBackgroundColor||!this.card.badgeColor||!this.card.badgeText))return this.evergreen&&(t=`border: 1px solid ${this.card.badgeBackgroundColor}; border-right: none;`),Be` + `];import{html as Be}from"../lit-all.min.js";var te,ge=class ge{constructor(t){u(this,"card");Ie(this,te);this.card=t,this.insertVariantStyle()}getContainer(){return ar(this,te,lt(this,te)??this.card.closest('[class*="-merch-cards"]')??this.card.parentElement),lt(this,te)}insertVariantStyle(){if(!ge.styleMap[this.card.variant]){ge.styleMap[this.card.variant]=!0;let t=document.createElement("style");t.innerHTML=this.getGlobalCSS(),document.head.appendChild(t)}}updateCardElementMinHeight(t,r){if(!t)return;let n=`--consonant-merch-card-${this.card.variant}-${r}-height`,o=Math.max(0,parseInt(window.getComputedStyle(t).height)||0),i=parseInt(this.getContainer().style.getPropertyValue(n))||0;o>i&&this.getContainer().style.setProperty(n,`${o}px`)}get badge(){let t;if(!(!this.card.badgeBackgroundColor||!this.card.badgeColor||!this.card.badgeText))return this.evergreen&&(t=`border: 1px solid ${this.card.badgeBackgroundColor}; border-right: none;`),Be`
- `}postCardUpdateHook(t){t.has("backgroundImage")&&this.styleBackgroundImage()}styleBackgroundImage(){if(this.card.classList.remove("thin-strip"),this.card.classList.remove("wide-strip"),!this.card.backgroundImage)return;let t=new Image;t.src=this.card.backgroundImage,t.onload=()=>{t.width>8?this.card.classList.add("wide-strip"):t.width===8&&this.card.classList.add("thin-strip")}}};u(le,"variantStyle",Lo` + `}postCardUpdateHook(t){t.has("backgroundImage")&&this.styleBackgroundImage()}styleBackgroundImage(){if(this.card.classList.remove("thin-strip"),this.card.classList.remove("wide-strip"),!this.card.backgroundImage)return;let t=new Image;t.src=this.card.backgroundImage,t.onload=()=>{t.width>8?this.card.classList.add("wide-strip"):t.width===8&&this.card.classList.add("thin-strip")}}};u(he,"variantStyle",Lo` :host([variant='ccd-suggested']) { --consonant-merch-card-background-color: rgb(245, 245, 245); --consonant-merch-card-body-xs-color: rgb(75, 75, 75); @@ -1527,7 +1527,11 @@ merch-card[variant='twp'] merch-offer-select { :host([variant='ccd-suggested']) ::slotted([slot='price']) { font-size: var(--consonant-merch-card-body-xs-font-size); line-height: var(--consonant-merch-card-body-xs-line-height); - min-width: fit-content; + } + + :host([variant='ccd-suggested']) ::slotted([slot='price']) em { + font-size: var(--consonant-merch-card-body-xxs-font-size); + line-height: var(--consonant-merch-card-body-xxs-line-height); } :host([variant='ccd-suggested']) ::slotted([slot='cta']) { @@ -1572,7 +1576,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { --consonant-merch-card-border-color:rgb(48, 48, 48); --consonant-merch-card-detail-s-color:rgb(235, 235, 235); } -`;var No={mnemonics:{size:"m"},backgroundImage:{tag:"div",slot:"image"},description:{tag:"div",slot:"body-s"},ctas:{slot:"footer",size:"S"},allowedSizes:["wide"]},he=class extends w{getGlobalCSS(){return kr}get aemFragmentMapping(){return No}renderLayout(){return Po`
+`;var No={mnemonics:{size:"m"},backgroundImage:{tag:"div",slot:"image"},description:{tag:"div",slot:"body-s"},ctas:{slot:"footer",size:"S"},allowedSizes:["wide"]},le=class extends w{getGlobalCSS(){return kr}get aemFragmentMapping(){return No}renderLayout(){return Po`
${this.badge} @@ -1581,7 +1585,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link {
- `}};u(he,"variantStyle",Ro` + `}};u(le,"variantStyle",Ro` :host([variant='ccd-slice']) { --consonant-merch-card-background-color: rgb(248, 248, 248); --consonant-merch-card-border-color: rgb(230, 230, 230); @@ -1684,7 +1688,7 @@ merch-card[variant="ccd-slice"] [slot='body-s'] a.spectrum-Link { align-items: center; gap: 8px; } - `);var yt=(e,t=!1)=>{switch(e.variant){case"catalog":return new re(e);case"image":return new ze(e);case"inline-heading":return new Fe(e);case"mini-compare-chart":return new oe(e);case"plans":return new ie(e);case"product":return new W(e);case"segment":return new ae(e);case"special-offers":return new se(e);case"twp":return new ce(e);case"ccd-suggested":return new le(e);case"ccd-slice":return new he(e);default:return t?void 0:new W(e)}},Br=()=>{let e=[];return e.push(re.variantStyle),e.push(oe.variantStyle),e.push(W.variantStyle),e.push(ie.variantStyle),e.push(ae.variantStyle),e.push(se.variantStyle),e.push(ce.variantStyle),e.push(le.variantStyle),e.push(he.variantStyle),e};var Dr=document.createElement("style");Dr.innerHTML=` + `);var yt=(e,t=!1)=>{switch(e.variant){case"catalog":return new re(e);case"image":return new ze(e);case"inline-heading":return new Fe(e);case"mini-compare-chart":return new oe(e);case"plans":return new ie(e);case"product":return new W(e);case"segment":return new ae(e);case"special-offers":return new se(e);case"twp":return new ce(e);case"ccd-suggested":return new he(e);case"ccd-slice":return new le(e);default:return t?void 0:new W(e)}},Br=()=>{let e=[];return e.push(re.variantStyle),e.push(oe.variantStyle),e.push(W.variantStyle),e.push(ie.variantStyle),e.push(ae.variantStyle),e.push(se.variantStyle),e.push(ce.variantStyle),e.push(he.variantStyle),e.push(le.variantStyle),e};var Dr=document.createElement("style");Dr.innerHTML=` :root { --consonant-merch-card-detail-font-size: 12px; --consonant-merch-card-detail-font-weight: 500; @@ -2104,6 +2108,6 @@ body.merch-modal { height: 100vh; } -`;document.head.appendChild(Dr);var be;(function(e){e.V2="UCv2",e.V3="UCv3"})(be||(be={}));var ve;(function(e){e.CHECKOUT="checkout",e.CHECKOUT_EMAIL="checkout/email",e.SEGMENTATION="segmentation",e.BUNDLE="bundle",e.COMMITMENT="commitment",e.RECOMMENDATION="recommendation",e.EMAIL="email",e.PAYMENT="payment",e.CHANGE_PLAN_TEAM_PLANS="change-plan/team-upgrade/plans",e.CHANGE_PLAN_TEAM_PAYMENT="change-plan/team-upgrade/payment"})(ve||(ve={}));var Et;(function(e){e.BASE="BASE",e.TRIAL="TRIAL",e.PROMOTION="PROMOTION"})(Et||(Et={}));var R;(function(e){e.MONTH="MONTH",e.YEAR="YEAR",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.PERPETUAL="PERPETUAL",e.TERM_LICENSE="TERM_LICENSE",e.ACCESS_PASS="ACCESS_PASS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS"})(R||(R={}));var _;(function(e){e.ANNUAL="ANNUAL",e.MONTHLY="MONTHLY",e.TWO_YEARS="TWO_YEARS",e.THREE_YEARS="THREE_YEARS",e.P1D="P1D",e.P1Y="P1Y",e.P3Y="P3Y",e.P10Y="P10Y",e.P15Y="P15Y",e.P3D="P3D",e.P7D="P7D",e.P30D="P30D",e.HALF_YEARLY="HALF_YEARLY",e.QUARTERLY="QUARTERLY"})(_||(_={}));var wt;(function(e){e.INDIVIDUAL="INDIVIDUAL",e.TEAM="TEAM",e.ENTERPRISE="ENTERPRISE"})(wt||(wt={}));var St;(function(e){e.COM="COM",e.EDU="EDU",e.GOV="GOV"})(St||(St={}));var At;(function(e){e.DIRECT="DIRECT",e.INDIRECT="INDIRECT"})(At||(At={}));var Tt;(function(e){e.ENTERPRISE_PRODUCT="ENTERPRISE_PRODUCT",e.ETLA="ETLA",e.RETAIL="RETAIL",e.VIP="VIP",e.VIPMP="VIPMP",e.FREE="FREE"})(Tt||(Tt={}));var Ur="tacocat.js";var Gr=e=>`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function me(e,t={},{metadata:r=!0,search:n=!0,storage:o=!0}={}){let i;if(n&&i==null){let a=new URLSearchParams(window.location.search),s=ye(n)?n:e;i=a.get(s)}if(o&&i==null){let a=ye(o)?o:e;i=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&i==null){let a=Oo(ye(r)?r:e);i=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return i??t[e]}var de=()=>{};var zr=e=>typeof e=="boolean",Ee=e=>typeof e=="function",_t=e=>typeof e=="number",Fr=e=>e!=null&&typeof e=="object";var ye=e=>typeof e=="string";var we=e=>_t(e)&&Number.isFinite(e)&&e>0;function H(e,t){if(zr(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function Oo(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}var Ho=Date.now(),Lt=()=>`(+${Date.now()-Ho}ms)`,Ve=new Set,Mo=H(me("tacocat.debug",{},{metadata:!1}),typeof process<"u"&&process.env?.DEBUG);function $r(e){let t=`[${Ur}/${e}]`,r=(a,s,...c)=>a?!0:(o(s,...c),!1),n=Mo?(a,...s)=>{console.debug(`${t} ${a}`,...s,Lt())}:()=>{},o=(a,...s)=>{let c=`${t} ${a}`;Ve.forEach(([l])=>l(c,...s))};return{assert:r,debug:n,error:o,warn:(a,...s)=>{let c=`${t} ${a}`;Ve.forEach(([,l])=>l(c,...s))}}}function Io(e,t){let r=[e,t];return Ve.add(r),()=>{Ve.delete(r)}}Io((e,...t)=>{console.error(e,...t,Lt())},(e,...t)=>{console.warn(e,...t,Lt())});var Vr="ABM",jr="PUF",Yr="M2M",Wr="PERPETUAL",qr="P3Y",ko="TAX_INCLUSIVE_DETAILS",Bo="TAX_EXCLUSIVE",Xr={ABM:Vr,PUF:jr,M2M:Yr,PERPETUAL:Wr,P3Y:qr},th={[Vr]:{commitment:R.YEAR,term:_.MONTHLY},[jr]:{commitment:R.YEAR,term:_.ANNUAL},[Yr]:{commitment:R.MONTH,term:_.MONTHLY},[Wr]:{commitment:R.PERPETUAL,term:void 0},[qr]:{commitment:R.THREE_MONTHS,term:_.P3Y}};function Ct(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:o,priceWithoutDiscountAndTax:i,taxDisplay:a}=t;if(a!==ko)return e;let s={...e,priceDetails:{...t,price:o??r,priceWithoutDiscount:i??n,taxDisplay:Bo}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var Pt=function(e,t){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Pt(e,t)};function Se(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var b=function(){return b=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Go,function(c,l,h,f,p,g){if(l)t.minimumIntegerDigits=h.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(an.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(en.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(en,function(c,l,h,f,p,g){return h==="*"?t.minimumFractionDigits=l.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:p&&g?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+g.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=o.options[0];i==="w"?t=b(b({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=b(b({},t),tn(i)));continue}if(on.test(o.stem)){t=b(b({},t),tn(o.stem));continue}var a=sn(o.stem);a&&(t=b(b({},t),a));var s=zo(o.stem);s&&(t=b(b({},t),s))}return t}var Te={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function ln(e,t){for(var r="",n=0;n>1),c="a",l=Fo(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=l+r}else o==="J"?r+="H":r+=o}return r}function Fo(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Te[n||""]||Te[r||""]||Te["".concat(r,"-001")]||Te["001"];return o[0]}var Ot,$o=new RegExp("^".concat(Nt.source,"*")),Vo=new RegExp("".concat(Nt.source,"*$"));function v(e,t){return{start:e,end:t}}var jo=!!String.prototype.startsWith,Yo=!!String.fromCodePoint,Wo=!!Object.fromEntries,qo=!!String.prototype.codePointAt,Xo=!!String.prototype.trimStart,Ko=!!String.prototype.trimEnd,Zo=!!Number.isSafeInteger,Qo=Zo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Mt=!0;try{hn=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Mt=((Ot=hn.exec("a"))===null||Ot===void 0?void 0:Ot[0])==="a"}catch{Mt=!1}var hn,mn=jo?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},It=Yo?String.fromCodePoint:function(){for(var t=[],r=0;ri;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},dn=Wo?Object.fromEntries:function(t){for(var r={},n=0,o=t;n=n)){var o=t.charCodeAt(r),i;return o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},Jo=Xo?function(t){return t.trimStart()}:function(t){return t.replace($o,"")},ei=Ko?function(t){return t.trimEnd()}:function(t){return t.replace(Vo,"")};function pn(e,t){return new RegExp(e,t)}var kt;Mt?(Ht=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),kt=function(t,r){var n;Ht.lastIndex=r;var o=Ht.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}):kt=function(t,r){for(var n=[];;){var o=un(t,r);if(o===void 0||gn(o)||ni(o))break;n.push(o),r+=o>=65536?2:1}return It.apply(void 0,n)};var Ht,fn=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:E.pound,location:v(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(x.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Bt(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:E.literal,value:"<".concat(o,"/>"),location:v(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:E.tag,value:o,children:a,location:v(n,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,v(s,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,v(n,this.clonePosition()))}else return this.error(x.INVALID_TAG,v(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ri(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var c=v(n,this.clonePosition());return{val:{type:E.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ti(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return It.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),It(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,v(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(x.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:E.argument,value:o,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(x.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=kt(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=v(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,v(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=ei(f.val);if(p.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));var g=v(h,this.clonePosition());l={style:p,styleLocation:g}}var y=this.tryParseArgumentClose(o);if(y.err)return y;var S=v(o,this.clonePosition());if(l&&mn(l?.style,"::",0)){var M=Jo(l.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(M,l.styleLocation);return f.err?f:{val:{type:E.number,value:n,location:S,style:f.val},err:null}}else{if(M.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,S);var G=M;this.locale&&(G=ln(M,this.locale));var p={type:q.dateTime,pattern:G,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Qr(G):{}},z=s==="date"?E.date:E.time;return{val:{type:z,value:n,location:S,style:p},err:null}}}return{val:{type:s==="number"?E.number:s==="date"?E.date:E.time,value:n,location:S,style:(i=l?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,v(O,b({},O)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),D=0;if(s!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),j=this.parseIdentifierIfPossible(),D=f.val}var k=this.tryParsePluralOrSelectOptions(t,s,r,j);if(k.err)return k;var y=this.tryParseArgumentClose(o);if(y.err)return y;var Me=v(o,this.clonePosition());return s==="select"?{val:{type:E.select,value:n,options:dn(k.val),location:Me},err:null}:{val:{type:E.plural,value:n,options:dn(k.val),offset:D,pluralType:s==="plural"?"cardinal":"ordinal",location:Me},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,v(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,v(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=nn(t)}catch{return this.error(x.INVALID_NUMBER_SKELETON,r)}return{val:{type:q.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?cn(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,s=[],c=new Set,l=o.value,h=o.location;;){if(l.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;h=v(f,this.clonePosition()),l=this.message.slice(f.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var S=this.tryParseArgumentClose(g);if(S.err)return S;s.push([l,{value:y.val,location:v(g,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,h=i.location}return s.length===0?this.error(r==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(x.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var c=v(o,this.clonePosition());return i?(a*=n,Qo(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=un(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(mn(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&gn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function Bt(e){return e>=97&&e<=122||e>=65&&e<=90}function ti(e){return Bt(e)||e===47}function ri(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function gn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ni(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Dt(e){e.forEach(function(t){if(delete t.location,Xe(t)||Ke(t))for(var r in t.options)delete t.options[r].location,Dt(t.options[r].value);else Ye(t)&&Qe(t.style)||(We(t)||qe(t))&&Ae(t.style)?delete t.style.location:Ze(t)&&Dt(t.children)})}function xn(e,t){t===void 0&&(t={}),t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new fn(e,t).parse();if(r.err){var n=SyntaxError(x[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Dt(r.val),r.val}function _e(e,t){var r=t&&t.cache?t.cache:li,n=t&&t.serializer?t.serializer:ci,o=t&&t.strategy?t.strategy:ii;return o(e,{cache:r,serializer:n})}function oi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function bn(e,t,r,n){var o=oi(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function vn(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function Ut(e,t,r,n,o){return r.bind(t,e,n,o)}function ii(e,t){var r=e.length===1?bn:vn;return Ut(e,this,r,t.cache.create(),t.serializer)}function ai(e,t){return Ut(e,this,vn,t.cache.create(),t.serializer)}function si(e,t){return Ut(e,this,bn,t.cache.create(),t.serializer)}var ci=function(){return JSON.stringify(arguments)};function Gt(){this.cache=Object.create(null)}Gt.prototype.get=function(e){return this.cache[e]};Gt.prototype.set=function(e,t){this.cache[e]=t};var li={create:function(){return new Gt}},Je={variadic:ai,monadic:si};var X;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(X||(X={}));var Le=function(e){Se(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var zt=function(e){Se(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),X.INVALID_VALUE,i)||this}return t}(Le);var yn=function(e){Se(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),X.INVALID_VALUE,o)||this}return t}(Le);var En=function(e){Se(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),X.MISSING_VALUE,n)||this}return t}(Le);var P;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(P||(P={}));function hi(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==P.literal||r.type!==P.literal?t.push(r):n.value+=r.value,t},[])}function mi(e){return typeof e=="function"}function Ce(e,t,r,n,o,i,a){if(e.length===1&&Rt(e[0]))return[{type:P.literal,value:e[0].value}];for(var s=[],c=0,l=e;c`${e??""}`.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)??"";function me(e,t={},{metadata:r=!0,search:n=!0,storage:o=!0}={}){let i;if(n&&i==null){let a=new URLSearchParams(window.location.search),s=ye(n)?n:e;i=a.get(s)}if(o&&i==null){let a=ye(o)?o:e;i=window.sessionStorage.getItem(a)??window.localStorage.getItem(a)}if(r&&i==null){let a=Oo(ye(r)?r:e);i=document.documentElement.querySelector(`meta[name="${a}"]`)?.content}return i??t[e]}var de=()=>{};var zr=e=>typeof e=="boolean",Ee=e=>typeof e=="function",_t=e=>typeof e=="number",Fr=e=>e!=null&&typeof e=="object";var ye=e=>typeof e=="string";var we=e=>_t(e)&&Number.isFinite(e)&&e>0;function H(e,t){if(zr(e))return e;let r=String(e);return r==="1"||r==="true"?!0:r==="0"||r==="false"?!1:t}function Oo(e=""){return String(e).replace(/(\p{Lowercase_Letter})(\p{Uppercase_Letter})/gu,(t,r,n)=>`${r}-${n}`).replace(/\W+/gu,"-").toLowerCase()}var Ho=Date.now(),Lt=()=>`(+${Date.now()-Ho}ms)`,Ve=new Set,Mo=H(me("tacocat.debug",{},{metadata:!1}),typeof process<"u"&&process.env?.DEBUG);function $r(e){let t=`[${Ur}/${e}]`,r=(a,s,...c)=>a?!0:(o(s,...c),!1),n=Mo?(a,...s)=>{console.debug(`${t} ${a}`,...s,Lt())}:()=>{},o=(a,...s)=>{let c=`${t} ${a}`;Ve.forEach(([h])=>h(c,...s))};return{assert:r,debug:n,error:o,warn:(a,...s)=>{let c=`${t} ${a}`;Ve.forEach(([,h])=>h(c,...s))}}}function Io(e,t){let r=[e,t];return Ve.add(r),()=>{Ve.delete(r)}}Io((e,...t)=>{console.error(e,...t,Lt())},(e,...t)=>{console.warn(e,...t,Lt())});var Vr="ABM",jr="PUF",Yr="M2M",Wr="PERPETUAL",qr="P3Y",ko="TAX_INCLUSIVE_DETAILS",Bo="TAX_EXCLUSIVE",Xr={ABM:Vr,PUF:jr,M2M:Yr,PERPETUAL:Wr,P3Y:qr},tl={[Vr]:{commitment:R.YEAR,term:_.MONTHLY},[jr]:{commitment:R.YEAR,term:_.ANNUAL},[Yr]:{commitment:R.MONTH,term:_.MONTHLY},[Wr]:{commitment:R.PERPETUAL,term:void 0},[qr]:{commitment:R.THREE_MONTHS,term:_.P3Y}};function Ct(e){let{priceDetails:t}=e,{price:r,priceWithoutDiscount:n,priceWithoutTax:o,priceWithoutDiscountAndTax:i,taxDisplay:a}=t;if(a!==ko)return e;let s={...e,priceDetails:{...t,price:o??r,priceWithoutDiscount:i??n,taxDisplay:Bo}};return s.offerType==="TRIAL"&&s.priceDetails.price===0&&(s.priceDetails.price=s.priceDetails.priceWithoutDiscount),s}var Pt=function(e,t){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Pt(e,t)};function Se(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var b=function(){return b=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Go,function(c,h,l,f,p,g){if(h)t.minimumIntegerDigits=l.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(an.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(en.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(en,function(c,h,l,f,p,g){return l==="*"?t.minimumFractionDigits=h.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:p&&g?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+g.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var i=o.options[0];i==="w"?t=b(b({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=b(b({},t),tn(i)));continue}if(on.test(o.stem)){t=b(b({},t),tn(o.stem));continue}var a=sn(o.stem);a&&(t=b(b({},t),a));var s=zo(o.stem);s&&(t=b(b({},t),s))}return t}var Te={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function hn(e,t){for(var r="",n=0;n>1),c="a",h=Fo(t);for((h=="H"||h=="k")&&(s=0);s-- >0;)r+=c;for(;a-- >0;)r=h+r}else o==="J"?r+="H":r+=o}return r}function Fo(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Te[n||""]||Te[r||""]||Te["".concat(r,"-001")]||Te["001"];return o[0]}var Ot,$o=new RegExp("^".concat(Nt.source,"*")),Vo=new RegExp("".concat(Nt.source,"*$"));function v(e,t){return{start:e,end:t}}var jo=!!String.prototype.startsWith,Yo=!!String.fromCodePoint,Wo=!!Object.fromEntries,qo=!!String.prototype.codePointAt,Xo=!!String.prototype.trimStart,Ko=!!String.prototype.trimEnd,Zo=!!Number.isSafeInteger,Qo=Zo?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Mt=!0;try{ln=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Mt=((Ot=ln.exec("a"))===null||Ot===void 0?void 0:Ot[0])==="a"}catch{Mt=!1}var ln,mn=jo?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},It=Yo?String.fromCodePoint:function(){for(var t=[],r=0;ri;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},dn=Wo?Object.fromEntries:function(t){for(var r={},n=0,o=t;n=n)){var o=t.charCodeAt(r),i;return o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},Jo=Xo?function(t){return t.trimStart()}:function(t){return t.replace($o,"")},ei=Ko?function(t){return t.trimEnd()}:function(t){return t.replace(Vo,"")};function pn(e,t){return new RegExp(e,t)}var kt;Mt?(Ht=pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),kt=function(t,r){var n;Ht.lastIndex=r;var o=Ht.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}):kt=function(t,r){for(var n=[];;){var o=un(t,r);if(o===void 0||gn(o)||ni(o))break;n.push(o),r+=o>=65536?2:1}return It.apply(void 0,n)};var Ht,fn=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:E.pound,location:v(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(x.UNMATCHED_CLOSING_TAG,v(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Bt(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:E.literal,value:"<".concat(o,"/>"),location:v(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:E.tag,value:o,children:a,location:v(n,this.clonePosition())},err:null}:this.error(x.INVALID_TAG,v(s,this.clonePosition())))}else return this.error(x.UNCLOSED_TAG,v(n,this.clonePosition()))}else return this.error(x.INVALID_TAG,v(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ri(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var c=v(n,this.clonePosition());return{val:{type:E.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ti(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return It.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),It(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(x.EMPTY_ARGUMENT,v(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(x.MALFORMED_ARGUMENT,v(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:E.argument,value:o,location:v(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,v(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(x.MALFORMED_ARGUMENT,v(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=kt(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=v(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(x.EXPECT_ARGUMENT_TYPE,v(a,c));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=ei(f.val);if(p.length===0)return this.error(x.EXPECT_ARGUMENT_STYLE,v(this.clonePosition(),this.clonePosition()));var g=v(l,this.clonePosition());h={style:p,styleLocation:g}}var y=this.tryParseArgumentClose(o);if(y.err)return y;var S=v(o,this.clonePosition());if(h&&mn(h?.style,"::",0)){var M=Jo(h.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(M,h.styleLocation);return f.err?f:{val:{type:E.number,value:n,location:S,style:f.val},err:null}}else{if(M.length===0)return this.error(x.EXPECT_DATE_TIME_SKELETON,S);var G=M;this.locale&&(G=hn(M,this.locale));var p={type:q.dateTime,pattern:G,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Qr(G):{}},z=s==="date"?E.date:E.time;return{val:{type:z,value:n,location:S,style:p},err:null}}}return{val:{type:s==="number"?E.number:s==="date"?E.date:E.time,value:n,location:S,style:(i=h?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS,v(O,b({},O)));this.bumpSpace();var j=this.parseIdentifierIfPossible(),D=0;if(s!=="select"&&j.value==="offset"){if(!this.bumpIf(":"))return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,v(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),j=this.parseIdentifierIfPossible(),D=f.val}var k=this.tryParsePluralOrSelectOptions(t,s,r,j);if(k.err)return k;var y=this.tryParseArgumentClose(o);if(y.err)return y;var Me=v(o,this.clonePosition());return s==="select"?{val:{type:E.select,value:n,options:dn(k.val),location:Me},err:null}:{val:{type:E.plural,value:n,options:dn(k.val),offset:D,pluralType:s==="plural"?"cardinal":"ordinal",location:Me},err:null}}default:return this.error(x.INVALID_ARGUMENT_TYPE,v(a,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,v(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,v(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=nn(t)}catch{return this.error(x.INVALID_NUMBER_SKELETON,r)}return{val:{type:q.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?cn(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,s=[],c=new Set,h=o.value,l=o.location;;){if(h.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR,x.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;l=v(f,this.clonePosition()),h=this.message.slice(f.offset,this.offset())}else break}if(c.has(h))return this.error(r==="select"?x.DUPLICATE_SELECT_ARGUMENT_SELECTOR:x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);h==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,v(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var S=this.tryParseArgumentClose(g);if(S.err)return S;s.push([h,{value:y.val,location:v(g,this.clonePosition())}]),c.add(h),this.bumpSpace(),i=this.parseIdentifierIfPossible(),h=i.value,l=i.location}return s.length===0?this.error(r==="select"?x.EXPECT_SELECT_ARGUMENT_SELECTOR:x.EXPECT_PLURAL_ARGUMENT_SELECTOR,v(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(x.MISSING_OTHER_CLAUSE,v(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var c=v(o,this.clonePosition());return i?(a*=n,Qo(a)?{val:a,err:null}:this.error(r,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=un(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(mn(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&gn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function Bt(e){return e>=97&&e<=122||e>=65&&e<=90}function ti(e){return Bt(e)||e===47}function ri(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function gn(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ni(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Dt(e){e.forEach(function(t){if(delete t.location,Xe(t)||Ke(t))for(var r in t.options)delete t.options[r].location,Dt(t.options[r].value);else Ye(t)&&Qe(t.style)||(We(t)||qe(t))&&Ae(t.style)?delete t.style.location:Ze(t)&&Dt(t.children)})}function xn(e,t){t===void 0&&(t={}),t=b({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new fn(e,t).parse();if(r.err){var n=SyntaxError(x[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||Dt(r.val),r.val}function _e(e,t){var r=t&&t.cache?t.cache:hi,n=t&&t.serializer?t.serializer:ci,o=t&&t.strategy?t.strategy:ii;return o(e,{cache:r,serializer:n})}function oi(e){return e==null||typeof e=="number"||typeof e=="boolean"}function bn(e,t,r,n){var o=oi(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function vn(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function Ut(e,t,r,n,o){return r.bind(t,e,n,o)}function ii(e,t){var r=e.length===1?bn:vn;return Ut(e,this,r,t.cache.create(),t.serializer)}function ai(e,t){return Ut(e,this,vn,t.cache.create(),t.serializer)}function si(e,t){return Ut(e,this,bn,t.cache.create(),t.serializer)}var ci=function(){return JSON.stringify(arguments)};function Gt(){this.cache=Object.create(null)}Gt.prototype.get=function(e){return this.cache[e]};Gt.prototype.set=function(e,t){this.cache[e]=t};var hi={create:function(){return new Gt}},Je={variadic:ai,monadic:si};var X;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(X||(X={}));var Le=function(e){Se(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error);var zt=function(e){Se(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),X.INVALID_VALUE,i)||this}return t}(Le);var yn=function(e){Se(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),X.INVALID_VALUE,o)||this}return t}(Le);var En=function(e){Se(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),X.MISSING_VALUE,n)||this}return t}(Le);var P;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(P||(P={}));function li(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==P.literal||r.type!==P.literal?t.push(r):n.value+=r.value,t},[])}function mi(e){return typeof e=="function"}function Ce(e,t,r,n,o,i,a){if(e.length===1&&Rt(e[0]))return[{type:P.literal,value:e[0].value}];for(var s=[],c=0,h=e;c0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=xn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Sn=wn;var fi=/[0-9\-+#]/,gi=/[^\d\-+#]/g;function An(e){return e.search(fi)}function xi(e="#.##"){let t={},r=e.length,n=An(e);t.prefix=n>0?e.substring(0,n):"";let o=An(e.split("").reverse().join("")),i=r-o,a=e.substring(i,i+1),s=i+(a==="."||a===","?1:0);t.suffix=o>0?e.substring(s,r):"",t.mask=e.substring(n,s),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match(gi);return t.decimal=c&&c[c.length-1]||".",t.separator=c&&c[1]&&c[0]||",",c=t.mask.split(t.decimal),t.integer=c[0],t.fraction=c[1],t}function bi(e,t,r){let n=!1,o={value:e};e<0&&(n=!0,o.value=-o.value),o.sign=n?"-":"",o.value=Number(o.value).toFixed(t.fraction&&t.fraction.length),o.value=Number(o.value).toString();let i=t.fraction&&t.fraction.lastIndexOf("0"),[a="0",s=""]=o.value.split(".");return(!s||s&&s.length<=i)&&(s=i<0?"":(+("0."+s)).toFixed(i+1).replace("0.","")),o.integer=a,o.fraction=s,vi(o,t),(o.result==="0"||o.result==="")&&(n=!1,o.sign=""),!n&&t.maskHasPositiveSign?o.sign="+":n&&t.maskHasPositiveSign?o.sign="-":n&&(o.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),o}function vi(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),o=n&&n.indexOf("0");if(o>-1)for(;e.integer.length({accept:e,round:t}),Si=[$t(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),$t(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),$t(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Vt={[R.YEAR]:{[_.MONTHLY]:Pe.MONTH,[_.ANNUAL]:Pe.YEAR},[R.MONTH]:{[_.MONTHLY]:Pe.MONTH}},Ai=(e,t)=>e.indexOf(`'${t}'`)===0,Ti=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Nn(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Li(e)),r},_i=e=>{let t=Ci(e),r=Ai(e,t),n=e.replace(/'.*?'/,""),o=Cn.test(n)||Pn.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:o}},Rn=e=>e.replace(Cn,Ln).replace(Pn,Ln),Li=e=>e.match(/#(.?)#/)?.[1]===_n?Ei:_n,Ci=e=>e.match(/'(.*?)'/)?.[1]??"",Nn=e=>e.match(/0(.?)0/)?.[1]??"";function et({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},o,i=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=_i(e),l=r?Nn(e):"",h=Ti(e,r),f=r?2:0,p=i(t,{currencySymbol:a}),g=n?p.toLocaleString("hi-IN",{minimumFractionDigits:f,maximumFractionDigits:f}):Tn(h,p),y=r?g.lastIndexOf(l):g.length,S=g.substring(0,y),M=g.substring(y+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,g).replace(/SYMBOL/,a),currencySymbol:a,decimals:M,decimalsDelimiter:l,hasCurrencySpace:c,integer:S,isCurrencyFirst:s,recurrenceTerm:o}}var On=e=>{let{commitment:t,term:r,usePrecision:n}=e,o=wi[r]??1;return et(e,o>1?Pe.MONTH:Vt[t]?.[r],i=>{let a={divisor:o,price:i,usePrecision:n},{round:s}=Si.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},Hn=({commitment:e,term:t,...r})=>et(r,Vt[e]?.[t]),Mn=e=>{let{commitment:t,term:r}=e;return t===R.YEAR&&r===_.MONTHLY?et(e,Pe.YEAR,n=>n*12):et(e,Vt[t]?.[r])};var Pi={recurrenceLabel:"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per license} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per license} other {}}",freeLabel:"Free",freeAriaLabel:"Free",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternatively at {alternativePrice}",strikethroughAriaLabel:"Regularly at {strikethroughPrice}"},Ri=$r("ConsonantTemplates/price"),Ni=/<\/?[^>]+(>|$)/g,L={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAnnual:"price-annual",containerAnnualPrefix:"price-annual-prefix",containerAnnualSuffix:"price-annual-suffix",disabled:"disabled",currencySpace:"price-currency-space",currencySymbol:"price-currency-symbol",decimals:"price-decimals",decimalsDelimiter:"price-decimals-delimiter",integer:"price-integer",recurrence:"price-recurrence",taxInclusivity:"price-tax-inclusivity",unitType:"price-unit-type"},K={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel"},Oi="TAX_EXCLUSIVE",Hi=e=>Fr(e)?Object.entries(e).filter(([,t])=>ye(t)||_t(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+Gr(n)+'"'}`,""):"",N=(e,t,r,n=!1)=>`${n?Rn(t):t??""}`;function Mi(e,{accessibleLabel:t,currencySymbol:r,decimals:n,decimalsDelimiter:o,hasCurrencySpace:i,integer:a,isCurrencyFirst:s,recurrenceLabel:c,perUnitLabel:l,taxInclusivityLabel:h},f={}){let p=N(L.currencySymbol,r),g=N(L.currencySpace,i?" ":""),y="";return s&&(y+=p+g),y+=N(L.integer,a),y+=N(L.decimalsDelimiter,o),y+=N(L.decimals,n),s||(y+=g+p),y+=N(L.recurrence,c,null,!0),y+=N(L.unitType,l,null,!0),y+=N(L.taxInclusivity,h,!0),N(e,y,{...f,"aria-label":t})}var I=({displayOptical:e=!1,displayStrikethrough:t=!1,displayAnnual:r=!1}={})=>({country:n,displayFormatted:o=!0,displayRecurrence:i=!0,displayPerUnit:a=!1,displayTax:s=!1,language:c,literals:l={}}={},{commitment:h,offerSelectorIds:f,formatString:p,price:g,priceWithoutDiscount:y,taxDisplay:S,taxTerm:M,term:G,usePrecision:z}={},O={})=>{Object.entries({country:n,formatString:p,language:c,price:g}).forEach(([U,st])=>{if(st==null)throw new Error(`Argument "${U}" is missing for osi ${f?.toString()}, country ${n}, language ${c}`)});let j={...Pi,...l},D=`${c.toLowerCase()}-${n.toUpperCase()}`;function k(U,st){let ct=j[U];if(ct==null)return"";try{return new Sn(ct.replace(Ni,""),D).format(st)}catch{return Ri.error("Failed to format literal:",ct),""}}let Me=t&&y?y:g,tr=e?On:Hn;r&&(tr=Mn);let{accessiblePrice:oo,recurrenceTerm:ot,...rr}=tr({commitment:h,formatString:p,term:G,price:e?g:Me,usePrecision:z,isIndianPrice:n==="IN"}),J=oo,it="";if(H(i)&&ot){let U=k(K.recurrenceAriaLabel,{recurrenceTerm:ot});U&&(J+=" "+U),it=k(K.recurrenceLabel,{recurrenceTerm:ot})}let at="";if(H(a)){at=k(K.perUnitLabel,{perUnit:"LICENSE"});let U=k(K.perUnitAriaLabel,{perUnit:"LICENSE"});U&&(J+=" "+U)}let pe="";H(s)&&M&&(pe=k(S===Oi?K.taxExclusiveLabel:K.taxInclusiveLabel,{taxTerm:M}),pe&&(J+=" "+pe)),t&&(J=k(K.strikethroughAriaLabel,{strikethroughPrice:J}));let fe=L.container;if(e&&(fe+=" "+L.containerOptical),t&&(fe+=" "+L.containerStrikethrough),r&&(fe+=" "+L.containerAnnual),H(o))return Mi(fe,{...rr,accessibleLabel:J,recurrenceLabel:it,perUnitLabel:at,taxInclusivityLabel:pe},O);let{currencySymbol:nr,decimals:io,decimalsDelimiter:ao,hasCurrencySpace:or,integer:so,isCurrencyFirst:co}=rr,ee=[so,ao,io];co?(ee.unshift(or?"\xA0":""),ee.unshift(nr)):(ee.push(or?"\xA0":""),ee.push(nr)),ee.push(it,at,pe);let lo=ee.join("");return N(fe,lo,O)},In=()=>(e,t,r)=>{let o=(e.displayOldPrice===void 0||H(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${I()(e,t,r)}${o?" "+I({displayStrikethrough:!0})(e,t,r):""}`},kn=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${(e.displayOldPrice===void 0||H(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price?I({displayStrikethrough:!0})(n,t,r)+" ":""}${I()(e,t,r)}${N(L.containerAnnualPrefix," (")}${I({displayAnnual:!0})(n,t,r)}${N(L.containerAnnualSuffix,")")}`},Bn=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${I()(e,t,r)}${N(L.containerAnnualPrefix," (")}${I({displayAnnual:!0})(n,t,r)}${N(L.containerAnnualSuffix,")")}`};var Ii=I(),ki=In(),Bi=I({displayOptical:!0}),Di=I({displayStrikethrough:!0}),Ui=I({displayAnnual:!0}),Gi=Bn(),zi=kn();var Fi=(e,t)=>{if(!(!we(e)||!we(t)))return Math.floor((t-e)/t*100)},Dn=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,o=Fi(r,n);return o===void 0?'':`${o}%`};var $i=Dn();var{freeze:Re}=Object,jt=Re({...be}),Yt=Re({...ve}),Wt={STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"},dd=Re({...R}),ud=Re({...Xr}),pd=Re({..._});var Gn="mas-commerce-service";function zn(e,{once:t=!1}={}){let r=null;function n(){let o=document.querySelector(Gn);o!==r&&(r=o,o&&e(o))}return document.addEventListener(dt,n,{once:t}),Ne(n),()=>document.removeEventListener(dt,n)}function Fn(e,{country:t,forceTaxExclusive:r,perpetual:n}){let o;if(e.length<2)o=e;else{let i=t==="GB"||n?"EN":"MULT",[a,s]=e;o=[a.language===i?a:s]}return r&&(o=o.map(Ct)),o}var Ne=e=>window.setTimeout(e);function Z(){return document.getElementsByTagName(Gn)?.[0]}var Q={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},$n=1e3,Vn=new Set;function Yi(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function jn(e){if(e==null)return;let t=typeof e;if(t==="function")return e.name?`function ${e.name}`:"function";if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:n,originatingRequest:o,status:i}=e;return[n,i,o].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!Q.serializableTypes.includes(r))return r}return e}function Wi(e,t){if(!Q.ignoredProperties.includes(e))return jn(t)}var qt={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],o=[],i=t;r.forEach(l=>{l!=null&&(Yi(l)?n:o).push(l)}),n.length&&(i+=" "+n.map(jn).join(" "));let{pathname:a,search:s}=window.location,c=`${Q.delimiter}page=${a}${s}`;c.length>$n&&(c=`${c.slice(0,$n)}`),i+=c,o.length&&(i+=`${Q.delimiter}facts=`,i+=JSON.stringify(o,Wi)),Vn.has(i)||(Vn.add(i),window.lana?.log(i,Q))}};function Yn(e){Object.assign(Q,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in Q&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var qi=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:jt.V3,checkoutWorkflowStep:Yt.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,env:Wt.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsBufferDelay:1,wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:ft.PUBLISHED,wcsBufferLimit:1});var Xt=Object.freeze({LOCAL:"local",PROD:"prod",STAGE:"stage"});var Kt={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Xi=Date.now(),Zt=new Set,Qt=new Set,Wn=new Map,qn={append({level:e,message:t,params:r,timestamp:n,source:o}){console[e](`${n}ms [${o}] %c${t}`,"font-weight: bold;",...r)}},Xn={filter:({level:e})=>e!==Kt.DEBUG},Ki={filter:()=>!1};function Zi(e,t,r,n,o){return{level:e,message:t,namespace:r,get params(){return n.length===1&&Ee(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:o,timestamp:Date.now()-Xi}}function Qi(e){[...Qt].every(t=>t(e))&&Zt.forEach(t=>t(e))}function Kn(e){let t=(Wn.get(e)??0)+1;Wn.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:o=>Kn(`${n.namespace}/${o}`),updateConfig:Yn};return Object.values(Kt).forEach(o=>{n[o]=(i,...a)=>Qi(Zi(o,i,e,a,r))}),Object.seal(n)}function tt(...e){e.forEach(t=>{let{append:r,filter:n}=t;Ee(n)&&Qt.add(n),Ee(r)&&Zt.add(r)})}function Ji(e={}){let{name:t}=e,r=H(me("commerce.debug",{search:!0,storage:!0}),t===Xt.LOCAL);return tt(r?qn:Xn),t===Xt.PROD&&tt(qt),Jt}function ea(){Zt.clear(),Qt.clear()}var Jt={...Kn(Sr),Level:Kt,Plugins:{consoleAppender:qn,debugFilter:Xn,quietFilter:Ki,lanaAppender:qt},init:Ji,reset:ea,use:tt};var ta={[$]:br,[Y]:vr,[V]:yr},ra={[$]:Er,[V]:wr},rt=class{constructor(t){u(this,"changes",new Map);u(this,"connected",!1);u(this,"dispose",de);u(this,"error");u(this,"log");u(this,"options");u(this,"promises",[]);u(this,"state",Y);u(this,"timer",null);u(this,"value");u(this,"version",0);u(this,"wrapperElement");this.wrapperElement=t}update(){[$,Y,V].forEach(t=>{this.wrapperElement.classList.toggle(ta[t],t===this.state)})}notify(){(this.state===V||this.state===$)&&(this.state===V?this.promises.forEach(({resolve:t})=>t(this.wrapperElement)):this.state===$&&this.promises.forEach(({reject:t})=>t(this.error)),this.promises=[]),this.wrapperElement.dispatchEvent(new CustomEvent(ra[this.state],{bubbles:!0}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){this.dispose=zn(()=>this.requestUpdate(!0))}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement})),this.dispose(),this.dispose=de}onceSettled(){let{error:t,promises:r,state:n}=this;return V===n?Promise.resolve(this.wrapperElement):$===n?Promise.reject(t):new Promise((o,i)=>{r.push({resolve:o,reject:i})})}toggleResolved(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.state=V,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),Ne(()=>this.notify()),!0)}toggleFailed(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.error=r,this.state=$,this.update(),this.log?.error("Failed:",{element:this.wrapperElement,error:r}),Ne(()=>this.notify()),!0)}togglePending(t){return this.version++,t&&(this.options=t),this.state=Y,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!Z()||this.timer)return;let r=Jt.module("mas-element"),{error:n,options:o,state:i,value:a,version:s}=this;this.state=Y,this.timer=Ne(async()=>{this.timer=null;let c=null;if(this.changes.size&&(c=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:c}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:c})),c||t)try{await this.wrapperElement.render?.()===!1&&this.state===Y&&this.version===s&&(this.state=i,this.error=n,this.value=a,this.update(),this.notify())}catch(l){r.error("Failed to render mas-element: ",l),this.toggleFailed(this.version,l,o)}})}};function Zn(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Qn(e,t={}){let{tag:r,is:n}=e,o=document.createElement(r,{is:n});return o.setAttribute("is",n),Object.assign(o.dataset,Zn(t)),o}function Jn(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,Zn(t)),e):null}var na="download",oa="upgrade";function eo(e,t={},r=""){let n=Z();if(!n)return null;let{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:f,quantity:p,wcsOsi:g,extraOptions:y}=n.collectCheckoutOptions(t),S=Qn(e,{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:l,perpetual:h,promotionCode:f,quantity:p,wcsOsi:g,extraOptions:y});return r&&(S.innerHTML=`${r}`),S}function to(e){return class extends e{constructor(){super(...arguments);u(this,"checkoutActionHandler");u(this,"masElement",new rt(this))}attributeChangedCallback(n,o,i){this.masElement.attributeChangedCallback(n,o,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.clickHandler)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.clickHandler)}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}requestUpdate(n=!1){return this.masElement.requestUpdate(n)}static get observedAttributes(){return["data-checkout-workflow","data-checkout-workflow-step","data-extra-options","data-ims-country","data-perpetual","data-promotion-code","data-quantity","data-template","data-wcs-osi","data-entitlement","data-upgrade","data-modal"]}async render(n={}){if(!this.isConnected)return!1;let o=Z();if(!o)return!1;this.dataset.imsCountry||o.imsCountryPromise.then(f=>{f&&(this.dataset.imsCountry=f)},de),n.imsCountry=null;let i=o.collectCheckoutOptions(n,this);if(!i.wcsOsi.length)return!1;let a;try{a=JSON.parse(i.extraOptions??"{}")}catch(f){this.masElement.log?.error("cannot parse exta checkout options",f)}let s=this.masElement.togglePending(i);this.setCheckoutUrl("");let c=o.resolveOfferSelectors(i),l=await Promise.all(c);l=l.map(f=>Fn(f,i)),i.country=this.dataset.imsCountry||i.country;let h=await o.buildCheckoutAction?.(l.flat(),{...a,...i},this);return this.renderOffers(l.flat(),i,{},h,s)}renderOffers(n,o,i={},a=void 0,s=void 0){if(!this.isConnected)return!1;let c=Z();if(!c)return!1;if(o={...JSON.parse(this.dataset.extraOptions??"null"),...o,...i},s??(s=this.masElement.togglePending(o)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0),a){this.classList.remove(na,oa),this.masElement.toggleResolved(s,n,o);let{url:h,text:f,className:p,handler:g}=a;return h&&this.setCheckoutUrl(h),f&&(this.firstElementChild.innerHTML=f),p&&this.classList.add(...p.split(" ")),g&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=g.bind(this)),!0}else if(n.length){if(this.masElement.toggleResolved(s,n,o)){let h=c.buildCheckoutURL(n,o);return this.setCheckoutUrl(h),!0}}else{let h=new Error(`Not provided: ${o?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(s,h,o))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(n){}updateOptions(n={}){let o=Z();if(!o)return!1;let{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:f,promotionCode:p,quantity:g,wcsOsi:y}=o.collectCheckoutOptions(n);return Jn(this,{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:l,modal:h,perpetual:f,promotionCode:p,quantity:g,wcsOsi:y}),!0}}}var Oe=class Oe extends to(HTMLButtonElement){static createCheckoutButton(t={},r=""){return eo(Oe,t,r)}setCheckoutUrl(t){this.setAttribute("data-href",t)}get href(){return this.getAttribute("data-href")}get isCheckoutButton(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}this.href&&(window.location.href=this.href)}};u(Oe,"is","checkout-button"),u(Oe,"tag","button");var ue=Oe;window.customElements.get(ue.is)||window.customElements.define(ue.is,ue,{extends:ue.tag});var ia="#000000",aa="#F8D904",sa=/(accent|primary|secondary)(-(outline|link))?/,ca="mas:product_code/",la="daa-ll",nt="daa-lh",ha=["XL","L","M","S"];function ma(e,t,r){e.mnemonicIcon?.map((o,i)=>({icon:o,alt:e.mnemonicAlt[i]??"",link:e.mnemonicLink[i]??""}))?.forEach(({icon:o,alt:i,link:a})=>{if(a&&!/^https?:/.test(a))try{a=new URL(`https://${a}`).href.toString()}catch{a="#"}let s={slot:"icons",src:o,size:r?.size??"l"};i&&(s.alt=i),a&&(s.href=a);let c=B("merch-icon",s);t.append(c)})}function da(e,t){e.badge&&(t.setAttribute("badge-text",e.badge),t.setAttribute("badge-color",e.badgeColor||ia),t.setAttribute("badge-background-color",e.badgeBackgroundColor||aa))}function ua(e,t,r){r?.includes(e.size)&&t.setAttribute("size",e.size)}function pa(e,t,r){e.cardTitle&&r&&t.append(B(r.tag,{slot:r.slot},e.cardTitle))}function fa(e,t,r){e.subtitle&&r&&t.append(B(r.tag,{slot:r.slot},e.subtitle))}function ga(e,t,r){if(r?.tag&&e.backgroundImage){let n={loading:"lazy",src:e.backgroundImage};e.backgroundImageAltText?n.alt=e.backgroundImageAltText:n.role="none",t.append(B(r.tag,{slot:r.slot},B("img",n)))}r?.attribute&&t.setAttribute(r.attribute,e.backgroundImage)}function xa(e,t,r){if(e.prices&&r){let n=B(r.tag,{slot:r.slot},e.prices);t.append(n)}}function ba(e,t,r){if(e.description&&r){let n=B(r.tag,{slot:r.slot},e.description);t.append(n)}}function va(e,t,r,n){let i=customElements.get("checkout-button").createCheckoutButton({},e.innerHTML);i.setAttribute("tabindex",0);for(let h of e.attributes)["class","is"].includes(h.name)||i.setAttribute(h.name,h.value);i.firstElementChild?.classList.add("spectrum-Button-label");let a=t.ctas.size??"M",s=`spectrum-Button--${n}`,c=ha.includes(a)?`spectrum-Button--size${a}`:"spectrum-Button--sizeM",l=["spectrum-Button",s,c];return r&&l.push("spectrum-Button--outline"),i.classList.add(...l),i}function ya(e,t,r,n){let o="fill";r&&(o="outline");let i=B("sp-button",{treatment:o,variant:n,tabIndex:0,size:t.ctas.size??"m"},e);return i.addEventListener("click",a=>{a.target!==e&&(a.stopPropagation(),e.click())}),i}function Ea(e,t){return e.classList.add("con-button"),t&&e.classList.add("blue"),e}function wa(e,t,r,n){if(e.ctas){let{slot:o}=r.ctas,i=B("div",{slot:o},e.ctas),a=[...i.querySelectorAll("a")].map(s=>{let c=s.parentElement.tagName==="STRONG";if(t.consonant)return Ea(s,c);let l=sa.exec(s.className)?.[0]??"accent",h=l.includes("accent"),f=l.includes("primary"),p=l.includes("secondary"),g=l.includes("-outline");if(l.includes("-link"))return s;let S;return h||c?S="accent":f?S="primary":p&&(S="secondary"),t.spectrum==="swc"?ya(s,r,g,S):va(s,r,g,S)});i.innerHTML="",i.append(...a),t.append(i)}}function Sa(e,t){let{tags:r}=e,n=r?.find(o=>o.startsWith(ca))?.split("/").pop();n&&(t.setAttribute(nt,n),t.querySelectorAll("a[data-analytics-id],button[data-analytics-id]").forEach((o,i)=>{o.setAttribute(la,`${o.dataset.analyticsId}-${i+1}`)}))}function Aa(e){e.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([t,r])=>{e.querySelectorAll(`a.${t}`).forEach(n=>{n.classList.remove(t),n.classList.add("spectrum-Link",`spectrum-Link--${r}`)})})}async function ro(e,t){let{fields:r}=e,{variant:n}=r;if(!n)return;t.id=e.id,t.querySelectorAll("[slot]").forEach(i=>{i.remove()}),t.removeAttribute("background-image"),t.removeAttribute("badge-background-color"),t.removeAttribute("badge-color"),t.removeAttribute("badge-text"),t.removeAttribute("size"),t.classList.remove("wide-strip"),t.classList.remove("thin-strip"),t.removeAttribute(nt),t.variant=n,await t.updateComplete;let{aemFragmentMapping:o}=t.variantLayout;o&&(ma(r,t,o.mnemonics),da(r,t),ua(r,t,o.allowedSizes),pa(r,t,o.title),fa(r,t,o.subtitle),xa(r,t,o.prices),ga(r,t,o.backgroundImage,n),ba(r,t,o.description),wa(r,t,o,n),Sa(r,t),Aa(t))}var _a="merch-card",La=":start",Ca=":ready",Pa=1e4,no="merch-card:",He,er,d=class extends Ta{constructor(){super();Ie(this,He);u(this,"customerSegment");u(this,"marketSegment");u(this,"variantLayout");this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this)}firstUpdated(){this.variantLayout=yt(this,!1),this.variantLayout?.connectedCallbackHook(),this.aemFragment?.updateComplete.catch(()=>{this.style.display="none"})}willUpdate(r){(r.has("variant")||!this.variantLayout)&&(this.variantLayout=yt(this),this.variantLayout.connectedCallbackHook())}updated(r){(r.has("badgeBackgroundColor")||r.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),this.variantLayout?.postCardUpdateHook(r)}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["twp","ccd-slice","ccd-suggested"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector('span[is="inline-price"]')}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll('a[is="checkout-link"]')??[]]}async toggleStockOffer({target:r}){if(!this.stockOfferOsis)return;let n=this.checkoutLinks;if(n.length!==0)for(let o of n){await o.onceSettled();let i=o.value?.[0]?.planType;if(!i)return;let a=this.stockOfferOsis[i];if(!a)return;let s=o.dataset.wcsOsi.split(",").filter(c=>c!==a);r.checked&&s.push(a),o.dataset.wcsOsi=s.join(",")}}handleQuantitySelection(r){let n=this.checkoutLinks;for(let o of n)o.dataset.quantity=r.detail.option}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(r){let n={...this.filters};Object.keys(n).forEach(o=>{if(r){n[o].order=Math.min(n[o].order||2,2);return}let i=n[o].order;i===1||isNaN(i)||(n[o].order=Number(i)+1)}),this.filters=n}includes(r){return this.textContent.match(new RegExp(r,"i"))!==null}connectedCallback(){super.connectedCallback();let r=this.querySelector("aem-fragment")?.getAttribute("fragment");performance.mark(`${no}${r}${La}`),this.addEventListener(pt,this.handleQuantitySelection),this.addEventListener(ur,this.merchCardReady,{once:!0}),this.updateComplete.then(()=>{this.merchCardReady()}),this.storageOptions?.addEventListener("change",this.handleStorageChange),this.addEventListener(Ge,this.handleAemFragmentEvents),this.addEventListener(Ue,this.handleAemFragmentEvents),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(pt,this.handleQuantitySelection),this.storageOptions?.removeEventListener(ut,this.handleStorageChange),this.removeEventListener(Ge,this.handleAemFragmentEvents),this.removeEventListener(Ue,this.handleAemFragmentEvents)}async handleAemFragmentEvents(r){if(r.type===Ge&&mt(this,He,er).call(this,"AEM fragment cannot be loaded"),r.type===Ue&&r.target.nodeName==="AEM-FRAGMENT"){let n=r.detail;await ro(n,this),this.checkReady()}}async checkReady(){let r=Promise.all([...this.querySelectorAll('span[is="inline-price"][data-wcs-osi],a[is="checkout-link"][data-wcs-osi]')].map(i=>i.onceSettled().catch(()=>i))).then(i=>i.every(a=>a.classList.contains("placeholder-resolved"))),n=new Promise(i=>setTimeout(()=>i(!1),Pa));if(await Promise.race([r,n])===!0){performance.mark(`${no}${this.id}${Ca}`),this.dispatchEvent(new CustomEvent(gr,{bubbles:!0,composed:!0}));return}mt(this,He,er).call(this,"Contains unresolved offers")}get aemFragment(){return this.querySelector("aem-fragment")}get storageOptions(){return this.querySelector("sp-radio-group#storage")}get storageSpecificOfferSelect(){let r=this.storageOptions?.selected;if(r){let n=this.querySelector(`merch-offer-select[storage="${r}"]`);if(n)return n}return this.querySelector("merch-offer-select")}get offerSelect(){return this.storageOptions?this.storageSpecificOfferSelect:this.querySelector("merch-offer-select")}get quantitySelect(){return this.querySelector("merch-quantity-select")}merchCardReady(){this.offerSelect&&!this.offerSelect.planType||this.dispatchEvent(new CustomEvent(pr,{bubbles:!0}))}handleStorageChange(){let r=this.closest("merch-card")?.offerSelect.cloneNode(!0);r&&this.dispatchEvent(new CustomEvent(ut,{detail:{offerSelect:r},bubbles:!0}))}get dynamicPrice(){return this.querySelector('[slot="price"]')}selectMerchOffer(r){if(r===this.merchOffer)return;this.merchOffer=r;let n=this.dynamicPrice;if(r.price&&n){let o=r.price.cloneNode(!0);n.onceSettled?n.onceSettled().then(()=>{n.replaceWith(o)}):n.replaceWith(o)}}};He=new WeakSet,er=function(r){this.dispatchEvent(new CustomEvent(xr,{detail:r,bubbles:!0,composed:!0}))},u(d,"properties",{name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:r=>{let[n,o,i]=r.split(",");return{PUF:n,ABM:o,M2M:i}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:r=>Object.fromEntries(r.split(",").map(n=>{let[o,i,a]=n.split(":"),s=Number(i);return[o,{order:isNaN(s)?void 0:s,size:a}]})),toAttribute:r=>Object.entries(r).map(([n,{order:o,size:i}])=>[n,o,i].filter(a=>a!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:nt,reflect:!0}}),u(d,"styles",[hr,Br(),...mr()]);customElements.define(_a,d); +`,X.MISSING_INTL_API,a);var j=r.getPluralRules(t,{type:l.pluralType}).select(p-(l.offset||0));O=l.options[j]||l.options.other}if(!O)throw new zt(l.value,p,Object.keys(l.options),a);s.push.apply(s,Ce(O.value,t,r,n,o,p-(l.offset||0)));continue}}return li(s)}function di(e,t){return t?b(b(b({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=b(b({},e[n]),t[n]||{}),r},{})):e}function ui(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=di(e[n],t[n]),r},b({},e)):e}function Ft(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function pi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_e(function(){for(var t,r=[],n=0;n0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=xn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Sn=wn;var fi=/[0-9\-+#]/,gi=/[^\d\-+#]/g;function An(e){return e.search(fi)}function xi(e="#.##"){let t={},r=e.length,n=An(e);t.prefix=n>0?e.substring(0,n):"";let o=An(e.split("").reverse().join("")),i=r-o,a=e.substring(i,i+1),s=i+(a==="."||a===","?1:0);t.suffix=o>0?e.substring(s,r):"",t.mask=e.substring(n,s),t.maskHasNegativeSign=t.mask.charAt(0)==="-",t.maskHasPositiveSign=t.mask.charAt(0)==="+";let c=t.mask.match(gi);return t.decimal=c&&c[c.length-1]||".",t.separator=c&&c[1]&&c[0]||",",c=t.mask.split(t.decimal),t.integer=c[0],t.fraction=c[1],t}function bi(e,t,r){let n=!1,o={value:e};e<0&&(n=!0,o.value=-o.value),o.sign=n?"-":"",o.value=Number(o.value).toFixed(t.fraction&&t.fraction.length),o.value=Number(o.value).toString();let i=t.fraction&&t.fraction.lastIndexOf("0"),[a="0",s=""]=o.value.split(".");return(!s||s&&s.length<=i)&&(s=i<0?"":(+("0."+s)).toFixed(i+1).replace("0.","")),o.integer=a,o.fraction=s,vi(o,t),(o.result==="0"||o.result==="")&&(n=!1,o.sign=""),!n&&t.maskHasPositiveSign?o.sign="+":n&&t.maskHasPositiveSign?o.sign="-":n&&(o.sign=r&&r.enforceMaskSign&&!t.maskHasNegativeSign?"":"-"),o}function vi(e,t){e.result="";let r=t.integer.split(t.separator),n=r.join(""),o=n&&n.indexOf("0");if(o>-1)for(;e.integer.length({accept:e,round:t}),Si=[$t(({divisor:e,price:t})=>t%e==0,({divisor:e,price:t})=>t/e),$t(({usePrecision:e})=>e,({divisor:e,price:t})=>Math.round(t/e*100)/100),$t(()=>!0,({divisor:e,price:t})=>Math.ceil(Math.floor(t*100/e)/100))],Vt={[R.YEAR]:{[_.MONTHLY]:Pe.MONTH,[_.ANNUAL]:Pe.YEAR},[R.MONTH]:{[_.MONTHLY]:Pe.MONTH}},Ai=(e,t)=>e.indexOf(`'${t}'`)===0,Ti=(e,t=!0)=>{let r=e.replace(/'.*?'/,"").trim(),n=Nn(r);return!!n?t||(r=r.replace(/[,\.]0+/,n)):r=r.replace(/\s?(#.*0)(?!\s)?/,"$&"+Li(e)),r},_i=e=>{let t=Ci(e),r=Ai(e,t),n=e.replace(/'.*?'/,""),o=Cn.test(n)||Pn.test(n);return{currencySymbol:t,isCurrencyFirst:r,hasCurrencySpace:o}},Rn=e=>e.replace(Cn,Ln).replace(Pn,Ln),Li=e=>e.match(/#(.?)#/)?.[1]===_n?Ei:_n,Ci=e=>e.match(/'(.*?)'/)?.[1]??"",Nn=e=>e.match(/0(.?)0/)?.[1]??"";function et({formatString:e,price:t,usePrecision:r,isIndianPrice:n=!1},o,i=a=>a){let{currencySymbol:a,isCurrencyFirst:s,hasCurrencySpace:c}=_i(e),h=r?Nn(e):"",l=Ti(e,r),f=r?2:0,p=i(t,{currencySymbol:a}),g=n?p.toLocaleString("hi-IN",{minimumFractionDigits:f,maximumFractionDigits:f}):Tn(l,p),y=r?g.lastIndexOf(h):g.length,S=g.substring(0,y),M=g.substring(y+1);return{accessiblePrice:e.replace(/'.*?'/,"SYMBOL").replace(/#.*0/,g).replace(/SYMBOL/,a),currencySymbol:a,decimals:M,decimalsDelimiter:h,hasCurrencySpace:c,integer:S,isCurrencyFirst:s,recurrenceTerm:o}}var On=e=>{let{commitment:t,term:r,usePrecision:n}=e,o=wi[r]??1;return et(e,o>1?Pe.MONTH:Vt[t]?.[r],i=>{let a={divisor:o,price:i,usePrecision:n},{round:s}=Si.find(({accept:c})=>c(a));if(!s)throw new Error(`Missing rounding rule for: ${JSON.stringify(a)}`);return s(a)})},Hn=({commitment:e,term:t,...r})=>et(r,Vt[e]?.[t]),Mn=e=>{let{commitment:t,term:r}=e;return t===R.YEAR&&r===_.MONTHLY?et(e,Pe.YEAR,n=>n*12):et(e,Vt[t]?.[r])};var Pi={recurrenceLabel:"{recurrenceTerm, select, MONTH {/mo} YEAR {/yr} other {}}",recurrenceAriaLabel:"{recurrenceTerm, select, MONTH {per month} YEAR {per year} other {}}",perUnitLabel:"{perUnit, select, LICENSE {per license} other {}}",perUnitAriaLabel:"{perUnit, select, LICENSE {per license} other {}}",freeLabel:"Free",freeAriaLabel:"Free",taxExclusiveLabel:"{taxTerm, select, GST {excl. GST} VAT {excl. VAT} TAX {excl. tax} IVA {excl. IVA} SST {excl. SST} KDV {excl. KDV} other {}}",taxInclusiveLabel:"{taxTerm, select, GST {incl. GST} VAT {incl. VAT} TAX {incl. tax} IVA {incl. IVA} SST {incl. SST} KDV {incl. KDV} other {}}",alternativePriceAriaLabel:"Alternatively at {alternativePrice}",strikethroughAriaLabel:"Regularly at {strikethroughPrice}"},Ri=$r("ConsonantTemplates/price"),Ni=/<\/?[^>]+(>|$)/g,L={container:"price",containerOptical:"price-optical",containerStrikethrough:"price-strikethrough",containerAnnual:"price-annual",containerAnnualPrefix:"price-annual-prefix",containerAnnualSuffix:"price-annual-suffix",disabled:"disabled",currencySpace:"price-currency-space",currencySymbol:"price-currency-symbol",decimals:"price-decimals",decimalsDelimiter:"price-decimals-delimiter",integer:"price-integer",recurrence:"price-recurrence",taxInclusivity:"price-tax-inclusivity",unitType:"price-unit-type"},K={perUnitLabel:"perUnitLabel",perUnitAriaLabel:"perUnitAriaLabel",recurrenceLabel:"recurrenceLabel",recurrenceAriaLabel:"recurrenceAriaLabel",taxExclusiveLabel:"taxExclusiveLabel",taxInclusiveLabel:"taxInclusiveLabel",strikethroughAriaLabel:"strikethroughAriaLabel"},Oi="TAX_EXCLUSIVE",Hi=e=>Fr(e)?Object.entries(e).filter(([,t])=>ye(t)||_t(t)||t===!0).reduce((t,[r,n])=>t+` ${r}${n===!0?"":'="'+Gr(n)+'"'}`,""):"",N=(e,t,r,n=!1)=>`${n?Rn(t):t??""}`;function Mi(e,{accessibleLabel:t,currencySymbol:r,decimals:n,decimalsDelimiter:o,hasCurrencySpace:i,integer:a,isCurrencyFirst:s,recurrenceLabel:c,perUnitLabel:h,taxInclusivityLabel:l},f={}){let p=N(L.currencySymbol,r),g=N(L.currencySpace,i?" ":""),y="";return s&&(y+=p+g),y+=N(L.integer,a),y+=N(L.decimalsDelimiter,o),y+=N(L.decimals,n),s||(y+=g+p),y+=N(L.recurrence,c,null,!0),y+=N(L.unitType,h,null,!0),y+=N(L.taxInclusivity,l,!0),N(e,y,{...f,"aria-label":t})}var I=({displayOptical:e=!1,displayStrikethrough:t=!1,displayAnnual:r=!1}={})=>({country:n,displayFormatted:o=!0,displayRecurrence:i=!0,displayPerUnit:a=!1,displayTax:s=!1,language:c,literals:h={}}={},{commitment:l,offerSelectorIds:f,formatString:p,price:g,priceWithoutDiscount:y,taxDisplay:S,taxTerm:M,term:G,usePrecision:z}={},O={})=>{Object.entries({country:n,formatString:p,language:c,price:g}).forEach(([U,st])=>{if(st==null)throw new Error(`Argument "${U}" is missing for osi ${f?.toString()}, country ${n}, language ${c}`)});let j={...Pi,...h},D=`${c.toLowerCase()}-${n.toUpperCase()}`;function k(U,st){let ct=j[U];if(ct==null)return"";try{return new Sn(ct.replace(Ni,""),D).format(st)}catch{return Ri.error("Failed to format literal:",ct),""}}let Me=t&&y?y:g,tr=e?On:Hn;r&&(tr=Mn);let{accessiblePrice:oo,recurrenceTerm:ot,...rr}=tr({commitment:l,formatString:p,term:G,price:e?g:Me,usePrecision:z,isIndianPrice:n==="IN"}),J=oo,it="";if(H(i)&&ot){let U=k(K.recurrenceAriaLabel,{recurrenceTerm:ot});U&&(J+=" "+U),it=k(K.recurrenceLabel,{recurrenceTerm:ot})}let at="";if(H(a)){at=k(K.perUnitLabel,{perUnit:"LICENSE"});let U=k(K.perUnitAriaLabel,{perUnit:"LICENSE"});U&&(J+=" "+U)}let pe="";H(s)&&M&&(pe=k(S===Oi?K.taxExclusiveLabel:K.taxInclusiveLabel,{taxTerm:M}),pe&&(J+=" "+pe)),t&&(J=k(K.strikethroughAriaLabel,{strikethroughPrice:J}));let fe=L.container;if(e&&(fe+=" "+L.containerOptical),t&&(fe+=" "+L.containerStrikethrough),r&&(fe+=" "+L.containerAnnual),H(o))return Mi(fe,{...rr,accessibleLabel:J,recurrenceLabel:it,perUnitLabel:at,taxInclusivityLabel:pe},O);let{currencySymbol:nr,decimals:io,decimalsDelimiter:ao,hasCurrencySpace:or,integer:so,isCurrencyFirst:co}=rr,ee=[so,ao,io];co?(ee.unshift(or?"\xA0":""),ee.unshift(nr)):(ee.push(or?"\xA0":""),ee.push(nr)),ee.push(it,at,pe);let ho=ee.join("");return N(fe,ho,O)},In=()=>(e,t,r)=>{let o=(e.displayOldPrice===void 0||H(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price;return`${I()(e,t,r)}${o?" "+I({displayStrikethrough:!0})(e,t,r):""}`},kn=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${(e.displayOldPrice===void 0||H(e.displayOldPrice))&&t.priceWithoutDiscount&&t.priceWithoutDiscount!=t.price?I({displayStrikethrough:!0})(n,t,r)+" ":""}${I()(e,t,r)}${N(L.containerAnnualPrefix," (")}${I({displayAnnual:!0})(n,t,r)}${N(L.containerAnnualSuffix,")")}`},Bn=()=>(e,t,r)=>{let n={...e,displayTax:!1,displayPerUnit:!1};return`${I()(e,t,r)}${N(L.containerAnnualPrefix," (")}${I({displayAnnual:!0})(n,t,r)}${N(L.containerAnnualSuffix,")")}`};var Ii=I(),ki=In(),Bi=I({displayOptical:!0}),Di=I({displayStrikethrough:!0}),Ui=I({displayAnnual:!0}),Gi=Bn(),zi=kn();var Fi=(e,t)=>{if(!(!we(e)||!we(t)))return Math.floor((t-e)/t*100)},Dn=()=>(e,t)=>{let{price:r,priceWithoutDiscount:n}=t,o=Fi(r,n);return o===void 0?'':`${o}%`};var $i=Dn();var{freeze:Re}=Object,jt=Re({...be}),Yt=Re({...ve}),Wt={STAGE:"STAGE",PRODUCTION:"PRODUCTION",LOCAL:"LOCAL"},dd=Re({...R}),ud=Re({...Xr}),pd=Re({..._});var Gn="mas-commerce-service";function zn(e,{once:t=!1}={}){let r=null;function n(){let o=document.querySelector(Gn);o!==r&&(r=o,o&&e(o))}return document.addEventListener(dt,n,{once:t}),Ne(n),()=>document.removeEventListener(dt,n)}function Fn(e,{country:t,forceTaxExclusive:r,perpetual:n}){let o;if(e.length<2)o=e;else{let i=t==="GB"||n?"EN":"MULT",[a,s]=e;o=[a.language===i?a:s]}return r&&(o=o.map(Ct)),o}var Ne=e=>window.setTimeout(e);function Z(){return document.getElementsByTagName(Gn)?.[0]}var Q={clientId:"merch-at-scale",delimiter:"\xB6",ignoredProperties:["analytics","literals"],serializableTypes:["Array","Object"],sampleRate:1,tags:"acom",isProdDomain:!1},$n=1e3,Vn=new Set;function Yi(e){return e instanceof Error||typeof e?.originatingRequest=="string"}function jn(e){if(e==null)return;let t=typeof e;if(t==="function")return e.name?`function ${e.name}`:"function";if(t==="object"){if(e instanceof Error)return e.message;if(typeof e.originatingRequest=="string"){let{message:n,originatingRequest:o,status:i}=e;return[n,i,o].filter(Boolean).join(" ")}let r=e[Symbol.toStringTag]??Object.getPrototypeOf(e).constructor.name;if(!Q.serializableTypes.includes(r))return r}return e}function Wi(e,t){if(!Q.ignoredProperties.includes(e))return jn(t)}var qt={append(e){if(e.level!=="error")return;let{message:t,params:r}=e,n=[],o=[],i=t;r.forEach(h=>{h!=null&&(Yi(h)?n:o).push(h)}),n.length&&(i+=" "+n.map(jn).join(" "));let{pathname:a,search:s}=window.location,c=`${Q.delimiter}page=${a}${s}`;c.length>$n&&(c=`${c.slice(0,$n)}`),i+=c,o.length&&(i+=`${Q.delimiter}facts=`,i+=JSON.stringify(o,Wi)),Vn.has(i)||(Vn.add(i),window.lana?.log(i,Q))}};function Yn(e){Object.assign(Q,Object.fromEntries(Object.entries(e).filter(([t,r])=>t in Q&&r!==""&&r!==null&&r!==void 0&&!Number.isNaN(r))))}var qi=Object.freeze({checkoutClientId:"adobe_com",checkoutWorkflow:jt.V3,checkoutWorkflowStep:Yt.EMAIL,country:"US",displayOldPrice:!0,displayPerUnit:!1,displayRecurrence:!0,displayTax:!1,env:Wt.PRODUCTION,forceTaxExclusive:!1,language:"en",entitlement:!1,extraOptions:{},modal:!1,promotionCode:"",quantity:1,wcsApiKey:"wcms-commerce-ims-ro-user-milo",wcsBufferDelay:1,wcsURL:"https://www.adobe.com/web_commerce_artifact",landscape:ft.PUBLISHED,wcsBufferLimit:1});var Xt=Object.freeze({LOCAL:"local",PROD:"prod",STAGE:"stage"});var Kt={DEBUG:"debug",ERROR:"error",INFO:"info",WARN:"warn"},Xi=Date.now(),Zt=new Set,Qt=new Set,Wn=new Map,qn={append({level:e,message:t,params:r,timestamp:n,source:o}){console[e](`${n}ms [${o}] %c${t}`,"font-weight: bold;",...r)}},Xn={filter:({level:e})=>e!==Kt.DEBUG},Ki={filter:()=>!1};function Zi(e,t,r,n,o){return{level:e,message:t,namespace:r,get params(){return n.length===1&&Ee(n[0])&&(n=n[0](),Array.isArray(n)||(n=[n])),n},source:o,timestamp:Date.now()-Xi}}function Qi(e){[...Qt].every(t=>t(e))&&Zt.forEach(t=>t(e))}function Kn(e){let t=(Wn.get(e)??0)+1;Wn.set(e,t);let r=`${e} #${t}`,n={id:r,namespace:e,module:o=>Kn(`${n.namespace}/${o}`),updateConfig:Yn};return Object.values(Kt).forEach(o=>{n[o]=(i,...a)=>Qi(Zi(o,i,e,a,r))}),Object.seal(n)}function tt(...e){e.forEach(t=>{let{append:r,filter:n}=t;Ee(n)&&Qt.add(n),Ee(r)&&Zt.add(r)})}function Ji(e={}){let{name:t}=e,r=H(me("commerce.debug",{search:!0,storage:!0}),t===Xt.LOCAL);return tt(r?qn:Xn),t===Xt.PROD&&tt(qt),Jt}function ea(){Zt.clear(),Qt.clear()}var Jt={...Kn(Sr),Level:Kt,Plugins:{consoleAppender:qn,debugFilter:Xn,quietFilter:Ki,lanaAppender:qt},init:Ji,reset:ea,use:tt};var ta={[$]:br,[Y]:vr,[V]:yr},ra={[$]:Er,[V]:wr},rt=class{constructor(t){u(this,"changes",new Map);u(this,"connected",!1);u(this,"dispose",de);u(this,"error");u(this,"log");u(this,"options");u(this,"promises",[]);u(this,"state",Y);u(this,"timer",null);u(this,"value");u(this,"version",0);u(this,"wrapperElement");this.wrapperElement=t}update(){[$,Y,V].forEach(t=>{this.wrapperElement.classList.toggle(ta[t],t===this.state)})}notify(){(this.state===V||this.state===$)&&(this.state===V?this.promises.forEach(({resolve:t})=>t(this.wrapperElement)):this.state===$&&this.promises.forEach(({reject:t})=>t(this.error)),this.promises=[]),this.wrapperElement.dispatchEvent(new CustomEvent(ra[this.state],{bubbles:!0}))}attributeChangedCallback(t,r,n){this.changes.set(t,n),this.requestUpdate()}connectedCallback(){this.dispose=zn(()=>this.requestUpdate(!0))}disconnectedCallback(){this.connected&&(this.connected=!1,this.log?.debug("Disconnected:",{element:this.wrapperElement})),this.dispose(),this.dispose=de}onceSettled(){let{error:t,promises:r,state:n}=this;return V===n?Promise.resolve(this.wrapperElement):$===n?Promise.reject(t):new Promise((o,i)=>{r.push({resolve:o,reject:i})})}toggleResolved(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.state=V,this.value=r,this.update(),this.log?.debug("Resolved:",{element:this.wrapperElement,value:r}),Ne(()=>this.notify()),!0)}toggleFailed(t,r,n){return t!==this.version?!1:(n!==void 0&&(this.options=n),this.error=r,this.state=$,this.update(),this.log?.error("Failed:",{element:this.wrapperElement,error:r}),Ne(()=>this.notify()),!0)}togglePending(t){return this.version++,t&&(this.options=t),this.state=Y,this.update(),this.log?.debug("Pending:",{osi:this.wrapperElement?.options?.wcsOsi}),this.version}requestUpdate(t=!1){if(!this.wrapperElement.isConnected||!Z()||this.timer)return;let r=Jt.module("mas-element"),{error:n,options:o,state:i,value:a,version:s}=this;this.state=Y,this.timer=Ne(async()=>{this.timer=null;let c=null;if(this.changes.size&&(c=Object.fromEntries(this.changes.entries()),this.changes.clear()),this.connected?this.log?.debug("Updated:",{element:this.wrapperElement,changes:c}):(this.connected=!0,this.log?.debug("Connected:",{element:this.wrapperElement,changes:c})),c||t)try{await this.wrapperElement.render?.()===!1&&this.state===Y&&this.version===s&&(this.state=i,this.error=n,this.value=a,this.update(),this.notify())}catch(h){r.error("Failed to render mas-element: ",h),this.toggleFailed(this.version,h,o)}})}};function Zn(e={}){return Object.entries(e).forEach(([t,r])=>{(r==null||r===""||r?.length===0)&&delete e[t]}),e}function Qn(e,t={}){let{tag:r,is:n}=e,o=document.createElement(r,{is:n});return o.setAttribute("is",n),Object.assign(o.dataset,Zn(t)),o}function Jn(e,t={}){return e instanceof HTMLElement?(Object.assign(e.dataset,Zn(t)),e):null}var na="download",oa="upgrade";function eo(e,t={},r=""){let n=Z();if(!n)return null;let{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:h,perpetual:l,promotionCode:f,quantity:p,wcsOsi:g,extraOptions:y}=n.collectCheckoutOptions(t),S=Qn(e,{checkoutMarketSegment:o,checkoutWorkflow:i,checkoutWorkflowStep:a,entitlement:s,upgrade:c,modal:h,perpetual:l,promotionCode:f,quantity:p,wcsOsi:g,extraOptions:y});return r&&(S.innerHTML=`${r}`),S}function to(e){return class extends e{constructor(){super(...arguments);u(this,"checkoutActionHandler");u(this,"masElement",new rt(this))}attributeChangedCallback(n,o,i){this.masElement.attributeChangedCallback(n,o,i)}connectedCallback(){this.masElement.connectedCallback(),this.addEventListener("click",this.clickHandler)}disconnectedCallback(){this.masElement.disconnectedCallback(),this.removeEventListener("click",this.clickHandler)}onceSettled(){return this.masElement.onceSettled()}get value(){return this.masElement.value}get options(){return this.masElement.options}requestUpdate(n=!1){return this.masElement.requestUpdate(n)}static get observedAttributes(){return["data-checkout-workflow","data-checkout-workflow-step","data-extra-options","data-ims-country","data-perpetual","data-promotion-code","data-quantity","data-template","data-wcs-osi","data-entitlement","data-upgrade","data-modal"]}async render(n={}){if(!this.isConnected)return!1;let o=Z();if(!o)return!1;this.dataset.imsCountry||o.imsCountryPromise.then(f=>{f&&(this.dataset.imsCountry=f)},de),n.imsCountry=null;let i=o.collectCheckoutOptions(n,this);if(!i.wcsOsi.length)return!1;let a;try{a=JSON.parse(i.extraOptions??"{}")}catch(f){this.masElement.log?.error("cannot parse exta checkout options",f)}let s=this.masElement.togglePending(i);this.setCheckoutUrl("");let c=o.resolveOfferSelectors(i),h=await Promise.all(c);h=h.map(f=>Fn(f,i)),i.country=this.dataset.imsCountry||i.country;let l=await o.buildCheckoutAction?.(h.flat(),{...a,...i},this);return this.renderOffers(h.flat(),i,{},l,s)}renderOffers(n,o,i={},a=void 0,s=void 0){if(!this.isConnected)return!1;let c=Z();if(!c)return!1;if(o={...JSON.parse(this.dataset.extraOptions??"null"),...o,...i},s??(s=this.masElement.togglePending(o)),this.checkoutActionHandler&&(this.checkoutActionHandler=void 0),a){this.classList.remove(na,oa),this.masElement.toggleResolved(s,n,o);let{url:l,text:f,className:p,handler:g}=a;return l&&this.setCheckoutUrl(l),f&&(this.firstElementChild.innerHTML=f),p&&this.classList.add(...p.split(" ")),g&&(this.setCheckoutUrl("#"),this.checkoutActionHandler=g.bind(this)),!0}else if(n.length){if(this.masElement.toggleResolved(s,n,o)){let l=c.buildCheckoutURL(n,o);return this.setCheckoutUrl(l),!0}}else{let l=new Error(`Not provided: ${o?.wcsOsi??"-"}`);if(this.masElement.toggleFailed(s,l,o))return this.setCheckoutUrl("#"),!0}}setCheckoutUrl(){}clickHandler(n){}updateOptions(n={}){let o=Z();if(!o)return!1;let{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:h,modal:l,perpetual:f,promotionCode:p,quantity:g,wcsOsi:y}=o.collectCheckoutOptions(n);return Jn(this,{checkoutMarketSegment:i,checkoutWorkflow:a,checkoutWorkflowStep:s,entitlement:c,upgrade:h,modal:l,perpetual:f,promotionCode:p,quantity:g,wcsOsi:y}),!0}}}var Oe=class Oe extends to(HTMLButtonElement){static createCheckoutButton(t={},r=""){return eo(Oe,t,r)}setCheckoutUrl(t){this.setAttribute("data-href",t)}get href(){return this.getAttribute("data-href")}get isCheckoutButton(){return!0}clickHandler(t){if(this.checkoutActionHandler){this.checkoutActionHandler?.(t);return}this.href&&(window.location.href=this.href)}};u(Oe,"is","checkout-button"),u(Oe,"tag","button");var ue=Oe;window.customElements.get(ue.is)||window.customElements.define(ue.is,ue,{extends:ue.tag});var ia="#000000",aa="#F8D904",sa=/(accent|primary|secondary)(-(outline|link))?/,ca="mas:product_code/",ha="daa-ll",nt="daa-lh",la=["XL","L","M","S"];function ma(e,t,r){e.mnemonicIcon?.map((o,i)=>({icon:o,alt:e.mnemonicAlt[i]??"",link:e.mnemonicLink[i]??""}))?.forEach(({icon:o,alt:i,link:a})=>{if(a&&!/^https?:/.test(a))try{a=new URL(`https://${a}`).href.toString()}catch{a="#"}let s={slot:"icons",src:o,size:r?.size??"l"};i&&(s.alt=i),a&&(s.href=a);let c=B("merch-icon",s);t.append(c)})}function da(e,t){e.badge&&(t.setAttribute("badge-text",e.badge),t.setAttribute("badge-color",e.badgeColor||ia),t.setAttribute("badge-background-color",e.badgeBackgroundColor||aa))}function ua(e,t,r){r?.includes(e.size)&&t.setAttribute("size",e.size)}function pa(e,t,r){e.cardTitle&&r&&t.append(B(r.tag,{slot:r.slot},e.cardTitle))}function fa(e,t,r){e.subtitle&&r&&t.append(B(r.tag,{slot:r.slot},e.subtitle))}function ga(e,t,r){if(r?.tag&&e.backgroundImage){let n={loading:"lazy",src:e.backgroundImage};e.backgroundImageAltText?n.alt=e.backgroundImageAltText:n.role="none",t.append(B(r.tag,{slot:r.slot},B("img",n)))}r?.attribute&&t.setAttribute(r.attribute,e.backgroundImage)}function xa(e,t,r){if(e.prices&&r){let n=B(r.tag,{slot:r.slot},e.prices);t.append(n)}}function ba(e,t,r){if(e.description&&r){let n=B(r.tag,{slot:r.slot},e.description);t.append(n)}}function va(e,t,r,n){let i=customElements.get("checkout-button").createCheckoutButton({},e.innerHTML);i.setAttribute("tabindex",0);for(let l of e.attributes)["class","is"].includes(l.name)||i.setAttribute(l.name,l.value);i.firstElementChild?.classList.add("spectrum-Button-label");let a=t.ctas.size??"M",s=`spectrum-Button--${n}`,c=la.includes(a)?`spectrum-Button--size${a}`:"spectrum-Button--sizeM",h=["spectrum-Button",s,c];return r&&h.push("spectrum-Button--outline"),i.classList.add(...h),i}function ya(e,t,r,n){let o="fill";r&&(o="outline");let i=B("sp-button",{treatment:o,variant:n,tabIndex:0,size:t.ctas.size??"m"},e);return i.addEventListener("click",a=>{a.target!==e&&(a.stopPropagation(),e.click())}),i}function Ea(e,t){return e.classList.add("con-button"),t&&e.classList.add("blue"),e}function wa(e,t,r,n){if(e.ctas){let{slot:o}=r.ctas,i=B("div",{slot:o},e.ctas),a=[...i.querySelectorAll("a")].map(s=>{let c=s.parentElement.tagName==="STRONG";if(t.consonant)return Ea(s,c);let h=sa.exec(s.className)?.[0]??"accent",l=h.includes("accent"),f=h.includes("primary"),p=h.includes("secondary"),g=h.includes("-outline");if(h.includes("-link"))return s;let S;return l||c?S="accent":f?S="primary":p&&(S="secondary"),t.spectrum==="swc"?ya(s,r,g,S):va(s,r,g,S)});i.innerHTML="",i.append(...a),t.append(i)}}function Sa(e,t){let{tags:r}=e,n=r?.find(o=>o.startsWith(ca))?.split("/").pop();n&&(t.setAttribute(nt,n),t.querySelectorAll("a[data-analytics-id],button[data-analytics-id]").forEach((o,i)=>{o.setAttribute(ha,`${o.dataset.analyticsId}-${i+1}`)}))}function Aa(e){e.spectrum==="css"&&[["primary-link","primary"],["secondary-link","secondary"]].forEach(([t,r])=>{e.querySelectorAll(`a.${t}`).forEach(n=>{n.classList.remove(t),n.classList.add("spectrum-Link",`spectrum-Link--${r}`)})})}async function ro(e,t){let{fields:r}=e,{variant:n}=r;if(!n)return;t.id=e.id,t.querySelectorAll("[slot]").forEach(i=>{i.remove()}),t.removeAttribute("background-image"),t.removeAttribute("badge-background-color"),t.removeAttribute("badge-color"),t.removeAttribute("badge-text"),t.removeAttribute("size"),t.classList.remove("wide-strip"),t.classList.remove("thin-strip"),t.removeAttribute(nt),t.variant=n,await t.updateComplete;let{aemFragmentMapping:o}=t.variantLayout;o&&(ma(r,t,o.mnemonics),da(r,t),ua(r,t,o.allowedSizes),pa(r,t,o.title),fa(r,t,o.subtitle),xa(r,t,o.prices),ga(r,t,o.backgroundImage,n),ba(r,t,o.description),wa(r,t,o,n),Sa(r,t),Aa(t))}var _a="merch-card",La=":start",Ca=":ready",Pa=1e4,no="merch-card:",He,er,d=class extends Ta{constructor(){super();Ie(this,He);u(this,"customerSegment");u(this,"marketSegment");u(this,"variantLayout");this.filters={},this.types="",this.selected=!1,this.spectrum="css",this.handleAemFragmentEvents=this.handleAemFragmentEvents.bind(this)}firstUpdated(){this.variantLayout=yt(this,!1),this.variantLayout?.connectedCallbackHook(),this.aemFragment?.updateComplete.catch(()=>{this.style.display="none"})}willUpdate(r){(r.has("variant")||!this.variantLayout)&&(this.variantLayout=yt(this),this.variantLayout.connectedCallbackHook())}updated(r){(r.has("badgeBackgroundColor")||r.has("borderColor"))&&this.style.setProperty("--consonant-merch-card-border",this.computedBorderStyle),this.variantLayout?.postCardUpdateHook(r)}get theme(){return this.closest("sp-theme")}get dir(){return this.closest("[dir]")?.getAttribute("dir")??"ltr"}get prices(){return Array.from(this.querySelectorAll('span[is="inline-price"][data-wcs-osi]'))}render(){if(!(!this.isConnected||!this.variantLayout||this.style.display==="none"))return this.variantLayout.renderLayout()}get computedBorderStyle(){return["twp","ccd-slice","ccd-suggested"].includes(this.variant)?"":`1px solid ${this.borderColor?this.borderColor:this.badgeBackgroundColor}`}get badgeElement(){return this.shadowRoot.getElementById("badge")}get headingmMSlot(){return this.shadowRoot.querySelector('slot[name="heading-m"]').assignedElements()[0]}get footerSlot(){return this.shadowRoot.querySelector('slot[name="footer"]')?.assignedElements()[0]}get price(){return this.headingmMSlot?.querySelector('span[is="inline-price"]')}get checkoutLinks(){return[...this.footerSlot?.querySelectorAll('a[is="checkout-link"]')??[]]}async toggleStockOffer({target:r}){if(!this.stockOfferOsis)return;let n=this.checkoutLinks;if(n.length!==0)for(let o of n){await o.onceSettled();let i=o.value?.[0]?.planType;if(!i)return;let a=this.stockOfferOsis[i];if(!a)return;let s=o.dataset.wcsOsi.split(",").filter(c=>c!==a);r.checked&&s.push(a),o.dataset.wcsOsi=s.join(",")}}handleQuantitySelection(r){let n=this.checkoutLinks;for(let o of n)o.dataset.quantity=r.detail.option}get titleElement(){return this.querySelector(this.variantLayout?.headingSelector||".card-heading")}get title(){return this.titleElement?.textContent?.trim()}get description(){return this.querySelector('[slot="body-xs"]')?.textContent?.trim()}updateFilters(r){let n={...this.filters};Object.keys(n).forEach(o=>{if(r){n[o].order=Math.min(n[o].order||2,2);return}let i=n[o].order;i===1||isNaN(i)||(n[o].order=Number(i)+1)}),this.filters=n}includes(r){return this.textContent.match(new RegExp(r,"i"))!==null}connectedCallback(){super.connectedCallback();let r=this.querySelector("aem-fragment")?.getAttribute("fragment");performance.mark(`${no}${r}${La}`),this.addEventListener(pt,this.handleQuantitySelection),this.addEventListener(ur,this.merchCardReady,{once:!0}),this.updateComplete.then(()=>{this.merchCardReady()}),this.storageOptions?.addEventListener("change",this.handleStorageChange),this.addEventListener(Ge,this.handleAemFragmentEvents),this.addEventListener(Ue,this.handleAemFragmentEvents),this.aemFragment||setTimeout(()=>this.checkReady(),0)}disconnectedCallback(){super.disconnectedCallback(),this.variantLayout?.disconnectedCallbackHook(),this.removeEventListener(pt,this.handleQuantitySelection),this.storageOptions?.removeEventListener(ut,this.handleStorageChange),this.removeEventListener(Ge,this.handleAemFragmentEvents),this.removeEventListener(Ue,this.handleAemFragmentEvents)}async handleAemFragmentEvents(r){if(r.type===Ge&&mt(this,He,er).call(this,"AEM fragment cannot be loaded"),r.type===Ue&&r.target.nodeName==="AEM-FRAGMENT"){let n=r.detail;await ro(n,this),this.checkReady()}}async checkReady(){let r=Promise.all([...this.querySelectorAll('span[is="inline-price"][data-wcs-osi],a[is="checkout-link"][data-wcs-osi]')].map(i=>i.onceSettled().catch(()=>i))).then(i=>i.every(a=>a.classList.contains("placeholder-resolved"))),n=new Promise(i=>setTimeout(()=>i(!1),Pa));if(await Promise.race([r,n])===!0){performance.mark(`${no}${this.id}${Ca}`),this.dispatchEvent(new CustomEvent(gr,{bubbles:!0,composed:!0}));return}mt(this,He,er).call(this,"Contains unresolved offers")}get aemFragment(){return this.querySelector("aem-fragment")}get storageOptions(){return this.querySelector("sp-radio-group#storage")}get storageSpecificOfferSelect(){let r=this.storageOptions?.selected;if(r){let n=this.querySelector(`merch-offer-select[storage="${r}"]`);if(n)return n}return this.querySelector("merch-offer-select")}get offerSelect(){return this.storageOptions?this.storageSpecificOfferSelect:this.querySelector("merch-offer-select")}get quantitySelect(){return this.querySelector("merch-quantity-select")}merchCardReady(){this.offerSelect&&!this.offerSelect.planType||this.dispatchEvent(new CustomEvent(pr,{bubbles:!0}))}handleStorageChange(){let r=this.closest("merch-card")?.offerSelect.cloneNode(!0);r&&this.dispatchEvent(new CustomEvent(ut,{detail:{offerSelect:r},bubbles:!0}))}get dynamicPrice(){return this.querySelector('[slot="price"]')}selectMerchOffer(r){if(r===this.merchOffer)return;this.merchOffer=r;let n=this.dynamicPrice;if(r.price&&n){let o=r.price.cloneNode(!0);n.onceSettled?n.onceSettled().then(()=>{n.replaceWith(o)}):n.replaceWith(o)}}};He=new WeakSet,er=function(r){this.dispatchEvent(new CustomEvent(xr,{detail:r,bubbles:!0,composed:!0}))},u(d,"properties",{name:{type:String,attribute:"name",reflect:!0},variant:{type:String,reflect:!0},size:{type:String,attribute:"size",reflect:!0},badgeColor:{type:String,attribute:"badge-color",reflect:!0},borderColor:{type:String,attribute:"border-color",reflect:!0},badgeBackgroundColor:{type:String,attribute:"badge-background-color",reflect:!0},backgroundImage:{type:String,attribute:"background-image",reflect:!0},badgeText:{type:String,attribute:"badge-text"},actionMenu:{type:Boolean,attribute:"action-menu"},customHr:{type:Boolean,attribute:"custom-hr"},consonant:{type:Boolean,attribute:"consonant"},spectrum:{type:String,attribute:"spectrum"},detailBg:{type:String,attribute:"detail-bg"},secureLabel:{type:String,attribute:"secure-label"},checkboxLabel:{type:String,attribute:"checkbox-label"},selected:{type:Boolean,attribute:"aria-selected",reflect:!0},storageOption:{type:String,attribute:"storage",reflect:!0},stockOfferOsis:{type:Object,attribute:"stock-offer-osis",converter:{fromAttribute:r=>{let[n,o,i]=r.split(",");return{PUF:n,ABM:o,M2M:i}}}},filters:{type:String,reflect:!0,converter:{fromAttribute:r=>Object.fromEntries(r.split(",").map(n=>{let[o,i,a]=n.split(":"),s=Number(i);return[o,{order:isNaN(s)?void 0:s,size:a}]})),toAttribute:r=>Object.entries(r).map(([n,{order:o,size:i}])=>[n,o,i].filter(a=>a!=null).join(":")).join(",")}},types:{type:String,attribute:"types",reflect:!0},merchOffer:{type:Object},analyticsId:{type:String,attribute:nt,reflect:!0}}),u(d,"styles",[lr,Br(),...mr()]);customElements.define(_a,d); diff --git a/libs/features/mas/dist/mas.js b/libs/features/mas/dist/mas.js index f03e59daf7..470e45e56f 100644 --- a/libs/features/mas/dist/mas.js +++ b/libs/features/mas/dist/mas.js @@ -1502,7 +1502,11 @@ merch-card[variant='twp'] merch-offer-select { :host([variant='ccd-suggested']) ::slotted([slot='price']) { font-size: var(--consonant-merch-card-body-xs-font-size); line-height: var(--consonant-merch-card-body-xs-line-height); - min-width: fit-content; + } + + :host([variant='ccd-suggested']) ::slotted([slot='price']) em { + font-size: var(--consonant-merch-card-body-xxs-font-size); + line-height: var(--consonant-merch-card-body-xxs-line-height); } :host([variant='ccd-suggested']) ::slotted([slot='cta']) { diff --git a/libs/features/mas/src/variants/ccd-suggested.js b/libs/features/mas/src/variants/ccd-suggested.js index 4bb2789b1d..c984d93a24 100644 --- a/libs/features/mas/src/variants/ccd-suggested.js +++ b/libs/features/mas/src/variants/ccd-suggested.js @@ -161,7 +161,11 @@ export class CCDSuggested extends VariantLayout { :host([variant='ccd-suggested']) ::slotted([slot='price']) { font-size: var(--consonant-merch-card-body-xs-font-size); line-height: var(--consonant-merch-card-body-xs-line-height); - min-width: fit-content; + } + + :host([variant='ccd-suggested']) ::slotted([slot='price']) em { + font-size: var(--consonant-merch-card-body-xxs-font-size); + line-height: var(--consonant-merch-card-body-xxs-line-height); } :host([variant='ccd-suggested']) ::slotted([slot='cta']) {